@yelon/bis 12.0.17 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/LICENSE +21 -21
  2. package/bis.d.ts +5 -4
  3. package/{esm2015/bis.js → esm2020/bis.mjs} +4 -4
  4. package/esm2020/layout/act.guard.mjs +108 -0
  5. package/{esm2015/layout/bis.config.js → esm2020/layout/bis.config.mjs} +10 -10
  6. package/esm2020/layout/contact/contact.component.mjs +492 -0
  7. package/esm2020/layout/contact/contact.service.mjs +146 -0
  8. package/esm2020/layout/layout.mjs +5 -0
  9. package/esm2020/layout/layout.module.mjs +73 -0
  10. package/{esm2015/layout/path-to-regexp.service.js → esm2020/layout/path-to-regexp.service.mjs} +238 -237
  11. package/{esm2015/layout/public_api.js → esm2020/layout/public_api.mjs} +15 -15
  12. package/esm2020/layout/stomp.config.mjs +18 -0
  13. package/{esm2015/layout/widgets/index.js → esm2020/layout/widgets/index.mjs} +7 -7
  14. package/esm2020/layout/widgets/yz.application.component.mjs +271 -0
  15. package/esm2020/layout/widgets/yz.clear-storage.component.mjs +45 -0
  16. package/esm2020/layout/widgets/yz.fullscreen.component.mjs +45 -0
  17. package/esm2020/layout/widgets/yz.i18n.component.mjs +115 -0
  18. package/esm2020/layout/widgets/yz.notify.component.mjs +184 -0
  19. package/esm2020/layout/widgets/yz.them-btn.component.mjs +196 -0
  20. package/esm2020/layout/widgets/yz.user.component.mjs +112 -0
  21. package/esm2020/layout/yz.auth.service.mjs +156 -0
  22. package/esm2020/layout/yz.basic.component.mjs +207 -0
  23. package/esm2020/layout/yz.default.interceptor.mjs +203 -0
  24. package/esm2020/layout/yz.i18n.service.mjs +93 -0
  25. package/esm2020/layout/yz.startup.service.mjs +137 -0
  26. package/esm2020/layout/yz.stomp.service.mjs +88 -0
  27. package/{esm2015/public_api.js → esm2020/public_api.mjs} +1 -1
  28. package/{esm2015/shared/public_api.js → esm2020/shared/public_api.mjs} +4 -4
  29. package/{esm2015/shared/shared-yelon.module.js → esm2020/shared/shared-yelon.module.mjs} +107 -107
  30. package/{esm2015/shared/shared-zorro.module.js → esm2020/shared/shared-zorro.module.mjs} +80 -80
  31. package/{esm2015/shared/shared.js → esm2020/shared/shared.mjs} +4 -4
  32. package/esm2020/shared/shared.module.mjs +116 -0
  33. package/{esm2015/shared/style-icons.js → esm2020/shared/style-icons.mjs} +795 -795
  34. package/fesm2015/{bis.js → bis.mjs} +3 -3
  35. package/fesm2015/bis.mjs.map +1 -0
  36. package/fesm2015/{layout.js → layout.mjs} +2514 -2181
  37. package/fesm2015/layout.mjs.map +1 -0
  38. package/fesm2015/{shared.js → shared.mjs} +1004 -910
  39. package/fesm2015/shared.mjs.map +1 -0
  40. package/fesm2020/bis.mjs +6 -0
  41. package/fesm2020/bis.mjs.map +1 -0
  42. package/fesm2020/layout.mjs +2796 -0
  43. package/fesm2020/layout.mjs.map +1 -0
  44. package/fesm2020/shared.mjs +1106 -0
  45. package/fesm2020/shared.mjs.map +1 -0
  46. package/layout/act.guard.d.ts +23 -20
  47. package/layout/bis.config.d.ts +3 -3
  48. package/layout/contact/contact.component.d.ts +169 -166
  49. package/layout/contact/contact.service.d.ts +118 -115
  50. package/layout/layout.d.ts +5 -7
  51. package/layout/layout.module.d.ts +20 -2
  52. package/layout/package.json +5 -6
  53. package/layout/path-to-regexp.service.d.ts +26 -23
  54. package/layout/public_api.d.ts +14 -12
  55. package/layout/stomp.config.d.ts +3 -3
  56. package/layout/widgets/index.d.ts +7 -7
  57. package/layout/widgets/yz.application.component.d.ts +48 -45
  58. package/layout/widgets/yz.clear-storage.component.d.ts +11 -8
  59. package/layout/widgets/yz.fullscreen.component.d.ts +8 -6
  60. package/layout/widgets/yz.i18n.component.d.ts +22 -19
  61. package/layout/widgets/yz.notify.component.d.ts +30 -25
  62. package/layout/widgets/yz.them-btn.component.d.ts +32 -29
  63. package/layout/widgets/yz.user.component.d.ts +28 -25
  64. package/layout/yz.auth.service.d.ts +22 -19
  65. package/layout/yz.basic.component.d.ts +24 -15
  66. package/layout/yz.default.interceptor.d.ts +29 -26
  67. package/layout/yz.i18n.service.d.ts +27 -24
  68. package/layout/yz.startup.service.d.ts +34 -31
  69. package/layout/yz.stomp.service.d.ts +42 -39
  70. package/package.json +46 -18
  71. package/public_api.d.ts +2 -2
  72. package/shared/package.json +5 -6
  73. package/shared/public_api.d.ts +4 -4
  74. package/shared/shared-yelon.module.d.ts +3 -3
  75. package/shared/shared-zorro.module.d.ts +2 -2
  76. package/shared/shared.d.ts +5 -4
  77. package/shared/shared.module.d.ts +95 -2
  78. package/shared/style-icons.d.ts +1 -1
  79. package/bis.metadata.json +0 -1
  80. package/bundles/bis.umd.js +0 -18
  81. package/bundles/bis.umd.js.map +0 -1
  82. package/bundles/layout.umd.js +0 -2669
  83. package/bundles/layout.umd.js.map +0 -1
  84. package/bundles/shared.umd.js +0 -1249
  85. package/bundles/shared.umd.js.map +0 -1
  86. package/esm2015/layout/act.guard.js +0 -115
  87. package/esm2015/layout/contact/contact.component.js +0 -434
  88. package/esm2015/layout/contact/contact.service.js +0 -150
  89. package/esm2015/layout/layout.js +0 -8
  90. package/esm2015/layout/layout.module.js +0 -47
  91. package/esm2015/layout/stomp.config.js +0 -20
  92. package/esm2015/layout/widgets/yz.application.component.js +0 -200
  93. package/esm2015/layout/widgets/yz.clear-storage.component.js +0 -39
  94. package/esm2015/layout/widgets/yz.fullscreen.component.js +0 -36
  95. package/esm2015/layout/widgets/yz.i18n.component.js +0 -78
  96. package/esm2015/layout/widgets/yz.notify.component.js +0 -154
  97. package/esm2015/layout/widgets/yz.them-btn.component.js +0 -146
  98. package/esm2015/layout/widgets/yz.user.component.js +0 -81
  99. package/esm2015/layout/yz.auth.service.js +0 -158
  100. package/esm2015/layout/yz.basic.component.js +0 -101
  101. package/esm2015/layout/yz.default.interceptor.js +0 -204
  102. package/esm2015/layout/yz.i18n.service.js +0 -102
  103. package/esm2015/layout/yz.startup.service.js +0 -138
  104. package/esm2015/layout/yz.stomp.service.js +0 -91
  105. package/esm2015/shared/shared.module.js +0 -22
  106. package/fesm2015/bis.js.map +0 -1
  107. package/fesm2015/layout.js.map +0 -1
  108. package/fesm2015/shared.js.map +0 -1
  109. package/layout/layout.metadata.json +0 -1
  110. package/shared/shared.metadata.json +0 -1
