halo-fe 1.0.24 → 1.0.26
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 +4888 -4397
- package/dist/style.css +1 -1
- package/esm/@types/CreateFeOptions.d.ts +4 -0
- 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 +31 -0
- package/esm/coms/@types/TabProps.d.ts +11 -0
- package/esm/coms/@types/TableEmit.d.ts +10 -0
- package/esm/coms/@types/TableProps.d.ts +34 -0
- package/esm/coms/@types/index.d.ts +7 -1
- package/esm/coms/Empty.vue.d.ts +12 -10
- package/esm/coms/Fill.vue.d.ts +8 -10
- package/esm/coms/Scroller.vue.d.ts +11 -13
- package/esm/coms/Timer.vue.d.ts +7 -9
- package/esm/coms/cards/Index.vue.d.ts +16 -0
- package/esm/coms/cards/index.d.ts +2 -0
- package/esm/coms/conditions/Condition.vue.d.ts +1 -1
- package/esm/coms/conditions/Index.vue.d.ts +1 -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 +16 -28
- package/esm/coms/controls/Compare.vue.d.ts +16 -8
- package/esm/coms/controls/Input.vue.d.ts +2 -0
- package/esm/coms/controls/Option.vue.d.ts +1 -1
- package/esm/coms/controls/RichText.vue.d.ts +2 -4
- package/esm/coms/controls/Select.vue.d.ts +1 -1
- package/esm/coms/controls/index.d.ts +2 -1
- package/esm/coms/index.d.ts +1 -0
- package/esm/coms/layouts/Col.vue.d.ts +6 -8
- package/esm/coms/layouts/Container.vue.d.ts +12 -11
- package/esm/coms/layouts/Desc.vue.d.ts +2 -0
- package/esm/coms/layouts/Row.vue.d.ts +7 -8
- package/esm/coms/pagers/Index.vue.d.ts +9 -0
- package/esm/coms/pagers/index.d.ts +2 -0
- package/esm/coms/progresses/Circle.vue.d.ts +2 -0
- package/esm/coms/progresses/Index.vue.d.ts +9 -0
- package/esm/coms/progresses/SocketProgress.vue.d.ts +7 -9
- package/esm/coms/progresses/Spinner.vue.d.ts +20 -0
- package/esm/coms/progresses/index.d.ts +3 -2
- package/esm/coms/tables/Index.vue.d.ts +33 -0
- package/esm/coms/tabs/Tab.vue.d.ts +2 -2
- package/esm/coms/tabs/TabPane.vue.d.ts +1 -1
- 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 +7 -9
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/ICdn.d.ts +2 -11
- package/esm/drivers/encoders/Encoder.d.ts +1 -1
- package/esm/drivers/encoders/EncoderFactory.d.ts +3 -2
- package/esm/drivers/encoders/IEncoder.d.ts +2 -5
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +1 -1
- package/esm/drivers/encoders/implement/UrlEncoder.d.ts +7 -0
- 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 +22 -7
- package/esm/drivers/https/HttpFactory.d.ts +2 -7
- package/esm/drivers/https/IHttp.d.ts +16 -12
- package/esm/drivers/https/entities/HttpModel.d.ts +12 -0
- 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/HaloHttp.d.ts +2 -10
- package/esm/drivers/https/implements/MkHttp.d.ts +2 -3
- package/esm/drivers/i18ns/I18n.d.ts +1 -1
- package/esm/drivers/i18ns/I18nFactory.d.ts +1 -1
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
- package/esm/drivers/index.d.ts +52 -1
- 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 +39 -0
- package/esm/drivers/sockets/Socket.d.ts +17 -0
- package/esm/drivers/sockets/SocketFactory.d.ts +13 -0
- package/esm/drivers/sockets/entities/SocketProgress.d.ts +34 -0
- package/esm/drivers/sockets/entities/SocketResponse.d.ts +26 -0
- package/esm/drivers/sockets/entities/index.d.ts +3 -0
- package/esm/drivers/sockets/implement/DefaultSocket.d.ts +37 -0
- package/esm/drivers/sockets/index.d.ts +4 -0
- 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 +10 -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/TemplateFactory.d.ts +2 -2
- package/esm/drivers/util/@types/JsonConfig.d.ts +10 -0
- package/esm/drivers/util/@types/TreeNodeProp.d.ts +9 -0
- package/esm/drivers/util/@types/index.d.ts +3 -0
- package/esm/drivers/util/IUtil.d.ts +8 -0
- package/esm/drivers/util/Util.d.ts +8 -0
- package/esm/drivers/util/UtilFactory.d.ts +32 -0
- package/esm/drivers/util/implements/ArrayUtil.d.ts +123 -0
- package/esm/drivers/util/implements/BrowserUtil.d.ts +12 -0
- package/esm/drivers/util/implements/ComponentUtil.d.ts +20 -0
- package/esm/drivers/util/implements/DictionaryUtil.d.ts +40 -0
- package/esm/drivers/util/implements/DomUtil.d.ts +118 -0
- package/esm/drivers/util/implements/EventUtil.d.ts +32 -0
- package/esm/drivers/util/implements/FileUtil.d.ts +24 -0
- package/esm/drivers/util/implements/HtmlUtil.d.ts +16 -0
- package/esm/drivers/util/implements/ImageUtil.d.ts +12 -0
- package/esm/drivers/util/implements/JsonUtil.d.ts +58 -0
- package/esm/drivers/util/implements/MathUtil.d.ts +52 -0
- package/esm/drivers/util/implements/MicroUtil.d.ts +12 -0
- package/esm/drivers/util/implements/MountUtil.d.ts +16 -0
- package/esm/drivers/util/implements/ObjectUtil.d.ts +44 -0
- package/esm/drivers/util/implements/ScrollUtil.d.ts +16 -0
- package/esm/drivers/util/implements/SignUtil.d.ts +16 -0
- package/esm/drivers/util/implements/StringUtil.d.ts +104 -0
- package/esm/drivers/util/implements/TaskUtil.d.ts +28 -0
- package/esm/drivers/util/implements/TimeUtil.d.ts +72 -0
- package/esm/drivers/util/implements/TreeUtil.d.ts +56 -0
- package/esm/drivers/util/implements/TypeUtil.d.ts +28 -0
- package/esm/drivers/util/implements/UrlUtil.d.ts +90 -0
- package/esm/drivers/util/index.d.ts +24 -0
- 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/Factories.d.ts +9 -5
- package/esm/factorying/Factory.d.ts +7 -10
- package/esm/factorying/IFactory.d.ts +7 -3
- package/esm/factorying/Utils.d.ts +24 -9
- package/esm/factorying/index.d.ts +7 -2
- 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/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 +10 -1
- package/esm/svcs/SvcFactory.d.ts +1 -1
- package/esm/svcs/implement/ConfigSvc.d.ts +8 -8
- package/esm/svcs/implement/DriverSvc.d.ts +1 -35
- package/esm/svcs/index.d.ts +6 -17
- package/package.json +10 -10
@@ -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,19 +51,19 @@ 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
|
*/
|
@@ -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
@@ -1,9 +1,12 @@
|
|
1
1
|
import ConfigSvc from "./implement/ConfigSvc";
|
2
2
|
import EnvSvc from "./implement/EnvSvc";
|
3
3
|
import LogSvc from "./implement/LogSvc";
|
4
|
-
import SocketSvc from "./implement/SocketSvc";
|
5
4
|
import UserSvc from "./implement/UserSvc";
|
6
5
|
import SvcFactory from "./SvcFactory";
|
6
|
+
/**
|
7
|
+
* 初始化服务
|
8
|
+
*/
|
9
|
+
declare let initSvcAsync: () => Promise<void>;
|
7
10
|
declare let settingSvc: {
|
8
11
|
loaded: boolean;
|
9
12
|
particles: boolean;
|
@@ -40,24 +43,10 @@ declare let configSvc: ConfigSvc;
|
|
40
43
|
*/
|
41
44
|
declare let driverSvc: {
|
42
45
|
type: string;
|
43
|
-
|
44
|
-
apps: boolean;
|
45
|
-
envs: boolean;
|
46
|
-
};
|
47
|
-
loading: {
|
48
|
-
apps: boolean;
|
49
|
-
envs: boolean;
|
50
|
-
};
|
51
|
-
apps: any[];
|
52
|
-
envs: any[];
|
53
|
-
loadApps: (reload?: boolean) => Promise<void>;
|
54
|
-
loadEnvs: (reload?: boolean) => Promise<void>;
|
55
|
-
loadDrivers: (app: string, env: string, kind: string) => Promise<any[]>;
|
56
|
-
loadSchema: (id: number, schema: string) => Promise<any[]>;
|
46
|
+
loadSchemaAsync: (id: number, schema: string) => Promise<any[]>;
|
57
47
|
};
|
58
48
|
declare let envSvc: EnvSvc;
|
59
49
|
declare let logSvc: LogSvc;
|
60
|
-
declare let socketSvc: SocketSvc;
|
61
50
|
declare let userSvc: UserSvc;
|
62
51
|
export * from "./implement";
|
63
|
-
export { configSvc, driverSvc, envSvc, logSvc, settingSvc,
|
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.26",
|
4
4
|
"description": "Halo front end sdk",
|
5
5
|
"scripts": {
|
6
6
|
"halo-fe:tsc": "vue-tsc",
|
@@ -29,27 +29,27 @@
|
|
29
29
|
"registry": "https://registry.npmjs.org"
|
30
30
|
},
|
31
31
|
"peerDependencies": {
|
32
|
-
"vue": "3.5.0"
|
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.9"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@types/node": "22.
|
44
|
-
"@vitejs/plugin-vue": "5.1.
|
43
|
+
"@types/node": "22.7.3",
|
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.
|
52
|
-
"vue-tsc": "2.1.
|
50
|
+
"sass": "1.79.3",
|
51
|
+
"vite": "5.4.8",
|
52
|
+
"vue-tsc": "2.1.6",
|
53
53
|
"xlsx-js-style": "1.2.0"
|
54
54
|
}
|
55
55
|
}
|