halo-fe 1.0.25 → 1.0.27
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -1
- package/dist/assets/{liquidjs-B8dqQyVv.js → liquidjs-C2HVw1Ra.js} +82 -81
- package/dist/main.js +3562 -3070
- package/dist/style.css +1 -1
- package/esm/coms/@types/PagerEmit.d.ts +11 -0
- package/esm/coms/@types/PagerProps.d.ts +18 -0
- package/esm/coms/@types/SocketProgressProps.d.ts +16 -0
- package/esm/coms/@types/TableEmit.d.ts +10 -0
- package/esm/coms/@types/TableProps.d.ts +14 -2
- package/esm/coms/@types/index.d.ts +4 -1
- package/esm/coms/controls/@types/CodeIntelli.d.ts +6 -0
- package/esm/coms/controls/@types/CodeProps.d.ts +31 -2
- package/esm/coms/controls/@types/Range.d.ts +1 -1
- package/esm/coms/controls/Code.vue.d.ts +15 -25
- package/esm/coms/index.d.ts +1 -0
- package/esm/coms/layouts/Row.vue.d.ts +7 -2
- package/esm/coms/pagers/Index.vue.d.ts +8 -1
- package/esm/coms/pagers/index.d.ts +2 -2
- package/esm/coms/progresses/Circle.vue.d.ts +2 -0
- package/esm/coms/progresses/Index.vue.d.ts +6 -3
- package/esm/coms/progresses/Spinner.vue.d.ts +20 -0
- package/esm/coms/progresses/index.d.ts +2 -1
- package/esm/coms/tables/Index.vue.d.ts +22 -3
- package/esm/coms/texts/@types/DanceProps.d.ts +14 -0
- package/esm/coms/texts/@types/index.d.ts +2 -0
- package/esm/coms/texts/Dance.vue.d.ts +5 -0
- package/esm/coms/texts/index.d.ts +2 -0
- package/esm/drivers/@types/IOpen.d.ts +1 -1
- package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
- package/esm/drivers/cdns/Cdn.d.ts +1 -1
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/ICdn.d.ts +2 -6
- package/esm/drivers/encoders/Encoder.d.ts +1 -1
- package/esm/drivers/encoders/EncoderFactory.d.ts +2 -2
- package/esm/drivers/encoders/IEncoder.d.ts +2 -5
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +1 -1
- package/esm/drivers/excels/Excel.d.ts +1 -1
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -1
- package/esm/drivers/explainers/ExplainerFactory.d.ts +2 -2
- package/esm/drivers/features/FeatureFactory.d.ts +2 -2
- package/esm/drivers/features/IFeature.d.ts +2 -6
- package/esm/drivers/features/implements/ExpressionFeature.d.ts +1 -1
- package/esm/drivers/features/implements/I18NFeature.d.ts +1 -1
- package/esm/drivers/features/implements/SortFeature.d.ts +1 -1
- package/esm/drivers/hashers/Hasher.d.ts +1 -1
- package/esm/drivers/hashers/HasherFactory.d.ts +2 -2
- package/esm/drivers/hashers/IHasher.d.ts +2 -5
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +1 -1
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
- package/esm/drivers/https/Http.d.ts +11 -7
- package/esm/drivers/https/HttpFactory.d.ts +2 -7
- package/esm/drivers/https/IHttp.d.ts +12 -12
- package/esm/drivers/https/entities/HttpResponse.d.ts +5 -1
- package/esm/drivers/https/implements/DefaultHttp.d.ts +1 -1
- package/esm/drivers/https/implements/FeiShuHttp.d.ts +8 -0
- package/esm/drivers/https/implements/HaloHttp.d.ts +1 -1
- package/esm/drivers/https/implements/MkHttp.d.ts +1 -1
- package/esm/drivers/i18ns/I18n.d.ts +2 -2
- package/esm/drivers/i18ns/I18nFactory.d.ts +1 -1
- package/esm/drivers/i18ns/II18n.d.ts +1 -1
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +2 -2
- package/esm/drivers/index.d.ts +50 -0
- package/esm/drivers/messengers/MessengerFactory.d.ts +2 -2
- package/esm/drivers/providers/IProvider.d.ts +19 -15
- package/esm/drivers/providers/Provider.d.ts +11 -9
- package/esm/drivers/providers/ProviderFactory.d.ts +5 -9
- package/esm/drivers/providers/implements/CookieProvider.d.ts +8 -8
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +20 -10
- package/esm/drivers/providers/implements/StorageProvider.d.ts +8 -8
- package/esm/drivers/signers/ISigner.d.ts +1 -1
- package/esm/drivers/signers/Signer.d.ts +1 -1
- package/esm/drivers/signers/SignerFactory.d.ts +2 -2
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +1 -1
- package/esm/drivers/sockets/@types/SubscribedWindow.d.ts +16 -0
- package/esm/drivers/sockets/@types/index.d.ts +2 -0
- package/esm/drivers/sockets/ISocket.d.ts +7 -3
- package/esm/drivers/sockets/Socket.d.ts +10 -1
- package/esm/drivers/sockets/SocketFactory.d.ts +1 -1
- package/esm/drivers/sockets/entities/SocketProgress.d.ts +34 -0
- package/esm/drivers/sockets/entities/SocketResponse.d.ts +42 -0
- package/esm/drivers/sockets/entities/index.d.ts +3 -0
- package/esm/drivers/sockets/implement/DefaultSocket.d.ts +0 -2
- package/esm/drivers/sockets/index.d.ts +3 -1
- package/esm/drivers/ssos/ISso.d.ts +1 -1
- package/esm/drivers/ssos/Sso.d.ts +1 -1
- package/esm/drivers/ssos/SsoFactory.d.ts +2 -2
- package/esm/drivers/ssos/implements/AnonymousSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/BearerSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/NioSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/SecretSso.d.ts +1 -1
- package/esm/drivers/ssos/implements/WeiXinSso.d.ts +1 -1
- package/esm/drivers/tasks/ITask.d.ts +7 -3
- package/esm/drivers/tasks/Task.d.ts +2 -1
- package/esm/drivers/tasks/TaskFactory.d.ts +2 -2
- package/esm/drivers/tasks/implement/MemoryTask.d.ts +5 -3
- package/esm/drivers/templates/ITemplate.d.ts +1 -1
- package/esm/drivers/templates/Template.d.ts +1 -1
- package/esm/drivers/templates/TemplateFactory.d.ts +2 -2
- package/esm/drivers/templates/implement/LiquidTemplate.d.ts +1 -1
- package/esm/drivers/util/UtilFactory.d.ts +1 -1
- package/esm/drivers/util/implements/ArrayUtil.d.ts +5 -5
- package/esm/drivers/util/implements/EventUtil.d.ts +6 -6
- package/esm/drivers/util/implements/JsonUtil.d.ts +5 -0
- package/esm/drivers/util/implements/ObjectUtil.d.ts +1 -1
- package/esm/drivers/util/implements/SignUtil.d.ts +1 -1
- package/esm/drivers/util/implements/StringUtil.d.ts +1 -1
- package/esm/drivers/util/implements/TimeUtil.d.ts +1 -1
- package/esm/drivers/utilities/IUtility.d.ts +3 -0
- package/esm/drivers/utilities/Utility.d.ts +3 -0
- package/esm/drivers/utilities/UtilityFactory.d.ts +6 -6
- package/esm/drivers/utilities/implement/EventUtility.d.ts +3 -6
- package/esm/drivers/utilities/implement/SaveUtility.d.ts +48 -3
- package/esm/drivers/videos/VideoFactory.d.ts +2 -2
- package/esm/drivers/voices/VoiceFactory.d.ts +2 -2
- package/esm/factory/Factories.d.ts +99 -0
- package/esm/factory/Factory.d.ts +41 -0
- package/esm/factory/IFactory.d.ts +40 -0
- package/esm/factory/Utils.d.ts +29 -0
- package/esm/factory/index.d.ts +4 -0
- package/esm/factorying/Factory.d.ts +3 -3
- package/esm/factorying/IFactory.d.ts +1 -1
- package/esm/main.d.ts +1 -2
- package/esm/repos/Repo.d.ts +5 -0
- package/esm/repos/RepoFactory.d.ts +20 -1
- package/esm/repos/entities/KeyboardType.d.ts +8 -0
- package/esm/repos/entities/index.d.ts +2 -0
- package/esm/repos/implements/ModuleRepo.d.ts +36 -0
- package/esm/repos/implements/PageRepo.d.ts +30 -0
- package/esm/repos/implements/QueryRepo.d.ts +64 -0
- package/esm/repos/implements/SettingRepo.d.ts +1 -0
- package/esm/repos/index.d.ts +11 -1
- package/esm/svcs/SvcFactory.d.ts +1 -1
- package/esm/svcs/implement/ConfigSvc.d.ts +9 -9
- package/esm/svcs/implement/DriverSvc.d.ts +1 -35
- package/esm/svcs/index.d.ts +6 -15
- package/package.json +9 -9
@@ -0,0 +1,99 @@
|
|
1
|
+
import { BuilderFactory, CdnFactory, EncoderFactory, ExcelFactory, ExplainerFactory, FeatureFactory, HasherFactory, UtilFactory, I18nFactory, HttpFactory, MessengerFactory, ProviderFactory, SignerFactory, SocketFactory, SsoFactory, TaskFactory, TemplateFactory, UtilityFactory } from "../drivers";
|
2
|
+
import { RepoFactory } from "../repos";
|
3
|
+
import { SvcFactory } from "../svcs";
|
4
|
+
/**
|
5
|
+
* 驱动工厂类
|
6
|
+
*/
|
7
|
+
declare class Factories {
|
8
|
+
/**
|
9
|
+
* 工厂缓存
|
10
|
+
*/
|
11
|
+
static created: {
|
12
|
+
[key: string]: any;
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* Builder工厂
|
16
|
+
*/
|
17
|
+
static get builder(): BuilderFactory;
|
18
|
+
/**
|
19
|
+
* CDN工厂
|
20
|
+
*/
|
21
|
+
static get cdn(): CdnFactory;
|
22
|
+
/**
|
23
|
+
* 编码器工厂
|
24
|
+
*/
|
25
|
+
static get encoder(): EncoderFactory;
|
26
|
+
/**
|
27
|
+
* Excel工厂
|
28
|
+
*/
|
29
|
+
static get excel(): ExcelFactory;
|
30
|
+
/**
|
31
|
+
* Explainer工厂
|
32
|
+
*/
|
33
|
+
static get explainer(): ExplainerFactory;
|
34
|
+
/**
|
35
|
+
* 特征工厂
|
36
|
+
*/
|
37
|
+
static get feature(): FeatureFactory;
|
38
|
+
/**
|
39
|
+
* 哈希工厂
|
40
|
+
*/
|
41
|
+
static get hasher(): HasherFactory;
|
42
|
+
/**
|
43
|
+
* Http请求工厂
|
44
|
+
*/
|
45
|
+
static get http(): HttpFactory;
|
46
|
+
/**
|
47
|
+
* 多语言工厂
|
48
|
+
*/
|
49
|
+
static get i18n(): I18nFactory;
|
50
|
+
/**
|
51
|
+
* 消息提示请求工厂
|
52
|
+
*/
|
53
|
+
static get messenger(): MessengerFactory;
|
54
|
+
/**
|
55
|
+
* 提供程序工厂
|
56
|
+
*/
|
57
|
+
static get provider(): ProviderFactory;
|
58
|
+
/**
|
59
|
+
* 签名工厂
|
60
|
+
*/
|
61
|
+
static get signer(): SignerFactory;
|
62
|
+
/**
|
63
|
+
* 通信工厂
|
64
|
+
*/
|
65
|
+
static get socket(): SocketFactory;
|
66
|
+
/**
|
67
|
+
* SSO工厂
|
68
|
+
*/
|
69
|
+
static get sso(): SsoFactory;
|
70
|
+
/**
|
71
|
+
* Task工厂
|
72
|
+
*/
|
73
|
+
static get task(): TaskFactory;
|
74
|
+
/**
|
75
|
+
* 模板工厂
|
76
|
+
*/
|
77
|
+
static get template(): TemplateFactory;
|
78
|
+
/**
|
79
|
+
* 工具工厂
|
80
|
+
*/
|
81
|
+
static get util(): UtilFactory;
|
82
|
+
/**
|
83
|
+
* 工具类工厂
|
84
|
+
*/
|
85
|
+
static get utility(): UtilityFactory;
|
86
|
+
/**
|
87
|
+
* 仓储工厂
|
88
|
+
*/
|
89
|
+
static get repo(): RepoFactory;
|
90
|
+
/**
|
91
|
+
* 服务工厂
|
92
|
+
*/
|
93
|
+
static get svc(): SvcFactory;
|
94
|
+
/**
|
95
|
+
* 创建并缓存工厂实例
|
96
|
+
*/
|
97
|
+
static create<T>(type: any): T;
|
98
|
+
}
|
99
|
+
export default Factories;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import IFactory from "./IFactory";
|
2
|
+
import { IDriver } from "../drivers";
|
3
|
+
import { Ref } from "../plugins";
|
4
|
+
/**
|
5
|
+
* 工厂基类
|
6
|
+
*/
|
7
|
+
declare abstract class Factory<T extends IDriver> implements IFactory<T> {
|
8
|
+
/**
|
9
|
+
* 当前驱动所有类型,用于使用时实例化
|
10
|
+
*/
|
11
|
+
types: any[];
|
12
|
+
/**
|
13
|
+
* 实例缓存集合
|
14
|
+
* 或者使用:Record<string, string>
|
15
|
+
*/
|
16
|
+
private created;
|
17
|
+
open(): void;
|
18
|
+
register(type: any): void;
|
19
|
+
/**
|
20
|
+
* 根据主键创建并开启驱动,并返回加载后的驱动信息
|
21
|
+
*/
|
22
|
+
createByIdAsync: (id: number, driverRef?: Ref<any>) => Promise<T>;
|
23
|
+
createWithCache(type: string, name?: string, open?: (entity: T) => void): T;
|
24
|
+
/**
|
25
|
+
* 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
|
26
|
+
*/
|
27
|
+
createWithCacheAsync(type?: string, open?: (entity: T) => Promise<void>): Promise<T>;
|
28
|
+
/**
|
29
|
+
* 异步创建指定类型驱动
|
30
|
+
*/
|
31
|
+
createAsync(type: string): Promise<T>;
|
32
|
+
/**
|
33
|
+
* 创建指定类型驱动
|
34
|
+
*/
|
35
|
+
create(type: string): T;
|
36
|
+
/**
|
37
|
+
* 加载驱动明细
|
38
|
+
*/
|
39
|
+
loadDriverAsync(id: number): Promise<any>;
|
40
|
+
}
|
41
|
+
export default Factory;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { Ref } from "../plugins";
|
2
|
+
/**
|
3
|
+
* 工厂接口
|
4
|
+
*/
|
5
|
+
interface IFactory<T> {
|
6
|
+
/**
|
7
|
+
* 当前驱动所有类型,用于使用时实例化
|
8
|
+
*/
|
9
|
+
get types(): any[];
|
10
|
+
/**
|
11
|
+
* 开启工厂
|
12
|
+
*/
|
13
|
+
open(): void;
|
14
|
+
/**
|
15
|
+
* 注册新类型
|
16
|
+
*/
|
17
|
+
register(type: any): any;
|
18
|
+
/**
|
19
|
+
* 根据主键创建驱动,并返回加载后的驱动信息
|
20
|
+
*/
|
21
|
+
createByIdAsync(id: number, driverRef?: Ref<any>): Promise<T>;
|
22
|
+
/**
|
23
|
+
* 从缓存中获取指定类型的驱动,不存在则创建,用于Helper类等简单类型
|
24
|
+
* 可以定义名称,实现同一类型,按照不同场景各自进行缓存
|
25
|
+
*/
|
26
|
+
createWithCache(type: string, name?: string, open?: (entity: T) => void): T;
|
27
|
+
/**
|
28
|
+
* 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
|
29
|
+
*/
|
30
|
+
createWithCacheAsync(type: string, open?: (entity: T) => Promise<void>): Promise<T>;
|
31
|
+
/**
|
32
|
+
* 异步创建指定类型驱动
|
33
|
+
*/
|
34
|
+
createAsync(type: string): Promise<T>;
|
35
|
+
/**
|
36
|
+
* 创建指定类型的实例
|
37
|
+
*/
|
38
|
+
create(type: string): T;
|
39
|
+
}
|
40
|
+
export default IFactory;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil, TypeUtil, TimeUtil, TreeUtil, ScrollUtil, JsonUtil, BrowserUtil, UrlUtil, SignUtil } from "../drivers/util";
|
2
|
+
/**
|
3
|
+
* 工具工厂(无状态)
|
4
|
+
*/
|
5
|
+
declare class Utils {
|
6
|
+
static get array(): ArrayUtil;
|
7
|
+
static get browser(): BrowserUtil;
|
8
|
+
static get component(): ComponentUtil;
|
9
|
+
static get dom(): DomUtil;
|
10
|
+
static get dictionary(): DictionaryUtil;
|
11
|
+
static get event(): EventUtil;
|
12
|
+
static get file(): FileUtil;
|
13
|
+
static get html(): HtmlUtil;
|
14
|
+
static get image(): ImageUtil;
|
15
|
+
static get json(): JsonUtil;
|
16
|
+
static get math(): MathUtil;
|
17
|
+
static get mount(): MountUtil;
|
18
|
+
static get object(): ObjectUtil;
|
19
|
+
static get micro(): MicroUtil;
|
20
|
+
static get scroll(): ScrollUtil;
|
21
|
+
static get string(): StringUtil;
|
22
|
+
static get task(): TaskUtil;
|
23
|
+
static get type(): TypeUtil;
|
24
|
+
static get time(): TimeUtil;
|
25
|
+
static get tree(): TreeUtil;
|
26
|
+
static get url(): UrlUtil;
|
27
|
+
static get sign(): SignUtil;
|
28
|
+
}
|
29
|
+
export default Utils;
|
@@ -25,9 +25,9 @@ declare abstract class Factory<T extends IDriver> implements IFactory<T> {
|
|
25
25
|
open(): void;
|
26
26
|
register(entity: T): void;
|
27
27
|
/**
|
28
|
-
*
|
28
|
+
* 根据主键创建并开启驱动,并返回加载后的驱动信息
|
29
29
|
*/
|
30
|
-
|
30
|
+
createByIdAsync: (id: number, driverRef?: Ref<any>) => Promise<T>;
|
31
31
|
createCache(type: string): T;
|
32
32
|
/**
|
33
33
|
* 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
|
@@ -44,6 +44,6 @@ declare abstract class Factory<T extends IDriver> implements IFactory<T> {
|
|
44
44
|
/**
|
45
45
|
* 加载驱动明细
|
46
46
|
*/
|
47
|
-
|
47
|
+
loadDriverAsync(id: number): Promise<any>;
|
48
48
|
}
|
49
49
|
export default Factory;
|
package/esm/main.d.ts
CHANGED
@@ -3,11 +3,10 @@ import "./styles/index.scss";
|
|
3
3
|
export * from "./@types";
|
4
4
|
export * from "./coms";
|
5
5
|
export * from "./drivers";
|
6
|
-
export * from "./
|
6
|
+
export * from "./factory";
|
7
7
|
export * from "./plugins";
|
8
8
|
export * from "./repos";
|
9
9
|
export * from "./svcs";
|
10
|
-
export * from "./drivers/utilities";
|
11
10
|
/**
|
12
11
|
* 初始化前端基础框架
|
13
12
|
*/
|
@@ -1,5 +1,24 @@
|
|
1
|
-
import Factory from "../
|
1
|
+
import Factory from "../factory/Factory";
|
2
2
|
import IRepo from "./IRepo";
|
3
|
+
import ModuleRepo from "./implements/ModuleRepo";
|
4
|
+
import QueryRepo from "./implements/QueryRepo";
|
5
|
+
import SettingRepo from "./implements/SettingRepo";
|
6
|
+
/**
|
7
|
+
* 仓储工厂
|
8
|
+
*/
|
3
9
|
declare class RepoFactory extends Factory<IRepo> {
|
10
|
+
open(): void;
|
11
|
+
/**
|
12
|
+
* 模块仓储
|
13
|
+
*/
|
14
|
+
get module(): ModuleRepo;
|
15
|
+
/**
|
16
|
+
* 查询仓储
|
17
|
+
*/
|
18
|
+
get query(): QueryRepo;
|
19
|
+
/**
|
20
|
+
* 设置仓储
|
21
|
+
*/
|
22
|
+
get setting(): SettingRepo;
|
4
23
|
}
|
5
24
|
export default RepoFactory;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import Repo from "../Repo";
|
2
|
+
import { KeyboardType } from "../entities";
|
3
|
+
/**
|
4
|
+
* 模块仓储
|
5
|
+
*/
|
6
|
+
declare class ModuleRepo extends Repo {
|
7
|
+
type: string;
|
8
|
+
/**
|
9
|
+
* 获取表的默认行数据
|
10
|
+
*/
|
11
|
+
getDefaultRow: (table: any) => any;
|
12
|
+
/**
|
13
|
+
* 更新提示内容
|
14
|
+
*/
|
15
|
+
updateTooltipByFields(table: string, row: any, fields: any[]): void;
|
16
|
+
/**
|
17
|
+
* 展开数据和架构信息
|
18
|
+
*/
|
19
|
+
expandSet: (schema: any[], set: any) => any;
|
20
|
+
/**
|
21
|
+
* 展开架构信息
|
22
|
+
*/
|
23
|
+
expandSchema(schema: any[], set: {
|
24
|
+
[key: string]: any;
|
25
|
+
}): any[];
|
26
|
+
/**
|
27
|
+
* 展开所有数据表的搜索字段信息
|
28
|
+
*/
|
29
|
+
expandSearch(schema: any[]): any[];
|
30
|
+
/**
|
31
|
+
* 触发键盘事件
|
32
|
+
* 统一封装,方便重构
|
33
|
+
*/
|
34
|
+
triggerKeyboardHandler: (ref: any, type: KeyboardType, event: KeyboardEvent) => boolean;
|
35
|
+
}
|
36
|
+
export default ModuleRepo;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import Repo from "../Repo";
|
2
|
+
/**
|
3
|
+
* 页面仓储
|
4
|
+
*/
|
5
|
+
declare class PageRepo extends Repo {
|
6
|
+
type: string;
|
7
|
+
/**
|
8
|
+
* 获取表的默认行数据
|
9
|
+
*/
|
10
|
+
getDefaultRow: (table: any) => any;
|
11
|
+
/**
|
12
|
+
* 更新提示内容
|
13
|
+
*/
|
14
|
+
updateTooltipByFields(table: string, row: any, fields: any[]): void;
|
15
|
+
/**
|
16
|
+
* 展开数据和架构信息
|
17
|
+
*/
|
18
|
+
expandSet: (schema: any[], set: any) => any;
|
19
|
+
/**
|
20
|
+
* 展开架构信息
|
21
|
+
*/
|
22
|
+
expandSchema(schema: any[], set: {
|
23
|
+
[key: string]: any;
|
24
|
+
}): any[];
|
25
|
+
/**
|
26
|
+
* 展开所有数据表的搜索字段信息
|
27
|
+
*/
|
28
|
+
expandSearch(schema: any[]): any[];
|
29
|
+
}
|
30
|
+
export default PageRepo;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { ITask } from "../../drivers";
|
2
|
+
import Repo from "../Repo";
|
3
|
+
/**
|
4
|
+
* 查询仓储
|
5
|
+
*/
|
6
|
+
declare class QueryRepo extends Repo {
|
7
|
+
type: string;
|
8
|
+
/**
|
9
|
+
* 加载完毕状态记录
|
10
|
+
*/
|
11
|
+
loaded: {
|
12
|
+
apps: boolean;
|
13
|
+
envs: boolean;
|
14
|
+
};
|
15
|
+
/**
|
16
|
+
* 是否加载中状态,用于并发场景 防止重复拉取接口
|
17
|
+
*/
|
18
|
+
loading: {
|
19
|
+
apps: boolean;
|
20
|
+
envs: boolean;
|
21
|
+
};
|
22
|
+
/**
|
23
|
+
* 代码语言集合
|
24
|
+
*/
|
25
|
+
codeLanguages: any[];
|
26
|
+
/**
|
27
|
+
* 驱动程序语言集合
|
28
|
+
*/
|
29
|
+
providerLanguages: any[];
|
30
|
+
/**
|
31
|
+
* 应用集合,存储到Store中,防止每一个Driver实例重复加载
|
32
|
+
*/
|
33
|
+
apps: any[];
|
34
|
+
/**
|
35
|
+
* 环境集合,存储到Store中,防止每一个Driver实例重复加载
|
36
|
+
*/
|
37
|
+
envs: any[];
|
38
|
+
/**
|
39
|
+
* 并发任务管理器
|
40
|
+
*/
|
41
|
+
task: ITask;
|
42
|
+
open: () => void;
|
43
|
+
/**
|
44
|
+
* 加载应用选项
|
45
|
+
*/
|
46
|
+
loadAppsAsync(reload?: boolean): Promise<void>;
|
47
|
+
/**
|
48
|
+
* 加载环境选项
|
49
|
+
*/
|
50
|
+
loadEnvsAsync(reload?: boolean): Promise<void>;
|
51
|
+
/**
|
52
|
+
* 加载驱动选项
|
53
|
+
*/
|
54
|
+
loadDriversAsync(app: string, env: string, kind: string): Promise<any[]>;
|
55
|
+
/**
|
56
|
+
* 查询代码语言和文本语言映射关系
|
57
|
+
*/
|
58
|
+
loadCodeLanguageAsync(reload?: boolean): Promise<any[]>;
|
59
|
+
/**
|
60
|
+
* 查询驱动程序和文本语言映射关系
|
61
|
+
*/
|
62
|
+
loadDriverLanguageAsync(reload?: boolean): Promise<any[]>;
|
63
|
+
}
|
64
|
+
export default QueryRepo;
|
package/esm/repos/index.d.ts
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
import RepoFactory from "./RepoFactory";
|
2
|
+
import ModuleRepo from "./implements/ModuleRepo";
|
3
|
+
import QueryRepo from "./implements/QueryRepo";
|
1
4
|
import SettingRepo from "./implements/SettingRepo";
|
5
|
+
export * from "./entities";
|
6
|
+
declare let moduleRepo: ModuleRepo;
|
7
|
+
declare let queryRepo: QueryRepo;
|
2
8
|
declare let settingRepo: SettingRepo;
|
3
|
-
|
9
|
+
/**
|
10
|
+
* 初始化全局仓储对象
|
11
|
+
*/
|
12
|
+
declare let initRepoAsync: () => Promise<void>;
|
13
|
+
export { initRepoAsync, moduleRepo, queryRepo, settingRepo, RepoFactory, };
|
package/esm/svcs/SvcFactory.d.ts
CHANGED
@@ -24,9 +24,9 @@ declare class ConfigSvc extends Svc {
|
|
24
24
|
*/
|
25
25
|
schemas: any[];
|
26
26
|
/**
|
27
|
-
*
|
27
|
+
* 全局默认智能提示字典,防止重复注册
|
28
28
|
*/
|
29
|
-
|
29
|
+
intelli: {};
|
30
30
|
};
|
31
31
|
/**
|
32
32
|
* 初始化绑定基础配置信息
|
@@ -35,7 +35,7 @@ declare class ConfigSvc extends Svc {
|
|
35
35
|
/**
|
36
36
|
* 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
|
37
37
|
*/
|
38
|
-
|
38
|
+
bindAsync: (configs: UserConfig[]) => Promise<void>;
|
39
39
|
/**
|
40
40
|
* 尝试添加架构
|
41
41
|
*/
|
@@ -43,7 +43,7 @@ declare class ConfigSvc extends Svc {
|
|
43
43
|
/**
|
44
44
|
* 获取本地配置
|
45
45
|
*/
|
46
|
-
|
46
|
+
getAsync(kind: string, type: string): Promise<any>;
|
47
47
|
/**
|
48
48
|
* 设置背景
|
49
49
|
*/
|
@@ -51,22 +51,22 @@ declare class ConfigSvc extends Svc {
|
|
51
51
|
/**
|
52
52
|
* 保存用户应用配置
|
53
53
|
*/
|
54
|
-
|
54
|
+
saveAppAsync(form: any): Promise<void>;
|
55
55
|
/**
|
56
56
|
* 加载用户配置
|
57
57
|
*/
|
58
|
-
|
58
|
+
loadAsync(kind: string, type: string, cached?: boolean): Promise<any>;
|
59
59
|
/**
|
60
60
|
* 全量保存用户配置
|
61
61
|
*/
|
62
|
-
|
62
|
+
saveAsync(kind: string, type: string, data: any, cached?: boolean): Promise<boolean>;
|
63
63
|
/**
|
64
64
|
* 部分保存用户配置
|
65
65
|
*/
|
66
|
-
|
66
|
+
patchAsync(kind: string, type: string, body: any): Promise<boolean>;
|
67
67
|
/**
|
68
68
|
* 获取当前语言
|
69
69
|
*/
|
70
|
-
getLanguage():
|
70
|
+
getLanguage(): string;
|
71
71
|
}
|
72
72
|
export default ConfigSvc;
|
@@ -4,43 +4,9 @@ import Svc from "../Svc";
|
|
4
4
|
*/
|
5
5
|
declare class DriverSvc extends Svc {
|
6
6
|
type: string;
|
7
|
-
/**
|
8
|
-
* 加载完毕状态记录
|
9
|
-
*/
|
10
|
-
loaded: {
|
11
|
-
apps: boolean;
|
12
|
-
envs: boolean;
|
13
|
-
};
|
14
|
-
/**
|
15
|
-
* 是否加载中状态,用于并发场景 防止重复拉取接口
|
16
|
-
*/
|
17
|
-
loading: {
|
18
|
-
apps: boolean;
|
19
|
-
envs: boolean;
|
20
|
-
};
|
21
|
-
/**
|
22
|
-
* 应用集合,存储到Store中,防止每一个Driver实例重复加载
|
23
|
-
*/
|
24
|
-
apps: any[];
|
25
|
-
/**
|
26
|
-
* 环境集合,存储到Store中,防止每一个Driver实例重复加载
|
27
|
-
*/
|
28
|
-
envs: any[];
|
29
|
-
/**
|
30
|
-
* 加载应用选项
|
31
|
-
*/
|
32
|
-
loadApps(reload?: boolean): Promise<void>;
|
33
|
-
/**
|
34
|
-
* 加载环境选项
|
35
|
-
*/
|
36
|
-
loadEnvs(reload?: boolean): Promise<void>;
|
37
|
-
/**
|
38
|
-
* 加载驱动选项
|
39
|
-
*/
|
40
|
-
loadDrivers(app: string, env: string, kind: string): Promise<any[]>;
|
41
7
|
/**
|
42
8
|
* 加载数据库架构
|
43
9
|
*/
|
44
|
-
|
10
|
+
loadSchemaAsync(id: number, schema: string): Promise<any[]>;
|
45
11
|
}
|
46
12
|
export default DriverSvc;
|
package/esm/svcs/index.d.ts
CHANGED
@@ -3,6 +3,10 @@ import EnvSvc from "./implement/EnvSvc";
|
|
3
3
|
import LogSvc from "./implement/LogSvc";
|
4
4
|
import UserSvc from "./implement/UserSvc";
|
5
5
|
import SvcFactory from "./SvcFactory";
|
6
|
+
/**
|
7
|
+
* 初始化服务
|
8
|
+
*/
|
9
|
+
declare let initSvcAsync: () => Promise<void>;
|
6
10
|
declare let settingSvc: {
|
7
11
|
loaded: boolean;
|
8
12
|
particles: boolean;
|
@@ -39,23 +43,10 @@ declare let configSvc: ConfigSvc;
|
|
39
43
|
*/
|
40
44
|
declare let driverSvc: {
|
41
45
|
type: string;
|
42
|
-
|
43
|
-
apps: boolean;
|
44
|
-
envs: boolean;
|
45
|
-
};
|
46
|
-
loading: {
|
47
|
-
apps: boolean;
|
48
|
-
envs: boolean;
|
49
|
-
};
|
50
|
-
apps: any[];
|
51
|
-
envs: any[];
|
52
|
-
loadApps: (reload?: boolean) => Promise<void>;
|
53
|
-
loadEnvs: (reload?: boolean) => Promise<void>;
|
54
|
-
loadDrivers: (app: string, env: string, kind: string) => Promise<any[]>;
|
55
|
-
loadSchema: (id: number, schema: string) => Promise<any[]>;
|
46
|
+
loadSchemaAsync: (id: number, schema: string) => Promise<any[]>;
|
56
47
|
};
|
57
48
|
declare let envSvc: EnvSvc;
|
58
49
|
declare let logSvc: LogSvc;
|
59
50
|
declare let userSvc: UserSvc;
|
60
51
|
export * from "./implement";
|
61
|
-
export { configSvc, driverSvc, envSvc, logSvc, settingSvc, userSvc, SvcFactory };
|
52
|
+
export { initSvcAsync, configSvc, driverSvc, envSvc, logSvc, settingSvc, userSvc, SvcFactory };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "halo-fe",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.27",
|
4
4
|
"description": "Halo front end sdk",
|
5
5
|
"scripts": {
|
6
6
|
"halo-fe:tsc": "vue-tsc",
|
@@ -29,26 +29,26 @@
|
|
29
29
|
"registry": "https://registry.npmjs.org"
|
30
30
|
},
|
31
31
|
"peerDependencies": {
|
32
|
-
"vue": "3.5.3"
|
33
32
|
},
|
34
33
|
"dependencies": {
|
35
34
|
"clone": "2.1.2",
|
36
35
|
"file-saver": "2.0.5",
|
37
|
-
"liquidjs": "10.
|
36
|
+
"liquidjs": "10.17.0",
|
38
37
|
"moment": "2.30.1",
|
39
38
|
"underscore": "1.13.7",
|
40
|
-
"underscore.string": "3.3.6"
|
39
|
+
"underscore.string": "3.3.6",
|
40
|
+
"vue": "3.5.12"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@types/node": "22.5
|
44
|
-
"@vitejs/plugin-vue": "5.1.
|
43
|
+
"@types/node": "22.7.5",
|
44
|
+
"@vitejs/plugin-vue": "5.1.4",
|
45
45
|
"@vitejs/plugin-vue-jsx": "4.0.1",
|
46
46
|
"crypto-js": "4.2.0",
|
47
47
|
"echarts": "5.5.1",
|
48
|
-
"monaco-editor": "0.
|
48
|
+
"monaco-editor": "0.52.0",
|
49
49
|
"quill": "2.0.2",
|
50
|
-
"sass": "1.
|
51
|
-
"vite": "5.4.
|
50
|
+
"sass": "1.79.5",
|
51
|
+
"vite": "5.4.9",
|
52
52
|
"vue-tsc": "2.1.6",
|
53
53
|
"xlsx-js-style": "1.2.0"
|
54
54
|
}
|