halo-fe 1.0.26 → 1.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +1314 -1082
- package/dist/style.css +1 -1
- package/esm/coms/@types/SocketProgressProps.d.ts +8 -0
- package/esm/coms/controls/@types/CodeProps.d.ts +1 -1
- package/esm/coms/controls/Code.vue.d.ts +1 -1
- package/esm/coms/index.d.ts +1 -0
- package/esm/coms/layouts/Row.vue.d.ts +6 -2
- package/esm/coms/texts/@types/DanceProps.d.ts +14 -0
- package/esm/coms/texts/@types/index.d.ts +2 -0
- package/esm/coms/texts/Dance.vue.d.ts +5 -0
- package/esm/coms/texts/index.d.ts +2 -0
- package/esm/drivers/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/Http.d.ts +1 -1
- package/esm/drivers/https/HttpFactory.d.ts +1 -0
- package/esm/drivers/https/implements/FeiShuHttp.d.ts +8 -0
- package/esm/drivers/i18ns/I18n.d.ts +1 -1
- package/esm/drivers/i18ns/I18nFactory.d.ts +1 -0
- package/esm/drivers/i18ns/II18n.d.ts +1 -1
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
- package/esm/drivers/messengers/MessengerFactory.d.ts +1 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +1 -0
- package/esm/drivers/signers/SignerFactory.d.ts +1 -0
- package/esm/drivers/sockets/SocketFactory.d.ts +1 -0
- package/esm/drivers/sockets/entities/SocketResponse.d.ts +18 -2
- package/esm/drivers/sockets/entities/index.d.ts +1 -1
- package/esm/drivers/ssos/SsoFactory.d.ts +1 -0
- package/esm/drivers/tasks/TaskFactory.d.ts +1 -0
- 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 +1 -0
- package/esm/drivers/templates/implement/LiquidTemplate.d.ts +1 -1
- package/esm/drivers/util/UtilFactory.d.ts +2 -2
- package/esm/drivers/util/implements/ObjectUtil.d.ts +21 -1
- package/esm/drivers/util/implements/TimeUtil.d.ts +1 -1
- 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/esm/repos/RepoFactory.d.ts +3 -3
- package/esm/repos/entities/KeyboardType.d.ts +8 -0
- package/esm/repos/entities/index.d.ts +2 -0
- package/esm/repos/implements/ModuleRepo.d.ts +36 -0
- package/esm/repos/index.d.ts +4 -3
- package/package.json +5 -5
@@ -4,21 +4,30 @@ import { Ref } from "../plugins";
|
|
4
4
|
*/
|
5
5
|
interface IFactory<T> {
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* 工厂类型,可用于异常提示
|
8
8
|
*/
|
9
|
-
|
9
|
+
type: string;
|
10
|
+
/**
|
11
|
+
* 当前驱动所有类型,可根据key快速实例化
|
12
|
+
*/
|
13
|
+
get types(): {
|
14
|
+
[name: string]: any;
|
15
|
+
};
|
10
16
|
/**
|
11
17
|
* 开启工厂
|
12
18
|
*/
|
13
19
|
open(): void;
|
14
20
|
/**
|
15
|
-
*
|
21
|
+
* 使用key和类型 集合,注册多个新类型,必须有key,因为前端编译后,会丢失类名
|
16
22
|
*/
|
17
|
-
register(
|
23
|
+
register(types: {
|
24
|
+
[name: string]: any;
|
25
|
+
}): void;
|
18
26
|
/**
|
19
27
|
* 根据主键创建驱动,并返回加载后的驱动信息
|
20
28
|
*/
|
21
29
|
createByIdAsync(id: number, driverRef?: Ref<any>): Promise<T>;
|
30
|
+
createWithCache<S extends T>(type: string, name?: string, open?: (entity: T) => void): S;
|
22
31
|
/**
|
23
32
|
* 从缓存中获取指定类型的驱动,不存在则创建,用于Helper类等简单类型
|
24
33
|
* 可以定义名称,实现同一类型,按照不同场景各自进行缓存
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import Factory from "../factory/Factory";
|
2
2
|
import IRepo from "./IRepo";
|
3
|
-
import
|
3
|
+
import ModuleRepo from "./implements/ModuleRepo";
|
4
4
|
import QueryRepo from "./implements/QueryRepo";
|
5
5
|
import SettingRepo from "./implements/SettingRepo";
|
6
6
|
/**
|
@@ -9,9 +9,9 @@ import SettingRepo from "./implements/SettingRepo";
|
|
9
9
|
declare class RepoFactory extends Factory<IRepo> {
|
10
10
|
open(): void;
|
11
11
|
/**
|
12
|
-
*
|
12
|
+
* 模块仓储
|
13
13
|
*/
|
14
|
-
get
|
14
|
+
get module(): ModuleRepo;
|
15
15
|
/**
|
16
16
|
* 查询仓储
|
17
17
|
*/
|
@@ -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;
|
package/esm/repos/index.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
import RepoFactory from "./RepoFactory";
|
2
|
-
import
|
2
|
+
import ModuleRepo from "./implements/ModuleRepo";
|
3
3
|
import QueryRepo from "./implements/QueryRepo";
|
4
4
|
import SettingRepo from "./implements/SettingRepo";
|
5
|
-
|
5
|
+
export * from "./entities";
|
6
|
+
declare let moduleRepo: ModuleRepo;
|
6
7
|
declare let queryRepo: QueryRepo;
|
7
8
|
declare let settingRepo: SettingRepo;
|
8
9
|
/**
|
9
10
|
* 初始化全局仓储对象
|
10
11
|
*/
|
11
12
|
declare let initRepoAsync: () => Promise<void>;
|
12
|
-
export { initRepoAsync,
|
13
|
+
export { initRepoAsync, moduleRepo, queryRepo, settingRepo, RepoFactory, };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "halo-fe",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.28",
|
4
4
|
"description": "Halo front end sdk",
|
5
5
|
"scripts": {
|
6
6
|
"halo-fe:tsc": "vue-tsc",
|
@@ -37,18 +37,18 @@
|
|
37
37
|
"moment": "2.30.1",
|
38
38
|
"underscore": "1.13.7",
|
39
39
|
"underscore.string": "3.3.6",
|
40
|
-
"vue": "3.5.
|
40
|
+
"vue": "3.5.12"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@types/node": "22.7.
|
43
|
+
"@types/node": "22.7.5",
|
44
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
48
|
"monaco-editor": "0.52.0",
|
49
49
|
"quill": "2.0.2",
|
50
|
-
"sass": "1.79.
|
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
|
}
|