@@ -1,29 +1,32 @@
1
- import { Direction, Directionality } from '@angular/cdk/bidi';
2
- import { Platform } from '@angular/cdk/platform';
3
- import { OnDestroy, OnInit, Renderer2 } from '@angular/core';
4
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
5
- import { ThemeBtnType } from '@yelon/theme/theme-btn';
6
- import { YunzaiConfigService } from '@yelon/util/config';
7
- export interface YzThemeBtnType extends ThemeBtnType {
8
- color?: string;
9
- }
10
- export declare class YzHeaderThemBtnComponent implements OnInit, OnDestroy {
11
- private renderer;
12
- private configSrv;
13
- private platform;
14
- private doc;
15
- private directionality;
16
- private KEYS;
17
- private theme;
18
- types: YzThemeBtnType[];
19
- devTips: string;
20
- deployUrl: string;
21
- private destroy$;
22
- dir: Direction;
23
- constructor(renderer: Renderer2, configSrv: YunzaiConfigService, platform: Platform, doc: NzSafeAny, directionality: Directionality, KEYS: string);
24
- ngOnInit(): void;
25
- private initTheme;
26
- private updateChartTheme;
27
- onThemeChange(theme: string): void;
28
- ngOnDestroy(): void;
29
- }
1
+ import { Direction, Directionality } from '@angular/cdk/bidi';
2
+ import { Platform } from '@angular/cdk/platform';
3
+ import { OnDestroy, OnInit, Renderer2 } from '@angular/core';
4
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
5
+ import { ThemeBtnType } from '@yelon/theme/theme-btn';
6
+ import { YunzaiConfigService } from '@yelon/util/config';
7
+ import * as i0 from "@angular/core";
8
+ export interface YzThemeBtnType extends ThemeBtnType {
9
+ color?: string;
10
+ }
11
+ export declare class YzHeaderThemBtnComponent implements OnInit, OnDestroy {
12
+ private renderer;
13
+ private configSrv;
14
+ private platform;
15
+ private doc;
16
+ private directionality;
17
+ private KEYS;
18
+ private theme;
19
+ types: YzThemeBtnType[];
20
+ devTips: string;
21
+ deployUrl: string;
22
+ private destroy$;
23
+ dir: Direction;
24
+ constructor(renderer: Renderer2, configSrv: YunzaiConfigService, platform: Platform, doc: NzSafeAny, directionality: Directionality, KEYS: string);
25
+ ngOnInit(): void;
26
+ private initTheme;
27
+ private updateChartTheme;
28
+ onThemeChange(theme: string): void;
29
+ ngOnDestroy(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<YzHeaderThemBtnComponent, [null, null, null, null, { optional: true; }, null]>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<YzHeaderThemBtnComponent, "yz-header-theme-btn", never, { "types": "types"; "devTips": "devTips"; "deployUrl": "deployUrl"; }, {}, never, never>;
32
+ }
@@ -1,25 +1,28 @@
1
- import { Injector, OnInit } from '@angular/core';
2
- import { NzMessageService } from 'ng-zorro-antd/message';
3
- import { ITokenService } from '@yelon/auth';
4
- import { CacheService } from '@yelon/cache';
5
- import { YunzaiConfigService } from '@yelon/util';
6
- export interface UserLink {
7
- icon: string;
8
- name: string;
9
- url: string;
10
- }
11
- export declare class YzHeaderUserComponent implements OnInit {
12
- private injector;
13
- private msg;
14
- private tokenService;
15
- private configService;
16
- private cacheService;
17
- private config;
18
- constructor(injector: Injector, msg: NzMessageService, tokenService: ITokenService, configService: YunzaiConfigService, cacheService: CacheService);
19
- icon: string;
20
- username: string;
21
- menus: UserLink[];
22
- ngOnInit(): void;
23
- logout(): void;
24
- to(href: string): void;
25
- }
1
+ import { Injector, OnInit } from '@angular/core';
2
+ import { NzMessageService } from 'ng-zorro-antd/message';
3
+ import { ITokenService } from '@yelon/auth';
4
+ import { CacheService } from '@yelon/cache';
5
+ import { YunzaiConfigService } from '@yelon/util';
6
+ import * as i0 from "@angular/core";
7
+ export interface UserLink {
8
+ icon: string;
9
+ name: string;
10
+ url: string;
11
+ }
12
+ export declare class YzHeaderUserComponent implements OnInit {
13
+ private injector;
14
+ private msg;
15
+ private tokenService;
16
+ private configService;
17
+ private cacheService;
18
+ private config;
19
+ constructor(injector: Injector, msg: NzMessageService, tokenService: ITokenService, configService: YunzaiConfigService, cacheService: CacheService);
20
+ icon: string;
21
+ username: string;
22
+ menus: UserLink[];
23
+ ngOnInit(): void;
24
+ logout(): void;
25
+ to(href: string): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<YzHeaderUserComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<YzHeaderUserComponent, "yz-header-user", never, {}, {}, never, never>;
28
+ }
@@ -1,19 +1,22 @@
1
- import { Injector } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { ITokenModel } from '@yelon/auth';
4
- import { YunzaiAuthConfig, YunzaiBusinessConfig } from '@yelon/util';
5
- export declare class YzAuthService {
6
- private injector;
7
- protected option: YunzaiAuthConfig;
8
- protected bis: YunzaiBusinessConfig;
9
- constructor(injector: Injector);
10
- private get csr();
11
- private get tokenService();
12
- private get httpClient();
13
- private get cacheService();
14
- askToken(): Observable<ITokenModel>;
15
- fetchTokenByUP(): Observable<ITokenModel>;
16
- fetchTokenByCas(): Observable<ITokenModel>;
17
- login(): Observable<void>;
18
- cacheInit(): Observable<void[]>;
19
- }
1
+ import { Injector } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ITokenModel } from '@yelon/auth';
4
+ import { YunzaiAuthConfig, YunzaiBusinessConfig } from '@yelon/util';
5
+ import * as i0 from "@angular/core";
6
+ export declare class YzAuthService {
7
+ private injector;
8
+ protected option: YunzaiAuthConfig;
9
+ protected bis: YunzaiBusinessConfig;
10
+ constructor(injector: Injector);
11
+ private get csr();
12
+ private get tokenService();
13
+ private get httpClient();
14
+ private get cacheService();
15
+ askToken(): Observable<ITokenModel>;
16
+ fetchTokenByUP(): Observable<ITokenModel>;
17
+ fetchTokenByCas(): Observable<ITokenModel>;
18
+ login(): Observable<void>;
19
+ cacheInit(): Observable<void[]>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<YzAuthService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<YzAuthService>;
22
+ }
@@ -1,15 +1,24 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { CacheService } from '@yelon/cache';
3
- import { LayoutDefaultOptions } from '@yelon/theme/layout-default';
4
- import { YzStompService } from './yz.stomp.service';
5
- export declare class YzLayoutBasicComponent implements OnInit, OnDestroy {
6
- private cacheService;
7
- private yzStompService;
8
- options: LayoutDefaultOptions;
9
- intro: string;
10
- text: string;
11
- icon: string;
12
- constructor(cacheService: CacheService, yzStompService: YzStompService);
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- }
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { CacheService } from '@yelon/cache';
3
+ import { LayoutDefaultOptions, LayoutService } from '@yelon/theme/layout-default';
4
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
5
+ import { YzStompService } from './yz.stomp.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class YzLayoutBasicComponent implements OnInit, OnDestroy {
8
+ private cacheService;
9
+ private yzStompService;
10
+ private layoutService;
11
+ options: LayoutDefaultOptions;
12
+ intro: string;
13
+ text: string;
14
+ icon: string;
15
+ showReuseTab: boolean;
16
+ showHeader: boolean;
17
+ showSider: boolean;
18
+ get reuseStyleSheet(): NzSafeAny;
19
+ constructor(cacheService: CacheService, yzStompService: YzStompService, layoutService: LayoutService);
20
+ ngOnInit(): void;
21
+ ngOnDestroy(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<YzLayoutBasicComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<YzLayoutBasicComponent, "yz-layout-basic", never, {}, {}, never, never>;
24
+ }
@@ -1,26 +1,29 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { Injector } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- /**
5
- * 默认HTTP拦截器,其注册细节见 `app.module.ts`
6
- */
7
- export declare class YzDefaultInterceptor implements HttpInterceptor {
8
- private injector;
9
- private jump;
10
- private refreshToking;
11
- private refreshToken$;
12
- private get notification();
13
- private get tokenSrv();
14
- private get http();
15
- private get config();
16
- private goTo;
17
- constructor(injector: Injector);
18
- private checkStatus;
19
- private ToLogin;
20
- private reAttachToken;
21
- private refreshTokenRequest;
22
- private tryRefreshToken;
23
- private getAdditionalHeaders;
24
- private handleData;
25
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
26
- }
1
+ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
+ import { Injector } from '@angular/core';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * 默认HTTP拦截器,其注册细节见 `app.module.ts`
7
+ */
8
+ export declare class YzDefaultInterceptor implements HttpInterceptor {
9
+ private injector;
10
+ private jump;
11
+ private refreshToking;
12
+ private refreshToken$;
13
+ private get notification();
14
+ private get tokenSrv();
15
+ private get http();
16
+ private get config();
17
+ private goTo;
18
+ constructor(injector: Injector);
19
+ private checkStatus;
20
+ private ToLogin;
21
+ private reAttachToken;
22
+ private refreshTokenRequest;
23
+ private tryRefreshToken;
24
+ private getAdditionalHeaders;
25
+ private handleData;
26
+ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<YzDefaultInterceptor, never>;
28
+ static ɵprov: i0.ɵɵInjectableDeclaration<YzDefaultInterceptor>;
29
+ }
@@ -1,24 +1,27 @@
1
- import { Platform } from '@angular/cdk/platform';
2
- import { Observable } from 'rxjs';
3
- import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService } from '@yelon/theme';
4
- import { YunzaiConfigService } from '@yelon/util/config';
5
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
6
- import { NzI18nService } from 'ng-zorro-antd/i18n';
7
- export declare class YzI18NService extends YunzaiI18nBaseService {
8
- private http;
9
- private settings;
10
- private nzI18nService;
11
- private yelonLocaleService;
12
- private platform;
13
- protected _defaultLang: string;
14
- private _langs;
15
- constructor(http: _HttpClient, settings: SettingsService, nzI18nService: NzI18nService, yelonLocaleService: YelonLocaleService, platform: Platform, cogSrv: YunzaiConfigService);
16
- private getDefaultLang;
17
- loadLangData(lang: string): Observable<NzSafeAny>;
18
- use(lang: string, data: Record<string, unknown>): void;
19
- getLangs(): Array<{
20
- code: string;
21
- text: string;
22
- abbr: string;
23
- }>;
24
- }
1
+ import { Platform } from '@angular/cdk/platform';
2
+ import { Observable } from 'rxjs';
3
+ import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService } from '@yelon/theme';
4
+ import { YunzaiConfigService } from '@yelon/util/config';
5
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
6
+ import { NzI18nService } from 'ng-zorro-antd/i18n';
7
+ import * as i0 from "@angular/core";
8
+ export declare class YzI18NService extends YunzaiI18nBaseService {
9
+ private http;
10
+ private settings;
11
+ private nzI18nService;
12
+ private yelonLocaleService;
13
+ private platform;
14
+ protected _defaultLang: string;
15
+ private _langs;
16
+ constructor(http: _HttpClient, settings: SettingsService, nzI18nService: NzI18nService, yelonLocaleService: YelonLocaleService, platform: Platform, cogSrv: YunzaiConfigService);
17
+ private getDefaultLang;
18
+ loadLangData(lang: string): Observable<NzSafeAny>;
19
+ use(lang: string, data: Record<string, unknown>): void;
20
+ getLangs(): Array<{
21
+ code: string;
22
+ text: string;
23
+ abbr: string;
24
+ }>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<YzI18NService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<YzI18NService>;
27
+ }
@@ -1,31 +1,34 @@
1
- import { Observable } from 'rxjs';
2
- import { NzIconService } from 'ng-zorro-antd/icon';
3
- import { ACLService } from '@yelon/acl';
4
- import { CacheService } from '@yelon/cache';
5
- import { Menu, MenuService, SettingsService, TitleService } from '@yelon/theme';
6
- import { YunzaiConfigService } from '@yelon/util';
7
- import { YzAuthService } from './yz.auth.service';
8
- import { YzI18NService } from './yz.i18n.service';
9
- export declare function mapYzSideToYelonMenu(menus: Menu[]): void;
10
- export declare function generateAbility(menus: Menu[], abilities: string[], prefix: string): void;
11
- export declare class YzStartupService {
12
- private menuService;
13
- private i18n;
14
- private settingService;
15
- private aclService;
16
- private titleService;
17
- private yzAuthService;
18
- private cacheService;
19
- private configService;
20
- private bis;
21
- constructor(iconSrv: NzIconService, menuService: MenuService, i18n: YzI18NService, settingService: SettingsService, aclService: ACLService, titleService: TitleService, yzAuthService: YzAuthService, cacheService: CacheService, configService: YunzaiConfigService);
22
- load(): Observable<void>;
23
- systemInit(): void;
24
- }
25
- export declare function YzStartupServiceFactory(startupService: YzStartupService): () => Observable<void>;
26
- export declare const YZ_APPINIT_PROVIDES: (typeof YzStartupService | {
27
- provide: import("@angular/core").InjectionToken<readonly (() => void | Observable<unknown> | Promise<unknown>)[]>;
28
- useFactory: typeof YzStartupServiceFactory;
29
- deps: (typeof YzStartupService)[];
30
- multi: boolean;
31
- })[];
1
+ import { Observable } from 'rxjs';
2
+ import { ACLService } from '@yelon/acl';
3
+ import { CacheService } from '@yelon/cache';
4
+ import { Menu, MenuService, SettingsService, TitleService } from '@yelon/theme';
5
+ import { YunzaiConfigService } from '@yelon/util';
6
+ import { NzIconService } from 'ng-zorro-antd/icon';
7
+ import { YzAuthService } from './yz.auth.service';
8
+ import { YzI18NService } from './yz.i18n.service';
9
+ import * as i0 from "@angular/core";
10
+ export declare function mapYzSideToYelonMenu(menus: Menu[]): void;
11
+ export declare function generateAbility(menus: Menu[], abilities: string[], prefix: string): void;
12
+ export declare class YzStartupService {
13
+ private menuService;
14
+ private i18n;
15
+ private settingService;
16
+ private aclService;
17
+ private titleService;
18
+ private yzAuthService;
19
+ private cacheService;
20
+ private configService;
21
+ private bis;
22
+ constructor(iconSrv: NzIconService, menuService: MenuService, i18n: YzI18NService, settingService: SettingsService, aclService: ACLService, titleService: TitleService, yzAuthService: YzAuthService, cacheService: CacheService, configService: YunzaiConfigService);
23
+ load(): Observable<void>;
24
+ systemInit(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<YzStartupService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<YzStartupService>;
27
+ }
28
+ export declare function YzStartupServiceFactory(startupService: YzStartupService): () => Observable<void>;
29
+ export declare const YZ_APPINIT_PROVIDES: (typeof YzStartupService | {
30
+ provide: import("@angular/core").InjectionToken<readonly (() => void | Observable<unknown> | Promise<unknown>)[]>;
31
+ useFactory: typeof YzStartupServiceFactory;
32
+ deps: (typeof YzStartupService)[];
33
+ multi: boolean;
34
+ })[];
@@ -1,39 +1,42 @@
1
- import { Injector } from '@angular/core';
2
- import { Observable, Subscription } from 'rxjs';
3
- import { RxStomp } from '@stomp/rx-stomp';
4
- import { IRxStompPublishParams } from '@stomp/rx-stomp/esm6/i-rx-stomp-publish-params';
5
- import { IMessage, StompHeaders } from '@stomp/stompjs';
6
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
7
- import { NzNotificationService } from 'ng-zorro-antd/notification';
8
- import { CacheService } from '@yelon/cache';
9
- import { YunzaiBusinessConfig, YunzaiConfigService, YunzaiStompConfig } from '@yelon/util';
10
- export interface StompMessage {
11
- title?: string;
12
- content?: string;
13
- href?: string;
14
- type?: string;
15
- }
16
- export interface IconStompMessage extends StompMessage {
17
- icon?: string;
18
- }
19
- export interface UserStompMessage extends StompMessage {
20
- useruri?: string;
21
- }
22
- export declare class YzStompService {
23
- private csr;
24
- private cache;
25
- private injector;
26
- private notification;
27
- config: YunzaiStompConfig;
28
- bisConfig: YunzaiBusinessConfig;
29
- rxStomp: RxStomp;
30
- user: NzSafeAny;
31
- subs: Subscription[];
32
- constructor(csr: YunzaiConfigService, cache: CacheService, injector: Injector, notification: NzNotificationService);
33
- listen(): void;
34
- createNotification(message: StompMessage): void;
35
- logoutNotification(message: StompMessage): void;
36
- unListen(): void;
37
- publish(parameters: IRxStompPublishParams): void;
38
- watch(destination: string, headers?: StompHeaders): Observable<IMessage>;
39
- }
1
+ import { Injector } from '@angular/core';
2
+ import { Observable, Subscription } from 'rxjs';
3
+ import { RxStomp } from '@stomp/rx-stomp';
4
+ import { IRxStompPublishParams } from '@stomp/rx-stomp/esm6/i-rx-stomp-publish-params';
5
+ import { IMessage, StompHeaders } from '@stomp/stompjs';
6
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
7
+ import { NzNotificationService } from 'ng-zorro-antd/notification';
8
+ import { CacheService } from '@yelon/cache';
9
+ import { YunzaiBusinessConfig, YunzaiConfigService, YunzaiStompConfig } from '@yelon/util';
10
+ import * as i0 from "@angular/core";
11
+ export interface StompMessage {
12
+ title?: string;
13
+ content?: string;
14
+ href?: string;
15
+ type?: string;
16
+ }
17
+ export interface IconStompMessage extends StompMessage {
18
+ icon?: string;
19
+ }
20
+ export interface UserStompMessage extends StompMessage {
21
+ useruri?: string;
22
+ }
23
+ export declare class YzStompService {
24
+ private csr;
25
+ private cache;
26
+ private injector;
27
+ private notification;
28
+ config: YunzaiStompConfig | null;
29
+ bisConfig: YunzaiBusinessConfig | null;
30
+ rxStomp: RxStomp | null;
31
+ user: NzSafeAny;
32
+ subs: Subscription[];
33
+ constructor(csr: YunzaiConfigService, cache: CacheService, injector: Injector, notification: NzNotificationService);
34
+ listen(): void;
35
+ createNotification(message: StompMessage): void;
36
+ logoutNotification(message: StompMessage): void;
37
+ unListen(): void;
38
+ publish(parameters: IRxStompPublishParams): void;
39
+ watch(destination: string, headers?: StompHeaders): Observable<IMessage>;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<YzStompService, never>;
41
+ static ɵprov: i0.ɵɵInjectableDeclaration<YzStompService>;
42
+ }
package/package.json CHANGED
@@ -1,27 +1,55 @@
1
1
  {
2
2
  "name": "@yelon/bis",
3
- "version": "12.0.17",
3
+ "version": "13.0.0",
4
4
  "author": "devcui<devcui@outlook.com>",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "ng-zorro-antd": "^12.0.1",
8
- "@yelon/acl": "^12.0.17",
9
- "@yelon/auth": "^12.0.17",
10
- "@yelon/theme": "^12.0.17",
11
- "@yelon/mock": "^12.0.17",
12
- "@yelon/cache": "^12.0.17",
13
- "@yelon/chart": "^12.0.17",
14
- "@yelon/form": "^12.0.17",
15
- "@yelon/testing": "^12.0.17",
16
- "@yelon/util": "^12.0.17",
17
- "tslib": "^2.2.0"
7
+ "ng-zorro-antd": "^13.0.0",
8
+ "@yelon/acl": "^13.0.0",
9
+ "@yelon/auth": "^13.0.0",
10
+ "@yelon/theme": "^13.0.0",
11
+ "@yelon/mock": "^13.0.0",
12
+ "@yelon/cache": "^13.0.0",
13
+ "@yelon/chart": "^13.0.0",
14
+ "@yelon/form": "^13.0.0",
15
+ "@yelon/testing": "^13.0.0",
16
+ "@yelon/util": "^13.0.0",
17
+ "tslib": "^2.3.0"
18
18
  },
19
- "main": "bundles/bis.umd.js",
20
- "module": "fesm2015/bis.js",
21
- "es2015": "fesm2015/bis.js",
22
- "esm2015": "esm2015/bis.js",
23
- "fesm2015": "fesm2015/bis.js",
19
+ "module": "fesm2015/bis.mjs",
20
+ "es2020": "fesm2020/bis.mjs",
21
+ "esm2020": "esm2020/bis.mjs",
22
+ "fesm2020": "fesm2020/bis.mjs",
23
+ "fesm2015": "fesm2015/bis.mjs",
24
24
  "typings": "bis.d.ts",
25
- "metadata": "bis.metadata.json",
25
+ "exports": {
26
+ "./package.json": {
27
+ "default": "./package.json"
28
+ },
29
+ ".": {
30
+ "types": "./bis.d.ts",
31
+ "esm2020": "./esm2020/bis.mjs",
32
+ "es2020": "./fesm2020/bis.mjs",
33
+ "es2015": "./fesm2015/bis.mjs",
34
+ "node": "./fesm2015/bis.mjs",
35
+ "default": "./fesm2020/bis.mjs"
36
+ },
37
+ "./layout": {
38
+ "types": "./layout/layout.d.ts",
39
+ "esm2020": "./esm2020/layout/layout.mjs",
40
+ "es2020": "./fesm2020/layout.mjs",
41
+ "es2015": "./fesm2015/layout.mjs",
42
+ "node": "./fesm2015/layout.mjs",
43
+ "default": "./fesm2020/layout.mjs"
44
+ },
45
+ "./shared": {
46
+ "types": "./shared/shared.d.ts",
47
+ "esm2020": "./esm2020/shared/shared.mjs",
48
+ "es2020": "./fesm2020/shared.mjs",
49
+ "es2015": "./fesm2015/shared.mjs",
50
+ "node": "./fesm2015/shared.mjs",
51
+ "default": "./fesm2020/shared.mjs"
52
+ }
53
+ },
26
54
  "sideEffects": false
27
55
  }
