@yelon/bis 12.0.10 → 12.0.11

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 (62) 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 +1609 -1609
  5. package/bundles/shared.umd.js +1225 -1225
  6. package/esm2015/bis.js +4 -4
  7. package/esm2015/layout/bis.config.js +10 -10
  8. package/esm2015/layout/layout.js +5 -5
  9. package/esm2015/layout/layout.module.js +34 -34
  10. package/esm2015/layout/public_api.js +10 -10
  11. package/esm2015/layout/stomp.config.js +19 -19
  12. package/esm2015/layout/widgets/index.js +7 -7
  13. package/esm2015/layout/widgets/yz.application.component.js +132 -132
  14. package/esm2015/layout/widgets/yz.clear-storage.component.js +35 -35
  15. package/esm2015/layout/widgets/yz.fullscreen.component.js +32 -32
  16. package/esm2015/layout/widgets/yz.i18n.component.js +50 -50
  17. package/esm2015/layout/widgets/yz.notify.component.js +143 -143
  18. package/esm2015/layout/widgets/yz.them-btn.component.js +106 -106
  19. package/esm2015/layout/widgets/yz.user.component.js +57 -57
  20. package/esm2015/layout/yz.auth.service.js +157 -157
  21. package/esm2015/layout/yz.basic.component.js +40 -40
  22. package/esm2015/layout/yz.default.interceptor.js +191 -191
  23. package/esm2015/layout/yz.i18n.service.js +103 -103
  24. package/esm2015/layout/yz.startup.service.js +137 -137
  25. package/esm2015/layout/yz.stomp.service.js +90 -90
  26. package/esm2015/public_api.js +1 -1
  27. package/esm2015/shared/public_api.js +4 -4
  28. package/esm2015/shared/shared-yelon.module.js +107 -107
  29. package/esm2015/shared/shared-zorro.module.js +78 -78
  30. package/esm2015/shared/shared.js +4 -4
  31. package/esm2015/shared/shared.module.js +15 -15
  32. package/esm2015/shared/style-icons.js +795 -795
  33. package/fesm2015/bis.js +2 -2
  34. package/fesm2015/layout.js +1207 -1207
  35. package/fesm2015/shared.js +901 -901
  36. package/layout/bis.config.d.ts +3 -3
  37. package/layout/layout.d.ts +5 -5
  38. package/layout/layout.module.d.ts +2 -2
  39. package/layout/public_api.d.ts +10 -10
  40. package/layout/stomp.config.d.ts +3 -3
  41. package/layout/widgets/index.d.ts +7 -7
  42. package/layout/widgets/yz.application.component.d.ts +45 -45
  43. package/layout/widgets/yz.clear-storage.component.d.ts +8 -8
  44. package/layout/widgets/yz.fullscreen.component.d.ts +6 -6
  45. package/layout/widgets/yz.i18n.component.d.ts +19 -19
  46. package/layout/widgets/yz.notify.component.d.ts +25 -25
  47. package/layout/widgets/yz.them-btn.component.d.ts +29 -29
  48. package/layout/widgets/yz.user.component.d.ts +25 -25
  49. package/layout/yz.auth.service.d.ts +19 -19
  50. package/layout/yz.basic.component.d.ts +15 -15
  51. package/layout/yz.default.interceptor.d.ts +25 -25
  52. package/layout/yz.i18n.service.d.ts +24 -24
  53. package/layout/yz.startup.service.d.ts +31 -31
  54. package/layout/yz.stomp.service.d.ts +39 -39
  55. package/package.json +10 -10
  56. package/public_api.d.ts +2 -2
  57. package/shared/public_api.d.ts +4 -4
  58. package/shared/shared-yelon.module.d.ts +3 -3
  59. package/shared/shared-zorro.module.d.ts +2 -2
  60. package/shared/shared.d.ts +4 -4
  61. package/shared/shared.module.d.ts +2 -2
  62. package/shared/style-icons.d.ts +1 -1
