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
@@ -1,12 +1,11 @@
|
|
1
|
-
import Encoder from "../Encoder";
|
1
|
+
import { Encoder } from "../Encoder";
|
2
2
|
/**
|
3
3
|
* MD5 hash计算
|
4
4
|
*/
|
5
|
-
declare class Base64Encoder extends Encoder {
|
5
|
+
export 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
|
}
|
12
|
-
export default Base64Encoder;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import Encoder from "../Encoder";
|
2
|
-
declare class UrlEncoder extends Encoder {
|
1
|
+
import { Encoder } from "../Encoder";
|
2
|
+
export declare class UrlEncoder extends Encoder {
|
3
3
|
type: string;
|
4
4
|
encodeString(value: string): string;
|
5
5
|
decode(value: string): string;
|
6
6
|
}
|
7
|
-
export default UrlEncoder;
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export { type IEncoder, EncoderFactory };
|
1
|
+
export * from "./IEncoder";
|
2
|
+
export * from "./EncoderFactory";
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import IExcel from "./IExcel";
|
1
|
+
import { IExcel } from "./IExcel";
|
2
2
|
/**
|
3
3
|
* Excel操作基类
|
4
4
|
*/
|
5
|
-
declare abstract class Excel implements IExcel {
|
5
|
+
export declare abstract class Excel implements IExcel {
|
6
6
|
type: string;
|
7
7
|
abstract openAsync(conn?: string): Promise<void>;
|
8
8
|
abstract export(dataRows: any[], name: string): any;
|
9
9
|
}
|
10
|
-
export default Excel;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import IExcel from "./IExcel";
|
2
|
-
import Factory from "../../factory
|
1
|
+
import { IExcel } from "./IExcel";
|
2
|
+
import { Factory } from "../../factory";
|
3
3
|
/**
|
4
4
|
* Excel工厂
|
5
5
|
*/
|
6
|
-
declare class ExcelFactory extends Factory<IExcel> {
|
6
|
+
export declare class ExcelFactory extends Factory<IExcel> {
|
7
7
|
type: string;
|
8
8
|
open(): void;
|
9
9
|
/**
|
@@ -11,4 +11,3 @@ declare class ExcelFactory extends Factory<IExcel> {
|
|
11
11
|
*/
|
12
12
|
createAsync(type: string, conn?: string): Promise<IExcel>;
|
13
13
|
}
|
14
|
-
export default ExcelFactory;
|
@@ -2,10 +2,9 @@ import { IDriver, IOpen } from "../@types";
|
|
2
2
|
/**
|
3
3
|
* Excel操作接口
|
4
4
|
*/
|
5
|
-
interface IExcel extends IDriver, IOpen {
|
5
|
+
export interface IExcel extends IDriver, IOpen {
|
6
6
|
/**
|
7
7
|
* 导出数据
|
8
8
|
*/
|
9
9
|
export(dataRows: any[], name: string): any;
|
10
10
|
}
|
11
|
-
export default IExcel;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import Excel from "../Excel";
|
1
|
+
import { Excel } from "../Excel";
|
2
2
|
/**
|
3
3
|
* XlsxExcel操作
|
4
4
|
*/
|
5
|
-
declare class XlsxExcel extends Excel {
|
5
|
+
export declare class XlsxExcel extends Excel {
|
6
6
|
type: string;
|
7
7
|
xlsx: any;
|
8
8
|
openAsync(conn: string): Promise<void>;
|
9
9
|
export(dataRows: any[], name: string): any;
|
10
10
|
}
|
11
|
-
export default XlsxExcel;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./XlsxExcel";
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export { type IExcel, ExcelFactory };
|
1
|
+
export * from "./IExcel";
|
2
|
+
export * from "./ExcelFactory";
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import Factory from "../../factory
|
2
|
-
import IExplainer from "./IExplainer";
|
3
|
-
declare class ExplainerFactory extends Factory<IExplainer> {
|
1
|
+
import { Factory } from "../../factory";
|
2
|
+
import { IExplainer } from "./IExplainer";
|
3
|
+
export declare class ExplainerFactory extends Factory<IExplainer> {
|
4
4
|
type: string;
|
5
5
|
open(): void;
|
6
6
|
}
|
7
|
-
export default ExplainerFactory;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./JsonExplainer";
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export { ExplainerFactory };
|
1
|
+
export * from "./ExplainerFactory";
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import IFeature from "./IFeature";
|
2
|
-
declare abstract class Feature implements IFeature {
|
1
|
+
import { IFeature } from "./IFeature";
|
2
|
+
export declare abstract class Feature implements IFeature {
|
3
3
|
type: string;
|
4
4
|
openAsync(conn?: string): Promise<void>;
|
5
5
|
abstract add(table: any, field: any, data: object, row: object): void;
|
6
6
|
abstract copy(table: any, field: any, data: object): void;
|
7
7
|
abstract insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
8
8
|
}
|
9
|
-
export default Feature;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import IFeature from "./IFeature";
|
2
|
-
import Factory from "../../factory
|
1
|
+
import { IFeature } from "./IFeature";
|
2
|
+
import { Factory } from "../../factory";
|
3
3
|
/**
|
4
4
|
* 特征工厂类
|
5
5
|
*/
|
6
|
-
declare class FeatureFactory extends Factory<IFeature> {
|
6
|
+
export declare class FeatureFactory extends Factory<IFeature> {
|
7
7
|
type: string;
|
8
8
|
open(): void;
|
9
9
|
/**
|
@@ -11,4 +11,3 @@ declare class FeatureFactory extends Factory<IFeature> {
|
|
11
11
|
*/
|
12
12
|
createAsync(type: string, conn?: string): Promise<IFeature>;
|
13
13
|
}
|
14
|
-
export default FeatureFactory;
|
@@ -2,7 +2,7 @@ import { IDriver, IOpen } from "../@types";
|
|
2
2
|
/**
|
3
3
|
* 特征接口
|
4
4
|
*/
|
5
|
-
interface IFeature extends IDriver, IOpen {
|
5
|
+
export interface IFeature extends IDriver, IOpen {
|
6
6
|
/**
|
7
7
|
* 添加事件
|
8
8
|
*/
|
@@ -16,4 +16,3 @@ interface IFeature extends IDriver, IOpen {
|
|
16
16
|
*/
|
17
17
|
copy(table: any, field: any, data: object): void;
|
18
18
|
}
|
19
|
-
export default IFeature;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import Feature from "../Feature";
|
1
|
+
import { Feature } from "../Feature";
|
2
2
|
/**
|
3
3
|
* 表达式特征
|
4
4
|
*/
|
5
|
-
declare class ExpressionFeature extends Feature {
|
5
|
+
export declare class ExpressionFeature extends Feature {
|
6
6
|
type: string;
|
7
7
|
add(table: any, field: any, data: {}, row: {}): void;
|
8
8
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
9
9
|
copy(table: any, field: any, data: object): void;
|
10
10
|
}
|
11
|
-
export default ExpressionFeature;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import Feature from "../Feature";
|
1
|
+
import { Feature } from "../Feature";
|
2
2
|
/**
|
3
3
|
* 多语言特征
|
4
4
|
*/
|
5
|
-
declare class I18NFeature extends Feature {
|
5
|
+
export declare class I18NFeature extends Feature {
|
6
6
|
type: string;
|
7
7
|
add(table: any, field: any, data: {}, row: {}): void;
|
8
8
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
9
9
|
copy(table: any, field: any, data: object): void;
|
10
10
|
}
|
11
|
-
export default I18NFeature;
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import Feature from "../Feature";
|
1
|
+
import { Feature } from "../Feature";
|
2
2
|
/**
|
3
3
|
* 排序特征
|
4
4
|
*/
|
5
|
-
declare class SortFeature extends Feature {
|
5
|
+
export declare class SortFeature extends Feature {
|
6
6
|
type: string;
|
7
7
|
add(table: any, field: any, data: object, row: object): void;
|
8
8
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
9
9
|
copy(table: any, field: any, data: object): void;
|
10
10
|
resort(table: any, field: any, data: object): void;
|
11
11
|
}
|
12
|
-
export default SortFeature;
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export { type IFeature, FeatureFactory };
|
1
|
+
export * from "./IFeature";
|
2
|
+
export * from "./FeatureFactory";
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import IHasher from "./IHasher";
|
1
|
+
import { IHasher } from "./IHasher";
|
2
2
|
/**
|
3
3
|
* Hash计算基类
|
4
4
|
*/
|
5
|
-
declare abstract class Hasher implements IHasher {
|
5
|
+
export declare abstract class Hasher implements IHasher {
|
6
6
|
type: string;
|
7
7
|
abstract openAsync(conn: string): Promise<void>;
|
8
8
|
abstract computeAsync(value: string): Promise<string>;
|
9
9
|
}
|
10
|
-
export default Hasher;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import IHasher from "./IHasher";
|
2
|
-
import Factory from "../../factory
|
1
|
+
import { IHasher } from "./IHasher";
|
2
|
+
import { Factory } from "../../factory";
|
3
3
|
/**
|
4
4
|
* 哈希工厂
|
5
5
|
*/
|
6
|
-
declare class HasherFactory extends Factory<IHasher> {
|
6
|
+
export declare class HasherFactory extends Factory<IHasher> {
|
7
7
|
type: string;
|
8
8
|
open(): void;
|
9
9
|
createAsync(type: string, conn?: string): Promise<IHasher>;
|
@@ -16,4 +16,3 @@ declare class HasherFactory extends Factory<IHasher> {
|
|
16
16
|
*/
|
17
17
|
getSha256Async(): Promise<IHasher>;
|
18
18
|
}
|
19
|
-
export default HasherFactory;
|
@@ -2,7 +2,7 @@ import { IOpen } from "../@types";
|
|
2
2
|
/**
|
3
3
|
* Hash接口
|
4
4
|
*/
|
5
|
-
interface IHasher extends IOpen {
|
5
|
+
export interface IHasher extends IOpen {
|
6
6
|
/**
|
7
7
|
* 类型
|
8
8
|
*/
|
@@ -12,4 +12,3 @@ interface IHasher extends IOpen {
|
|
12
12
|
*/
|
13
13
|
computeAsync(value: string): Promise<string>;
|
14
14
|
}
|
15
|
-
export default IHasher;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import Hasher from "../Hasher";
|
1
|
+
import { Hasher } from "../Hasher";
|
2
2
|
/**
|
3
3
|
* MD5 hash计算
|
4
4
|
*/
|
5
|
-
declare class Md5Hasher extends Hasher {
|
5
|
+
export declare class Md5Hasher extends Hasher {
|
6
6
|
type: string;
|
7
7
|
crypto: any;
|
8
8
|
openAsync(conn: string): Promise<void>;
|
9
9
|
computeAsync: (value: string) => Promise<string>;
|
10
10
|
}
|
11
|
-
export default Md5Hasher;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import Hasher from "../Hasher";
|
1
|
+
import { Hasher } from "../Hasher";
|
2
2
|
/**
|
3
3
|
* Sha256 Hash计算
|
4
4
|
*/
|
5
|
-
declare class Sha256Hasher extends Hasher {
|
5
|
+
export declare class Sha256Hasher extends Hasher {
|
6
6
|
type: string;
|
7
7
|
openAsync(conn: string): Promise<void>;
|
8
8
|
computeAsync: (value: string) => Promise<string>;
|
9
9
|
}
|
10
|
-
export default Sha256Hasher;
|
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export { type IHasher, HasherFactory };
|
1
|
+
export * from "./IHasher";
|
2
|
+
export * from "./HasherFactory";
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import IHttp from "./IHttp";
|
2
|
-
import HttpRequest from "./entities
|
3
|
-
import HttpResponse from "./entities/HttpResponse";
|
1
|
+
import { IHttp } from "./IHttp";
|
2
|
+
import { HttpRequest, HttpResponse } from "./entities";
|
4
3
|
import { ITemplate } from "../templates";
|
5
4
|
import { IEncoder } from "../encoders";
|
6
5
|
/**
|
7
6
|
* 请求器基类
|
8
7
|
*/
|
9
|
-
declare abstract class Http implements IHttp {
|
8
|
+
export declare abstract class Http implements IHttp {
|
10
9
|
type: string;
|
11
10
|
/**
|
12
11
|
* 基准请求地址
|
@@ -46,4 +45,3 @@ declare abstract class Http implements IHttp {
|
|
46
45
|
*/
|
47
46
|
getRequest: (method: string, contentType: string, path: string, body?: any) => Promise<HttpRequest>;
|
48
47
|
}
|
49
|
-
export default Http;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import IHttp from "./IHttp";
|
2
|
-
import Factory from "../../factory
|
1
|
+
import { IHttp } from "./IHttp";
|
2
|
+
import { Factory } from "../../factory";
|
3
|
+
import { SsoUser } from "../ssos";
|
3
4
|
/**
|
4
5
|
* 请求器工厂类
|
5
6
|
*/
|
6
|
-
declare class HttpFactory extends Factory<IHttp> {
|
7
|
+
export declare class HttpFactory extends Factory<IHttp> {
|
7
8
|
type: string;
|
8
9
|
open(): void;
|
9
10
|
/**
|
@@ -11,9 +12,8 @@ declare class HttpFactory extends Factory<IHttp> {
|
|
11
12
|
*/
|
12
13
|
createDefault(): Promise<IHttp>;
|
13
14
|
/**
|
14
|
-
*
|
15
|
+
* 创建本地请求实例
|
15
16
|
* 获取完毕后,下游第一行代码就要配置消息服务
|
16
17
|
*/
|
17
|
-
|
18
|
+
createHaloAsync(baseUrl: string, user: SsoUser, language: string): Promise<IHttp>;
|
18
19
|
}
|
19
|
-
export default HttpFactory;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import HttpRequest from "./entities
|
2
|
-
import HttpResponse from "./entities/HttpResponse";
|
1
|
+
import { HttpRequest, HttpResponse } from "./entities";
|
3
2
|
import { IDriver, IOpen } from "../@types";
|
4
3
|
/**
|
5
4
|
* 请求器接口
|
6
5
|
*/
|
7
|
-
interface IHttp extends IDriver, IOpen {
|
6
|
+
export interface IHttp extends IDriver, IOpen {
|
8
7
|
/**
|
9
8
|
* 请求时执行
|
10
9
|
*/
|
@@ -14,7 +13,7 @@ interface IHttp extends IDriver, IOpen {
|
|
14
13
|
*/
|
15
14
|
onResponse: (response: HttpResponse) => Promise<void>;
|
16
15
|
/**
|
17
|
-
*
|
16
|
+
* 请求准备:完成请求变量替换
|
18
17
|
*/
|
19
18
|
prepareAsync(request: HttpRequest): Promise<void>;
|
20
19
|
/**
|
@@ -46,4 +45,3 @@ interface IHttp extends IDriver, IOpen {
|
|
46
45
|
*/
|
47
46
|
sendAsync(request: HttpRequest): Promise<HttpResponse>;
|
48
47
|
}
|
49
|
-
export default IHttp;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Http消息基类
|
3
3
|
*/
|
4
|
-
declare abstract class HttpMessage {
|
4
|
+
export declare abstract class HttpMessage {
|
5
5
|
/**
|
6
6
|
* 请求唯一标识
|
7
7
|
*/
|
@@ -25,9 +25,9 @@ declare abstract class HttpMessage {
|
|
25
25
|
[key: string]: string;
|
26
26
|
};
|
27
27
|
/**
|
28
|
-
*
|
28
|
+
* 内容类型,404时为空
|
29
29
|
*/
|
30
|
-
contentType
|
30
|
+
contentType?: string;
|
31
31
|
/**
|
32
32
|
* 获取指定Key的值
|
33
33
|
*/
|
@@ -48,4 +48,3 @@ declare abstract class HttpMessage {
|
|
48
48
|
*/
|
49
49
|
prepare(): void;
|
50
50
|
}
|
51
|
-
export default HttpMessage;
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import HttpRequest from "./HttpRequest";
|
1
|
+
import { HttpRequest } from "./HttpRequest";
|
2
2
|
/**
|
3
3
|
* Http请求模型
|
4
4
|
*/
|
5
|
-
declare class HttpModel {
|
5
|
+
export declare class HttpModel {
|
6
6
|
request: HttpRequest;
|
7
7
|
model: string[];
|
8
8
|
encoded: any;
|
9
9
|
timestamp: any;
|
10
10
|
time: any;
|
11
11
|
}
|
12
|
-
export default HttpModel;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { SocketProgress } from "../../sockets";
|
2
|
-
import HttpMessage from "./HttpMessage";
|
2
|
+
import { HttpMessage } from "./HttpMessage";
|
3
3
|
/**
|
4
4
|
* Http请求进度
|
5
5
|
*/
|
6
|
-
declare class HttpProgress extends SocketProgress<HttpMessage> {
|
6
|
+
export declare class HttpProgress extends SocketProgress<HttpMessage> {
|
7
7
|
constructor(total: number);
|
8
8
|
}
|
9
|
-
export default HttpProgress;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import HttpMessage from "./HttpMessage";
|
1
|
+
import { HttpMessage } from "./HttpMessage";
|
2
2
|
/**
|
3
3
|
* Http请求
|
4
4
|
*/
|
5
|
-
declare class HttpRequest extends HttpMessage {
|
5
|
+
export declare class HttpRequest extends HttpMessage {
|
6
6
|
/**
|
7
7
|
* 请求方法
|
8
8
|
*/
|
@@ -21,4 +21,3 @@ declare class HttpRequest extends HttpMessage {
|
|
21
21
|
variables: string[];
|
22
22
|
constructor();
|
23
23
|
}
|
24
|
-
export default HttpRequest;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import HttpRequest from "./HttpRequest";
|
2
|
-
import HttpMessage from "./HttpMessage";
|
1
|
+
import { HttpRequest } from "./HttpRequest";
|
2
|
+
import { HttpMessage } from "./HttpMessage";
|
3
3
|
/**
|
4
4
|
* Http响应
|
5
5
|
*/
|
6
|
-
declare class HttpResponse extends HttpMessage {
|
6
|
+
export declare class HttpResponse extends HttpMessage {
|
7
7
|
/**
|
8
8
|
* 是否成功
|
9
9
|
*/
|
@@ -29,4 +29,3 @@ declare class HttpResponse extends HttpMessage {
|
|
29
29
|
*/
|
30
30
|
request: HttpRequest;
|
31
31
|
}
|
32
|
-
export default HttpResponse;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
export
|
1
|
+
export * from "./HttpModel";
|
2
|
+
export * from "./HttpProgress";
|
3
|
+
export * from "./HttpRequest";
|
4
|
+
export * from "./HttpResponse";
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import Http from "../Http";
|
2
|
-
import HttpRequest from "../entities
|
3
|
-
import HttpResponse from "../entities/HttpResponse";
|
1
|
+
import { Http } from "../Http";
|
2
|
+
import { HttpRequest, HttpResponse } from "../entities";
|
4
3
|
/**
|
5
4
|
* 默认Http请求器
|
6
5
|
* 自动适配:页面请求 和 插件请求,以支持在插件场景下,配置的请求器是Default是,无法使用XmlHttpRequest发起请求
|
7
6
|
*/
|
8
|
-
declare class DefaultHttp extends Http {
|
7
|
+
export declare class DefaultHttp extends Http {
|
9
8
|
type: string;
|
10
9
|
_onRequest: any;
|
11
10
|
_onResponse: any;
|
@@ -23,4 +22,3 @@ declare class DefaultHttp extends Http {
|
|
23
22
|
*/
|
24
23
|
sendWithXmlHttpRequest(request: HttpRequest): Promise<HttpResponse>;
|
25
24
|
}
|
26
|
-
export default DefaultHttp;
|
@@ -1,32 +1,27 @@
|
|
1
|
-
import Http from "../Http";
|
2
|
-
import HttpRequest from "../entities
|
3
|
-
import {
|
4
|
-
import {
|
1
|
+
import { Http } from "../Http";
|
2
|
+
import { HttpRequest } from "../entities";
|
3
|
+
import { IIdentity } from "../../identities";
|
4
|
+
import { ISigner } from "../../signers";
|
5
5
|
/**
|
6
6
|
* EI请求器
|
7
7
|
*/
|
8
|
-
declare class EiHttp extends Http {
|
8
|
+
export declare class EiHttp extends Http {
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* 身份认证
|
11
11
|
*/
|
12
|
-
|
12
|
+
identity: IIdentity;
|
13
13
|
/**
|
14
|
-
*
|
14
|
+
* 身份认证Key
|
15
15
|
*/
|
16
|
-
|
16
|
+
identityKey: string;
|
17
17
|
/**
|
18
|
-
*
|
18
|
+
* 签名工具
|
19
19
|
*/
|
20
|
-
|
20
|
+
signer: ISigner;
|
21
21
|
/**
|
22
|
-
*
|
22
|
+
* 签名盐
|
23
23
|
*/
|
24
|
-
|
24
|
+
signerSalt: string;
|
25
25
|
openAsync(conn: string): Promise<void>;
|
26
26
|
prepareAsync(request: HttpRequest): Promise<void>;
|
27
|
-
/**
|
28
|
-
* 获取请求头
|
29
|
-
*/
|
30
|
-
getHeader(url: string, body: string, userId: string): Promise<any>;
|
31
27
|
}
|
32
|
-
export default EiHttp;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import Http from "../Http";
|
2
|
-
import HttpRequest from "../entities
|
1
|
+
import { Http } from "../Http";
|
2
|
+
import { HttpRequest } from "../entities";
|
3
3
|
import { ISso, SsoUser } from "../../ssos";
|
4
4
|
import { ISigner } from "../../signers";
|
5
5
|
/**
|
6
6
|
* 框架请求器
|
7
7
|
*/
|
8
|
-
declare class HaloHttp extends Http {
|
8
|
+
export declare class HaloHttp extends Http {
|
9
9
|
type: string;
|
10
10
|
/**
|
11
11
|
* 当前用户信息
|
@@ -22,7 +22,7 @@ declare class HaloHttp extends Http {
|
|
22
22
|
/**
|
23
23
|
* 当前终端
|
24
24
|
*/
|
25
|
-
|
25
|
+
terminal: string;
|
26
26
|
/**
|
27
27
|
* 单点登录配置
|
28
28
|
*/
|
@@ -33,9 +33,4 @@ declare class HaloHttp extends Http {
|
|
33
33
|
signer: ISigner;
|
34
34
|
openAsync: (conn: string) => Promise<void>;
|
35
35
|
prepareAsync: (request: HttpRequest) => Promise<void>;
|
36
|
-
/**
|
37
|
-
* 处理网络错误和响应错误场景
|
38
|
-
*/
|
39
|
-
handleError: (error: any) => Promise<never>;
|
40
36
|
}
|
41
|
-
export default HaloHttp;
|