package/public_api.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: undefined;
2
- export default _default;
1
+ declare const _default: undefined;
2
+ export default _default;
@@ -1,11 +1,10 @@
1
1
  {
2
- "main": "../bundles/shared.umd.js",
3
- "module": "../fesm2015/shared.js",
4
- "es2015": "../fesm2015/shared.js",
5
- "esm2015": "../esm2015/shared/shared.js",
6
- "fesm2015": "../fesm2015/shared.js",
2
+ "module": "../fesm2015/shared.mjs",
3
+ "es2020": "../fesm2020/shared.mjs",
4
+ "esm2020": "../esm2020/shared/shared.mjs",
5
+ "fesm2020": "../fesm2020/shared.mjs",
6
+ "fesm2015": "../fesm2015/shared.mjs",
7
7
  "typings": "shared.d.ts",
8
- "metadata": "shared.metadata.json",
9
8
  "sideEffects": false,
10
9
  "name": "@yelon/bis/shared"
11
10
  }
@@ -1,4 +1,4 @@
1
- export * from './shared-yelon.module';
2
- export * from './shared-zorro.module';
3
- export * from './shared.module';
4
- export * from './style-icons';
1
+ export * from './shared-yelon.module';
2
+ export * from './shared-zorro.module';
3
+ export * from './shared.module';
4
+ export * from './style-icons';
@@ -1,3 +1,3 @@
1
- import { NoticeIconModule } from '@yelon/abc/notice-icon';
2
- import { YunzaiThemeModule } from '@yelon/theme';
3
- export declare const YZ_SHARED_YELON_MODULES: (typeof YunzaiThemeModule | typeof NoticeIconModule)[];
1
+ import { NoticeIconModule } from '@yelon/abc/notice-icon';
2
+ import { YunzaiThemeModule } from '@yelon/theme';
3
+ export declare const YZ_SHARED_YELON_MODULES: (typeof YunzaiThemeModule | typeof NoticeIconModule)[];
@@ -1,2 +1,2 @@
1
- import { NzTreeModule } from 'ng-zorro-antd/tree';
2
- export declare const YZ_SHARED_ZORRO_MODULES: (typeof NzTreeModule)[];
1
+ import { NzBadgeModule } from 'ng-zorro-antd/badge';
2
+ export declare const YZ_SHARED_ZORRO_MODULES: (typeof NzBadgeModule)[];
@@ -1,4 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@yelon/bis/shared" />
5
+ export * from './public_api';