halo-fe 1.0.27 → 1.0.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +733 -553
- package/esm/coms/controls/@types/CodeProps.d.ts +1 -1
- package/esm/coms/controls/Code.vue.d.ts +1 -1
- package/esm/coms/pagers/index.d.ts +1 -1
- package/esm/drivers/builders/BuilderFactory.d.ts +1 -0
- package/esm/drivers/cdns/Cdn.d.ts +6 -6
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -0
- package/esm/drivers/encoders/Encoder.d.ts +1 -1
- package/esm/drivers/encoders/EncoderFactory.d.ts +1 -0
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -0
- package/esm/drivers/explainers/ExplainerFactory.d.ts +1 -0
- package/esm/drivers/features/Feature.d.ts +9 -0
- package/esm/drivers/features/FeatureFactory.d.ts +1 -0
- package/esm/drivers/features/implements/ExpressionFeature.d.ts +2 -3
- package/esm/drivers/features/implements/I18NFeature.d.ts +2 -3
- package/esm/drivers/features/implements/SortFeature.d.ts +2 -3
- package/esm/drivers/hashers/HasherFactory.d.ts +1 -0
- package/esm/drivers/https/HttpFactory.d.ts +1 -0
- package/esm/drivers/https/IHttp.d.ts +1 -1
- package/esm/drivers/i18ns/I18nFactory.d.ts +1 -0
- package/esm/drivers/messengers/MessengerFactory.d.ts +1 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +1 -0
- package/esm/drivers/providers/implements/CookieProvider.d.ts +2 -1
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +2 -2
- package/esm/drivers/providers/implements/StorageProvider.d.ts +2 -1
- package/esm/drivers/signers/SignerFactory.d.ts +1 -0
- package/esm/drivers/sockets/Socket.d.ts +15 -1
- package/esm/drivers/sockets/SocketFactory.d.ts +1 -0
- package/esm/drivers/ssos/SsoFactory.d.ts +1 -0
- package/esm/drivers/tasks/TaskFactory.d.ts +1 -0
- package/esm/drivers/templates/TemplateFactory.d.ts +1 -0
- package/esm/drivers/util/UtilFactory.d.ts +2 -2
- package/esm/drivers/util/implements/JsonUtil.d.ts +9 -1
- package/esm/drivers/util/implements/ObjectUtil.d.ts +20 -0
- package/esm/drivers/util/index.d.ts +1 -2
- package/esm/drivers/utilities/UtilityFactory.d.ts +1 -0
- package/esm/drivers/videos/VideoFactory.d.ts +1 -0
- package/esm/drivers/voices/VoiceFactory.d.ts +1 -0
- package/esm/factory/Factory.d.ts +11 -3
- package/esm/factory/IFactory.d.ts +13 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -1,20 +1,24 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var n = (c, i, e) =>
|
4
|
-
import { reactive as _e, defineAsyncComponent as
|
5
|
-
import { L as
|
6
|
-
import { _ as
|
7
|
-
import { F as
|
8
|
-
import { a as
|
9
|
-
import { _ as
|
1
|
+
var ot = Object.defineProperty;
|
2
|
+
var ut = (c, i, e) => i in c ? ot(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
|
3
|
+
var n = (c, i, e) => ut(c, typeof i != "symbol" ? i + "" : i, e);
|
4
|
+
import { reactive as _e, defineAsyncComponent as ct, 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 Q, createCommentVNode as ye, ref as H, onMounted as ae, onUnmounted as oe, normalizeStyle as ee, normalizeClass as ce, createTextVNode as Be, createBlock as Fe, withCtx as ue, mergeModels as Oe, useModel as Ne, nextTick as Ue, withDirectives as dt, createStaticVNode as pt, vShow as ht, createVNode as te, isRef as ve, Fragment as qe, renderList as Ve, computed as ge } from "vue";
|
5
|
+
import { L as gt } from "./assets/liquidjs-C2HVw1Ra.js";
|
6
|
+
import { _ as be } from "./assets/underscore-B0BCaBxV.js";
|
7
|
+
import { F as ft } from "./assets/file-saver-Cnua3zoa.js";
|
8
|
+
import { a as yt } from "./assets/clone-DtpAsLoe.js";
|
9
|
+
import { _ as mt } from "./assets/underscore.string-oDfap0sE.js";
|
10
10
|
import { h as K } from "./assets/moment-h96o7c8I.js";
|
11
11
|
class D {
|
12
12
|
constructor() {
|
13
13
|
//#region 属性
|
14
14
|
/**
|
15
|
-
*
|
15
|
+
* 工厂类型,可用于异常提示
|
16
16
|
*/
|
17
|
-
n(this, "
|
17
|
+
n(this, "type");
|
18
|
+
/**
|
19
|
+
* 当前驱动子类型名称和子类型的映射关系,用于快速实例化
|
20
|
+
*/
|
21
|
+
n(this, "types", {});
|
18
22
|
/**
|
19
23
|
* 实例缓存集合
|
20
24
|
* 或者使用:Record<string, string>
|
@@ -38,7 +42,9 @@ class D {
|
|
38
42
|
open() {
|
39
43
|
}
|
40
44
|
register(i) {
|
41
|
-
|
45
|
+
let e = Object.keys(i);
|
46
|
+
for (let t of e)
|
47
|
+
this.types[t] = i[t];
|
42
48
|
}
|
43
49
|
//#endregion
|
44
50
|
//#region 创建并缓存
|
@@ -68,11 +74,11 @@ class D {
|
|
68
74
|
*/
|
69
75
|
create(i) {
|
70
76
|
if (i == null)
|
71
|
-
throw new Error(
|
72
|
-
let t = this.types
|
77
|
+
throw new Error(`${this.type} 工厂驱动类型不能为空`);
|
78
|
+
let t = Object.keys(this.types).find((s) => s.toLowerCase() == i.toLowerCase());
|
73
79
|
if (t == null)
|
74
|
-
throw new Error(`${this.
|
75
|
-
return t;
|
80
|
+
throw new Error(`${this.type} 工厂未找到 ${i} 类型的驱动`);
|
81
|
+
return new this.types[t]();
|
76
82
|
}
|
77
83
|
//#endregion
|
78
84
|
//#region 加载
|
@@ -85,7 +91,7 @@ class D {
|
|
85
91
|
}
|
86
92
|
//#endregion
|
87
93
|
}
|
88
|
-
class
|
94
|
+
class We {
|
89
95
|
constructor() {
|
90
96
|
n(this, "type");
|
91
97
|
}
|
@@ -158,7 +164,7 @@ class d {
|
|
158
164
|
return y.util.sign;
|
159
165
|
}
|
160
166
|
}
|
161
|
-
class
|
167
|
+
class vt extends We {
|
162
168
|
constructor() {
|
163
169
|
super(...arguments);
|
164
170
|
//#region 属性
|
@@ -264,7 +270,7 @@ class mt extends qe {
|
|
264
270
|
}
|
265
271
|
//#endregion
|
266
272
|
}
|
267
|
-
class
|
273
|
+
class bt extends We {
|
268
274
|
constructor() {
|
269
275
|
super(...arguments);
|
270
276
|
//#region 属性
|
@@ -375,9 +381,13 @@ class wt {
|
|
375
381
|
this[e] = i[e];
|
376
382
|
}
|
377
383
|
}
|
378
|
-
class
|
384
|
+
class kt extends D {
|
379
385
|
open() {
|
380
|
-
super.open(), super.
|
386
|
+
super.open(), super.register({
|
387
|
+
Module: vt,
|
388
|
+
Query: bt,
|
389
|
+
Setting: wt
|
390
|
+
});
|
381
391
|
}
|
382
392
|
/**
|
383
393
|
* 模块仓储
|
@@ -400,11 +410,11 @@ class bt extends D {
|
|
400
410
|
return this.createWithCache("Setting");
|
401
411
|
}
|
402
412
|
}
|
403
|
-
var
|
404
|
-
let
|
405
|
-
|
413
|
+
var xt = /* @__PURE__ */ ((c) => (c[c.ctrlS = 0] = "ctrlS", c[c.ctrlEnter = 1] = "ctrlEnter", c))(xt || {});
|
414
|
+
let At = {}, St = {}, ze = {}, _t = async () => {
|
415
|
+
At = y.repo.module, St = _e(y.repo.query), ze = y.repo.setting;
|
406
416
|
};
|
407
|
-
class
|
417
|
+
class Ct {
|
408
418
|
constructor() {
|
409
419
|
/**
|
410
420
|
* 默认背景
|
@@ -432,17 +442,17 @@ class _t {
|
|
432
442
|
n(this, "cdn", "Local");
|
433
443
|
}
|
434
444
|
}
|
435
|
-
class
|
445
|
+
class Tt {
|
436
446
|
constructor() {
|
437
447
|
/**
|
438
448
|
* 用户应用配置
|
439
449
|
*/
|
440
|
-
n(this, "app", new
|
450
|
+
n(this, "app", new Ct());
|
441
451
|
}
|
442
452
|
}
|
443
|
-
class
|
453
|
+
class Ke {
|
444
454
|
}
|
445
|
-
class
|
455
|
+
class Je extends Ke {
|
446
456
|
constructor() {
|
447
457
|
super(...arguments);
|
448
458
|
//#region 属性
|
@@ -450,7 +460,7 @@ class Ke extends ze {
|
|
450
460
|
/**
|
451
461
|
* 用户系统配置
|
452
462
|
*/
|
453
|
-
n(this, "sys", new
|
463
|
+
n(this, "sys", new Tt());
|
454
464
|
/**
|
455
465
|
* 文件布局方式
|
456
466
|
*/
|
@@ -567,7 +577,7 @@ class Ke extends ze {
|
|
567
577
|
return this.sys.app.language || e || "zh-cn";
|
568
578
|
}
|
569
579
|
}
|
570
|
-
class
|
580
|
+
class Et {
|
571
581
|
constructor() {
|
572
582
|
/**
|
573
583
|
* 环境变量
|
@@ -581,7 +591,7 @@ class Tt {
|
|
581
591
|
this.env = i, this.env.base = d.string.trimEnd(i.VITE_ROOT, "/");
|
582
592
|
}
|
583
593
|
}
|
584
|
-
class
|
594
|
+
class $t {
|
585
595
|
constructor() {
|
586
596
|
/**
|
587
597
|
* 日志集合
|
@@ -608,7 +618,7 @@ class Et {
|
|
608
618
|
this.logs = [];
|
609
619
|
}
|
610
620
|
}
|
611
|
-
class
|
621
|
+
class jt {
|
612
622
|
constructor() {
|
613
623
|
//#region 属性
|
614
624
|
n(this, "loaded", !1);
|
@@ -676,7 +686,7 @@ class $t {
|
|
676
686
|
let r = i[t];
|
677
687
|
r && (this[t] = r);
|
678
688
|
}
|
679
|
-
return d.dom.addClass(document.documentElement, this.theme,
|
689
|
+
return d.dom.addClass(document.documentElement, this.theme, ze.web.theme), d.mount.emits({ theme: this.theme }), Promise.resolve(i);
|
680
690
|
}).catch((i) => Promise.reject(i)));
|
681
691
|
}
|
682
692
|
//#endregion
|
@@ -687,7 +697,7 @@ class $t {
|
|
687
697
|
this.loaded || (await this.load(), this.loaded = !0);
|
688
698
|
}
|
689
699
|
}
|
690
|
-
class
|
700
|
+
class Dt {
|
691
701
|
constructor() {
|
692
702
|
//#region 属性
|
693
703
|
/**
|
@@ -763,12 +773,12 @@ class jt {
|
|
763
773
|
return _.post("/user/logout").then(async () => {
|
764
774
|
this.user = null, this.menus = null;
|
765
775
|
let i = await this.getSso();
|
766
|
-
return await (await y.sso.createAsync(i.type)).logout(),
|
776
|
+
return await (await y.sso.createAsync(i.type)).logout(), je.dispose(), Promise.resolve();
|
767
777
|
});
|
768
778
|
}
|
769
779
|
//#endregion
|
770
780
|
}
|
771
|
-
class
|
781
|
+
class Xe extends Ke {
|
772
782
|
constructor() {
|
773
783
|
super(...arguments);
|
774
784
|
//#region 属性
|
@@ -787,12 +797,12 @@ class Je extends ze {
|
|
787
797
|
}
|
788
798
|
//#endregion
|
789
799
|
}
|
790
|
-
class
|
800
|
+
class Ht extends D {
|
791
801
|
open() {
|
792
|
-
super.open(), super.
|
793
|
-
|
794
|
-
|
795
|
-
|
802
|
+
super.open(), super.register({
|
803
|
+
Config: Je,
|
804
|
+
Driver: Xe
|
805
|
+
});
|
796
806
|
}
|
797
807
|
static() {
|
798
808
|
debugger;
|
@@ -805,7 +815,7 @@ class Dt extends D {
|
|
805
815
|
}
|
806
816
|
}
|
807
817
|
let kl = () => {
|
808
|
-
}, Qe = _e(new
|
818
|
+
}, Qe = _e(new jt()), Z = new Je(), xl = _e(new Xe()), Al = new Et(), Le = new $t(), Ot = new Dt();
|
809
819
|
class y {
|
810
820
|
//#endregion
|
811
821
|
//#region 驱动工厂
|
@@ -813,103 +823,103 @@ class y {
|
|
813
823
|
* Builder工厂
|
814
824
|
*/
|
815
825
|
static get builder() {
|
816
|
-
return this.create(
|
826
|
+
return this.create(Bt);
|
817
827
|
}
|
818
828
|
/**
|
819
829
|
* CDN工厂
|
820
830
|
*/
|
821
831
|
static get cdn() {
|
822
|
-
return this.create(
|
832
|
+
return this.create(qt);
|
823
833
|
}
|
824
834
|
/**
|
825
835
|
* 编码器工厂
|
826
836
|
*/
|
827
837
|
static get encoder() {
|
828
|
-
return this.create(
|
838
|
+
return this.create(zt);
|
829
839
|
}
|
830
840
|
/**
|
831
841
|
* Excel工厂
|
832
842
|
*/
|
833
843
|
static get excel() {
|
834
|
-
return this.create(
|
844
|
+
return this.create(Xt);
|
835
845
|
}
|
836
846
|
/**
|
837
847
|
* Explainer工厂
|
838
848
|
*/
|
839
849
|
static get explainer() {
|
840
|
-
return this.create(
|
850
|
+
return this.create(Gt);
|
841
851
|
}
|
842
852
|
/**
|
843
853
|
* 特征工厂
|
844
854
|
*/
|
845
855
|
static get feature() {
|
846
|
-
return this.create(
|
856
|
+
return this.create(rr);
|
847
857
|
}
|
848
858
|
/**
|
849
859
|
* 哈希工厂
|
850
860
|
*/
|
851
861
|
static get hasher() {
|
852
|
-
return this.create(
|
862
|
+
return this.create(nr);
|
853
863
|
}
|
854
864
|
/**
|
855
865
|
* Http请求工厂
|
856
866
|
*/
|
857
867
|
static get http() {
|
858
|
-
return this.create(
|
868
|
+
return this.create(cr);
|
859
869
|
}
|
860
870
|
/**
|
861
871
|
* 多语言工厂
|
862
872
|
*/
|
863
873
|
static get i18n() {
|
864
|
-
return this.create(
|
874
|
+
return this.create(hr);
|
865
875
|
}
|
866
876
|
/**
|
867
877
|
* 消息提示请求工厂
|
868
878
|
*/
|
869
879
|
static get messenger() {
|
870
|
-
return this.create(
|
880
|
+
return this.create(yr);
|
871
881
|
}
|
872
882
|
/**
|
873
883
|
* 提供程序工厂
|
874
884
|
*/
|
875
885
|
static get provider() {
|
876
|
-
return this.create(
|
886
|
+
return this.create(Mt);
|
877
887
|
}
|
878
888
|
/**
|
879
889
|
* 签名工厂
|
880
890
|
*/
|
881
891
|
static get signer() {
|
882
|
-
return this.create(
|
892
|
+
return this.create(br);
|
883
893
|
}
|
884
894
|
/**
|
885
895
|
* 通信工厂
|
886
896
|
*/
|
887
897
|
static get socket() {
|
888
|
-
return this.create(
|
898
|
+
return this.create(xr);
|
889
899
|
}
|
890
900
|
/**
|
891
901
|
* SSO工厂
|
892
902
|
*/
|
893
903
|
static get sso() {
|
894
|
-
return this.create(
|
904
|
+
return this.create($r);
|
895
905
|
}
|
896
906
|
/**
|
897
907
|
* Task工厂
|
898
908
|
*/
|
899
909
|
static get task() {
|
900
|
-
return this.create(
|
910
|
+
return this.create(Hr);
|
901
911
|
}
|
902
912
|
/**
|
903
913
|
* 模板工厂
|
904
914
|
*/
|
905
915
|
static get template() {
|
906
|
-
return this.create(
|
916
|
+
return this.create(Lr);
|
907
917
|
}
|
908
918
|
/**
|
909
919
|
* 工具工厂
|
910
920
|
*/
|
911
921
|
static get util() {
|
912
|
-
return this.create(
|
922
|
+
return this.create(Rr);
|
913
923
|
}
|
914
924
|
/**
|
915
925
|
* 工具类工厂
|
@@ -923,7 +933,7 @@ class y {
|
|
923
933
|
* 仓储工厂
|
924
934
|
*/
|
925
935
|
static get repo() {
|
926
|
-
return this.create(
|
936
|
+
return this.create(kt);
|
927
937
|
}
|
928
938
|
//#endregion
|
929
939
|
//#region 服务工厂
|
@@ -931,7 +941,7 @@ class y {
|
|
931
941
|
* 服务工厂
|
932
942
|
*/
|
933
943
|
static get svc() {
|
934
|
-
return this.create(
|
944
|
+
return this.create(Ht);
|
935
945
|
}
|
936
946
|
//#endregion
|
937
947
|
//#region 创建
|
@@ -966,7 +976,7 @@ class Ut extends me {
|
|
966
976
|
return d.json.serialize(e.rows, !0);
|
967
977
|
}
|
968
978
|
}
|
969
|
-
class
|
979
|
+
class Lt extends me {
|
970
980
|
constructor() {
|
971
981
|
super(...arguments);
|
972
982
|
n(this, "type", "Mongo");
|
@@ -1006,7 +1016,7 @@ class Ce {
|
|
1006
1016
|
}
|
1007
1017
|
//#endregion
|
1008
1018
|
}
|
1009
|
-
const
|
1019
|
+
const le = class le extends Ce {
|
1010
1020
|
constructor() {
|
1011
1021
|
super(...arguments);
|
1012
1022
|
//#region 属性
|
@@ -1048,7 +1058,7 @@ const te = class te extends Ce {
|
|
1048
1058
|
let s = indexedDB.open(this.database);
|
1049
1059
|
s.onsuccess = (l) => {
|
1050
1060
|
let a = l.target.result;
|
1051
|
-
|
1061
|
+
le.version = a.version, this.objectStoreNames = a.objectStoreNames, t();
|
1052
1062
|
}, s.onerror = (l) => {
|
1053
1063
|
r(l.target);
|
1054
1064
|
};
|
@@ -1059,7 +1069,7 @@ const te = class te extends Ce {
|
|
1059
1069
|
*/
|
1060
1070
|
async createAsync(e) {
|
1061
1071
|
return e == null ? Promise.resolve() : this.objectStoreNames.contains(e) ? Promise.resolve(!0) : new Promise((t, r) => {
|
1062
|
-
let s = indexedDB.open(this.database, ++
|
1072
|
+
let s = indexedDB.open(this.database, ++le.version);
|
1063
1073
|
s.onupgradeneeded = (l) => {
|
1064
1074
|
let a = l.target.result;
|
1065
1075
|
a.objectStoreNames.contains(e) || a.createObjectStore(e);
|
@@ -1075,7 +1085,7 @@ const te = class te extends Ce {
|
|
1075
1085
|
*/
|
1076
1086
|
async openDbAsync() {
|
1077
1087
|
return new Promise((e, t) => {
|
1078
|
-
let r = indexedDB.open(this.database,
|
1088
|
+
let r = indexedDB.open(this.database, le.version);
|
1079
1089
|
r.onsuccess = (s) => {
|
1080
1090
|
let l = s.target.result;
|
1081
1091
|
e(l);
|
@@ -1117,7 +1127,7 @@ const te = class te extends Ce {
|
|
1117
1127
|
});
|
1118
1128
|
}
|
1119
1129
|
async getKeysAsync(e) {
|
1120
|
-
return e == null ? Promise.resolve() : new Promise(async (t, r) => {
|
1130
|
+
return e == null ? Promise.resolve([]) : new Promise(async (t, r) => {
|
1121
1131
|
let s = await this.openDbAsync(), o = (await this.openTransAsync(e, "readonly", s)).objectStore(e).getAllKeys();
|
1122
1132
|
o.onsuccess = (u) => {
|
1123
1133
|
let p = u.target.result;
|
@@ -1192,9 +1202,9 @@ const te = class te extends Ce {
|
|
1192
1202
|
/**
|
1193
1203
|
* 静态版本,保证所有数据库实例拿到最新版本信息
|
1194
1204
|
*/
|
1195
|
-
n(
|
1196
|
-
let ke =
|
1197
|
-
class
|
1205
|
+
n(le, "version", null);
|
1206
|
+
let ke = le;
|
1207
|
+
class Rt extends Ce {
|
1198
1208
|
constructor() {
|
1199
1209
|
super(...arguments);
|
1200
1210
|
//#region 属性
|
@@ -1221,7 +1231,7 @@ class Lt extends Ce {
|
|
1221
1231
|
//#endregion
|
1222
1232
|
//#region 开启
|
1223
1233
|
openAsync(e) {
|
1224
|
-
return Promise.resolve(
|
1234
|
+
return Promise.resolve();
|
1225
1235
|
}
|
1226
1236
|
//#endregion
|
1227
1237
|
//#region 创建
|
@@ -1230,6 +1240,9 @@ class Lt extends Ce {
|
|
1230
1240
|
}
|
1231
1241
|
//#endregion
|
1232
1242
|
//#region 查询
|
1243
|
+
getKeysAsync(e) {
|
1244
|
+
return Promise.resolve([]);
|
1245
|
+
}
|
1233
1246
|
async getAsync(e, t) {
|
1234
1247
|
return localStorage.getItem(t);
|
1235
1248
|
}
|
@@ -1265,7 +1278,7 @@ class Lt extends Ce {
|
|
1265
1278
|
}
|
1266
1279
|
//#endregion
|
1267
1280
|
}
|
1268
|
-
class
|
1281
|
+
class It extends Ce {
|
1269
1282
|
constructor() {
|
1270
1283
|
super(...arguments);
|
1271
1284
|
//#region 属性
|
@@ -1274,9 +1287,12 @@ class Rt extends Ce {
|
|
1274
1287
|
//#endregion
|
1275
1288
|
//#region 开启
|
1276
1289
|
openAsync(e) {
|
1277
|
-
return Promise.resolve(
|
1290
|
+
return Promise.resolve();
|
1278
1291
|
}
|
1279
1292
|
//#endregion
|
1293
|
+
getKeysAsync(e) {
|
1294
|
+
return Promise.resolve([]);
|
1295
|
+
}
|
1280
1296
|
createAsync(e) {
|
1281
1297
|
return Promise.resolve(void 0);
|
1282
1298
|
}
|
@@ -1308,13 +1324,18 @@ class Rt extends Ce {
|
|
1308
1324
|
}
|
1309
1325
|
//#endregion
|
1310
1326
|
}
|
1311
|
-
class
|
1327
|
+
class Mt extends D {
|
1312
1328
|
constructor() {
|
1313
1329
|
super(...arguments);
|
1330
|
+
n(this, "type", "Provider");
|
1314
1331
|
n(this, "_default");
|
1315
1332
|
}
|
1316
1333
|
open() {
|
1317
|
-
super.open(), super.
|
1334
|
+
super.open(), super.register({
|
1335
|
+
IndexedDb: ke,
|
1336
|
+
Storage: Rt,
|
1337
|
+
Cookie: It
|
1338
|
+
});
|
1318
1339
|
}
|
1319
1340
|
/**
|
1320
1341
|
* 获取默认驱动程序,并自动决定创建指定名称的仓储
|
@@ -1333,7 +1354,7 @@ class It extends D {
|
|
1333
1354
|
return super.create("Storage");
|
1334
1355
|
}
|
1335
1356
|
}
|
1336
|
-
class
|
1357
|
+
class Re {
|
1337
1358
|
/**
|
1338
1359
|
* 获取实际SQL字段名称
|
1339
1360
|
*/
|
@@ -1356,7 +1377,7 @@ class xe extends me {
|
|
1356
1377
|
n(this, "type", "Sql");
|
1357
1378
|
}
|
1358
1379
|
insert(e) {
|
1359
|
-
let { name: t, columns: r, rows: s } = e, l = e.getIdentity(), a = "", p = r.filter((h) => !h.identity).map((h) =>
|
1380
|
+
let { name: t, columns: r, rows: s } = e, l = e.getIdentity(), a = "", p = r.filter((h) => !h.identity).map((h) => Re.getSqlName(h.name)).join(", ");
|
1360
1381
|
for (let h = 0; h < s.length; h++) {
|
1361
1382
|
let g = s[h];
|
1362
1383
|
a += `INSERT INTO ${t}\r
|
@@ -1365,11 +1386,11 @@ class xe extends me {
|
|
1365
1386
|
`, a += "(";
|
1366
1387
|
let m = Object.keys(g);
|
1367
1388
|
for (let k = 0; k < m.length; k++) {
|
1368
|
-
let
|
1369
|
-
if (l != null && l.name ==
|
1389
|
+
let U = m[k];
|
1390
|
+
if (l != null && l.name == U)
|
1370
1391
|
continue;
|
1371
|
-
let B = g[
|
1372
|
-
a += `${
|
1392
|
+
let B = g[U];
|
1393
|
+
a += `${Re.getValue(B)}`, k != m.length - 1 && (a += ", ");
|
1373
1394
|
}
|
1374
1395
|
a += ")", h != s.length - 1 && (a += `\r
|
1375
1396
|
\r
|
@@ -1381,7 +1402,7 @@ class xe extends me {
|
|
1381
1402
|
return "";
|
1382
1403
|
}
|
1383
1404
|
}
|
1384
|
-
class
|
1405
|
+
class Pt extends me {
|
1385
1406
|
constructor() {
|
1386
1407
|
super(...arguments);
|
1387
1408
|
n(this, "type", "MySql");
|
@@ -1393,9 +1414,18 @@ class Mt extends me {
|
|
1393
1414
|
return new xe().update(e);
|
1394
1415
|
}
|
1395
1416
|
}
|
1396
|
-
class
|
1417
|
+
class Bt extends D {
|
1418
|
+
constructor() {
|
1419
|
+
super(...arguments);
|
1420
|
+
n(this, "type", "Builder");
|
1421
|
+
}
|
1397
1422
|
open() {
|
1398
|
-
super.open(), super.
|
1423
|
+
super.open(), super.register({
|
1424
|
+
Json: Ut,
|
1425
|
+
Mongo: Lt,
|
1426
|
+
MySql: Pt,
|
1427
|
+
Sql: xe
|
1428
|
+
});
|
1399
1429
|
}
|
1400
1430
|
}
|
1401
1431
|
class Sl {
|
@@ -1452,6 +1482,15 @@ class Ye {
|
|
1452
1482
|
async openAsync(i) {
|
1453
1483
|
this.task = y.task.create("Memory"), this.task.taskLimit = 1;
|
1454
1484
|
}
|
1485
|
+
//#endregion
|
1486
|
+
async getCrypto() {
|
1487
|
+
}
|
1488
|
+
async getECharts() {
|
1489
|
+
}
|
1490
|
+
async getElementPlus() {
|
1491
|
+
}
|
1492
|
+
async getFortAwesome() {
|
1493
|
+
}
|
1455
1494
|
async getMonaco(i = null) {
|
1456
1495
|
let e = window.monaco;
|
1457
1496
|
if (e)
|
@@ -1470,6 +1509,12 @@ class Ye {
|
|
1470
1509
|
};
|
1471
1510
|
return await this.task.concurrent(t), e = window.monaco, e;
|
1472
1511
|
}
|
1512
|
+
async getQuill() {
|
1513
|
+
}
|
1514
|
+
async getWeiXin() {
|
1515
|
+
}
|
1516
|
+
async getXlsx() {
|
1517
|
+
}
|
1473
1518
|
//#region 加载
|
1474
1519
|
/**
|
1475
1520
|
* 使用并发限制顺序加载资源,并防止monaco-editor的define函数冲突
|
@@ -1494,7 +1539,7 @@ class Ye {
|
|
1494
1539
|
}
|
1495
1540
|
//#endregion
|
1496
1541
|
}
|
1497
|
-
class
|
1542
|
+
class Ft extends Ye {
|
1498
1543
|
constructor() {
|
1499
1544
|
super(...arguments);
|
1500
1545
|
//#region 属性
|
@@ -1532,7 +1577,7 @@ class Bt extends Ye {
|
|
1532
1577
|
return await super.loadFilesAsync("/assets/xlsx-js-style@1.2.0", e), window.XLSX;
|
1533
1578
|
}
|
1534
1579
|
}
|
1535
|
-
class
|
1580
|
+
class Nt extends Ye {
|
1536
1581
|
constructor() {
|
1537
1582
|
super(...arguments);
|
1538
1583
|
//#region 属性
|
@@ -1581,22 +1626,31 @@ class Ft extends Ye {
|
|
1581
1626
|
return await super.loadFilesAsync(`${this.jdCdn}/xlsx-js-style@1.2.0`, e), window.XLSX;
|
1582
1627
|
}
|
1583
1628
|
}
|
1584
|
-
class
|
1629
|
+
class qt extends D {
|
1630
|
+
constructor() {
|
1631
|
+
super(...arguments);
|
1632
|
+
n(this, "type", "Cdn");
|
1633
|
+
}
|
1585
1634
|
open() {
|
1586
|
-
super.open(), super.
|
1635
|
+
super.open(), super.register({
|
1636
|
+
Local: Ft,
|
1637
|
+
Third: Nt
|
1638
|
+
});
|
1587
1639
|
}
|
1588
1640
|
/**
|
1589
1641
|
* 获取指定CDN实例
|
1590
1642
|
*/
|
1591
|
-
async createAsync(
|
1592
|
-
let
|
1593
|
-
return await
|
1643
|
+
async createAsync(e, t) {
|
1644
|
+
let r = await super.createAsync(e);
|
1645
|
+
return await r.openAsync(t), r;
|
1594
1646
|
}
|
1595
1647
|
}
|
1596
|
-
class
|
1648
|
+
class Ge {
|
1597
1649
|
constructor() {
|
1598
1650
|
n(this, "type");
|
1599
1651
|
}
|
1652
|
+
openAsync(i) {
|
1653
|
+
}
|
1600
1654
|
encode(i) {
|
1601
1655
|
let e;
|
1602
1656
|
return typeof i == "object" ? e = JSON.stringify(i) : e = i, this.encodeString(e);
|
@@ -1606,7 +1660,7 @@ class Xe {
|
|
1606
1660
|
return JSON.parse(e);
|
1607
1661
|
}
|
1608
1662
|
}
|
1609
|
-
class Vt extends
|
1663
|
+
class Vt extends Ge {
|
1610
1664
|
constructor() {
|
1611
1665
|
super(...arguments);
|
1612
1666
|
//#region 属性
|
@@ -1616,7 +1670,7 @@ class Vt extends Xe {
|
|
1616
1670
|
//#endregion
|
1617
1671
|
//#region 开启
|
1618
1672
|
async openAsync(e) {
|
1619
|
-
this.crypto = await
|
1673
|
+
this.crypto = await se.getCrypto();
|
1620
1674
|
}
|
1621
1675
|
//#endregion
|
1622
1676
|
encodeString(e) {
|
@@ -1628,7 +1682,7 @@ class Vt extends Xe {
|
|
1628
1682
|
return this.crypto.enc.Utf8.stringify(t);
|
1629
1683
|
}
|
1630
1684
|
}
|
1631
|
-
class
|
1685
|
+
class Wt extends Ge {
|
1632
1686
|
constructor() {
|
1633
1687
|
super(...arguments);
|
1634
1688
|
n(this, "type", "Url");
|
@@ -1640,16 +1694,23 @@ class qt extends Xe {
|
|
1640
1694
|
return decodeURIComponent(e);
|
1641
1695
|
}
|
1642
1696
|
}
|
1643
|
-
class
|
1697
|
+
class zt extends D {
|
1698
|
+
constructor() {
|
1699
|
+
super(...arguments);
|
1700
|
+
n(this, "type", "Encoder");
|
1701
|
+
}
|
1644
1702
|
open() {
|
1645
|
-
super.open(), super.
|
1703
|
+
super.open(), super.register({
|
1704
|
+
Base64: Vt,
|
1705
|
+
Url: Wt
|
1706
|
+
});
|
1646
1707
|
}
|
1647
1708
|
/**
|
1648
1709
|
* 创建执行类型的Hash实例
|
1649
1710
|
*/
|
1650
|
-
async createAsync(
|
1651
|
-
let
|
1652
|
-
return await
|
1711
|
+
async createAsync(e, t) {
|
1712
|
+
let r = await super.createAsync(e);
|
1713
|
+
return await r.openAsync(null), r;
|
1653
1714
|
}
|
1654
1715
|
/**
|
1655
1716
|
* 获取Base64 编码器对象
|
@@ -1661,12 +1722,12 @@ class Wt extends D {
|
|
1661
1722
|
return this.createWithCache("Url");
|
1662
1723
|
}
|
1663
1724
|
}
|
1664
|
-
class
|
1725
|
+
class Kt {
|
1665
1726
|
constructor() {
|
1666
1727
|
n(this, "type");
|
1667
1728
|
}
|
1668
1729
|
}
|
1669
|
-
class
|
1730
|
+
class Jt extends Kt {
|
1670
1731
|
constructor() {
|
1671
1732
|
super(...arguments);
|
1672
1733
|
//#region 属性
|
@@ -1676,7 +1737,7 @@ class Kt extends zt {
|
|
1676
1737
|
//#endregion
|
1677
1738
|
//#region 开启
|
1678
1739
|
async openAsync(e) {
|
1679
|
-
this.xlsx = await
|
1740
|
+
this.xlsx = await se.getXlsx();
|
1680
1741
|
}
|
1681
1742
|
//#endregion
|
1682
1743
|
export(e, t) {
|
@@ -1713,16 +1774,22 @@ class Kt extends zt {
|
|
1713
1774
|
}), o["!cols"] = p, this.xlsx.writeFile(a, t);
|
1714
1775
|
}
|
1715
1776
|
}
|
1716
|
-
class
|
1777
|
+
class Xt extends D {
|
1778
|
+
constructor() {
|
1779
|
+
super(...arguments);
|
1780
|
+
n(this, "type", "Excel");
|
1781
|
+
}
|
1717
1782
|
open() {
|
1718
|
-
super.
|
1783
|
+
super.open(), super.register({
|
1784
|
+
Xlsx: Jt
|
1785
|
+
});
|
1719
1786
|
}
|
1720
1787
|
/**
|
1721
1788
|
* 获取Excel实例
|
1722
1789
|
*/
|
1723
|
-
async createAsync(
|
1724
|
-
let
|
1725
|
-
return await
|
1790
|
+
async createAsync(e, t) {
|
1791
|
+
let r = await super.createAsync(e);
|
1792
|
+
return await r.openAsync(t), r;
|
1726
1793
|
}
|
1727
1794
|
}
|
1728
1795
|
class Qt {
|
@@ -1732,80 +1799,99 @@ class Qt {
|
|
1732
1799
|
}
|
1733
1800
|
class Yt extends Qt {
|
1734
1801
|
}
|
1735
|
-
class
|
1802
|
+
class Gt extends D {
|
1803
|
+
constructor() {
|
1804
|
+
super(...arguments);
|
1805
|
+
n(this, "type", "Explainer");
|
1806
|
+
}
|
1736
1807
|
open() {
|
1737
|
-
super.open(), super.
|
1808
|
+
super.open(), super.register({
|
1809
|
+
Json: Yt
|
1810
|
+
});
|
1738
1811
|
}
|
1739
1812
|
}
|
1740
|
-
class
|
1813
|
+
class Te {
|
1741
1814
|
constructor() {
|
1742
|
-
n(this, "type"
|
1815
|
+
n(this, "type");
|
1743
1816
|
}
|
1744
1817
|
openAsync(i) {
|
1818
|
+
return d.json.mergeTo(this, i), Promise.resolve();
|
1745
1819
|
}
|
1746
|
-
|
1747
|
-
|
1820
|
+
}
|
1821
|
+
class Zt extends Te {
|
1822
|
+
constructor() {
|
1823
|
+
super(...arguments);
|
1824
|
+
n(this, "type", "Sort");
|
1748
1825
|
}
|
1749
|
-
|
1750
|
-
this.resort(
|
1826
|
+
add(e, t, r, s) {
|
1827
|
+
this.resort(e, t, r);
|
1828
|
+
}
|
1829
|
+
insert(e, t, r, s, l) {
|
1830
|
+
this.resort(e, t, r);
|
1751
1831
|
}
|
1752
1832
|
//复制时,自动往后排序
|
1753
|
-
copy(
|
1754
|
-
this.resort(
|
1833
|
+
copy(e, t, r) {
|
1834
|
+
this.resort(e, t, r);
|
1755
1835
|
}
|
1756
1836
|
//重新排序
|
1757
|
-
resort(
|
1758
|
-
let
|
1759
|
-
for (let
|
1760
|
-
let
|
1761
|
-
|
1837
|
+
resort(e, t, r) {
|
1838
|
+
let s = r[e.name];
|
1839
|
+
for (let l = 0; l < s.length; l++) {
|
1840
|
+
let a = s[l];
|
1841
|
+
a[t.name] = (l + 1) * 10;
|
1762
1842
|
}
|
1763
1843
|
}
|
1764
1844
|
}
|
1765
|
-
class
|
1845
|
+
class er extends Te {
|
1766
1846
|
constructor() {
|
1847
|
+
super(...arguments);
|
1767
1848
|
n(this, "type", "I18N");
|
1768
1849
|
}
|
1769
|
-
|
1850
|
+
add(e, t, r, s) {
|
1770
1851
|
}
|
1771
|
-
|
1852
|
+
insert(e, t, r, s, l) {
|
1772
1853
|
}
|
1773
|
-
|
1774
|
-
}
|
1775
|
-
copy(i, e, t) {
|
1854
|
+
copy(e, t, r) {
|
1776
1855
|
}
|
1777
1856
|
}
|
1778
|
-
class
|
1857
|
+
class tr extends Te {
|
1779
1858
|
constructor() {
|
1859
|
+
super(...arguments);
|
1780
1860
|
n(this, "type", "Expression");
|
1781
1861
|
}
|
1782
|
-
|
1783
|
-
}
|
1784
|
-
add(i, e, t, r) {
|
1862
|
+
add(e, t, r, s) {
|
1785
1863
|
}
|
1786
|
-
insert(
|
1864
|
+
insert(e, t, r, s, l) {
|
1787
1865
|
}
|
1788
|
-
copy(
|
1866
|
+
copy(e, t, r) {
|
1789
1867
|
}
|
1790
1868
|
}
|
1791
|
-
class
|
1869
|
+
class rr extends D {
|
1870
|
+
constructor() {
|
1871
|
+
super(...arguments);
|
1872
|
+
n(this, "type", "Feature");
|
1873
|
+
}
|
1792
1874
|
open() {
|
1793
|
-
super.open(), super.
|
1875
|
+
super.open(), super.register({
|
1876
|
+
Sort: Zt,
|
1877
|
+
I18N: er,
|
1878
|
+
Expression: tr
|
1879
|
+
});
|
1794
1880
|
}
|
1795
1881
|
/**
|
1796
1882
|
* 获取指定特征实例
|
1797
1883
|
*/
|
1798
|
-
async createAsync(
|
1799
|
-
let
|
1800
|
-
return await
|
1884
|
+
async createAsync(e, t) {
|
1885
|
+
let r = await super.createAsync(e);
|
1886
|
+
return await r.openAsync(null), r;
|
1801
1887
|
}
|
1802
1888
|
}
|
1803
|
-
class
|
1889
|
+
class Ze {
|
1804
1890
|
constructor() {
|
1805
1891
|
n(this, "type");
|
1806
1892
|
}
|
1807
1893
|
}
|
1808
|
-
class
|
1894
|
+
class sr extends Ze {
|
1809
1895
|
constructor() {
|
1810
1896
|
super(...arguments);
|
1811
1897
|
//#region 属性
|
@@ -1821,7 +1907,7 @@ class rr extends Ge {
|
|
1821
1907
|
async openAsync(e) {
|
1822
1908
|
}
|
1823
1909
|
}
|
1824
|
-
class
|
1910
|
+
class lr extends Ze {
|
1825
1911
|
constructor() {
|
1826
1912
|
super(...arguments);
|
1827
1913
|
//#region 属性
|
@@ -1836,16 +1922,23 @@ class sr extends Ge {
|
|
1836
1922
|
//#endregion
|
1837
1923
|
//#region 开启
|
1838
1924
|
async openAsync(e) {
|
1839
|
-
this.crypto = await
|
1925
|
+
this.crypto = await se.getCrypto();
|
1840
1926
|
}
|
1841
1927
|
}
|
1842
|
-
class
|
1928
|
+
class nr extends D {
|
1929
|
+
constructor() {
|
1930
|
+
super(...arguments);
|
1931
|
+
n(this, "type", "Hasher");
|
1932
|
+
}
|
1843
1933
|
open() {
|
1844
|
-
super.open(), super.
|
1934
|
+
super.open(), super.register({
|
1935
|
+
Sha256: sr,
|
1936
|
+
Md5: lr
|
1937
|
+
});
|
1845
1938
|
}
|
1846
|
-
async createAsync(
|
1847
|
-
let
|
1848
|
-
return await
|
1939
|
+
async createAsync(e, t) {
|
1940
|
+
let r = await super.createAsync(e);
|
1941
|
+
return await r.openAsync(null), r;
|
1849
1942
|
}
|
1850
1943
|
/**
|
1851
1944
|
* 获取MD5 Hash对象
|
@@ -1854,7 +1947,7 @@ class lr extends D {
|
|
1854
1947
|
return this.createWithCacheAsync("Md5");
|
1855
1948
|
}
|
1856
1949
|
}
|
1857
|
-
class
|
1950
|
+
class et {
|
1858
1951
|
constructor() {
|
1859
1952
|
/**
|
1860
1953
|
* 请求唯一标识
|
@@ -1916,7 +2009,7 @@ class Ze {
|
|
1916
2009
|
}
|
1917
2010
|
//#endregion
|
1918
2011
|
}
|
1919
|
-
class
|
2012
|
+
class tt extends et {
|
1920
2013
|
constructor() {
|
1921
2014
|
super();
|
1922
2015
|
/**
|
@@ -1934,7 +2027,7 @@ class et extends Ze {
|
|
1934
2027
|
this.id = d.string.getUniqueId(8);
|
1935
2028
|
}
|
1936
2029
|
}
|
1937
|
-
class
|
2030
|
+
class ir {
|
1938
2031
|
constructor() {
|
1939
2032
|
n(this, "request");
|
1940
2033
|
n(this, "model");
|
@@ -1943,7 +2036,7 @@ class nr {
|
|
1943
2036
|
n(this, "time");
|
1944
2037
|
}
|
1945
2038
|
}
|
1946
|
-
class
|
2039
|
+
class Ee {
|
1947
2040
|
constructor() {
|
1948
2041
|
//#region 属性
|
1949
2042
|
n(this, "type");
|
@@ -1980,7 +2073,7 @@ class Te {
|
|
1980
2073
|
* 获取请求消息
|
1981
2074
|
*/
|
1982
2075
|
n(this, "getRequest", async (i, e, t, r = null) => {
|
1983
|
-
let s = new
|
2076
|
+
let s = new tt();
|
1984
2077
|
return s.method = i, s.contentType = e, s.path = t, s.body = d.json.serializeWithoutString(r), s;
|
1985
2078
|
});
|
1986
2079
|
}
|
@@ -2010,11 +2103,11 @@ class Te {
|
|
2010
2103
|
async prepareAsync(i, e) {
|
2011
2104
|
if (i.prepare(), e == null || e.length == 0)
|
2012
2105
|
return;
|
2013
|
-
let t = this.encoder.encode(e), r = d.time.getTimestamp(), s = d.time.formatDateTime(/* @__PURE__ */ new Date()), l = new
|
2106
|
+
let t = this.encoder.encode(e), r = d.time.getTimestamp(), s = d.time.formatDateTime(/* @__PURE__ */ new Date()), l = new ir();
|
2014
2107
|
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);
|
2015
2108
|
}
|
2016
2109
|
}
|
2017
|
-
class
|
2110
|
+
class Ie extends et {
|
2018
2111
|
constructor() {
|
2019
2112
|
super(...arguments);
|
2020
2113
|
//#region 附加信息
|
@@ -2045,7 +2138,7 @@ class Re extends Ze {
|
|
2045
2138
|
n(this, "request");
|
2046
2139
|
}
|
2047
2140
|
}
|
2048
|
-
class
|
2141
|
+
class ar extends Ee {
|
2049
2142
|
constructor() {
|
2050
2143
|
super(...arguments);
|
2051
2144
|
//#region 属性
|
@@ -2088,7 +2181,7 @@ class ir extends Te {
|
|
2088
2181
|
* 使用Fetch发送请求,谷歌插件场景专用
|
2089
2182
|
*/
|
2090
2183
|
async sendWithFetch(e) {
|
2091
|
-
let t = new
|
2184
|
+
let t = new Ie();
|
2092
2185
|
t.request = e, t.id = e.id;
|
2093
2186
|
let r = {
|
2094
2187
|
method: e.method,
|
@@ -2107,7 +2200,7 @@ class ir extends Te {
|
|
2107
2200
|
* 使用XmlHttpRequest发送请求
|
2108
2201
|
*/
|
2109
2202
|
sendWithXmlHttpRequest(e) {
|
2110
|
-
let t = new
|
2203
|
+
let t = new Ie();
|
2111
2204
|
return t.request = e, t.id = e.id, new Promise(async (r, s) => {
|
2112
2205
|
let l = new XMLHttpRequest();
|
2113
2206
|
if (l.open(e.method, e.url), e.headers != null)
|
@@ -2132,7 +2225,7 @@ class ir extends Te {
|
|
2132
2225
|
});
|
2133
2226
|
}
|
2134
2227
|
}
|
2135
|
-
class
|
2228
|
+
class or extends Ee {
|
2136
2229
|
constructor() {
|
2137
2230
|
super(...arguments);
|
2138
2231
|
//#region 属性
|
@@ -2185,7 +2278,7 @@ class ar extends Te {
|
|
2185
2278
|
});
|
2186
2279
|
}
|
2187
2280
|
}
|
2188
|
-
class
|
2281
|
+
class ur extends Ee {
|
2189
2282
|
constructor() {
|
2190
2283
|
super(...arguments);
|
2191
2284
|
//#region 属性
|
@@ -2251,9 +2344,17 @@ class or extends Te {
|
|
2251
2344
|
});
|
2252
2345
|
}
|
2253
2346
|
}
|
2254
|
-
class
|
2347
|
+
class cr extends D {
|
2348
|
+
constructor() {
|
2349
|
+
super(...arguments);
|
2350
|
+
n(this, "type", "Http");
|
2351
|
+
}
|
2255
2352
|
open() {
|
2256
|
-
super.open(), super.
|
2353
|
+
super.open(), super.register({
|
2354
|
+
Default: ar,
|
2355
|
+
Mk: or,
|
2356
|
+
Halo: ur
|
2357
|
+
});
|
2257
2358
|
}
|
2258
2359
|
/**
|
2259
2360
|
* 获取默认请求器
|
@@ -2269,7 +2370,7 @@ class ur extends D {
|
|
2269
2370
|
return this.createWithCache("Halo");
|
2270
2371
|
}
|
2271
2372
|
}
|
2272
|
-
class
|
2373
|
+
class dr {
|
2273
2374
|
constructor() {
|
2274
2375
|
//#region 属性
|
2275
2376
|
n(this, "type");
|
@@ -2351,7 +2452,7 @@ class cr {
|
|
2351
2452
|
}
|
2352
2453
|
//#endregion
|
2353
2454
|
}
|
2354
|
-
class
|
2455
|
+
class pr extends dr {
|
2355
2456
|
constructor() {
|
2356
2457
|
super(...arguments);
|
2357
2458
|
n(this, "type", "Default");
|
@@ -2395,19 +2496,25 @@ class dr extends cr {
|
|
2395
2496
|
await super.openAsync(e);
|
2396
2497
|
}
|
2397
2498
|
}
|
2398
|
-
class
|
2499
|
+
class hr extends D {
|
2500
|
+
constructor() {
|
2501
|
+
super(...arguments);
|
2502
|
+
n(this, "type", "I18n");
|
2503
|
+
}
|
2399
2504
|
//#region 开启
|
2400
2505
|
open() {
|
2401
|
-
super.open(), super.
|
2506
|
+
super.open(), super.register({
|
2507
|
+
Default: pr
|
2508
|
+
});
|
2402
2509
|
}
|
2403
2510
|
//#endregion
|
2404
2511
|
}
|
2405
|
-
class
|
2512
|
+
class gr {
|
2406
2513
|
constructor() {
|
2407
2514
|
n(this, "type");
|
2408
2515
|
}
|
2409
2516
|
}
|
2410
|
-
class
|
2517
|
+
class fr extends gr {
|
2411
2518
|
constructor() {
|
2412
2519
|
super(...arguments);
|
2413
2520
|
n(this, "type", "Console");
|
@@ -2434,9 +2541,15 @@ class gr extends hr {
|
|
2434
2541
|
console.warn(e);
|
2435
2542
|
}
|
2436
2543
|
}
|
2437
|
-
class
|
2544
|
+
class yr extends D {
|
2545
|
+
constructor() {
|
2546
|
+
super(...arguments);
|
2547
|
+
n(this, "type", "Messenger");
|
2548
|
+
}
|
2438
2549
|
open() {
|
2439
|
-
super.open(), super.
|
2550
|
+
super.open(), super.register({
|
2551
|
+
Console: fr
|
2552
|
+
});
|
2440
2553
|
}
|
2441
2554
|
/**
|
2442
2555
|
* 获取控制台消息提示类型
|
@@ -2445,18 +2558,18 @@ class fr extends D {
|
|
2445
2558
|
return await super.create("Console");
|
2446
2559
|
}
|
2447
2560
|
}
|
2448
|
-
class
|
2561
|
+
class mr {
|
2449
2562
|
constructor() {
|
2450
2563
|
n(this, "type");
|
2451
2564
|
}
|
2452
2565
|
}
|
2453
|
-
class
|
2566
|
+
class vr extends mr {
|
2454
2567
|
constructor() {
|
2455
2568
|
super(...arguments);
|
2456
2569
|
n(this, "type", "Default");
|
2457
2570
|
n(this, "getSign", async (e, t, r, s, l) => {
|
2458
2571
|
let o = `${e}.${t}.${r ?? ""}.${s}.${l}`;
|
2459
|
-
return (await
|
2572
|
+
return (await it.compute(o)).toUpperCase();
|
2460
2573
|
});
|
2461
2574
|
}
|
2462
2575
|
async openAsync(e) {
|
@@ -2469,21 +2582,39 @@ class mr extends yr {
|
|
2469
2582
|
dispose() {
|
2470
2583
|
}
|
2471
2584
|
}
|
2472
|
-
class
|
2585
|
+
class br extends D {
|
2586
|
+
constructor() {
|
2587
|
+
super(...arguments);
|
2588
|
+
n(this, "type", "Signer");
|
2589
|
+
}
|
2473
2590
|
open() {
|
2474
|
-
super.open(), super.
|
2591
|
+
super.open(), super.register({
|
2592
|
+
Default: vr
|
2593
|
+
});
|
2475
2594
|
}
|
2476
2595
|
/**
|
2477
2596
|
* 获取指定签名实例
|
2478
2597
|
*/
|
2479
|
-
async createAsync(
|
2480
|
-
let
|
2481
|
-
return await
|
2598
|
+
async createAsync(e, t) {
|
2599
|
+
let r = await super.createAsync(e);
|
2600
|
+
return await r.openAsync(null), r;
|
2482
2601
|
}
|
2483
2602
|
}
|
2484
2603
|
class wr {
|
2485
2604
|
constructor() {
|
2486
2605
|
//#region 属性
|
2606
|
+
/**
|
2607
|
+
* 类型
|
2608
|
+
*/
|
2609
|
+
n(this, "type");
|
2610
|
+
/**
|
2611
|
+
* 是否已连接(空表示不需连接)
|
2612
|
+
*/
|
2613
|
+
n(this, "connected");
|
2614
|
+
/**
|
2615
|
+
* Socket消息处理程序
|
2616
|
+
*/
|
2617
|
+
n(this, "handler");
|
2487
2618
|
/**
|
2488
2619
|
* 已订阅的消息类型列表
|
2489
2620
|
*/
|
@@ -2492,7 +2623,7 @@ class wr {
|
|
2492
2623
|
//#endregion
|
2493
2624
|
//#region 开启
|
2494
2625
|
openAsync(i) {
|
2495
|
-
d.json.mergeTo(this, i);
|
2626
|
+
return d.json.mergeTo(this, i), Promise.resolve();
|
2496
2627
|
}
|
2497
2628
|
//#endregion
|
2498
2629
|
//#region 订阅
|
@@ -2519,8 +2650,10 @@ class wr {
|
|
2519
2650
|
let e = { kind: "socket", type: "unsubscribe", data: { win: i } };
|
2520
2651
|
await this.send(e), delete this.subscribed[i];
|
2521
2652
|
}
|
2653
|
+
dispose() {
|
2654
|
+
}
|
2522
2655
|
}
|
2523
|
-
class
|
2656
|
+
class kr extends wr {
|
2524
2657
|
constructor() {
|
2525
2658
|
super(...arguments);
|
2526
2659
|
//#region 属性
|
@@ -2549,7 +2682,7 @@ class br extends wr {
|
|
2549
2682
|
//#endregion
|
2550
2683
|
async connect() {
|
2551
2684
|
if (this.reconnect = !0, this.socket == null || this.reconnect) {
|
2552
|
-
let t = new
|
2685
|
+
let t = new tt();
|
2553
2686
|
t.path = this.url, t.method = "GET", await _.prepareAsync(t);
|
2554
2687
|
let r = t.getHeader("Authorization"), s = d.url.encode(r), l = `${this.url}?authorization=${s}`;
|
2555
2688
|
this.socket = new WebSocket(l);
|
@@ -2579,9 +2712,15 @@ class br extends wr {
|
|
2579
2712
|
this.socket.close(), this.reconnect = !1, this.connected = null, this.handler = null;
|
2580
2713
|
}
|
2581
2714
|
}
|
2582
|
-
class
|
2715
|
+
class xr extends D {
|
2716
|
+
constructor() {
|
2717
|
+
super(...arguments);
|
2718
|
+
n(this, "type", "Socket");
|
2719
|
+
}
|
2583
2720
|
open() {
|
2584
|
-
super.open(), super.
|
2721
|
+
super.open(), super.register({
|
2722
|
+
Default: kr
|
2723
|
+
});
|
2585
2724
|
}
|
2586
2725
|
/**
|
2587
2726
|
* 默认通信对象
|
@@ -2619,13 +2758,13 @@ class _l {
|
|
2619
2758
|
* 增加成功进度
|
2620
2759
|
*/
|
2621
2760
|
success(i) {
|
2622
|
-
this.
|
2761
|
+
this.succeed++, this.handled++, this.current = i;
|
2623
2762
|
}
|
2624
2763
|
/**
|
2625
2764
|
* 增加异常进度
|
2626
2765
|
*/
|
2627
2766
|
error(i, e) {
|
2628
|
-
this.
|
2767
|
+
this.errored++, this.handled++, this.current = i;
|
2629
2768
|
}
|
2630
2769
|
}
|
2631
2770
|
class Cl {
|
@@ -2672,7 +2811,7 @@ class Cl {
|
|
2672
2811
|
this.ok = !1, this.message = i;
|
2673
2812
|
}
|
2674
2813
|
}
|
2675
|
-
class
|
2814
|
+
class Ar {
|
2676
2815
|
constructor() {
|
2677
2816
|
//#region 属性
|
2678
2817
|
n(this, "type", "Bearer");
|
@@ -2704,7 +2843,7 @@ class xr {
|
|
2704
2843
|
await this.provider.deleteAsync("user", "user"), await this.provider.deleteAsync("user", "sso");
|
2705
2844
|
}
|
2706
2845
|
}
|
2707
|
-
class
|
2846
|
+
class Sr {
|
2708
2847
|
constructor() {
|
2709
2848
|
//#region 属性
|
2710
2849
|
n(this, "type", "Nio");
|
@@ -2738,7 +2877,7 @@ class Ar {
|
|
2738
2877
|
await this.provider.deleteAsync("user", "user"), await this.provider.deleteAsync("user", "sso");
|
2739
2878
|
}
|
2740
2879
|
}
|
2741
|
-
class
|
2880
|
+
class rt {
|
2742
2881
|
constructor() {
|
2743
2882
|
/**
|
2744
2883
|
* 用户标识
|
@@ -2758,7 +2897,7 @@ class tt {
|
|
2758
2897
|
n(this, "identity");
|
2759
2898
|
}
|
2760
2899
|
}
|
2761
|
-
class
|
2900
|
+
class _r {
|
2762
2901
|
constructor() {
|
2763
2902
|
n(this, "type", "WeiXin");
|
2764
2903
|
}
|
@@ -2770,7 +2909,7 @@ class Sr {
|
|
2770
2909
|
return "";
|
2771
2910
|
}
|
2772
2911
|
async getUser() {
|
2773
|
-
let i = new
|
2912
|
+
let i = new rt();
|
2774
2913
|
return i.userId = "", i;
|
2775
2914
|
}
|
2776
2915
|
getAuth(i, e, t, r) {
|
@@ -2780,12 +2919,12 @@ class Sr {
|
|
2780
2919
|
return Promise.resolve();
|
2781
2920
|
}
|
2782
2921
|
}
|
2783
|
-
class
|
2922
|
+
class Cr {
|
2784
2923
|
constructor() {
|
2785
2924
|
n(this, "type");
|
2786
2925
|
}
|
2787
2926
|
}
|
2788
|
-
class
|
2927
|
+
class Tr extends Cr {
|
2789
2928
|
constructor() {
|
2790
2929
|
super(...arguments);
|
2791
2930
|
//#region 属性
|
@@ -2805,12 +2944,12 @@ class Cr extends _r {
|
|
2805
2944
|
return "";
|
2806
2945
|
}
|
2807
2946
|
async getUser() {
|
2808
|
-
let e = await this.provider.getAsync("anonymous");
|
2947
|
+
let e = await this.provider.getAsync("user", "anonymous");
|
2809
2948
|
if (!e) {
|
2810
2949
|
let r = d.string.getUniqueId();
|
2811
2950
|
await this.provider.saveAsync("anonymous", "anonymous", r), e = r;
|
2812
2951
|
}
|
2813
|
-
let t = new
|
2952
|
+
let t = new rt();
|
2814
2953
|
return t.identity = { token: e }, t;
|
2815
2954
|
}
|
2816
2955
|
getAuth(e, t, r, s) {
|
@@ -2820,7 +2959,7 @@ class Cr extends _r {
|
|
2820
2959
|
await this.provider.deleteAsync("anonymous", "anonymous");
|
2821
2960
|
}
|
2822
2961
|
}
|
2823
|
-
class
|
2962
|
+
class Er {
|
2824
2963
|
constructor() {
|
2825
2964
|
//#region 属性
|
2826
2965
|
n(this, "type", "Secret");
|
@@ -2852,22 +2991,32 @@ class Tr {
|
|
2852
2991
|
await this.provider.deleteAsync("user");
|
2853
2992
|
}
|
2854
2993
|
}
|
2855
|
-
class
|
2994
|
+
class $r extends D {
|
2995
|
+
constructor() {
|
2996
|
+
super(...arguments);
|
2997
|
+
n(this, "type", "Sso");
|
2998
|
+
}
|
2856
2999
|
/**
|
2857
3000
|
* 获取实例
|
2858
3001
|
*/
|
2859
3002
|
open() {
|
2860
|
-
super.open(), super.
|
3003
|
+
super.open(), super.register({
|
3004
|
+
Secret: Er,
|
3005
|
+
Nio: Sr,
|
3006
|
+
WeiXin: _r,
|
3007
|
+
Bearer: Ar,
|
3008
|
+
Anonymous: Tr
|
3009
|
+
});
|
2861
3010
|
}
|
2862
3011
|
/**
|
2863
3012
|
* 获取指定SSO实例
|
2864
3013
|
*/
|
2865
|
-
async createAsync(
|
2866
|
-
let
|
2867
|
-
return await
|
3014
|
+
async createAsync(e, t) {
|
3015
|
+
let r = Qe.ssos.find((a) => a.type.toUpperCase() == e.toUpperCase()), s = { url: r == null ? void 0 : r.url, app_id: r == null ? void 0 : r.appId }, l = await super.createAsync(e);
|
3016
|
+
return await l.openAsync(s), l;
|
2868
3017
|
}
|
2869
3018
|
}
|
2870
|
-
class
|
3019
|
+
class jr {
|
2871
3020
|
constructor() {
|
2872
3021
|
//#region 属性
|
2873
3022
|
n(this, "type");
|
@@ -2875,7 +3024,7 @@ class $r {
|
|
2875
3024
|
}
|
2876
3025
|
//#endregion
|
2877
3026
|
}
|
2878
|
-
class
|
3027
|
+
class Dr extends jr {
|
2879
3028
|
constructor() {
|
2880
3029
|
super(...arguments);
|
2881
3030
|
//#region 属性
|
@@ -2939,57 +3088,72 @@ class jr extends $r {
|
|
2939
3088
|
clearInterval(this.intervalTimeout), clearTimeout(this.lastDebounceTimeout);
|
2940
3089
|
}
|
2941
3090
|
}
|
2942
|
-
class
|
3091
|
+
class Hr extends D {
|
3092
|
+
constructor() {
|
3093
|
+
super(...arguments);
|
3094
|
+
n(this, "type", "Task");
|
3095
|
+
}
|
2943
3096
|
open() {
|
2944
|
-
super.open(), super.
|
3097
|
+
super.open(), super.register({
|
3098
|
+
Memory: Dr
|
3099
|
+
});
|
2945
3100
|
}
|
2946
3101
|
}
|
2947
|
-
class
|
3102
|
+
class Or {
|
2948
3103
|
constructor() {
|
2949
3104
|
n(this, "type");
|
2950
3105
|
}
|
2951
3106
|
}
|
2952
|
-
class Ur extends
|
3107
|
+
class Ur extends Or {
|
2953
3108
|
constructor() {
|
2954
3109
|
super(...arguments);
|
2955
3110
|
n(this, "type", "Liquid");
|
2956
3111
|
}
|
2957
3112
|
async renderAsync(e, t) {
|
2958
|
-
let r = new
|
3113
|
+
let r = new gt(), s = r.parse(e);
|
2959
3114
|
return await r.render(s, t);
|
2960
3115
|
}
|
2961
3116
|
}
|
2962
|
-
class
|
3117
|
+
class Lr extends D {
|
3118
|
+
constructor() {
|
3119
|
+
super(...arguments);
|
3120
|
+
n(this, "type", "Template");
|
3121
|
+
}
|
2963
3122
|
open() {
|
2964
|
-
super.open(), super.
|
3123
|
+
super.open(), super.register({
|
3124
|
+
Liquid: Ur
|
3125
|
+
});
|
2965
3126
|
}
|
2966
3127
|
}
|
2967
|
-
class
|
3128
|
+
class Rr extends D {
|
3129
|
+
constructor() {
|
3130
|
+
super(...arguments);
|
3131
|
+
n(this, "type", "Util");
|
3132
|
+
}
|
2968
3133
|
open() {
|
2969
|
-
super.open(), super.
|
2970
|
-
|
2971
|
-
rs,
|
2972
|
-
|
2973
|
-
|
2974
|
-
|
2975
|
-
|
2976
|
-
|
2977
|
-
|
2978
|
-
Vr,
|
2979
|
-
ts,
|
2980
|
-
|
2981
|
-
|
2982
|
-
|
2983
|
-
|
2984
|
-
Zr,
|
2985
|
-
ls,
|
2986
|
-
|
2987
|
-
Qr,
|
2988
|
-
|
2989
|
-
Gr,
|
2990
|
-
|
2991
|
-
|
2992
|
-
];
|
3134
|
+
super.open(), super.register({
|
3135
|
+
Array: Ir,
|
3136
|
+
Browser: rs,
|
3137
|
+
Component: Mr,
|
3138
|
+
Dictionary: Br,
|
3139
|
+
Dom: Pr,
|
3140
|
+
Event: Fr,
|
3141
|
+
File: Nr,
|
3142
|
+
Html: qr,
|
3143
|
+
Image: Vr,
|
3144
|
+
Json: ts,
|
3145
|
+
Math: Wr,
|
3146
|
+
Micro: zr,
|
3147
|
+
Mount: Kr,
|
3148
|
+
Object: Jr,
|
3149
|
+
Scroll: Zr,
|
3150
|
+
Sign: ls,
|
3151
|
+
String: Xr,
|
3152
|
+
Task: Qr,
|
3153
|
+
Time: Yr,
|
3154
|
+
Tree: Gr,
|
3155
|
+
Url: ss
|
3156
|
+
});
|
2993
3157
|
}
|
2994
3158
|
get array() {
|
2995
3159
|
return super.createWithCache("array");
|
@@ -3042,9 +3206,6 @@ class Lr extends D {
|
|
3042
3206
|
get task() {
|
3043
3207
|
return super.createWithCache("task");
|
3044
3208
|
}
|
3045
|
-
get type() {
|
3046
|
-
return super.createWithCache("type");
|
3047
|
-
}
|
3048
3209
|
get time() {
|
3049
3210
|
return super.createWithCache("time");
|
3050
3211
|
}
|
@@ -3058,12 +3219,12 @@ class Lr extends D {
|
|
3058
3219
|
return super.createWithCache("sign");
|
3059
3220
|
}
|
3060
3221
|
}
|
3061
|
-
class
|
3222
|
+
class O {
|
3062
3223
|
constructor() {
|
3063
3224
|
n(this, "type");
|
3064
3225
|
}
|
3065
3226
|
}
|
3066
|
-
class
|
3227
|
+
class Ir extends O {
|
3067
3228
|
constructor() {
|
3068
3229
|
super(...arguments);
|
3069
3230
|
n(this, "type", "array");
|
@@ -3104,11 +3265,11 @@ class Rr extends H {
|
|
3104
3265
|
/**
|
3105
3266
|
* 求最大值,数据类型的比较函数要自己转换为数值类型
|
3106
3267
|
*/
|
3107
|
-
n(this, "max", (e, t) =>
|
3268
|
+
n(this, "max", (e, t) => be.max(e, t));
|
3108
3269
|
/**
|
3109
3270
|
* 求最小值,数据类型的比较函数要自己转换为数值类型
|
3110
3271
|
*/
|
3111
|
-
n(this, "min", (e, t) =>
|
3272
|
+
n(this, "min", (e, t) => be.min(e, t));
|
3112
3273
|
/**
|
3113
3274
|
* 求平均值
|
3114
3275
|
*/
|
@@ -3201,7 +3362,7 @@ class Rr extends H {
|
|
3201
3362
|
* 合并多个数组中的每一项到新的二维数组中,没值的元素被有值的元素代替
|
3202
3363
|
*/
|
3203
3364
|
n(this, "combine", (...e) => {
|
3204
|
-
let t = [], r =
|
3365
|
+
let t = [], r = be.max(e, (s) => s.length);
|
3205
3366
|
for (let s = 0; s < r.length; s++) {
|
3206
3367
|
let l = [], a;
|
3207
3368
|
for (let o = 0; o < e.length; o++) {
|
@@ -3245,9 +3406,9 @@ class Rr extends H {
|
|
3245
3406
|
* 删除执行数组中的指定对象或者集合
|
3246
3407
|
*/
|
3247
3408
|
n(this, "remove", (e, t) => {
|
3248
|
-
if (d.
|
3409
|
+
if (d.object.isNumber(t))
|
3249
3410
|
e.splice(t, 1);
|
3250
|
-
else if (d.
|
3411
|
+
else if (d.object.isArray(t))
|
3251
3412
|
for (let r = 0; r < t.length; r++)
|
3252
3413
|
d.array.remove(e, t[r]);
|
3253
3414
|
else
|
@@ -3370,7 +3531,7 @@ class Rr extends H {
|
|
3370
3531
|
}
|
3371
3532
|
//#endregion
|
3372
3533
|
}
|
3373
|
-
class
|
3534
|
+
class Mr extends O {
|
3374
3535
|
constructor() {
|
3375
3536
|
super(...arguments);
|
3376
3537
|
n(this, "type", "component");
|
@@ -3397,7 +3558,7 @@ class Ir extends H {
|
|
3397
3558
|
if (g.default)
|
3398
3559
|
s[h] = g.default;
|
3399
3560
|
else {
|
3400
|
-
let m =
|
3561
|
+
let m = ct(g);
|
3401
3562
|
s[h] = m;
|
3402
3563
|
}
|
3403
3564
|
}
|
@@ -3412,7 +3573,7 @@ class Ir extends H {
|
|
3412
3573
|
}, 100);
|
3413
3574
|
}
|
3414
3575
|
}
|
3415
|
-
class
|
3576
|
+
class Pr extends O {
|
3416
3577
|
constructor() {
|
3417
3578
|
super(...arguments);
|
3418
3579
|
n(this, "type", "dom");
|
@@ -3656,8 +3817,8 @@ class Mr extends H {
|
|
3656
3817
|
let o = {}, u = e.getBoundingClientRect(), p = s.getBoundingClientRect(), g = e.querySelector(t).getBoundingClientRect(), m = a.getBoundingClientRect(), k = p.height - g.top;
|
3657
3818
|
if (l == "right") {
|
3658
3819
|
o.left = `${u.left + u.width}px`;
|
3659
|
-
let
|
3660
|
-
m.height > p.height ?
|
3820
|
+
let U;
|
3821
|
+
m.height > p.height ? U = p.height : U = m.height, o.height = `${U}px`, U + g.top > p.height ? (o.top = "initial", o.bottom = "0px") : o.top = `${u.top}px`;
|
3661
3822
|
} else if (l == "bottom")
|
3662
3823
|
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`;
|
3663
3824
|
else
|
@@ -3738,7 +3899,7 @@ class Mr extends H {
|
|
3738
3899
|
}
|
3739
3900
|
//#endregion
|
3740
3901
|
}
|
3741
|
-
class
|
3902
|
+
class Br extends O {
|
3742
3903
|
constructor() {
|
3743
3904
|
super(...arguments);
|
3744
3905
|
n(this, "type", "dictionary");
|
@@ -3815,7 +3976,7 @@ class Pr extends H {
|
|
3815
3976
|
}
|
3816
3977
|
//#endregion
|
3817
3978
|
}
|
3818
|
-
class
|
3979
|
+
class Fr extends O {
|
3819
3980
|
constructor() {
|
3820
3981
|
super(...arguments);
|
3821
3982
|
n(this, "type", "event");
|
@@ -3861,7 +4022,7 @@ class Br extends H {
|
|
3861
4022
|
});
|
3862
4023
|
}
|
3863
4024
|
}
|
3864
|
-
class
|
4025
|
+
class Nr extends O {
|
3865
4026
|
constructor() {
|
3866
4027
|
super(...arguments);
|
3867
4028
|
n(this, "type", "file");
|
@@ -3873,7 +4034,7 @@ class Fr extends H {
|
|
3873
4034
|
for (; s--; )
|
3874
4035
|
l[s] = r.charCodeAt(s);
|
3875
4036
|
let a = new Blob([l]);
|
3876
|
-
|
4037
|
+
ft.saveAs(a, t);
|
3877
4038
|
});
|
3878
4039
|
/**
|
3879
4040
|
* 获取文件扩展名
|
@@ -3898,28 +4059,28 @@ class Fr extends H {
|
|
3898
4059
|
});
|
3899
4060
|
}
|
3900
4061
|
}
|
3901
|
-
class
|
4062
|
+
class qr extends O {
|
3902
4063
|
constructor() {
|
3903
4064
|
super(...arguments);
|
3904
4065
|
n(this, "type", "html");
|
3905
4066
|
/**
|
3906
4067
|
* 获取Html内容
|
3907
4068
|
*/
|
3908
|
-
n(this, "getHtml", (e) => d.
|
4069
|
+
n(this, "getHtml", (e) => d.object.isNumber(e) ? e : e && e.replace(/\n/g, "<br/>"));
|
3909
4070
|
/**
|
3910
4071
|
* 获取Html中的文字
|
3911
4072
|
*/
|
3912
4073
|
n(this, "getText", (e) => {
|
3913
4074
|
if (!e)
|
3914
4075
|
return null;
|
3915
|
-
if (!d.
|
4076
|
+
if (!d.object.isString(e))
|
3916
4077
|
return e;
|
3917
4078
|
let t = new RegExp("<[^<>]+>", "g");
|
3918
4079
|
return e.replace(t, "");
|
3919
4080
|
});
|
3920
4081
|
}
|
3921
4082
|
}
|
3922
|
-
class Vr extends
|
4083
|
+
class Vr extends O {
|
3923
4084
|
constructor() {
|
3924
4085
|
super(...arguments);
|
3925
4086
|
n(this, "type", "image");
|
@@ -3929,7 +4090,7 @@ class Vr extends H {
|
|
3929
4090
|
n(this, "base64", (e) => "data:image/png;base64," + e);
|
3930
4091
|
}
|
3931
4092
|
}
|
3932
|
-
class
|
4093
|
+
class Wr extends O {
|
3933
4094
|
constructor() {
|
3934
4095
|
super(...arguments);
|
3935
4096
|
n(this, "type", "math");
|
@@ -4027,7 +4188,7 @@ class qr extends H {
|
|
4027
4188
|
return e;
|
4028
4189
|
}
|
4029
4190
|
}
|
4030
|
-
class
|
4191
|
+
class zr extends O {
|
4031
4192
|
constructor() {
|
4032
4193
|
super(...arguments);
|
4033
4194
|
n(this, "type", "micro");
|
@@ -4038,7 +4199,7 @@ class Wr extends H {
|
|
4038
4199
|
});
|
4039
4200
|
}
|
4040
4201
|
}
|
4041
|
-
class
|
4202
|
+
class Kr extends O {
|
4042
4203
|
constructor() {
|
4043
4204
|
super(...arguments);
|
4044
4205
|
n(this, "type", "mount");
|
@@ -4060,10 +4221,34 @@ class zr extends H {
|
|
4060
4221
|
});
|
4061
4222
|
}
|
4062
4223
|
}
|
4063
|
-
class
|
4224
|
+
class Jr extends O {
|
4064
4225
|
constructor() {
|
4065
4226
|
super(...arguments);
|
4066
4227
|
n(this, "type", "object");
|
4228
|
+
//#region 判断
|
4229
|
+
/**
|
4230
|
+
* 判断输入类型是否是字符串类型 null -> false
|
4231
|
+
*/
|
4232
|
+
n(this, "isString", (e) => Object.prototype.toString.call(e) == "[object String]");
|
4233
|
+
/**
|
4234
|
+
* 判断输入类型是否是Object类型
|
4235
|
+
*/
|
4236
|
+
n(this, "isObject", (e) => Object.prototype.toString.call(e) == "[object Object]");
|
4237
|
+
/**
|
4238
|
+
* 判断输入类型是否是Array类型
|
4239
|
+
*/
|
4240
|
+
n(this, "isArray", (e) => Object.prototype.toString.call(e) == "[object Array]");
|
4241
|
+
/**
|
4242
|
+
* 判断输入类型是否是Number类型,null -> false
|
4243
|
+
*/
|
4244
|
+
n(this, "isNumber", (e) => {
|
4245
|
+
let t = Object.prototype.toString.call(e);
|
4246
|
+
return t == "[object Number]" || t == "[object BigInt]";
|
4247
|
+
});
|
4248
|
+
/**
|
4249
|
+
* 判断输入类型是否是isBoolean类型
|
4250
|
+
*/
|
4251
|
+
n(this, "isBoolean", (e) => Object.prototype.toString.call(e) == "[object Boolean]");
|
4067
4252
|
//#endregion
|
4068
4253
|
//#region 复制
|
4069
4254
|
/**
|
@@ -4071,7 +4256,7 @@ class Kr extends H {
|
|
4071
4256
|
*/
|
4072
4257
|
n(this, "copy", (e, t = null) => {
|
4073
4258
|
let r = [];
|
4074
|
-
d.
|
4259
|
+
d.object.isObject(e) && r.push(e);
|
4075
4260
|
let s = [];
|
4076
4261
|
for (let l = 0; l < r.length; l++) {
|
4077
4262
|
let a = r[l], o = {};
|
@@ -4080,7 +4265,7 @@ class Kr extends H {
|
|
4080
4265
|
t && t[u] ? o[u] = t[u]() : o[u] = p;
|
4081
4266
|
}), s.push(o);
|
4082
4267
|
}
|
4083
|
-
return d.
|
4268
|
+
return d.object.isObject(e) ? s[0] : s;
|
4084
4269
|
});
|
4085
4270
|
//#endregion
|
4086
4271
|
//#region 赋值
|
@@ -4095,6 +4280,7 @@ class Kr extends H {
|
|
4095
4280
|
}
|
4096
4281
|
});
|
4097
4282
|
}
|
4283
|
+
//#endregion
|
4098
4284
|
//#region 净化
|
4099
4285
|
/**
|
4100
4286
|
* 净化对象,只清除默认值属性
|
@@ -4103,7 +4289,7 @@ class Kr extends H {
|
|
4103
4289
|
let t = {}, r = Object.keys(e);
|
4104
4290
|
for (let s = 0; s < r.length; s++) {
|
4105
4291
|
let l = r[s], a = e[l];
|
4106
|
-
a != null && (d.
|
4292
|
+
a != null && (d.object.isObject(a) ? t[l] = this.pure(a) : t[l] = e[l]);
|
4107
4293
|
}
|
4108
4294
|
return t;
|
4109
4295
|
}
|
@@ -4149,13 +4335,13 @@ class Kr extends H {
|
|
4149
4335
|
* 对对象进行深度克隆,同时可以移除Proxy对象
|
4150
4336
|
*/
|
4151
4337
|
clone(e, t = null) {
|
4152
|
-
let r =
|
4338
|
+
let r = yt(e, !0);
|
4153
4339
|
if (t == null)
|
4154
4340
|
return r;
|
4155
|
-
if (d.
|
4341
|
+
if (d.object.isArray(e))
|
4156
4342
|
for (let s = 0; s < r.length; s++)
|
4157
4343
|
t(r[s]);
|
4158
|
-
else d.
|
4344
|
+
else d.object.isObject(e) && t(r);
|
4159
4345
|
return r;
|
4160
4346
|
}
|
4161
4347
|
//#endregion
|
@@ -4164,7 +4350,7 @@ class Kr extends H {
|
|
4164
4350
|
* 合并来源对象到目标对象上
|
4165
4351
|
*/
|
4166
4352
|
mergeTo(e, t) {
|
4167
|
-
return e == null ? t : t == null ? e : d.
|
4353
|
+
return e == null ? t : t == null ? e : d.object.isArray(t) ? t.slice() : (Object.keys(t).forEach((s) => {
|
4168
4354
|
let l = t[s];
|
4169
4355
|
typeof l == "object" ? e[s] = this.mergeTo(e[s], l) : e[s] = l;
|
4170
4356
|
}), e);
|
@@ -4187,7 +4373,7 @@ class Kr extends H {
|
|
4187
4373
|
}
|
4188
4374
|
//#endregion
|
4189
4375
|
}
|
4190
|
-
class
|
4376
|
+
class Xr extends O {
|
4191
4377
|
constructor() {
|
4192
4378
|
super(...arguments);
|
4193
4379
|
n(this, "type", "string");
|
@@ -4204,7 +4390,7 @@ class Jr extends H {
|
|
4204
4390
|
/**
|
4205
4391
|
* 填充字符串到指定长度,使用pad填充
|
4206
4392
|
*/
|
4207
|
-
n(this, "padLeft", (e, t, r) =>
|
4393
|
+
n(this, "padLeft", (e, t, r) => mt.pad(e, t, r));
|
4208
4394
|
/**
|
4209
4395
|
* 填充字符串到指定长度,使用pad填充
|
4210
4396
|
*/
|
@@ -4277,7 +4463,7 @@ class Jr extends H {
|
|
4277
4463
|
if (!e)
|
4278
4464
|
return !1;
|
4279
4465
|
let t = JSON.parse(e);
|
4280
|
-
return d.
|
4466
|
+
return d.object.isObject(t);
|
4281
4467
|
} catch {
|
4282
4468
|
return !1;
|
4283
4469
|
}
|
@@ -4386,7 +4572,7 @@ class Jr extends H {
|
|
4386
4572
|
}
|
4387
4573
|
//#endregion
|
4388
4574
|
}
|
4389
|
-
class Qr extends
|
4575
|
+
class Qr extends O {
|
4390
4576
|
constructor() {
|
4391
4577
|
super(...arguments);
|
4392
4578
|
n(this, "type", "task");
|
@@ -4439,41 +4625,12 @@ class Qr extends H {
|
|
4439
4625
|
});
|
4440
4626
|
}
|
4441
4627
|
}
|
4442
|
-
class Yr extends H {
|
4443
|
-
constructor() {
|
4444
|
-
super(...arguments);
|
4445
|
-
n(this, "type", "type");
|
4446
|
-
/**
|
4447
|
-
* 判断输入类型是否是字符串类型 null -> false
|
4448
|
-
*/
|
4449
|
-
n(this, "isString", (e) => Object.prototype.toString.call(e) == "[object String]");
|
4450
|
-
/**
|
4451
|
-
* 判断输入类型是否是Object类型
|
4452
|
-
*/
|
4453
|
-
n(this, "isObject", (e) => Object.prototype.toString.call(e) == "[object Object]");
|
4454
|
-
/**
|
4455
|
-
* 判断输入类型是否是Array类型
|
4456
|
-
*/
|
4457
|
-
n(this, "isArray", (e) => Object.prototype.toString.call(e) == "[object Array]");
|
4458
|
-
/**
|
4459
|
-
* 判断输入类型是否是Number类型,null -> false
|
4460
|
-
*/
|
4461
|
-
n(this, "isNumber", (e) => {
|
4462
|
-
let t = Object.prototype.toString.call(e);
|
4463
|
-
return t == "[object Number]" || t == "[object BigInt]";
|
4464
|
-
});
|
4465
|
-
/**
|
4466
|
-
* 判断输入类型是否是isBoolean类型
|
4467
|
-
*/
|
4468
|
-
n(this, "isBoolean", (e) => Object.prototype.toString.call(e) == "[object Boolean]");
|
4469
|
-
}
|
4470
|
-
}
|
4471
4628
|
class Tl {
|
4472
4629
|
constructor() {
|
4473
4630
|
n(this, "value");
|
4474
4631
|
}
|
4475
4632
|
}
|
4476
|
-
class
|
4633
|
+
class Yr extends O {
|
4477
4634
|
constructor() {
|
4478
4635
|
super(...arguments);
|
4479
4636
|
n(this, "type", "time");
|
@@ -4555,7 +4712,7 @@ class Xr extends H {
|
|
4555
4712
|
});
|
4556
4713
|
}
|
4557
4714
|
}
|
4558
|
-
class Gr extends
|
4715
|
+
class Gr extends O {
|
4559
4716
|
constructor() {
|
4560
4717
|
super(...arguments);
|
4561
4718
|
n(this, "type", "tree");
|
@@ -4623,7 +4780,7 @@ class Gr extends H {
|
|
4623
4780
|
*/
|
4624
4781
|
n(this, "getParentsById", (e, t, r, s, l = !1) => {
|
4625
4782
|
let a = [];
|
4626
|
-
return r == null ||
|
4783
|
+
return r == null || st(e, t, r, s, a, l), a;
|
4627
4784
|
});
|
4628
4785
|
/**
|
4629
4786
|
* 获取当前节点的所有孩子节点的集合
|
@@ -4646,7 +4803,7 @@ class Gr extends H {
|
|
4646
4803
|
let l = [];
|
4647
4804
|
if (!t)
|
4648
4805
|
return l;
|
4649
|
-
let a = e ? e.toUpperCase() : "", o = d.
|
4806
|
+
let a = e ? e.toUpperCase() : "", o = d.object.isString(s) ? [s] : s;
|
4650
4807
|
for (let u of t) {
|
4651
4808
|
let p = !1, h = this.getChildren(u, r, !0);
|
4652
4809
|
for (let g of h) {
|
@@ -4711,14 +4868,14 @@ class Gr extends H {
|
|
4711
4868
|
});
|
4712
4869
|
}
|
4713
4870
|
}
|
4714
|
-
function
|
4871
|
+
function st(c, i, e, t, r, s) {
|
4715
4872
|
for (let l = 0; l < e.length; l++) {
|
4716
4873
|
let a = e[l];
|
4717
4874
|
if (a[i] == c) {
|
4718
4875
|
s && r.push(a);
|
4719
4876
|
break;
|
4720
4877
|
} else
|
4721
|
-
d.tree.getById(c, i, a[t], t) != null && (r.push(a),
|
4878
|
+
d.tree.getById(c, i, a[t], t) != null && (r.push(a), st(c, i, a[t], t, r, s));
|
4722
4879
|
}
|
4723
4880
|
return r;
|
4724
4881
|
}
|
@@ -4732,7 +4889,7 @@ function Ae(c, i, e) {
|
|
4732
4889
|
}
|
4733
4890
|
return e;
|
4734
4891
|
}
|
4735
|
-
class Zr extends
|
4892
|
+
class Zr extends O {
|
4736
4893
|
constructor() {
|
4737
4894
|
super(...arguments);
|
4738
4895
|
n(this, "type", "scroll");
|
@@ -4763,7 +4920,7 @@ class es {
|
|
4763
4920
|
n(this, "beautify", !1);
|
4764
4921
|
}
|
4765
4922
|
}
|
4766
|
-
class ts extends
|
4923
|
+
class ts extends O {
|
4767
4924
|
constructor() {
|
4768
4925
|
super(...arguments);
|
4769
4926
|
n(this, "type", "json");
|
@@ -4793,8 +4950,8 @@ class ts extends H {
|
|
4793
4950
|
t == null && (t = new es());
|
4794
4951
|
let s = (typeof t == "boolean" ? t : t.beautify) ? 2 : null, l;
|
4795
4952
|
if (typeof e == "string") {
|
4796
|
-
let o =
|
4797
|
-
if (o
|
4953
|
+
let o = {};
|
4954
|
+
if (!this.tryDeserialize(e, o))
|
4798
4955
|
return e;
|
4799
4956
|
l = o;
|
4800
4957
|
} else
|
@@ -4810,22 +4967,31 @@ class ts extends H {
|
|
4810
4967
|
autoDeserialize(e) {
|
4811
4968
|
if (e == null)
|
4812
4969
|
return null;
|
4813
|
-
let t = e.replace(/\s+\/\/.*/g, (s) => "");
|
4814
|
-
|
4970
|
+
let t = e.replace(/\s+\/\/.*/g, (s) => ""), r = {};
|
4971
|
+
if (!this.tryDeserialize(t, r))
|
4972
|
+
throw new Error(`自动发序列化异常:${r.message}`);
|
4973
|
+
return r;
|
4815
4974
|
}
|
4816
4975
|
/**
|
4817
|
-
*
|
4976
|
+
* 反序列化为json对象,异常返回null
|
4818
4977
|
*/
|
4819
4978
|
deserialize(e) {
|
4979
|
+
let t = {};
|
4980
|
+
return this.tryDeserialize(e, t) ? t : null;
|
4981
|
+
}
|
4982
|
+
/**
|
4983
|
+
* 尝试反序列化成json对象
|
4984
|
+
* 异常时,结果返回异常消息对象
|
4985
|
+
*/
|
4986
|
+
tryDeserialize(e, t) {
|
4820
4987
|
if (e == null)
|
4821
4988
|
return null;
|
4822
|
-
let t;
|
4823
4989
|
try {
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4990
|
+
let r = JSON.parse(e);
|
4991
|
+
return Object.assign(t, r), !0;
|
4992
|
+
} catch (r) {
|
4993
|
+
return Object.assign(t, { message: r.message, stack: r.stack }), !1;
|
4827
4994
|
}
|
4828
|
-
return t;
|
4829
4995
|
}
|
4830
4996
|
//#endregion
|
4831
4997
|
//#region 获取键值
|
@@ -4915,7 +5081,7 @@ class ts extends H {
|
|
4915
5081
|
}
|
4916
5082
|
//#endregion
|
4917
5083
|
}
|
4918
|
-
class rs extends
|
5084
|
+
class rs extends O {
|
4919
5085
|
constructor() {
|
4920
5086
|
super(...arguments);
|
4921
5087
|
n(this, "type", "browser");
|
@@ -4927,7 +5093,7 @@ class rs extends H {
|
|
4927
5093
|
return navigator.language == "zh-CN" ? "zh-cn" : "en";
|
4928
5094
|
}
|
4929
5095
|
}
|
4930
|
-
class ss extends
|
5096
|
+
class ss extends O {
|
4931
5097
|
constructor() {
|
4932
5098
|
super(...arguments);
|
4933
5099
|
n(this, "type", "url");
|
@@ -5130,7 +5296,7 @@ class ss extends H {
|
|
5130
5296
|
return e ? e.indexOf("http://") > -1 || e.indexOf("https://") > -1 : !1;
|
5131
5297
|
}
|
5132
5298
|
}
|
5133
|
-
class ls extends
|
5299
|
+
class ls extends O {
|
5134
5300
|
constructor() {
|
5135
5301
|
super(...arguments);
|
5136
5302
|
n(this, "type", "sign");
|
@@ -5150,7 +5316,7 @@ class ls extends H {
|
|
5150
5316
|
return this.clean(e), d.url.serialize(e, t);
|
5151
5317
|
}
|
5152
5318
|
}
|
5153
|
-
class
|
5319
|
+
class lt {
|
5154
5320
|
constructor(i, e) {
|
5155
5321
|
/**
|
5156
5322
|
* 距窗口左边的距离
|
@@ -5163,7 +5329,7 @@ class st {
|
|
5163
5329
|
this.x = i, this.y = e;
|
5164
5330
|
}
|
5165
5331
|
}
|
5166
|
-
class ns extends
|
5332
|
+
class ns extends lt {
|
5167
5333
|
constructor() {
|
5168
5334
|
super(...arguments);
|
5169
5335
|
/**
|
@@ -5172,7 +5338,7 @@ class ns extends st {
|
|
5172
5338
|
n(this, "affix");
|
5173
5339
|
}
|
5174
5340
|
}
|
5175
|
-
class El extends
|
5341
|
+
class El extends lt {
|
5176
5342
|
constructor(e, t, r, s) {
|
5177
5343
|
super(e, t);
|
5178
5344
|
n(this, "width");
|
@@ -5180,12 +5346,12 @@ class El extends st {
|
|
5180
5346
|
this.width = r, this.height = s;
|
5181
5347
|
}
|
5182
5348
|
}
|
5183
|
-
class
|
5349
|
+
class re {
|
5184
5350
|
constructor() {
|
5185
5351
|
n(this, "type");
|
5186
5352
|
}
|
5187
5353
|
}
|
5188
|
-
class
|
5354
|
+
class $e extends re {
|
5189
5355
|
constructor() {
|
5190
5356
|
super();
|
5191
5357
|
//#region 大小调整
|
@@ -5328,7 +5494,7 @@ class Ee extends se {
|
|
5328
5494
|
}
|
5329
5495
|
//#endregion
|
5330
5496
|
}
|
5331
|
-
class is extends
|
5497
|
+
class is extends re {
|
5332
5498
|
constructor() {
|
5333
5499
|
super(...arguments);
|
5334
5500
|
n(this, "events", {});
|
@@ -5451,14 +5617,14 @@ class is extends se {
|
|
5451
5617
|
clearTimeout(this.timer);
|
5452
5618
|
}
|
5453
5619
|
}
|
5454
|
-
class as extends
|
5620
|
+
class as extends re {
|
5455
5621
|
/**
|
5456
5622
|
* 对比数据变动
|
5457
5623
|
*/
|
5458
5624
|
delta(i, e, t, r) {
|
5459
5625
|
}
|
5460
5626
|
}
|
5461
|
-
class os extends
|
5627
|
+
class os extends re {
|
5462
5628
|
/**
|
5463
5629
|
* 初始化,并绑定自动关闭上下文菜单事件
|
5464
5630
|
*/
|
@@ -5498,7 +5664,7 @@ class os extends se {
|
|
5498
5664
|
}
|
5499
5665
|
}
|
5500
5666
|
}
|
5501
|
-
class us extends
|
5667
|
+
class us extends re {
|
5502
5668
|
constructor() {
|
5503
5669
|
super(...arguments);
|
5504
5670
|
//#region 属性
|
@@ -5556,7 +5722,7 @@ class us extends se {
|
|
5556
5722
|
return this.current != null && this.history.push(e), this.current = this.history.length, e;
|
5557
5723
|
}
|
5558
5724
|
}
|
5559
|
-
const ne = class ne extends
|
5725
|
+
const ne = class ne extends re {
|
5560
5726
|
constructor() {
|
5561
5727
|
super(...arguments);
|
5562
5728
|
/**
|
@@ -5655,7 +5821,7 @@ const ne = class ne extends se {
|
|
5655
5821
|
*/
|
5656
5822
|
n(ne, "opened", {});
|
5657
5823
|
let Se = ne;
|
5658
|
-
class cs extends
|
5824
|
+
class cs extends re {
|
5659
5825
|
/**
|
5660
5826
|
* 初始化
|
5661
5827
|
*/
|
@@ -5664,11 +5830,15 @@ class cs extends se {
|
|
5664
5830
|
}
|
5665
5831
|
}
|
5666
5832
|
class ds extends D {
|
5833
|
+
constructor() {
|
5834
|
+
super(...arguments);
|
5835
|
+
n(this, "type", "Utility");
|
5836
|
+
}
|
5667
5837
|
/**
|
5668
5838
|
* 创建固定工具
|
5669
5839
|
*/
|
5670
|
-
affix(
|
5671
|
-
return new cs(
|
5840
|
+
affix(e, t) {
|
5841
|
+
return new cs(e, t);
|
5672
5842
|
}
|
5673
5843
|
/**
|
5674
5844
|
* 创建对比工具
|
@@ -5680,7 +5850,7 @@ class ds extends D {
|
|
5680
5850
|
* 创建事件工具
|
5681
5851
|
*/
|
5682
5852
|
event() {
|
5683
|
-
return new
|
5853
|
+
return new $e();
|
5684
5854
|
}
|
5685
5855
|
/**
|
5686
5856
|
* 创建键盘工具
|
@@ -5691,8 +5861,8 @@ class ds extends D {
|
|
5691
5861
|
/**
|
5692
5862
|
* 创建鼠标工具
|
5693
5863
|
*/
|
5694
|
-
mouse(
|
5695
|
-
return new os(
|
5864
|
+
mouse(e, t = null) {
|
5865
|
+
return new os(e, t);
|
5696
5866
|
}
|
5697
5867
|
/**
|
5698
5868
|
* 创建随机工具
|
@@ -5708,16 +5878,20 @@ class ds extends D {
|
|
5708
5878
|
}
|
5709
5879
|
}
|
5710
5880
|
class $l extends D {
|
5881
|
+
constructor() {
|
5882
|
+
super(...arguments);
|
5883
|
+
n(this, "type", "Video");
|
5884
|
+
}
|
5711
5885
|
open() {
|
5712
|
-
super.open()
|
5886
|
+
super.open();
|
5713
5887
|
}
|
5714
5888
|
}
|
5715
|
-
class
|
5889
|
+
class nt {
|
5716
5890
|
constructor() {
|
5717
5891
|
n(this, "type");
|
5718
5892
|
}
|
5719
5893
|
}
|
5720
|
-
class ps extends
|
5894
|
+
class ps extends nt {
|
5721
5895
|
constructor() {
|
5722
5896
|
super(...arguments);
|
5723
5897
|
n(this, "type", "Tencent");
|
@@ -5738,7 +5912,7 @@ class ps extends lt {
|
|
5738
5912
|
startRecord() {
|
5739
5913
|
}
|
5740
5914
|
}
|
5741
|
-
class hs extends
|
5915
|
+
class hs extends nt {
|
5742
5916
|
constructor() {
|
5743
5917
|
super(...arguments);
|
5744
5918
|
n(this, "type", "Default");
|
@@ -5753,17 +5927,24 @@ class hs extends lt {
|
|
5753
5927
|
}
|
5754
5928
|
}
|
5755
5929
|
class jl extends D {
|
5930
|
+
constructor() {
|
5931
|
+
super(...arguments);
|
5932
|
+
n(this, "type", "Voice");
|
5933
|
+
}
|
5756
5934
|
open() {
|
5757
|
-
super.open(), super.
|
5935
|
+
super.open(), super.register({
|
5936
|
+
Default: hs,
|
5937
|
+
Tencent: ps
|
5938
|
+
});
|
5758
5939
|
}
|
5759
5940
|
}
|
5760
|
-
let gs = {},
|
5941
|
+
let gs = {}, se = {}, _ = {}, Me = {}, it = {}, je = {}, fs = {}, ie = {}, ys = async (c) => {
|
5761
5942
|
let e = await (await y.provider.getDefaultAsync("sys")).getAsync("sys", "app");
|
5762
|
-
(e == null ? void 0 : e.cdn) != null && (c.cdn = e.cdn),
|
5943
|
+
(e == null ? void 0 : e.cdn) != null && (c.cdn = e.cdn), se = await y.cdn.createWithCacheAsync(c.cdn), gs = await y.encoder.getBase64(), _ = y.http.halo, je = y.socket.default, Me = await y.i18n.createWithCacheAsync("Default", async (t) => {
|
5763
5944
|
let r = (e == null ? void 0 : e.language) ?? d.browser.getLanguage(), s = d.json.serialize({ lang: r });
|
5764
|
-
await t.openAsync(s), fe = t.t, ms = t.t_exists, vs = t.t_sys,
|
5765
|
-
}),
|
5766
|
-
}, fe = {}, ms = {}, vs = {},
|
5945
|
+
await t.openAsync(s), fe = t.t, ms = t.t_exists, vs = t.t_sys, bs = t.t_enum, ws = 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;
|
5946
|
+
}), Me.addMessages(c.lang), it = await y.hasher.getMd5(), fs = y.template.create("Liquid"), c.messenger == null ? ie = await y.messenger.getConsole() : ie = c.messenger;
|
5947
|
+
}, fe = {}, ms = {}, vs = {}, bs = {}, ws = {}, ks = {}, xs = {}, As = {}, Ss = {}, _s = {};
|
5767
5948
|
class Cs {
|
5768
5949
|
constructor() {
|
5769
5950
|
/**
|
@@ -5802,7 +5983,7 @@ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
|
5802
5983
|
return (r, s) => (C(), T("div", Ts, [
|
5803
5984
|
S("div", Es, N(f(e)), 1),
|
5804
5985
|
f(t) ? (C(), T("div", $s, [
|
5805
|
-
|
5986
|
+
Q(r.$slots, "default")
|
5806
5987
|
])) : ye("", !0)
|
5807
5988
|
]));
|
5808
5989
|
}
|
@@ -5810,7 +5991,7 @@ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
|
5810
5991
|
__name: "Fill",
|
5811
5992
|
emits: ["resize"],
|
5812
5993
|
setup(c, { emit: i }) {
|
5813
|
-
let e = i, t =
|
5994
|
+
let e = i, t = H(), r = H(), s = H(), l = new $e(), a = () => {
|
5814
5995
|
let p = d.dom.siblings(t.value);
|
5815
5996
|
s.value = d.dom.getHeight(p);
|
5816
5997
|
}, o = () => {
|
@@ -5828,7 +6009,7 @@ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
|
5828
6009
|
ref: t,
|
5829
6010
|
style: ee({ height: `calc(100% - ${f(s)}px)` })
|
5830
6011
|
}, [
|
5831
|
-
|
6012
|
+
Q(p.$slots, "default")
|
5832
6013
|
], 4));
|
5833
6014
|
}
|
5834
6015
|
}), Ds = /* @__PURE__ */ P({
|
@@ -5838,66 +6019,66 @@ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
|
5838
6019
|
},
|
5839
6020
|
emits: ["scroll"],
|
5840
6021
|
setup(c, { expose: i, emit: e }) {
|
5841
|
-
let t = e, r = c, { options: s } = z(r), l =
|
6022
|
+
let t = e, r = c, { options: s } = z(r), l = H(), a = H(), o = H(), u = H(), p = H(!1), h = null, g = null, m = new $e(), k = H({ top: null, height: null }), U = (b) => {
|
5842
6023
|
if (g == 0)
|
5843
6024
|
return 0;
|
5844
|
-
let
|
5845
|
-
return
|
5846
|
-
}, B = (
|
5847
|
-
let
|
5848
|
-
return
|
5849
|
-
},
|
6025
|
+
let w = g - h;
|
6026
|
+
return b / w;
|
6027
|
+
}, B = (b) => {
|
6028
|
+
let w = h - k.value.height;
|
6029
|
+
return b / w;
|
6030
|
+
}, X = () => {
|
5850
6031
|
if (g == 0)
|
5851
6032
|
return 80;
|
5852
|
-
let
|
5853
|
-
if (
|
6033
|
+
let b = h / g;
|
6034
|
+
if (b == 1)
|
5854
6035
|
return 0;
|
5855
|
-
let
|
5856
|
-
return d.math.between(
|
5857
|
-
},
|
5858
|
-
let E =
|
5859
|
-
return d.math.between(
|
5860
|
-
}, $ = (
|
5861
|
-
let
|
5862
|
-
return { top:
|
5863
|
-
}, F = (
|
5864
|
-
}, A = (
|
5865
|
-
let
|
5866
|
-
R(
|
5867
|
-
}, R = (
|
5868
|
-
let
|
5869
|
-
k.value.top = E *
|
5870
|
-
let
|
5871
|
-
s.value.scrollTop =
|
5872
|
-
}, J = (
|
5873
|
-
let
|
5874
|
-
R(E), t("scroll",
|
6036
|
+
let w = h * b;
|
6037
|
+
return d.math.between(w, 80, 500);
|
6038
|
+
}, Y = (b, w) => {
|
6039
|
+
let E = U(b), q = (h - w) * E;
|
6040
|
+
return d.math.between(q, 0, h - w);
|
6041
|
+
}, $ = (b) => {
|
6042
|
+
let w = X();
|
6043
|
+
return { top: Y(b, w), height: w };
|
6044
|
+
}, F = (b) => {
|
6045
|
+
}, A = (b) => {
|
6046
|
+
let w = U(b);
|
6047
|
+
R(w);
|
6048
|
+
}, R = (b) => {
|
6049
|
+
let w = d.math.between(b, 0, 1), E = h - k.value.height;
|
6050
|
+
k.value.top = E * w;
|
6051
|
+
let V = (g - h) * w;
|
6052
|
+
s.value.scrollTop = V, a.value.scrollTop != V && (a.value.scrollTop = V);
|
6053
|
+
}, J = (b) => {
|
6054
|
+
let w = b.target, E = U(w.scrollTop);
|
6055
|
+
R(E), t("scroll", w);
|
5875
6056
|
}, v = () => {
|
5876
|
-
let
|
5877
|
-
k.value = $(
|
5878
|
-
}, x = (
|
6057
|
+
let b = s.value.scrollTop;
|
6058
|
+
k.value = $(b), A(b);
|
6059
|
+
}, x = (b) => {
|
5879
6060
|
h = d.dom.getHeight(a.value), g = a.value.scrollHeight;
|
5880
|
-
let
|
5881
|
-
k.value.height =
|
5882
|
-
}, j = (
|
5883
|
-
let
|
5884
|
-
return parseInt(
|
5885
|
-
}, M = (
|
5886
|
-
let
|
6061
|
+
let w = X();
|
6062
|
+
k.value.height = w, k.value.top = Y(s.value.scrollTop, w);
|
6063
|
+
}, j = (b) => {
|
6064
|
+
let w = b.target;
|
6065
|
+
return parseInt(w.style.top);
|
6066
|
+
}, M = (b, w, E, q) => {
|
6067
|
+
let V = b.y - w.y, pe = E + V, G = B(pe);
|
5887
6068
|
R(G);
|
5888
|
-
}, I = (
|
6069
|
+
}, I = (b) => {
|
5889
6070
|
p.value = !0;
|
5890
|
-
}, L = (
|
6071
|
+
}, L = (b) => {
|
5891
6072
|
p.value = !1;
|
5892
6073
|
};
|
5893
6074
|
return ae(() => {
|
5894
6075
|
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
6076
|
}), oe(() => {
|
5896
6077
|
m.dispose();
|
5897
|
-
}), W(() => s.value.scrollTop, (
|
5898
|
-
let E =
|
6078
|
+
}), W(() => s.value.scrollTop, (b, w) => {
|
6079
|
+
let E = U(b);
|
5899
6080
|
R(E);
|
5900
|
-
}), i({ scrollTo: A, update: v }), (
|
6081
|
+
}), i({ scrollTo: A, update: v }), (b, w) => (C(), T("div", {
|
5901
6082
|
ref_key: "scrollerRef",
|
5902
6083
|
ref: l,
|
5903
6084
|
class: ce(["ha-scroller", { hover: f(p) }])
|
@@ -5907,13 +6088,13 @@ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
|
5907
6088
|
ref: a,
|
5908
6089
|
class: "scroller-container"
|
5909
6090
|
}, [
|
5910
|
-
|
6091
|
+
Q(b.$slots, "default")
|
5911
6092
|
], 512),
|
5912
6093
|
S("div", {
|
5913
6094
|
ref_key: "trackRef",
|
5914
6095
|
ref: o,
|
5915
6096
|
class: "scroller-track",
|
5916
|
-
onClick:
|
6097
|
+
onClick: w[0] || (w[0] = //@ts-ignore
|
5917
6098
|
(...E) => f(F) && f(F)(...E))
|
5918
6099
|
}, [
|
5919
6100
|
S("div", {
|
@@ -5929,7 +6110,7 @@ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
|
5929
6110
|
__name: "Timer",
|
5930
6111
|
emits: ["change"],
|
5931
6112
|
setup(c, { expose: i, emit: e }) {
|
5932
|
-
let t = e, r = -8 * 60 * 60 * 1e3, s =
|
6113
|
+
let t = e, r = -8 * 60 * 60 * 1e3, s = H(r), l = null, a = 5, o = () => {
|
5933
6114
|
l == null && (l = setInterval(() => {
|
5934
6115
|
s.value += a, t("change", s.value);
|
5935
6116
|
}, a));
|
@@ -5943,8 +6124,8 @@ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
|
5943
6124
|
return oe(() => {
|
5944
6125
|
clearInterval(l);
|
5945
6126
|
}), i({ restart: u, start: o, stop: p, reset: h }), (g, m) => (C(), T("span", null, [
|
5946
|
-
|
5947
|
-
|
6127
|
+
Q(g.$slots, "default"),
|
6128
|
+
Be(N(f(d).time.format(f(s), "HH:mm:ss SSS")), 1)
|
5948
6129
|
]));
|
5949
6130
|
}
|
5950
6131
|
}), de = (c, i) => {
|
@@ -5952,13 +6133,13 @@ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
|
|
5952
6133
|
for (const [t, r] of i)
|
5953
6134
|
e[t] = r;
|
5954
6135
|
return e;
|
5955
|
-
}, Hs = {},
|
5956
|
-
function
|
5957
|
-
return C(), T("div",
|
5958
|
-
|
6136
|
+
}, Hs = {}, Os = { class: "ha-card" };
|
6137
|
+
function Us(c, i) {
|
6138
|
+
return C(), T("div", Os, [
|
6139
|
+
Q(c.$slots, "default")
|
5959
6140
|
]);
|
5960
6141
|
}
|
5961
|
-
const
|
6142
|
+
const Pe = /* @__PURE__ */ de(Hs, [["render", Us]]), Ol = /* @__PURE__ */ P({
|
5962
6143
|
__name: "Code",
|
5963
6144
|
props: {
|
5964
6145
|
options: { default: {} },
|
@@ -5967,24 +6148,24 @@ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
|
5967
6148
|
},
|
5968
6149
|
emits: ["mounted", "change", "scroll", "update:modelValue"],
|
5969
6150
|
setup(c, { expose: i, emit: e }) {
|
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 =
|
6151
|
+
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 = H(), { app: m } = Z.sys, k = (v, x) => {
|
5971
6152
|
h.completion != null && h.completion.dispose();
|
5972
6153
|
let j = d.array.distinct(x, (M) => M);
|
5973
|
-
h.completion =
|
5974
|
-
},
|
6154
|
+
h.completion = U(v, j);
|
6155
|
+
}, U = (v, x) => v == null || o == null ? null : o.languages.registerCompletionItemProvider(v, {
|
5975
6156
|
provideCompletionItems: (M, I) => {
|
5976
|
-
let L = M.getWordUntilPosition(I),
|
6157
|
+
let L = M.getWordUntilPosition(I), b = new o.Range(I.lineNumber, L.startColumn, I.lineNumber, L.endColumn), w = [];
|
5977
6158
|
for (let E = 0; E < x.length; E++) {
|
5978
|
-
let
|
5979
|
-
label:
|
6159
|
+
let q = x[E], V = {
|
6160
|
+
label: q,
|
5980
6161
|
kind: o.languages.CompletionItemKind.Keyword,
|
5981
|
-
insertText:
|
5982
|
-
detail:
|
5983
|
-
range:
|
6162
|
+
insertText: q,
|
6163
|
+
detail: q,
|
6164
|
+
range: b
|
5984
6165
|
};
|
5985
|
-
|
6166
|
+
w.push(V);
|
5986
6167
|
}
|
5987
|
-
return { suggestions:
|
6168
|
+
return { suggestions: w };
|
5988
6169
|
}
|
5989
6170
|
}), B = async (v) => {
|
5990
6171
|
let x = Z.editor.intelli;
|
@@ -5997,50 +6178,50 @@ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
|
5997
6178
|
if (M == null)
|
5998
6179
|
return;
|
5999
6180
|
let I = await M();
|
6000
|
-
x[v] || (
|
6001
|
-
},
|
6181
|
+
x[v] || (X(v, I), Y(v, I), x[v] = !0);
|
6182
|
+
}, X = (v, x) => {
|
6002
6183
|
const j = ["builtinFunctions", "keywords", "operators"];
|
6003
6184
|
return o.languages.registerCompletionItemProvider(v, {
|
6004
6185
|
provideCompletionItems: (I, L) => {
|
6005
|
-
let
|
6006
|
-
for (let
|
6007
|
-
let
|
6008
|
-
if (
|
6186
|
+
let b = I.getWordUntilPosition(L), w = new o.Range(L.lineNumber, b.startColumn, L.lineNumber, b.endColumn), E = [];
|
6187
|
+
for (let q of j) {
|
6188
|
+
let V = x.language[q];
|
6189
|
+
if (V == null)
|
6009
6190
|
continue;
|
6010
|
-
let pe = $(
|
6011
|
-
|
6012
|
-
for (let
|
6013
|
-
let
|
6014
|
-
label:
|
6015
|
-
documentation:
|
6016
|
-
range:
|
6191
|
+
let pe = $(q), G, he;
|
6192
|
+
q == "keywords" ? (G = o.languages.CompletionItemKind.Keyword, he = " ") : q == "operators" ? (G = o.languages.CompletionItemKind.Operator, he = " ") : (G = o.languages.CompletionItemKind.Function, he = "()");
|
6193
|
+
for (let De of V) {
|
6194
|
+
let He = De.toLowerCase(), at = {
|
6195
|
+
label: He,
|
6196
|
+
documentation: De,
|
6197
|
+
range: w,
|
6017
6198
|
kind: G,
|
6018
|
-
insertText:
|
6199
|
+
insertText: He + he,
|
6019
6200
|
detail: pe
|
6020
6201
|
};
|
6021
|
-
E.push(
|
6202
|
+
E.push(at);
|
6022
6203
|
}
|
6023
6204
|
}
|
6024
6205
|
return { suggestions: E };
|
6025
6206
|
}
|
6026
6207
|
});
|
6027
|
-
},
|
6208
|
+
}, Y = (v, x) => {
|
6028
6209
|
const j = ["builtinFunctions", "keywords", "operators"];
|
6029
6210
|
return o.languages.registerHoverProvider(v, {
|
6030
6211
|
provideHover: (I, L) => {
|
6031
|
-
let
|
6032
|
-
if (!
|
6212
|
+
let b = I.getWordAtPosition(L);
|
6213
|
+
if (!b)
|
6033
6214
|
return null;
|
6034
|
-
for (let
|
6035
|
-
let E = x.language[
|
6036
|
-
if (E == null || E.find((G) => G ==
|
6215
|
+
for (let w of j) {
|
6216
|
+
let E = x.language[w];
|
6217
|
+
if (E == null || E.find((G) => G == b.word.toUpperCase()) == null)
|
6037
6218
|
continue;
|
6038
|
-
let
|
6219
|
+
let V = $(w);
|
6039
6220
|
return {
|
6040
|
-
range: new o.Range(L.lineNumber, L.lineNumber,
|
6221
|
+
range: new o.Range(L.lineNumber, L.lineNumber, b.startColumn, b.endColumn),
|
6041
6222
|
contents: [
|
6042
|
-
{ value: "**" +
|
6043
|
-
{ value:
|
6223
|
+
{ value: "**" + b.word + "**" },
|
6224
|
+
{ value: V }
|
6044
6225
|
]
|
6045
6226
|
};
|
6046
6227
|
}
|
@@ -6097,12 +6278,12 @@ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
|
6097
6278
|
u.onDidScrollChange((L) => {
|
6098
6279
|
s.value.scrollTop = L.scrollTop, t("scroll", L.scrollTop);
|
6099
6280
|
}), u.onDidChangeModelContent((L) => {
|
6100
|
-
let
|
6101
|
-
t("update:modelValue",
|
6281
|
+
let b = u.getValue();
|
6282
|
+
t("update:modelValue", b), t("change", b);
|
6102
6283
|
});
|
6103
6284
|
};
|
6104
6285
|
ae(async () => {
|
6105
|
-
o = await
|
6286
|
+
o = await se.getMonaco(), await A(), t("mounted", o, u);
|
6106
6287
|
}), oe(() => {
|
6107
6288
|
var v;
|
6108
6289
|
p == null || p.dispose(), u == null || u.dispose(), (v = h.completion) == null || v.dispose();
|
@@ -6124,7 +6305,7 @@ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
|
6124
6305
|
return;
|
6125
6306
|
let j = u.getModel();
|
6126
6307
|
o.editor.setModelLanguage(j, v), await B(v);
|
6127
|
-
}), i({ layout: R, getEditor: J, registerIntelli: k }), (v, x) => (C(),
|
6308
|
+
}), i({ layout: R, getEditor: J, registerIntelli: k }), (v, x) => (C(), Fe(js, null, {
|
6128
6309
|
default: ue(() => [
|
6129
6310
|
S("div", {
|
6130
6311
|
ref_key: "editorRef",
|
@@ -6135,7 +6316,7 @@ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
|
6135
6316
|
_: 1
|
6136
6317
|
}));
|
6137
6318
|
}
|
6138
|
-
}),
|
6319
|
+
}), Ul = /* @__PURE__ */ P({
|
6139
6320
|
__name: "Compare",
|
6140
6321
|
props: {
|
6141
6322
|
inline: { type: Boolean, default: !1 },
|
@@ -6145,13 +6326,13 @@ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
|
6145
6326
|
},
|
6146
6327
|
emits: ["update:modelValue", "update:original", "change"],
|
6147
6328
|
setup(c, { emit: i }) {
|
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 =
|
6329
|
+
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 = H(), U = H(), { app: B } = Z.sys, X = ($) => $ == "default" ? null : "vs-dark", Y = ($) => {
|
6149
6330
|
u = $.editor.createModel(l.value, s.value), p = $.editor.createModel(a.value, s.value), o = $.editor.createDiffEditor(k.value, {
|
6150
6331
|
originalEditable: !0,
|
6151
6332
|
automaticLayout: !0,
|
6152
6333
|
renderSideBySide: !r.value,
|
6153
6334
|
//是否启用行内模式
|
6154
|
-
theme:
|
6335
|
+
theme: X(B.theme)
|
6155
6336
|
}), o.setModel({ original: u, modified: p }), h = o.getOriginalEditor(), h.onDidChangeModelContent((F) => {
|
6156
6337
|
let A = h.getValue();
|
6157
6338
|
e("update:original", A), e("change", A);
|
@@ -6161,9 +6342,9 @@ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
|
6161
6342
|
});
|
6162
6343
|
};
|
6163
6344
|
return ae(async () => {
|
6164
|
-
m = await
|
6345
|
+
m = await se.getMonaco(), Y(m);
|
6165
6346
|
}), W(() => B.theme, ($, F) => {
|
6166
|
-
let A =
|
6347
|
+
let A = X($);
|
6167
6348
|
m.editor.setTheme(A);
|
6168
6349
|
}), W(() => s.value, ($, F) => {
|
6169
6350
|
u && m.editor.setModelLanguage(u, $), p && m.editor.setModelLanguage(p, $);
|
@@ -6181,7 +6362,7 @@ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
|
|
6181
6362
|
ref_key: "compareRef",
|
6182
6363
|
ref: k,
|
6183
6364
|
class: "ha-compare",
|
6184
|
-
style: ee(f(
|
6365
|
+
style: ee(f(U))
|
6185
6366
|
}, null, 4));
|
6186
6367
|
}
|
6187
6368
|
}), Ls = {}, Rs = { class: "ha-input" };
|
@@ -6196,15 +6377,15 @@ function Bs(c, i) {
|
|
6196
6377
|
}
|
6197
6378
|
const Fs = /* @__PURE__ */ de(Ms, [["render", Bs]]), Ns = { class: "ha-rich-text" }, Rl = /* @__PURE__ */ P({
|
6198
6379
|
__name: "RichText",
|
6199
|
-
props: /* @__PURE__ */
|
6380
|
+
props: /* @__PURE__ */ Oe({
|
6200
6381
|
options: {}
|
6201
6382
|
}, {
|
6202
6383
|
modelValue: {},
|
6203
6384
|
modelModifiers: {}
|
6204
6385
|
}),
|
6205
|
-
emits: /* @__PURE__ */
|
6386
|
+
emits: /* @__PURE__ */ Oe(["change", "scroll"], ["update:modelValue"]),
|
6206
6387
|
setup(c, { expose: i, emit: e }) {
|
6207
|
-
let t = e, r = c, { options: s } = z(r), l =
|
6388
|
+
let t = e, r = c, { options: s } = z(r), l = Ne(c, "modelValue"), a, o = null, u = null, p = !1, h = !1, g = H(), m = H(), k = H(), U = H(!1), B = H({ style: null, options: { scrollTop: 0 } }), X = (A) => {
|
6208
6389
|
let R = d.time.getDateString(), J = getSelection(), v = J.getRangeAt(0), x = v.startContainer;
|
6209
6390
|
if (x.nodeName == "#text")
|
6210
6391
|
x.insertData(v.startOffset, R), v.setStart(x, v.startOffset + R.length), J.removeAllRanges(), J.addRange(v);
|
@@ -6214,23 +6395,23 @@ const Fs = /* @__PURE__ */ de(Ms, [["render", Bs]]), Ns = { class: "ha-rich-text
|
|
6214
6395
|
let M = document.createRange();
|
6215
6396
|
M.selectNodeContents(j), M.setStart(j, M.startOffset + R.length), J.removeAllRanges(), J.addRange(M);
|
6216
6397
|
}
|
6217
|
-
},
|
6398
|
+
}, Y = (A) => {
|
6218
6399
|
if (o.scrollTop = A.scrollTop, p || h) {
|
6219
6400
|
p = !1, h = !1;
|
6220
6401
|
return;
|
6221
6402
|
}
|
6222
6403
|
u = A, t("scroll", A);
|
6223
6404
|
}, $ = () => `height: calc(100% - ${d.dom.getHeight(m.value)}px)`, F = async () => {
|
6224
|
-
let A = await
|
6405
|
+
let A = await se.getQuill();
|
6225
6406
|
a = new A(g.value, {
|
6226
6407
|
modules: {
|
6227
6408
|
toolbar: {
|
6228
6409
|
container: m.value,
|
6229
|
-
handlers: { date:
|
6410
|
+
handlers: { date: X }
|
6230
6411
|
}
|
6231
6412
|
},
|
6232
6413
|
theme: "snow"
|
6233
|
-
}),
|
6414
|
+
}), U.value = !0, Ue(() => {
|
6234
6415
|
B.value.style = $();
|
6235
6416
|
}), 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) => {
|
6236
6417
|
o.innerHTML != l.value && (p = !0, l.value = o.innerHTML);
|
@@ -6249,20 +6430,20 @@ const Fs = /* @__PURE__ */ de(Ms, [["render", Bs]]), Ns = { class: "ha-rich-text
|
|
6249
6430
|
B.value.options.scrollTop = A;
|
6250
6431
|
});
|
6251
6432
|
}), i({}), (A, R) => (C(), T("div", Ns, [
|
6252
|
-
|
6433
|
+
dt(S("div", {
|
6253
6434
|
ref_key: "toolbarRef",
|
6254
6435
|
ref: m
|
6255
6436
|
}, R[0] || (R[0] = [
|
6256
|
-
|
6437
|
+
pt('<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)
|
6257
6438
|
]), 512), [
|
6258
|
-
[
|
6439
|
+
[ht, f(U)]
|
6259
6440
|
]),
|
6260
|
-
|
6441
|
+
te(f(Ds), {
|
6261
6442
|
ref_key: "scrollerRef",
|
6262
6443
|
ref: k,
|
6263
6444
|
class: "ql-body",
|
6264
6445
|
options: f(B).options,
|
6265
|
-
onScroll: f(
|
6446
|
+
onScroll: f(Y),
|
6266
6447
|
style: ee(f(B).style)
|
6267
6448
|
}, {
|
6268
6449
|
default: ue(() => [
|
@@ -6275,16 +6456,16 @@ const Fs = /* @__PURE__ */ de(Ms, [["render", Bs]]), Ns = { class: "ha-rich-text
|
|
6275
6456
|
}, 8, ["options", "onScroll", "style"])
|
6276
6457
|
]));
|
6277
6458
|
}
|
6278
|
-
}),
|
6459
|
+
}), qs = {}, Vs = { class: "ha-select" };
|
6279
6460
|
function Ws(c, i) {
|
6280
|
-
return C(), T("div",
|
6461
|
+
return C(), T("div", Vs, i[0] || (i[0] = [
|
6281
6462
|
S("div", { class: "select-title" }, "头", -1),
|
6282
6463
|
S("div", { class: "select-body" }, [
|
6283
6464
|
S("input", { type: "text" })
|
6284
6465
|
], -1)
|
6285
6466
|
]));
|
6286
6467
|
}
|
6287
|
-
const
|
6468
|
+
const we = /* @__PURE__ */ de(qs, [["render", Ws]]);
|
6288
6469
|
class Il {
|
6289
6470
|
/**
|
6290
6471
|
* 初始化
|
@@ -6319,20 +6500,20 @@ const zs = { class: "ha-condition" }, Ks = /* @__PURE__ */ P({
|
|
6319
6500
|
setup(c) {
|
6320
6501
|
let i = c, { name: e, operator: t, value: r } = z(i);
|
6321
6502
|
return (s, l) => (C(), T("div", zs, [
|
6322
|
-
|
6503
|
+
te(f(we), {
|
6323
6504
|
modelValue: f(e),
|
6324
6505
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => ve(e) ? e.value = a : e = a)
|
6325
6506
|
}, null, 8, ["modelValue"]),
|
6326
|
-
|
6507
|
+
te(f(we), {
|
6327
6508
|
modelValue: f(t),
|
6328
6509
|
"onUpdate:modelValue": l[1] || (l[1] = (a) => ve(t) ? t.value = a : t = a)
|
6329
6510
|
}, {
|
6330
6511
|
default: ue(() => [
|
6331
|
-
|
6512
|
+
te(f(Fs))
|
6332
6513
|
]),
|
6333
6514
|
_: 1
|
6334
6515
|
}, 8, ["modelValue"]),
|
6335
|
-
|
6516
|
+
te(f(we), {
|
6336
6517
|
modelValue: f(r),
|
6337
6518
|
"onUpdate:modelValue": l[2] || (l[2] = (a) => ve(r) ? r.value = a : r = a)
|
6338
6519
|
}, null, 8, ["modelValue"])
|
@@ -6346,20 +6527,20 @@ const zs = { class: "ha-condition" }, Ks = /* @__PURE__ */ P({
|
|
6346
6527
|
setup(c) {
|
6347
6528
|
let i = c, { conditions: e } = z(i);
|
6348
6529
|
return (t, r) => (C(), T("div", Js, [
|
6349
|
-
(C(!0), T(
|
6530
|
+
(C(!0), T(qe, null, Ve(f(e), (s) => (C(), Fe(f(Ks), {
|
6350
6531
|
name: s.name,
|
6351
6532
|
operator: s.operator,
|
6352
6533
|
value: s.value
|
6353
6534
|
}, null, 8, ["name", "operator", "value"]))), 256))
|
6354
6535
|
]));
|
6355
6536
|
}
|
6356
|
-
}),
|
6357
|
-
function
|
6358
|
-
return C(), T("div",
|
6359
|
-
|
6537
|
+
}), Xs = {}, Qs = { class: "ha-col" };
|
6538
|
+
function Ys(c, i) {
|
6539
|
+
return C(), T("div", Qs, [
|
6540
|
+
Q(c.$slots, "default")
|
6360
6541
|
]);
|
6361
6542
|
}
|
6362
|
-
const Pl = /* @__PURE__ */ de(
|
6543
|
+
const Pl = /* @__PURE__ */ de(Xs, [["render", Ys]]), Bl = /* @__PURE__ */ P({
|
6363
6544
|
__name: "Container",
|
6364
6545
|
props: {
|
6365
6546
|
container: { type: Boolean, default: !0 }
|
@@ -6369,7 +6550,7 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6369
6550
|
return (t, r) => (C(), T("div", {
|
6370
6551
|
class: ce({ "ha-container": f(e) })
|
6371
6552
|
}, [
|
6372
|
-
|
6553
|
+
Q(t.$slots, "default")
|
6373
6554
|
], 2));
|
6374
6555
|
}
|
6375
6556
|
}), Fl = /* @__PURE__ */ P({
|
@@ -6379,7 +6560,7 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6379
6560
|
direction: {}
|
6380
6561
|
},
|
6381
6562
|
setup(c, { expose: i }) {
|
6382
|
-
let e = c, { gap: t, direction: r } = z(e), s =
|
6563
|
+
let e = c, { gap: t, direction: r } = z(e), s = H(), l = ge(() => {
|
6383
6564
|
let a = { gap: null };
|
6384
6565
|
return t.value && (a.gap = t.value + "px"), a;
|
6385
6566
|
});
|
@@ -6389,7 +6570,7 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6389
6570
|
class: ce(["ha-row", f(r)]),
|
6390
6571
|
style: ee(f(l))
|
6391
6572
|
}, [
|
6392
|
-
|
6573
|
+
Q(a.$slots, "default")
|
6393
6574
|
], 6));
|
6394
6575
|
}
|
6395
6576
|
}), Nl = /* @__PURE__ */ P({
|
@@ -6400,7 +6581,7 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6400
6581
|
},
|
6401
6582
|
emits: ["update:modelValue"],
|
6402
6583
|
setup(c) {
|
6403
|
-
let i =
|
6584
|
+
let i = Ne(c, "modelValue"), e = H(!0), t = H(0), r = null, s = () => {
|
6404
6585
|
t.value = 0, e.value = !0, r = setInterval(() => {
|
6405
6586
|
if (t.value < 100) {
|
6406
6587
|
t.value++;
|
@@ -6428,7 +6609,7 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6428
6609
|
style: ee({ width: f(t) + "%" })
|
6429
6610
|
}, null, 4)) : ye("", !0);
|
6430
6611
|
}
|
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" },
|
6612
|
+
}), 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" }, ql = /* @__PURE__ */ P({
|
6432
6613
|
__name: "SocketProgress",
|
6433
6614
|
props: {
|
6434
6615
|
title: {},
|
@@ -6443,15 +6624,15 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6443
6624
|
warning: f(r).errored > 0 && f(r).errored < f(r).handled
|
6444
6625
|
}])
|
6445
6626
|
}, [
|
6446
|
-
|
6627
|
+
te(f(Pe), { class: "progress-tips" }, {
|
6447
6628
|
default: ue(() => [
|
6448
6629
|
S("div", Gs, "成功:" + N(f(r).succeed ?? "-"), 1),
|
6449
6630
|
S("div", Zs, "异常:" + N(f(r).errored ?? "-"), 1),
|
6450
|
-
|
6631
|
+
Q(o.$slots, "default")
|
6451
6632
|
]),
|
6452
6633
|
_: 3
|
6453
6634
|
}),
|
6454
|
-
|
6635
|
+
te(f(Pe), { class: "progress-chart" }, {
|
6455
6636
|
default: ue(() => {
|
6456
6637
|
var p;
|
6457
6638
|
return [
|
@@ -6482,7 +6663,7 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6482
6663
|
}, al = { class: "stack" }, ol = {
|
6483
6664
|
key: 1,
|
6484
6665
|
class: "ha-spinner is-loading"
|
6485
|
-
}, ul = { class: "spinner-loading" }, cl = { class: "spinner-text" },
|
6666
|
+
}, ul = { class: "spinner-loading" }, cl = { class: "spinner-text" }, Vl = /* @__PURE__ */ P({
|
6486
6667
|
__name: "Spinner",
|
6487
6668
|
props: {
|
6488
6669
|
title: { type: String },
|
@@ -6497,7 +6678,7 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6497
6678
|
};
|
6498
6679
|
return (a, o) => f(r) || f(s) ? (C(), T("div", ll, [
|
6499
6680
|
S("div", nl, [
|
6500
|
-
|
6681
|
+
Be(N(f(r)), 1),
|
6501
6682
|
S("a", {
|
6502
6683
|
class: "retry",
|
6503
6684
|
onClick: o[0] || (o[0] = //@ts-ignore
|
@@ -6540,7 +6721,7 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6540
6721
|
setup(c) {
|
6541
6722
|
let i = c, { text: e, delay: t } = z(i);
|
6542
6723
|
return (r, s) => (C(), T("div", pl, [
|
6543
|
-
(C(!0), T(
|
6724
|
+
(C(!0), T(qe, null, Ve(f(e), (l, a) => (C(), T("div", {
|
6544
6725
|
class: "char",
|
6545
6726
|
style: ee({ animationDelay: `${f(t) + a * 0.1}s` })
|
6546
6727
|
}, N(l), 5))), 256))
|
@@ -6548,40 +6729,40 @@ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
|
|
6548
6729
|
}
|
6549
6730
|
});
|
6550
6731
|
let Kl = async (c) => {
|
6551
|
-
c == null && (c = new Cs()), await ys(c), await
|
6552
|
-
let i = await
|
6732
|
+
c == null && (c = new Cs()), await ys(c), await _t();
|
6733
|
+
let i = await Ot.getSso(), e = Z.sys.app, t = { baseUrl: c.baseUrl, language: e.language, user: i, platform: "pc" }, r = d.json.serialize(t);
|
6553
6734
|
await _.openAsync(r);
|
6554
6735
|
let s = { url: c.socketUrl }, l = d.json.serialize(s);
|
6555
|
-
await
|
6736
|
+
await je.openAsync(l), _.onResponse = async (a) => {
|
6556
6737
|
let { ok: o, status: u, data: p } = a;
|
6557
|
-
return o == !1 ? (
|
6738
|
+
return o == !1 ? (Le.add(u.toString(), a.message, "网络错误", a.elapsed), ie.error(a.message), Promise.reject(a)) : p.code == null || (Le.add(p.code, p.message, p.stack, p.elapsed), p.code == "Ok") ? Promise.resolve() : (ie.error(p.message), Promise.reject(p));
|
6558
6739
|
};
|
6559
6740
|
};
|
6560
6741
|
export {
|
6561
|
-
|
6742
|
+
Ir as ArrayUtil,
|
6562
6743
|
rs as BrowserUtil,
|
6563
|
-
|
6744
|
+
Bt as BuilderFactory,
|
6564
6745
|
Ye as Cdn,
|
6565
|
-
|
6566
|
-
|
6746
|
+
qt as CdnFactory,
|
6747
|
+
Mr as ComponentUtil,
|
6567
6748
|
Cs as CreateFeOptions,
|
6568
6749
|
as as DeltaUtility,
|
6569
|
-
|
6570
|
-
|
6750
|
+
Br as DictionaryUtil,
|
6751
|
+
Pr as DomUtil,
|
6571
6752
|
ns as DragEvent,
|
6572
|
-
|
6573
|
-
|
6574
|
-
|
6575
|
-
|
6576
|
-
|
6753
|
+
zt as EncoderFactory,
|
6754
|
+
Fr as EventUtil,
|
6755
|
+
$e as EventUtility,
|
6756
|
+
Xt as ExcelFactory,
|
6757
|
+
Gt as ExplainerFactory,
|
6577
6758
|
y as Factories,
|
6578
6759
|
D as Factory,
|
6579
|
-
|
6580
|
-
|
6581
|
-
|
6582
|
-
|
6760
|
+
rr as FeatureFactory,
|
6761
|
+
Nr as FileUtil,
|
6762
|
+
Pe as HaCard,
|
6763
|
+
Ol as HaCode,
|
6583
6764
|
Pl as HaCol,
|
6584
|
-
|
6765
|
+
Ul as HaCompare,
|
6585
6766
|
Ks as HaCondition,
|
6586
6767
|
Ml as HaConditionGroup,
|
6587
6768
|
Bl as HaContainer,
|
@@ -6594,85 +6775,84 @@ export {
|
|
6594
6775
|
Rl as HaRichText,
|
6595
6776
|
Fl as HaRow,
|
6596
6777
|
Ds as HaScroller,
|
6597
|
-
|
6598
|
-
|
6599
|
-
|
6778
|
+
we as HaSelect,
|
6779
|
+
ql as HaSocketProgress,
|
6780
|
+
Vl as HaSpinner,
|
6600
6781
|
Wl as HaTab,
|
6601
6782
|
Hl as HaTimer,
|
6602
|
-
|
6603
|
-
|
6604
|
-
|
6605
|
-
|
6606
|
-
|
6607
|
-
|
6608
|
-
|
6783
|
+
ur as HaloHttp,
|
6784
|
+
nr as HasherFactory,
|
6785
|
+
qr as HtmlUtil,
|
6786
|
+
cr as HttpFactory,
|
6787
|
+
tt as HttpRequest,
|
6788
|
+
Ie as HttpResponse,
|
6789
|
+
hr as I18nFactory,
|
6609
6790
|
Vr as ImageUtil,
|
6610
6791
|
ts as JsonUtil,
|
6611
|
-
|
6792
|
+
xt as KeyboardType,
|
6612
6793
|
is as KeyboardUtility,
|
6613
|
-
|
6614
|
-
|
6615
|
-
|
6616
|
-
|
6617
|
-
|
6794
|
+
Wr as MathUtil,
|
6795
|
+
gr as Messenger,
|
6796
|
+
yr as MessengerFactory,
|
6797
|
+
zr as MicroUtil,
|
6798
|
+
Kr as MountUtil,
|
6618
6799
|
os as MouseUtility,
|
6619
|
-
|
6620
|
-
|
6621
|
-
|
6800
|
+
Jr as ObjectUtil,
|
6801
|
+
lt as Position,
|
6802
|
+
Mt as ProviderFactory,
|
6622
6803
|
Sl as ProviderTable,
|
6623
6804
|
us as RandomUtility,
|
6624
6805
|
Il as Range,
|
6625
6806
|
El as Rect,
|
6626
6807
|
Tl as Ref,
|
6627
|
-
|
6808
|
+
kt as RepoFactory,
|
6628
6809
|
Se as SaveUtility,
|
6629
6810
|
Zr as ScrollUtil,
|
6630
6811
|
ls as SignUtil,
|
6631
|
-
|
6632
|
-
|
6812
|
+
br as SignerFactory,
|
6813
|
+
xr as SocketFactory,
|
6633
6814
|
_l as SocketProgress,
|
6634
6815
|
Cl as SocketResponse,
|
6635
|
-
|
6636
|
-
|
6637
|
-
|
6638
|
-
|
6639
|
-
|
6640
|
-
|
6816
|
+
Re as SqlHelper,
|
6817
|
+
$r as SsoFactory,
|
6818
|
+
rt as SsoUser,
|
6819
|
+
Xr as StringUtil,
|
6820
|
+
Ht as SvcFactory,
|
6821
|
+
Hr as TaskFactory,
|
6641
6822
|
Qr as TaskUtil,
|
6642
|
-
|
6643
|
-
|
6823
|
+
Lr as TemplateFactory,
|
6824
|
+
Yr as TimeUtil,
|
6644
6825
|
Gr as TreeUtil,
|
6645
|
-
Yr as TypeUtil,
|
6646
6826
|
ss as UrlUtil,
|
6647
|
-
|
6827
|
+
Rr as UtilFactory,
|
6648
6828
|
ds as UtilityFactory,
|
6649
6829
|
d as Utils,
|
6650
6830
|
$l as VideoFactory,
|
6651
6831
|
jl as VoiceFactory,
|
6652
6832
|
gs as base64,
|
6653
|
-
|
6833
|
+
se as cdn,
|
6654
6834
|
Z as configSvc,
|
6655
6835
|
Kl as createFe,
|
6656
6836
|
xl as driverSvc,
|
6657
6837
|
Al as envSvc,
|
6658
6838
|
_ as http,
|
6659
|
-
|
6839
|
+
Me as i18n,
|
6660
6840
|
ys as initDriverAsync,
|
6661
|
-
|
6841
|
+
_t as initRepoAsync,
|
6662
6842
|
kl as initSvcAsync,
|
6663
|
-
|
6664
|
-
|
6843
|
+
Le as logSvc,
|
6844
|
+
it as md5,
|
6665
6845
|
ie as messenger,
|
6666
|
-
|
6846
|
+
At as moduleRepo,
|
6667
6847
|
K as moment,
|
6668
|
-
|
6669
|
-
|
6848
|
+
St as queryRepo,
|
6849
|
+
ze as settingRepo,
|
6670
6850
|
Qe as settingSvc,
|
6671
|
-
|
6851
|
+
je as socket,
|
6672
6852
|
fe as t,
|
6673
|
-
|
6853
|
+
bs as t_enum,
|
6674
6854
|
ms as t_exists,
|
6675
|
-
|
6855
|
+
ws as t_field,
|
6676
6856
|
ks as t_field_choose_placeholder,
|
6677
6857
|
xs as t_field_placeholder,
|
6678
6858
|
_s as t_menu,
|
@@ -6680,5 +6860,5 @@ export {
|
|
6680
6860
|
vs as t_sys,
|
6681
6861
|
As as t_table,
|
6682
6862
|
fs as template,
|
6683
|
-
|
6863
|
+
Ot as userSvc
|
6684
6864
|
};
|