@@ -1,3 +1,3 @@
1
- import { YunzaiBusinessConfig, YunzaiConfigService } from '@yelon/util';
2
- export declare const BUSINESS_DEFAULT_CONFIG: YunzaiBusinessConfig;
3
- export declare function mergeBisConfig(srv: YunzaiConfigService): YunzaiBusinessConfig;
1
+ import { YunzaiBusinessConfig, YunzaiConfigService } from '@yelon/util';
2
+ export declare const BUSINESS_DEFAULT_CONFIG: YunzaiBusinessConfig;
3
+ export declare function mergeBisConfig(srv: YunzaiConfigService): YunzaiBusinessConfig;
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public_api';
5
- export { YzHeaderApplicationComponent as ɵa, YzHeaderClearStorageComponent as ɵf, YzHeaderFullScreenComponent as ɵe, YzHeaderI18NComponent as ɵg, YzHeaderNotifyComponent as ɵb, YzHeaderThemBtnComponent as ɵc, YzHeaderUserComponent as ɵd } from './widgets';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
5
+ export { YzHeaderApplicationComponent as ɵa, YzHeaderClearStorageComponent as ɵf, YzHeaderFullScreenComponent as ɵe, YzHeaderI18NComponent as ɵg, YzHeaderNotifyComponent as ɵb, YzHeaderThemBtnComponent as ɵc, YzHeaderUserComponent as ɵd } from './widgets';
@@ -1,2 +1,2 @@
1
- export declare class YunzaiLayoutModule {
2
- }
1
+ export declare class YunzaiLayoutModule {
2
+ }
@@ -1,10 +1,10 @@
1
- export * from './widgets';
2
- export * from './layout.module';
3
- export * from './yz.auth.service';
4
- export * from './yz.basic.component';
5
- export * from './yz.default.interceptor';
6
- export * from './yz.i18n.service';
7
- export * from './yz.startup.service';
8
- export * from './bis.config';
9
- export * from './stomp.config';
10
- export * from './yz.stomp.service';
1
+ export * from './widgets';
2
+ export * from './layout.module';
3
+ export * from './yz.auth.service';
4
+ export * from './yz.basic.component';
5
+ export * from './yz.default.interceptor';
6
+ export * from './yz.i18n.service';
7
+ export * from './yz.startup.service';
8
+ export * from './bis.config';
9
+ export * from './stomp.config';
10
+ export * from './yz.stomp.service';
@@ -1,3 +1,3 @@
1
- import { YunzaiConfigService, YunzaiStompConfig } from '@yelon/util';
2
- export declare const STOMP_DEFAULT_CONFIG: YunzaiStompConfig;
3
- export declare function mergeStompConfig(srv: YunzaiConfigService): YunzaiStompConfig;
1
+ import { YunzaiConfigService, YunzaiStompConfig } from '@yelon/util';
2
+ export declare const STOMP_DEFAULT_CONFIG: YunzaiStompConfig;
3
+ export declare function mergeStompConfig(srv: YunzaiConfigService): YunzaiStompConfig;
@@ -1,7 +1,7 @@
1
- export * from './yz.application.component';
2
- export * from './yz.i18n.component';
3
- export * from './yz.notify.component';
4
- export * from './yz.them-btn.component';
5
- export * from './yz.user.component';
6
- export * from './yz.clear-storage.component';
7
- export * from './yz.fullscreen.component';
1
+ export * from './yz.application.component';
2
+ export * from './yz.i18n.component';
3
+ export * from './yz.notify.component';
4
+ export * from './yz.them-btn.component';
5
+ export * from './yz.user.component';
6
+ export * from './yz.clear-storage.component';
7
+ export * from './yz.fullscreen.component';
@@ -1,45 +1,45 @@
1
- import { Injector, OnDestroy, OnInit } from '@angular/core';
2
- import { Subscription } from 'rxjs';
3
- import { CacheService } from '@yelon/cache';
4
- import { _HttpClient } from '@yelon/theme';
5
- import { YzI18NService } from '../yz.i18n.service';
6
- export declare enum TOPIC {
7
- FULL = 0,
8
- OWN = 1,
9
- EVERY = 2
10
- }
11
- export interface HeaderTopic {
12
- attribute: any;
13
- children: HeaderTopic[];
14
- intro: string;
15
- key: string;
16
- name: string;
17
- target: string;
18
- auth: boolean;
19
- url: string;
20
- version: string;
21
- }
22
- export declare class YzHeaderApplicationComponent implements OnInit, OnDestroy {
23
- private inject;
24
- private cacheService;
25
- private i18n;
26
- private http;
27
- T: typeof TOPIC;
28
- active: boolean;
29
- topicData: HeaderTopic[];
30
- listData: HeaderTopic[];
31
- topic: TOPIC;
32
- choosed: HeaderTopic | undefined;
33
- searchValue: string | null;
34
- subs: Subscription[];
35
- constructor(inject: Injector, cacheService: CacheService, i18n: YzI18NService, http: _HttpClient);
36
- ngOnInit(): void;
37
- ngOnDestroy(): void;
38
- diffChange(flag?: boolean): void;
39
- initTopic(topic: TOPIC): void;
40
- full(): void;
41
- own(): void;
42
- every(e: HeaderTopic): void;
43
- onSearch(): void;
44
- open(topic: HeaderTopic): void;
45
- }
1
+ import { Injector, OnDestroy, OnInit } from '@angular/core';
2
+ import { Subscription } from 'rxjs';
3
+ import { CacheService } from '@yelon/cache';
4
+ import { _HttpClient } from '@yelon/theme';
5
+ import { YzI18NService } from '../yz.i18n.service';
6
+ export declare enum TOPIC {
7
+ FULL = 0,
8
+ OWN = 1,
9
+ EVERY = 2
10
+ }
11
+ export interface HeaderTopic {
12
+ attribute: any;
13
+ children: HeaderTopic[];
14
+ intro: string;
15
+ key: string;
16
+ name: string;
17
+ target: string;
18
+ auth: boolean;
19
+ url: string;
20
+ version: string;
21
+ }
22
+ export declare class YzHeaderApplicationComponent implements OnInit, OnDestroy {
23
+ private inject;
24
+ private cacheService;
25
+ private i18n;
26
+ private http;
27
+ T: typeof TOPIC;
28
+ active: boolean;
29
+ topicData: HeaderTopic[];
30
+ listData: HeaderTopic[];
31
+ topic: TOPIC;
32
+ choosed: HeaderTopic | undefined;
33
+ searchValue: string | null;
34
+ subs: Subscription[];
35
+ constructor(inject: Injector, cacheService: CacheService, i18n: YzI18NService, http: _HttpClient);
36
+ ngOnInit(): void;
37
+ ngOnDestroy(): void;
38
+ diffChange(flag?: boolean): void;
39
+ initTopic(topic: TOPIC): void;
40
+ full(): void;
41
+ own(): void;
42
+ every(e: HeaderTopic): void;
43
+ onSearch(): void;
44
+ open(topic: HeaderTopic): void;
45
+ }
@@ -1,8 +1,8 @@
1
- import { NzMessageService } from 'ng-zorro-antd/message';
2
- import { NzModalService } from 'ng-zorro-antd/modal';
3
- export declare class YzHeaderClearStorageComponent {
4
- private modalSrv;
5
- private messageSrv;
6
- constructor(modalSrv: NzModalService, messageSrv: NzMessageService);
7
- _click(): void;
8
- }
1
+ import { NzMessageService } from 'ng-zorro-antd/message';
2
+ import { NzModalService } from 'ng-zorro-antd/modal';
3
+ export declare class YzHeaderClearStorageComponent {
4
+ private modalSrv;
5
+ private messageSrv;
6
+ constructor(modalSrv: NzModalService, messageSrv: NzMessageService);
7
+ _click(): void;
8
+ }
@@ -1,6 +1,6 @@
1
- export declare class YzHeaderFullScreenComponent {
2
- status: boolean;
3
- private get sf();
4
- _resize(): void;
5
- _click(): void;
6
- }
1
+ export declare class YzHeaderFullScreenComponent {
2
+ status: boolean;
3
+ private get sf();
4
+ _resize(): void;
5
+ _click(): void;
6
+ }
@@ -1,19 +1,19 @@
1
- import { SettingsService } from '@yelon/theme';
2
- import { BooleanInput } from '@yelon/util/decorator';
3
- import { YzI18NService } from '../yz.i18n.service';
4
- export declare class YzHeaderI18NComponent {
5
- private settings;
6
- private i18n;
7
- private doc;
8
- static ngAcceptInputType_showLangText: BooleanInput;
9
- /** Whether to display language text */
10
- showLangText: boolean;
11
- get langs(): Array<{
12
- code: string;
13
- text: string;
14
- abbr: string;
15
- }>;
16
- get curLangCode(): string;
17
- constructor(settings: SettingsService, i18n: YzI18NService, doc: any);
18
- change(lang: string): void;
19
- }
1
+ import { SettingsService } from '@yelon/theme';
2
+ import { BooleanInput } from '@yelon/util/decorator';
3
+ import { YzI18NService } from '../yz.i18n.service';
4
+ export declare class YzHeaderI18NComponent {
5
+ private settings;
6
+ private i18n;
7
+ private doc;
8
+ static ngAcceptInputType_showLangText: BooleanInput;
9
+ /** Whether to display language text */
10
+ showLangText: boolean;
11
+ get langs(): Array<{
12
+ code: string;
13
+ text: string;
14
+ abbr: string;
15
+ }>;
16
+ get curLangCode(): string;
17
+ constructor(settings: SettingsService, i18n: YzI18NService, doc: any);
18
+ change(lang: string): void;
19
+ }
@@ -1,25 +1,25 @@
1
- import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
- import { Observable, Subscription } from 'rxjs';
3
- import { NzI18nService } from 'ng-zorro-antd/i18n';
4
- import { NzMessageService } from 'ng-zorro-antd/message';
5
- import { NoticeIconSelect, NoticeItem } from '@yelon/abc/notice-icon';
6
- import { _HttpClient } from '@yelon/theme';
7
- export declare class YzHeaderNotifyComponent implements OnInit, OnDestroy {
8
- private injector;
9
- private msg;
10
- private nzI18n;
11
- private cdr;
12
- private httpClient;
13
- data: NoticeItem[];
14
- loading: boolean;
15
- count: number;
16
- subs: Subscription[];
17
- constructor(injector: Injector, msg: NzMessageService, nzI18n: NzI18nService, cdr: ChangeDetectorRef, httpClient: _HttpClient);
18
- ngOnInit(): void;
19
- loadData(): void;
20
- loadMessage(): Observable<void>;
21
- loadTodo(): Observable<void>;
22
- clear(type: string): void;
23
- select(res: NoticeIconSelect): void;
24
- ngOnDestroy(): void;
25
- }
1
+ import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
+ import { Observable, Subscription } from 'rxjs';
3
+ import { NzI18nService } from 'ng-zorro-antd/i18n';
4
+ import { NzMessageService } from 'ng-zorro-antd/message';
5
+ import { NoticeIconSelect, NoticeItem } from '@yelon/abc/notice-icon';
6
+ import { _HttpClient } from '@yelon/theme';
7
+ export declare class YzHeaderNotifyComponent implements OnInit, OnDestroy {
8
+ private injector;
9
+ private msg;
10
+ private nzI18n;
11
+ private cdr;
12
+ private httpClient;
13
+ data: NoticeItem[];
14
+ loading: boolean;
15
+ count: number;
16
+ subs: Subscription[];
17
+ constructor(injector: Injector, msg: NzMessageService, nzI18n: NzI18nService, cdr: ChangeDetectorRef, httpClient: _HttpClient);
18
+ ngOnInit(): void;
19
+ loadData(): void;
20
+ loadMessage(): Observable<void>;
21
+ loadTodo(): Observable<void>;
22
+ clear(type: string): void;
23
+ select(res: NoticeIconSelect): void;
24
+ ngOnDestroy(): void;
25
+ }
@@ -1,29 +1,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
- 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
+ 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,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,25 +1,25 @@
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 refreshToking;
10
- private refreshToken$;
11
- private get notification();
12
- private get tokenSrv();
13
- private get http();
14
- private get config();
15
- private goTo;
16
- constructor(injector: Injector);
17
- private checkStatus;
18
- private ToLogin;
19
- private reAttachToken;
20
- private refreshTokenRequest;
21
- private tryRefreshToken;
22
- private getAdditionalHeaders;
23
- private handleData;
24
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
25
- }
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 refreshToking;
10
+ private refreshToken$;
11
+ private get notification();
12
+ private get tokenSrv();
13
+ private get http();
14
+ private get config();
15
+ private goTo;
16
+ constructor(injector: Injector);
17
+ private checkStatus;
18
+ private ToLogin;
19
+ private reAttachToken;
20
+ private refreshTokenRequest;
21
+ private tryRefreshToken;
22
+ private getAdditionalHeaders;
23
+ private handleData;
24
+ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
25
+ }
@@ -1,24 +1,24 @@
1
- import { Platform } from '@angular/cdk/platform';
2
- import { Observable } from 'rxjs';
3
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
4
- import { NzI18nService } from 'ng-zorro-antd/i18n';
5
- import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService } from '@yelon/theme';
6
- import { YunzaiConfigService } from '@yelon/util/config';
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, string>): 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 { NzSafeAny } from 'ng-zorro-antd/core/types';
4
+ import { NzI18nService } from 'ng-zorro-antd/i18n';
5
+ import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService } from '@yelon/theme';
6
+ import { YunzaiConfigService } from '@yelon/util/config';
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, string>): 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 { 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
+ })[];