halo-fe 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/dist/main.js +107 -102
  2. package/esm/@types/CreateFeOptions.d.ts +25 -0
  3. package/esm/@types/index.d.ts +2 -0
  4. package/esm/coms/@types/ScrollerProps.d.ts +15 -0
  5. package/esm/coms/@types/index.d.ts +2 -0
  6. package/esm/coms/Scroller.vue.d.ts +1 -1
  7. package/esm/coms/conditions/@types/ConditionGroupProps.d.ts +11 -0
  8. package/esm/coms/conditions/@types/ConditionProps.d.ts +18 -0
  9. package/esm/coms/conditions/@types/index.d.ts +3 -0
  10. package/esm/coms/conditions/Condition.vue.d.ts +1 -1
  11. package/esm/coms/conditions/Index.vue.d.ts +1 -1
  12. package/esm/coms/controls/@types/CodeEmit.d.ts +23 -0
  13. package/esm/coms/controls/@types/CodeProps.d.ts +28 -0
  14. package/esm/coms/controls/@types/Range.d.ts +26 -0
  15. package/esm/coms/controls/@types/RichTextOptions.d.ts +14 -0
  16. package/esm/coms/controls/@types/RichTextProps.d.ts +12 -0
  17. package/esm/coms/controls/@types/index.d.ts +6 -0
  18. package/esm/coms/controls/Code.vue.d.ts +1 -1
  19. package/esm/coms/controls/RichText.vue.d.ts +1 -1
  20. package/esm/coms/controls/index.d.ts +1 -1
  21. package/esm/coms/index.d.ts +1 -1
  22. package/esm/coms/layouts/@types/RowProps.d.ts +14 -0
  23. package/esm/coms/layouts/@types/index.d.ts +2 -0
  24. package/esm/coms/layouts/Row.vue.d.ts +1 -1
  25. package/esm/coms/layouts/index.d.ts +1 -1
  26. package/esm/coms/progresses/@types/SocketProgressProps.d.ts +23 -0
  27. package/esm/coms/progresses/@types/index.d.ts +2 -0
  28. package/esm/coms/progresses/SocketProgress.vue.d.ts +1 -1
  29. package/esm/coms/tabs/@types/TabProps.d.ts +7 -0
  30. package/esm/coms/tabs/@types/index.d.ts +2 -0
  31. package/esm/coms/tabs/Tab.vue.d.ts +1 -1
  32. package/esm/drivers/@types/IDispose.d.ts +10 -0
  33. package/esm/drivers/@types/IDriver.d.ts +10 -0
  34. package/esm/drivers/@types/IOpen.d.ts +10 -0
  35. package/esm/drivers/@types/index.d.ts +4 -0
  36. package/esm/drivers/bridges/IBridge.d.ts +1 -1
  37. package/esm/drivers/builders/IBuilder.d.ts +1 -1
  38. package/esm/drivers/cdns/ICdn.d.ts +1 -1
  39. package/esm/drivers/excels/IExcel.d.ts +1 -1
  40. package/esm/drivers/explainers/IExplainer.d.ts +1 -1
  41. package/esm/drivers/features/IFeature.d.ts +1 -1
  42. package/esm/drivers/https/IHttp.d.ts +1 -1
  43. package/esm/drivers/i18ns/I18n.d.ts +0 -3
  44. package/esm/drivers/i18ns/II18n.d.ts +7 -1
  45. package/esm/drivers/index.d.ts +1 -1
  46. package/esm/drivers/messengers/IMessenger.d.ts +1 -1
  47. package/esm/drivers/providers/IProvider.d.ts +1 -1
  48. package/esm/drivers/ssos/ISso.d.ts +1 -1
  49. package/esm/drivers/tasks/ITask.d.ts +1 -1
  50. package/esm/drivers/templates/ITemplate.d.ts +1 -1
  51. package/esm/drivers/videos/IVideo.d.ts +1 -1
  52. package/esm/drivers/voices/IVoice.d.ts +1 -1
  53. package/esm/factorying/Factory.d.ts +1 -1
  54. package/esm/factorying/index.d.ts +2 -2
  55. package/esm/helpers/@types/JsonConfig.d.ts +10 -0
  56. package/esm/helpers/@types/TreeNodeProp.d.ts +9 -0
  57. package/esm/helpers/@types/index.d.ts +3 -0
  58. package/esm/helpers/JsonHelper.d.ts +1 -1
  59. package/esm/main.d.ts +2 -2
  60. package/esm/svcs/@types/Dictionary.d.ts +4 -0
  61. package/esm/svcs/@types/index.d.ts +2 -0
  62. package/esm/svcs/implement/ConfigSvc.d.ts +1 -1
  63. package/esm/svcs/implement/LogSvc.d.ts +3 -0
  64. package/esm/svcs/index.d.ts +1 -1
  65. package/esm/utilities/@types/DragEvent.d.ts +11 -0
  66. package/esm/utilities/@types/DragOptions.d.ts +28 -0
  67. package/esm/utilities/@types/Position.d.ts +15 -0
  68. package/esm/utilities/@types/Rect.d.ts +10 -0
  69. package/esm/utilities/@types/index.d.ts +5 -0
  70. package/esm/utilities/EventUtility.d.ts +1 -1
  71. package/esm/utilities/index.d.ts +1 -1
  72. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -2,7 +2,7 @@ var vt = Object.defineProperty;
