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
@@ -1,15 +1,14 @@
|
|
1
|
-
|
2
|
-
declare
|
3
|
-
declare const __VLS_templateResult: {
|
1
|
+
import { RowProps } from "./@types";
|
2
|
+
declare function __VLS_template(): {
|
4
3
|
slots: {
|
5
|
-
default?(_:
|
4
|
+
default?(_: {}): any;
|
6
5
|
};
|
7
6
|
refs: {};
|
8
|
-
attrs: Partial<
|
7
|
+
attrs: Partial<{}>;
|
9
8
|
};
|
10
|
-
type
|
11
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<RowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
13
12
|
export default _default;
|
14
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
15
14
|
new (): {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PagerProps } from "../@types";
|
2
|
+
declare const _default: import("vue").DefineComponent<PagerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
3
|
+
change: (value: number) => any;
|
4
|
+
"size-change": (value: number) => any;
|
5
|
+
}, string, import("vue").PublicProps, Readonly<PagerProps> & Readonly<{
|
6
|
+
onChange?: (value: number) => any;
|
7
|
+
"onSize-change"?: (value: number) => any;
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
9
|
+
export default _default;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
type __VLS_PublicProps = {
|
2
|
+
modelValue?: boolean;
|
3
|
+
};
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
5
|
+
"update:modelValue": (modelValue: boolean) => any;
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
7
|
+
"onUpdate:modelValue"?: (modelValue: boolean) => any;
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
9
|
+
export default _default;
|
@@ -1,16 +1,14 @@
|
|
1
|
-
import { SocketProgressProps } from "
|
2
|
-
declare
|
3
|
-
declare var __VLS_inheritedAttrs: {};
|
4
|
-
declare const __VLS_templateResult: {
|
1
|
+
import { SocketProgressProps } from "../@types";
|
2
|
+
declare function __VLS_template(): {
|
5
3
|
slots: {
|
6
|
-
default?(_:
|
4
|
+
default?(_: {}): any;
|
7
5
|
};
|
8
6
|
refs: {};
|
9
|
-
attrs: Partial<
|
7
|
+
attrs: Partial<{}>;
|
10
8
|
};
|
11
|
-
type
|
12
|
-
declare const __VLS_component: import("vue").DefineComponent<SocketProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SocketProgressProps & {}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}>;
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<SocketProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SocketProgressProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
14
12
|
export default _default;
|
15
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
16
14
|
new (): {
|
@@ -0,0 +1,20 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
|
+
title: {
|
3
|
+
type: StringConstructor;
|
4
|
+
};
|
5
|
+
content: {
|
6
|
+
type: StringConstructor;
|
7
|
+
};
|
8
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
9
|
+
retry: (...args: any[]) => void;
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
11
|
+
title: {
|
12
|
+
type: StringConstructor;
|
13
|
+
};
|
14
|
+
content: {
|
15
|
+
type: StringConstructor;
|
16
|
+
};
|
17
|
+
}>> & Readonly<{
|
18
|
+
onRetry?: (...args: any[]) => any;
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
20
|
+
export default _default;
|
@@ -1,3 +1,4 @@
|
|
1
|
-
import HaProgress from "./
|
1
|
+
import HaProgress from "./Index.vue";
|
2
2
|
import HaSocketProgress from "./SocketProgress.vue";
|
3
|
-
|
3
|
+
import HaSpinner from "./Spinner.vue";
|
4
|
+
export { HaProgress, HaSocketProgress, HaSpinner, };
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { TableProps } from "../@types";
|
2
|
+
declare let __VLS_typeProps: TableProps;
|
3
|
+
type __VLS_PublicProps = {
|
4
|
+
'page'?: number;
|
5
|
+
'size'?: number;
|
6
|
+
} & typeof __VLS_typeProps;
|
7
|
+
declare function __VLS_template(): {
|
8
|
+
slots: {
|
9
|
+
default?(_: {
|
10
|
+
row: any;
|
11
|
+
}): any;
|
12
|
+
};
|
13
|
+
refs: {};
|
14
|
+
attrs: Partial<{}>;
|
15
|
+
};
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
18
|
+
"update:page": (page: number) => any;
|
19
|
+
"update:size": (size: number) => any;
|
20
|
+
} & {
|
21
|
+
scroll: (value: number) => any;
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
23
|
+
onScroll?: (value: number) => any;
|
24
|
+
"onUpdate:page"?: (page: number) => any;
|
25
|
+
"onUpdate:size"?: (size: number) => any;
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
28
|
+
export default _default;
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
30
|
+
new (): {
|
31
|
+
$slots: S;
|
32
|
+
};
|
33
|
+
};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { TabProps } from "
|
2
|
-
declare const _default: import("vue").DefineComponent<TabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabProps & {}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}>;
|
1
|
+
import { TabProps } from "../@types";
|
2
|
+
declare const _default: import("vue").DefineComponent<TabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
3
3
|
export default _default;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
2
|
export default _default;
|
@@ -9,25 +9,23 @@ declare abstract class Cdn implements ICdn {
|
|
9
9
|
* 任务实例,用于控制并发
|
10
10
|
*/
|
11
11
|
task: ITask;
|
12
|
-
|
12
|
+
openAsync(conn: string): Promise<void>;
|
13
13
|
abstract getCrypto(): Promise<any>;
|
14
|
-
getECharts(
|
14
|
+
abstract getECharts(): Promise<any>;
|
15
15
|
abstract getElementPlus(): Promise<any>;
|
16
16
|
abstract getFortAwesome(): Promise<any>;
|
17
17
|
getMonaco(baseUrl?: string): Promise<any>;
|
18
|
-
getQuill(
|
18
|
+
getQuill(): Promise<any>;
|
19
19
|
abstract getWeiXin(): Promise<any>;
|
20
20
|
abstract getXlsx(): Promise<any>;
|
21
|
-
loadFilesAsync(path: string, files: string[]): Promise<void>;
|
22
|
-
loadAsync(path: string | string[]): Promise<HTMLElement[]>;
|
23
21
|
/**
|
24
|
-
*
|
25
|
-
* 这种方式,依赖的内部资源,会从当前站点加载
|
22
|
+
* 使用并发限制顺序加载资源,并防止monaco-editor的define函数冲突
|
26
23
|
*/
|
27
|
-
|
24
|
+
loadByOrder(basePath: string, paths: string[], name: string): Promise<any>;
|
25
|
+
loadFilesAsync(path: string, files: string[]): Promise<void>;
|
28
26
|
/**
|
29
27
|
* 通过注入DOM标签异步加载脚本或样式表,已防重
|
30
28
|
*/
|
31
|
-
|
29
|
+
loadAsync: (url: string | string[]) => Promise<HTMLElement[]>;
|
32
30
|
}
|
33
31
|
export default Cdn;
|
@@ -1,16 +1,12 @@
|
|
1
|
-
import { IDriver } from "../@types";
|
1
|
+
import { IDriver, IOpen } from "../@types";
|
2
2
|
/**
|
3
3
|
* CDN接口
|
4
4
|
*/
|
5
|
-
interface ICdn extends IDriver {
|
5
|
+
interface ICdn extends IDriver, IOpen {
|
6
6
|
/**
|
7
7
|
* CDN类型
|
8
8
|
*/
|
9
9
|
type: string;
|
10
|
-
/**
|
11
|
-
* 开启
|
12
|
-
*/
|
13
|
-
open(conn: string): Promise<void>;
|
14
10
|
/**
|
15
11
|
* 加解密
|
16
12
|
*/
|
@@ -47,10 +43,5 @@ interface ICdn extends IDriver {
|
|
47
43
|
* 异步加载单个路径下的多个文件
|
48
44
|
*/
|
49
45
|
loadFilesAsync(path: string, files: string[]): Promise<void>;
|
50
|
-
/**
|
51
|
-
* 加载资源,已防重
|
52
|
-
* VIP:同一异步方法被并发调用时,后续的调用会直接完成
|
53
|
-
*/
|
54
|
-
loadAsync(name: string | string[]): Promise<HTMLElement[]>;
|
55
46
|
}
|
56
47
|
export default ICdn;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import IEncoder from "./IEncoder";
|
2
|
-
import Factory from "../../
|
2
|
+
import Factory from "../../factory/Factory";
|
3
3
|
/**
|
4
4
|
* 编码器工厂
|
5
5
|
*/
|
6
6
|
declare class EncoderFactory extends Factory<IEncoder> {
|
7
|
-
|
7
|
+
open(): void;
|
8
8
|
/**
|
9
9
|
* 创建执行类型的Hash实例
|
10
10
|
*/
|
@@ -13,5 +13,6 @@ declare class EncoderFactory extends Factory<IEncoder> {
|
|
13
13
|
* 获取Base64 编码器对象
|
14
14
|
*/
|
15
15
|
getBase64(): Promise<IEncoder>;
|
16
|
+
get url(): IEncoder;
|
16
17
|
}
|
17
18
|
export default EncoderFactory;
|
@@ -5,7 +5,7 @@ import Encoder from "../Encoder";
|
|
5
5
|
declare class Base64Encoder extends Encoder {
|
6
6
|
type: string;
|
7
7
|
crypto: any;
|
8
|
-
|
8
|
+
openAsync(conn: string): Promise<void>;
|
9
9
|
encodeString(value: string): string;
|
10
10
|
decode(value: string): string;
|
11
11
|
}
|
@@ -4,7 +4,7 @@ import IExcel from "./IExcel";
|
|
4
4
|
*/
|
5
5
|
declare abstract class Excel implements IExcel {
|
6
6
|
type: string;
|
7
|
-
abstract
|
7
|
+
abstract openAsync(conn?: string): Promise<void>;
|
8
8
|
abstract export(dataRows: any[], name: string): any;
|
9
9
|
}
|
10
10
|
export default Excel;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import Factory from "../../
|
1
|
+
import Factory from "../../factory/Factory";
|
2
2
|
import IExplainer from "./IExplainer";
|
3
3
|
declare class ExplainerFactory extends Factory<IExplainer> {
|
4
|
-
|
4
|
+
open(): void;
|
5
5
|
}
|
6
6
|
export default ExplainerFactory;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import IFeature from "./IFeature";
|
2
|
-
import Factory from "../../
|
2
|
+
import Factory from "../../factory/Factory";
|
3
3
|
/**
|
4
4
|
* 特征工厂类
|
5
5
|
*/
|
6
6
|
declare class FeatureFactory extends Factory<IFeature> {
|
7
|
-
|
7
|
+
open(): void;
|
8
8
|
/**
|
9
9
|
* 获取指定特征实例
|
10
10
|
*/
|
@@ -1,12 +1,8 @@
|
|
1
|
-
import { IDriver } from "../@types";
|
1
|
+
import { IDriver, IOpen } from "../@types";
|
2
2
|
/**
|
3
3
|
* 特征接口
|
4
4
|
*/
|
5
|
-
interface IFeature extends IDriver {
|
6
|
-
/**
|
7
|
-
* 开启特征
|
8
|
-
*/
|
9
|
-
open(param: string): void;
|
5
|
+
interface IFeature extends IDriver, IOpen {
|
10
6
|
/**
|
11
7
|
* 添加事件
|
12
8
|
*/
|
@@ -4,7 +4,7 @@ import IFeature from "../IFeature";
|
|
4
4
|
*/
|
5
5
|
declare class ExpressionFeature implements IFeature {
|
6
6
|
type: string;
|
7
|
-
|
7
|
+
openAsync(param: string): void;
|
8
8
|
add(table: any, field: any, data: {}, row: {}): void;
|
9
9
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
10
10
|
copy(table: any, field: any, data: object): void;
|
@@ -4,7 +4,7 @@ import IFeature from "../IFeature";
|
|
4
4
|
*/
|
5
5
|
declare class I18NFeature implements IFeature {
|
6
6
|
type: string;
|
7
|
-
|
7
|
+
openAsync(param: string): void;
|
8
8
|
add(table: any, field: any, data: {}, row: {}): void;
|
9
9
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
10
10
|
copy(table: any, field: any, data: object): void;
|
@@ -4,7 +4,7 @@ import IFeature from "../IFeature";
|
|
4
4
|
*/
|
5
5
|
declare class SortFeature implements IFeature {
|
6
6
|
type: string;
|
7
|
-
|
7
|
+
openAsync(param: string): void;
|
8
8
|
add(table: any, field: any, data: object, row: object): void;
|
9
9
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
10
10
|
copy(table: any, field: any, data: object): void;
|
@@ -4,7 +4,7 @@ import IHasher from "./IHasher";
|
|
4
4
|
*/
|
5
5
|
declare abstract class Hasher implements IHasher {
|
6
6
|
type: string;
|
7
|
-
abstract
|
7
|
+
abstract openAsync(conn: string): Promise<void>;
|
8
8
|
abstract compute(value: string): Promise<string>;
|
9
9
|
}
|
10
10
|
export default Hasher;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import IHasher from "./IHasher";
|
2
|
-
import Factory from "../../
|
2
|
+
import Factory from "../../factory/Factory";
|
3
3
|
/**
|
4
4
|
* 哈希工厂
|
5
5
|
*/
|
6
6
|
declare class HasherFactory extends Factory<IHasher> {
|
7
|
-
|
7
|
+
open(): void;
|
8
8
|
createAsync(type: string, conn?: string): Promise<IHasher>;
|
9
9
|
/**
|
10
10
|
* 获取MD5 Hash对象
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import IHttp from "./IHttp";
|
2
2
|
import HttpRequest from "./entities/HttpRequest";
|
3
3
|
import HttpResponse from "./entities/HttpResponse";
|
4
|
+
import { ITemplate } from "../templates";
|
5
|
+
import { IEncoder } from "../encoders";
|
4
6
|
/**
|
5
7
|
* 请求器基类
|
6
8
|
*/
|
@@ -10,21 +12,34 @@ declare abstract class Http implements IHttp {
|
|
10
12
|
* 默认请求器
|
11
13
|
*/
|
12
14
|
http: IHttp;
|
13
|
-
|
15
|
+
/**
|
16
|
+
* 模板引擎
|
17
|
+
*/
|
18
|
+
template: ITemplate;
|
19
|
+
/**
|
20
|
+
* 编码器
|
21
|
+
*/
|
22
|
+
encoder: IEncoder;
|
23
|
+
/**
|
24
|
+
* 原型方法,保证子类可以通过super调用
|
25
|
+
* VIP:箭头函数定义的是实例方法,不在原型链上,子类无法通过super调用
|
26
|
+
*/
|
27
|
+
openAsync(conn: string): Promise<void>;
|
14
28
|
get onRequest(): (request: HttpRequest) => Promise<void>;
|
15
29
|
set onRequest(value: (request: HttpRequest) => Promise<void>);
|
16
30
|
get onResponse(): (response: HttpResponse) => Promise<void>;
|
17
31
|
set onResponse(value: (response: HttpResponse) => Promise<void>);
|
32
|
+
prepareAsync(request: HttpRequest, variables: string[]): Promise<void>;
|
18
33
|
get: (path: string, params?: any) => Promise<any>;
|
19
|
-
|
34
|
+
getAsync: (path: string, params?: any) => Promise<HttpResponse>;
|
20
35
|
post: (path: string, body: any) => Promise<any>;
|
21
|
-
|
22
|
-
patch: (path: string) => Promise<any>;
|
23
|
-
|
24
|
-
|
36
|
+
postAsync: (path: string, body?: any) => Promise<HttpResponse>;
|
37
|
+
patch: (path: string, body?: any) => Promise<any>;
|
38
|
+
patchAsync: (path: string, body?: any) => Promise<HttpResponse>;
|
39
|
+
sendAsync: (request: HttpRequest) => Promise<HttpResponse>;
|
25
40
|
/**
|
26
41
|
* 获取请求消息
|
27
42
|
*/
|
28
|
-
getRequest: (method: string, contentType: string, path: string, body?: any) => HttpRequest
|
43
|
+
getRequest: (method: string, contentType: string, path: string, body?: any) => Promise<HttpRequest>;
|
29
44
|
}
|
30
45
|
export default Http;
|
@@ -1,15 +1,10 @@
|
|
1
1
|
import IHttp from "./IHttp";
|
2
|
-
import Factory from "../../
|
3
|
-
import { Ref } from "../../plugins";
|
2
|
+
import Factory from "../../factory/Factory";
|
4
3
|
/**
|
5
4
|
* 请求器工厂类
|
6
5
|
*/
|
7
6
|
declare class HttpFactory extends Factory<IHttp> {
|
8
|
-
|
9
|
-
/**
|
10
|
-
* 创建并开启
|
11
|
-
*/
|
12
|
-
createById(id: number, driverRef?: Ref<any>): Promise<IHttp>;
|
7
|
+
open(): void;
|
13
8
|
/**
|
14
9
|
* 获取默认请求器
|
15
10
|
*/
|
@@ -14,32 +14,36 @@ interface IHttp extends IDriver, IOpen {
|
|
14
14
|
*/
|
15
15
|
onResponse: (response: HttpResponse) => Promise<void>;
|
16
16
|
/**
|
17
|
-
*
|
17
|
+
* 请求准备
|
18
|
+
*/
|
19
|
+
prepareAsync(request: HttpRequest, variables: string[]): Promise<void>;
|
20
|
+
/**
|
21
|
+
* 发送GET请求,得到响应体
|
18
22
|
*/
|
19
23
|
get(path: string, params?: any): Promise<any>;
|
20
24
|
/**
|
21
|
-
* 发送GET
|
25
|
+
* 发送GET请求,得到响应
|
22
26
|
*/
|
23
|
-
|
27
|
+
getAsync(path: string, params?: any): Promise<HttpResponse>;
|
24
28
|
/**
|
25
|
-
* 发送Post
|
29
|
+
* 发送Post请求,得到响应体
|
26
30
|
*/
|
27
31
|
post(path: string, body?: any): Promise<any>;
|
28
32
|
/**
|
29
|
-
* 发送Post
|
33
|
+
* 发送Post请求,得到响应
|
30
34
|
*/
|
31
|
-
|
35
|
+
postAsync(path: string, body?: any): Promise<HttpResponse>;
|
32
36
|
/**
|
33
|
-
* 发送Patch
|
37
|
+
* 发送Patch请求,得到响应体
|
34
38
|
*/
|
35
|
-
patch(path: string,
|
39
|
+
patch(path: string, body: any): Promise<any>;
|
36
40
|
/**
|
37
|
-
* 发送Patch
|
41
|
+
* 发送Patch请求,得到响应
|
38
42
|
*/
|
39
|
-
|
43
|
+
patchAsync(path: string, body: any): Promise<HttpResponse>;
|
40
44
|
/**
|
41
|
-
*
|
45
|
+
* 发送请求,得到响应
|
42
46
|
*/
|
43
|
-
|
47
|
+
sendAsync(request: HttpRequest): Promise<HttpResponse>;
|
44
48
|
}
|
45
49
|
export default IHttp;
|
@@ -7,7 +7,7 @@ declare class HttpResponse extends HttpMessage {
|
|
7
7
|
/**
|
8
8
|
* 是否成功
|
9
9
|
*/
|
10
|
-
|
10
|
+
ok: boolean;
|
11
11
|
/**
|
12
12
|
* 错误消息
|
13
13
|
*/
|
@@ -16,6 +16,10 @@ declare class HttpResponse extends HttpMessage {
|
|
16
16
|
* 请求耗时(ms)
|
17
17
|
*/
|
18
18
|
elapsed: number;
|
19
|
+
/**
|
20
|
+
* 内容长度
|
21
|
+
*/
|
22
|
+
length: number;
|
19
23
|
/**
|
20
24
|
* 响应状态码
|
21
25
|
*/
|
@@ -14,7 +14,7 @@ declare class DefaultHttp extends Http {
|
|
14
14
|
set onRequest(value: (request: HttpRequest) => Promise<void>);
|
15
15
|
get onResponse(): (response: HttpResponse) => Promise<void>;
|
16
16
|
set onResponse(value: (response: HttpResponse) => Promise<void>);
|
17
|
-
|
17
|
+
sendAsync: (request: HttpRequest) => Promise<HttpResponse>;
|
18
18
|
/**
|
19
19
|
* 使用Fetch发送请求,谷歌插件场景专用
|
20
20
|
*/
|