halo-fe 1.0.26 → 1.0.27
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +789 -708
- package/dist/style.css +1 -1
- package/esm/coms/@types/SocketProgressProps.d.ts +8 -0
- package/esm/coms/index.d.ts +1 -0
- package/esm/coms/layouts/Row.vue.d.ts +6 -2
- package/esm/coms/texts/@types/DanceProps.d.ts +14 -0
- package/esm/coms/texts/@types/index.d.ts +2 -0
- package/esm/coms/texts/Dance.vue.d.ts +5 -0
- package/esm/coms/texts/index.d.ts +2 -0
- package/esm/drivers/https/Http.d.ts +1 -1
- package/esm/drivers/https/implements/FeiShuHttp.d.ts +8 -0
- package/esm/drivers/i18ns/I18n.d.ts +1 -1
- package/esm/drivers/i18ns/II18n.d.ts +1 -1
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
- package/esm/drivers/sockets/entities/SocketResponse.d.ts +18 -2
- package/esm/drivers/sockets/entities/index.d.ts +1 -1
- package/esm/drivers/templates/ITemplate.d.ts +1 -1
- package/esm/drivers/templates/Template.d.ts +1 -1
- package/esm/drivers/templates/implement/LiquidTemplate.d.ts +1 -1
- package/esm/drivers/util/implements/ObjectUtil.d.ts +1 -1
- package/esm/drivers/util/implements/TimeUtil.d.ts +1 -1
- package/esm/repos/RepoFactory.d.ts +3 -3
- package/esm/repos/entities/KeyboardType.d.ts +8 -0
- package/esm/repos/entities/index.d.ts +2 -0
- package/esm/repos/implements/ModuleRepo.d.ts +36 -0
- package/esm/repos/index.d.ts +4 -3
- package/package.json +5 -5
package/dist/main.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var n = (c, i, e) =>
|
4
|
-
import { reactive as
|
1
|
+
var at = Object.defineProperty;
|
2
|
+
var ot = (c, i, e) => i in c ? at(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
|
3
|
+
var n = (c, i, e) => ot(c, typeof i != "symbol" ? i + "" : i, e);
|
4
|
+
import { reactive as _e, defineAsyncComponent as ut, watch as W, defineComponent as P, toRefs as z, openBlock as C, createElementBlock as T, createElementVNode as S, toDisplayString as N, unref as f, renderSlot as Y, createCommentVNode as ye, ref as U, onMounted as ae, onUnmounted as oe, normalizeStyle as ee, normalizeClass as ce, createTextVNode as Pe, createBlock as Be, withCtx as ue, mergeModels as He, useModel as Fe, nextTick as Ue, withDirectives as ct, createStaticVNode as dt, vShow as pt, createVNode as re, isRef as ve, Fragment as Ne, renderList as Ve, computed as ge } from "vue";
|
5
5
|
import { L as ht } from "./assets/liquidjs-C2HVw1Ra.js";
|
6
|
-
import { _ as
|
6
|
+
import { _ as we } from "./assets/underscore-B0BCaBxV.js";
|
7
7
|
import { F as gt } from "./assets/file-saver-Cnua3zoa.js";
|
8
8
|
import { a as ft } from "./assets/clone-DtpAsLoe.js";
|
9
9
|
import { _ as yt } from "./assets/underscore.string-oDfap0sE.js";
|
@@ -81,11 +81,11 @@ class D {
|
|
81
81
|
*/
|
82
82
|
async loadDriverAsync(i) {
|
83
83
|
let e = { conditions: [{ name: "Id", value: i }] };
|
84
|
-
return
|
84
|
+
return _.post("/ctl_driver/set", e).then((t) => Promise.resolve(t.data[0]));
|
85
85
|
}
|
86
86
|
//#endregion
|
87
87
|
}
|
88
|
-
class
|
88
|
+
class qe {
|
89
89
|
constructor() {
|
90
90
|
n(this, "type");
|
91
91
|
}
|
@@ -158,11 +158,11 @@ class d {
|
|
158
158
|
return y.util.sign;
|
159
159
|
}
|
160
160
|
}
|
161
|
-
class mt extends
|
161
|
+
class mt extends qe {
|
162
162
|
constructor() {
|
163
163
|
super(...arguments);
|
164
164
|
//#region 属性
|
165
|
-
n(this, "type", "
|
165
|
+
n(this, "type", "Module");
|
166
166
|
//#endregion
|
167
167
|
//#region 默认行
|
168
168
|
/**
|
@@ -176,6 +176,7 @@ class mt extends Ne {
|
|
176
176
|
}
|
177
177
|
return t;
|
178
178
|
});
|
179
|
+
//#endregion
|
179
180
|
//#region 展开
|
180
181
|
/**
|
181
182
|
* 展开数据和架构信息
|
@@ -191,8 +192,20 @@ class mt extends Ne {
|
|
191
192
|
}
|
192
193
|
return t;
|
193
194
|
});
|
195
|
+
//#endregion
|
196
|
+
//#region 触发事件
|
197
|
+
/**
|
198
|
+
* 触发键盘事件
|
199
|
+
* 统一封装,方便重构
|
200
|
+
*/
|
201
|
+
n(this, "triggerKeyboardHandler", (e, t, r) => {
|
202
|
+
if (e == null || e.keyboardHandler == null)
|
203
|
+
return !1;
|
204
|
+
e.keyboardHandler(t, r);
|
205
|
+
});
|
194
206
|
}
|
195
207
|
//#endregion
|
208
|
+
//#region 提示
|
196
209
|
/**
|
197
210
|
* 更新提示内容
|
198
211
|
*/
|
@@ -251,7 +264,7 @@ class mt extends Ne {
|
|
251
264
|
}
|
252
265
|
//#endregion
|
253
266
|
}
|
254
|
-
class vt extends
|
267
|
+
class vt extends qe {
|
255
268
|
constructor() {
|
256
269
|
super(...arguments);
|
257
270
|
//#region 属性
|
@@ -301,7 +314,7 @@ class vt extends Ne {
|
|
301
314
|
*/
|
302
315
|
async loadAppsAsync(e = !1) {
|
303
316
|
if (!this.loading.apps && !(!e && this.loaded.apps))
|
304
|
-
return this.loading.apps = !0,
|
317
|
+
return this.loading.apps = !0, _.post("/app/options").then((t) => {
|
305
318
|
this.apps = t.data, this.loaded.apps = !0;
|
306
319
|
}).finally(() => {
|
307
320
|
this.loading.apps = !1;
|
@@ -312,7 +325,7 @@ class vt extends Ne {
|
|
312
325
|
*/
|
313
326
|
async loadEnvsAsync(e = !1) {
|
314
327
|
if (!this.loading.envs && (this.loading.envs = !0, !(!e && this.loaded.envs)))
|
315
|
-
return
|
328
|
+
return _.post("/env/options").then((t) => {
|
316
329
|
this.envs = t.data, this.loaded.envs = !0;
|
317
330
|
}).finally(() => {
|
318
331
|
this.loading.envs = !1;
|
@@ -327,7 +340,7 @@ class vt extends Ne {
|
|
327
340
|
let s = {
|
328
341
|
conditions: [{ name: "App", value: e }, { name: "Env", value: t }, { name: "Kind", value: r }]
|
329
342
|
};
|
330
|
-
return
|
343
|
+
return _.post("/app/driver", s).then((l) => Promise.resolve(l.data));
|
331
344
|
}
|
332
345
|
//#endregion
|
333
346
|
//#region 语言
|
@@ -335,19 +348,19 @@ class vt extends Ne {
|
|
335
348
|
* 查询代码语言和文本语言映射关系
|
336
349
|
*/
|
337
350
|
async loadCodeLanguageAsync(e = !1) {
|
338
|
-
let t = () => this.codeLanguages != null && !e ? Promise.resolve(this.codeLanguages) :
|
351
|
+
let t = () => this.codeLanguages != null && !e ? Promise.resolve(this.codeLanguages) : _.post("/code/language").then((s) => (this.codeLanguages = s.data, this.codeLanguages));
|
339
352
|
return await this.task.concurrent(t);
|
340
353
|
}
|
341
354
|
/**
|
342
355
|
* 查询驱动程序和文本语言映射关系
|
343
356
|
*/
|
344
357
|
async loadDriverLanguageAsync(e = !1) {
|
345
|
-
let t = () => this.providerLanguages != null && !e ? Promise.resolve(this.providerLanguages) :
|
358
|
+
let t = () => this.providerLanguages != null && !e ? Promise.resolve(this.providerLanguages) : _.post("/driver/language").then((s) => (this.providerLanguages = s.data, this.providerLanguages));
|
346
359
|
return await this.task.concurrent(t);
|
347
360
|
}
|
348
361
|
//#endregion
|
349
362
|
}
|
350
|
-
class
|
363
|
+
class wt {
|
351
364
|
constructor() {
|
352
365
|
n(this, "type", "Setting");
|
353
366
|
//#endregion
|
@@ -362,15 +375,15 @@ class bt {
|
|
362
375
|
this[e] = i[e];
|
363
376
|
}
|
364
377
|
}
|
365
|
-
class
|
378
|
+
class bt extends D {
|
366
379
|
open() {
|
367
|
-
super.open(), super.types = [mt, vt,
|
380
|
+
super.open(), super.types = [mt, vt, wt];
|
368
381
|
}
|
369
382
|
/**
|
370
|
-
*
|
383
|
+
* 模块仓储
|
371
384
|
*/
|
372
|
-
get
|
373
|
-
return this.createWithCache("
|
385
|
+
get module() {
|
386
|
+
return this.createWithCache("Module");
|
374
387
|
}
|
375
388
|
/**
|
376
389
|
* 查询仓储
|
@@ -387,10 +400,11 @@ class wt extends D {
|
|
387
400
|
return this.createWithCache("Setting");
|
388
401
|
}
|
389
402
|
}
|
390
|
-
|
391
|
-
|
403
|
+
var kt = /* @__PURE__ */ ((c) => (c[c.ctrlS = 0] = "ctrlS", c[c.ctrlEnter = 1] = "ctrlEnter", c))(kt || {});
|
404
|
+
let xt = {}, At = {}, We = {}, St = async () => {
|
405
|
+
xt = y.repo.module, At = _e(y.repo.query), We = y.repo.setting;
|
392
406
|
};
|
393
|
-
class
|
407
|
+
class _t {
|
394
408
|
constructor() {
|
395
409
|
/**
|
396
410
|
* 默认背景
|
@@ -418,17 +432,17 @@ class St {
|
|
418
432
|
n(this, "cdn", "Local");
|
419
433
|
}
|
420
434
|
}
|
421
|
-
class
|
435
|
+
class Ct {
|
422
436
|
constructor() {
|
423
437
|
/**
|
424
438
|
* 用户应用配置
|
425
439
|
*/
|
426
|
-
n(this, "app", new
|
440
|
+
n(this, "app", new _t());
|
427
441
|
}
|
428
442
|
}
|
429
|
-
class
|
443
|
+
class ze {
|
430
444
|
}
|
431
|
-
class
|
445
|
+
class Ke extends ze {
|
432
446
|
constructor() {
|
433
447
|
super(...arguments);
|
434
448
|
//#region 属性
|
@@ -436,7 +450,7 @@ class We extends qe {
|
|
436
450
|
/**
|
437
451
|
* 用户系统配置
|
438
452
|
*/
|
439
|
-
n(this, "sys", new
|
453
|
+
n(this, "sys", new Ct());
|
440
454
|
/**
|
441
455
|
* 文件布局方式
|
442
456
|
*/
|
@@ -472,7 +486,7 @@ class We extends qe {
|
|
472
486
|
d.object.addProperties(this, [s.kind, s.type], a);
|
473
487
|
}
|
474
488
|
let t = this.sys.app, r = document.documentElement;
|
475
|
-
d.dom.removeClass(r,
|
489
|
+
d.dom.removeClass(r, Qe.theme), d.dom.addClass(r, t.theme), d.mount.emit("theme", t.theme), d.dom.addClass(r, t.layout), this.setBackground(t.background), d.dom.addStyle(r, "font-family", t.font);
|
476
490
|
});
|
477
491
|
}
|
478
492
|
/**
|
@@ -530,19 +544,19 @@ class We extends qe {
|
|
530
544
|
if (s)
|
531
545
|
return Promise.resolve(s);
|
532
546
|
}
|
533
|
-
return
|
547
|
+
return _.get(`/config/query?kind=${e}&type=${t}`).then((s) => Promise.resolve(s.data));
|
534
548
|
}
|
535
549
|
/**
|
536
550
|
* 全量保存用户配置
|
537
551
|
*/
|
538
552
|
async saveAsync(e, t, r, s = !0) {
|
539
|
-
return s && await (await y.provider.getDefaultAsync(e)).saveAsync(e, t, r),
|
553
|
+
return s && await (await y.provider.getDefaultAsync(e)).saveAsync(e, t, r), _.post(`/config/save?kind=${e}&type=${t}`, r).then((l) => Promise.resolve(!0));
|
540
554
|
}
|
541
555
|
/**
|
542
556
|
* 部分保存用户配置
|
543
557
|
*/
|
544
558
|
async patchAsync(e, t, r) {
|
545
|
-
return
|
559
|
+
return _.patchAsync(`/config/save?kind=${e}&type=${t}`, r).then((s) => Promise.resolve(!0));
|
546
560
|
}
|
547
561
|
//#endregion
|
548
562
|
/**
|
@@ -553,7 +567,7 @@ class We extends qe {
|
|
553
567
|
return this.sys.app.language || e || "zh-cn";
|
554
568
|
}
|
555
569
|
}
|
556
|
-
class
|
570
|
+
class Tt {
|
557
571
|
constructor() {
|
558
572
|
/**
|
559
573
|
* 环境变量
|
@@ -567,7 +581,7 @@ class Ct {
|
|
567
581
|
this.env = i, this.env.base = d.string.trimEnd(i.VITE_ROOT, "/");
|
568
582
|
}
|
569
583
|
}
|
570
|
-
class
|
584
|
+
class Et {
|
571
585
|
constructor() {
|
572
586
|
/**
|
573
587
|
* 日志集合
|
@@ -594,7 +608,7 @@ class Tt {
|
|
594
608
|
this.logs = [];
|
595
609
|
}
|
596
610
|
}
|
597
|
-
class
|
611
|
+
class $t {
|
598
612
|
constructor() {
|
599
613
|
//#region 属性
|
600
614
|
n(this, "loaded", !1);
|
@@ -656,13 +670,13 @@ class Et {
|
|
656
670
|
/**
|
657
671
|
* 加载设置
|
658
672
|
*/
|
659
|
-
n(this, "load", async () =>
|
673
|
+
n(this, "load", async () => _.get("/app/setting").then(({ data: i }) => {
|
660
674
|
let e = Object.keys(i);
|
661
675
|
for (let t of e) {
|
662
676
|
let r = i[t];
|
663
677
|
r && (this[t] = r);
|
664
678
|
}
|
665
|
-
return d.dom.addClass(document.documentElement, this.theme,
|
679
|
+
return d.dom.addClass(document.documentElement, this.theme, We.web.theme), d.mount.emits({ theme: this.theme }), Promise.resolve(i);
|
666
680
|
}).catch((i) => Promise.reject(i)));
|
667
681
|
}
|
668
682
|
//#endregion
|
@@ -673,7 +687,7 @@ class Et {
|
|
673
687
|
this.loaded || (await this.load(), this.loaded = !0);
|
674
688
|
}
|
675
689
|
}
|
676
|
-
class
|
690
|
+
class jt {
|
677
691
|
constructor() {
|
678
692
|
//#region 属性
|
679
693
|
/**
|
@@ -715,7 +729,7 @@ class $t {
|
|
715
729
|
* 登录后,获取用户信息
|
716
730
|
*/
|
717
731
|
async loadInfo() {
|
718
|
-
return
|
732
|
+
return _.get("/user/info").then(async ({ data: i }) => (await Z.bindAsync(i.configs), this.user = i, this.debugger = i.debugger, Promise.resolve(i)));
|
719
733
|
}
|
720
734
|
//#endregion
|
721
735
|
//#region 菜单
|
@@ -730,7 +744,7 @@ class $t {
|
|
730
744
|
* 加载服务端路由
|
731
745
|
*/
|
732
746
|
async loadMenus() {
|
733
|
-
return
|
747
|
+
return _.get("/user/menu").then(({ data: i }) => (this.menus = i, this.menusFlat = d.tree.getFlat(i, "children"), Promise.resolve(i)));
|
734
748
|
}
|
735
749
|
//#endregion
|
736
750
|
//#region 加载
|
@@ -738,7 +752,7 @@ class $t {
|
|
738
752
|
* 加载用户选项
|
739
753
|
*/
|
740
754
|
async loadUsers(i) {
|
741
|
-
return
|
755
|
+
return _.post("/sys_user/options", i).then(({ data: e }) => Promise.resolve(e));
|
742
756
|
}
|
743
757
|
//#endregion
|
744
758
|
//#region 退出
|
@@ -746,15 +760,15 @@ class $t {
|
|
746
760
|
* 退出登录
|
747
761
|
*/
|
748
762
|
async logout() {
|
749
|
-
return
|
763
|
+
return _.post("/user/logout").then(async () => {
|
750
764
|
this.user = null, this.menus = null;
|
751
765
|
let i = await this.getSso();
|
752
|
-
return await (await y.sso.createAsync(i.type)).logout(),
|
766
|
+
return await (await y.sso.createAsync(i.type)).logout(), $e.dispose(), Promise.resolve();
|
753
767
|
});
|
754
768
|
}
|
755
769
|
//#endregion
|
756
770
|
}
|
757
|
-
class
|
771
|
+
class Je extends ze {
|
758
772
|
constructor() {
|
759
773
|
super(...arguments);
|
760
774
|
//#region 属性
|
@@ -769,15 +783,15 @@ class ze extends qe {
|
|
769
783
|
if (!e)
|
770
784
|
return;
|
771
785
|
let r = { id: e, schema: t };
|
772
|
-
return
|
786
|
+
return _.get("/provider/schema", r).then(({ data: s }) => Promise.resolve(s));
|
773
787
|
}
|
774
788
|
//#endregion
|
775
789
|
}
|
776
|
-
class
|
790
|
+
class Dt extends D {
|
777
791
|
open() {
|
778
792
|
super.open(), super.types = [
|
779
|
-
new
|
780
|
-
new
|
793
|
+
new Ke(),
|
794
|
+
new Je()
|
781
795
|
];
|
782
796
|
}
|
783
797
|
static() {
|
@@ -790,8 +804,8 @@ class jt extends D {
|
|
790
804
|
return super.createWithCache("Config");
|
791
805
|
}
|
792
806
|
}
|
793
|
-
let
|
794
|
-
},
|
807
|
+
let kl = () => {
|
808
|
+
}, Qe = _e(new $t()), Z = new Ke(), xl = _e(new Je()), Al = new Tt(), Oe = new Et(), Ht = new jt();
|
795
809
|
class y {
|
796
810
|
//#endregion
|
797
811
|
//#region 驱动工厂
|
@@ -805,103 +819,103 @@ class y {
|
|
805
819
|
* CDN工厂
|
806
820
|
*/
|
807
821
|
static get cdn() {
|
808
|
-
return this.create(
|
822
|
+
return this.create(Nt);
|
809
823
|
}
|
810
824
|
/**
|
811
825
|
* 编码器工厂
|
812
826
|
*/
|
813
827
|
static get encoder() {
|
814
|
-
return this.create(
|
828
|
+
return this.create(Wt);
|
815
829
|
}
|
816
830
|
/**
|
817
831
|
* Excel工厂
|
818
832
|
*/
|
819
833
|
static get excel() {
|
820
|
-
return this.create(
|
834
|
+
return this.create(Jt);
|
821
835
|
}
|
822
836
|
/**
|
823
837
|
* Explainer工厂
|
824
838
|
*/
|
825
839
|
static get explainer() {
|
826
|
-
return this.create(
|
840
|
+
return this.create(Xt);
|
827
841
|
}
|
828
842
|
/**
|
829
843
|
* 特征工厂
|
830
844
|
*/
|
831
845
|
static get feature() {
|
832
|
-
return this.create(
|
846
|
+
return this.create(tr);
|
833
847
|
}
|
834
848
|
/**
|
835
849
|
* 哈希工厂
|
836
850
|
*/
|
837
851
|
static get hasher() {
|
838
|
-
return this.create(
|
852
|
+
return this.create(lr);
|
839
853
|
}
|
840
854
|
/**
|
841
855
|
* Http请求工厂
|
842
856
|
*/
|
843
857
|
static get http() {
|
844
|
-
return this.create(
|
858
|
+
return this.create(ur);
|
845
859
|
}
|
846
860
|
/**
|
847
861
|
* 多语言工厂
|
848
862
|
*/
|
849
863
|
static get i18n() {
|
850
|
-
return this.create(
|
864
|
+
return this.create(pr);
|
851
865
|
}
|
852
866
|
/**
|
853
867
|
* 消息提示请求工厂
|
854
868
|
*/
|
855
869
|
static get messenger() {
|
856
|
-
return this.create(
|
870
|
+
return this.create(fr);
|
857
871
|
}
|
858
872
|
/**
|
859
873
|
* 提供程序工厂
|
860
874
|
*/
|
861
875
|
static get provider() {
|
862
|
-
return this.create(
|
876
|
+
return this.create(It);
|
863
877
|
}
|
864
878
|
/**
|
865
879
|
* 签名工厂
|
866
880
|
*/
|
867
881
|
static get signer() {
|
868
|
-
return this.create(
|
882
|
+
return this.create(vr);
|
869
883
|
}
|
870
884
|
/**
|
871
885
|
* 通信工厂
|
872
886
|
*/
|
873
887
|
static get socket() {
|
874
|
-
return this.create(
|
888
|
+
return this.create(kr);
|
875
889
|
}
|
876
890
|
/**
|
877
891
|
* SSO工厂
|
878
892
|
*/
|
879
893
|
static get sso() {
|
880
|
-
return this.create(
|
894
|
+
return this.create(Er);
|
881
895
|
}
|
882
896
|
/**
|
883
897
|
* Task工厂
|
884
898
|
*/
|
885
899
|
static get task() {
|
886
|
-
return this.create(
|
900
|
+
return this.create(Dr);
|
887
901
|
}
|
888
902
|
/**
|
889
903
|
* 模板工厂
|
890
904
|
*/
|
891
905
|
static get template() {
|
892
|
-
return this.create(
|
906
|
+
return this.create(Or);
|
893
907
|
}
|
894
908
|
/**
|
895
909
|
* 工具工厂
|
896
910
|
*/
|
897
911
|
static get util() {
|
898
|
-
return this.create(
|
912
|
+
return this.create(Lr);
|
899
913
|
}
|
900
914
|
/**
|
901
915
|
* 工具类工厂
|
902
916
|
*/
|
903
917
|
static get utility() {
|
904
|
-
return this.create(
|
918
|
+
return this.create(ds);
|
905
919
|
}
|
906
920
|
//#endregion
|
907
921
|
//#region 仓储工厂
|
@@ -909,7 +923,7 @@ class y {
|
|
909
923
|
* 仓储工厂
|
910
924
|
*/
|
911
925
|
static get repo() {
|
912
|
-
return this.create(
|
926
|
+
return this.create(bt);
|
913
927
|
}
|
914
928
|
//#endregion
|
915
929
|
//#region 服务工厂
|
@@ -917,7 +931,7 @@ class y {
|
|
917
931
|
* 服务工厂
|
918
932
|
*/
|
919
933
|
static get svc() {
|
920
|
-
return this.create(
|
934
|
+
return this.create(Dt);
|
921
935
|
}
|
922
936
|
//#endregion
|
923
937
|
//#region 创建
|
@@ -940,7 +954,7 @@ class me {
|
|
940
954
|
n(this, "type");
|
941
955
|
}
|
942
956
|
}
|
943
|
-
class
|
957
|
+
class Ut extends me {
|
944
958
|
constructor() {
|
945
959
|
super(...arguments);
|
946
960
|
n(this, "type", "Json");
|
@@ -952,7 +966,7 @@ class Ht extends me {
|
|
952
966
|
return d.json.serialize(e.rows, !0);
|
953
967
|
}
|
954
968
|
}
|
955
|
-
class
|
969
|
+
class Ot extends me {
|
956
970
|
constructor() {
|
957
971
|
super(...arguments);
|
958
972
|
n(this, "type", "Mongo");
|
@@ -976,7 +990,7 @@ class Ut extends me {
|
|
976
990
|
return l;
|
977
991
|
}
|
978
992
|
}
|
979
|
-
class
|
993
|
+
class Ce {
|
980
994
|
constructor() {
|
981
995
|
//#region 属性
|
982
996
|
n(this, "type");
|
@@ -992,7 +1006,7 @@ class $e {
|
|
992
1006
|
}
|
993
1007
|
//#endregion
|
994
1008
|
}
|
995
|
-
const
|
1009
|
+
const te = class te extends Ce {
|
996
1010
|
constructor() {
|
997
1011
|
super(...arguments);
|
998
1012
|
//#region 属性
|
@@ -1034,7 +1048,7 @@ const ee = class ee extends $e {
|
|
1034
1048
|
let s = indexedDB.open(this.database);
|
1035
1049
|
s.onsuccess = (l) => {
|
1036
1050
|
let a = l.target.result;
|
1037
|
-
|
1051
|
+
te.version = a.version, this.objectStoreNames = a.objectStoreNames, t(te.version);
|
1038
1052
|
}, s.onerror = (l) => {
|
1039
1053
|
r(l.target);
|
1040
1054
|
};
|
@@ -1045,7 +1059,7 @@ const ee = class ee extends $e {
|
|
1045
1059
|
*/
|
1046
1060
|
async createAsync(e) {
|
1047
1061
|
return e == null ? Promise.resolve() : this.objectStoreNames.contains(e) ? Promise.resolve(!0) : new Promise((t, r) => {
|
1048
|
-
let s = indexedDB.open(this.database, ++
|
1062
|
+
let s = indexedDB.open(this.database, ++te.version);
|
1049
1063
|
s.onupgradeneeded = (l) => {
|
1050
1064
|
let a = l.target.result;
|
1051
1065
|
a.objectStoreNames.contains(e) || a.createObjectStore(e);
|
@@ -1061,7 +1075,7 @@ const ee = class ee extends $e {
|
|
1061
1075
|
*/
|
1062
1076
|
async openDbAsync() {
|
1063
1077
|
return new Promise((e, t) => {
|
1064
|
-
let r = indexedDB.open(this.database,
|
1078
|
+
let r = indexedDB.open(this.database, te.version);
|
1065
1079
|
r.onsuccess = (s) => {
|
1066
1080
|
let l = s.target.result;
|
1067
1081
|
e(l);
|
@@ -1178,9 +1192,9 @@ const ee = class ee extends $e {
|
|
1178
1192
|
/**
|
1179
1193
|
* 静态版本,保证所有数据库实例拿到最新版本信息
|
1180
1194
|
*/
|
1181
|
-
n(
|
1182
|
-
let ke =
|
1183
|
-
class
|
1195
|
+
n(te, "version", null);
|
1196
|
+
let ke = te;
|
1197
|
+
class Lt extends Ce {
|
1184
1198
|
constructor() {
|
1185
1199
|
super(...arguments);
|
1186
1200
|
//#region 属性
|
@@ -1251,7 +1265,7 @@ class Ot extends $e {
|
|
1251
1265
|
}
|
1252
1266
|
//#endregion
|
1253
1267
|
}
|
1254
|
-
class
|
1268
|
+
class Rt extends Ce {
|
1255
1269
|
constructor() {
|
1256
1270
|
super(...arguments);
|
1257
1271
|
//#region 属性
|
@@ -1294,13 +1308,13 @@ class Lt extends $e {
|
|
1294
1308
|
}
|
1295
1309
|
//#endregion
|
1296
1310
|
}
|
1297
|
-
class
|
1311
|
+
class It extends D {
|
1298
1312
|
constructor() {
|
1299
1313
|
super(...arguments);
|
1300
1314
|
n(this, "_default");
|
1301
1315
|
}
|
1302
1316
|
open() {
|
1303
|
-
super.open(), super.types = [ke,
|
1317
|
+
super.open(), super.types = [ke, Lt, Rt];
|
1304
1318
|
}
|
1305
1319
|
/**
|
1306
1320
|
* 获取默认驱动程序,并自动决定创建指定名称的仓储
|
@@ -1319,7 +1333,7 @@ class Rt extends D {
|
|
1319
1333
|
return super.create("Storage");
|
1320
1334
|
}
|
1321
1335
|
}
|
1322
|
-
class
|
1336
|
+
class Le {
|
1323
1337
|
/**
|
1324
1338
|
* 获取实际SQL字段名称
|
1325
1339
|
*/
|
@@ -1336,13 +1350,13 @@ class Pe {
|
|
1336
1350
|
return e == "number" || e == "boolean" ? i : e == "object" || e == "string" ? `'${(e == "object" ? d.json.serialize(i) : i).replace(/'/g, "''")}'` : i;
|
1337
1351
|
}
|
1338
1352
|
}
|
1339
|
-
class
|
1353
|
+
class xe extends me {
|
1340
1354
|
constructor() {
|
1341
1355
|
super(...arguments);
|
1342
1356
|
n(this, "type", "Sql");
|
1343
1357
|
}
|
1344
1358
|
insert(e) {
|
1345
|
-
let { name: t, columns: r, rows: s } = e, l = e.getIdentity(), a = "", p = r.filter((h) => !h.identity).map((h) =>
|
1359
|
+
let { name: t, columns: r, rows: s } = e, l = e.getIdentity(), a = "", p = r.filter((h) => !h.identity).map((h) => Le.getSqlName(h.name)).join(", ");
|
1346
1360
|
for (let h = 0; h < s.length; h++) {
|
1347
1361
|
let g = s[h];
|
1348
1362
|
a += `INSERT INTO ${t}\r
|
@@ -1350,12 +1364,12 @@ class Ae extends me {
|
|
1350
1364
|
`, a += `VALUES\r
|
1351
1365
|
`, a += "(";
|
1352
1366
|
let m = Object.keys(g);
|
1353
|
-
for (let
|
1354
|
-
let
|
1355
|
-
if (l != null && l.name ==
|
1367
|
+
for (let k = 0; k < m.length; k++) {
|
1368
|
+
let O = m[k];
|
1369
|
+
if (l != null && l.name == O)
|
1356
1370
|
continue;
|
1357
|
-
let
|
1358
|
-
a += `${
|
1371
|
+
let B = g[O];
|
1372
|
+
a += `${Le.getValue(B)}`, k != m.length - 1 && (a += ", ");
|
1359
1373
|
}
|
1360
1374
|
a += ")", h != s.length - 1 && (a += `\r
|
1361
1375
|
\r
|
@@ -1367,24 +1381,24 @@ class Ae extends me {
|
|
1367
1381
|
return "";
|
1368
1382
|
}
|
1369
1383
|
}
|
1370
|
-
class
|
1384
|
+
class Mt extends me {
|
1371
1385
|
constructor() {
|
1372
1386
|
super(...arguments);
|
1373
1387
|
n(this, "type", "MySql");
|
1374
1388
|
}
|
1375
1389
|
insert(e) {
|
1376
|
-
return new
|
1390
|
+
return new xe().insert(e);
|
1377
1391
|
}
|
1378
1392
|
update(e) {
|
1379
|
-
return new
|
1393
|
+
return new xe().update(e);
|
1380
1394
|
}
|
1381
1395
|
}
|
1382
1396
|
class Pt extends D {
|
1383
1397
|
open() {
|
1384
|
-
super.open(), super.types = [
|
1398
|
+
super.open(), super.types = [Ut, Ot, Mt, xe];
|
1385
1399
|
}
|
1386
1400
|
}
|
1387
|
-
class
|
1401
|
+
class Sl {
|
1388
1402
|
constructor() {
|
1389
1403
|
/**
|
1390
1404
|
* 表名
|
@@ -1406,7 +1420,7 @@ class xl {
|
|
1406
1420
|
return this.columns == null || this.columns.length == 0 ? null : this.columns.find((e) => e.identity);
|
1407
1421
|
}
|
1408
1422
|
}
|
1409
|
-
class
|
1423
|
+
class Ye {
|
1410
1424
|
constructor() {
|
1411
1425
|
/**
|
1412
1426
|
* 任务实例,用于控制并发
|
@@ -1480,7 +1494,7 @@ class Je {
|
|
1480
1494
|
}
|
1481
1495
|
//#endregion
|
1482
1496
|
}
|
1483
|
-
class
|
1497
|
+
class Bt extends Ye {
|
1484
1498
|
constructor() {
|
1485
1499
|
super(...arguments);
|
1486
1500
|
//#region 属性
|
@@ -1518,7 +1532,7 @@ class Mt extends Je {
|
|
1518
1532
|
return await super.loadFilesAsync("/assets/xlsx-js-style@1.2.0", e), window.XLSX;
|
1519
1533
|
}
|
1520
1534
|
}
|
1521
|
-
class
|
1535
|
+
class Ft extends Ye {
|
1522
1536
|
constructor() {
|
1523
1537
|
super(...arguments);
|
1524
1538
|
//#region 属性
|
@@ -1567,9 +1581,9 @@ class Bt extends Je {
|
|
1567
1581
|
return await super.loadFilesAsync(`${this.jdCdn}/xlsx-js-style@1.2.0`, e), window.XLSX;
|
1568
1582
|
}
|
1569
1583
|
}
|
1570
|
-
class
|
1584
|
+
class Nt extends D {
|
1571
1585
|
open() {
|
1572
|
-
super.open(), super.types = [
|
1586
|
+
super.open(), super.types = [Bt, Ft];
|
1573
1587
|
}
|
1574
1588
|
/**
|
1575
1589
|
* 获取指定CDN实例
|
@@ -1579,7 +1593,7 @@ class Ft extends D {
|
|
1579
1593
|
return await t.openAsync(e), t;
|
1580
1594
|
}
|
1581
1595
|
}
|
1582
|
-
class
|
1596
|
+
class Xe {
|
1583
1597
|
constructor() {
|
1584
1598
|
n(this, "type");
|
1585
1599
|
}
|
@@ -1592,7 +1606,7 @@ class Qe {
|
|
1592
1606
|
return JSON.parse(e);
|
1593
1607
|
}
|
1594
1608
|
}
|
1595
|
-
class
|
1609
|
+
class Vt extends Xe {
|
1596
1610
|
constructor() {
|
1597
1611
|
super(...arguments);
|
1598
1612
|
//#region 属性
|
@@ -1614,7 +1628,7 @@ class Nt extends Qe {
|
|
1614
1628
|
return this.crypto.enc.Utf8.stringify(t);
|
1615
1629
|
}
|
1616
1630
|
}
|
1617
|
-
class
|
1631
|
+
class qt extends Xe {
|
1618
1632
|
constructor() {
|
1619
1633
|
super(...arguments);
|
1620
1634
|
n(this, "type", "Url");
|
@@ -1626,9 +1640,9 @@ class Vt extends Qe {
|
|
1626
1640
|
return decodeURIComponent(e);
|
1627
1641
|
}
|
1628
1642
|
}
|
1629
|
-
class
|
1643
|
+
class Wt extends D {
|
1630
1644
|
open() {
|
1631
|
-
super.open(), super.types = [
|
1645
|
+
super.open(), super.types = [Vt, qt];
|
1632
1646
|
}
|
1633
1647
|
/**
|
1634
1648
|
* 创建执行类型的Hash实例
|
@@ -1647,12 +1661,12 @@ class qt extends D {
|
|
1647
1661
|
return this.createWithCache("Url");
|
1648
1662
|
}
|
1649
1663
|
}
|
1650
|
-
class
|
1664
|
+
class zt {
|
1651
1665
|
constructor() {
|
1652
1666
|
n(this, "type");
|
1653
1667
|
}
|
1654
1668
|
}
|
1655
|
-
class
|
1669
|
+
class Kt extends zt {
|
1656
1670
|
constructor() {
|
1657
1671
|
super(...arguments);
|
1658
1672
|
//#region 属性
|
@@ -1677,8 +1691,8 @@ class zt extends Wt {
|
|
1677
1691
|
}), s.push(l), e.length > 0)
|
1678
1692
|
for (let h = 0; h < e.length; h++) {
|
1679
1693
|
let g = e[h], m = [];
|
1680
|
-
Object.keys(g).forEach((
|
1681
|
-
m.push(g[
|
1694
|
+
Object.keys(g).forEach((k) => {
|
1695
|
+
m.push(g[k]);
|
1682
1696
|
}), s.push(m);
|
1683
1697
|
}
|
1684
1698
|
let a = this.xlsx.utils.book_new(), o = this.xlsx.utils.json_to_sheet(s, { skipHeader: !0 });
|
@@ -1699,9 +1713,9 @@ class zt extends Wt {
|
|
1699
1713
|
}), o["!cols"] = p, this.xlsx.writeFile(a, t);
|
1700
1714
|
}
|
1701
1715
|
}
|
1702
|
-
class
|
1716
|
+
class Jt extends D {
|
1703
1717
|
open() {
|
1704
|
-
super.types = [
|
1718
|
+
super.types = [Kt];
|
1705
1719
|
}
|
1706
1720
|
/**
|
1707
1721
|
* 获取Excel实例
|
@@ -1711,19 +1725,19 @@ class Kt extends D {
|
|
1711
1725
|
return await t.openAsync(e), t;
|
1712
1726
|
}
|
1713
1727
|
}
|
1714
|
-
class
|
1728
|
+
class Qt {
|
1715
1729
|
constructor() {
|
1716
1730
|
n(this, "type", "Json");
|
1717
1731
|
}
|
1718
1732
|
}
|
1719
|
-
class
|
1733
|
+
class Yt extends Qt {
|
1720
1734
|
}
|
1721
|
-
class
|
1735
|
+
class Xt extends D {
|
1722
1736
|
open() {
|
1723
|
-
super.open(), super.types = [
|
1737
|
+
super.open(), super.types = [Yt];
|
1724
1738
|
}
|
1725
1739
|
}
|
1726
|
-
class
|
1740
|
+
class Gt {
|
1727
1741
|
constructor() {
|
1728
1742
|
n(this, "type", "Sort");
|
1729
1743
|
}
|
@@ -1748,7 +1762,7 @@ class Xt {
|
|
1748
1762
|
}
|
1749
1763
|
}
|
1750
1764
|
}
|
1751
|
-
class
|
1765
|
+
class Zt {
|
1752
1766
|
constructor() {
|
1753
1767
|
n(this, "type", "I18N");
|
1754
1768
|
}
|
@@ -1761,7 +1775,7 @@ class Gt {
|
|
1761
1775
|
copy(i, e, t) {
|
1762
1776
|
}
|
1763
1777
|
}
|
1764
|
-
class
|
1778
|
+
class er {
|
1765
1779
|
constructor() {
|
1766
1780
|
n(this, "type", "Expression");
|
1767
1781
|
}
|
@@ -1774,9 +1788,9 @@ class Zt {
|
|
1774
1788
|
copy(i, e, t) {
|
1775
1789
|
}
|
1776
1790
|
}
|
1777
|
-
class
|
1791
|
+
class tr extends D {
|
1778
1792
|
open() {
|
1779
|
-
super.open(), super.types = [
|
1793
|
+
super.open(), super.types = [Gt, Zt, er];
|
1780
1794
|
}
|
1781
1795
|
/**
|
1782
1796
|
* 获取指定特征实例
|
@@ -1786,12 +1800,12 @@ class er extends D {
|
|
1786
1800
|
return await t.openAsync(null), t;
|
1787
1801
|
}
|
1788
1802
|
}
|
1789
|
-
class
|
1803
|
+
class Ge {
|
1790
1804
|
constructor() {
|
1791
1805
|
n(this, "type");
|
1792
1806
|
}
|
1793
1807
|
}
|
1794
|
-
class
|
1808
|
+
class rr extends Ge {
|
1795
1809
|
constructor() {
|
1796
1810
|
super(...arguments);
|
1797
1811
|
//#region 属性
|
@@ -1807,7 +1821,7 @@ class tr extends Ye {
|
|
1807
1821
|
async openAsync(e) {
|
1808
1822
|
}
|
1809
1823
|
}
|
1810
|
-
class
|
1824
|
+
class sr extends Ge {
|
1811
1825
|
constructor() {
|
1812
1826
|
super(...arguments);
|
1813
1827
|
//#region 属性
|
@@ -1825,9 +1839,9 @@ class rr extends Ye {
|
|
1825
1839
|
this.crypto = await le.getCrypto();
|
1826
1840
|
}
|
1827
1841
|
}
|
1828
|
-
class
|
1842
|
+
class lr extends D {
|
1829
1843
|
open() {
|
1830
|
-
super.open(), super.types = [
|
1844
|
+
super.open(), super.types = [rr, sr];
|
1831
1845
|
}
|
1832
1846
|
async createAsync(i, e) {
|
1833
1847
|
let t = await super.createAsync(i);
|
@@ -1840,7 +1854,7 @@ class sr extends D {
|
|
1840
1854
|
return this.createWithCacheAsync("Md5");
|
1841
1855
|
}
|
1842
1856
|
}
|
1843
|
-
class
|
1857
|
+
class Ze {
|
1844
1858
|
constructor() {
|
1845
1859
|
/**
|
1846
1860
|
* 请求唯一标识
|
@@ -1902,7 +1916,7 @@ class Xe {
|
|
1902
1916
|
}
|
1903
1917
|
//#endregion
|
1904
1918
|
}
|
1905
|
-
class
|
1919
|
+
class et extends Ze {
|
1906
1920
|
constructor() {
|
1907
1921
|
super();
|
1908
1922
|
/**
|
@@ -1920,7 +1934,7 @@ class Ge extends Xe {
|
|
1920
1934
|
this.id = d.string.getUniqueId(8);
|
1921
1935
|
}
|
1922
1936
|
}
|
1923
|
-
class
|
1937
|
+
class nr {
|
1924
1938
|
constructor() {
|
1925
1939
|
n(this, "request");
|
1926
1940
|
n(this, "model");
|
@@ -1929,7 +1943,7 @@ class lr {
|
|
1929
1943
|
n(this, "time");
|
1930
1944
|
}
|
1931
1945
|
}
|
1932
|
-
class
|
1946
|
+
class Te {
|
1933
1947
|
constructor() {
|
1934
1948
|
//#region 属性
|
1935
1949
|
n(this, "type");
|
@@ -1966,7 +1980,7 @@ class je {
|
|
1966
1980
|
* 获取请求消息
|
1967
1981
|
*/
|
1968
1982
|
n(this, "getRequest", async (i, e, t, r = null) => {
|
1969
|
-
let s = new
|
1983
|
+
let s = new et();
|
1970
1984
|
return s.method = i, s.contentType = e, s.path = t, s.body = d.json.serializeWithoutString(r), s;
|
1971
1985
|
});
|
1972
1986
|
}
|
@@ -1993,14 +2007,14 @@ class je {
|
|
1993
2007
|
}
|
1994
2008
|
//#endregion
|
1995
2009
|
//#region 准备
|
1996
|
-
prepareAsync(i, e) {
|
1997
|
-
if (i.prepare(), e == null ||
|
2010
|
+
async prepareAsync(i, e) {
|
2011
|
+
if (i.prepare(), e == null || e.length == 0)
|
1998
2012
|
return;
|
1999
|
-
let t = this.encoder.encode(e), r = d.time.getTimestamp(), s = d.time.formatDateTime(/* @__PURE__ */ new Date()), l = new
|
2000
|
-
l.request = i, l.model = e, l.encoded = t, l.timestamp = r, l.time = s, i.path = this.template.
|
2013
|
+
let t = this.encoder.encode(e), r = d.time.getTimestamp(), s = d.time.formatDateTime(/* @__PURE__ */ new Date()), l = new nr();
|
2014
|
+
l.request = i, l.model = e, l.encoded = t, l.timestamp = r, l.time = s, i.path = await this.template.renderAsync(i.path, l), i.body = await this.template.renderAsync(i.body, l);
|
2001
2015
|
}
|
2002
2016
|
}
|
2003
|
-
class
|
2017
|
+
class Re extends Ze {
|
2004
2018
|
constructor() {
|
2005
2019
|
super(...arguments);
|
2006
2020
|
//#region 附加信息
|
@@ -2031,7 +2045,7 @@ class Me extends Xe {
|
|
2031
2045
|
n(this, "request");
|
2032
2046
|
}
|
2033
2047
|
}
|
2034
|
-
class
|
2048
|
+
class ir extends Te {
|
2035
2049
|
constructor() {
|
2036
2050
|
super(...arguments);
|
2037
2051
|
//#region 属性
|
@@ -2074,7 +2088,7 @@ class nr extends je {
|
|
2074
2088
|
* 使用Fetch发送请求,谷歌插件场景专用
|
2075
2089
|
*/
|
2076
2090
|
async sendWithFetch(e) {
|
2077
|
-
let t = new
|
2091
|
+
let t = new Re();
|
2078
2092
|
t.request = e, t.id = e.id;
|
2079
2093
|
let r = {
|
2080
2094
|
method: e.method,
|
@@ -2093,7 +2107,7 @@ class nr extends je {
|
|
2093
2107
|
* 使用XmlHttpRequest发送请求
|
2094
2108
|
*/
|
2095
2109
|
sendWithXmlHttpRequest(e) {
|
2096
|
-
let t = new
|
2110
|
+
let t = new Re();
|
2097
2111
|
return t.request = e, t.id = e.id, new Promise(async (r, s) => {
|
2098
2112
|
let l = new XMLHttpRequest();
|
2099
2113
|
if (l.open(e.method, e.url), e.headers != null)
|
@@ -2118,7 +2132,7 @@ class nr extends je {
|
|
2118
2132
|
});
|
2119
2133
|
}
|
2120
2134
|
}
|
2121
|
-
class
|
2135
|
+
class ar extends Te {
|
2122
2136
|
constructor() {
|
2123
2137
|
super(...arguments);
|
2124
2138
|
//#region 属性
|
@@ -2171,7 +2185,7 @@ class ir extends je {
|
|
2171
2185
|
});
|
2172
2186
|
}
|
2173
2187
|
}
|
2174
|
-
class
|
2188
|
+
class or extends Te {
|
2175
2189
|
constructor() {
|
2176
2190
|
super(...arguments);
|
2177
2191
|
//#region 属性
|
@@ -2230,16 +2244,16 @@ class ar extends je {
|
|
2230
2244
|
n(this, "handleError", (e) => {
|
2231
2245
|
if (e instanceof Object) {
|
2232
2246
|
let t = e.message;
|
2233
|
-
e.message == "Network Error" && (d.url.httpOrHttps(e.config.url) ? t = "接口网络错误: " + e.config.url : t = "接口网络错误: " + e.config.baseURL + e.config.url),
|
2247
|
+
e.message == "Network Error" && (d.url.httpOrHttps(e.config.url) ? t = "接口网络错误: " + e.config.url : t = "接口网络错误: " + e.config.baseURL + e.config.url), ie.error(t);
|
2234
2248
|
} else
|
2235
|
-
|
2249
|
+
ie.error(e.message);
|
2236
2250
|
return Promise.reject(e);
|
2237
2251
|
});
|
2238
2252
|
}
|
2239
2253
|
}
|
2240
|
-
class
|
2254
|
+
class ur extends D {
|
2241
2255
|
open() {
|
2242
|
-
super.open(), super.types = [
|
2256
|
+
super.open(), super.types = [ir, ar, or];
|
2243
2257
|
}
|
2244
2258
|
/**
|
2245
2259
|
* 获取默认请求器
|
@@ -2255,7 +2269,7 @@ class or extends D {
|
|
2255
2269
|
return this.createWithCache("Halo");
|
2256
2270
|
}
|
2257
2271
|
}
|
2258
|
-
class
|
2272
|
+
class cr {
|
2259
2273
|
constructor() {
|
2260
2274
|
//#region 属性
|
2261
2275
|
n(this, "type");
|
@@ -2288,12 +2302,12 @@ class ur {
|
|
2288
2302
|
});
|
2289
2303
|
n(this, "t_table", (i) => this.t(`_business.Ctl_Table.Title.${i}`));
|
2290
2304
|
n(this, "t_field", (i, e) => {
|
2291
|
-
let r = `_business.
|
2305
|
+
let r = `_business.Ctl_Field.Label.${i}.${e}`;
|
2292
2306
|
return this.t(r);
|
2293
2307
|
});
|
2294
|
-
n(this, "t_enum", (i, e) => this.t(`_business.
|
2295
|
-
n(this, "t_field_placeholder", (i, e) => this.t("common.please_input") + this.t(`_business.
|
2296
|
-
n(this, "t_field_choose_placeholder", (i, e) => this.t("common.please_choose") + this.t(`_business.
|
2308
|
+
n(this, "t_enum", (i, e) => this.t(`_business.Ctl_Option.Text.${i}.${e}`));
|
2309
|
+
n(this, "t_field_placeholder", (i, e) => this.t("common.please_input") + this.t(`_business.Ctl_Field.Label.${i}.${e}`));
|
2310
|
+
n(this, "t_field_choose_placeholder", (i, e) => this.t("common.please_choose") + this.t(`_business.Ctl_Field.Label.${i}.${e}`));
|
2297
2311
|
n(this, "t_sys", (i) => this.t(`sys.${i}`));
|
2298
2312
|
n(this, "t_title", () => this.t("sys.title"));
|
2299
2313
|
//#endregion
|
@@ -2327,7 +2341,7 @@ class ur {
|
|
2327
2341
|
this.lang = i;
|
2328
2342
|
return;
|
2329
2343
|
}
|
2330
|
-
await this.
|
2344
|
+
await this.loadAsync(i), this.lang = i, this.loaded.push(i);
|
2331
2345
|
});
|
2332
2346
|
}
|
2333
2347
|
//#endregion
|
@@ -2337,7 +2351,7 @@ class ur {
|
|
2337
2351
|
}
|
2338
2352
|
//#endregion
|
2339
2353
|
}
|
2340
|
-
class
|
2354
|
+
class dr extends cr {
|
2341
2355
|
constructor() {
|
2342
2356
|
super(...arguments);
|
2343
2357
|
n(this, "type", "Default");
|
@@ -2352,11 +2366,11 @@ class cr extends ur {
|
|
2352
2366
|
let t = this.messages[this.lang], r = e.split(".");
|
2353
2367
|
return d.json.hasKey(t, r);
|
2354
2368
|
});
|
2355
|
-
n(this, "
|
2369
|
+
n(this, "loadAsync", async (e) => {
|
2356
2370
|
e == null && (e = this.lang);
|
2357
2371
|
let t = new Promise(async (s) => {
|
2358
2372
|
let l = { conditions: [{ name: "lang", value: e }] };
|
2359
|
-
return
|
2373
|
+
return _.post("/i18n/set", l).then(({ data: a }) => {
|
2360
2374
|
for (let o of a) {
|
2361
2375
|
let u = `${e}.${o.Kind}.${o.Key}`.split(".");
|
2362
2376
|
d.object.addProperties(this.messages, u, o.Value);
|
@@ -2365,7 +2379,7 @@ class cr extends ur {
|
|
2365
2379
|
});
|
2366
2380
|
}), r = new Promise((s) => {
|
2367
2381
|
let l = { conditions: [{ name: "lang", value: e }] };
|
2368
|
-
|
2382
|
+
_.post("/i18n_business/set", l).then(({ data: a }) => {
|
2369
2383
|
for (let o of a) {
|
2370
2384
|
let u = `${e}._business.${o.Table}.${o.Field}.${o.Key}`.split(".");
|
2371
2385
|
d.object.addProperties(this.messages, u, o.Value);
|
@@ -2381,19 +2395,19 @@ class cr extends ur {
|
|
2381
2395
|
await super.openAsync(e);
|
2382
2396
|
}
|
2383
2397
|
}
|
2384
|
-
class
|
2398
|
+
class pr extends D {
|
2385
2399
|
//#region 开启
|
2386
2400
|
open() {
|
2387
|
-
super.open(), super.types = [
|
2401
|
+
super.open(), super.types = [dr];
|
2388
2402
|
}
|
2389
2403
|
//#endregion
|
2390
2404
|
}
|
2391
|
-
class
|
2405
|
+
class hr {
|
2392
2406
|
constructor() {
|
2393
2407
|
n(this, "type");
|
2394
2408
|
}
|
2395
2409
|
}
|
2396
|
-
class
|
2410
|
+
class gr extends hr {
|
2397
2411
|
constructor() {
|
2398
2412
|
super(...arguments);
|
2399
2413
|
n(this, "type", "Console");
|
@@ -2420,9 +2434,9 @@ class hr extends pr {
|
|
2420
2434
|
console.warn(e);
|
2421
2435
|
}
|
2422
2436
|
}
|
2423
|
-
class
|
2437
|
+
class fr extends D {
|
2424
2438
|
open() {
|
2425
|
-
super.open(), super.types = [
|
2439
|
+
super.open(), super.types = [gr];
|
2426
2440
|
}
|
2427
2441
|
/**
|
2428
2442
|
* 获取控制台消息提示类型
|
@@ -2431,18 +2445,18 @@ class gr extends D {
|
|
2431
2445
|
return await super.create("Console");
|
2432
2446
|
}
|
2433
2447
|
}
|
2434
|
-
class
|
2448
|
+
class yr {
|
2435
2449
|
constructor() {
|
2436
2450
|
n(this, "type");
|
2437
2451
|
}
|
2438
2452
|
}
|
2439
|
-
class
|
2453
|
+
class mr extends yr {
|
2440
2454
|
constructor() {
|
2441
2455
|
super(...arguments);
|
2442
2456
|
n(this, "type", "Default");
|
2443
2457
|
n(this, "getSign", async (e, t, r, s, l) => {
|
2444
2458
|
let o = `${e}.${t}.${r ?? ""}.${s}.${l}`;
|
2445
|
-
return (await
|
2459
|
+
return (await nt.compute(o)).toUpperCase();
|
2446
2460
|
});
|
2447
2461
|
}
|
2448
2462
|
async openAsync(e) {
|
@@ -2455,9 +2469,9 @@ class yr extends fr {
|
|
2455
2469
|
dispose() {
|
2456
2470
|
}
|
2457
2471
|
}
|
2458
|
-
class
|
2472
|
+
class vr extends D {
|
2459
2473
|
open() {
|
2460
|
-
super.open(), super.types = [
|
2474
|
+
super.open(), super.types = [mr];
|
2461
2475
|
}
|
2462
2476
|
/**
|
2463
2477
|
* 获取指定签名实例
|
@@ -2467,7 +2481,7 @@ class mr extends D {
|
|
2467
2481
|
return await t.openAsync(null), t;
|
2468
2482
|
}
|
2469
2483
|
}
|
2470
|
-
class
|
2484
|
+
class wr {
|
2471
2485
|
constructor() {
|
2472
2486
|
//#region 属性
|
2473
2487
|
/**
|
@@ -2506,7 +2520,7 @@ class vr {
|
|
2506
2520
|
await this.send(e), delete this.subscribed[i];
|
2507
2521
|
}
|
2508
2522
|
}
|
2509
|
-
class br extends
|
2523
|
+
class br extends wr {
|
2510
2524
|
constructor() {
|
2511
2525
|
super(...arguments);
|
2512
2526
|
//#region 属性
|
@@ -2535,8 +2549,8 @@ class br extends vr {
|
|
2535
2549
|
//#endregion
|
2536
2550
|
async connect() {
|
2537
2551
|
if (this.reconnect = !0, this.socket == null || this.reconnect) {
|
2538
|
-
let t = new
|
2539
|
-
t.path = this.url, t.method = "GET", await
|
2552
|
+
let t = new et();
|
2553
|
+
t.path = this.url, t.method = "GET", await _.prepareAsync(t);
|
2540
2554
|
let r = t.getHeader("Authorization"), s = d.url.encode(r), l = `${this.url}?authorization=${s}`;
|
2541
2555
|
this.socket = new WebSocket(l);
|
2542
2556
|
}
|
@@ -2565,7 +2579,7 @@ class br extends vr {
|
|
2565
2579
|
this.socket.close(), this.reconnect = !1, this.connected = null, this.handler = null;
|
2566
2580
|
}
|
2567
2581
|
}
|
2568
|
-
class
|
2582
|
+
class kr extends D {
|
2569
2583
|
open() {
|
2570
2584
|
super.open(), super.types = [br];
|
2571
2585
|
}
|
@@ -2576,7 +2590,7 @@ class wr extends D {
|
|
2576
2590
|
return super.createWithCache("Default");
|
2577
2591
|
}
|
2578
2592
|
}
|
2579
|
-
class
|
2593
|
+
class _l {
|
2580
2594
|
constructor() {
|
2581
2595
|
//#region 进度
|
2582
2596
|
/**
|
@@ -2614,6 +2628,50 @@ class kl {
|
|
2614
2628
|
this.ok = !1, this.errored++, this.handled++, this.current = i, this.message = e;
|
2615
2629
|
}
|
2616
2630
|
}
|
2631
|
+
class Cl {
|
2632
|
+
/**
|
2633
|
+
* 初始化并设置数据
|
2634
|
+
*/
|
2635
|
+
constructor(i, e, t) {
|
2636
|
+
/**
|
2637
|
+
* 是否执行成功
|
2638
|
+
*/
|
2639
|
+
n(this, "ok");
|
2640
|
+
/**
|
2641
|
+
* 异常消息
|
2642
|
+
*/
|
2643
|
+
n(this, "message");
|
2644
|
+
/**
|
2645
|
+
* 耗时
|
2646
|
+
*/
|
2647
|
+
n(this, "elapsed");
|
2648
|
+
/**
|
2649
|
+
* 消息类别
|
2650
|
+
*/
|
2651
|
+
n(this, "kind");
|
2652
|
+
/**
|
2653
|
+
* 消息类型
|
2654
|
+
*/
|
2655
|
+
n(this, "type");
|
2656
|
+
/**
|
2657
|
+
* 数据体
|
2658
|
+
*/
|
2659
|
+
n(this, "data");
|
2660
|
+
this.kind = i, this.type = e, this.data = t;
|
2661
|
+
}
|
2662
|
+
/**
|
2663
|
+
* 成功输出
|
2664
|
+
*/
|
2665
|
+
onOk(i) {
|
2666
|
+
this.ok = !0, this.message = i;
|
2667
|
+
}
|
2668
|
+
/**
|
2669
|
+
* 异常输出
|
2670
|
+
*/
|
2671
|
+
onError(i) {
|
2672
|
+
this.ok = !1, this.message = i;
|
2673
|
+
}
|
2674
|
+
}
|
2617
2675
|
class xr {
|
2618
2676
|
constructor() {
|
2619
2677
|
//#region 属性
|
@@ -2630,7 +2688,7 @@ class xr {
|
|
2630
2688
|
}
|
2631
2689
|
//#endregion
|
2632
2690
|
async login(i) {
|
2633
|
-
return
|
2691
|
+
return _.post(`/user/login?type=${this.type}`, i).then(async (e) => (await this.provider.saveAsync("user", "sso", e.data), _.user = e.data, _.sso = await y.sso.createAsync(e.data.type), Promise.resolve(e)));
|
2634
2692
|
}
|
2635
2693
|
loginUrl(i) {
|
2636
2694
|
return "";
|
@@ -2646,7 +2704,7 @@ class xr {
|
|
2646
2704
|
await this.provider.deleteAsync("user", "user"), await this.provider.deleteAsync("user", "sso");
|
2647
2705
|
}
|
2648
2706
|
}
|
2649
|
-
class
|
2707
|
+
class Ar {
|
2650
2708
|
constructor() {
|
2651
2709
|
//#region 属性
|
2652
2710
|
n(this, "type", "Nio");
|
@@ -2664,7 +2722,7 @@ class kr {
|
|
2664
2722
|
}
|
2665
2723
|
//#endregion
|
2666
2724
|
async login(i) {
|
2667
|
-
await this.provider.saveAsync("user", "sso", i),
|
2725
|
+
await this.provider.saveAsync("user", "sso", i), _.user = i, _.sso = await y.sso.createAsync(i.type);
|
2668
2726
|
}
|
2669
2727
|
loginUrl(i) {
|
2670
2728
|
let e = encodeURIComponent(i);
|
@@ -2680,7 +2738,7 @@ class kr {
|
|
2680
2738
|
await this.provider.deleteAsync("user", "user"), await this.provider.deleteAsync("user", "sso");
|
2681
2739
|
}
|
2682
2740
|
}
|
2683
|
-
class
|
2741
|
+
class tt {
|
2684
2742
|
constructor() {
|
2685
2743
|
/**
|
2686
2744
|
* 用户标识
|
@@ -2700,7 +2758,7 @@ class Ze {
|
|
2700
2758
|
n(this, "identity");
|
2701
2759
|
}
|
2702
2760
|
}
|
2703
|
-
class
|
2761
|
+
class Sr {
|
2704
2762
|
constructor() {
|
2705
2763
|
n(this, "type", "WeiXin");
|
2706
2764
|
}
|
@@ -2712,7 +2770,7 @@ class Ar {
|
|
2712
2770
|
return "";
|
2713
2771
|
}
|
2714
2772
|
async getUser() {
|
2715
|
-
let i = new
|
2773
|
+
let i = new tt();
|
2716
2774
|
return i.userId = "", i;
|
2717
2775
|
}
|
2718
2776
|
getAuth(i, e, t, r) {
|
@@ -2722,12 +2780,12 @@ class Ar {
|
|
2722
2780
|
return Promise.resolve();
|
2723
2781
|
}
|
2724
2782
|
}
|
2725
|
-
class
|
2783
|
+
class _r {
|
2726
2784
|
constructor() {
|
2727
2785
|
n(this, "type");
|
2728
2786
|
}
|
2729
2787
|
}
|
2730
|
-
class
|
2788
|
+
class Cr extends _r {
|
2731
2789
|
constructor() {
|
2732
2790
|
super(...arguments);
|
2733
2791
|
//#region 属性
|
@@ -2752,7 +2810,7 @@ class _r extends Sr {
|
|
2752
2810
|
let r = d.string.getUniqueId();
|
2753
2811
|
await this.provider.saveAsync("anonymous", "anonymous", r), e = r;
|
2754
2812
|
}
|
2755
|
-
let t = new
|
2813
|
+
let t = new tt();
|
2756
2814
|
return t.identity = { token: e }, t;
|
2757
2815
|
}
|
2758
2816
|
getAuth(e, t, r, s) {
|
@@ -2762,7 +2820,7 @@ class _r extends Sr {
|
|
2762
2820
|
await this.provider.deleteAsync("anonymous", "anonymous");
|
2763
2821
|
}
|
2764
2822
|
}
|
2765
|
-
class
|
2823
|
+
class Tr {
|
2766
2824
|
constructor() {
|
2767
2825
|
//#region 属性
|
2768
2826
|
n(this, "type", "Secret");
|
@@ -2776,7 +2834,7 @@ class Cr {
|
|
2776
2834
|
this.provider = await y.provider.getDefaultAsync("user");
|
2777
2835
|
}
|
2778
2836
|
async login(i) {
|
2779
|
-
return
|
2837
|
+
return _.post(`/user/login?type=${this.type}`, i).then(async (e) => {
|
2780
2838
|
let t = e.data;
|
2781
2839
|
return await this.provider.saveAsync("user", "sso", t), Promise.resolve(e);
|
2782
2840
|
});
|
@@ -2794,22 +2852,22 @@ class Cr {
|
|
2794
2852
|
await this.provider.deleteAsync("user");
|
2795
2853
|
}
|
2796
2854
|
}
|
2797
|
-
class
|
2855
|
+
class Er extends D {
|
2798
2856
|
/**
|
2799
2857
|
* 获取实例
|
2800
2858
|
*/
|
2801
2859
|
open() {
|
2802
|
-
super.open(), super.types = [
|
2860
|
+
super.open(), super.types = [Tr, Ar, Sr, xr, Cr];
|
2803
2861
|
}
|
2804
2862
|
/**
|
2805
2863
|
* 获取指定SSO实例
|
2806
2864
|
*/
|
2807
2865
|
async createAsync(i, e) {
|
2808
|
-
let t =
|
2866
|
+
let t = Qe.ssos.find((l) => l.type.toUpperCase() == i.toUpperCase()), r = { url: t == null ? void 0 : t.url, app_id: t == null ? void 0 : t.appId }, s = await super.createAsync(i);
|
2809
2867
|
return await s.openAsync(r), s;
|
2810
2868
|
}
|
2811
2869
|
}
|
2812
|
-
class
|
2870
|
+
class $r {
|
2813
2871
|
constructor() {
|
2814
2872
|
//#region 属性
|
2815
2873
|
n(this, "type");
|
@@ -2817,7 +2875,7 @@ class Er {
|
|
2817
2875
|
}
|
2818
2876
|
//#endregion
|
2819
2877
|
}
|
2820
|
-
class
|
2878
|
+
class jr extends $r {
|
2821
2879
|
constructor() {
|
2822
2880
|
super(...arguments);
|
2823
2881
|
//#region 属性
|
@@ -2881,56 +2939,56 @@ class $r extends Er {
|
|
2881
2939
|
clearInterval(this.intervalTimeout), clearTimeout(this.lastDebounceTimeout);
|
2882
2940
|
}
|
2883
2941
|
}
|
2884
|
-
class
|
2942
|
+
class Dr extends D {
|
2885
2943
|
open() {
|
2886
|
-
super.open(), super.types = [
|
2944
|
+
super.open(), super.types = [jr];
|
2887
2945
|
}
|
2888
2946
|
}
|
2889
|
-
class
|
2947
|
+
class Hr {
|
2890
2948
|
constructor() {
|
2891
2949
|
n(this, "type");
|
2892
2950
|
}
|
2893
2951
|
}
|
2894
|
-
class
|
2952
|
+
class Ur extends Hr {
|
2895
2953
|
constructor() {
|
2896
2954
|
super(...arguments);
|
2897
2955
|
n(this, "type", "Liquid");
|
2898
2956
|
}
|
2899
|
-
async
|
2957
|
+
async renderAsync(e, t) {
|
2900
2958
|
let r = new ht(), s = r.parse(e);
|
2901
2959
|
return await r.render(s, t);
|
2902
2960
|
}
|
2903
2961
|
}
|
2904
|
-
class
|
2962
|
+
class Or extends D {
|
2905
2963
|
open() {
|
2906
|
-
super.open(), super.types = [
|
2964
|
+
super.open(), super.types = [Ur];
|
2907
2965
|
}
|
2908
2966
|
}
|
2909
|
-
class
|
2967
|
+
class Lr extends D {
|
2910
2968
|
open() {
|
2911
2969
|
super.open(), super.types = [
|
2912
|
-
Lr,
|
2913
|
-
ts,
|
2914
2970
|
Rr,
|
2915
|
-
|
2971
|
+
rs,
|
2916
2972
|
Ir,
|
2973
|
+
Pr,
|
2917
2974
|
Mr,
|
2918
2975
|
Br,
|
2919
2976
|
Fr,
|
2920
2977
|
Nr,
|
2921
|
-
es,
|
2922
2978
|
Vr,
|
2979
|
+
ts,
|
2923
2980
|
qr,
|
2924
2981
|
Wr,
|
2925
2982
|
zr,
|
2926
|
-
Gr,
|
2927
|
-
ss,
|
2928
2983
|
Kr,
|
2984
|
+
Zr,
|
2985
|
+
ls,
|
2929
2986
|
Jr,
|
2930
|
-
Yr,
|
2931
|
-
Xr,
|
2932
2987
|
Qr,
|
2933
|
-
|
2988
|
+
Xr,
|
2989
|
+
Gr,
|
2990
|
+
Yr,
|
2991
|
+
ss
|
2934
2992
|
];
|
2935
2993
|
}
|
2936
2994
|
get array() {
|
@@ -3005,7 +3063,7 @@ class H {
|
|
3005
3063
|
n(this, "type");
|
3006
3064
|
}
|
3007
3065
|
}
|
3008
|
-
class
|
3066
|
+
class Rr extends H {
|
3009
3067
|
constructor() {
|
3010
3068
|
super(...arguments);
|
3011
3069
|
n(this, "type", "array");
|
@@ -3046,11 +3104,11 @@ class Lr extends H {
|
|
3046
3104
|
/**
|
3047
3105
|
* 求最大值,数据类型的比较函数要自己转换为数值类型
|
3048
3106
|
*/
|
3049
|
-
n(this, "max", (e, t) =>
|
3107
|
+
n(this, "max", (e, t) => we.max(e, t));
|
3050
3108
|
/**
|
3051
3109
|
* 求最小值,数据类型的比较函数要自己转换为数值类型
|
3052
3110
|
*/
|
3053
|
-
n(this, "min", (e, t) =>
|
3111
|
+
n(this, "min", (e, t) => we.min(e, t));
|
3054
3112
|
/**
|
3055
3113
|
* 求平均值
|
3056
3114
|
*/
|
@@ -3143,7 +3201,7 @@ class Lr extends H {
|
|
3143
3201
|
* 合并多个数组中的每一项到新的二维数组中,没值的元素被有值的元素代替
|
3144
3202
|
*/
|
3145
3203
|
n(this, "combine", (...e) => {
|
3146
|
-
let t = [], r =
|
3204
|
+
let t = [], r = we.max(e, (s) => s.length);
|
3147
3205
|
for (let s = 0; s < r.length; s++) {
|
3148
3206
|
let l = [], a;
|
3149
3207
|
for (let o = 0; o < e.length; o++) {
|
@@ -3312,7 +3370,7 @@ class Lr extends H {
|
|
3312
3370
|
}
|
3313
3371
|
//#endregion
|
3314
3372
|
}
|
3315
|
-
class
|
3373
|
+
class Ir extends H {
|
3316
3374
|
constructor() {
|
3317
3375
|
super(...arguments);
|
3318
3376
|
n(this, "type", "component");
|
@@ -3339,7 +3397,7 @@ class Rr extends H {
|
|
3339
3397
|
if (g.default)
|
3340
3398
|
s[h] = g.default;
|
3341
3399
|
else {
|
3342
|
-
let m =
|
3400
|
+
let m = ut(g);
|
3343
3401
|
s[h] = m;
|
3344
3402
|
}
|
3345
3403
|
}
|
@@ -3354,7 +3412,7 @@ class Rr extends H {
|
|
3354
3412
|
}, 100);
|
3355
3413
|
}
|
3356
3414
|
}
|
3357
|
-
class
|
3415
|
+
class Mr extends H {
|
3358
3416
|
constructor() {
|
3359
3417
|
super(...arguments);
|
3360
3418
|
n(this, "type", "dom");
|
@@ -3595,13 +3653,13 @@ class Ir extends H {
|
|
3595
3653
|
let a = e.querySelector(r);
|
3596
3654
|
if (!a)
|
3597
3655
|
return null;
|
3598
|
-
let o = {}, u = e.getBoundingClientRect(), p = s.getBoundingClientRect(), g = e.querySelector(t).getBoundingClientRect(), m = a.getBoundingClientRect(),
|
3656
|
+
let o = {}, u = e.getBoundingClientRect(), p = s.getBoundingClientRect(), g = e.querySelector(t).getBoundingClientRect(), m = a.getBoundingClientRect(), k = p.height - g.top;
|
3599
3657
|
if (l == "right") {
|
3600
3658
|
o.left = `${u.left + u.width}px`;
|
3601
|
-
let
|
3602
|
-
m.height > p.height ?
|
3659
|
+
let O;
|
3660
|
+
m.height > p.height ? O = p.height : O = m.height, o.height = `${O}px`, O + g.top > p.height ? (o.top = "initial", o.bottom = "0px") : o.top = `${u.top}px`;
|
3603
3661
|
} else if (l == "bottom")
|
3604
|
-
|
3662
|
+
k -= g.height, o.left = `${u.left}px`, o.top = `${u.top + u.height}px`, k < m.height ? o.height = `${k}px` : o.height = `${m.height}px`;
|
3605
3663
|
else
|
3606
3664
|
throw new Error(`暂未支持的position:${l}`);
|
3607
3665
|
return o;
|
@@ -3757,7 +3815,7 @@ class Pr extends H {
|
|
3757
3815
|
}
|
3758
3816
|
//#endregion
|
3759
3817
|
}
|
3760
|
-
class
|
3818
|
+
class Br extends H {
|
3761
3819
|
constructor() {
|
3762
3820
|
super(...arguments);
|
3763
3821
|
n(this, "type", "event");
|
@@ -3803,7 +3861,7 @@ class Mr extends H {
|
|
3803
3861
|
});
|
3804
3862
|
}
|
3805
3863
|
}
|
3806
|
-
class
|
3864
|
+
class Fr extends H {
|
3807
3865
|
constructor() {
|
3808
3866
|
super(...arguments);
|
3809
3867
|
n(this, "type", "file");
|
@@ -3840,7 +3898,7 @@ class Br extends H {
|
|
3840
3898
|
});
|
3841
3899
|
}
|
3842
3900
|
}
|
3843
|
-
class
|
3901
|
+
class Nr extends H {
|
3844
3902
|
constructor() {
|
3845
3903
|
super(...arguments);
|
3846
3904
|
n(this, "type", "html");
|
@@ -3861,7 +3919,7 @@ class Fr extends H {
|
|
3861
3919
|
});
|
3862
3920
|
}
|
3863
3921
|
}
|
3864
|
-
class
|
3922
|
+
class Vr extends H {
|
3865
3923
|
constructor() {
|
3866
3924
|
super(...arguments);
|
3867
3925
|
n(this, "type", "image");
|
@@ -3871,7 +3929,7 @@ class Nr extends H {
|
|
3871
3929
|
n(this, "base64", (e) => "data:image/png;base64," + e);
|
3872
3930
|
}
|
3873
3931
|
}
|
3874
|
-
class
|
3932
|
+
class qr extends H {
|
3875
3933
|
constructor() {
|
3876
3934
|
super(...arguments);
|
3877
3935
|
n(this, "type", "math");
|
@@ -3969,7 +4027,7 @@ class Vr extends H {
|
|
3969
4027
|
return e;
|
3970
4028
|
}
|
3971
4029
|
}
|
3972
|
-
class
|
4030
|
+
class Wr extends H {
|
3973
4031
|
constructor() {
|
3974
4032
|
super(...arguments);
|
3975
4033
|
n(this, "type", "micro");
|
@@ -3980,7 +4038,7 @@ class qr extends H {
|
|
3980
4038
|
});
|
3981
4039
|
}
|
3982
4040
|
}
|
3983
|
-
class
|
4041
|
+
class zr extends H {
|
3984
4042
|
constructor() {
|
3985
4043
|
super(...arguments);
|
3986
4044
|
n(this, "type", "mount");
|
@@ -4002,7 +4060,7 @@ class Wr extends H {
|
|
4002
4060
|
});
|
4003
4061
|
}
|
4004
4062
|
}
|
4005
|
-
class
|
4063
|
+
class Kr extends H {
|
4006
4064
|
constructor() {
|
4007
4065
|
super(...arguments);
|
4008
4066
|
n(this, "type", "object");
|
@@ -4039,7 +4097,7 @@ class zr extends H {
|
|
4039
4097
|
}
|
4040
4098
|
//#region 净化
|
4041
4099
|
/**
|
4042
|
-
*
|
4100
|
+
* 净化对象,只清除默认值属性
|
4043
4101
|
*/
|
4044
4102
|
pure(e) {
|
4045
4103
|
let t = {}, r = Object.keys(e);
|
@@ -4129,7 +4187,7 @@ class zr extends H {
|
|
4129
4187
|
}
|
4130
4188
|
//#endregion
|
4131
4189
|
}
|
4132
|
-
class
|
4190
|
+
class Jr extends H {
|
4133
4191
|
constructor() {
|
4134
4192
|
super(...arguments);
|
4135
4193
|
n(this, "type", "string");
|
@@ -4328,7 +4386,7 @@ class Kr extends H {
|
|
4328
4386
|
}
|
4329
4387
|
//#endregion
|
4330
4388
|
}
|
4331
|
-
class
|
4389
|
+
class Qr extends H {
|
4332
4390
|
constructor() {
|
4333
4391
|
super(...arguments);
|
4334
4392
|
n(this, "type", "task");
|
@@ -4381,7 +4439,7 @@ class Jr extends H {
|
|
4381
4439
|
});
|
4382
4440
|
}
|
4383
4441
|
}
|
4384
|
-
class
|
4442
|
+
class Yr extends H {
|
4385
4443
|
constructor() {
|
4386
4444
|
super(...arguments);
|
4387
4445
|
n(this, "type", "type");
|
@@ -4410,12 +4468,12 @@ class Qr extends H {
|
|
4410
4468
|
n(this, "isBoolean", (e) => Object.prototype.toString.call(e) == "[object Boolean]");
|
4411
4469
|
}
|
4412
4470
|
}
|
4413
|
-
class
|
4471
|
+
class Tl {
|
4414
4472
|
constructor() {
|
4415
4473
|
n(this, "value");
|
4416
4474
|
}
|
4417
4475
|
}
|
4418
|
-
class
|
4476
|
+
class Xr extends H {
|
4419
4477
|
constructor() {
|
4420
4478
|
super(...arguments);
|
4421
4479
|
n(this, "type", "time");
|
@@ -4497,7 +4555,7 @@ class Yr extends H {
|
|
4497
4555
|
});
|
4498
4556
|
}
|
4499
4557
|
}
|
4500
|
-
class
|
4558
|
+
class Gr extends H {
|
4501
4559
|
constructor() {
|
4502
4560
|
super(...arguments);
|
4503
4561
|
n(this, "type", "tree");
|
@@ -4565,21 +4623,21 @@ class Xr extends H {
|
|
4565
4623
|
*/
|
4566
4624
|
n(this, "getParentsById", (e, t, r, s, l = !1) => {
|
4567
4625
|
let a = [];
|
4568
|
-
return r == null ||
|
4626
|
+
return r == null || rt(e, t, r, s, a, l), a;
|
4569
4627
|
});
|
4570
4628
|
/**
|
4571
4629
|
* 获取当前节点的所有孩子节点的集合
|
4572
4630
|
*/
|
4573
4631
|
n(this, "getChildrenById", (e, t, r, s, l = !1) => {
|
4574
4632
|
let a = this.getById(e, t, r, s), o = [];
|
4575
|
-
return l && o.push(a),
|
4633
|
+
return l && o.push(a), Ae(a, s, o), o;
|
4576
4634
|
});
|
4577
4635
|
/**
|
4578
4636
|
* 获取当前节点的所有孩子节点的集合
|
4579
4637
|
*/
|
4580
4638
|
n(this, "getChildren", (e, t, r = !1) => {
|
4581
4639
|
let s = [];
|
4582
|
-
return r && s.push(e),
|
4640
|
+
return r && s.push(e), Ae(e, t, s), s;
|
4583
4641
|
});
|
4584
4642
|
/**
|
4585
4643
|
* 搜索指定文本的树结构
|
@@ -4593,8 +4651,8 @@ class Xr extends H {
|
|
4593
4651
|
let p = !1, h = this.getChildren(u, r, !0);
|
4594
4652
|
for (let g of h) {
|
4595
4653
|
for (let m of o) {
|
4596
|
-
let
|
4597
|
-
if ((
|
4654
|
+
let k = g[m];
|
4655
|
+
if ((k ? k.toUpperCase() : "").indexOf(a) > -1) {
|
4598
4656
|
p = !0;
|
4599
4657
|
break;
|
4600
4658
|
}
|
@@ -4653,28 +4711,28 @@ class Xr extends H {
|
|
4653
4711
|
});
|
4654
4712
|
}
|
4655
4713
|
}
|
4656
|
-
function
|
4714
|
+
function rt(c, i, e, t, r, s) {
|
4657
4715
|
for (let l = 0; l < e.length; l++) {
|
4658
4716
|
let a = e[l];
|
4659
4717
|
if (a[i] == c) {
|
4660
4718
|
s && r.push(a);
|
4661
4719
|
break;
|
4662
4720
|
} else
|
4663
|
-
d.tree.getById(c, i, a[t], t) != null && (r.push(a),
|
4721
|
+
d.tree.getById(c, i, a[t], t) != null && (r.push(a), rt(c, i, a[t], t, r, s));
|
4664
4722
|
}
|
4665
4723
|
return r;
|
4666
4724
|
}
|
4667
|
-
function
|
4725
|
+
function Ae(c, i, e) {
|
4668
4726
|
let t = c[i];
|
4669
4727
|
if (!t || t.length == 0)
|
4670
4728
|
return e;
|
4671
4729
|
for (let r = 0; r < t.length; r++) {
|
4672
4730
|
let s = t[r];
|
4673
|
-
e.push(s),
|
4731
|
+
e.push(s), Ae(s, i, e);
|
4674
4732
|
}
|
4675
4733
|
return e;
|
4676
4734
|
}
|
4677
|
-
class
|
4735
|
+
class Zr extends H {
|
4678
4736
|
constructor() {
|
4679
4737
|
super(...arguments);
|
4680
4738
|
n(this, "type", "scroll");
|
@@ -4697,7 +4755,7 @@ class Gr extends H {
|
|
4697
4755
|
});
|
4698
4756
|
}
|
4699
4757
|
}
|
4700
|
-
class
|
4758
|
+
class es {
|
4701
4759
|
constructor() {
|
4702
4760
|
/**
|
4703
4761
|
* 是否美化
|
@@ -4705,7 +4763,7 @@ class Zr {
|
|
4705
4763
|
n(this, "beautify", !1);
|
4706
4764
|
}
|
4707
4765
|
}
|
4708
|
-
class
|
4766
|
+
class ts extends H {
|
4709
4767
|
constructor() {
|
4710
4768
|
super(...arguments);
|
4711
4769
|
n(this, "type", "json");
|
@@ -4732,7 +4790,7 @@ class es extends H {
|
|
4732
4790
|
serialize(e, t) {
|
4733
4791
|
if (e == null)
|
4734
4792
|
return null;
|
4735
|
-
t == null && (t = new
|
4793
|
+
t == null && (t = new es());
|
4736
4794
|
let s = (typeof t == "boolean" ? t : t.beautify) ? 2 : null, l;
|
4737
4795
|
if (typeof e == "string") {
|
4738
4796
|
let o = this.deserialize(e);
|
@@ -4857,7 +4915,7 @@ class es extends H {
|
|
4857
4915
|
}
|
4858
4916
|
//#endregion
|
4859
4917
|
}
|
4860
|
-
class
|
4918
|
+
class rs extends H {
|
4861
4919
|
constructor() {
|
4862
4920
|
super(...arguments);
|
4863
4921
|
n(this, "type", "browser");
|
@@ -4869,7 +4927,7 @@ class ts extends H {
|
|
4869
4927
|
return navigator.language == "zh-CN" ? "zh-cn" : "en";
|
4870
4928
|
}
|
4871
4929
|
}
|
4872
|
-
class
|
4930
|
+
class ss extends H {
|
4873
4931
|
constructor() {
|
4874
4932
|
super(...arguments);
|
4875
4933
|
n(this, "type", "url");
|
@@ -5072,7 +5130,7 @@ class rs extends H {
|
|
5072
5130
|
return e ? e.indexOf("http://") > -1 || e.indexOf("https://") > -1 : !1;
|
5073
5131
|
}
|
5074
5132
|
}
|
5075
|
-
class
|
5133
|
+
class ls extends H {
|
5076
5134
|
constructor() {
|
5077
5135
|
super(...arguments);
|
5078
5136
|
n(this, "type", "sign");
|
@@ -5092,7 +5150,7 @@ class ss extends H {
|
|
5092
5150
|
return this.clean(e), d.url.serialize(e, t);
|
5093
5151
|
}
|
5094
5152
|
}
|
5095
|
-
class
|
5153
|
+
class st {
|
5096
5154
|
constructor(i, e) {
|
5097
5155
|
/**
|
5098
5156
|
* 距窗口左边的距离
|
@@ -5105,7 +5163,7 @@ class tt {
|
|
5105
5163
|
this.x = i, this.y = e;
|
5106
5164
|
}
|
5107
5165
|
}
|
5108
|
-
class
|
5166
|
+
class ns extends st {
|
5109
5167
|
constructor() {
|
5110
5168
|
super(...arguments);
|
5111
5169
|
/**
|
@@ -5114,7 +5172,7 @@ class ls extends tt {
|
|
5114
5172
|
n(this, "affix");
|
5115
5173
|
}
|
5116
5174
|
}
|
5117
|
-
class
|
5175
|
+
class El extends st {
|
5118
5176
|
constructor(e, t, r, s) {
|
5119
5177
|
super(e, t);
|
5120
5178
|
n(this, "width");
|
@@ -5127,7 +5185,7 @@ class se {
|
|
5127
5185
|
n(this, "type");
|
5128
5186
|
}
|
5129
5187
|
}
|
5130
|
-
class
|
5188
|
+
class Ee extends se {
|
5131
5189
|
constructor() {
|
5132
5190
|
super();
|
5133
5191
|
//#region 大小调整
|
@@ -5207,12 +5265,12 @@ class De extends se {
|
|
5207
5265
|
return;
|
5208
5266
|
this.dragElement = e;
|
5209
5267
|
let r = !1, s = (o) => (r = !0, o.preventDefault(), t.init(o)), l = (o) => {
|
5210
|
-
let u = new
|
5268
|
+
let u = new ns(), p = t.range;
|
5211
5269
|
if (p == null)
|
5212
5270
|
u.x = o.clientX, u.y = o.clientY;
|
5213
5271
|
else {
|
5214
|
-
let { x: h, y: g, width: m, height:
|
5215
|
-
o.clientX < h ? u.x = h : o.clientX > h + m ? u.x = h + m : u.x = o.clientX, o.clientY < g ? u.y = g : o.clientY > g +
|
5272
|
+
let { x: h, y: g, width: m, height: k } = p;
|
5273
|
+
o.clientX < h ? u.x = h : o.clientX > h + m ? u.x = h + m : u.x = o.clientX, o.clientY < g ? u.y = g : o.clientY > g + k ? u.y = g + k : u.y = o.clientY;
|
5216
5274
|
}
|
5217
5275
|
if (t.affix) {
|
5218
5276
|
if (t.range == null)
|
@@ -5270,7 +5328,7 @@ class De extends se {
|
|
5270
5328
|
}
|
5271
5329
|
//#endregion
|
5272
5330
|
}
|
5273
|
-
class
|
5331
|
+
class is extends se {
|
5274
5332
|
constructor() {
|
5275
5333
|
super(...arguments);
|
5276
5334
|
n(this, "events", {});
|
@@ -5393,14 +5451,14 @@ class ns extends se {
|
|
5393
5451
|
clearTimeout(this.timer);
|
5394
5452
|
}
|
5395
5453
|
}
|
5396
|
-
class
|
5454
|
+
class as extends se {
|
5397
5455
|
/**
|
5398
5456
|
* 对比数据变动
|
5399
5457
|
*/
|
5400
5458
|
delta(i, e, t, r) {
|
5401
5459
|
}
|
5402
5460
|
}
|
5403
|
-
class
|
5461
|
+
class os extends se {
|
5404
5462
|
/**
|
5405
5463
|
* 初始化,并绑定自动关闭上下文菜单事件
|
5406
5464
|
*/
|
@@ -5440,7 +5498,7 @@ class as extends se {
|
|
5440
5498
|
}
|
5441
5499
|
}
|
5442
5500
|
}
|
5443
|
-
class
|
5501
|
+
class us extends se {
|
5444
5502
|
constructor() {
|
5445
5503
|
super(...arguments);
|
5446
5504
|
//#region 属性
|
@@ -5546,7 +5604,7 @@ const ne = class ne extends se {
|
|
5546
5604
|
let u = (await l.getKeysAsync(e)).filter((p) => isNaN(p) && !s.includes(p));
|
5547
5605
|
u.length > 0 && (this.oldKey = u[0], a = await l.replaceEntityAsync(e, this.oldKey, this.key));
|
5548
5606
|
}
|
5549
|
-
return s.includes(this.key) || s.push(this.key), a != null && d.object.mergeTo(r, a),
|
5607
|
+
return s.includes(this.key) || s.push(this.key), a != null && d.object.mergeTo(r, a), W(() => JSON.stringify(r), (o, u) => {
|
5550
5608
|
l != null && this.task.debounce(async () => {
|
5551
5609
|
let p = JSON.parse(o), h = JSON.parse(u);
|
5552
5610
|
this.form = p, await this.saveAsync(p), this.handler != null && await this.handler(p, h);
|
@@ -5577,15 +5635,15 @@ const ne = class ne extends se {
|
|
5577
5635
|
let t = ne.opened[this.kind], r = t.indexOf(this.key);
|
5578
5636
|
if (t.splice(r, 1), this.oldKey != null) {
|
5579
5637
|
let s = `/config/delete?kind=${this.kind}&type=${this.oldKey}`;
|
5580
|
-
await
|
5638
|
+
await _.post(s);
|
5581
5639
|
}
|
5582
5640
|
if (e == !0) {
|
5583
5641
|
await this.provider.deleteAsync(this.kind, this.key);
|
5584
5642
|
let s = `/config/delete?kind=${this.kind}&type=${this.key}`;
|
5585
|
-
await
|
5643
|
+
await _.post(s);
|
5586
5644
|
} else if (this.form != null) {
|
5587
5645
|
let s = `/config/save?kind=${this.kind}&type=${this.key}`;
|
5588
|
-
await
|
5646
|
+
await _.post(s, this.form);
|
5589
5647
|
}
|
5590
5648
|
}
|
5591
5649
|
//#endregion
|
@@ -5596,8 +5654,8 @@ const ne = class ne extends se {
|
|
5596
5654
|
* 使用静态对象记录各自工具类开启的窗口,保证同一个kind工具类,被窗口多开时,能够杜绝异步方法导致的变量不一致问题
|
5597
5655
|
*/
|
5598
5656
|
n(ne, "opened", {});
|
5599
|
-
let
|
5600
|
-
class
|
5657
|
+
let Se = ne;
|
5658
|
+
class cs extends se {
|
5601
5659
|
/**
|
5602
5660
|
* 初始化
|
5603
5661
|
*/
|
@@ -5605,61 +5663,61 @@ class us extends se {
|
|
5605
5663
|
super();
|
5606
5664
|
}
|
5607
5665
|
}
|
5608
|
-
class
|
5666
|
+
class ds extends D {
|
5609
5667
|
/**
|
5610
5668
|
* 创建固定工具
|
5611
5669
|
*/
|
5612
5670
|
affix(i, e) {
|
5613
|
-
return new
|
5671
|
+
return new cs(i, e);
|
5614
5672
|
}
|
5615
5673
|
/**
|
5616
5674
|
* 创建对比工具
|
5617
5675
|
*/
|
5618
5676
|
delta() {
|
5619
|
-
return new
|
5677
|
+
return new as();
|
5620
5678
|
}
|
5621
5679
|
/**
|
5622
5680
|
* 创建事件工具
|
5623
5681
|
*/
|
5624
5682
|
event() {
|
5625
|
-
return new
|
5683
|
+
return new Ee();
|
5626
5684
|
}
|
5627
5685
|
/**
|
5628
5686
|
* 创建键盘工具
|
5629
5687
|
*/
|
5630
5688
|
keyboard() {
|
5631
|
-
return new
|
5689
|
+
return new is();
|
5632
5690
|
}
|
5633
5691
|
/**
|
5634
5692
|
* 创建鼠标工具
|
5635
5693
|
*/
|
5636
5694
|
mouse(i, e = null) {
|
5637
|
-
return new
|
5695
|
+
return new os(i, e);
|
5638
5696
|
}
|
5639
5697
|
/**
|
5640
5698
|
* 创建随机工具
|
5641
5699
|
*/
|
5642
5700
|
random() {
|
5643
|
-
return new
|
5701
|
+
return new us();
|
5644
5702
|
}
|
5645
5703
|
/**
|
5646
5704
|
* 创建保存工具
|
5647
5705
|
*/
|
5648
5706
|
save() {
|
5649
|
-
return new
|
5707
|
+
return new Se();
|
5650
5708
|
}
|
5651
5709
|
}
|
5652
|
-
class
|
5710
|
+
class $l extends D {
|
5653
5711
|
open() {
|
5654
5712
|
super.open(), super.types = [];
|
5655
5713
|
}
|
5656
5714
|
}
|
5657
|
-
class
|
5715
|
+
class lt {
|
5658
5716
|
constructor() {
|
5659
5717
|
n(this, "type");
|
5660
5718
|
}
|
5661
5719
|
}
|
5662
|
-
class
|
5720
|
+
class ps extends lt {
|
5663
5721
|
constructor() {
|
5664
5722
|
super(...arguments);
|
5665
5723
|
n(this, "type", "Tencent");
|
@@ -5680,7 +5738,7 @@ class ds extends rt {
|
|
5680
5738
|
startRecord() {
|
5681
5739
|
}
|
5682
5740
|
}
|
5683
|
-
class
|
5741
|
+
class hs extends lt {
|
5684
5742
|
constructor() {
|
5685
5743
|
super(...arguments);
|
5686
5744
|
n(this, "type", "Default");
|
@@ -5694,19 +5752,19 @@ class ps extends rt {
|
|
5694
5752
|
return "";
|
5695
5753
|
}
|
5696
5754
|
}
|
5697
|
-
class
|
5755
|
+
class jl extends D {
|
5698
5756
|
open() {
|
5699
|
-
super.open(), super.types = [
|
5757
|
+
super.open(), super.types = [hs, ps];
|
5700
5758
|
}
|
5701
5759
|
}
|
5702
|
-
let
|
5760
|
+
let gs = {}, le = {}, _ = {}, Ie = {}, nt = {}, $e = {}, fs = {}, ie = {}, ys = async (c) => {
|
5703
5761
|
let e = await (await y.provider.getDefaultAsync("sys")).getAsync("sys", "app");
|
5704
|
-
(e == null ? void 0 : e.cdn) != null && (c.cdn = e.cdn), le = await y.cdn.createWithCacheAsync(c.cdn),
|
5762
|
+
(e == null ? void 0 : e.cdn) != null && (c.cdn = e.cdn), le = await y.cdn.createWithCacheAsync(c.cdn), gs = await y.encoder.getBase64(), _ = y.http.halo, $e = y.socket.default, Ie = await y.i18n.createWithCacheAsync("Default", async (t) => {
|
5705
5763
|
let r = (e == null ? void 0 : e.language) ?? d.browser.getLanguage(), s = d.json.serialize({ lang: r });
|
5706
|
-
await t.openAsync(s), fe = t.t,
|
5707
|
-
}),
|
5708
|
-
}, fe = {},
|
5709
|
-
class
|
5764
|
+
await t.openAsync(s), fe = t.t, ms = t.t_exists, vs = t.t_sys, ws = t.t_enum, bs = t.t_field, ks = t.t_field_choose_placeholder, xs = t.t_field_placeholder, As = t.t_table, Ss = t.t_module, _s = t.t_menu;
|
5765
|
+
}), Ie.addMessages(c.lang), nt = await y.hasher.getMd5(), fs = y.template.create("Liquid"), c.messenger == null ? ie = await y.messenger.getConsole() : ie = c.messenger;
|
5766
|
+
}, fe = {}, ms = {}, vs = {}, ws = {}, bs = {}, ks = {}, xs = {}, As = {}, Ss = {}, _s = {};
|
5767
|
+
class Cs {
|
5710
5768
|
constructor() {
|
5711
5769
|
/**
|
5712
5770
|
* 消息发送对象
|
@@ -5730,10 +5788,10 @@ class _s {
|
|
5730
5788
|
n(this, "cdn", "Local");
|
5731
5789
|
}
|
5732
5790
|
}
|
5733
|
-
const
|
5791
|
+
const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
5734
5792
|
key: 0,
|
5735
5793
|
class: "empty-content"
|
5736
|
-
},
|
5794
|
+
}, Dl = /* @__PURE__ */ P({
|
5737
5795
|
__name: "Empty",
|
5738
5796
|
props: {
|
5739
5797
|
message: { type: String, default: "暂无数据" },
|
@@ -5741,18 +5799,18 @@ const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
|
|
5741
5799
|
},
|
5742
5800
|
setup(c) {
|
5743
5801
|
let i = c, { message: e, hasData: t } = z(i);
|
5744
|
-
return (r, s) => (
|
5745
|
-
|
5746
|
-
f(t) ? (
|
5802
|
+
return (r, s) => (C(), T("div", Ts, [
|
5803
|
+
S("div", Es, N(f(e)), 1),
|
5804
|
+
f(t) ? (C(), T("div", $s, [
|
5747
5805
|
Y(r.$slots, "default")
|
5748
5806
|
])) : ye("", !0)
|
5749
5807
|
]));
|
5750
5808
|
}
|
5751
|
-
}),
|
5809
|
+
}), js = /* @__PURE__ */ P({
|
5752
5810
|
__name: "Fill",
|
5753
5811
|
emits: ["resize"],
|
5754
5812
|
setup(c, { emit: i }) {
|
5755
|
-
let e = i, t =
|
5813
|
+
let e = i, t = U(), r = U(), s = U(), l = new Ee(), a = () => {
|
5756
5814
|
let p = d.dom.siblings(t.value);
|
5757
5815
|
s.value = d.dom.getHeight(p);
|
5758
5816
|
}, o = () => {
|
@@ -5760,118 +5818,118 @@ const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
|
|
5760
5818
|
}, u = () => {
|
5761
5819
|
o();
|
5762
5820
|
};
|
5763
|
-
return
|
5821
|
+
return ae(() => {
|
5764
5822
|
a(), o(), l.resize(t.value, u);
|
5765
|
-
}),
|
5823
|
+
}), oe(() => {
|
5766
5824
|
l.dispose();
|
5767
|
-
}), (p, h) => (
|
5825
|
+
}), (p, h) => (C(), T("div", {
|
5768
5826
|
class: "ha-fill",
|
5769
5827
|
ref_key: "fillRef",
|
5770
5828
|
ref: t,
|
5771
|
-
style:
|
5829
|
+
style: ee({ height: `calc(100% - ${f(s)}px)` })
|
5772
5830
|
}, [
|
5773
5831
|
Y(p.$slots, "default")
|
5774
5832
|
], 4));
|
5775
5833
|
}
|
5776
|
-
}),
|
5834
|
+
}), Ds = /* @__PURE__ */ P({
|
5777
5835
|
__name: "Scroller",
|
5778
5836
|
props: {
|
5779
5837
|
options: {}
|
5780
5838
|
},
|
5781
5839
|
emits: ["scroll"],
|
5782
5840
|
setup(c, { expose: i, emit: e }) {
|
5783
|
-
let t = e, r = c, { options: s } = z(r), l =
|
5841
|
+
let t = e, r = c, { options: s } = z(r), l = U(), a = U(), o = U(), u = U(), p = U(!1), h = null, g = null, m = new Ee(), k = U({ top: null, height: null }), O = (w) => {
|
5784
5842
|
if (g == 0)
|
5785
5843
|
return 0;
|
5786
|
-
let
|
5787
|
-
return
|
5788
|
-
},
|
5789
|
-
let
|
5790
|
-
return
|
5844
|
+
let b = g - h;
|
5845
|
+
return w / b;
|
5846
|
+
}, B = (w) => {
|
5847
|
+
let b = h - k.value.height;
|
5848
|
+
return w / b;
|
5791
5849
|
}, Q = () => {
|
5792
5850
|
if (g == 0)
|
5793
5851
|
return 80;
|
5794
|
-
let
|
5795
|
-
if (
|
5852
|
+
let w = h / g;
|
5853
|
+
if (w == 1)
|
5796
5854
|
return 0;
|
5797
|
-
let
|
5798
|
-
return d.math.between(
|
5799
|
-
}, X = (
|
5800
|
-
let
|
5801
|
-
return d.math.between(
|
5802
|
-
},
|
5803
|
-
let
|
5804
|
-
return { top: X(
|
5805
|
-
},
|
5806
|
-
}, A = (
|
5807
|
-
let
|
5808
|
-
R(
|
5809
|
-
}, R = (
|
5810
|
-
let
|
5811
|
-
|
5812
|
-
let
|
5813
|
-
s.value.scrollTop =
|
5814
|
-
}, J = (
|
5815
|
-
let
|
5816
|
-
R(
|
5855
|
+
let b = h * w;
|
5856
|
+
return d.math.between(b, 80, 500);
|
5857
|
+
}, X = (w, b) => {
|
5858
|
+
let E = O(w), V = (h - b) * E;
|
5859
|
+
return d.math.between(V, 0, h - b);
|
5860
|
+
}, $ = (w) => {
|
5861
|
+
let b = Q();
|
5862
|
+
return { top: X(w, b), height: b };
|
5863
|
+
}, F = (w) => {
|
5864
|
+
}, A = (w) => {
|
5865
|
+
let b = O(w);
|
5866
|
+
R(b);
|
5867
|
+
}, R = (w) => {
|
5868
|
+
let b = d.math.between(w, 0, 1), E = h - k.value.height;
|
5869
|
+
k.value.top = E * b;
|
5870
|
+
let q = (g - h) * b;
|
5871
|
+
s.value.scrollTop = q, a.value.scrollTop != q && (a.value.scrollTop = q);
|
5872
|
+
}, J = (w) => {
|
5873
|
+
let b = w.target, E = O(b.scrollTop);
|
5874
|
+
R(E), t("scroll", b);
|
5817
5875
|
}, v = () => {
|
5818
|
-
let
|
5819
|
-
|
5820
|
-
},
|
5876
|
+
let w = s.value.scrollTop;
|
5877
|
+
k.value = $(w), A(w);
|
5878
|
+
}, x = (w) => {
|
5821
5879
|
h = d.dom.getHeight(a.value), g = a.value.scrollHeight;
|
5822
|
-
let
|
5823
|
-
|
5824
|
-
},
|
5825
|
-
let
|
5826
|
-
return parseInt(
|
5827
|
-
},
|
5828
|
-
let
|
5880
|
+
let b = Q();
|
5881
|
+
k.value.height = b, k.value.top = X(s.value.scrollTop, b);
|
5882
|
+
}, j = (w) => {
|
5883
|
+
let b = w.target;
|
5884
|
+
return parseInt(b.style.top);
|
5885
|
+
}, M = (w, b, E, V) => {
|
5886
|
+
let q = w.y - b.y, pe = E + q, G = B(pe);
|
5829
5887
|
R(G);
|
5830
|
-
}, I = (
|
5888
|
+
}, I = (w) => {
|
5831
5889
|
p.value = !0;
|
5832
|
-
},
|
5890
|
+
}, L = (w) => {
|
5833
5891
|
p.value = !1;
|
5834
5892
|
};
|
5835
|
-
return
|
5836
|
-
v(), m.scroll(a.value, J), m.drag(u.value, { init:
|
5837
|
-
}),
|
5893
|
+
return ae(() => {
|
5894
|
+
v(), m.scroll(a.value, J), m.drag(u.value, { init: j, handler: M }), m.observe(a.value, x), m.mouseDown(u.value, I, L);
|
5895
|
+
}), oe(() => {
|
5838
5896
|
m.dispose();
|
5839
|
-
}),
|
5840
|
-
let
|
5841
|
-
R(
|
5842
|
-
}), i({ scrollTo: A, update: v }), (
|
5897
|
+
}), W(() => s.value.scrollTop, (w, b) => {
|
5898
|
+
let E = O(w);
|
5899
|
+
R(E);
|
5900
|
+
}), i({ scrollTo: A, update: v }), (w, b) => (C(), T("div", {
|
5843
5901
|
ref_key: "scrollerRef",
|
5844
5902
|
ref: l,
|
5845
5903
|
class: ce(["ha-scroller", { hover: f(p) }])
|
5846
5904
|
}, [
|
5847
|
-
|
5905
|
+
S("div", {
|
5848
5906
|
ref_key: "containerRef",
|
5849
5907
|
ref: a,
|
5850
5908
|
class: "scroller-container"
|
5851
5909
|
}, [
|
5852
|
-
Y(
|
5910
|
+
Y(w.$slots, "default")
|
5853
5911
|
], 512),
|
5854
|
-
|
5912
|
+
S("div", {
|
5855
5913
|
ref_key: "trackRef",
|
5856
5914
|
ref: o,
|
5857
5915
|
class: "scroller-track",
|
5858
|
-
onClick:
|
5859
|
-
(...
|
5916
|
+
onClick: b[0] || (b[0] = //@ts-ignore
|
5917
|
+
(...E) => f(F) && f(F)(...E))
|
5860
5918
|
}, [
|
5861
|
-
|
5919
|
+
S("div", {
|
5862
5920
|
ref_key: "thumbRef",
|
5863
5921
|
ref: u,
|
5864
5922
|
class: "scroller-thumb",
|
5865
|
-
style:
|
5866
|
-
},
|
5923
|
+
style: ee({ top: `${f(k).top}px`, height: `${f(k).height}px` })
|
5924
|
+
}, N(f(s).scrollTop), 5)
|
5867
5925
|
], 512)
|
5868
5926
|
], 2));
|
5869
5927
|
}
|
5870
|
-
}),
|
5928
|
+
}), Hl = /* @__PURE__ */ P({
|
5871
5929
|
__name: "Timer",
|
5872
5930
|
emits: ["change"],
|
5873
5931
|
setup(c, { expose: i, emit: e }) {
|
5874
|
-
let t = e, r = -8 * 60 * 60 * 1e3, s =
|
5932
|
+
let t = e, r = -8 * 60 * 60 * 1e3, s = U(r), l = null, a = 5, o = () => {
|
5875
5933
|
l == null && (l = setInterval(() => {
|
5876
5934
|
s.value += a, t("change", s.value);
|
5877
5935
|
}, a));
|
@@ -5882,11 +5940,11 @@ const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
|
|
5882
5940
|
}, h = () => {
|
5883
5941
|
clearInterval(l), s.value = r;
|
5884
5942
|
};
|
5885
|
-
return
|
5943
|
+
return oe(() => {
|
5886
5944
|
clearInterval(l);
|
5887
|
-
}), i({ restart: u, start: o, stop: p, reset: h }), (g, m) => (
|
5945
|
+
}), i({ restart: u, start: o, stop: p, reset: h }), (g, m) => (C(), T("span", null, [
|
5888
5946
|
Y(g.$slots, "default"),
|
5889
|
-
|
5947
|
+
Pe(N(f(d).time.format(f(s), "HH:mm:ss SSS")), 1)
|
5890
5948
|
]));
|
5891
5949
|
}
|
5892
5950
|
}), de = (c, i) => {
|
@@ -5894,13 +5952,13 @@ const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
|
|
5894
5952
|
for (const [t, r] of i)
|
5895
5953
|
e[t] = r;
|
5896
5954
|
return e;
|
5897
|
-
},
|
5898
|
-
function
|
5899
|
-
return
|
5955
|
+
}, Hs = {}, Us = { class: "ha-card" };
|
5956
|
+
function Os(c, i) {
|
5957
|
+
return C(), T("div", Us, [
|
5900
5958
|
Y(c.$slots, "default")
|
5901
5959
|
]);
|
5902
5960
|
}
|
5903
|
-
const
|
5961
|
+
const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
5904
5962
|
__name: "Code",
|
5905
5963
|
props: {
|
5906
5964
|
options: { default: {} },
|
@@ -5909,95 +5967,95 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
|
|
5909
5967
|
},
|
5910
5968
|
emits: ["mounted", "change", "scroll", "update:modelValue"],
|
5911
5969
|
setup(c, { expose: i, emit: e }) {
|
5912
|
-
let t = e, r = c, { options: s, border: l, modelValue: a } = z(r), o = null, u = null, p = null, h = { completion: null, hover: null }, g =
|
5970
|
+
let t = e, r = c, { options: s, border: l, modelValue: a } = z(r), o = null, u = null, p = null, h = { completion: null, hover: null }, g = U(), { app: m } = Z.sys, k = (v, x) => {
|
5913
5971
|
h.completion != null && h.completion.dispose();
|
5914
|
-
let
|
5915
|
-
h.completion =
|
5916
|
-
},
|
5917
|
-
provideCompletionItems: (
|
5918
|
-
let
|
5919
|
-
for (let
|
5920
|
-
let
|
5921
|
-
label:
|
5972
|
+
let j = d.array.distinct(x, (M) => M);
|
5973
|
+
h.completion = O(v, j);
|
5974
|
+
}, O = (v, x) => v == null || o == null ? null : o.languages.registerCompletionItemProvider(v, {
|
5975
|
+
provideCompletionItems: (M, I) => {
|
5976
|
+
let L = M.getWordUntilPosition(I), w = new o.Range(I.lineNumber, L.startColumn, I.lineNumber, L.endColumn), b = [];
|
5977
|
+
for (let E = 0; E < x.length; E++) {
|
5978
|
+
let V = x[E], q = {
|
5979
|
+
label: V,
|
5922
5980
|
kind: o.languages.CompletionItemKind.Keyword,
|
5923
|
-
insertText:
|
5924
|
-
detail:
|
5925
|
-
range:
|
5981
|
+
insertText: V,
|
5982
|
+
detail: V,
|
5983
|
+
range: w
|
5926
5984
|
};
|
5927
|
-
|
5985
|
+
b.push(q);
|
5928
5986
|
}
|
5929
|
-
return { suggestions:
|
5987
|
+
return { suggestions: b };
|
5930
5988
|
}
|
5931
|
-
}),
|
5932
|
-
let
|
5933
|
-
if (
|
5989
|
+
}), B = async (v) => {
|
5990
|
+
let x = Z.editor.intelli;
|
5991
|
+
if (x[v] != null)
|
5934
5992
|
return;
|
5935
|
-
let
|
5936
|
-
if (
|
5993
|
+
let j = o.languages.getLanguages().find((L) => L.id == v);
|
5994
|
+
if (j == null)
|
5937
5995
|
return;
|
5938
|
-
let
|
5939
|
-
if (
|
5996
|
+
let M = j.loader;
|
5997
|
+
if (M == null)
|
5940
5998
|
return;
|
5941
|
-
let I = await
|
5942
|
-
|
5943
|
-
}, Q = (v,
|
5944
|
-
const
|
5999
|
+
let I = await M();
|
6000
|
+
x[v] || (Q(v, I), X(v, I), x[v] = !0);
|
6001
|
+
}, Q = (v, x) => {
|
6002
|
+
const j = ["builtinFunctions", "keywords", "operators"];
|
5945
6003
|
return o.languages.registerCompletionItemProvider(v, {
|
5946
|
-
provideCompletionItems: (I,
|
5947
|
-
let
|
5948
|
-
for (let
|
5949
|
-
let
|
5950
|
-
if (
|
6004
|
+
provideCompletionItems: (I, L) => {
|
6005
|
+
let w = I.getWordUntilPosition(L), b = new o.Range(L.lineNumber, w.startColumn, L.lineNumber, w.endColumn), E = [];
|
6006
|
+
for (let V of j) {
|
6007
|
+
let q = x.language[V];
|
6008
|
+
if (q == null)
|
5951
6009
|
continue;
|
5952
|
-
let pe =
|
5953
|
-
|
5954
|
-
for (let
|
5955
|
-
let
|
5956
|
-
label:
|
5957
|
-
documentation:
|
5958
|
-
range:
|
6010
|
+
let pe = $(V), G, he;
|
6011
|
+
V == "keywords" ? (G = o.languages.CompletionItemKind.Keyword, he = " ") : V == "operators" ? (G = o.languages.CompletionItemKind.Operator, he = " ") : (G = o.languages.CompletionItemKind.Function, he = "()");
|
6012
|
+
for (let je of q) {
|
6013
|
+
let De = je.toLowerCase(), it = {
|
6014
|
+
label: De,
|
6015
|
+
documentation: je,
|
6016
|
+
range: b,
|
5959
6017
|
kind: G,
|
5960
|
-
insertText:
|
6018
|
+
insertText: De + he,
|
5961
6019
|
detail: pe
|
5962
6020
|
};
|
5963
|
-
|
6021
|
+
E.push(it);
|
5964
6022
|
}
|
5965
6023
|
}
|
5966
|
-
return { suggestions:
|
6024
|
+
return { suggestions: E };
|
5967
6025
|
}
|
5968
6026
|
});
|
5969
|
-
}, X = (v,
|
5970
|
-
const
|
6027
|
+
}, X = (v, x) => {
|
6028
|
+
const j = ["builtinFunctions", "keywords", "operators"];
|
5971
6029
|
return o.languages.registerHoverProvider(v, {
|
5972
|
-
provideHover: (I,
|
5973
|
-
let
|
5974
|
-
if (!
|
6030
|
+
provideHover: (I, L) => {
|
6031
|
+
let w = I.getWordAtPosition(L);
|
6032
|
+
if (!w)
|
5975
6033
|
return null;
|
5976
|
-
for (let
|
5977
|
-
let
|
5978
|
-
if (
|
6034
|
+
for (let b of j) {
|
6035
|
+
let E = x.language[b];
|
6036
|
+
if (E == null || E.find((G) => G == w.word.toUpperCase()) == null)
|
5979
6037
|
continue;
|
5980
|
-
let
|
6038
|
+
let q = $(b);
|
5981
6039
|
return {
|
5982
|
-
range: new o.Range(
|
6040
|
+
range: new o.Range(L.lineNumber, L.lineNumber, w.startColumn, w.endColumn),
|
5983
6041
|
contents: [
|
5984
|
-
{ value: "**" +
|
5985
|
-
{ value:
|
6042
|
+
{ value: "**" + w.word + "**" },
|
6043
|
+
{ value: q }
|
5986
6044
|
]
|
5987
6045
|
};
|
5988
6046
|
}
|
5989
6047
|
return null;
|
5990
6048
|
}
|
5991
6049
|
});
|
5992
|
-
},
|
5993
|
-
let
|
5994
|
-
return v == "keywords" ?
|
5995
|
-
},
|
6050
|
+
}, $ = (v) => {
|
6051
|
+
let x;
|
6052
|
+
return v == "keywords" ? x = "关键词" : v == "operators" ? x = "操作符" : x = "函数", x;
|
6053
|
+
}, F = (v) => v == "default" ? null : "vs-dark", A = async () => {
|
5996
6054
|
if (g.value == null)
|
5997
6055
|
return;
|
5998
6056
|
let v = null;
|
5999
6057
|
s.value.schema && (v = s.value.category + "/" + d.string.getUniqueId(), Z.tryAddSchema(v, s.value.category, s.value.schema));
|
6000
|
-
let
|
6058
|
+
let x = {
|
6001
6059
|
validate: !0,
|
6002
6060
|
allowComments: !0,
|
6003
6061
|
//允许配置注释
|
@@ -6006,10 +6064,10 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
|
|
6006
6064
|
trailingCommas: "ignore"
|
6007
6065
|
//允许末尾逗号
|
6008
6066
|
};
|
6009
|
-
o.languages.json.jsonDefaults.setDiagnosticsOptions(
|
6010
|
-
let
|
6011
|
-
p = o.editor.createModel(a.value, s.value.language,
|
6012
|
-
let
|
6067
|
+
o.languages.json.jsonDefaults.setDiagnosticsOptions(x), await B(s.value.language);
|
6068
|
+
let j = v ? o.Uri.parse(v) : null;
|
6069
|
+
p = o.editor.createModel(a.value, s.value.language, j);
|
6070
|
+
let M = {
|
6013
6071
|
tabSize: 2,
|
6014
6072
|
//Tab缩进大小
|
6015
6073
|
detectIndentation: !1,
|
@@ -6020,55 +6078,55 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
|
|
6020
6078
|
//默认已启用代码图
|
6021
6079
|
scrollbar: { verticalScrollbarSize: 0 },
|
6022
6080
|
//关闭最右侧垂直滚动条
|
6023
|
-
theme:
|
6081
|
+
theme: F(m.theme),
|
6024
6082
|
automaticLayout: !0,
|
6025
6083
|
//根据父元素自动布局
|
6026
6084
|
model: p
|
6027
6085
|
};
|
6028
|
-
u = o.editor.create(g.value,
|
6086
|
+
u = o.editor.create(g.value, M), s.value.scrollTop && u.setScrollTop(s.value.scrollTop);
|
6029
6087
|
let I = s.value.selection;
|
6030
6088
|
if (I) {
|
6031
|
-
let
|
6089
|
+
let L = {
|
6032
6090
|
startLineNumber: I.startLine,
|
6033
6091
|
endLineNumber: I.endLine,
|
6034
6092
|
startColumn: I.startColumn,
|
6035
6093
|
endColumn: I.endColumn
|
6036
6094
|
};
|
6037
|
-
u.setSelection(
|
6095
|
+
u.setSelection(L);
|
6038
6096
|
}
|
6039
|
-
u.onDidScrollChange((
|
6040
|
-
s.value.scrollTop =
|
6041
|
-
}), u.onDidChangeModelContent((
|
6042
|
-
let
|
6043
|
-
t("update:modelValue",
|
6097
|
+
u.onDidScrollChange((L) => {
|
6098
|
+
s.value.scrollTop = L.scrollTop, t("scroll", L.scrollTop);
|
6099
|
+
}), u.onDidChangeModelContent((L) => {
|
6100
|
+
let w = u.getValue();
|
6101
|
+
t("update:modelValue", w), t("change", w);
|
6044
6102
|
});
|
6045
6103
|
};
|
6046
|
-
|
6104
|
+
ae(async () => {
|
6047
6105
|
o = await le.getMonaco(), await A(), t("mounted", o, u);
|
6048
|
-
}),
|
6106
|
+
}), oe(() => {
|
6049
6107
|
var v;
|
6050
6108
|
p == null || p.dispose(), u == null || u.dispose(), (v = h.completion) == null || v.dispose();
|
6051
6109
|
});
|
6052
6110
|
let R = () => {
|
6053
6111
|
u == null || u.layout();
|
6054
6112
|
}, J = () => u;
|
6055
|
-
return
|
6056
|
-
let
|
6057
|
-
o.editor.setTheme(
|
6058
|
-
}),
|
6059
|
-
}),
|
6113
|
+
return W(() => m.theme, (v, x) => {
|
6114
|
+
let j = F(v);
|
6115
|
+
o.editor.setTheme(j);
|
6116
|
+
}), W(() => m.language, (v, x) => {
|
6117
|
+
}), W(() => a.value, (v, x) => {
|
6060
6118
|
if (!u)
|
6061
6119
|
return;
|
6062
|
-
let
|
6063
|
-
v !=
|
6064
|
-
}),
|
6120
|
+
let j = u.getValue();
|
6121
|
+
v != j && u.setValue(v ?? "");
|
6122
|
+
}), W(() => s.value.language, async (v, x) => {
|
6065
6123
|
if (!u)
|
6066
6124
|
return;
|
6067
|
-
let
|
6068
|
-
o.editor.setModelLanguage(
|
6069
|
-
}), i({ layout: R, getEditor: J, registerIntelli:
|
6070
|
-
default:
|
6071
|
-
|
6125
|
+
let j = u.getModel();
|
6126
|
+
o.editor.setModelLanguage(j, v), await B(v);
|
6127
|
+
}), i({ layout: R, getEditor: J, registerIntelli: k }), (v, x) => (C(), Be(js, null, {
|
6128
|
+
default: ue(() => [
|
6129
|
+
S("div", {
|
6072
6130
|
ref_key: "editorRef",
|
6073
6131
|
ref: g,
|
6074
6132
|
class: ce(["ha-code", { border: f(l) }])
|
@@ -6077,7 +6135,7 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
|
|
6077
6135
|
_: 1
|
6078
6136
|
}));
|
6079
6137
|
}
|
6080
|
-
}),
|
6138
|
+
}), Ol = /* @__PURE__ */ P({
|
6081
6139
|
__name: "Compare",
|
6082
6140
|
props: {
|
6083
6141
|
inline: { type: Boolean, default: !1 },
|
@@ -6087,74 +6145,74 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
|
|
6087
6145
|
},
|
6088
6146
|
emits: ["update:modelValue", "update:original", "change"],
|
6089
6147
|
setup(c, { emit: i }) {
|
6090
|
-
let e = i, t = c, { inline: r, language: s, original: l, modelValue: a } = z(t), o = null, u = null, p = null, h = null, g = null, m = null,
|
6091
|
-
u =
|
6148
|
+
let e = i, t = c, { inline: r, language: s, original: l, modelValue: a } = z(t), o = null, u = null, p = null, h = null, g = null, m = null, k = U(), O = U(), { app: B } = Z.sys, Q = ($) => $ == "default" ? null : "vs-dark", X = ($) => {
|
6149
|
+
u = $.editor.createModel(l.value, s.value), p = $.editor.createModel(a.value, s.value), o = $.editor.createDiffEditor(k.value, {
|
6092
6150
|
originalEditable: !0,
|
6093
6151
|
automaticLayout: !0,
|
6094
6152
|
renderSideBySide: !r.value,
|
6095
6153
|
//是否启用行内模式
|
6096
|
-
theme: Q(
|
6097
|
-
}), o.setModel({ original: u, modified: p }), h = o.getOriginalEditor(), h.onDidChangeModelContent((
|
6154
|
+
theme: Q(B.theme)
|
6155
|
+
}), o.setModel({ original: u, modified: p }), h = o.getOriginalEditor(), h.onDidChangeModelContent((F) => {
|
6098
6156
|
let A = h.getValue();
|
6099
6157
|
e("update:original", A), e("change", A);
|
6100
|
-
}), g = o.getModifiedEditor(), g.onDidChangeModelContent((
|
6158
|
+
}), g = o.getModifiedEditor(), g.onDidChangeModelContent((F) => {
|
6101
6159
|
let A = g.getValue();
|
6102
6160
|
e("update:modelValue", A);
|
6103
6161
|
});
|
6104
6162
|
};
|
6105
|
-
return
|
6163
|
+
return ae(async () => {
|
6106
6164
|
m = await le.getMonaco(), X(m);
|
6107
|
-
}),
|
6108
|
-
let A = Q(
|
6165
|
+
}), W(() => B.theme, ($, F) => {
|
6166
|
+
let A = Q($);
|
6109
6167
|
m.editor.setTheme(A);
|
6110
|
-
}),
|
6111
|
-
u && m.editor.setModelLanguage(u,
|
6112
|
-
}),
|
6168
|
+
}), W(() => s.value, ($, F) => {
|
6169
|
+
u && m.editor.setModelLanguage(u, $), p && m.editor.setModelLanguage(p, $);
|
6170
|
+
}), W(() => l.value, ($, F) => {
|
6113
6171
|
if (!u)
|
6114
6172
|
return;
|
6115
6173
|
let A = u.getValue();
|
6116
|
-
|
6117
|
-
}),
|
6174
|
+
$ != A && u.setValue($ ?? "");
|
6175
|
+
}), W(() => a.value, ($, F) => {
|
6118
6176
|
if (!p)
|
6119
6177
|
return;
|
6120
6178
|
let A = p.getValue();
|
6121
|
-
|
6122
|
-
}), (
|
6179
|
+
$ != A && p.setValue($ ?? "");
|
6180
|
+
}), ($, F) => (C(), T("div", {
|
6123
6181
|
ref_key: "compareRef",
|
6124
|
-
ref:
|
6182
|
+
ref: k,
|
6125
6183
|
class: "ha-compare",
|
6126
|
-
style:
|
6184
|
+
style: ee(f(O))
|
6127
6185
|
}, null, 4));
|
6128
6186
|
}
|
6129
|
-
}),
|
6130
|
-
function
|
6131
|
-
return
|
6132
|
-
|
6187
|
+
}), Ls = {}, Rs = { class: "ha-input" };
|
6188
|
+
function Is(c, i) {
|
6189
|
+
return C(), T("div", Rs, i[0] || (i[0] = [
|
6190
|
+
S("input", { type: "text" }, null, -1)
|
6133
6191
|
]));
|
6134
6192
|
}
|
6135
|
-
const
|
6136
|
-
function
|
6137
|
-
return
|
6193
|
+
const Ll = /* @__PURE__ */ de(Ls, [["render", Is]]), Ms = {}, Ps = { class: "ha-option" };
|
6194
|
+
function Bs(c, i) {
|
6195
|
+
return C(), T("div", Ps, "选项");
|
6138
6196
|
}
|
6139
|
-
const
|
6197
|
+
const Fs = /* @__PURE__ */ de(Ms, [["render", Bs]]), Ns = { class: "ha-rich-text" }, Rl = /* @__PURE__ */ P({
|
6140
6198
|
__name: "RichText",
|
6141
|
-
props: /* @__PURE__ */
|
6199
|
+
props: /* @__PURE__ */ He({
|
6142
6200
|
options: {}
|
6143
6201
|
}, {
|
6144
6202
|
modelValue: {},
|
6145
6203
|
modelModifiers: {}
|
6146
6204
|
}),
|
6147
|
-
emits: /* @__PURE__ */
|
6205
|
+
emits: /* @__PURE__ */ He(["change", "scroll"], ["update:modelValue"]),
|
6148
6206
|
setup(c, { expose: i, emit: e }) {
|
6149
|
-
let t = e, r = c, { options: s } = z(r), l = Fe(c, "modelValue"), a, o = null, u = null, p = !1, h = !1, g =
|
6150
|
-
let R = d.time.getDateString(), J = getSelection(), v = J.getRangeAt(0),
|
6151
|
-
if (
|
6152
|
-
|
6207
|
+
let t = e, r = c, { options: s } = z(r), l = Fe(c, "modelValue"), a, o = null, u = null, p = !1, h = !1, g = U(), m = U(), k = U(), O = U(!1), B = U({ style: null, options: { scrollTop: 0 } }), Q = (A) => {
|
6208
|
+
let R = d.time.getDateString(), J = getSelection(), v = J.getRangeAt(0), x = v.startContainer;
|
6209
|
+
if (x.nodeName == "#text")
|
6210
|
+
x.insertData(v.startOffset, R), v.setStart(x, v.startOffset + R.length), J.removeAllRanges(), J.addRange(v);
|
6153
6211
|
else {
|
6154
|
-
let
|
6155
|
-
|
6156
|
-
let
|
6157
|
-
|
6212
|
+
let j = document.createTextNode(R);
|
6213
|
+
x.appendChild(j);
|
6214
|
+
let M = document.createRange();
|
6215
|
+
M.selectNodeContents(j), M.setStart(j, M.startOffset + R.length), J.removeAllRanges(), J.addRange(M);
|
6158
6216
|
}
|
6159
6217
|
}, X = (A) => {
|
6160
6218
|
if (o.scrollTop = A.scrollTop, p || h) {
|
@@ -6162,7 +6220,7 @@ const Bs = /* @__PURE__ */ de(Is, [["render", Ms]]), Fs = { class: "ha-rich-text
|
|
6162
6220
|
return;
|
6163
6221
|
}
|
6164
6222
|
u = A, t("scroll", A);
|
6165
|
-
},
|
6223
|
+
}, $ = () => `height: calc(100% - ${d.dom.getHeight(m.value)}px)`, F = async () => {
|
6166
6224
|
let A = await le.getQuill();
|
6167
6225
|
a = new A(g.value, {
|
6168
6226
|
modules: {
|
@@ -6172,43 +6230,43 @@ const Bs = /* @__PURE__ */ de(Is, [["render", Ms]]), Fs = { class: "ha-rich-text
|
|
6172
6230
|
}
|
6173
6231
|
},
|
6174
6232
|
theme: "snow"
|
6175
|
-
}),
|
6176
|
-
|
6177
|
-
}), s.value.readonly && a.disable(), o = g.value.querySelector(".ql-editor"), o.innerHTML = l.value,
|
6233
|
+
}), O.value = !0, Ue(() => {
|
6234
|
+
B.value.style = $();
|
6235
|
+
}), s.value.readonly && a.disable(), o = g.value.querySelector(".ql-editor"), o.innerHTML = l.value, B.value.options.scrollTop = s.value.scrollTop, a.on("text-change", (R, J, v) => {
|
6178
6236
|
o.innerHTML != l.value && (p = !0, l.value = o.innerHTML);
|
6179
6237
|
}), o.addEventListener("paste", (R) => {
|
6180
6238
|
h = !0;
|
6181
6239
|
});
|
6182
6240
|
};
|
6183
|
-
return
|
6184
|
-
|
6185
|
-
}),
|
6241
|
+
return ae(() => {
|
6242
|
+
F();
|
6243
|
+
}), oe(() => {
|
6186
6244
|
a = null;
|
6187
|
-
}),
|
6245
|
+
}), W(() => l.value, (A, R) => {
|
6188
6246
|
o && o.innerHTML != A && (o.innerHTML = A);
|
6189
|
-
}),
|
6190
|
-
A != null && (u == null ? void 0 : u.scrollTop) != A &&
|
6191
|
-
|
6247
|
+
}), W(() => s.value.scrollTop, (A, R) => {
|
6248
|
+
A != null && (u == null ? void 0 : u.scrollTop) != A && Ue(() => {
|
6249
|
+
B.value.options.scrollTop = A;
|
6192
6250
|
});
|
6193
|
-
}), i({}), (A, R) => (
|
6194
|
-
|
6251
|
+
}), i({}), (A, R) => (C(), T("div", Ns, [
|
6252
|
+
ct(S("div", {
|
6195
6253
|
ref_key: "toolbarRef",
|
6196
6254
|
ref: m
|
6197
6255
|
}, R[0] || (R[0] = [
|
6198
|
-
|
6256
|
+
dt('<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 <ctrl+i>"></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)
|
6199
6257
|
]), 512), [
|
6200
|
-
[
|
6258
|
+
[pt, f(O)]
|
6201
6259
|
]),
|
6202
|
-
|
6260
|
+
re(f(Ds), {
|
6203
6261
|
ref_key: "scrollerRef",
|
6204
|
-
ref:
|
6262
|
+
ref: k,
|
6205
6263
|
class: "ql-body",
|
6206
|
-
options: f(
|
6264
|
+
options: f(B).options,
|
6207
6265
|
onScroll: f(X),
|
6208
|
-
style:
|
6266
|
+
style: ee(f(B).style)
|
6209
6267
|
}, {
|
6210
|
-
default:
|
6211
|
-
|
6268
|
+
default: ue(() => [
|
6269
|
+
S("div", {
|
6212
6270
|
ref_key: "editorRef",
|
6213
6271
|
ref: g
|
6214
6272
|
}, null, 512)
|
@@ -6217,17 +6275,17 @@ const Bs = /* @__PURE__ */ de(Is, [["render", Ms]]), Fs = { class: "ha-rich-text
|
|
6217
6275
|
}, 8, ["options", "onScroll", "style"])
|
6218
6276
|
]));
|
6219
6277
|
}
|
6220
|
-
}),
|
6221
|
-
function
|
6222
|
-
return
|
6223
|
-
|
6224
|
-
|
6225
|
-
|
6278
|
+
}), Vs = {}, qs = { class: "ha-select" };
|
6279
|
+
function Ws(c, i) {
|
6280
|
+
return C(), T("div", qs, i[0] || (i[0] = [
|
6281
|
+
S("div", { class: "select-title" }, "头", -1),
|
6282
|
+
S("div", { class: "select-body" }, [
|
6283
|
+
S("input", { type: "text" })
|
6226
6284
|
], -1)
|
6227
6285
|
]));
|
6228
6286
|
}
|
6229
|
-
const
|
6230
|
-
class
|
6287
|
+
const be = /* @__PURE__ */ de(Vs, [["render", Ws]]);
|
6288
|
+
class Il {
|
6231
6289
|
/**
|
6232
6290
|
* 初始化
|
6233
6291
|
*/
|
@@ -6251,7 +6309,7 @@ class Ul {
|
|
6251
6309
|
this.startLine = i, this.endLine = e, this.startColumn = t, this.endColumn = r;
|
6252
6310
|
}
|
6253
6311
|
}
|
6254
|
-
const
|
6312
|
+
const zs = { class: "ha-condition" }, Ks = /* @__PURE__ */ P({
|
6255
6313
|
__name: "Condition",
|
6256
6314
|
props: {
|
6257
6315
|
name: {},
|
@@ -6260,79 +6318,81 @@ const Ws = { class: "ha-condition" }, zs = /* @__PURE__ */ F({
|
|
6260
6318
|
},
|
6261
6319
|
setup(c) {
|
6262
6320
|
let i = c, { name: e, operator: t, value: r } = z(i);
|
6263
|
-
return (s, l) => (
|
6264
|
-
|
6321
|
+
return (s, l) => (C(), T("div", zs, [
|
6322
|
+
re(f(be), {
|
6265
6323
|
modelValue: f(e),
|
6266
6324
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => ve(e) ? e.value = a : e = a)
|
6267
6325
|
}, null, 8, ["modelValue"]),
|
6268
|
-
|
6326
|
+
re(f(be), {
|
6269
6327
|
modelValue: f(t),
|
6270
6328
|
"onUpdate:modelValue": l[1] || (l[1] = (a) => ve(t) ? t.value = a : t = a)
|
6271
6329
|
}, {
|
6272
|
-
default:
|
6273
|
-
|
6330
|
+
default: ue(() => [
|
6331
|
+
re(f(Fs))
|
6274
6332
|
]),
|
6275
6333
|
_: 1
|
6276
6334
|
}, 8, ["modelValue"]),
|
6277
|
-
|
6335
|
+
re(f(be), {
|
6278
6336
|
modelValue: f(r),
|
6279
6337
|
"onUpdate:modelValue": l[2] || (l[2] = (a) => ve(r) ? r.value = a : r = a)
|
6280
6338
|
}, null, 8, ["modelValue"])
|
6281
6339
|
]));
|
6282
6340
|
}
|
6283
|
-
}),
|
6341
|
+
}), Js = { class: "ha-condition-group" }, Ml = /* @__PURE__ */ P({
|
6284
6342
|
__name: "Index",
|
6285
6343
|
props: {
|
6286
6344
|
conditions: {}
|
6287
6345
|
},
|
6288
6346
|
setup(c) {
|
6289
6347
|
let i = c, { conditions: e } = z(i);
|
6290
|
-
return (t, r) => (
|
6291
|
-
(
|
6348
|
+
return (t, r) => (C(), T("div", Js, [
|
6349
|
+
(C(!0), T(Ne, null, Ve(f(e), (s) => (C(), Be(f(Ks), {
|
6292
6350
|
name: s.name,
|
6293
6351
|
operator: s.operator,
|
6294
6352
|
value: s.value
|
6295
6353
|
}, null, 8, ["name", "operator", "value"]))), 256))
|
6296
6354
|
]));
|
6297
6355
|
}
|
6298
|
-
}),
|
6299
|
-
function
|
6300
|
-
return
|
6356
|
+
}), Qs = {}, Ys = { class: "ha-col" };
|
6357
|
+
function Xs(c, i) {
|
6358
|
+
return C(), T("div", Ys, [
|
6301
6359
|
Y(c.$slots, "default")
|
6302
6360
|
]);
|
6303
6361
|
}
|
6304
|
-
const
|
6362
|
+
const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
6305
6363
|
__name: "Container",
|
6306
6364
|
props: {
|
6307
6365
|
container: { type: Boolean, default: !0 }
|
6308
6366
|
},
|
6309
6367
|
setup(c) {
|
6310
6368
|
let i = c, { container: e } = z(i);
|
6311
|
-
return (t, r) => (
|
6369
|
+
return (t, r) => (C(), T("div", {
|
6312
6370
|
class: ce({ "ha-container": f(e) })
|
6313
6371
|
}, [
|
6314
6372
|
Y(t.$slots, "default")
|
6315
6373
|
], 2));
|
6316
6374
|
}
|
6317
|
-
}),
|
6375
|
+
}), Fl = /* @__PURE__ */ P({
|
6318
6376
|
__name: "Row",
|
6319
6377
|
props: {
|
6320
6378
|
gap: {},
|
6321
6379
|
direction: {}
|
6322
6380
|
},
|
6323
|
-
setup(c) {
|
6324
|
-
let
|
6325
|
-
let
|
6326
|
-
return
|
6327
|
-
});
|
6328
|
-
return (s,
|
6329
|
-
|
6330
|
-
|
6381
|
+
setup(c, { expose: i }) {
|
6382
|
+
let e = c, { gap: t, direction: r } = z(e), s = U(), l = ge(() => {
|
6383
|
+
let a = { gap: null };
|
6384
|
+
return t.value && (a.gap = t.value + "px"), a;
|
6385
|
+
});
|
6386
|
+
return i({ ref: s }), (a, o) => (C(), T("div", {
|
6387
|
+
ref_key: "rowRef",
|
6388
|
+
ref: s,
|
6389
|
+
class: ce(["ha-row", f(r)]),
|
6390
|
+
style: ee(f(l))
|
6331
6391
|
}, [
|
6332
|
-
Y(
|
6392
|
+
Y(a.$slots, "default")
|
6333
6393
|
], 6));
|
6334
6394
|
}
|
6335
|
-
}),
|
6395
|
+
}), Nl = /* @__PURE__ */ P({
|
6336
6396
|
__name: "Index",
|
6337
6397
|
props: {
|
6338
6398
|
modelValue: { type: Boolean },
|
@@ -6340,7 +6400,7 @@ const Ll = /* @__PURE__ */ de(Js, [["render", Ys]]), Rl = /* @__PURE__ */ F({
|
|
6340
6400
|
},
|
6341
6401
|
emits: ["update:modelValue"],
|
6342
6402
|
setup(c) {
|
6343
|
-
let i = Fe(c, "modelValue"), e =
|
6403
|
+
let i = Fe(c, "modelValue"), e = U(!0), t = U(0), r = null, s = () => {
|
6344
6404
|
t.value = 0, e.value = !0, r = setInterval(() => {
|
6345
6405
|
if (t.value < 100) {
|
6346
6406
|
t.value++;
|
@@ -6356,70 +6416,73 @@ const Ll = /* @__PURE__ */ de(Js, [["render", Ys]]), Rl = /* @__PURE__ */ F({
|
|
6356
6416
|
}, 200));
|
6357
6417
|
}, u);
|
6358
6418
|
};
|
6359
|
-
return
|
6419
|
+
return ae(() => {
|
6360
6420
|
i.value && s();
|
6361
|
-
}),
|
6421
|
+
}), oe(() => {
|
6362
6422
|
clearInterval(r);
|
6363
|
-
}),
|
6423
|
+
}), W(() => i.value, (a, o) => {
|
6364
6424
|
a ? s() : l();
|
6365
|
-
}), (a, o) => f(e) ? (
|
6425
|
+
}), (a, o) => f(e) ? (C(), T("div", {
|
6366
6426
|
key: 0,
|
6367
6427
|
class: "ha-progress",
|
6368
|
-
style:
|
6428
|
+
style: ee({ width: f(t) + "%" })
|
6369
6429
|
}, null, 4)) : ye("", !0);
|
6370
6430
|
}
|
6371
|
-
}),
|
6431
|
+
}), Gs = { class: "progress-tip success" }, Zs = { class: "progress-tip error" }, el = { class: "progress-bar" }, tl = { class: "progress-info" }, rl = { key: 0 }, sl = { class: "progress-text" }, Vl = /* @__PURE__ */ P({
|
6372
6432
|
__name: "SocketProgress",
|
6373
6433
|
props: {
|
6434
|
+
title: {},
|
6435
|
+
current: {},
|
6374
6436
|
progress: {}
|
6375
6437
|
},
|
6376
6438
|
setup(c) {
|
6377
|
-
let i = c, {
|
6378
|
-
return (
|
6439
|
+
let i = c, { title: e, current: t, progress: r } = z(i), s = ge(() => d.math.getPercentage(r.value.handled, r.value.total)), l = ge(() => `${r.value.handled ?? "-"}/${r.value.total ?? "-"}`), a = ge(() => d.math.getPercentageText(r.value.handled, r.value.total));
|
6440
|
+
return (o, u) => (C(), T("div", {
|
6379
6441
|
class: ce(["ha-socket-progress", {
|
6380
|
-
error: f(
|
6381
|
-
warning: f(
|
6442
|
+
error: f(r).errored > 0 && f(r).errored == f(r).handled,
|
6443
|
+
warning: f(r).errored > 0 && f(r).errored < f(r).handled
|
6382
6444
|
}])
|
6383
6445
|
}, [
|
6384
|
-
|
6385
|
-
default:
|
6386
|
-
|
6387
|
-
|
6388
|
-
|
6389
|
-
})) : ye("", !0),
|
6390
|
-
te(f(we), { class: "progress-tips" }, {
|
6391
|
-
default: ie(() => [
|
6392
|
-
_("div", Xs, "进度:" + W(f(r)), 1),
|
6393
|
-
_("div", Gs, "成功:" + W(f(e).succeed ?? "-"), 1),
|
6394
|
-
_("div", Zs, "异常:" + W(f(e).errored ?? "-"), 1),
|
6395
|
-
Y(l.$slots, "default")
|
6446
|
+
re(f(Me), { class: "progress-tips" }, {
|
6447
|
+
default: ue(() => [
|
6448
|
+
S("div", Gs, "成功:" + N(f(r).succeed ?? "-"), 1),
|
6449
|
+
S("div", Zs, "异常:" + N(f(r).errored ?? "-"), 1),
|
6450
|
+
Y(o.$slots, "default")
|
6396
6451
|
]),
|
6397
6452
|
_: 3
|
6398
6453
|
}),
|
6399
|
-
|
6400
|
-
default:
|
6401
|
-
|
6402
|
-
|
6403
|
-
|
6404
|
-
|
6405
|
-
|
6406
|
-
|
6407
|
-
|
6408
|
-
|
6454
|
+
re(f(Me), { class: "progress-chart" }, {
|
6455
|
+
default: ue(() => {
|
6456
|
+
var p;
|
6457
|
+
return [
|
6458
|
+
S("div", el, [
|
6459
|
+
S("div", {
|
6460
|
+
class: "progress-percentage",
|
6461
|
+
style: ee({ width: f(s) + "%" })
|
6462
|
+
}, null, 4),
|
6463
|
+
S("div", tl, [
|
6464
|
+
S("div", null, N(f(e)) + ":" + N(((p = f(r).current) == null ? void 0 : p[f(t)]) ?? "-"), 1),
|
6465
|
+
f(r).elapsed ? (C(), T("div", rl, "耗时:" + N(f(d).math.round(f(r).elapsed / 1e3, 2)) + "s", 1)) : ye("", !0),
|
6466
|
+
S("div", null, "进度:" + N(f(l)), 1)
|
6467
|
+
])
|
6468
|
+
]),
|
6469
|
+
S("div", sl, N(f(a)) + "%", 1)
|
6470
|
+
];
|
6471
|
+
}),
|
6409
6472
|
_: 1
|
6410
6473
|
})
|
6411
6474
|
], 2));
|
6412
6475
|
}
|
6413
|
-
}),
|
6476
|
+
}), ll = {
|
6414
6477
|
key: 0,
|
6415
6478
|
class: "ha-spinner is-error"
|
6416
|
-
},
|
6479
|
+
}, nl = { class: "spinner-title" }, il = {
|
6417
6480
|
key: 0,
|
6418
6481
|
class: "spinner-content"
|
6419
|
-
},
|
6482
|
+
}, al = { class: "stack" }, ol = {
|
6420
6483
|
key: 1,
|
6421
6484
|
class: "ha-spinner is-loading"
|
6422
|
-
},
|
6485
|
+
}, ul = { class: "spinner-loading" }, cl = { class: "spinner-text" }, ql = /* @__PURE__ */ P({
|
6423
6486
|
__name: "Spinner",
|
6424
6487
|
props: {
|
6425
6488
|
title: { type: String },
|
@@ -6432,172 +6495,190 @@ const Ll = /* @__PURE__ */ de(Js, [["render", Ys]]), Rl = /* @__PURE__ */ F({
|
|
6432
6495
|
let e = i, t = c, { title: r, content: s } = z(t), l = () => {
|
6433
6496
|
e("retry");
|
6434
6497
|
};
|
6435
|
-
return (a, o) => f(r) || f(s) ? (
|
6436
|
-
|
6437
|
-
|
6438
|
-
|
6498
|
+
return (a, o) => f(r) || f(s) ? (C(), T("div", ll, [
|
6499
|
+
S("div", nl, [
|
6500
|
+
Pe(N(f(r)), 1),
|
6501
|
+
S("a", {
|
6439
6502
|
class: "retry",
|
6440
6503
|
onClick: o[0] || (o[0] = //@ts-ignore
|
6441
6504
|
(...u) => f(l) && f(l)(...u))
|
6442
|
-
},
|
6505
|
+
}, N(f(fe)("common.retry")), 1)
|
6443
6506
|
]),
|
6444
|
-
f(s) ? (
|
6445
|
-
|
6507
|
+
f(s) ? (C(), T("div", il, [
|
6508
|
+
S("div", al, N(f(s)), 1)
|
6446
6509
|
])) : ye("", !0)
|
6447
|
-
])) : (
|
6448
|
-
|
6449
|
-
o[1] || (o[1] =
|
6450
|
-
|
6451
|
-
|
6452
|
-
|
6453
|
-
|
6510
|
+
])) : (C(), T("div", ol, [
|
6511
|
+
S("div", ul, [
|
6512
|
+
o[1] || (o[1] = S("div", { class: "spinner-dots" }, [
|
6513
|
+
S("i"),
|
6514
|
+
S("i"),
|
6515
|
+
S("i"),
|
6516
|
+
S("i")
|
6454
6517
|
], -1)),
|
6455
|
-
|
6518
|
+
S("div", cl, N(f(fe)("common.loading")) + "...", 1)
|
6456
6519
|
])
|
6457
6520
|
]));
|
6458
6521
|
}
|
6459
|
-
}),
|
6522
|
+
}), dl = { class: "ha-tab" }, Wl = /* @__PURE__ */ P({
|
6460
6523
|
__name: "Tab",
|
6461
6524
|
props: {
|
6462
6525
|
mode: {},
|
6463
6526
|
destroy: { type: Boolean }
|
6464
6527
|
},
|
6465
6528
|
setup(c) {
|
6466
|
-
return z(c), (e, t) => (
|
6467
|
-
|
6468
|
-
|
6529
|
+
return z(c), (e, t) => (C(), T("div", dl, t[0] || (t[0] = [
|
6530
|
+
S("div", { class: "tab-header" }, null, -1),
|
6531
|
+
S("div", { class: "tab-body" }, null, -1)
|
6469
6532
|
])));
|
6470
6533
|
}
|
6534
|
+
}), pl = { class: "ha-dance" }, zl = /* @__PURE__ */ P({
|
6535
|
+
__name: "Dance",
|
6536
|
+
props: {
|
6537
|
+
text: {},
|
6538
|
+
delay: { default: 0 }
|
6539
|
+
},
|
6540
|
+
setup(c) {
|
6541
|
+
let i = c, { text: e, delay: t } = z(i);
|
6542
|
+
return (r, s) => (C(), T("div", pl, [
|
6543
|
+
(C(!0), T(Ne, null, Ve(f(e), (l, a) => (C(), T("div", {
|
6544
|
+
class: "char",
|
6545
|
+
style: ee({ animationDelay: `${f(t) + a * 0.1}s` })
|
6546
|
+
}, N(l), 5))), 256))
|
6547
|
+
]));
|
6548
|
+
}
|
6471
6549
|
});
|
6472
|
-
let
|
6473
|
-
c == null && (c = new
|
6474
|
-
let i = await
|
6475
|
-
await
|
6550
|
+
let Kl = async (c) => {
|
6551
|
+
c == null && (c = new Cs()), await ys(c), await St();
|
6552
|
+
let i = await Ht.getSso(), e = Z.sys.app, t = { baseUrl: c.baseUrl, language: e.language, user: i, platform: "pc" }, r = d.json.serialize(t);
|
6553
|
+
await _.openAsync(r);
|
6476
6554
|
let s = { url: c.socketUrl }, l = d.json.serialize(s);
|
6477
|
-
await
|
6478
|
-
let {
|
6479
|
-
return
|
6555
|
+
await $e.openAsync(l), _.onResponse = async (a) => {
|
6556
|
+
let { ok: o, status: u, data: p } = a;
|
6557
|
+
return o == !1 ? (Oe.add(u.toString(), a.message, "网络错误", a.elapsed), ie.error(a.message), Promise.reject(a)) : p.code == null || (Oe.add(p.code, p.message, p.stack, p.elapsed), p.code == "Ok") ? Promise.resolve() : (ie.error(p.message), Promise.reject(p));
|
6480
6558
|
};
|
6481
6559
|
};
|
6482
6560
|
export {
|
6483
|
-
|
6484
|
-
|
6561
|
+
Rr as ArrayUtil,
|
6562
|
+
rs as BrowserUtil,
|
6485
6563
|
Pt as BuilderFactory,
|
6486
|
-
|
6487
|
-
|
6488
|
-
|
6489
|
-
|
6490
|
-
|
6564
|
+
Ye as Cdn,
|
6565
|
+
Nt as CdnFactory,
|
6566
|
+
Ir as ComponentUtil,
|
6567
|
+
Cs as CreateFeOptions,
|
6568
|
+
as as DeltaUtility,
|
6491
6569
|
Pr as DictionaryUtil,
|
6492
|
-
|
6493
|
-
|
6494
|
-
|
6495
|
-
|
6496
|
-
|
6497
|
-
|
6498
|
-
|
6570
|
+
Mr as DomUtil,
|
6571
|
+
ns as DragEvent,
|
6572
|
+
Wt as EncoderFactory,
|
6573
|
+
Br as EventUtil,
|
6574
|
+
Ee as EventUtility,
|
6575
|
+
Jt as ExcelFactory,
|
6576
|
+
Xt as ExplainerFactory,
|
6499
6577
|
y as Factories,
|
6500
6578
|
D as Factory,
|
6501
|
-
|
6502
|
-
|
6503
|
-
|
6504
|
-
|
6505
|
-
|
6506
|
-
|
6507
|
-
|
6508
|
-
|
6509
|
-
|
6510
|
-
|
6511
|
-
|
6512
|
-
|
6513
|
-
|
6514
|
-
|
6515
|
-
|
6516
|
-
|
6517
|
-
|
6518
|
-
|
6519
|
-
|
6520
|
-
|
6521
|
-
|
6522
|
-
|
6523
|
-
|
6524
|
-
|
6525
|
-
|
6526
|
-
|
6527
|
-
|
6528
|
-
|
6529
|
-
|
6530
|
-
|
6531
|
-
|
6532
|
-
|
6533
|
-
|
6534
|
-
|
6535
|
-
|
6536
|
-
|
6537
|
-
|
6538
|
-
|
6539
|
-
zr as
|
6540
|
-
|
6541
|
-
|
6542
|
-
|
6543
|
-
|
6544
|
-
|
6545
|
-
|
6546
|
-
|
6547
|
-
|
6548
|
-
|
6549
|
-
|
6550
|
-
|
6551
|
-
|
6552
|
-
|
6553
|
-
|
6554
|
-
|
6555
|
-
|
6556
|
-
|
6557
|
-
|
6558
|
-
|
6559
|
-
|
6560
|
-
Jr as
|
6561
|
-
|
6562
|
-
|
6563
|
-
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6567
|
-
|
6579
|
+
tr as FeatureFactory,
|
6580
|
+
Fr as FileUtil,
|
6581
|
+
Me as HaCard,
|
6582
|
+
Ul as HaCode,
|
6583
|
+
Pl as HaCol,
|
6584
|
+
Ol as HaCompare,
|
6585
|
+
Ks as HaCondition,
|
6586
|
+
Ml as HaConditionGroup,
|
6587
|
+
Bl as HaContainer,
|
6588
|
+
zl as HaDance,
|
6589
|
+
Dl as HaEmpty,
|
6590
|
+
js as HaFill,
|
6591
|
+
Ll as HaInput,
|
6592
|
+
Fs as HaOption,
|
6593
|
+
Nl as HaProgress,
|
6594
|
+
Rl as HaRichText,
|
6595
|
+
Fl as HaRow,
|
6596
|
+
Ds as HaScroller,
|
6597
|
+
be as HaSelect,
|
6598
|
+
Vl as HaSocketProgress,
|
6599
|
+
ql as HaSpinner,
|
6600
|
+
Wl as HaTab,
|
6601
|
+
Hl as HaTimer,
|
6602
|
+
or as HaloHttp,
|
6603
|
+
lr as HasherFactory,
|
6604
|
+
Nr as HtmlUtil,
|
6605
|
+
ur as HttpFactory,
|
6606
|
+
et as HttpRequest,
|
6607
|
+
Re as HttpResponse,
|
6608
|
+
pr as I18nFactory,
|
6609
|
+
Vr as ImageUtil,
|
6610
|
+
ts as JsonUtil,
|
6611
|
+
kt as KeyboardType,
|
6612
|
+
is as KeyboardUtility,
|
6613
|
+
qr as MathUtil,
|
6614
|
+
hr as Messenger,
|
6615
|
+
fr as MessengerFactory,
|
6616
|
+
Wr as MicroUtil,
|
6617
|
+
zr as MountUtil,
|
6618
|
+
os as MouseUtility,
|
6619
|
+
Kr as ObjectUtil,
|
6620
|
+
st as Position,
|
6621
|
+
It as ProviderFactory,
|
6622
|
+
Sl as ProviderTable,
|
6623
|
+
us as RandomUtility,
|
6624
|
+
Il as Range,
|
6625
|
+
El as Rect,
|
6626
|
+
Tl as Ref,
|
6627
|
+
bt as RepoFactory,
|
6628
|
+
Se as SaveUtility,
|
6629
|
+
Zr as ScrollUtil,
|
6630
|
+
ls as SignUtil,
|
6631
|
+
vr as SignerFactory,
|
6632
|
+
kr as SocketFactory,
|
6633
|
+
_l as SocketProgress,
|
6634
|
+
Cl as SocketResponse,
|
6635
|
+
Le as SqlHelper,
|
6636
|
+
Er as SsoFactory,
|
6637
|
+
tt as SsoUser,
|
6638
|
+
Jr as StringUtil,
|
6639
|
+
Dt as SvcFactory,
|
6640
|
+
Dr as TaskFactory,
|
6641
|
+
Qr as TaskUtil,
|
6642
|
+
Or as TemplateFactory,
|
6643
|
+
Xr as TimeUtil,
|
6644
|
+
Gr as TreeUtil,
|
6645
|
+
Yr as TypeUtil,
|
6646
|
+
ss as UrlUtil,
|
6647
|
+
Lr as UtilFactory,
|
6648
|
+
ds as UtilityFactory,
|
6568
6649
|
d as Utils,
|
6569
|
-
|
6570
|
-
|
6571
|
-
|
6650
|
+
$l as VideoFactory,
|
6651
|
+
jl as VoiceFactory,
|
6652
|
+
gs as base64,
|
6572
6653
|
le as cdn,
|
6573
6654
|
Z as configSvc,
|
6574
|
-
|
6575
|
-
|
6576
|
-
|
6577
|
-
|
6578
|
-
|
6579
|
-
|
6580
|
-
|
6581
|
-
|
6582
|
-
|
6583
|
-
|
6584
|
-
|
6655
|
+
Kl as createFe,
|
6656
|
+
xl as driverSvc,
|
6657
|
+
Al as envSvc,
|
6658
|
+
_ as http,
|
6659
|
+
Ie as i18n,
|
6660
|
+
ys as initDriverAsync,
|
6661
|
+
St as initRepoAsync,
|
6662
|
+
kl as initSvcAsync,
|
6663
|
+
Oe as logSvc,
|
6664
|
+
nt as md5,
|
6665
|
+
ie as messenger,
|
6666
|
+
xt as moduleRepo,
|
6585
6667
|
K as moment,
|
6586
|
-
|
6587
|
-
|
6588
|
-
|
6589
|
-
|
6590
|
-
He as socket,
|
6668
|
+
At as queryRepo,
|
6669
|
+
We as settingRepo,
|
6670
|
+
Qe as settingSvc,
|
6671
|
+
$e as socket,
|
6591
6672
|
fe as t,
|
6592
|
-
|
6593
|
-
|
6673
|
+
ws as t_enum,
|
6674
|
+
ms as t_exists,
|
6594
6675
|
bs as t_field,
|
6595
|
-
|
6676
|
+
ks as t_field_choose_placeholder,
|
6596
6677
|
xs as t_field_placeholder,
|
6597
|
-
|
6598
|
-
|
6599
|
-
|
6600
|
-
|
6601
|
-
|
6602
|
-
|
6678
|
+
_s as t_menu,
|
6679
|
+
Ss as t_module,
|
6680
|
+
vs as t_sys,
|
6681
|
+
As as t_table,
|
6682
|
+
fs as template,
|
6683
|
+
Ht as userSvc
|
6603
6684
|
};
|