halo-fe 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/{vendor-@monaco-editor-DKC4UNw_.js → assets/@monaco-editor-BCDRi0Ti.js} +1 -1
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- package/dist/assets/clone-DtpAsLoe.js +139 -0
- package/dist/{vendor-file-saver-DKXzEV2Q.js → assets/file-saver-Cnua3zoa.js} +1 -1
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
- package/dist/{vendor-underscore.string-vrHhfBaT.js → assets/underscore.string-oDfap0sE.js} +3 -3
- package/dist/{vendor-util-deprecate-BfbfwJhs.js → assets/util-deprecate-BqFawLoO.js} +1 -1
- package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main.js +2383 -1579
- package/dist/style.css +1 -1
- package/esm/coms/Empty.vue.d.ts +1 -0
- package/esm/coms/conditions/Condition.vue.d.ts +12 -0
- package/esm/coms/conditions/Index.vue.d.ts +12 -0
- package/esm/coms/conditions/index.d.ts +3 -0
- 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/{Code.vue.d.ts → controls/Code.vue.d.ts} +11 -3
- package/esm/coms/controls/Option.vue.d.ts +2 -0
- package/esm/coms/controls/Select.vue.d.ts +2 -0
- package/esm/coms/controls/index.d.ts +7 -0
- 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/index.d.ts +5 -8
- package/esm/coms/layouts/index.d.ts +5 -0
- package/esm/coms/layouts/types/index.d.ts +2 -0
- package/esm/coms/types/index.d.ts +1 -6
- package/esm/drivers/bridges/IBridge.d.ts +7 -1
- package/esm/drivers/builders/Builder.d.ts +4 -1
- package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
- package/esm/drivers/builders/IBuilder.d.ts +9 -0
- package/esm/drivers/builders/entities/ProviderTable.d.ts +22 -0
- package/esm/drivers/builders/entities/index.d.ts +2 -0
- package/esm/drivers/builders/implement/JsonBuilder.d.ts +3 -0
- package/esm/drivers/builders/implement/MongoBuilder.d.ts +6 -0
- package/esm/drivers/builders/implement/MySqlBuilder.d.ts +3 -0
- package/esm/drivers/builders/implement/SqlBuilder.d.ts +6 -0
- package/esm/drivers/builders/index.d.ts +3 -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/Cdn.d.ts +20 -7
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/ICdn.d.ts +28 -11
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +13 -6
- package/esm/drivers/cdns/implements/ThirdCdn.d.ts +34 -0
- package/esm/drivers/cdns/index.d.ts +2 -1
- package/esm/drivers/encoders/Encoder.d.ts +1 -1
- package/esm/drivers/encoders/EncoderFactory.d.ts +1 -1
- package/esm/drivers/encoders/IEncoder.d.ts +1 -1
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +2 -1
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -0
- package/esm/drivers/explainers/ExplainerFactory.d.ts +1 -1
- package/esm/drivers/features/FeatureFactory.d.ts +1 -1
- package/esm/drivers/hashers/Hasher.d.ts +1 -1
- package/esm/drivers/hashers/HasherFactory.d.ts +1 -1
- package/esm/drivers/hashers/IHasher.d.ts +1 -1
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +2 -1
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
- package/esm/drivers/https/Http.d.ts +2 -2
- package/esm/drivers/https/HttpFactory.d.ts +1 -1
- package/esm/drivers/https/entities/HttpMessage.d.ts +14 -3
- package/esm/drivers/https/entities/HttpRequest.d.ts +6 -2
- package/esm/drivers/https/implements/DefaultHttp.d.ts +9 -1
- package/esm/drivers/index.d.ts +2 -0
- package/esm/{plugins/types → drivers/messengers}/IMessenger.d.ts +2 -1
- package/esm/drivers/messengers/Messenger.d.ts +15 -0
- package/esm/drivers/messengers/MessengerFactory.d.ts +13 -0
- package/esm/drivers/messengers/implement/ConsoleMessenger.d.ts +15 -0
- package/esm/drivers/messengers/index.d.ts +4 -0
- package/esm/drivers/providers/IProvider.d.ts +6 -2
- package/esm/drivers/providers/Provider.d.ts +2 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
- package/esm/drivers/providers/helpers/SqlHelper.d.ts +11 -0
- package/esm/drivers/providers/helpers/index.d.ts +2 -0
- package/esm/drivers/providers/implements/CookieProvider.d.ts +2 -0
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +2 -0
- package/esm/drivers/providers/implements/StorageProvider.d.ts +3 -9
- package/esm/drivers/providers/index.d.ts +1 -0
- package/esm/drivers/signers/SignerFactory.d.ts +1 -1
- package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
- package/esm/drivers/tasks/ITask.d.ts +5 -0
- package/esm/drivers/tasks/Task.d.ts +1 -0
- package/esm/drivers/tasks/TaskFactory.d.ts +1 -1
- package/esm/drivers/tasks/implement/MemoryTask.d.ts +15 -0
- package/esm/drivers/templates/ITemplate.d.ts +11 -0
- package/esm/drivers/templates/Template.d.ts +6 -0
- package/esm/drivers/templates/TemplateFactory.d.ts +9 -0
- package/esm/drivers/templates/implement/LiquidTemplate.d.ts +6 -0
- package/esm/drivers/templates/index.d.ts +3 -0
- package/esm/drivers/videos/VideoFactory.d.ts +1 -1
- package/esm/drivers/voices/VoiceFactory.d.ts +1 -1
- package/esm/factorying/Factories.d.ts +27 -13
- package/esm/factorying/Factory.d.ts +16 -8
- package/esm/factorying/IFactory.d.ts +6 -6
- package/esm/factorying/index.d.ts +12 -3
- package/esm/helpers/DictionaryHelper.d.ts +3 -1
- package/esm/helpers/DomHelper.d.ts +24 -3
- package/esm/helpers/JsonHelper.d.ts +18 -10
- package/esm/helpers/ObjectHelper.d.ts +7 -3
- package/esm/helpers/TreeHelper.d.ts +1 -1
- package/esm/helpers/index.d.ts +1 -2
- package/esm/helpers/types/JsonConfig.d.ts +10 -0
- package/esm/helpers/types/TreeNodeProp.d.ts +3 -0
- package/esm/helpers/types/index.d.ts +2 -1
- package/esm/main.d.ts +2 -2
- package/esm/plugins/index.d.ts +0 -1
- package/esm/svcs/ISvc.d.ts +2 -1
- package/esm/svcs/Svc.d.ts +1 -0
- package/esm/svcs/SvcFactory.d.ts +4 -1
- package/esm/svcs/implement/ConfigSvc.d.ts +4 -0
- package/esm/svcs/implement/I18nSvc.d.ts +83 -0
- package/esm/svcs/implement/SettingSvc.d.ts +4 -0
- package/esm/svcs/implement/index.d.ts +2 -0
- package/esm/svcs/index.d.ts +14 -1
- package/esm/types/CreateFeOptions.d.ts +24 -0
- package/esm/types/{CreateOptions.d.ts → CreatePcOptions.d.ts} +2 -5
- package/esm/types/index.d.ts +3 -2
- package/esm/utilities/EventUtility.d.ts +11 -0
- package/esm/utilities/types/DragOptions.d.ts +2 -2
- package/esm/utilities/types/Rect.d.ts +4 -0
- package/esm/utilities/types/index.d.ts +2 -2
- package/package.json +16 -12
- package/dist/vendor-clone-NGbTzSwJ.js +0 -159
- package/dist/vendor-crypto-js-DWn5nTKL.js +0 -4997
- package/dist/vendor-xlsx-js-style-DMPNZPOx.js +0 -11862
- package/esm/coms/types/CodeProps.d.ts +0 -18
- package/esm/drivers/IDisposable.d.ts +0 -10
- package/esm/drivers/IDriver.d.ts +0 -10
- package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -13
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -16
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -10
- package/esm/drivers/driver-helper.d.ts +0 -46
- package/esm/drivers/factories/DriverFactory.d.ts +0 -64
- package/esm/drivers/factories/Factories.d.ts +0 -55
- package/esm/drivers/factories/Factory.d.ts +0 -25
- package/esm/drivers/factories/IFactory.d.ts +0 -18
- package/esm/drivers/factories/implement/CdnFactory.d.ts +0 -13
- package/esm/drivers/factories/implement/EncoderFactory.d.ts +0 -17
- package/esm/drivers/factories/implement/ExcelFactory.d.ts +0 -13
- package/esm/drivers/factories/implement/ExplainerFactory.d.ts +0 -6
- package/esm/drivers/factories/implement/FeatureFactory.d.ts +0 -13
- package/esm/drivers/factories/implement/HasherFactory.d.ts +0 -11
- package/esm/drivers/factories/implement/HttpFactory.d.ts +0 -18
- package/esm/drivers/factories/implement/ProviderFactory.d.ts +0 -18
- package/esm/drivers/factories/implement/SignerFactory.d.ts +0 -13
- package/esm/drivers/factories/implement/SsoFactory.d.ts +0 -17
- package/esm/drivers/factories/implement/TaskFactory.d.ts +0 -9
- package/esm/drivers/factories/implement/VideoFactory.d.ts +0 -3
- package/esm/drivers/factories/implement/VoiceFactory.d.ts +0 -6
- package/esm/drivers/factories/implement/index.d.ts +0 -11
- package/esm/drivers/factories/index.d.ts +0 -21
- package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
- package/esm/drivers/requesters/IRequester.d.ts +0 -25
- package/esm/drivers/requesters/Requester.d.ts +0 -13
- package/esm/drivers/requesters/RequesterFactory.d.ts +0 -21
- package/esm/drivers/requesters/entities/HttpRequest.d.ts +0 -34
- package/esm/drivers/requesters/entities/HttpResponse.d.ts +0 -19
- package/esm/drivers/requesters/implements/DefaultRequester.d.ts +0 -12
- package/esm/drivers/requesters/implements/LocalRequester.d.ts +0 -43
- package/esm/drivers/requesters/implements/MkRequester.d.ts +0 -40
- package/esm/drivers/requesters/index.d.ts +0 -5
- package/esm/factories/Factories.d.ts +0 -55
- package/esm/factories/Factory.d.ts +0 -38
- package/esm/factories/IFactory.d.ts +0 -27
- package/esm/factories/index.d.ts +0 -26
- package/esm/helpers/ScriptHelper.d.ts +0 -31
- package/esm/helpers/array-helper.d.ts +0 -97
- package/esm/helpers/component-helper.d.ts +0 -10
- 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 -31
- 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 -34
- 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 -62
- 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/types/IMessager.d.ts +0 -34
- package/esm/plugins/types/index.d.ts +0 -10
- package/esm/services/SettingService.d.ts +0 -5
- package/esm/services/index.d.ts +0 -15
- package/esm/servs/IServ.d.ts +0 -6
- package/esm/servs/Serv.d.ts +0 -4
- package/esm/servs/ServFactory.d.ts +0 -11
- 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 -59
- package/esm/stores/driver.d.ts +0 -41
- package/esm/stores/env.d.ts +0 -12
- package/esm/stores/index.d.ts +0 -7
- package/esm/stores/log.d.ts +0 -20
- package/esm/stores/setting.d.ts +0 -47
- package/esm/stores/socket.d.ts +0 -27
- package/esm/stores/user.d.ts +0 -44
- package/esm/svcs/proxies/driverSvc.d.ts +0 -18
- package/esm/svcs/proxies/index.d.ts +0 -2
- package/esm/thirds/index.d.ts +0 -8
- package/esm/vite.config.d.ts +0 -6
- /package/dist/{vendor-moment-h96o7c8I.js → assets/moment-h96o7c8I.js} +0 -0
- /package/dist/{vendor-sprintf-js-BPTdvBYM.js → assets/sprintf-js-BPTdvBYM.js} +0 -0
- /package/dist/{vendor-state-local-CEworIRt.js → assets/state-local-CEworIRt.js} +0 -0
- /package/dist/{vendor-underscore-B0BCaBxV.js → assets/underscore-B0BCaBxV.js} +0 -0
- /package/esm/coms/{Compare.vue.d.ts → controls/Compare.vue.d.ts} +0 -0
- /package/esm/coms/{RichText.vue.d.ts → controls/RichText.vue.d.ts} +0 -0
- /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/{Col.vue.d.ts → layouts/Col.vue.d.ts} +0 -0
- /package/esm/coms/{Container.vue.d.ts → layouts/Container.vue.d.ts} +0 -0
- /package/esm/coms/{Row.vue.d.ts → layouts/Row.vue.d.ts} +0 -0
- /package/esm/coms/{types → layouts/types}/RowProps.d.ts +0 -0
@@ -1,12 +0,0 @@
|
|
1
|
-
import Requester from "../Requester";
|
2
|
-
import HttpRequest from "../entities/HttpRequest";
|
3
|
-
import HttpResponse from "../entities/HttpResponse";
|
4
|
-
/**
|
5
|
-
* 默认Http请求器
|
6
|
-
*/
|
7
|
-
declare class DefaultRequester extends Requester {
|
8
|
-
type: string;
|
9
|
-
open(conn: string): void;
|
10
|
-
send(request: HttpRequest): Promise<HttpResponse>;
|
11
|
-
}
|
12
|
-
export default DefaultRequester;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import { AxiosError, AxiosInstance, AxiosResponse } from "axios";
|
2
|
-
import Requester from "../Requester";
|
3
|
-
import HttpRequest from "../entities/HttpRequest";
|
4
|
-
import HttpResponse from "../entities/HttpResponse";
|
5
|
-
import { IMessageService } from "../../../services";
|
6
|
-
/**
|
7
|
-
* 本地请求器
|
8
|
-
*/
|
9
|
-
declare class LocalRequester extends Requester {
|
10
|
-
type: string;
|
11
|
-
request: AxiosInstance;
|
12
|
-
/**
|
13
|
-
* 消息服务实例
|
14
|
-
*/
|
15
|
-
messageService: IMessageService;
|
16
|
-
open(conn: string): void;
|
17
|
-
send(request: HttpRequest): Promise<HttpResponse>;
|
18
|
-
/**
|
19
|
-
* GET请求
|
20
|
-
*/
|
21
|
-
get(url: string, params?: any, headers?: object): Promise<any>;
|
22
|
-
/**
|
23
|
-
* POST请求
|
24
|
-
*/
|
25
|
-
post(url: string, body?: any, config?: any): Promise<any>;
|
26
|
-
/**
|
27
|
-
* PATCH请求
|
28
|
-
*/
|
29
|
-
patch(url: string, body?: any, config?: any): Promise<any>;
|
30
|
-
/**
|
31
|
-
* 处理响应信息 或 响应体信息
|
32
|
-
*/
|
33
|
-
handleResponse(res: AxiosResponse): Promise<any>;
|
34
|
-
/**
|
35
|
-
* 处理响应体信息,并自动添加响应通知
|
36
|
-
*/
|
37
|
-
handleResponseBody(body: any, tip?: boolean): Promise<any>;
|
38
|
-
/**
|
39
|
-
* 处理网络错误和响应错误场景
|
40
|
-
*/
|
41
|
-
handleError(error: AxiosError | any): Promise<never>;
|
42
|
-
}
|
43
|
-
export default LocalRequester;
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import Requester from "../Requester";
|
2
|
-
import HttpRequest from "../entities/HttpRequest";
|
3
|
-
import HttpResponse from "../entities/HttpResponse";
|
4
|
-
import IRequester from "../IRequester";
|
5
|
-
import IHasher from "../../hashers/IHasher";
|
6
|
-
/**
|
7
|
-
* MK请求器
|
8
|
-
*/
|
9
|
-
declare class MkRequester extends Requester {
|
10
|
-
type: string;
|
11
|
-
/**
|
12
|
-
* 基准地址
|
13
|
-
*/
|
14
|
-
baseUrl: string;
|
15
|
-
/**
|
16
|
-
* AppId
|
17
|
-
*/
|
18
|
-
appId: string;
|
19
|
-
/**
|
20
|
-
* AppSecret
|
21
|
-
*/
|
22
|
-
appSecret: string;
|
23
|
-
/**
|
24
|
-
* 默认请求器
|
25
|
-
*/
|
26
|
-
requester: IRequester;
|
27
|
-
/**
|
28
|
-
* Hash计算器
|
29
|
-
*/
|
30
|
-
hasher: IHasher;
|
31
|
-
/**
|
32
|
-
* 危险操作,会暴露敏感信息
|
33
|
-
*/
|
34
|
-
open(conn: string): void;
|
35
|
-
/**
|
36
|
-
* 危险操作,会暴露敏感信息
|
37
|
-
*/
|
38
|
-
send(request: HttpRequest): Promise<HttpResponse>;
|
39
|
-
}
|
40
|
-
export default MkRequester;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import RequesterFactory from "./RequesterFactory";
|
2
|
-
import type IRequester from "./IRequester";
|
3
|
-
import type HttpRequest from "./entities/HttpRequest";
|
4
|
-
import type HttpResponse from "./entities/HttpResponse";
|
5
|
-
export { RequesterFactory, IRequester, HttpRequest, HttpResponse };
|
@@ -1,55 +0,0 @@
|
|
1
|
-
import { CdnFactory, EncoderFactory, ExcelFactory, ExplainerFactory, FeatureFactory, HasherFactory, HttpFactory, ProviderFactory, SignerFactory, SsoFactory } from "../drivers";
|
2
|
-
/**
|
3
|
-
* 驱动工厂类
|
4
|
-
*/
|
5
|
-
declare class Factories {
|
6
|
-
/**
|
7
|
-
* 工厂缓存
|
8
|
-
*/
|
9
|
-
static mappings: {};
|
10
|
-
/**
|
11
|
-
* 并缓存工厂实例
|
12
|
-
*/
|
13
|
-
static create<T>(name: string, type: any): T;
|
14
|
-
/**
|
15
|
-
*CDN工厂
|
16
|
-
*/
|
17
|
-
static get cdn(): CdnFactory;
|
18
|
-
/**
|
19
|
-
*编码器工厂
|
20
|
-
*/
|
21
|
-
static get encoder(): EncoderFactory;
|
22
|
-
/**
|
23
|
-
*Excel工厂
|
24
|
-
*/
|
25
|
-
static get excel(): ExcelFactory;
|
26
|
-
/**
|
27
|
-
*Explainer工厂
|
28
|
-
*/
|
29
|
-
static get explainer(): ExplainerFactory;
|
30
|
-
/**
|
31
|
-
*特征工厂
|
32
|
-
*/
|
33
|
-
static get feature(): FeatureFactory;
|
34
|
-
/**
|
35
|
-
*哈希工厂
|
36
|
-
*/
|
37
|
-
static get hasher(): HasherFactory;
|
38
|
-
/**
|
39
|
-
*提供程序工厂
|
40
|
-
*/
|
41
|
-
static get provider(): ProviderFactory;
|
42
|
-
/**
|
43
|
-
*Http请求工厂
|
44
|
-
*/
|
45
|
-
static get http(): HttpFactory;
|
46
|
-
/**
|
47
|
-
*签名工厂
|
48
|
-
*/
|
49
|
-
static get signer(): SignerFactory;
|
50
|
-
/**
|
51
|
-
*SSO工厂
|
52
|
-
*/
|
53
|
-
static get sso(): SsoFactory;
|
54
|
-
}
|
55
|
-
export default Factories;
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import IFactory from "./IFactory";
|
2
|
-
import IDriver from "../drivers/IDriver";
|
3
|
-
import { Ref } from "../plugins";
|
4
|
-
/**
|
5
|
-
* 工厂基类
|
6
|
-
*/
|
7
|
-
declare abstract class Factory<T extends IDriver> implements IFactory<T> {
|
8
|
-
/**
|
9
|
-
* 开启
|
10
|
-
*/
|
11
|
-
open(): void;
|
12
|
-
/**
|
13
|
-
* 实例集合
|
14
|
-
* 或者使用:Record<string, string>
|
15
|
-
*/
|
16
|
-
private instances;
|
17
|
-
/**
|
18
|
-
* 获取当前驱动所有实例
|
19
|
-
*/
|
20
|
-
abstract getInstances(): T[];
|
21
|
-
/**
|
22
|
-
* 创建指定类型驱动
|
23
|
-
*/
|
24
|
-
create(type: string, conn?: string): Promise<T>;
|
25
|
-
/**
|
26
|
-
* 根据主键创建驱动,并返回加载后的驱动信息
|
27
|
-
*/
|
28
|
-
createById(id: number, driverRef?: Ref<any>): Promise<T>;
|
29
|
-
/**
|
30
|
-
* 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
|
31
|
-
*/
|
32
|
-
createIfAbsent(name: string, type?: string, open?: (entity: T) => void): Promise<T>;
|
33
|
-
/**
|
34
|
-
* 加载驱动明细
|
35
|
-
*/
|
36
|
-
loadDriver(id: number): Promise<any>;
|
37
|
-
}
|
38
|
-
export default Factory;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { Ref } from "../plugins";
|
2
|
-
/**
|
3
|
-
* 工厂接口
|
4
|
-
*/
|
5
|
-
interface IFactory<T> {
|
6
|
-
/**
|
7
|
-
* 开启工厂
|
8
|
-
*/
|
9
|
-
open(): void;
|
10
|
-
/**
|
11
|
-
* 获取当前驱动所有实例
|
12
|
-
*/
|
13
|
-
getInstances(): T[];
|
14
|
-
/**
|
15
|
-
* 创建指定类型的实例
|
16
|
-
*/
|
17
|
-
create(type: string, conn?: string): Promise<T>;
|
18
|
-
/**
|
19
|
-
* 根据主键创建驱动,并返回加载后的驱动信息
|
20
|
-
*/
|
21
|
-
createById(id: number, driverRef?: Ref<any>): Promise<T>;
|
22
|
-
/**
|
23
|
-
* 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
|
24
|
-
*/
|
25
|
-
createIfAbsent(name: string, type: string, open?: (entity: T) => void): Promise<T>;
|
26
|
-
}
|
27
|
-
export default IFactory;
|
package/esm/factories/index.d.ts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import Factories from "./Factories";
|
2
|
-
import { IEncoder } from "../drivers/encoders";
|
3
|
-
import { IHttp } from "../drivers/https";
|
4
|
-
import { IHasher } from "../drivers/hashers";
|
5
|
-
import { IProvider } from "../drivers";
|
6
|
-
/**
|
7
|
-
* 默认base64编码
|
8
|
-
*/
|
9
|
-
declare let base64: IEncoder;
|
10
|
-
/**
|
11
|
-
* 默认Http请求对象
|
12
|
-
*/
|
13
|
-
declare let http: IHttp;
|
14
|
-
/**
|
15
|
-
* MD5 hash计算
|
16
|
-
*/
|
17
|
-
declare let md5: IHasher;
|
18
|
-
/**
|
19
|
-
* 默认Storage
|
20
|
-
*/
|
21
|
-
declare let storage: IProvider;
|
22
|
-
/**
|
23
|
-
* 初始化默认驱动实例
|
24
|
-
*/
|
25
|
-
declare let initDriver: () => Promise<void>;
|
26
|
-
export { Factories, base64, http, md5, storage, initDriver };
|
@@ -1,31 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 脚本帮助类
|
3
|
-
*/
|
4
|
-
declare class ScriptHelper {
|
5
|
-
/**
|
6
|
-
* 异步加载脚本/样式内容,把内容处理为行内html
|
7
|
-
* 这种方式,依赖的内部资源,会从当前站点加载
|
8
|
-
*/
|
9
|
-
static loadContentAsync: (src: string | string[]) => Promise<void[]>;
|
10
|
-
/**
|
11
|
-
* 异步加载单个路径下的多个文件
|
12
|
-
*/
|
13
|
-
static loadPathAsync: (path: string, files: string[]) => Promise<void>;
|
14
|
-
/**
|
15
|
-
* 通过注入DOM标签异步加载脚本或样式表
|
16
|
-
*/
|
17
|
-
static loadAsync: (src: string | string[]) => Promise<void>;
|
18
|
-
/**
|
19
|
-
* 注意:箭头函数没有参数
|
20
|
-
*/
|
21
|
-
static loadAll: (...args: any[]) => Promise<any[]>;
|
22
|
-
/**
|
23
|
-
* 根据路径获取标签(无src)
|
24
|
-
*/
|
25
|
-
static getInnerTagByUrl: (url: string) => HTMLStyleElement | HTMLScriptElement;
|
26
|
-
/**
|
27
|
-
* 根据路径获取待加载的元素,同时包含Url
|
28
|
-
*/
|
29
|
-
static getOuterTagByUrl: (url: string) => HTMLLinkElement | HTMLScriptElement;
|
30
|
-
}
|
31
|
-
export default ScriptHelper;
|
@@ -1,97 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 数组帮助类
|
3
|
-
*/
|
4
|
-
declare class ArrayHelper {
|
5
|
-
/**
|
6
|
-
* 获取指定数组分成每片指定长度后的集合
|
7
|
-
*/
|
8
|
-
static getChunks: (arr: any[], chunkSize: number) => any[];
|
9
|
-
/**
|
10
|
-
* 取两个集合的交集
|
11
|
-
*/
|
12
|
-
static intersect: (arr1: any[], arr2: any[]) => any[];
|
13
|
-
/**
|
14
|
-
* 排除指定元素(差集)
|
15
|
-
*/
|
16
|
-
static except: (from: any[], target: any[] | any, equals?: (a: any, b: any) => boolean) => any[];
|
17
|
-
/**
|
18
|
-
* 是否包含
|
19
|
-
*/
|
20
|
-
static contains: (arr: any[], element: any) => boolean;
|
21
|
-
/**
|
22
|
-
* 判断指定集合中的指定属性的值,是否包含关键词
|
23
|
-
*/
|
24
|
-
static filterContains: (arr: any[], props: string[], keywords: string) => any[];
|
25
|
-
/**
|
26
|
-
* 判断2个数组是否每个元素都相同
|
27
|
-
*/
|
28
|
-
static same: (arr1: any[], arr2: any[]) => boolean;
|
29
|
-
/**
|
30
|
-
* 求最大值,数据类型的比较函数要自己转换为数值类型
|
31
|
-
*/
|
32
|
-
static max: (arr: any[], func: Function) => any;
|
33
|
-
/**
|
34
|
-
* 求最小值,数据类型的比较函数要自己转换为数值类型
|
35
|
-
*/
|
36
|
-
static min: (arr: any[], func: Function) => any;
|
37
|
-
/**
|
38
|
-
* 求和
|
39
|
-
*/
|
40
|
-
static sum: (arr: any[], func: Function, digits?: number) => number;
|
41
|
-
/**
|
42
|
-
* 求平均值
|
43
|
-
*/
|
44
|
-
static avg: (arr: any[], func: Function, digits?: number) => number;
|
45
|
-
/**
|
46
|
-
* 对数组元素根据指定函数进行去重,并返回去重后的值的新数组 n=>n.value
|
47
|
-
*/
|
48
|
-
static distinct: (arr: any[], selector: Function) => any[];
|
49
|
-
/**
|
50
|
-
* 不存在某元素时才添加某元素
|
51
|
-
*/
|
52
|
-
static pushIfNotExist: (arr: any[], element: any) => void;
|
53
|
-
/**
|
54
|
-
* 连接值构建成新数组,重复项也会自动构建,不存在的值,会自动创建为一个新项
|
55
|
-
*/
|
56
|
-
static fromValues: (arrValues: any[], arr: any[], propertyValue: string, propertyText: string) => any[];
|
57
|
-
/**
|
58
|
-
* 删除指定元素,并返回删除后的字符串
|
59
|
-
*/
|
60
|
-
static removeIndex: (str: string, index: number, split: string) => string;
|
61
|
-
/**
|
62
|
-
* 分割指定字符串为数组,字符串为空,返回空数组
|
63
|
-
* @param input
|
64
|
-
* @param split
|
65
|
-
* @param element 转换后添加的默认元素
|
66
|
-
*/
|
67
|
-
static split: (input: string, split: string, element?: any) => any[];
|
68
|
-
/**
|
69
|
-
* 合并多个数组中的每一项到新的二维数组中,没值的元素被有值的元素代替
|
70
|
-
*/
|
71
|
-
static combine: (...args: any[]) => any[];
|
72
|
-
/**
|
73
|
-
* 在指定元素前插入新元素,返回插入元素的索引
|
74
|
-
*/
|
75
|
-
static insert: (array: object[], selectedRow: object, row: object) => number;
|
76
|
-
/**
|
77
|
-
* 在指定元素后插入新元素,返回插入元素的索引
|
78
|
-
*/
|
79
|
-
static append: (array: object[], selectedRow: object, row: object) => number;
|
80
|
-
/**
|
81
|
-
* 删除执行数组中的指定对象或者集合
|
82
|
-
*/
|
83
|
-
static remove: (array: any[], elements: any[] | any) => void;
|
84
|
-
/**
|
85
|
-
* 按照指定函数对数组排序
|
86
|
-
*/
|
87
|
-
static orderBy: (array: any[], funcs: any, asc?: boolean) => any[];
|
88
|
-
/**
|
89
|
-
* 分组
|
90
|
-
*/
|
91
|
-
static groupByArray: (array: any[], keyFunc: (item: any) => any) => any[];
|
92
|
-
/**
|
93
|
-
* 分组,封装成字典而不是集合,大数据场景速度提升百倍
|
94
|
-
*/
|
95
|
-
static groupBy: (array: any[], keyFunc: (item: any) => any, valueHandler?: (item: any) => any) => object;
|
96
|
-
}
|
97
|
-
export default ArrayHelper;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 字典帮助类
|
3
|
-
*/
|
4
|
-
declare class DictionaryHelper {
|
5
|
-
/**
|
6
|
-
* 从指定字典中提取忽略大小写的key的值
|
7
|
-
*/
|
8
|
-
static getValueIgnoreCase(key: string, value: object): string;
|
9
|
-
/**
|
10
|
-
* 对字典进行排序,并得到新字典
|
11
|
-
*/
|
12
|
-
static sort(obj: object): any;
|
13
|
-
/**
|
14
|
-
* 连接字典
|
15
|
-
*/
|
16
|
-
static join(obj: object, valueHandler?: (value: string) => string, delimiter?: string, join?: string): string;
|
17
|
-
}
|
18
|
-
export default DictionaryHelper;
|
@@ -1,86 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Dom帮助类
|
3
|
-
*/
|
4
|
-
declare class DomHelper {
|
5
|
-
/**
|
6
|
-
* 根据字符串Ascii码得到固定颜色字典
|
7
|
-
*/
|
8
|
-
static getColors(values: string[]): object;
|
9
|
-
/**
|
10
|
-
* 获取样式名
|
11
|
-
*/
|
12
|
-
static getClass(...args: any[]): string;
|
13
|
-
/**
|
14
|
-
* 添加类
|
15
|
-
*/
|
16
|
-
static addClass: (dom: Element, cls: string, choice?: any) => void;
|
17
|
-
/**
|
18
|
-
* 删除类
|
19
|
-
*/
|
20
|
-
static removeClass: (selector: string | Element, className: string, except?: Element) => void;
|
21
|
-
/**
|
22
|
-
* 根据计算后的样式进行DOM过滤
|
23
|
-
*/
|
24
|
-
static filterStyle(doms: any[], fun: (style: CSSStyleDeclaration) => boolean): any[];
|
25
|
-
/**
|
26
|
-
* 添加样式
|
27
|
-
*/
|
28
|
-
static addStyle(dom: HTMLElement, prop: string, value: string): void;
|
29
|
-
/**
|
30
|
-
* 查找指定父节点
|
31
|
-
*/
|
32
|
-
static parentUntil(dom: any, cls: string): any;
|
33
|
-
/**
|
34
|
-
* 查找第一个绝对定位的元素或backdrop元素,否则使用html元素
|
35
|
-
*/
|
36
|
-
static parentAbsolute(dom: any): any;
|
37
|
-
/**
|
38
|
-
* 查找孩子节点
|
39
|
-
*/
|
40
|
-
static find(dom: Element, cls: string): Element;
|
41
|
-
/**
|
42
|
-
* 获取dom宽度或高度
|
43
|
-
*/
|
44
|
-
private static getWidthOrHeight;
|
45
|
-
/**
|
46
|
-
* 统计所有控件宽度,含外边距
|
47
|
-
*/
|
48
|
-
static getWidth(value: Element | Element[]): number;
|
49
|
-
/**
|
50
|
-
* 获取元素可用宽度(移除内填充)
|
51
|
-
*/
|
52
|
-
static getAvailableWidth(value: Element | Element[]): number;
|
53
|
-
/**
|
54
|
-
* 统计所有非固定定位控件高度,含内填充和外边距
|
55
|
-
*/
|
56
|
-
static getHeight(value: Element | Element[]): number;
|
57
|
-
/**
|
58
|
-
* 获取元素可用高度(移除内填充)
|
59
|
-
*/
|
60
|
-
static getAvailableHeight(value: Element | Element[]): number;
|
61
|
-
/**
|
62
|
-
* 获取指定元素在视口内的位置
|
63
|
-
*/
|
64
|
-
static getViewportStyle(target: Element, title: string, subMenu: string, viewport: Element, position: string): any;
|
65
|
-
/**
|
66
|
-
* 获取指定选择器最大的索引
|
67
|
-
*/
|
68
|
-
static getMaxIndex(selector: string): number;
|
69
|
-
/**
|
70
|
-
* 判断当前鼠标位置是否在指定范围之内
|
71
|
-
*/
|
72
|
-
static inRange(event: MouseEvent, x: number, y: number, width: number, height: number): boolean;
|
73
|
-
/**
|
74
|
-
* 创建指定标签的dom,并设置内容
|
75
|
-
*/
|
76
|
-
static create(name: string, cls?: string, html?: string): HTMLElement;
|
77
|
-
/**
|
78
|
-
* 不存在时创建dom,并自动追加到文档
|
79
|
-
*/
|
80
|
-
static createIfAbsent(name: string, cls: string, html?: string): HTMLElement;
|
81
|
-
/**
|
82
|
-
* 获取文本宽度
|
83
|
-
*/
|
84
|
-
static getTextWidth(value: string): number;
|
85
|
-
}
|
86
|
-
export default DomHelper;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 事件帮助类
|
3
|
-
*/
|
4
|
-
declare class EventHelper {
|
5
|
-
/**
|
6
|
-
* 批量绑定事件,执行指定处理函数
|
7
|
-
*/
|
8
|
-
static bind: (events: any[], dom: any, func: Function) => void;
|
9
|
-
/**
|
10
|
-
* 批量绑定事件,执行指定处理函数
|
11
|
-
*/
|
12
|
-
static unbind: (events: any[], dom: any, func: Function) => void;
|
13
|
-
/**
|
14
|
-
* 绑定点击处理函数
|
15
|
-
*/
|
16
|
-
static click: (dom: any, func: Function) => void;
|
17
|
-
/**
|
18
|
-
* 解除点击监听
|
19
|
-
*/
|
20
|
-
static unclick: (dom: any, func: Function) => void;
|
21
|
-
/**
|
22
|
-
* 绑定滚动处理函数
|
23
|
-
*/
|
24
|
-
static scroll: (dom: any, func: Function) => void;
|
25
|
-
/**
|
26
|
-
* 移除滚动处理函数,防止内存泄漏
|
27
|
-
*/
|
28
|
-
static unscroll: (dom: any, func: Function) => void;
|
29
|
-
}
|
30
|
-
export default EventHelper;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 文件帮助类
|
3
|
-
*/
|
4
|
-
declare class FileHelper {
|
5
|
-
/**
|
6
|
-
* 保存文件
|
7
|
-
*/
|
8
|
-
static save: (base64: string, fileName: string) => void;
|
9
|
-
/**
|
10
|
-
* 获取文件扩展名
|
11
|
-
*/
|
12
|
-
static getExtension: (name: string) => string;
|
13
|
-
/**
|
14
|
-
* 判断当前文件名是否是excel文件
|
15
|
-
*/
|
16
|
-
static isExcel: (name: string) => boolean;
|
17
|
-
/**
|
18
|
-
* 判断当前文件是否是图片文件
|
19
|
-
*/
|
20
|
-
static isImage: (url: string) => boolean;
|
21
|
-
}
|
22
|
-
export default FileHelper;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
declare type Prop = {
|
2
|
-
key: string;
|
3
|
-
type: string;
|
4
|
-
remark: string;
|
5
|
-
};
|
6
|
-
/**
|
7
|
-
* JSON帮助类
|
8
|
-
*/
|
9
|
-
declare class JsonHelper {
|
10
|
-
/**
|
11
|
-
* 从树集合构建出Json对象
|
12
|
-
*/
|
13
|
-
static buildObject(tree: any[], childProp: string, fun: (node: any) => Prop): string;
|
14
|
-
/**
|
15
|
-
* 把字符串格式化为Json字符串
|
16
|
-
*/
|
17
|
-
static stringify(value: string): string;
|
18
|
-
/**
|
19
|
-
* 把字符串格式化为Json字符串
|
20
|
-
*/
|
21
|
-
static stringifyString(value: string): string;
|
22
|
-
/**
|
23
|
-
* 根据props中的.自动分割得到属性值
|
24
|
-
*/
|
25
|
-
static getValue(value: string, props: string): string;
|
26
|
-
/**
|
27
|
-
* 把json字符串合并到目标对象上
|
28
|
-
*/
|
29
|
-
static mergeTo(target: any, from: string): void;
|
30
|
-
}
|
31
|
-
export default JsonHelper;
|
@@ -1,46 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 数学帮助类
|
3
|
-
*/
|
4
|
-
declare class MathHelper {
|
5
|
-
/**
|
6
|
-
* 过滤某一页数据
|
7
|
-
*/
|
8
|
-
static filterPage: (rows: any[], page: number, size: number) => any[];
|
9
|
-
/**
|
10
|
-
* 总页数
|
11
|
-
*/
|
12
|
-
static pageCount: (count: number, size: number) => number;
|
13
|
-
/**
|
14
|
-
* 四舍五入
|
15
|
-
*/
|
16
|
-
static round: (value: number, digits: number) => string;
|
17
|
-
/**
|
18
|
-
* 天花板函数
|
19
|
-
*/
|
20
|
-
static ceil: (value: number) => number;
|
21
|
-
/**
|
22
|
-
* 获取百分比
|
23
|
-
*/
|
24
|
-
static getPercentage: (current: number, total: number) => number;
|
25
|
-
/**
|
26
|
-
* 获取百分比,保留2位小数
|
27
|
-
*/
|
28
|
-
static getPercentageText: (current: number, total: number) => string;
|
29
|
-
/**
|
30
|
-
* 获取进度文本
|
31
|
-
*/
|
32
|
-
static getProgressText: (current: number, total: number) => string;
|
33
|
-
/**
|
34
|
-
* 获取大小
|
35
|
-
*/
|
36
|
-
static size: (bytes: number) => string;
|
37
|
-
/**
|
38
|
-
* 生成指定范围内的随机数
|
39
|
-
*/
|
40
|
-
static random(start: number, end: number): number;
|
41
|
-
/**
|
42
|
-
* 获取最大值
|
43
|
-
*/
|
44
|
-
static max(...values: number[]): number;
|
45
|
-
}
|
46
|
-
export default MathHelper;
|