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
@@ -0,0 +1,85 @@
|
|
1
|
+
import { EnvSvc, LogSvc, UserSvc } from "../svcs";
|
2
|
+
/**
|
3
|
+
* 服务集合基类,通过继承可以实现类型扩展
|
4
|
+
*/
|
5
|
+
export declare class Svcs {
|
6
|
+
/**
|
7
|
+
* 系统设置服务
|
8
|
+
*/
|
9
|
+
static setting: {
|
10
|
+
loaded: boolean;
|
11
|
+
particles: boolean;
|
12
|
+
home: string;
|
13
|
+
background: any;
|
14
|
+
font: string;
|
15
|
+
language: string;
|
16
|
+
layout: string;
|
17
|
+
theme: string;
|
18
|
+
themes: any[];
|
19
|
+
layouts: any[];
|
20
|
+
backgrounds: any[];
|
21
|
+
locales: any[];
|
22
|
+
cdns: any[];
|
23
|
+
fonts: any;
|
24
|
+
ssos: any[];
|
25
|
+
size: string;
|
26
|
+
watermark: any;
|
27
|
+
app: string;
|
28
|
+
env: string;
|
29
|
+
central: any;
|
30
|
+
business: any;
|
31
|
+
upload: any;
|
32
|
+
version: any;
|
33
|
+
init: () => Promise<void>;
|
34
|
+
load: () => Promise<any>;
|
35
|
+
};
|
36
|
+
/**
|
37
|
+
* 驱动服务实例
|
38
|
+
*/
|
39
|
+
static config: {
|
40
|
+
[x: string]: any;
|
41
|
+
type: string;
|
42
|
+
sys: {
|
43
|
+
background: string;
|
44
|
+
theme: string;
|
45
|
+
layout: string;
|
46
|
+
language: string;
|
47
|
+
font: string;
|
48
|
+
cdn: string;
|
49
|
+
};
|
50
|
+
fileLayout: string;
|
51
|
+
editor: {
|
52
|
+
schemas: any[];
|
53
|
+
intelli: {};
|
54
|
+
};
|
55
|
+
open: (config: any) => void;
|
56
|
+
bindAsync: (configs: import("../svcs/entities").UserConfig[]) => Promise<void>;
|
57
|
+
tryAddSchema: (uri: string, fileMatch: string, schema: object) => void;
|
58
|
+
getAsync: (kind: string, type: string) => Promise<any>;
|
59
|
+
setBackground: (background: string) => void;
|
60
|
+
saveAppAsync: (form: any) => Promise<void>;
|
61
|
+
loadAsync: (kind: string, type: string, cached?: boolean) => Promise<any>;
|
62
|
+
saveAsync: (kind: string, type: string, data: any, cached?: boolean) => Promise<boolean>;
|
63
|
+
patchAsync: (kind: string, type: string, body: any) => Promise<boolean>;
|
64
|
+
getLanguage: () => string;
|
65
|
+
};
|
66
|
+
/**
|
67
|
+
* 包装配置服务,保证驱动服务具有响应式,并且不需.value后缀
|
68
|
+
*/
|
69
|
+
static driver: {
|
70
|
+
type: string;
|
71
|
+
loadSchemaAsync: (id: number, schema: string) => Promise<any[]>;
|
72
|
+
};
|
73
|
+
/**
|
74
|
+
* 环境服务
|
75
|
+
*/
|
76
|
+
static env: EnvSvc;
|
77
|
+
/**
|
78
|
+
* 日志服务
|
79
|
+
*/
|
80
|
+
static log: LogSvc;
|
81
|
+
/**
|
82
|
+
* 用户服务
|
83
|
+
*/
|
84
|
+
static user: UserSvc;
|
85
|
+
}
|
package/esm/factory/Utils.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, ScrollUtil, JsonUtil, BrowserUtil, UrlUtil, SignUtil } from "../drivers/util";
|
2
2
|
/**
|
3
|
-
*
|
3
|
+
* 工具集合(无状态)
|
4
4
|
*/
|
5
|
-
declare class Utils {
|
5
|
+
export declare class Utils {
|
6
6
|
static get array(): ArrayUtil;
|
7
7
|
static get browser(): BrowserUtil;
|
8
8
|
static get component(): ComponentUtil;
|
@@ -25,4 +25,3 @@ declare class Utils {
|
|
25
25
|
static get url(): UrlUtil;
|
26
26
|
static get sign(): SignUtil;
|
27
27
|
}
|
28
|
-
export default Utils;
|
package/esm/factory/index.d.ts
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
export
|
1
|
+
export * from "./Drivers";
|
2
|
+
export * from "./Factories";
|
3
|
+
export * from "./I18ns";
|
4
|
+
export * from "./Factory";
|
5
|
+
export * from "./Repos";
|
6
|
+
export * from "./Svcs";
|
7
|
+
export * from "./Utils";
|
package/esm/main.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { FeOptions } from "./@types";
|
2
2
|
import "./styles/index.scss";
|
3
3
|
export * from "./@types";
|
4
4
|
export * from "./coms";
|
@@ -10,5 +10,5 @@ export * from "./svcs";
|
|
10
10
|
/**
|
11
11
|
* 初始化前端基础框架
|
12
12
|
*/
|
13
|
-
declare let
|
14
|
-
export {
|
13
|
+
declare let createFeAsync: (options?: FeOptions) => Promise<void>;
|
14
|
+
export { createFeAsync };
|
package/esm/plugins/Ref.d.ts
CHANGED
package/esm/plugins/index.d.ts
CHANGED
package/esm/repos/IRepo.d.ts
CHANGED
package/esm/repos/Repo.d.ts
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
import Factory from "../factory/Factory";
|
2
|
-
import IRepo from "./IRepo";
|
3
|
-
import ModuleRepo from "./implements
|
4
|
-
import QueryRepo from "./implements/QueryRepo";
|
5
|
-
import SettingRepo from "./implements/SettingRepo";
|
1
|
+
import { Factory } from "../factory/Factory";
|
2
|
+
import { IRepo } from "./IRepo";
|
3
|
+
import { ModuleRepo, QueryRepo, SettingRepo } from "./implements";
|
6
4
|
/**
|
7
5
|
* 仓储工厂
|
8
6
|
*/
|
9
|
-
declare class RepoFactory extends Factory<IRepo> {
|
7
|
+
export declare class RepoFactory extends Factory<IRepo> {
|
10
8
|
open(): void;
|
11
9
|
/**
|
12
10
|
* 模块仓储
|
@@ -21,4 +19,3 @@ declare class RepoFactory extends Factory<IRepo> {
|
|
21
19
|
*/
|
22
20
|
get setting(): SettingRepo;
|
23
21
|
}
|
24
|
-
export default RepoFactory;
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export { KeyboardType };
|
1
|
+
export * from "./KeyboardType";
|
@@ -1,29 +1,31 @@
|
|
1
|
-
import Repo from "../Repo";
|
1
|
+
import { Repo } from "../Repo";
|
2
2
|
import { SocketResponse } from "../../drivers";
|
3
3
|
import { KeyboardType } from "../entities";
|
4
4
|
/**
|
5
5
|
* 模块仓储
|
6
6
|
*/
|
7
|
-
declare class ModuleRepo extends Repo {
|
7
|
+
export declare class ModuleRepo extends Repo {
|
8
8
|
type: string;
|
9
9
|
/**
|
10
10
|
* 获取表的默认行数据
|
11
11
|
*/
|
12
12
|
getDefaultRow: (table: any) => any;
|
13
|
-
/**
|
14
|
-
* 更新提示内容
|
15
|
-
*/
|
16
|
-
updateTooltipByFields(table: string, row: any, fields: any[]): void;
|
17
13
|
/**
|
18
14
|
* 展开数据和架构信息
|
19
15
|
*/
|
20
|
-
expandSet
|
16
|
+
expandSet(schema: any[], set: any): any;
|
21
17
|
/**
|
22
|
-
* 展开架构信息
|
18
|
+
* 展开架构信息 和 每行每列字段的规格信息
|
19
|
+
** 好处:每行每个字段,需要多次访问同一个规格时,可以减少方法多次执行带来的性能损耗,实现规格复用
|
23
20
|
*/
|
24
21
|
expandSchema(schema: any[], set: {
|
25
|
-
[
|
22
|
+
[name: string]: any;
|
26
23
|
}): any[];
|
24
|
+
/**
|
25
|
+
* 动态更新单个表的规格信息
|
26
|
+
** 不指定当前变动字段的原因:保证被依赖的字段变动时,原字段也能够更新架构信息
|
27
|
+
*/
|
28
|
+
updateSpec(table: any, set: any): void;
|
27
29
|
/**
|
28
30
|
* 展开所有数据表的搜索字段信息
|
29
31
|
*/
|
@@ -50,4 +52,3 @@ declare class ModuleRepo extends Repo {
|
|
50
52
|
*/
|
51
53
|
triggerResize: (ref: any, event: ResizeObserverEntry) => boolean;
|
52
54
|
}
|
53
|
-
export default ModuleRepo;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ITask } from "../../drivers";
|
2
|
-
import Repo from "../Repo";
|
2
|
+
import { Repo } from "../Repo";
|
3
3
|
/**
|
4
4
|
* 查询仓储
|
5
5
|
*/
|
6
|
-
declare class QueryRepo extends Repo {
|
6
|
+
export declare class QueryRepo extends Repo {
|
7
7
|
type: string;
|
8
8
|
/**
|
9
9
|
* 加载完毕状态记录
|
@@ -61,4 +61,3 @@ declare class QueryRepo extends Repo {
|
|
61
61
|
*/
|
62
62
|
loadDriverLanguageAsync(reload?: boolean): Promise<any[]>;
|
63
63
|
}
|
64
|
-
export default QueryRepo;
|
package/esm/repos/index.d.ts
CHANGED
@@ -1,13 +1,4 @@
|
|
1
|
-
import RepoFactory from "./RepoFactory";
|
2
|
-
import ModuleRepo from "./implements/ModuleRepo";
|
3
|
-
import QueryRepo from "./implements/QueryRepo";
|
4
|
-
import SettingRepo from "./implements/SettingRepo";
|
1
|
+
import { RepoFactory } from "./RepoFactory";
|
5
2
|
export * from "./entities";
|
6
|
-
|
7
|
-
|
8
|
-
declare let settingRepo: SettingRepo;
|
9
|
-
/**
|
10
|
-
* 初始化全局仓储对象
|
11
|
-
*/
|
12
|
-
declare let initRepoAsync: () => Promise<void>;
|
13
|
-
export { initRepoAsync, moduleRepo, queryRepo, settingRepo, RepoFactory, };
|
3
|
+
export * from "./implements";
|
4
|
+
export { RepoFactory };
|
package/esm/svcs/ISvc.d.ts
CHANGED
package/esm/svcs/Svc.d.ts
CHANGED
package/esm/svcs/SvcFactory.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import Factory from "../factory
|
2
|
-
import ISvc from "./ISvc";
|
3
|
-
import ConfigSvc from "./implement
|
1
|
+
import { Factory } from "../factory";
|
2
|
+
import { ISvc } from "./ISvc";
|
3
|
+
import { ConfigSvc } from "./implement";
|
4
4
|
/**
|
5
5
|
* 服务工厂类
|
6
6
|
*/
|
7
|
-
declare class SvcFactory extends Factory<ISvc> {
|
7
|
+
export declare class SvcFactory extends Factory<ISvc> {
|
8
8
|
open(): void;
|
9
9
|
static(): void;
|
10
10
|
/**
|
@@ -12,4 +12,3 @@ declare class SvcFactory extends Factory<ISvc> {
|
|
12
12
|
*/
|
13
13
|
getConfig(): Promise<ConfigSvc>;
|
14
14
|
}
|
15
|
-
export default SvcFactory;
|
@@ -1,8 +1,29 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
/**
|
2
|
+
* 用户系统配置
|
3
|
+
*/
|
4
|
+
export declare class SysConfig {
|
3
5
|
/**
|
4
|
-
*
|
6
|
+
* 默认背景
|
5
7
|
*/
|
6
|
-
|
8
|
+
background: string;
|
9
|
+
/**
|
10
|
+
* 当前主题
|
11
|
+
*/
|
12
|
+
theme: string;
|
13
|
+
/**
|
14
|
+
* 当前布局方式
|
15
|
+
*/
|
16
|
+
layout: string;
|
17
|
+
/**
|
18
|
+
* 当前语言
|
19
|
+
*/
|
20
|
+
language: string;
|
21
|
+
/**
|
22
|
+
* 字体
|
23
|
+
*/
|
24
|
+
font: string;
|
25
|
+
/**
|
26
|
+
* 默认cdn
|
27
|
+
*/
|
28
|
+
cdn: string;
|
7
29
|
}
|
8
|
-
export default SysConfig;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { SysConfig, UserConfig } from "../entities";
|
2
|
-
import Svc from "../Svc";
|
3
|
-
import type SettingSvc from "./SettingSvc";
|
2
|
+
import { Svc } from "../Svc";
|
4
3
|
/**
|
5
|
-
*
|
4
|
+
* 用户配置服务
|
5
|
+
** 也不一定全跟用户相关,此时如果使用配置仓储,使用的是配置文件的配置,非接口配置
|
6
6
|
*/
|
7
|
-
declare class ConfigSvc extends Svc {
|
7
|
+
export declare class ConfigSvc extends Svc {
|
8
8
|
[key: string]: any;
|
9
9
|
type: string;
|
10
10
|
/**
|
@@ -31,7 +31,7 @@ declare class ConfigSvc extends Svc {
|
|
31
31
|
/**
|
32
32
|
* 初始化绑定基础配置信息
|
33
33
|
*/
|
34
|
-
open: (
|
34
|
+
open: (config: any) => void;
|
35
35
|
/**
|
36
36
|
* 初始化配置值(不一定跟登录用户相关,这也是单独分离的好处)
|
37
37
|
*/
|
@@ -69,4 +69,3 @@ declare class ConfigSvc extends Svc {
|
|
69
69
|
*/
|
70
70
|
getLanguage(): string;
|
71
71
|
}
|
72
|
-
export default ConfigSvc;
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import Svc from "../Svc";
|
1
|
+
import { Svc } from "../Svc";
|
2
2
|
/**
|
3
3
|
* 使用驱动仓储
|
4
4
|
*/
|
5
|
-
declare class DriverSvc extends Svc {
|
5
|
+
export declare class DriverSvc extends Svc {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
8
|
* 加载数据库架构
|
9
9
|
*/
|
10
10
|
loadSchemaAsync(id: number, schema: string): Promise<any[]>;
|
11
11
|
}
|
12
|
-
export default DriverSvc;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* 获取前端配置
|
3
3
|
*/
|
4
|
-
declare class SettingSvc {
|
4
|
+
export declare class SettingSvc {
|
5
5
|
loaded: boolean;
|
6
6
|
particles: boolean;
|
7
7
|
home: string;
|
@@ -67,4 +67,3 @@ declare class SettingSvc {
|
|
67
67
|
*/
|
68
68
|
load: () => Promise<any>;
|
69
69
|
}
|
70
|
-
export default SettingSvc;
|
package/esm/svcs/index.d.ts
CHANGED
@@ -1,52 +1,2 @@
|
|
1
|
-
import ConfigSvc from "./implement/ConfigSvc";
|
2
|
-
import EnvSvc from "./implement/EnvSvc";
|
3
|
-
import LogSvc from "./implement/LogSvc";
|
4
|
-
import UserSvc from "./implement/UserSvc";
|
5
|
-
import SvcFactory from "./SvcFactory";
|
6
|
-
/**
|
7
|
-
* 初始化服务
|
8
|
-
*/
|
9
|
-
declare let initSvcAsync: () => Promise<void>;
|
10
|
-
declare let settingSvc: {
|
11
|
-
loaded: boolean;
|
12
|
-
particles: boolean;
|
13
|
-
home: string;
|
14
|
-
background: any;
|
15
|
-
font: string;
|
16
|
-
language: string;
|
17
|
-
layout: string;
|
18
|
-
theme: string;
|
19
|
-
themes: any[];
|
20
|
-
layouts: any[];
|
21
|
-
backgrounds: any[];
|
22
|
-
locales: any[];
|
23
|
-
cdns: any[];
|
24
|
-
fonts: any;
|
25
|
-
ssos: any[];
|
26
|
-
size: string;
|
27
|
-
watermark: any;
|
28
|
-
app: string;
|
29
|
-
env: string;
|
30
|
-
central: any;
|
31
|
-
business: any;
|
32
|
-
upload: any;
|
33
|
-
version: any;
|
34
|
-
init: () => Promise<void>;
|
35
|
-
load: () => Promise<any>;
|
36
|
-
};
|
37
|
-
/**
|
38
|
-
* 驱动服务实例
|
39
|
-
*/
|
40
|
-
declare let configSvc: ConfigSvc;
|
41
|
-
/**
|
42
|
-
* 包装配置服务,保证驱动服务具有响应式,并且不需.value后缀
|
43
|
-
*/
|
44
|
-
declare let driverSvc: {
|
45
|
-
type: string;
|
46
|
-
loadSchemaAsync: (id: number, schema: string) => Promise<any[]>;
|
47
|
-
};
|
48
|
-
declare let envSvc: EnvSvc;
|
49
|
-
declare let logSvc: LogSvc;
|
50
|
-
declare let userSvc: UserSvc;
|
51
1
|
export * from "./implement";
|
52
|
-
export
|
2
|
+
export * from "./SvcFactory";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "halo-fe",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.33",
|
4
4
|
"description": "Halo front end sdk",
|
5
5
|
"scripts": {
|
6
6
|
"halo-fe:tsc": "vue-tsc",
|
@@ -40,16 +40,16 @@
|
|
40
40
|
"vue": "3.5.12"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@types/node": "22.
|
43
|
+
"@types/node": "22.8.6",
|
44
44
|
"@vitejs/plugin-vue": "5.1.4",
|
45
45
|
"@vitejs/plugin-vue-jsx": "4.0.1",
|
46
46
|
"crypto-js": "4.2.0",
|
47
47
|
"echarts": "5.5.1",
|
48
48
|
"monaco-editor": "0.52.0",
|
49
49
|
"quill": "2.0.2",
|
50
|
-
"sass": "1.80.
|
51
|
-
"vite": "5.4.
|
52
|
-
"vue-tsc": "2.1.
|
50
|
+
"sass": "1.80.5",
|
51
|
+
"vite": "5.4.10",
|
52
|
+
"vue-tsc": "2.1.10",
|
53
53
|
"xlsx-js-style": "1.2.0"
|
54
54
|
}
|
55
55
|
}
|