2
2
  var wt = (u, t, e) => t in u ? vt(u, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[t] = e;
3
3
  var n = (u, t, e) => wt(u, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { _ as Re } from "./assets/underscore-B0BCaBxV.js";
5
- import { defineAsyncComponent as bt, reactive as Ge, defineComponent as Q, toRefs as se, openBlock as O, createElementBlock as _, createElementVNode as D, toDisplayString as pe, unref as y, renderSlot as fe, createCommentVNode as Ze, watch as X, ref as I, onMounted as be, onUnmounted as xe, normalizeStyle as ge, normalizeClass as Ae, createTextVNode as xt, createBlock as He, withCtx as Ne, mergeModels as Ke, useModel as et, nextTick as We, withDirectives as kt, vShow as St, createVNode as Ce, createStaticVNode as Et, isRef as _e, Fragment as Ct, renderList as Tt, computed as Te } from "vue";
5
+ import { defineAsyncComponent as bt, reactive as Ge, defineComponent as Q, toRefs as se, openBlock as O, createElementBlock as _, createElementVNode as D, toDisplayString as pe, unref as y, renderSlot as ge, createCommentVNode as Ze, watch as X, ref as I, onMounted as be, onUnmounted as xe, normalizeStyle as fe, normalizeClass as Ae, createTextVNode as xt, createBlock as He, withCtx as Ne, mergeModels as Ke, useModel as et, nextTick as We, withDirectives as kt, vShow as St, createVNode as Ce, createStaticVNode as Et, isRef as _e, Fragment as Ct, renderList as Tt, computed as Te } from "vue";
6
6
  import { _ as $t } from "./assets/underscore.string-oDfap0sE.js";
7
7
  import { a as Lt } from "./assets/clone-DtpAsLoe.js";
8
8
  import { F as At } from "./assets/file-saver-Cnua3zoa.js";
@@ -1150,13 +1150,13 @@ const G = class G {
1150
1150
  let i = t.querySelector(s);
1151
1151
  if (!i)
1152
1152
  return null;
1153
- let a = {}, o = t.getBoundingClientRect(), c = l.getBoundingClientRect(), d = t.querySelector(e).getBoundingClientRect(), p = i.getBoundingClientRect(), g = c.height - d.top;
1153
+ let a = {}, o = t.getBoundingClientRect(), c = l.getBoundingClientRect(), d = t.querySelector(e).getBoundingClientRect(), p = i.getBoundingClientRect(), f = c.height - d.top;
1154
1154
  if (r == "right") {
1155
1155
  a.left = `${o.left + o.width}px`;
1156
1156
  let b;
1157
1157
  p.height > c.height ? b = c.height : b = p.height, a.height = `${b}px`, b + d.top > c.height ? (a.top = "initial", a.bottom = "0px") : a.top = `${o.top}px`;
1158
1158
  } else if (r == "bottom")
1159
- g -= d.height, a.left = `${o.left}px`, a.top = `${o.top + o.height}px`, g < p.height ? a.height = `${g}px` : a.height = `${p.height}px`;
1159
+ f -= d.height, a.left = `${o.left}px`, a.top = `${o.top + o.height}px`, f < p.height ? a.height = `${f}px` : a.height = `${p.height}px`;
1160
1160
  else
1161
1161
  throw new Error(`暂未支持的position:${r}`);
1162
1162
  return a;
@@ -1593,8 +1593,8 @@ n(k, "searchTree", (t, e, s, l) => {
1593
1593
  let c = !1, h = k.getChildren(o, s, !0);
1594
1594
  for (let d of h) {
1595
1595
  for (let p of a) {
1596
- let g = d[p];
1597
- if ((g ? g.toUpperCase() : "").indexOf(i) > -1) {
1596
+ let f = d[p];
1597
+ if ((f ? f.toUpperCase() : "").indexOf(i) > -1) {
1598
1598
  c = !0;
1599
1599
  break;
1600
1600
  }
@@ -2326,13 +2326,13 @@ class Me extends je {
2326
2326
  `, a += `(${h})\r
2327
2327
  `, a += `VALUES\r
2328
2328
  `, a += "(";
2329
- let g = Object.keys(p);
2330
- for (let b = 0; b < g.length; b++) {
2331
- let N = g[b];
2329
+ let f = Object.keys(p);
2330
+ for (let b = 0; b < f.length; b++) {
2331
+ let N = f[b];
2332
2332
  if (i != null && i.name == N)
2333
2333
  continue;
2334
2334
  let V = p[N];
2335
- a += `${Xe.getValue(V)}`, b != g.length - 1 && (a += ", ");
2335
+ a += `${Xe.getValue(V)}`, b != f.length - 1 && (a += ", ");
2336
2336
  }
2337
2337
  a += ")", d != r.length - 1 && (a += `\r
2338
2338
  \r
@@ -2659,17 +2659,17 @@ class Gt extends Yt {
2659
2659
  i.push(d);
2660
2660
  }), r.push(i), e.length > 0)
2661
2661
  for (let d = 0; d < e.length; d++) {
2662
- let p = e[d], g = [];
2662
+ let p = e[d], f = [];
2663
2663
  Object.keys(p).forEach((b) => {
2664
- g.push(p[b]);
2665
- }), r.push(g);
2664
+ f.push(p[b]);
2665
+ }), r.push(f);
2666
2666
  }
2667
2667
  let a = this.xlsx.utils.book_new(), o = this.xlsx.utils.json_to_sheet(r, { skipHeader: !0 });
2668
2668
  this.xlsx.utils.book_append_sheet(a, o, "abc");
2669
2669
  let c = 65;
2670
2670
  for (let d = 0; d < l.length; d++) {
2671
- let g = `${String.fromCharCode(c + d)}1`;
2672
- o[g].s = {
2671
+ let f = `${String.fromCharCode(c + d)}1`;
2672
+ o[f].s = {
2673
2673
  alignment: { horizontal: "center" },
2674
2674
  font: { bold: !0, color: { rgb: "000000" } },
2675
2675
  fill: { fgColor: { rgb: "409eff" } }
@@ -2677,8 +2677,8 @@ class Gt extends Yt {
2677
2677
  }
2678
2678
  let h = [];
2679
2679
  l.forEach((d) => {
2680
- let p = e[0][d], g = { wpx: 50 };
2681
- typeof p == "string" && (g.wpx = 100), h.push(g);
2680
+ let p = e[0][d], f = { wpx: 50 };
2681
+ typeof p == "string" && (f.wpx = 100), h.push(f);
2682
2682
  }), o["!cols"] = h, this.xlsx.writeFile(a, s);
2683
2683
  }
2684
2684
  }
@@ -3021,8 +3021,8 @@ class us extends qe {
3021
3021
  let c = i.getAllResponseHeaders().split(`\r
3022
3022
  `), h = {};
3023
3023
  for (let d = 0; d < c.length; d++) {
3024
- let p = c[d].split(": "), g = p.shift();
3025
- g == null || g == "" || (h[g] = p.join(": "));
3024
+ let p = c[d].split(": "), f = p.shift();
3025
+ f == null || f == "" || (h[f] = p.join(": "));
3026
3026
  }
3027
3027
  s.headers = h, s.contentType = s.getHeader("content-type"), s.prepare(), s.elapsed = s.time.getTime() - e.time.getTime(), await ((o = this.onResponse) == null ? void 0 : o.call(this, s)), l(s);
3028
3028
  }
@@ -3140,6 +3140,7 @@ class ds extends qe {
3140
3140
  * 发送请求
3141
3141
  */
3142
3142
  async send(e) {
3143
+ debugger;
3143
3144
  e.url = K.concatUrl(this.baseUrl, e.path), await this.onRequest(e);
3144
3145
  let s = await this.http.send(e);
3145
3146
  if (s.status != 200) {
@@ -3261,9 +3262,6 @@ class ps {
3261
3262
  s ? t ? e ? l = `${t}(${e}) - ${s}` : l = `${t} - ${s}` : l = s : e ? l = `${t}(${e})` : l = t, document.title = l;
3262
3263
  });
3263
3264
  //#region 加载
3264
- /**
3265
- * 添加自定义多语言包
3266
- */
3267
3265
  n(this, "addMessages", (t) => {
3268
3266
  let e = Object.keys(t);
3269
3267
  for (let s of e)
@@ -3285,7 +3283,7 @@ class ps {
3285
3283
  }
3286
3284
  //#endregion
3287
3285
  }
3288
- class fs extends ps {
3286
+ class gs extends ps {
3289
3287
  constructor() {
3290
3288
  super(...arguments);
3291
3289
  n(this, "type", "Default");
@@ -3327,10 +3325,10 @@ class fs extends ps {
3327
3325
  await super.open(e);
3328
3326
  }
3329
3327
  }
3330
- class gs extends B {
3328
+ class fs extends B {
3331
3329
  //#region 开启
3332
3330
  open() {
3333
- super.open(), super.addType(new fs());
3331
+ super.open(), super.addType(new gs());
3334
3332
  }
3335
3333
  //#endregion
3336
3334
  /**
@@ -3780,6 +3778,9 @@ class Ds {
3780
3778
  }
3781
3779
  class Is {
3782
3780
  constructor() {
3781
+ /**
3782
+ * 日志集合
3783
+ */
3783
3784
  n(this, "logs", []);
3784
3785
  }
3785
3786
  /**
@@ -4299,7 +4300,7 @@ class ht {
4299
4300
  * 多语言工厂
4300
4301
  */
4301
4302
  static get i18n() {
4302
- return this.create(gs);
4303
+ return this.create(fs);
4303
4304
  }
4304
4305
  /**
4305
4306
  * 消息提示请求工厂
@@ -4401,12 +4402,12 @@ const dl = { class: "ha-empty" }, hl = { class: "empty-message" }, pl = {
4401
4402
  return (l, r) => (O(), _("div", dl, [
4402
4403
  D("div", hl, pe(y(e)), 1),
4403
4404
  y(s) ? (O(), _("div", pl, [
4404
- fe(l.$slots, "default")
4405
+ ge(l.$slots, "default")
4405
4406
  ])) : Ze("", !0)
4406
4407
  ]));
4407
4408
  }
4408
4409
  });
4409
- class ft {
4410
+ class gt {
4410
4411
  constructor(t, e) {
4411
4412
  /**
4412
4413
  * 距窗口左边的距离
@@ -4419,7 +4420,7 @@ class ft {
4419
4420
  this.x = t, this.y = e;
4420
4421
  }
4421
4422
  }
4422
- class fl extends ft {
4423
+ class gl extends gt {
4423
4424
  constructor() {
4424
4425
  super(...arguments);
4425
4426
  /**
@@ -4428,7 +4429,7 @@ class fl extends ft {
4428
4429
  n(this, "affix");
4429
4430
  }
4430
4431
  }
4431
- class ar extends ft {
4432
+ class ar extends gt {
4432
4433
  constructor(e, s, l, r) {
4433
4434
  super(e, s);
4434
4435
  n(this, "width");
@@ -4436,7 +4437,7 @@ class ar extends ft {
4436
4437
  this.width = l, this.height = r;
4437
4438
  }
4438
4439
  }
4439
- class gt {
4440
+ class ft {
4440
4441
  constructor() {
4441
4442
  //#region 大小调整
4442
4443
  n(this, "resizeObserver", null);
@@ -4525,12 +4526,12 @@ class gt {
4525
4526
  return;
4526
4527
  this.dragElement = t;
4527
4528
  let s = !1, l = (a) => (s = !0, a.preventDefault(), e.init(a)), r = (a) => {
4528
- let o = new fl(), c = e.range;
4529
+ let o = new gl(), c = e.range;
4529
4530
  if (c == null)
4530
4531
  o.x = a.clientX, o.y = a.clientY;
4531
4532
  else {
4532
- let { x: h, y: d, width: p, height: g } = c;
4533
- a.clientX < h ? o.x = h : a.clientX > h + p ? o.x = h + p : o.x = a.clientX, a.clientY < d ? o.y = d : a.clientY > d + g ? o.y = d + g : o.y = a.clientY;
4533
+ let { x: h, y: d, width: p, height: f } = c;
4534
+ a.clientX < h ? o.x = h : a.clientX > h + p ? o.x = h + p : o.x = a.clientX, a.clientY < d ? o.y = d : a.clientY > d + f ? o.y = d + f : o.y = a.clientY;
4534
4535
  }
4535
4536
  if (e.affix) {
4536
4537
  if (e.range == null)
@@ -4772,11 +4773,11 @@ class dr {
4772
4773
  dispose() {
4773
4774
  }
4774
4775
  }
4775
- const gl = /* @__PURE__ */ Q({
4776
+ const fl = /* @__PURE__ */ Q({
4776
4777
  __name: "Fill",
4777
4778
  emits: ["resize"],
4778
4779
  setup(u, { emit: t }) {
4779
- let e = t, s = I(), l = I(), r = I(), i = new gt(), a = () => {
4780
+ let e = t, s = I(), l = I(), r = I(), i = new ft(), a = () => {
4780
4781
  let h = R.siblings(s.value);
4781
4782
  r.value = R.getHeight(h);
4782
4783
  }, o = () => {
@@ -4792,9 +4793,9 @@ const gl = /* @__PURE__ */ Q({
4792
4793
  class: "ha-fill",
4793
4794
  ref_key: "fillRef",
4794
4795
  ref: s,
4795
- style: ge({ height: `calc(100% - ${y(r)}px)` })
4796
+ style: fe({ height: `calc(100% - ${y(r)}px)` })
4796
4797
  }, [
4797
- fe(h.$slots, "default")
4798
+ ge(h.$slots, "default")
4798
4799
  ], 4));
4799
4800
  }
4800
4801
  }), ml = /* @__PURE__ */ Q({
@@ -4804,7 +4805,7 @@ const gl = /* @__PURE__ */ Q({
4804
4805
  },
4805
4806
  emits: ["scroll"],
4806
4807
  setup(u, { expose: t, emit: e }) {
4807
- let s = e, l = u, { options: r } = se(l), i = I(), a = I(), o = I(), c = I(), h = I(!1), d = null, p = null, g = new gt(), b = I({ top: null, height: null }), N = (v) => {
4808
+ let s = e, l = u, { options: r } = se(l), i = I(), a = I(), o = I(), c = I(), h = I(!1), d = null, p = null, f = new ft(), b = I({ top: null, height: null }), N = (v) => {
4808
4809
  if (p == 0)
4809
4810
  return 0;
4810
4811
  let w = p - d;
@@ -4823,12 +4824,12 @@ const gl = /* @__PURE__ */ Q({
4823
4824
  return 0;
4824
4825
  let w = d * v;
4825
4826
  return ne.between(w, 80, 500);
4826
- }, f = (v, w) => {
4827
+ }, g = (v, w) => {
4827
4828
  let j = N(v), q = (d - w) * j;
4828
4829
  return ne.between(q, 0, d - w);
4829
4830
  }, C = (v) => {
4830
4831
  let w = le();
4831
- return { top: f(v, w), height: w };
4832
+ return { top: g(v, w), height: w };
4832
4833
  }, m = (v) => {
4833
4834
  }, $ = (v) => {
4834
4835
  let w = N(v);
@@ -4844,7 +4845,7 @@ const gl = /* @__PURE__ */ Q({
4844
4845
  }, Z = (v) => {
4845
4846
  d = R.getHeight(a.value), p = a.value.scrollHeight;
4846
4847
  let w = le();
4847
- b.value.height = w, b.value.top = f(r.value.scrollTop, w);
4848
+ b.value.height = w, b.value.top = g(r.value.scrollTop, w);
4848
4849
  }, ie = (v) => {
4849
4850
  let w = v.target;
4850
4851
  return parseInt(w.style.top);
@@ -4857,9 +4858,9 @@ const gl = /* @__PURE__ */ Q({
4857
4858
  h.value = !1;
4858
4859
  };
4859
4860
  return be(() => {
4860
- P(), g.scroll(a.value, ce), g.drag(c.value, { init: ie, handler: re }), g.observe(a.value, Z), g.mouseDown(c.value, ke, Se);
4861
+ P(), f.scroll(a.value, ce), f.drag(c.value, { init: ie, handler: re }), f.observe(a.value, Z), f.mouseDown(c.value, ke, Se);
4861
4862
  }), xe(() => {
4862
- g.dispose();
4863
+ f.dispose();
4863
4864
  }), X(() => r.value.scrollTop, (v, w) => {
4864
4865
  let j = N(v);
4865
4866
  L(j);
@@ -4873,7 +4874,7 @@ const gl = /* @__PURE__ */ Q({
4873
4874
  ref: a,
4874
4875
  class: "scroller-container"
4875
4876
  }, [
4876
- fe(v.$slots, "default")
4877
+ ge(v.$slots, "default")
4877
4878
  ], 512),
4878
4879
  D("div", {
4879
4880
  ref_key: "trackRef",
@@ -4886,7 +4887,7 @@ const gl = /* @__PURE__ */ Q({
4886
4887
  ref_key: "thumbRef",
4887
4888
  ref: c,
4888
4889
  class: "scroller-thumb",
4889
- style: ge({ top: `${y(b).top}px`, height: `${y(b).height}px` })
4890
+ style: fe({ top: `${y(b).top}px`, height: `${y(b).height}px` })
4890
4891
  }, pe(y(r).scrollTop), 5)
4891
4892
  ], 512)
4892
4893
  ], 2));
@@ -4908,8 +4909,8 @@ const gl = /* @__PURE__ */ Q({
4908
4909
  };
4909
4910
  return xe(() => {
4910
4911
  clearInterval(i);
4911
- }), t({ restart: c, start: o, stop: h, reset: d }), (p, g) => (O(), _("span", null, [
4912
- fe(p.$slots, "default"),
4912
+ }), t({ restart: c, start: o, stop: h, reset: d }), (p, f) => (O(), _("span", null, [
4913
+ ge(p.$slots, "default"),
4913
4914
  xt(pe(y(te).format(y(r), "HH:mm:ss SSS")), 1)
4914
4915
  ]));
4915
4916
  }
@@ -4922,17 +4923,17 @@ const gl = /* @__PURE__ */ Q({
4922
4923
  },
4923
4924
  emits: ["mounted", "change", "scroll", "update:modelValue"],
4924
4925
  setup(u, { expose: t, emit: e }) {
4925
- let s = e, l = u, { config: r, border: i, modelValue: a } = se(l), o = null, c = null, h = null, d = I(), { app: p } = H.sys, g = (f) => f == "default" ? null : "vs-dark", b = (f) => {
4926
- if (H.editor.completions[f])
4926
+ let s = e, l = u, { config: r, border: i, modelValue: a } = se(l), o = null, c = null, h = null, d = I(), { app: p } = H.sys, f = (g) => g == "default" ? null : "vs-dark", b = (g) => {
4927
+ if (H.editor.completions[g])
4927
4928
  return;
4928
- let C = o.languages.getLanguages().find(($) => $.id == f);
4929
+ let C = o.languages.getLanguages().find(($) => $.id == g);
4929
4930
  if (!C)
4930
4931
  return;
4931
4932
  let m = C.loader;
4932
4933
  m && m().then(($) => {
4933
- H.editor.completions[f] || (N($, f), H.editor.completions[f] = !0);
4934
+ H.editor.completions[g] || (N($, g), H.editor.completions[g] = !0);
4934
4935
  });
4935
- }, N = (f, C) => o.languages.registerCompletionItemProvider(C, {
4936
+ }, N = (g, C) => o.languages.registerCompletionItemProvider(C, {
4936
4937
  provideCompletionItems: ($, L) => {
4937
4938
  let P = $.getWordUntilPosition(L), Z = {
4938
4939
  startLineNumber: L.lineNumber,
@@ -4943,7 +4944,7 @@ const gl = /* @__PURE__ */ Q({
4943
4944
  const re = ["builtinFunctions", "keywords", "operators"];
4944
4945
  for (let ke = 0; ke < re.length; ke++) {
4945
4946
  const Se = re[ke];
4946
- let v = f.language[Se];
4947
+ let v = g.language[Se];
4947
4948
  v && v.forEach((w) => {
4948
4949
  let j = w.toLowerCase(), q = {
4949
4950
  label: j,
@@ -4958,8 +4959,8 @@ const gl = /* @__PURE__ */ Q({
4958
4959
  return { suggestions: ie };
4959
4960
  }
4960
4961
  }), V = () => {
4961
- let f = null;
4962
- r.value.schema && (f = r.value.category + "/" + W.getUniqueId(), H.tryAddSchema(f, r.value.category, r.value.schema));
4962
+ let g = null;
4963
+ r.value.schema && (g = r.value.category + "/" + W.getUniqueId(), H.tryAddSchema(g, r.value.category, r.value.schema));
4963
4964
  let C = {
4964
4965
  validate: !0,
4965
4966
  allowComments: !0,
@@ -4970,7 +4971,7 @@ const gl = /* @__PURE__ */ Q({
4970
4971
  //允许末尾逗号
4971
4972
  };
4972
4973
  o.languages.json.jsonDefaults.setDiagnosticsOptions(C), b(r.value.language);
4973
- let m = f ? o.Uri.parse(f) : null;
4974
+ let m = g ? o.Uri.parse(g) : null;
4974
4975
  h = o.editor.createModel(a.value, r.value.language, m);
4975
4976
  let $ = {
4976
4977
  tabSize: 2,
@@ -4983,7 +4984,7 @@ const gl = /* @__PURE__ */ Q({
4983
4984
  //默认已启用代码图
4984
4985
  scrollbar: { verticalScrollbarSize: 0 },
4985
4986
  //关闭最右侧垂直滚动条
4986
- theme: g(p.theme),
4987
+ theme: f(p.theme),
4987
4988
  automaticLayout: !0,
4988
4989
  //根据父元素自动布局
4989
4990
  model: h
@@ -5014,21 +5015,21 @@ const gl = /* @__PURE__ */ Q({
5014
5015
  }, le = () => c;
5015
5016
  return xe(() => {
5016
5017
  h == null || h.dispose(), c == null || c.dispose();
5017
- }), X(() => p.theme, (f, C) => {
5018
- let m = g(f);
5018
+ }), X(() => p.theme, (g, C) => {
5019
+ let m = f(g);
5019
5020
  o.editor.setTheme(m);
5020
- }), X(() => p.language, (f, C) => {
5021
- }), X(() => a.value, (f, C) => {
5021
+ }), X(() => p.language, (g, C) => {
5022
+ }), X(() => a.value, (g, C) => {
5022
5023
  if (!c)
5023
5024
  return;
5024
5025
  let m = c.getValue();
5025
- f != m && c.setValue(f ?? "");
5026
- }), X(() => r.value.language, (f, C) => {
5026
+ g != m && c.setValue(g ?? "");
5027
+ }), X(() => r.value.language, (g, C) => {
5027
5028
  if (!c)
5028
5029
  return;
5029
5030
  let m = c.getModel();
5030
- o.editor.setModelLanguage(m, f), b(f);
5031
- }), t({ layout: ce, getEditor: le }), (f, C) => (O(), He(gl, null, {
5031
+ o.editor.setModelLanguage(m, g), b(g);
5032
+ }), t({ layout: ce, getEditor: le }), (g, C) => (O(), He(fl, null, {
5032
5033
  default: Ne(() => [
5033
5034
  D("div", {
5034
5035
  ref_key: "monacoEditorRef",
@@ -5039,7 +5040,7 @@ const gl = /* @__PURE__ */ Q({
5039
5040
  _: 1
5040
5041
  }));
5041
5042
  }
5042
- }), fr = /* @__PURE__ */ Q({
5043
+ }), gr = /* @__PURE__ */ Q({
5043
5044
  __name: "Compare",
5044
5045
  props: {
5045
5046
  inline: { type: Boolean, default: !1 },
@@ -5049,8 +5050,8 @@ const gl = /* @__PURE__ */ Q({
5049
5050
  },
5050
5051
  emits: ["update:modelValue", "update:original", "change"],
5051
5052
  setup(u, { emit: t }) {
5052
- let e = t, s = u, { inline: l, language: r, original: i, modelValue: a } = se(s), o = null, c = null, h = null, d = null, p = null, g = null, b = I(), N = I(), { app: V } = H.sys, ce = (f) => {
5053
- c = f.editor.createModel(i.value, r.value), h = f.editor.createModel(a.value, r.value), o = f.editor.createDiffEditor(b.value, {
5053
+ let e = t, s = u, { inline: l, language: r, original: i, modelValue: a } = se(s), o = null, c = null, h = null, d = null, p = null, f = null, b = I(), N = I(), { app: V } = H.sys, ce = (g) => {
5054
+ c = g.editor.createModel(i.value, r.value), h = g.editor.createModel(a.value, r.value), o = g.editor.createDiffEditor(b.value, {
5054
5055
  originalEditable: !0,
5055
5056
  automaticLayout: !0,
5056
5057
  renderSideBySide: !l.value,
@@ -5063,29 +5064,29 @@ const gl = /* @__PURE__ */ Q({
5063
5064
  let m = p.getValue();
5064
5065
  e("update:modelValue", m);
5065
5066
  });
5066
- }, le = (f) => f == "default" ? null : "vs-dark";
5067
+ }, le = (g) => g == "default" ? null : "vs-dark";
5067
5068
  return be(async () => {
5068
- g = await me.getMonaco(), ce(g);
5069
- }), X(() => V.theme, (f, C) => {
5070
- let m = le(f);
5071
- g.editor.setTheme(m);
5072
- }), X(() => r.value, (f, C) => {
5073
- c && g.editor.setModelLanguage(c, f), h && g.editor.setModelLanguage(h, f);
5074
- }), X(() => i.value, (f, C) => {
5069
+ f = await me.getMonaco(), ce(f);
5070
+ }), X(() => V.theme, (g, C) => {
5071
+ let m = le(g);
5072
+ f.editor.setTheme(m);
5073
+ }), X(() => r.value, (g, C) => {
5074
+ c && f.editor.setModelLanguage(c, g), h && f.editor.setModelLanguage(h, g);
5075
+ }), X(() => i.value, (g, C) => {
5075
5076
  if (!c)
5076
5077
  return;
5077
5078
  let m = c.getValue();
5078
- f != m && c.setValue(f ?? "");
5079
- }), X(() => a.value, (f, C) => {
5079
+ g != m && c.setValue(g ?? "");
5080
+ }), X(() => a.value, (g, C) => {
5080
5081
  if (!h)
5081
5082
  return;
5082
5083
  let m = h.getValue();
5083
- f != m && h.setValue(f ?? "");
5084
- }), (f, C) => (O(), _("div", {
5084
+ g != m && h.setValue(g ?? "");
5085
+ }), (g, C) => (O(), _("div", {
5085
5086
  ref_key: "compareRef",
5086
5087
  ref: b,
5087
5088
  class: "ha-compare",
5088
- style: ge(y(N))
5089
+ style: fe(y(N))
5089
5090
  }, null, 4));
5090
5091
  }
5091
5092
  }), ze = (u, t) => {
@@ -5099,7 +5100,7 @@ function wl(u, t) {
5099
5100
  }
5100
5101
  const bl = /* @__PURE__ */ ze(yl, [["render", wl]]), xl = { class: "ha-rich-text" }, kl = /* @__PURE__ */ Et('<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), Sl = [
5101
5102
  kl
5102
- ], gr = /* @__PURE__ */ Q({
5103
+ ], fr = /* @__PURE__ */ Q({
5103
5104
  __name: "RichText",
5104
5105
  props: /* @__PURE__ */ Ke({
5105
5106
  options: {}
@@ -5109,7 +5110,7 @@ const bl = /* @__PURE__ */ ze(yl, [["render", wl]]), xl = { class: "ha-rich-text
5109
5110
  }),
5110
5111
  emits: /* @__PURE__ */ Ke(["change", "scroll"], ["update:modelValue"]),
5111
5112
  setup(u, { expose: t, emit: e }) {
5112
- let s = e, l = u, { options: r } = se(l), i = et(u, "modelValue"), a, o = null, c = null, h = !1, d = !1, p = I(), g = I(), b = I(), N = I(!1), V = I({ style: null, options: { scrollTop: 0 } }), ce = (m) => {
5113
+ let s = e, l = u, { options: r } = se(l), i = et(u, "modelValue"), a, o = null, c = null, h = !1, d = !1, p = I(), f = I(), b = I(), N = I(!1), V = I({ style: null, options: { scrollTop: 0 } }), ce = (m) => {
5113
5114
  let $ = te.getDateString(), L = getSelection(), P = L.getRangeAt(0), Z = P.startContainer;
5114
5115
  if (Z.nodeName == "#text")
5115
5116
  Z.insertData(P.startOffset, $), P.setStart(Z, P.startOffset + $.length), L.removeAllRanges(), L.addRange(P);
@@ -5125,18 +5126,18 @@ const bl = /* @__PURE__ */ ze(yl, [["render", wl]]), xl = { class: "ha-rich-text
5125
5126
  return;
5126
5127
  }
5127
5128
  c = m, s("scroll", m);
5128
- }, f = () => `height: calc(100% - ${R.getHeight(g.value)}px)`, C = async () => {
5129
+ }, g = () => `height: calc(100% - ${R.getHeight(f.value)}px)`, C = async () => {
5129
5130
  let m = await me.getQuill();
5130
5131
  a = new m(p.value, {
5131
5132
  modules: {
5132
5133
  toolbar: {
5133
- container: g.value,
5134
+ container: f.value,
5134
5135
  handlers: { date: ce }
5135
5136
  }
5136
5137
  },
5137
5138
  theme: "snow"
5138
5139
  }), N.value = !0, We(() => {
5139
- V.value.style = f();
5140
+ V.value.style = g();
5140
5141
  }), r.value.readonly && a.disable(), o = p.value.querySelector(".ql-editor"), o.innerHTML = i.value, V.value.options.scrollTop = r.value.scrollTop, a.on("text-change", ($, L, P) => {
5141
5142
  o.innerHTML != i.value && (h = !0, i.value = o.innerHTML);
5142
5143
  }), o.addEventListener("paste", ($) => {
@@ -5156,7 +5157,7 @@ const bl = /* @__PURE__ */ ze(yl, [["render", wl]]), xl = { class: "ha-rich-text
5156
5157
  }), t({}), (m, $) => (O(), _("div", xl, [
5157
5158
  kt(D("div", {
5158
5159
  ref_key: "toolbarRef",
5159
- ref: g
5160
+ ref: f
5160
5161
  }, Sl, 512), [
5161
5162
  [St, y(N)]
5162
5163
  ]),
@@ -5166,7 +5167,7 @@ const bl = /* @__PURE__ */ ze(yl, [["render", wl]]), xl = { class: "ha-rich-text
5166
5167
  class: "ql-body",
5167
5168
  options: y(V).options,
5168
5169
  onScroll: y(le),
5169
- style: ge(y(V).style)
5170
+ style: fe(y(V).style)
5170
5171
  }, {
5171
5172
  default: Ne(() => [
5172
5173
  D("div", {
@@ -5259,7 +5260,7 @@ const Dl = { class: "ha-condition" }, Il = /* @__PURE__ */ Q({
5259
5260
  }), jl = {}, Rl = { class: "ha-col" };
5260
5261
  function _l(u, t) {
5261
5262
  return O(), _("div", Rl, [
5262
- fe(u.$slots, "default")
5263
+ ge(u.$slots, "default")
5263
5264
  ]);
5264
5265
  }
5265
5266
  const vr = /* @__PURE__ */ ze(jl, [["render", _l]]), wr = /* @__PURE__ */ Q({
@@ -5272,7 +5273,7 @@ const vr = /* @__PURE__ */ ze(jl, [["render", _l]]), wr = /* @__PURE__ */ Q({
5272
5273
  return (s, l) => (O(), _("div", {
5273
5274
  class: Ae({ "ha-container": y(e) })
5274
5275
  }, [
5275
- fe(s.$slots, "default")
5276
+ ge(s.$slots, "default")
5276
5277
  ], 2));
5277
5278
  }
5278
5279
  }), br = /* @__PURE__ */ Q({
@@ -5288,9 +5289,9 @@ const vr = /* @__PURE__ */ ze(jl, [["render", _l]]), wr = /* @__PURE__ */ Q({
5288
5289
  });
5289
5290
  return (r, i) => (O(), _("div", {
5290
5291
  class: Ae(["ha-row", y(s)]),
5291
- style: ge(y(l))
5292
+ style: fe(y(l))
5292
5293
  }, [
5293
- fe(r.$slots, "default")
5294
+ ge(r.$slots, "default")
5294
5295
  ], 6));
5295
5296
  }
5296
5297
  }), xr = /* @__PURE__ */ Q({
@@ -5326,7 +5327,7 @@ const vr = /* @__PURE__ */ ze(jl, [["render", _l]]), wr = /* @__PURE__ */ Q({
5326
5327
  }), (a, o) => y(e) ? (O(), _("div", {
5327
5328
  key: 0,
5328
5329
  class: "ha-progress",
5329
- style: ge({ width: y(s) + "%" })
5330
+ style: fe({ width: y(s) + "%" })
5330
5331
  }, null, 4)) : Ze("", !0);
5331
5332
  }
5332
5333
  }), Bl = { class: "progress-tips" }, Pl = { class: "progress-tip info" }, Ul = { class: "progress-tip success" }, Fl = { class: "progress-tip error" }, Ml = { class: "progress-chart" }, Nl = { class: "progress-bar" }, Vl = { class: "progress-text" }, kr = /* @__PURE__ */ Q({
@@ -5351,7 +5352,7 @@ const vr = /* @__PURE__ */ ze(jl, [["render", _l]]), wr = /* @__PURE__ */ Q({
5351
5352
  D("div", Nl, [
5352
5353
  D("div", {
5353
5354
  class: "progress-percentage",
5354
- style: ge({ width: y(l) + "%" })
5355
+ style: fe({ width: y(l) + "%" })
5355
5356
  }, null, 4)
5356
5357
  ]),
5357
5358
  D("div", Vl, pe(y(i)) + "%", 1)
@@ -5373,7 +5374,11 @@ const vr = /* @__PURE__ */ ze(jl, [["render", _l]]), wr = /* @__PURE__ */ Q({
5373
5374
  let Er = async (u) => {
5374
5375
  u == null && (u = new cl()), await Zs(u), await Ms();
5375
5376
  let t = await Fs.getSso(), e = H.sys.app, s = { baseUrl: u.baseUrl, language: e.language, user: t, platform: "pc" }, l = M.serialize(s);
5376
- await T.open(l), await Hs(), T.onResponse = async (r) => {
5377
+ debugger;
5378
+ await T.open(l), await Hs();
5379
+ debugger;
5380
+ T.onResponse = async (r) => {
5381
+ debugger;
5377
5382
  let i = r.data;
5378
5383
  return Ps.add(i.code, i.message, i.stack, i.elapsed), Promise.resolve();
5379
5384
  };
@@ -5388,10 +5393,10 @@ export {
5388
5393
  cl as CreateFeOptions,
5389
5394
  Pe as DictionaryHelper,
5390
5395
  R as DomHelper,
5391
- fl as DragEvent,
5396
+ gl as DragEvent,
5392
5397
  Xt as EncoderFactory,
5393
5398
  ae as EventHelper,
5394
- gt as EventUtility,
5399
+ ft as EventUtility,
5395
5400
  Zt as ExcelFactory,
5396
5401
  ts as ExplainerFactory,
5397
5402
  E as Factories,
@@ -5399,15 +5404,15 @@ export {
5399
5404
  Ie as FileHelper,
5400
5405
  pr as HaCode,
5401
5406
  vr as HaCol,
5402
- fr as HaCompare,
5407
+ gr as HaCompare,
5403
5408
  Il as HaCondition,
5404
5409
  yr as HaConditionGroup,
5405
5410
  wr as HaContainer,
5406
5411
  ir as HaEmpty,
5407
- gl as HaFill,
5412
+ fl as HaFill,
5408
5413
  bl as HaOption,
5409
5414
  xr as HaProgress,
5410
- gr as HaRichText,
5415
+ fr as HaRichText,
5411
5416
  br as HaRow,
5412
5417
  ml as HaScroller,
5413
5418
  Be as HaSelect,
@@ -5420,7 +5425,7 @@ export {
5420
5425
  hs as HttpFactory,
5421
5426
  it as HttpRequest,
5422
5427
  Ye as HttpResponse,
5423
- gs as I18nFactory,
5428
+ fs as I18nFactory,
5424
5429
  Ot as ImageHelper,
5425
5430
  M as JsonHelper,
5426
5431
  or as KeyboardUtility,
@@ -5432,7 +5437,7 @@ export {
5432
5437
  we as MountHelper,
5433
5438
  cr as MouseUtility,
5434
5439
  Y as ObjectHelper,
5435
- ft as Position,
5440
+ gt as Position,
5436
5441
  Nt as ProviderFactory,
5437
5442
  tr as ProviderTable,
5438
5443
  mr as Range,
@@ -0,0 +1,25 @@
1
+ import { IMessenger } from "../drivers";
2
+ /**
3
+ * 初始化选项
4
+ */
5
+ declare class CreateFeOptions {
6
+ /**
7
+ * 消息发送对象
8
+ */
9
+ messenger: IMessenger;
10
+ /**
11
+ * 基准请求地址
12
+ */
13
+ baseUrl: string;
14
+ /**
15
+ * 自定义语言包
16
+ */
17
+ lang: {
18
+ [key: string]: any;
19
+ };
20
+ /**
21
+ * CDN类型
22
+ */
23
+ cdn: 'Local' | "Third" | string;
24
+ }
25
+ export default CreateFeOptions;
@@ -0,0 +1,2 @@
1
+ import CreateFeOptions from "./CreateFeOptions";
2
+ export { CreateFeOptions };