@yelon/bis 12.0.17 → 12.0.18

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 (73) hide show
  1. package/LICENSE +21 -21
  2. package/bis.d.ts +4 -4
  3. package/bundles/bis.umd.js +7 -7
  4. package/bundles/layout.umd.js +2551 -2549
  5. package/bundles/layout.umd.js.map +1 -1
  6. package/bundles/shared.umd.js +1222 -1222
  7. package/esm2015/bis.js +4 -4
  8. package/esm2015/layout/act.guard.js +114 -114
  9. package/esm2015/layout/bis.config.js +10 -10
  10. package/esm2015/layout/contact/contact.component.js +433 -433
  11. package/esm2015/layout/contact/contact.service.js +149 -149
  12. package/esm2015/layout/layout.js +7 -7
  13. package/esm2015/layout/layout.module.js +46 -46
  14. package/esm2015/layout/path-to-regexp.service.js +236 -236
  15. package/esm2015/layout/public_api.js +14 -14
  16. package/esm2015/layout/stomp.config.js +19 -19
  17. package/esm2015/layout/widgets/index.js +7 -7
  18. package/esm2015/layout/widgets/yz.application.component.js +132 -132
  19. package/esm2015/layout/widgets/yz.clear-storage.component.js +35 -35
  20. package/esm2015/layout/widgets/yz.fullscreen.component.js +32 -32
  21. package/esm2015/layout/widgets/yz.i18n.component.js +50 -50
  22. package/esm2015/layout/widgets/yz.notify.component.js +147 -144
  23. package/esm2015/layout/widgets/yz.them-btn.component.js +106 -106
  24. package/esm2015/layout/widgets/yz.user.component.js +57 -57
  25. package/esm2015/layout/yz.auth.service.js +157 -157
  26. package/esm2015/layout/yz.basic.component.js +40 -40
  27. package/esm2015/layout/yz.default.interceptor.js +203 -203
  28. package/esm2015/layout/yz.i18n.service.js +101 -101
  29. package/esm2015/layout/yz.startup.service.js +138 -138
  30. package/esm2015/layout/yz.stomp.service.js +90 -90
  31. package/esm2015/public_api.js +1 -1
  32. package/esm2015/shared/public_api.js +4 -4
  33. package/esm2015/shared/shared-yelon.module.js +107 -107
  34. package/esm2015/shared/shared-zorro.module.js +80 -80
  35. package/esm2015/shared/shared.js +4 -4
  36. package/esm2015/shared/shared.module.js +21 -21
  37. package/esm2015/shared/style-icons.js +795 -795
  38. package/fesm2015/bis.js +2 -2
  39. package/fesm2015/layout.js +2139 -2137
  40. package/fesm2015/layout.js.map +1 -1
  41. package/fesm2015/shared.js +908 -908
  42. package/layout/act.guard.d.ts +20 -20
  43. package/layout/bis.config.d.ts +3 -3
  44. package/layout/contact/contact.component.d.ts +166 -166
  45. package/layout/contact/contact.service.d.ts +115 -115
  46. package/layout/layout.d.ts +7 -7
  47. package/layout/layout.metadata.json +1 -1
  48. package/layout/layout.module.d.ts +2 -2
  49. package/layout/path-to-regexp.service.d.ts +23 -23
  50. package/layout/public_api.d.ts +12 -12
  51. package/layout/stomp.config.d.ts +3 -3
  52. package/layout/widgets/index.d.ts +7 -7
  53. package/layout/widgets/yz.application.component.d.ts +45 -45
  54. package/layout/widgets/yz.clear-storage.component.d.ts +8 -8
  55. package/layout/widgets/yz.fullscreen.component.d.ts +6 -6
  56. package/layout/widgets/yz.i18n.component.d.ts +19 -19
  57. package/layout/widgets/yz.notify.component.d.ts +27 -25
  58. package/layout/widgets/yz.them-btn.component.d.ts +29 -29
  59. package/layout/widgets/yz.user.component.d.ts +25 -25
  60. package/layout/yz.auth.service.d.ts +19 -19
  61. package/layout/yz.basic.component.d.ts +15 -15
  62. package/layout/yz.default.interceptor.d.ts +26 -26
  63. package/layout/yz.i18n.service.d.ts +24 -24
  64. package/layout/yz.startup.service.d.ts +31 -31
  65. package/layout/yz.stomp.service.d.ts +39 -39
  66. package/package.json +10 -10
  67. package/public_api.d.ts +2 -2
  68. package/shared/public_api.d.ts +4 -4
  69. package/shared/shared-yelon.module.d.ts +3 -3
  70. package/shared/shared-zorro.module.d.ts +2 -2
  71. package/shared/shared.d.ts +4 -4
  72. package/shared/shared.module.d.ts +2 -2
  73. package/shared/style-icons.d.ts +1 -1
@@ -1,25 +1,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
- 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
+ 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,19 +1,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
- 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
+ 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,15 +1,15 @@
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 } 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,26 +1,26 @@
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
+ /**
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,24 +1,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
- 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
+ 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,31 +1,31 @@
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
+ 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,39 +1,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
- 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
+ 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
+ }
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@yelon/bis",
3
- "version": "12.0.17",
3
+ "version": "12.0.18",
4
4
  "author": "devcui<devcui@outlook.com>",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
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",
8
+ "@yelon/acl": "^12.0.18",
9
+ "@yelon/auth": "^12.0.18",
10
+ "@yelon/theme": "^12.0.18",
11
+ "@yelon/mock": "^12.0.18",
12
+ "@yelon/cache": "^12.0.18",
13
+ "@yelon/chart": "^12.0.18",
14
+ "@yelon/form": "^12.0.18",
15
+ "@yelon/testing": "^12.0.18",
16
+ "@yelon/util": "^12.0.18",
17
17
  "tslib": "^2.2.0"
18
18
  },
19
19
  "main": "bundles/bis.umd.js",
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,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 { NzTreeModule } from 'ng-zorro-antd/tree';
2
+ export declare const YZ_SHARED_ZORRO_MODULES: (typeof NzTreeModule)[];
@@ -1,4 +1,4 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
@@ -1,2 +1,2 @@
1
- export declare class YzSharedModule {
2
- }
1
+ export declare class YzSharedModule {
2
+ }
@@ -1 +1 @@
1
- export declare const ICONS: import("@ant-design/icons-angular").IconDefinition[];
1
+ export declare const ICONS: import("@ant-design/icons-angular").IconDefinition[];