halo-fe 1.0.31 → 1.0.33
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +4753 -4504
- package/dist/style.css +1 -1
- package/esm/@types/CreateFeOptions.d.ts +5 -2
- package/esm/@types/FeOptions.d.ts +32 -0
- package/esm/@types/index.d.ts +1 -2
- package/esm/apps/AppConstant.d.ts +1 -2
- package/esm/apps/index.d.ts +1 -2
- package/esm/coms/@types/ColumnEmit.d.ts +3 -0
- package/esm/coms/@types/ColumnProps.d.ts +5 -0
- package/esm/coms/@types/PagerEmit.d.ts +1 -2
- package/esm/coms/@types/PagerProps.d.ts +1 -2
- package/esm/coms/@types/ScrollerProps.d.ts +1 -2
- package/esm/coms/@types/SocketProgressProps.d.ts +1 -2
- package/esm/coms/@types/TabProps.d.ts +1 -2
- package/esm/coms/@types/TableEmit.d.ts +1 -2
- package/esm/coms/@types/TableProps.d.ts +1 -2
- package/esm/coms/@types/index.d.ts +9 -8
- package/esm/coms/Empty.vue.d.ts +3 -2
- package/esm/coms/Fill.vue.d.ts +3 -2
- package/esm/coms/Scroller.vue.d.ts +4 -3
- package/esm/coms/Timer.vue.d.ts +3 -2
- package/esm/coms/cards/Index.vue.d.ts +3 -2
- package/esm/coms/conditions/@types/ConditionGroupProps.d.ts +2 -3
- package/esm/coms/conditions/@types/ConditionProps.d.ts +1 -2
- package/esm/coms/conditions/@types/index.d.ts +2 -3
- 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/CodeEmit.d.ts +1 -2
- package/esm/coms/controls/@types/CodeIntelli.d.ts +1 -2
- package/esm/coms/controls/@types/CodeProps.d.ts +3 -4
- package/esm/coms/controls/@types/Range.d.ts +1 -2
- package/esm/coms/controls/@types/RichTextOptions.d.ts +0 -1
- package/esm/coms/controls/@types/RichTextProps.d.ts +1 -2
- package/esm/coms/controls/@types/index.d.ts +5 -6
- package/esm/coms/controls/Code.vue.d.ts +1 -1
- package/esm/coms/controls/Compare.vue.d.ts +1 -1
- package/esm/coms/controls/Input.vue.d.ts +1 -1
- package/esm/coms/controls/Option.vue.d.ts +1 -1
- package/esm/coms/controls/RichText.vue.d.ts +4 -2
- package/esm/coms/controls/Select.vue.d.ts +1 -1
- package/esm/coms/layouts/@types/RowProps.d.ts +1 -2
- package/esm/coms/layouts/@types/index.d.ts +1 -2
- package/esm/coms/layouts/Col.vue.d.ts +3 -2
- package/esm/coms/layouts/Container.vue.d.ts +9 -4
- package/esm/coms/layouts/Desc.vue.d.ts +1 -1
- package/esm/coms/layouts/Row.vue.d.ts +3 -2
- package/esm/coms/pagers/Index.vue.d.ts +1 -1
- package/esm/coms/progresses/Circle.vue.d.ts +1 -1
- package/esm/coms/progresses/Index.vue.d.ts +2 -2
- package/esm/coms/progresses/SocketProgress.vue.d.ts +3 -2
- package/esm/coms/tables/Column.vue.d.ts +22 -0
- package/esm/coms/tables/Index.vue.d.ts +9 -8
- package/esm/coms/tabs/Tab.vue.d.ts +1 -1
- package/esm/coms/tags/@types/TagProps.d.ts +1 -2
- package/esm/coms/tags/@types/index.d.ts +1 -2
- package/esm/coms/tags/Index.vue.d.ts +3 -2
- package/esm/coms/texts/@types/DanceProps.d.ts +1 -2
- package/esm/coms/texts/@types/index.d.ts +1 -2
- package/esm/coms/texts/Dance.vue.d.ts +1 -1
- package/esm/drivers/@types/IDispose.d.ts +1 -2
- package/esm/drivers/@types/IDriver.d.ts +1 -2
- package/esm/drivers/@types/IOpen.d.ts +1 -2
- package/esm/drivers/@types/index.d.ts +3 -4
- package/esm/drivers/bridges/IBridge.d.ts +1 -2
- package/esm/drivers/builders/Builder.d.ts +2 -3
- package/esm/drivers/builders/BuilderFactory.d.ts +3 -4
- package/esm/drivers/builders/IBuilder.d.ts +1 -2
- package/esm/drivers/builders/entities/ProviderTable.d.ts +1 -2
- package/esm/drivers/builders/entities/index.d.ts +1 -2
- package/esm/drivers/builders/implement/JsonBuilder.d.ts +2 -3
- package/esm/drivers/builders/implement/MongoBuilder.d.ts +2 -3
- package/esm/drivers/builders/implement/MySqlBuilder.d.ts +2 -3
- package/esm/drivers/builders/implement/SqlBuilder.d.ts +2 -3
- package/esm/drivers/builders/implement/index.d.ts +4 -0
- package/esm/drivers/builders/index.d.ts +2 -3
- package/esm/drivers/cdns/Cdn.d.ts +3 -7
- package/esm/drivers/cdns/CdnFactory.d.ts +3 -4
- package/esm/drivers/cdns/ICdn.d.ts +5 -2
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +2 -3
- package/esm/drivers/cdns/implements/ThirdCdn.d.ts +2 -3
- package/esm/drivers/cdns/implements/index.d.ts +2 -0
- package/esm/drivers/cdns/index.d.ts +3 -4
- package/esm/drivers/cryptors/Cryptor.d.ts +10 -0
- package/esm/drivers/cryptors/CryptorFactory.d.ts +12 -0
- package/esm/drivers/cryptors/ICryptor.d.ts +14 -0
- package/esm/drivers/cryptors/implements/AesCryptor.d.ts +9 -0
- package/esm/drivers/cryptors/implements/PoJunCryptor.d.ts +13 -0
- package/esm/drivers/cryptors/implements/index.d.ts +2 -0
- package/esm/drivers/cryptors/index.d.ts +2 -0
- package/esm/drivers/encoders/Encoder.d.ts +2 -3
- package/esm/drivers/encoders/EncoderFactory.d.ts +3 -4
- package/esm/drivers/encoders/IEncoder.d.ts +1 -2
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +2 -3
- package/esm/drivers/encoders/implement/UrlEncoder.d.ts +2 -3
- package/esm/drivers/encoders/implement/index.d.ts +2 -0
- package/esm/drivers/encoders/index.d.ts +2 -3
- package/esm/drivers/excels/Excel.d.ts +2 -3
- package/esm/drivers/excels/ExcelFactory.d.ts +3 -4
- package/esm/drivers/excels/IExcel.d.ts +1 -2
- package/esm/drivers/excels/implements/XlsxExcel.d.ts +2 -3
- package/esm/drivers/excels/implements/index.d.ts +1 -0
- package/esm/drivers/excels/index.d.ts +2 -3
- package/esm/drivers/explainers/Explainer.d.ts +2 -3
- package/esm/drivers/explainers/ExplainerFactory.d.ts +3 -4
- package/esm/drivers/explainers/IExplainer.d.ts +1 -2
- package/esm/drivers/explainers/implement/JsonExplainer.d.ts +2 -3
- package/esm/drivers/explainers/implement/index.d.ts +1 -0
- package/esm/drivers/explainers/index.d.ts +1 -2
- package/esm/drivers/features/Feature.d.ts +2 -3
- package/esm/drivers/features/FeatureFactory.d.ts +3 -4
- package/esm/drivers/features/IFeature.d.ts +1 -2
- 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/features/implements/index.d.ts +3 -0
- package/esm/drivers/features/index.d.ts +2 -3
- package/esm/drivers/hashers/Hasher.d.ts +2 -3
- package/esm/drivers/hashers/HasherFactory.d.ts +3 -4
- package/esm/drivers/hashers/IHasher.d.ts +1 -2
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +2 -3
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +2 -3
- package/esm/drivers/hashers/implement/index.d.ts +2 -0
- package/esm/drivers/hashers/index.d.ts +2 -3
- package/esm/drivers/https/Http.d.ts +3 -5
- package/esm/drivers/https/HttpFactory.d.ts +6 -6
- package/esm/drivers/https/IHttp.d.ts +3 -5
- package/esm/drivers/https/entities/HttpMessage.d.ts +3 -4
- package/esm/drivers/https/entities/HttpModel.d.ts +2 -3
- package/esm/drivers/https/entities/HttpProgress.d.ts +2 -3
- package/esm/drivers/https/entities/HttpRequest.d.ts +2 -3
- package/esm/drivers/https/entities/HttpResponse.d.ts +3 -4
- package/esm/drivers/https/entities/index.d.ts +4 -4
- package/esm/drivers/https/implements/DefaultHttp.d.ts +3 -5
- package/esm/drivers/https/implements/EiHttp.d.ts +13 -18
- package/esm/drivers/https/implements/FeiShuHttp.d.ts +2 -3
- package/esm/drivers/https/implements/HaloHttp.d.ts +4 -9
- package/esm/drivers/https/implements/MkHttp.d.ts +3 -4
- package/esm/drivers/https/implements/index.d.ts +5 -0
- package/esm/drivers/https/index.d.ts +3 -4
- package/esm/drivers/i18ns/I18n.d.ts +12 -13
- package/esm/drivers/i18ns/I18nFactory.d.ts +3 -4
- package/esm/drivers/i18ns/II18n.d.ts +11 -12
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +3 -4
- package/esm/drivers/i18ns/implements/index.d.ts +1 -0
- package/esm/drivers/i18ns/index.d.ts +2 -3
- package/esm/drivers/identities/IIdentity.d.ts +15 -0
- package/esm/drivers/identities/Identity.d.ts +11 -0
- package/esm/drivers/identities/IdentityFactory.d.ts +8 -0
- package/esm/drivers/identities/entities/IdentityPayload.d.ts +5 -0
- package/esm/drivers/identities/entities/index.d.ts +1 -0
- package/esm/drivers/identities/implements/DefaultIdentity.d.ts +9 -0
- package/esm/drivers/identities/implements/EiIdentity.d.ts +15 -0
- package/esm/drivers/identities/implements/index.d.ts +2 -0
- package/esm/drivers/identities/index.d.ts +3 -0
- package/esm/drivers/index.d.ts +2 -51
- package/esm/drivers/messengers/IMessenger.d.ts +1 -2
- package/esm/drivers/messengers/Messenger.d.ts +2 -3
- package/esm/drivers/messengers/MessengerFactory.d.ts +5 -6
- package/esm/drivers/messengers/implement/ConsoleMessenger.d.ts +2 -3
- package/esm/drivers/messengers/implement/index.d.ts +1 -0
- package/esm/drivers/messengers/index.d.ts +3 -4
- package/esm/drivers/providers/IProvider.d.ts +2 -3
- package/esm/drivers/providers/Provider.d.ts +12 -13
- package/esm/drivers/providers/ProviderFactory.d.ts +6 -7
- package/esm/drivers/providers/helpers/SqlHelper.d.ts +1 -2
- package/esm/drivers/providers/helpers/index.d.ts +1 -2
- package/esm/drivers/providers/implements/CookieProvider.d.ts +9 -14
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +12 -16
- package/esm/drivers/providers/implements/StorageProvider.d.ts +13 -14
- package/esm/drivers/providers/implements/index.d.ts +3 -0
- package/esm/drivers/providers/index.d.ts +2 -3
- package/esm/drivers/signers/ISigner.d.ts +10 -23
- package/esm/drivers/signers/Signer.d.ts +8 -11
- package/esm/drivers/signers/SignerFactory.d.ts +3 -4
- package/esm/drivers/signers/entities/SignerInfo.d.ts +13 -0
- package/esm/drivers/signers/entities/index.d.ts +1 -0
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +11 -11
- package/esm/drivers/signers/implements/EiSigner.d.ts +21 -0
- package/esm/drivers/signers/implements/index.d.ts +2 -0
- package/esm/drivers/signers/index.d.ts +2 -3
- package/esm/drivers/sockets/@types/SubscribedWindow.d.ts +1 -2
- package/esm/drivers/sockets/@types/index.d.ts +1 -2
- package/esm/drivers/sockets/ISocket.d.ts +5 -6
- package/esm/drivers/sockets/Socket.d.ts +6 -7
- package/esm/drivers/sockets/SocketFactory.d.ts +6 -6
- package/esm/drivers/sockets/entities/SocketProgress.d.ts +1 -2
- package/esm/drivers/sockets/entities/SocketResponse.d.ts +1 -2
- package/esm/drivers/sockets/entities/index.d.ts +2 -3
- package/esm/drivers/sockets/implement/DefaultSocket.d.ts +30 -8
- package/esm/drivers/sockets/implement/index.d.ts +1 -0
- package/esm/drivers/sockets/index.d.ts +2 -3
- package/esm/drivers/ssos/ISso.d.ts +4 -12
- package/esm/drivers/ssos/Sso.d.ts +6 -10
- package/esm/drivers/ssos/SsoFactory.d.ts +3 -4
- package/esm/drivers/ssos/entities/SsoUser.d.ts +1 -2
- package/esm/drivers/ssos/entities/index.d.ts +1 -2
- package/esm/drivers/ssos/implements/AnonymousSso.d.ts +5 -10
- package/esm/drivers/ssos/implements/BearerSso.d.ts +4 -9
- package/esm/drivers/ssos/implements/NioSso.d.ts +4 -9
- package/esm/drivers/ssos/implements/SecretSso.d.ts +4 -9
- package/esm/drivers/ssos/implements/WeiXinSso.d.ts +3 -9
- package/esm/drivers/ssos/implements/index.d.ts +5 -0
- package/esm/drivers/ssos/index.d.ts +2 -3
- package/esm/drivers/tasks/ITask.d.ts +1 -2
- package/esm/drivers/tasks/Task.d.ts +2 -3
- package/esm/drivers/tasks/TaskFactory.d.ts +7 -4
- package/esm/drivers/tasks/implement/MemoryTask.d.ts +3 -4
- package/esm/drivers/tasks/implement/index.d.ts +1 -0
- package/esm/drivers/tasks/index.d.ts +2 -3
- package/esm/drivers/templates/ITemplate.d.ts +1 -2
- package/esm/drivers/templates/Template.d.ts +2 -3
- package/esm/drivers/templates/TemplateFactory.d.ts +7 -4
- package/esm/drivers/templates/implement/LiquidTemplate.d.ts +2 -3
- package/esm/drivers/templates/implement/index.d.ts +1 -0
- package/esm/drivers/templates/index.d.ts +2 -3
- package/esm/drivers/util/@types/JsonConfig.d.ts +1 -2
- package/esm/drivers/util/@types/TreeNodeProp.d.ts +1 -2
- package/esm/drivers/util/@types/index.d.ts +2 -3
- package/esm/drivers/util/IUtil.d.ts +1 -2
- package/esm/drivers/util/Util.d.ts +2 -3
- package/esm/drivers/util/UtilFactory.d.ts +4 -5
- package/esm/drivers/util/implements/ArrayUtil.d.ts +2 -3
- package/esm/drivers/util/implements/BrowserUtil.d.ts +2 -3
- package/esm/drivers/util/implements/ComponentUtil.d.ts +2 -3
- package/esm/drivers/util/implements/DictionaryUtil.d.ts +2 -3
- package/esm/drivers/util/implements/DomUtil.d.ts +2 -3
- package/esm/drivers/util/implements/EventUtil.d.ts +2 -3
- package/esm/drivers/util/implements/FileUtil.d.ts +2 -3
- package/esm/drivers/util/implements/HtmlUtil.d.ts +2 -3
- package/esm/drivers/util/implements/ImageUtil.d.ts +2 -3
- package/esm/drivers/util/implements/JsonUtil.d.ts +3 -4
- package/esm/drivers/util/implements/MathUtil.d.ts +2 -3
- package/esm/drivers/util/implements/MicroUtil.d.ts +2 -3
- package/esm/drivers/util/implements/MountUtil.d.ts +2 -3
- package/esm/drivers/util/implements/ObjectUtil.d.ts +2 -3
- package/esm/drivers/util/implements/ScrollUtil.d.ts +2 -3
- package/esm/drivers/util/implements/SignUtil.d.ts +2 -3
- package/esm/drivers/util/implements/StringUtil.d.ts +2 -3
- package/esm/drivers/util/implements/TaskUtil.d.ts +2 -3
- package/esm/drivers/util/implements/TimeUtil.d.ts +20 -21
- package/esm/drivers/util/implements/TreeUtil.d.ts +2 -3
- package/esm/drivers/util/implements/UrlUtil.d.ts +4 -5
- package/esm/drivers/util/implements/index.d.ts +21 -0
- package/esm/drivers/util/index.d.ts +2 -23
- package/esm/drivers/utilities/@types/DragEvent.d.ts +2 -3
- package/esm/drivers/utilities/@types/DragOptions.d.ts +3 -4
- package/esm/drivers/utilities/@types/Position.d.ts +1 -2
- package/esm/drivers/utilities/@types/Rect.d.ts +2 -3
- package/esm/drivers/utilities/@types/index.d.ts +4 -5
- package/esm/drivers/utilities/IUtility.d.ts +1 -2
- package/esm/drivers/utilities/Utility.d.ts +2 -3
- package/esm/drivers/utilities/UtilityFactory.d.ts +4 -11
- package/esm/drivers/utilities/implement/AffixUtility.d.ts +2 -3
- package/esm/drivers/utilities/implement/DeltaUtility.d.ts +2 -3
- package/esm/drivers/utilities/implement/EventUtility.d.ts +2 -3
- package/esm/drivers/utilities/implement/KeyboardUtility.d.ts +2 -3
- package/esm/drivers/utilities/implement/MouseUtility.d.ts +2 -3
- package/esm/drivers/utilities/implement/RandomUtility.d.ts +2 -3
- package/esm/drivers/utilities/implement/SaveUtility.d.ts +3 -8
- package/esm/drivers/utilities/implement/index.d.ts +7 -0
- package/esm/drivers/utilities/index.d.ts +2 -8
- package/esm/drivers/videos/IVideo.d.ts +1 -2
- package/esm/drivers/videos/VideoFactory.d.ts +3 -4
- package/esm/drivers/videos/index.d.ts +1 -2
- package/esm/drivers/voices/Voice.d.ts +1 -2
- package/esm/drivers/voices/VoiceFactory.d.ts +2 -3
- package/esm/drivers/voices/implement/DefaultVoice.d.ts +1 -2
- package/esm/drivers/voices/implement/TencentVoice.d.ts +1 -2
- package/esm/drivers/voices/implement/index.d.ts +2 -0
- package/esm/drivers/voices/index.d.ts +1 -2
- package/esm/factory/Drivers.d.ts +52 -0
- package/esm/factory/Factories.d.ts +8 -5
- package/esm/factory/Factory.d.ts +5 -6
- package/esm/factory/I18ns.d.ts +25 -0
- package/esm/factory/IFactory.d.ts +1 -2
- package/esm/factory/Repos.d.ts +22 -0
- package/esm/factory/Svcs.d.ts +85 -0
- package/esm/factory/Utils.d.ts +2 -3
- package/esm/factory/index.d.ts +7 -4
- package/esm/main.d.ts +3 -3
- package/esm/plugins/Ref.d.ts +1 -2
- package/esm/plugins/index.d.ts +1 -1
- package/esm/repos/IRepo.d.ts +1 -2
- package/esm/repos/Repo.d.ts +2 -3
- package/esm/repos/RepoFactory.d.ts +4 -7
- package/esm/repos/entities/KeyboardType.d.ts +1 -2
- package/esm/repos/entities/index.d.ts +1 -2
- package/esm/repos/implements/ModuleRepo.d.ts +11 -10
- package/esm/repos/implements/QueryRepo.d.ts +2 -3
- package/esm/repos/implements/SettingRepo.d.ts +1 -2
- package/esm/repos/implements/index.d.ts +3 -0
- package/esm/repos/index.d.ts +3 -12
- package/esm/svcs/ISvc.d.ts +1 -2
- package/esm/svcs/Svc.d.ts +2 -3
- package/esm/svcs/SvcFactory.d.ts +4 -5
- package/esm/svcs/entities/AppConfig.d.ts +1 -2
- package/esm/svcs/entities/SysConfig.d.ts +26 -5
- package/esm/svcs/entities/UserConfig.d.ts +1 -2
- package/esm/svcs/entities/index.d.ts +2 -4
- package/esm/svcs/implement/ConfigSvc.d.ts +5 -6
- package/esm/svcs/implement/DriverSvc.d.ts +2 -3
- package/esm/svcs/implement/EnvSvc.d.ts +1 -2
- package/esm/svcs/implement/LogSvc.d.ts +1 -2
- package/esm/svcs/implement/SettingSvc.d.ts +1 -2
- package/esm/svcs/implement/UserSvc.d.ts +1 -2
- package/esm/svcs/implement/index.d.ts +6 -1
- package/esm/svcs/index.d.ts +1 -51
- package/package.json +5 -5
@@ -2,7 +2,7 @@ import { IDriver, IDispose } from "../@types";
|
|
2
2
|
/**
|
3
3
|
* 任务接口
|
4
4
|
*/
|
5
|
-
interface ITask extends IDriver, IDispose {
|
5
|
+
export interface ITask extends IDriver, IDispose {
|
6
6
|
/**
|
7
7
|
* 任务并发数量限制
|
8
8
|
*/
|
@@ -31,4 +31,3 @@ interface ITask extends IDriver, IDispose {
|
|
31
31
|
*/
|
32
32
|
interval(ms: number, task: () => void): void;
|
33
33
|
}
|
34
|
-
export default ITask;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import ITask from "./ITask";
|
1
|
+
import { ITask } from "./ITask";
|
2
2
|
/**
|
3
3
|
* 任务基类
|
4
4
|
*/
|
5
|
-
declare abstract class Task implements ITask {
|
5
|
+
export declare abstract class Task implements ITask {
|
6
6
|
type: string;
|
7
7
|
taskLimit: number;
|
8
8
|
abstract execute<T>(entities: T[], threads: number, handler: (chunk: T[], index: number) => Promise<void>): Promise<void>;
|
@@ -12,4 +12,3 @@ declare abstract class Task implements ITask {
|
|
12
12
|
abstract interval(ms: number, task: () => void): void;
|
13
13
|
abstract dispose(): void;
|
14
14
|
}
|
15
|
-
export default Task;
|
@@ -1,10 +1,13 @@
|
|
1
|
-
import Factory from "../../factory
|
2
|
-
import ITask from "./ITask";
|
1
|
+
import { Factory } from "../../factory";
|
2
|
+
import { ITask } from "./ITask";
|
3
3
|
/**
|
4
4
|
* 任务工厂类
|
5
5
|
*/
|
6
|
-
declare class TaskFactory extends Factory<ITask> {
|
6
|
+
export declare class TaskFactory extends Factory<ITask> {
|
7
7
|
type: string;
|
8
8
|
open(): void;
|
9
|
+
/**
|
10
|
+
* 创建内存任务
|
11
|
+
*/
|
12
|
+
createMemory(): ITask;
|
9
13
|
}
|
10
|
-
export default TaskFactory;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Task from "../Task";
|
1
|
+
import { Task } from "../Task";
|
2
2
|
/**
|
3
3
|
* 内存任务
|
4
4
|
*/
|
5
|
-
declare class MemoryTask extends Task {
|
5
|
+
export declare class MemoryTask extends Task {
|
6
6
|
type: string;
|
7
7
|
intervalTimeout: any;
|
8
8
|
execute<T>(entities: T[], threads: number, handler: (chunk: T[], index: number) => Promise<void>): Promise<void>;
|
@@ -20,11 +20,10 @@ declare class MemoryTask extends Task {
|
|
20
20
|
/**
|
21
21
|
* 按照并发执行
|
22
22
|
*/
|
23
|
-
private
|
23
|
+
private runAsync;
|
24
24
|
lastDebounceTime: number;
|
25
25
|
lastDebounceTimeout: any;
|
26
26
|
debounce: (fn: (args: any) => Promise<void>, time: number, args?: any) => void;
|
27
27
|
interval(ms: number, task: () => void): void;
|
28
28
|
dispose(): void;
|
29
29
|
}
|
30
|
-
export default MemoryTask;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./MemoryTask";
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export { type ITask, TaskFactory };
|
1
|
+
export * from "./ITask";
|
2
|
+
export * from "./TaskFactory";
|
@@ -2,10 +2,9 @@ import { IDriver } from "../@types";
|
|
2
2
|
/**
|
3
3
|
* 模板引擎接口
|
4
4
|
*/
|
5
|
-
interface ITemplate extends IDriver {
|
5
|
+
export interface ITemplate extends IDriver {
|
6
6
|
/**
|
7
7
|
* 模板渲染
|
8
8
|
*/
|
9
9
|
renderAsync(template: string, model: any): Promise<string>;
|
10
10
|
}
|
11
|
-
export default ITemplate;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import ITemplate from "./ITemplate";
|
2
|
-
declare abstract class Template implements ITemplate {
|
1
|
+
import { ITemplate } from "./ITemplate";
|
2
|
+
export declare abstract class Template implements ITemplate {
|
3
3
|
type: string;
|
4
4
|
abstract renderAsync(template: string, model: any): Promise<string>;
|
5
5
|
}
|
6
|
-
export default Template;
|
@@ -1,10 +1,13 @@
|
|
1
|
-
import Factory from "../../factory
|
2
|
-
import ITemplate from "./ITemplate";
|
1
|
+
import { Factory } from "../../factory";
|
2
|
+
import { ITemplate } from "./ITemplate";
|
3
3
|
/**
|
4
4
|
* 模板工厂
|
5
5
|
*/
|
6
|
-
declare class TemplateFactory extends Factory<ITemplate> {
|
6
|
+
export declare class TemplateFactory extends Factory<ITemplate> {
|
7
7
|
type: string;
|
8
8
|
open(): void;
|
9
|
+
/**
|
10
|
+
* 创建Liquid模板引擎
|
11
|
+
*/
|
12
|
+
createLiquid(): ITemplate;
|
9
13
|
}
|
10
|
-
export default TemplateFactory;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import Template from "../Template";
|
2
|
-
declare class LiquidTemplate extends Template {
|
1
|
+
import { Template } from "../Template";
|
2
|
+
export declare class LiquidTemplate extends Template {
|
3
3
|
type: string;
|
4
4
|
renderAsync(template: string, model: any): Promise<string>;
|
5
5
|
}
|
6
|
-
export default LiquidTemplate;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./LiquidTemplate";
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export { type ITemplate, TemplateFactory };
|
1
|
+
export * from "./ITemplate";
|
2
|
+
export * from "./TemplateFactory";
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export { JsonConfig, type TreeNodeProp };
|
1
|
+
export * from "./JsonConfig";
|
2
|
+
export * from "./TreeNodeProp";
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import Factory from "../../factory
|
2
|
-
import IUtil from "./IUtil";
|
3
|
-
import { ArrayUtil, BrowserUtil, ComponentUtil, DictionaryUtil, DomUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, JsonUtil, MathUtil, MicroUtil, MountUtil, ObjectUtil, ScrollUtil, SignUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, UrlUtil } from "./";
|
1
|
+
import { Factory } from "../../factory";
|
2
|
+
import { IUtil } from "./IUtil";
|
3
|
+
import { ArrayUtil, BrowserUtil, ComponentUtil, DictionaryUtil, DomUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, JsonUtil, MathUtil, MicroUtil, MountUtil, ObjectUtil, ScrollUtil, SignUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, UrlUtil } from "./implements";
|
4
4
|
/**
|
5
5
|
* 帮助类工厂
|
6
6
|
*/
|
7
|
-
declare class UtilFactory extends Factory<IUtil> {
|
7
|
+
export declare class UtilFactory extends Factory<IUtil> {
|
8
8
|
type: string;
|
9
9
|
open(): void;
|
10
10
|
get array(): ArrayUtil;
|
@@ -29,4 +29,3 @@ declare class UtilFactory extends Factory<IUtil> {
|
|
29
29
|
get url(): UrlUtil;
|
30
30
|
get sign(): SignUtil;
|
31
31
|
}
|
32
|
-
export default UtilFactory;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 数组帮助类
|
4
4
|
*/
|
5
|
-
declare class ArrayUtil extends Util {
|
5
|
+
export declare class ArrayUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 获取指定数组分成每片指定长度后的集合
|
@@ -120,4 +120,3 @@ declare class ArrayUtil extends Util {
|
|
120
120
|
*/
|
121
121
|
replaceOrAdd(entities: any[], selectFn: (value: any) => boolean, replacement: any): void;
|
122
122
|
}
|
123
|
-
export default ArrayUtil;
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 多语言帮助类
|
4
4
|
*/
|
5
|
-
declare class BrowserUtil extends Util {
|
5
|
+
export declare class BrowserUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 获取浏览器默认语言
|
9
9
|
*/
|
10
10
|
getLanguage(): "zh-cn" | "en";
|
11
11
|
}
|
12
|
-
export default BrowserUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 组件帮助类
|
4
4
|
*/
|
5
|
-
declare class ComponentUtil extends Util {
|
5
|
+
export declare class ComponentUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 根据动态加载的组件对象,得到组件集合
|
@@ -17,4 +17,3 @@ declare class ComponentUtil extends Util {
|
|
17
17
|
*/
|
18
18
|
detectLoaded(ref: any, cb: Function): void;
|
19
19
|
}
|
20
|
-
export default ComponentUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 字典帮助类
|
4
4
|
*/
|
5
|
-
declare class DictionaryUtil extends Util {
|
5
|
+
export declare class DictionaryUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 从指定字典中提取忽略大小写的key的值
|
@@ -37,4 +37,3 @@ declare class DictionaryUtil extends Util {
|
|
37
37
|
[key: string]: any;
|
38
38
|
}, value: any): boolean;
|
39
39
|
}
|
40
|
-
export default DictionaryUtil;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Position } from "../../utilities";
|
2
|
-
import Util from "../Util";
|
2
|
+
import { Util } from "../Util";
|
3
3
|
/**
|
4
4
|
* Dom帮助类
|
5
5
|
*/
|
6
|
-
declare class DomUtil extends Util {
|
6
|
+
export declare class DomUtil extends Util {
|
7
7
|
type: string;
|
8
8
|
/**
|
9
9
|
* 根据字符串Ascii码得到固定颜色字典
|
@@ -115,4 +115,3 @@ declare class DomUtil extends Util {
|
|
115
115
|
*/
|
116
116
|
isEllipsis: (selector: string) => boolean;
|
117
117
|
}
|
118
|
-
export default DomUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 事件帮助类
|
4
4
|
*/
|
5
|
-
declare class EventUtil extends Util {
|
5
|
+
export declare class EventUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 批量绑定事件,执行指定处理函数
|
@@ -29,4 +29,3 @@ declare class EventUtil extends Util {
|
|
29
29
|
*/
|
30
30
|
unscroll: (dom: any, fn: Function) => void;
|
31
31
|
}
|
32
|
-
export default EventUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 文件帮助类
|
4
4
|
*/
|
5
|
-
declare class FileUtil extends Util {
|
5
|
+
export declare class FileUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 保存文件
|
@@ -21,4 +21,3 @@ declare class FileUtil extends Util {
|
|
21
21
|
*/
|
22
22
|
isImage: (url: string) => boolean;
|
23
23
|
}
|
24
|
-
export default FileUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* Html帮助类
|
4
4
|
*/
|
5
|
-
declare class HtmlUtil extends Util {
|
5
|
+
export declare class HtmlUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 获取Html内容
|
@@ -13,4 +13,3 @@ declare class HtmlUtil extends Util {
|
|
13
13
|
*/
|
14
14
|
getText: (value: string) => string;
|
15
15
|
}
|
16
|
-
export default HtmlUtil;
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 图片帮助类
|
4
4
|
*/
|
5
|
-
declare class ImageUtil extends Util {
|
5
|
+
export declare class ImageUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 获取base64图片地址
|
9
9
|
*/
|
10
10
|
base64: (base64: string) => string;
|
11
11
|
}
|
12
|
-
export default ImageUtil;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { JsonConfig, TreeNodeProp } from "../@types";
|
2
|
-
import Util from "../Util";
|
2
|
+
import { Util } from "../Util";
|
3
3
|
/**
|
4
4
|
* JSON帮助类
|
5
5
|
*/
|
6
|
-
declare class JsonUtil extends Util {
|
6
|
+
export declare class JsonUtil extends Util {
|
7
7
|
type: string;
|
8
8
|
/**
|
9
|
-
*
|
9
|
+
* 对非字符串进行序列化,默认不美化以节省内存占用
|
10
10
|
*/
|
11
11
|
serializeWithoutString(value: any, beautify?: boolean): string;
|
12
12
|
/**
|
@@ -63,4 +63,3 @@ declare class JsonUtil extends Util {
|
|
63
63
|
*/
|
64
64
|
private fillKey;
|
65
65
|
}
|
66
|
-
export default JsonUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 数学帮助类
|
4
4
|
*/
|
5
|
-
declare class MathUtil extends Util {
|
5
|
+
export declare class MathUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 过滤某一页数据
|
@@ -49,4 +49,3 @@ declare class MathUtil extends Util {
|
|
49
49
|
*/
|
50
50
|
size: (bytes: number) => string;
|
51
51
|
}
|
52
|
-
export default MathUtil;
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 微前端帮助类
|
4
4
|
*/
|
5
|
-
declare class MicroUtil extends Util {
|
5
|
+
export declare class MicroUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 加载乾坤子应用
|
9
9
|
*/
|
10
10
|
load: (name: any, entry: any, dom: any, props: any) => void;
|
11
11
|
}
|
12
|
-
export default MicroUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 事件挂载帮助类
|
4
4
|
*/
|
5
|
-
declare class MountUtil extends Util {
|
5
|
+
export declare class MountUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 激发主框架事件
|
@@ -13,4 +13,3 @@ declare class MountUtil extends Util {
|
|
13
13
|
*/
|
14
14
|
emits: (events: any) => void;
|
15
15
|
}
|
16
|
-
export default MountUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 对象帮助类
|
4
4
|
*/
|
5
|
-
declare class ObjectUtil extends Util {
|
5
|
+
export declare class ObjectUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 判断输入类型是否是字符串类型 null -> false
|
@@ -69,4 +69,3 @@ declare class ObjectUtil extends Util {
|
|
69
69
|
*/
|
70
70
|
getKey(value: object, key: string): string;
|
71
71
|
}
|
72
|
-
export default ObjectUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 滚动帮助类
|
4
4
|
*/
|
5
|
-
declare class ScrollUtil extends Util {
|
5
|
+
export declare class ScrollUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 判断指定元素滚动条位置,是否到了页面底部
|
@@ -13,4 +13,3 @@ declare class ScrollUtil extends Util {
|
|
13
13
|
*/
|
14
14
|
scrollToBottom: (selector: any) => void;
|
15
15
|
}
|
16
|
-
export default ScrollUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 签名帮助类
|
4
4
|
*/
|
5
|
-
declare class SignUtil extends Util {
|
5
|
+
export declare class SignUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 清空对象中的空值
|
@@ -13,4 +13,3 @@ declare class SignUtil extends Util {
|
|
13
13
|
*/
|
14
14
|
signDictionary(dictionary: object, encoding?: boolean): string;
|
15
15
|
}
|
16
|
-
export default SignUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 字符串帮助类
|
4
4
|
*/
|
5
|
-
declare class StringUtil extends Util {
|
5
|
+
export declare class StringUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 生成唯一字符串
|
@@ -105,4 +105,3 @@ declare class StringUtil extends Util {
|
|
105
105
|
*/
|
106
106
|
splitLines: (content: string, separator?: string) => string[];
|
107
107
|
}
|
108
|
-
export default StringUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 任务执行帮助类
|
4
4
|
*/
|
5
|
-
declare class TaskUtil extends Util {
|
5
|
+
export declare class TaskUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 延时指定ms后执行指定任务
|
@@ -25,4 +25,3 @@ declare class TaskUtil extends Util {
|
|
25
25
|
*/
|
26
26
|
throttle: (fun: Function, delay: number) => (e: any) => boolean;
|
27
27
|
}
|
28
|
-
export default TaskUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 时间帮助类
|
4
4
|
*/
|
5
|
-
declare class TimeUtil extends Util {
|
5
|
+
export declare class TimeUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 获取相对于1970年1月1日的时间戳(ms),不同时区结果相同
|
@@ -12,54 +12,54 @@ declare class TimeUtil extends Util {
|
|
12
12
|
* 根据字符串获取可对比的时间
|
13
13
|
*/
|
14
14
|
getTime: (value?: any) => Date;
|
15
|
-
/**
|
16
|
-
* 格式化时间
|
17
|
-
*/
|
18
|
-
format: (value: any, format: string) => string;
|
19
15
|
/**
|
20
16
|
* 对时间值进行时间格式化
|
21
17
|
*/
|
22
|
-
|
18
|
+
formatMillisecondTime: (value?: string) => string;
|
23
19
|
/**
|
24
20
|
* 对时间值进行时间格式化
|
25
21
|
*/
|
26
|
-
|
22
|
+
formatSecondTime: (value?: any) => string;
|
27
23
|
/**
|
28
24
|
* 格式化成24小时时间格式
|
29
25
|
*/
|
30
|
-
formatTime: (value
|
26
|
+
formatTime: (value?: any) => string;
|
31
27
|
/**
|
32
28
|
* 对时间值进行日期格式化
|
33
29
|
*/
|
34
|
-
formatDate: (value
|
30
|
+
formatDate: (value?: any) => string;
|
35
31
|
/**
|
36
32
|
* 格式化时间 YYYY-MM-DD HH:mm:ss
|
37
33
|
*/
|
38
|
-
formatDateTime: (value
|
34
|
+
formatDateTime: (value?: any) => string;
|
39
35
|
/**
|
40
|
-
*
|
36
|
+
* 格式化时间
|
41
37
|
*/
|
42
|
-
|
38
|
+
format: (value: any, format: string) => string;
|
43
39
|
/**
|
44
|
-
*
|
40
|
+
* 添加小时
|
45
41
|
*/
|
46
|
-
|
42
|
+
addHours: (value: any, hours: number) => Date;
|
47
43
|
/**
|
48
|
-
*
|
44
|
+
* 添加天数
|
49
45
|
*/
|
50
|
-
|
46
|
+
addDays: (value: any, days: number) => Date;
|
51
47
|
/**
|
52
48
|
* 添加天数
|
53
49
|
*/
|
54
|
-
|
50
|
+
addWeeks: (value: any, weeks: number) => Date;
|
55
51
|
/**
|
56
52
|
* 添加月份
|
57
53
|
*/
|
58
54
|
addMonths: (value: any, months: number) => Date;
|
59
55
|
/**
|
60
|
-
*
|
56
|
+
* 添加年份
|
61
57
|
*/
|
62
|
-
|
58
|
+
addYears: (value: any, years: number) => Date;
|
59
|
+
/**
|
60
|
+
* 添加时间
|
61
|
+
*/
|
62
|
+
add: (value: any, amount: number, type: any) => Date;
|
63
63
|
/**
|
64
64
|
* 判断指定时间是否是周末
|
65
65
|
*/
|
@@ -69,4 +69,3 @@ declare class TimeUtil extends Util {
|
|
69
69
|
*/
|
70
70
|
localeTime: (time: any) => Date;
|
71
71
|
}
|
72
|
-
export default TimeUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* 树帮助类
|
4
4
|
*/
|
5
|
-
declare class TreeUtil extends Util {
|
5
|
+
export declare class TreeUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 从树结构数据中,递归获取指定主键的对象
|
@@ -53,4 +53,3 @@ declare class TreeUtil extends Util {
|
|
53
53
|
*/
|
54
54
|
map: (tree: any[], prevChildProp: string, childProp: string, fn: Function) => any[];
|
55
55
|
}
|
56
|
-
export default TreeUtil;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import Util from "../Util";
|
1
|
+
import { Util } from "../Util";
|
2
2
|
/**
|
3
3
|
* Url帮助类
|
4
4
|
*/
|
5
|
-
declare class UrlUtil extends Util {
|
5
|
+
export declare class UrlUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 获取指定地址路由对象
|
@@ -89,12 +89,11 @@ declare class UrlUtil extends Util {
|
|
89
89
|
*/
|
90
90
|
encode(value: string): string;
|
91
91
|
/**
|
92
|
-
* 是否是http或https开头的地址
|
92
|
+
* 是否是http或https或ws或wss开头的地址
|
93
93
|
*/
|
94
|
-
|
94
|
+
isWebUrl(url: string): boolean;
|
95
95
|
/**
|
96
96
|
* 处理键值对的值
|
97
97
|
*/
|
98
98
|
private handleQueryValue;
|
99
99
|
}
|
100
|
-
export default UrlUtil;
|