halo-fe 1.0.18 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +984 -980
- package/esm/@types/CreateFeOptions.d.ts +25 -0
- package/esm/@types/index.d.ts +2 -0
- package/esm/coms/@types/ScrollerProps.d.ts +15 -0
- package/esm/coms/@types/index.d.ts +2 -0
- package/esm/coms/Scroller.vue.d.ts +1 -1
- package/esm/coms/conditions/@types/ConditionGroupProps.d.ts +11 -0
- package/esm/coms/conditions/@types/ConditionProps.d.ts +18 -0
- package/esm/coms/conditions/@types/index.d.ts +3 -0
- package/esm/coms/conditions/Condition.vue.d.ts +1 -1
- package/esm/coms/conditions/Index.vue.d.ts +1 -1
- package/esm/coms/{types → controls/@types}/CodeEmit.d.ts +1 -1
- package/esm/coms/controls/@types/CodeProps.d.ts +28 -0
- package/esm/coms/controls/@types/Range.d.ts +26 -0
- package/esm/coms/controls/@types/index.d.ts +6 -0
- package/esm/coms/controls/Code.vue.d.ts +1 -1
- package/esm/coms/controls/RichText.vue.d.ts +1 -1
- package/esm/coms/controls/index.d.ts +1 -1
- package/esm/coms/index.d.ts +1 -1
- package/esm/coms/layouts/@types/index.d.ts +2 -0
- package/esm/coms/layouts/Row.vue.d.ts +1 -1
- package/esm/coms/layouts/index.d.ts +1 -1
- package/esm/coms/progresses/@types/SocketProgressProps.d.ts +23 -0
- package/esm/coms/progresses/@types/index.d.ts +2 -0
- package/esm/coms/progresses/SocketProgress.vue.d.ts +1 -1
- package/esm/coms/tabs/@types/TabProps.d.ts +7 -0
- package/esm/coms/tabs/@types/index.d.ts +2 -0
- package/esm/coms/tabs/Tab.vue.d.ts +1 -1
- package/esm/drivers/@types/IDispose.d.ts +10 -0
- package/esm/drivers/@types/IOpen.d.ts +10 -0
- package/esm/drivers/@types/index.d.ts +4 -0
- package/esm/drivers/bridges/IBridge.d.ts +1 -1
- package/esm/drivers/builders/IBuilder.d.ts +1 -1
- package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
- package/esm/drivers/builders/types/index.d.ts +2 -0
- package/esm/drivers/cdns/ICdn.d.ts +1 -1
- package/esm/drivers/excels/IExcel.d.ts +1 -1
- package/esm/drivers/explainers/IExplainer.d.ts +1 -1
- package/esm/drivers/features/IFeature.d.ts +1 -1
- package/esm/drivers/https/IHttp.d.ts +1 -1
- package/esm/drivers/i18ns/I18n.d.ts +38 -0
- package/esm/drivers/i18ns/I18nFactory.d.ts +13 -0
- package/esm/drivers/i18ns/II18n.d.ts +72 -0
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +13 -0
- package/esm/drivers/i18ns/index.d.ts +3 -0
- package/esm/drivers/index.d.ts +2 -1
- package/esm/drivers/messengers/IMessenger.d.ts +1 -1
- package/esm/drivers/providers/IProvider.d.ts +1 -1
- package/esm/drivers/ssos/ISso.d.ts +1 -1
- package/esm/drivers/tasks/ITask.d.ts +1 -1
- package/esm/drivers/templates/ITemplate.d.ts +1 -1
- package/esm/drivers/videos/IVideo.d.ts +1 -1
- package/esm/drivers/voices/IVoice.d.ts +1 -1
- package/esm/factorying/Factories.d.ts +15 -11
- package/esm/factorying/Factory.d.ts +1 -1
- package/esm/factorying/index.d.ts +17 -5
- package/esm/helpers/@types/JsonConfig.d.ts +10 -0
- package/esm/helpers/@types/TreeNodeProp.d.ts +9 -0
- package/esm/helpers/@types/index.d.ts +3 -0
- package/esm/helpers/JsonHelper.d.ts +6 -2
- package/esm/main.d.ts +2 -2
- package/esm/repos/IRepo.d.ts +4 -0
- package/esm/repos/RepoFactory.d.ts +5 -0
- package/esm/repos/implements/SettingRepo.d.ts +15 -0
- package/esm/repos/index.d.ts +1 -1
- package/esm/svcs/@types/Dictionary.d.ts +4 -0
- package/esm/svcs/@types/index.d.ts +2 -0
- package/esm/svcs/implement/ConfigSvc.d.ts +1 -1
- package/esm/svcs/implement/I18nSvc.d.ts +1 -1
- package/esm/svcs/implement/LogSvc.d.ts +3 -0
- package/esm/svcs/implement/index.d.ts +1 -2
- package/esm/svcs/index.d.ts +2 -8
- package/esm/types/CreateFeOptions.d.ts +6 -5
- package/esm/utilities/@types/DragEvent.d.ts +11 -0
- package/esm/utilities/@types/DragOptions.d.ts +28 -0
- package/esm/utilities/@types/Position.d.ts +15 -0
- package/esm/utilities/@types/Rect.d.ts +10 -0
- package/esm/utilities/@types/index.d.ts +5 -0
- package/esm/utilities/EventUtility.d.ts +1 -1
- package/esm/utilities/SaveUtility.d.ts +15 -0
- package/esm/utilities/index.d.ts +3 -2
- package/package.json +2 -3
- package/dist/assets/@intlify-BISCQg1h.js +0 -2189
- package/dist/assets/@vue-aVYGocXp.js +0 -93
- package/dist/assets/vue-i18n-CLr3brPz.js +0 -1670
- package/esm/coms/Code.vue.d.ts +0 -41
- package/esm/coms/Col.vue.d.ts +0 -11
- package/esm/coms/Compare.vue.d.ts +0 -40
- package/esm/coms/Container.vue.d.ts +0 -23
- package/esm/coms/RichText.vue.d.ts +0 -24
- package/esm/coms/Row.vue.d.ts +0 -21
- package/esm/coms/types/CodeProps.d.ts +0 -18
- package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -15
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -21
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -12
- package/esm/drivers/factories/DriverFactory.d.ts +0 -64
- package/esm/drivers/factories/Factory.d.ts +0 -18
- package/esm/drivers/factories/IFactory.d.ts +0 -18
- package/esm/drivers/factories/index.d.ts +0 -42
- package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
- package/esm/helpers/ScriptHelper.d.ts +0 -19
- package/esm/helpers/array-helper.d.ts +0 -97
- package/esm/helpers/component-helper.d.ts +0 -18
- package/esm/helpers/cookie-helper.d.ts +0 -6
- package/esm/helpers/dictionary-helper.d.ts +0 -18
- package/esm/helpers/dom-helper.d.ts +0 -86
- package/esm/helpers/event-helper.d.ts +0 -30
- package/esm/helpers/file-helper.d.ts +0 -22
- package/esm/helpers/html-helper.d.ts +0 -10
- package/esm/helpers/i18n-helper.d.ts +0 -14
- package/esm/helpers/image-helper.d.ts +0 -10
- package/esm/helpers/json-helper.d.ts +0 -39
- package/esm/helpers/math-helper.d.ts +0 -46
- package/esm/helpers/micro-helper.d.ts +0 -10
- package/esm/helpers/mount-helper.d.ts +0 -14
- package/esm/helpers/object-helper.d.ts +0 -38
- package/esm/helpers/script-helper.d.ts +0 -31
- package/esm/helpers/scroll-helper.d.ts +0 -14
- package/esm/helpers/sign-helper.d.ts +0 -14
- package/esm/helpers/storage-helper.d.ts +0 -34
- package/esm/helpers/string-helper.d.ts +0 -94
- package/esm/helpers/task-helper.d.ts +0 -26
- package/esm/helpers/time-helper.d.ts +0 -66
- package/esm/helpers/tree-helper.d.ts +0 -54
- package/esm/helpers/type-helper.d.ts +0 -26
- package/esm/helpers/url-helper.d.ts +0 -96
- package/esm/plugins/HtmlTransform.d.ts +0 -6
- package/esm/plugins/types/IMessager.d.ts +0 -34
- package/esm/plugins/types/index.d.ts +0 -7
- package/esm/services/ConfigService.d.ts +0 -66
- package/esm/services/DriverService.d.ts +0 -36
- package/esm/services/EnvService.d.ts +0 -14
- package/esm/services/LogService.d.ts +0 -19
- package/esm/services/SettingService.d.ts +0 -42
- package/esm/services/SocketService.d.ts +0 -23
- package/esm/services/UserService.d.ts +0 -47
- package/esm/services/index.d.ts +0 -15
- package/esm/services/types/IMessage.d.ts +0 -14
- package/esm/services/types/IMessager.d.ts +0 -34
- package/esm/services/types/index.d.ts +0 -2
- package/esm/servs/ConfigServ.d.ts +0 -66
- package/esm/servs/DriverServ.d.ts +0 -36
- package/esm/servs/EnvServ.d.ts +0 -14
- package/esm/servs/IServ.d.ts +0 -6
- package/esm/servs/LogServ.d.ts +0 -19
- package/esm/servs/Serv.d.ts +0 -4
- package/esm/servs/ServFactory.d.ts +0 -11
- package/esm/servs/SettingServ.d.ts +0 -42
- package/esm/servs/SocketServ.d.ts +0 -38
- package/esm/servs/UserServ.d.ts +0 -47
- package/esm/servs/implement/ConfigServ.d.ts +0 -66
- package/esm/servs/implement/DriverServ.d.ts +0 -36
- package/esm/servs/implement/EnvServ.d.ts +0 -14
- package/esm/servs/implement/LogServ.d.ts +0 -19
- package/esm/servs/implement/SettingServ.d.ts +0 -42
- package/esm/servs/implement/SocketServ.d.ts +0 -38
- package/esm/servs/implement/UserServ.d.ts +0 -47
- package/esm/servs/index.d.ts +0 -15
- package/esm/stores/config.d.ts +0 -63
- package/esm/stores/driver.d.ts +0 -37
- package/esm/stores/env.d.ts +0 -12
- package/esm/stores/index.d.ts +0 -8
- package/esm/stores/log.d.ts +0 -20
- package/esm/stores/setting.d.ts +0 -43
- package/esm/stores/socket.d.ts +0 -27
- package/esm/stores/user.d.ts +0 -40
- package/esm/types/CreateOptions.d.ts +0 -18
- /package/esm/coms/{types → controls/@types}/RichTextOptions.d.ts +0 -0
- /package/esm/coms/{types → controls/@types}/RichTextProps.d.ts +0 -0
- /package/esm/coms/{types → layouts/@types}/RowProps.d.ts +0 -0
- /package/esm/drivers/{IDriver.d.ts → @types/IDriver.d.ts} +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import Factories from "./Factories";
|
2
|
-
import { ICdn, IEncoder, IHasher, IHttp, IMessenger,
|
3
|
-
import { CreateFeOptions } from "
|
2
|
+
import { ICdn, IEncoder, IHasher, II18n, IHttp, IMessenger, ITemplate } from "../drivers";
|
3
|
+
import { CreateFeOptions } from "../@types";
|
4
4
|
/**
|
5
5
|
* 默认base64编码
|
6
6
|
*/
|
@@ -13,14 +13,18 @@ declare let cdn: ICdn;
|
|
13
13
|
* 默认Http请求对象
|
14
14
|
*/
|
15
15
|
declare let http: IHttp;
|
16
|
+
/**
|
17
|
+
* 多语言翻译对象
|
18
|
+
*/
|
19
|
+
declare let i18n: II18n;
|
16
20
|
/**
|
17
21
|
* MD5 hash计算
|
18
22
|
*/
|
19
23
|
declare let md5: IHasher;
|
20
24
|
/**
|
21
|
-
*
|
25
|
+
* 默认模板引擎
|
22
26
|
*/
|
23
|
-
declare let
|
27
|
+
declare let template: ITemplate;
|
24
28
|
/**
|
25
29
|
* 初始化消息对象,保证后续更新能够被同步更新
|
26
30
|
*/
|
@@ -29,4 +33,12 @@ declare let messenger: IMessenger;
|
|
29
33
|
* 初始化默认驱动实例
|
30
34
|
*/
|
31
35
|
declare let initDriver: (options: CreateFeOptions) => Promise<void>;
|
32
|
-
|
36
|
+
/**
|
37
|
+
* 设置好请求器后,才可以设置多语言
|
38
|
+
*/
|
39
|
+
declare let initI18n: () => Promise<void>;
|
40
|
+
/**
|
41
|
+
* 提取可导出的翻译方法,当i18n实例变化后,导出的方案会跟着变化?
|
42
|
+
*/
|
43
|
+
declare let t: typeof i18n.t, t_exists: typeof i18n.t_exists, t_sys: typeof i18n.t_sys, t_enum: typeof i18n.t_enum, t_field: typeof i18n.t_field, t_field_choose_placeholder: typeof i18n.t_field_choose_placeholder, t_field_placeholder: typeof i18n.t_field_placeholder, t_table: typeof i18n.t_table, t_module: typeof i18n.t_module, t_menu: typeof i18n.t_menu;
|
44
|
+
export { base64, cdn, http, i18n, md5, template, messenger, initDriver, initI18n, Factories, t, t_exists, t_sys, t_enum, t_field, t_field_choose_placeholder, t_field_placeholder, t_table, t_module, t_menu };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { JsonConfig, TreeNodeProp } from "
|
1
|
+
import { JsonConfig, TreeNodeProp } from "./@types";
|
2
2
|
/**
|
3
3
|
* JSON帮助类
|
4
4
|
*/
|
@@ -18,7 +18,11 @@ declare class JsonHelper {
|
|
18
18
|
/**
|
19
19
|
* 根据props中的.自动分割得到属性值
|
20
20
|
*/
|
21
|
-
static
|
21
|
+
static hasKey(value: any, props: string[]): boolean;
|
22
|
+
/**
|
23
|
+
* 根据props中的.自动分割得到属性值
|
24
|
+
*/
|
25
|
+
static getValue(value: any, props: string[]): any;
|
22
26
|
/**
|
23
27
|
* 把json字符串合并到目标对象上
|
24
28
|
*/
|
package/esm/main.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CreateFeOptions } from "
|
1
|
+
import { CreateFeOptions } from "./@types";
|
2
2
|
import "./styles/index.scss";
|
3
3
|
export * from "./coms";
|
4
4
|
export * from "./drivers";
|
@@ -7,7 +7,7 @@ export * from "./helpers";
|
|
7
7
|
export * from "./plugins";
|
8
8
|
export * from "./repos";
|
9
9
|
export * from "./svcs";
|
10
|
-
export * from "
|
10
|
+
export * from "./@types";
|
11
11
|
export * from "./utilities";
|
12
12
|
/**
|
13
13
|
* 初始化前端基础框架
|
package/esm/repos/index.d.ts
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export { I18nSvc };
|
1
|
+
export {};
|
package/esm/svcs/index.d.ts
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
import { I18nSvc } from "./implement";
|
2
1
|
import ConfigSvc from "./implement/ConfigSvc";
|
3
2
|
import EnvSvc from "./implement/EnvSvc";
|
4
3
|
import LogSvc from "./implement/LogSvc";
|
5
4
|
import SocketSvc from "./implement/SocketSvc";
|
6
5
|
import UserSvc from "./implement/UserSvc";
|
7
6
|
import SvcFactory from "./SvcFactory";
|
8
|
-
import { CreateFeOptions } from "
|
7
|
+
import { CreateFeOptions } from "../@types";
|
9
8
|
/**
|
10
9
|
* 驱动服务实例
|
11
10
|
*/
|
@@ -29,7 +28,6 @@ declare let driverSvc: {
|
|
29
28
|
loadEnvs: (reload?: boolean) => Promise<void>;
|
30
29
|
};
|
31
30
|
declare let envSvc: EnvSvc;
|
32
|
-
declare let i18nSvc: I18nSvc;
|
33
31
|
declare let logSvc: LogSvc;
|
34
32
|
declare let settingSvc: {
|
35
33
|
loaded: boolean;
|
@@ -65,8 +63,4 @@ declare let userSvc: UserSvc;
|
|
65
63
|
*/
|
66
64
|
declare let initSvc: (options: CreateFeOptions) => Promise<void>;
|
67
65
|
export * from "./implement";
|
68
|
-
|
69
|
-
* 提取可导出的翻译方法,当i18nSvc实例变化后,导出的方案会跟着变化?
|
70
|
-
*/
|
71
|
-
declare let t: (key: string, params?: any) => any, t_exists: (key: any) => any, t_sys: (key: string) => any, t_enum: (name: string, value: string) => any, t_field: (table: string, field: string) => any, t_field_choose_placeholder: (table: string, field: string) => any, t_field_placeholder: (table: string, field: string) => any, t_table: (table: string) => any, t_module: (type: string, key: string) => string, t_menu: (key: string) => any;
|
72
|
-
export { initSvc, configSvc, driverSvc, envSvc, i18nSvc, logSvc, settingSvc, socketSvc, userSvc, t, t_exists, t_sys, t_enum, t_field, t_field_choose_placeholder, t_field_placeholder, t_table, t_module, t_menu, SvcFactory };
|
66
|
+
export { initSvc, configSvc, driverSvc, envSvc, logSvc, settingSvc, socketSvc, userSvc, SvcFactory };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { IMessenger } from "../drivers";
|
2
|
-
import I18nSvc from "../svcs/implement/I18nSvc";
|
3
2
|
/**
|
4
3
|
* 初始化选项
|
5
4
|
*/
|
@@ -8,14 +7,16 @@ declare class CreateFeOptions {
|
|
8
7
|
* 消息发送对象
|
9
8
|
*/
|
10
9
|
messenger: IMessenger;
|
11
|
-
/**
|
12
|
-
* 实际的多语言翻译服务实体
|
13
|
-
*/
|
14
|
-
i18nSvc: I18nSvc;
|
15
10
|
/**
|
16
11
|
* 基准请求地址
|
17
12
|
*/
|
18
13
|
baseUrl: string;
|
14
|
+
/**
|
15
|
+
* 自定义语言包
|
16
|
+
*/
|
17
|
+
lang: {
|
18
|
+
[key: string]: any;
|
19
|
+
};
|
19
20
|
/**
|
20
21
|
* CDN类型
|
21
22
|
*/
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import Rect from "./Rect";
|
2
|
+
import DragEvent from "./DragEvent";
|
3
|
+
/**
|
4
|
+
* 拖拽选项
|
5
|
+
*/
|
6
|
+
interface DragOptions {
|
7
|
+
/**
|
8
|
+
* 拖拽初始化
|
9
|
+
*/
|
10
|
+
init: (event: MouseEvent) => any;
|
11
|
+
/**
|
12
|
+
* 拖拽事件
|
13
|
+
*/
|
14
|
+
handler: (dragEvent: DragEvent, start: MouseEvent, data: any, first: boolean, event: MouseEvent) => void;
|
15
|
+
/**
|
16
|
+
* 拖拽结束事件
|
17
|
+
*/
|
18
|
+
end?: (event: MouseEvent) => void;
|
19
|
+
/**
|
20
|
+
* 可拖拽范围
|
21
|
+
*/
|
22
|
+
range?: Rect;
|
23
|
+
/**
|
24
|
+
* 吸附检测的距离,设置吸附位置必须设置拖拽范围(依赖宽度等信息)
|
25
|
+
*/
|
26
|
+
affix?: number;
|
27
|
+
}
|
28
|
+
export default DragOptions;
|
package/esm/utilities/index.d.ts
CHANGED
@@ -2,5 +2,6 @@ import EventUtility from "./EventUtility";
|
|
2
2
|
import KeyboardUtility from "./KeyboardUtility";
|
3
3
|
import ListDelta from "./ListDelta";
|
4
4
|
import MouseUtility from "./MouseUtility";
|
5
|
-
|
6
|
-
export
|
5
|
+
import SaveUtility from "./SaveUtility";
|
6
|
+
export * from "./@types";
|
7
|
+
export { EventUtility, KeyboardUtility, ListDelta, MouseUtility, SaveUtility };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "halo-fe",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.20",
|
4
4
|
"description": "Halo front end sdk",
|
5
5
|
"scripts": {
|
6
6
|
"halo-fe:tsc": "vue-tsc",
|
@@ -29,8 +29,7 @@
|
|
29
29
|
"registry": "https://registry.npmjs.org"
|
30
30
|
},
|
31
31
|
"peerDependencies": {
|
32
|
-
"vue": "3.4.37"
|
33
|
-
"vue-i18n": "9.13.1"
|
32
|
+
"vue": "3.4.37"
|
34
33
|
},
|
35
34
|
"dependencies": {
|
36
35
|
"clone": "2.1.2",
|