@yelon/bis 16.2.3 → 16.2.5-68d194e

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 (68) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/esm2022/bis.mjs +4 -4
  4. package/esm2022/index.mjs +1 -1
  5. package/esm2022/layout/bis.config.mjs +14 -14
  6. package/esm2022/layout/html-names.mjs +32 -32
  7. package/esm2022/layout/icon/style-icons.mjs +795 -795
  8. package/esm2022/layout/layout-basic/index.mjs +2 -2
  9. package/esm2022/layout/layout-basic/interface.mjs +1 -1
  10. package/esm2022/layout/layout-basic/layout-basic.component.mjs +372 -372
  11. package/esm2022/layout/layout-nav/index.mjs +3 -3
  12. package/esm2022/layout/layout-nav/layout-nav-application.component.mjs +364 -364
  13. package/esm2022/layout/layout-nav/layout-nav-group.component.mjs +122 -122
  14. package/esm2022/layout/layout-nav/layout-nav-tile.component.mjs +14 -14
  15. package/esm2022/layout/layout.mjs +4 -4
  16. package/esm2022/layout/public_api.mjs +12 -12
  17. package/esm2022/layout/widgets/index.mjs +6 -6
  18. package/esm2022/layout/widgets/yunzai-clear-storage.component.mjs +44 -44
  19. package/esm2022/layout/widgets/yunzai-fullscreen.component.mjs +44 -44
  20. package/esm2022/layout/widgets/yunzai-i18n.component.mjs +145 -145
  21. package/esm2022/layout/widgets/yunzai-notify.component.mjs +182 -182
  22. package/esm2022/layout/widgets/yunzai-theme-btn.component.mjs +199 -199
  23. package/esm2022/layout/widgets/yunzai-user.component.mjs +129 -129
  24. package/esm2022/layout/yunzai-act.guard.mjs +106 -106
  25. package/esm2022/layout/yunzai-auth.service.mjs +107 -107
  26. package/esm2022/layout/yunzai-default.interceptor.mjs +200 -200
  27. package/esm2022/layout/yunzai-i18n.service.mjs +102 -129
  28. package/esm2022/layout/yunzai-lang.mjs +113 -113
  29. package/esm2022/layout/yunzai-layout.module.mjs +76 -76
  30. package/esm2022/layout/yunzai-startup.service.mjs +152 -152
  31. package/esm2022/public_api.mjs +1 -1
  32. package/fesm2022/bis.mjs +6 -6
  33. package/fesm2022/layout.mjs +3198 -3224
  34. package/fesm2022/layout.mjs.map +1 -1
  35. package/index.d.ts +1 -1
  36. package/index.less +1 -1
  37. package/layout/bis.config.d.ts +3 -3
  38. package/layout/html-names.d.ts +31 -31
  39. package/layout/icon/style-icons.d.ts +1 -1
  40. package/layout/index.d.ts +5 -5
  41. package/layout/layout-basic/index.d.ts +2 -2
  42. package/layout/layout-basic/interface.d.ts +8 -8
  43. package/layout/layout-basic/layout-basic.component.d.ts +28 -28
  44. package/layout/layout-nav/index.d.ts +3 -3
  45. package/layout/layout-nav/layout-nav-application.component.d.ts +31 -31
  46. package/layout/layout-nav/layout-nav-group.component.d.ts +16 -16
  47. package/layout/layout-nav/layout-nav-tile.component.d.ts +6 -6
  48. package/layout/public_api.d.ts +12 -12
  49. package/layout/style/index.less +154 -154
  50. package/layout/widgets/index.d.ts +6 -6
  51. package/layout/widgets/yunzai-clear-storage.component.d.ts +11 -11
  52. package/layout/widgets/yunzai-fullscreen.component.d.ts +8 -8
  53. package/layout/widgets/yunzai-i18n.component.d.ts +21 -21
  54. package/layout/widgets/yunzai-notify.component.d.ts +30 -30
  55. package/layout/widgets/yunzai-theme-btn.component.d.ts +32 -32
  56. package/layout/widgets/yunzai-user.component.d.ts +26 -26
  57. package/layout/yunzai-act.guard.d.ts +20 -20
  58. package/layout/yunzai-auth.service.d.ts +19 -19
  59. package/layout/yunzai-default.interceptor.d.ts +27 -27
  60. package/layout/yunzai-i18n.service.d.ts +26 -30
  61. package/layout/yunzai-lang.d.ts +11 -11
  62. package/layout/yunzai-layout.module.d.ts +22 -22
  63. package/layout/yunzai-startup.service.d.ts +34 -34
  64. package/package.json +39 -39
  65. package/public_api.d.ts +2 -2
  66. package/theme-compact.less +3 -3
  67. package/theme-dark.less +46 -46
  68. package/theme-default.less +46 -46
@@ -1,11 +1,11 @@
1
- import { NzMessageService } from 'ng-zorro-antd/message';
2
- import { NzModalService } from 'ng-zorro-antd/modal';
3
- import * as i0 from "@angular/core";
4
- export declare class YunzaiClearStorageComponent {
5
- private modalSrv;
6
- private messageSrv;
7
- constructor(modalSrv: NzModalService, messageSrv: NzMessageService);
8
- _click(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiClearStorageComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiClearStorageComponent, "yunzai-clearstorage", never, {}, {}, never, never, false, never>;
11
- }
1
+ import { NzMessageService } from 'ng-zorro-antd/message';
2
+ import { NzModalService } from 'ng-zorro-antd/modal';
3
+ import * as i0 from "@angular/core";
4
+ export declare class YunzaiClearStorageComponent {
5
+ private modalSrv;
6
+ private messageSrv;
7
+ constructor(modalSrv: NzModalService, messageSrv: NzMessageService);
8
+ _click(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiClearStorageComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiClearStorageComponent, "yunzai-clearstorage", never, {}, {}, never, never, false, never>;
11
+ }
@@ -1,8 +1,8 @@
1
- import * as i0 from "@angular/core";
2
- export declare class YunzaiFullScreenComponent {
3
- status: boolean;
4
- _resize(): void;
5
- _click(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiFullScreenComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiFullScreenComponent, "yunzai-fullscreen", never, {}, {}, never, never, false, never>;
8
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class YunzaiFullScreenComponent {
3
+ status: boolean;
4
+ _resize(): void;
5
+ _click(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiFullScreenComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiFullScreenComponent, "yunzai-fullscreen", never, {}, {}, never, never, false, never>;
8
+ }
@@ -1,21 +1,21 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { SettingsService, YunzaiI18NType } from '@yelon/theme';
3
- import { YunzaiI18NService } from "../yunzai-i18n.service";
4
- import { BooleanInput } from '@yelon/util/decorator';
5
- import * as i0 from "@angular/core";
6
- export declare class YunzaiI18NComponent implements OnDestroy {
7
- private settings;
8
- private i18n;
9
- private doc;
10
- static ngAcceptInputType_showLangText: BooleanInput;
11
- /** Whether to display language text */
12
- showLangText: boolean;
13
- private $destroy;
14
- langs: YunzaiI18NType[];
15
- get curLangCode(): string;
16
- constructor(settings: SettingsService, i18n: YunzaiI18NService, doc: any);
17
- change(lang: string): void;
18
- ngOnDestroy(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiI18NComponent, "yunzai-i18n", never, { "showLangText": { "alias": "showLangText"; "required": false; }; }, {}, never, never, false, never>;
21
- }
1
+ import { OnDestroy } from '@angular/core';
2
+ import { SettingsService, YunzaiI18NType } from '@yelon/theme';
3
+ import { YunzaiI18NService } from "../yunzai-i18n.service";
4
+ import { BooleanInput } from '@yelon/util/decorator';
5
+ import * as i0 from "@angular/core";
6
+ export declare class YunzaiI18NComponent implements OnDestroy {
7
+ private settings;
8
+ private i18n;
9
+ private doc;
10
+ static ngAcceptInputType_showLangText: BooleanInput;
11
+ /** Whether to display language text */
12
+ showLangText: boolean;
13
+ private $destroy;
14
+ langs: YunzaiI18NType[];
15
+ get curLangCode(): string;
16
+ constructor(settings: SettingsService, i18n: YunzaiI18NService, doc: any);
17
+ change(lang: string): void;
18
+ ngOnDestroy(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiI18NComponent, "yunzai-i18n", never, { "showLangText": { "alias": "showLangText"; "required": false; }; }, {}, never, never, false, never>;
21
+ }
@@ -1,30 +1,30 @@
1
- import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
- import { Observable, Subscription } from 'rxjs';
3
- import { NoticeIconSelect, NoticeItem } from '@yelon/abc/notice-icon';
4
- import { _HttpClient } from '@yelon/theme';
5
- import { NzI18nService } from 'ng-zorro-antd/i18n';
6
- import { NzMessageService } from 'ng-zorro-antd/message';
7
- import { YunzaiI18NService } from '../yunzai-i18n.service';
8
- import * as i0 from "@angular/core";
9
- export declare class YunzaiNotifyComponent implements OnInit, OnDestroy {
10
- private injector;
11
- private msg;
12
- private y18n;
13
- private nzI18n;
14
- private cdr;
15
- private httpClient;
16
- data: NoticeItem[];
17
- loading: boolean;
18
- count: number;
19
- subs: Subscription[];
20
- constructor(injector: Injector, msg: NzMessageService, y18n: YunzaiI18NService, nzI18n: NzI18nService, cdr: ChangeDetectorRef, httpClient: _HttpClient);
21
- ngOnInit(): void;
22
- loadData(): void;
23
- loadMessage(): Observable<void>;
24
- loadTodo(): Observable<void>;
25
- clear(type: string): void;
26
- select(res: NoticeIconSelect): void;
27
- ngOnDestroy(): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiNotifyComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiNotifyComponent, "yunzai-notify", never, {}, {}, never, never, false, never>;
30
- }
1
+ import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
+ import { Observable, Subscription } from 'rxjs';
3
+ import { NoticeIconSelect, NoticeItem } from '@yelon/abc/notice-icon';
4
+ import { _HttpClient } from '@yelon/theme';
5
+ import { NzI18nService } from 'ng-zorro-antd/i18n';
6
+ import { NzMessageService } from 'ng-zorro-antd/message';
7
+ import { YunzaiI18NService } from '../yunzai-i18n.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class YunzaiNotifyComponent implements OnInit, OnDestroy {
10
+ private injector;
11
+ private msg;
12
+ private y18n;
13
+ private nzI18n;
14
+ private cdr;
15
+ private httpClient;
16
+ data: NoticeItem[];
17
+ loading: boolean;
18
+ count: number;
19
+ subs: Subscription[];
20
+ constructor(injector: Injector, msg: NzMessageService, y18n: YunzaiI18NService, nzI18n: NzI18nService, cdr: ChangeDetectorRef, httpClient: _HttpClient);
21
+ ngOnInit(): void;
22
+ loadData(): void;
23
+ loadMessage(): Observable<void>;
24
+ loadTodo(): Observable<void>;
25
+ clear(type: string): void;
26
+ select(res: NoticeIconSelect): void;
27
+ ngOnDestroy(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiNotifyComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiNotifyComponent, "yunzai-notify", never, {}, {}, never, never, false, never>;
30
+ }
@@ -1,32 +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 { ThemeBtnType } from '@yelon/theme/theme-btn';
5
- import { YunzaiConfigService } from '@yelon/util/config';
6
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
7
- import * as i0 from "@angular/core";
8
- export interface YunzaiThemeBtnType extends ThemeBtnType {
9
- color?: string;
10
- }
11
- export declare class YunzaiThemBtnComponent 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: YunzaiThemeBtnType[];
20
- devTips: string;
21
- deployUrl: string;
22
- dir: Direction;
23
- private $destroy;
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<YunzaiThemBtnComponent, [null, null, null, null, { optional: true; }, null]>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiThemBtnComponent, "yunzai-theme-btn", never, { "types": { "alias": "types"; "required": false; }; "devTips": { "alias": "devTips"; "required": false; }; "deployUrl": { "alias": "deployUrl"; "required": false; }; }, {}, never, never, false, never>;
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 { ThemeBtnType } from '@yelon/theme/theme-btn';
5
+ import { YunzaiConfigService } from '@yelon/util/config';
6
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
7
+ import * as i0 from "@angular/core";
8
+ export interface YunzaiThemeBtnType extends ThemeBtnType {
9
+ color?: string;
10
+ }
11
+ export declare class YunzaiThemBtnComponent 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: YunzaiThemeBtnType[];
20
+ devTips: string;
21
+ deployUrl: string;
22
+ dir: Direction;
23
+ private $destroy;
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<YunzaiThemBtnComponent, [null, null, null, null, { optional: true; }, null]>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiThemBtnComponent, "yunzai-theme-btn", never, { "types": { "alias": "types"; "required": false; }; "devTips": { "alias": "devTips"; "required": false; }; "deployUrl": { "alias": "deployUrl"; "required": false; }; }, {}, never, never, false, never>;
32
+ }
@@ -1,26 +1,26 @@
1
- import { Injector, OnInit } from '@angular/core';
2
- import { ITokenService } from '@yelon/auth';
3
- import { YunzaiConfigService } from '@yelon/util';
4
- import { NzMessageService } from 'ng-zorro-antd/message';
5
- import * as i0 from "@angular/core";
6
- export interface UserLink {
7
- icon: string;
8
- name: string;
9
- url: string;
10
- }
11
- export declare class YunzaiUserComponent implements OnInit {
12
- private injector;
13
- private msg;
14
- private tokenService;
15
- private configService;
16
- private config;
17
- constructor(injector: Injector, msg: NzMessageService, tokenService: ITokenService, configService: YunzaiConfigService);
18
- icon: string;
19
- username: string;
20
- menus: UserLink[];
21
- ngOnInit(): void;
22
- logout(): void;
23
- to(href: string): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiUserComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiUserComponent, "yunzai-user", never, {}, {}, never, never, false, never>;
26
- }
1
+ import { Injector, OnInit } from '@angular/core';
2
+ import { ITokenService } from '@yelon/auth';
3
+ import { YunzaiConfigService } from '@yelon/util';
4
+ import { NzMessageService } from 'ng-zorro-antd/message';
5
+ import * as i0 from "@angular/core";
6
+ export interface UserLink {
7
+ icon: string;
8
+ name: string;
9
+ url: string;
10
+ }
11
+ export declare class YunzaiUserComponent implements OnInit {
12
+ private injector;
13
+ private msg;
14
+ private tokenService;
15
+ private configService;
16
+ private config;
17
+ constructor(injector: Injector, msg: NzMessageService, tokenService: ITokenService, configService: YunzaiConfigService);
18
+ icon: string;
19
+ username: string;
20
+ menus: UserLink[];
21
+ ngOnInit(): void;
22
+ logout(): void;
23
+ to(href: string): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiUserComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiUserComponent, "yunzai-user", never, {}, {}, never, never, false, never>;
26
+ }
@@ -1,20 +1,20 @@
1
- import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
2
- import { Observable } from 'rxjs';
3
- import { Menu } from '@yelon/theme';
4
- import { YunzaiConfigService, PathToRegexpService } from '@yelon/util';
5
- import * as i0 from "@angular/core";
6
- export declare class ActGuard implements CanActivate, CanActivateChild {
7
- private configService;
8
- private pathToRegexp;
9
- private router;
10
- private bis;
11
- private menus;
12
- private links;
13
- constructor(configService: YunzaiConfigService, pathToRegexp: PathToRegexpService, router: Router);
14
- canActivate(_: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
15
- canActivateChild(_: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
16
- preHandle(state: RouterStateSnapshot): boolean;
17
- getAllLinks(menu: Menu[], links: string[]): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ActGuard, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<ActGuard>;
20
- }
1
+ import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
2
+ import { Observable } from 'rxjs';
3
+ import { Menu } from '@yelon/theme';
4
+ import { YunzaiConfigService, PathToRegexpService } from '@yelon/util';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ActGuard implements CanActivate, CanActivateChild {
7
+ private configService;
8
+ private pathToRegexp;
9
+ private router;
10
+ private bis;
11
+ private menus;
12
+ private links;
13
+ constructor(configService: YunzaiConfigService, pathToRegexp: PathToRegexpService, router: Router);
14
+ canActivate(_: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
15
+ canActivateChild(_: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
16
+ preHandle(state: RouterStateSnapshot): boolean;
17
+ getAllLinks(menu: Menu[], links: string[]): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActGuard, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<ActGuard>;
20
+ }
@@ -1,19 +1,19 @@
1
- import { Injector } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { ITokenModel } from '@yelon/auth';
4
- import * as i0 from "@angular/core";
5
- export declare class YunzaiAuthService {
6
- private injector;
7
- private config;
8
- constructor(injector: Injector);
9
- private get configService();
10
- private get tokenService();
11
- private get httpClient();
12
- askToken(): Observable<ITokenModel>;
13
- fetchTokenByUP(): Observable<ITokenModel>;
14
- fetchTokenByCas(): Observable<ITokenModel>;
15
- login(): Observable<void>;
16
- cacheInit(): Observable<void>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiAuthService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiAuthService>;
19
- }
1
+ import { Injector } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ITokenModel } from '@yelon/auth';
4
+ import * as i0 from "@angular/core";
5
+ export declare class YunzaiAuthService {
6
+ private injector;
7
+ private config;
8
+ constructor(injector: Injector);
9
+ private get configService();
10
+ private get tokenService();
11
+ private get httpClient();
12
+ askToken(): Observable<ITokenModel>;
13
+ fetchTokenByUP(): Observable<ITokenModel>;
14
+ fetchTokenByCas(): Observable<ITokenModel>;
15
+ login(): Observable<void>;
16
+ cacheInit(): Observable<void>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiAuthService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiAuthService>;
19
+ }
@@ -1,27 +1,27 @@
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
- declare class YunzaiDefaultInterceptor implements HttpInterceptor {
6
- private injector;
7
- private jump;
8
- private refreshToking;
9
- private refreshToken$;
10
- private get notification();
11
- private get tokenSrv();
12
- private get http();
13
- private get config();
14
- private goTo;
15
- constructor(injector: Injector);
16
- private checkStatus;
17
- private ToLogin;
18
- private reAttachToken;
19
- private refreshTokenRequest;
20
- private tryRefreshToken;
21
- private getAdditionalHeaders;
22
- private handleData;
23
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiDefaultInterceptor, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiDefaultInterceptor>;
26
- }
27
- export { YunzaiDefaultInterceptor as YzDefaultInterceptor, YunzaiDefaultInterceptor };
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
+ declare class YunzaiDefaultInterceptor implements HttpInterceptor {
6
+ private injector;
7
+ private jump;
8
+ private refreshToking;
9
+ private refreshToken$;
10
+ private get notification();
11
+ private get tokenSrv();
12
+ private get http();
13
+ private get config();
14
+ private goTo;
15
+ constructor(injector: Injector);
16
+ private checkStatus;
17
+ private ToLogin;
18
+ private reAttachToken;
19
+ private refreshTokenRequest;
20
+ private tryRefreshToken;
21
+ private getAdditionalHeaders;
22
+ private handleData;
23
+ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiDefaultInterceptor, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiDefaultInterceptor>;
26
+ }
27
+ export { YunzaiDefaultInterceptor as YzDefaultInterceptor, YunzaiDefaultInterceptor };
@@ -1,30 +1,26 @@
1
- import { Platform } from '@angular/cdk/platform';
2
- import { OnDestroy } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService, YunzaiI18NType } from '@yelon/theme';
5
- import { YunzaiConfigService } from '@yelon/util/config';
6
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
7
- import { NzI18nService } from 'ng-zorro-antd/i18n';
8
- import * as i0 from "@angular/core";
9
- export declare class YunzaiI18NService extends YunzaiI18nBaseService implements OnDestroy {
10
- private http;
11
- private settings;
12
- private nzI18nService;
13
- private yelonLocaleService;
14
- private platform;
15
- protected _defaultLang: string;
16
- private bis;
17
- private $destroy;
18
- constructor(http: _HttpClient, settings: SettingsService, nzI18nService: NzI18nService, yelonLocaleService: YelonLocaleService, platform: Platform, cogSrv: YunzaiConfigService);
19
- private getDefaultLang;
20
- loadLangData(lang: string): Observable<NzSafeAny>;
21
- use(lang: string, data: Record<string, unknown>): void;
22
- getLangs(): Observable<YunzaiI18NType[]>;
23
- cacheLang(lang: string, data: Record<string, unknown>): void;
24
- getLang(lang: string): Record<string, unknown>;
25
- cacheLangs(langs: YunzaiI18NType[]): void;
26
- getCachedLangs(): YunzaiI18NType[];
27
- ngOnDestroy(): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NService, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiI18NService>;
30
- }
1
+ import { Platform } from '@angular/cdk/platform';
2
+ import { OnDestroy } from '@angular/core';
3
+ import { Observable } from 'rxjs';
4
+ import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService, YunzaiI18NType } from '@yelon/theme';
5
+ import { YunzaiConfigService } from '@yelon/util/config';
6
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
7
+ import { NzI18nService } from 'ng-zorro-antd/i18n';
8
+ import * as i0 from "@angular/core";
9
+ export declare class YunzaiI18NService extends YunzaiI18nBaseService implements OnDestroy {
10
+ private http;
11
+ private settings;
12
+ private nzI18nService;
13
+ private yelonLocaleService;
14
+ private platform;
15
+ protected _defaultLang: string;
16
+ private bis;
17
+ private $destroy;
18
+ constructor(http: _HttpClient, settings: SettingsService, nzI18nService: NzI18nService, yelonLocaleService: YelonLocaleService, platform: Platform, cogSrv: YunzaiConfigService);
19
+ private getDefaultLang;
20
+ loadLangData(lang: string): Observable<NzSafeAny>;
21
+ use(lang: string, data: Record<string, unknown>): void;
22
+ getLangs(): Observable<YunzaiI18NType[]>;
23
+ ngOnDestroy(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiI18NService>;
26
+ }
@@ -1,11 +1,11 @@
1
- export interface LangConfigData {
2
- abbr: string;
3
- text: string;
4
- ng: any;
5
- zorro: any;
6
- date: any;
7
- yelon: any;
8
- }
9
- export declare const YUNZAI_LANGS: {
10
- [key: string]: LangConfigData;
11
- };
1
+ export interface LangConfigData {
2
+ abbr: string;
3
+ text: string;
4
+ ng: any;
5
+ zorro: any;
6
+ date: any;
7
+ yelon: any;
8
+ }
9
+ export declare const YUNZAI_LANGS: {
10
+ [key: string]: LangConfigData;
11
+ };
@@ -1,22 +1,22 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./layout-basic/layout-basic.component";
3
- import * as i2 from "./widgets/yunzai-clear-storage.component";
4
- import * as i3 from "./widgets/yunzai-fullscreen.component";
5
- import * as i4 from "./widgets/yunzai-i18n.component";
6
- import * as i5 from "./widgets/yunzai-notify.component";
7
- import * as i6 from "./widgets/yunzai-theme-btn.component";
8
- import * as i7 from "./widgets/yunzai-user.component";
9
- import * as i8 from "./layout-nav/layout-nav-application.component";
10
- import * as i9 from "./layout-nav/layout-nav-group.component";
11
- import * as i10 from "./layout-nav/layout-nav-tile.component";
12
- import * as i11 from "@angular/common/http";
13
- import * as i12 from "@angular/common";
14
- import * as i13 from "@angular/forms";
15
- import * as i14 from "@angular/router";
16
- import * as i15 from "@yelon/bcs/yunzai-shared-yelon";
17
- import * as i16 from "@yelon/bcs/yunzai-shared-zorro";
18
- export declare class YunzaiLayoutModule {
19
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiLayoutModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<YunzaiLayoutModule, [typeof i1.YunzaiLayoutBasicComponent, typeof i2.YunzaiClearStorageComponent, typeof i3.YunzaiFullScreenComponent, typeof i4.YunzaiI18NComponent, typeof i5.YunzaiNotifyComponent, typeof i6.YunzaiThemBtnComponent, typeof i7.YunzaiUserComponent, typeof i8.LayoutNavApplicationComponent, typeof i9.LayoutNavGroupComponent, typeof i10.LayoutNavTileComponent], [typeof i11.HttpClientModule, typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.RouterModule, typeof i13.ReactiveFormsModule, typeof i15.YunzaiSharedYelonModule, typeof i16.YunzaiSharedZorroModule], [typeof i1.YunzaiLayoutBasicComponent, typeof i2.YunzaiClearStorageComponent, typeof i3.YunzaiFullScreenComponent, typeof i4.YunzaiI18NComponent, typeof i5.YunzaiNotifyComponent, typeof i6.YunzaiThemBtnComponent, typeof i7.YunzaiUserComponent, typeof i8.LayoutNavApplicationComponent, typeof i9.LayoutNavGroupComponent, typeof i10.LayoutNavTileComponent]>;
21
- static ɵinj: i0.ɵɵInjectorDeclaration<YunzaiLayoutModule>;
22
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./layout-basic/layout-basic.component";
3
+ import * as i2 from "./widgets/yunzai-clear-storage.component";
4
+ import * as i3 from "./widgets/yunzai-fullscreen.component";
5
+ import * as i4 from "./widgets/yunzai-i18n.component";
6
+ import * as i5 from "./widgets/yunzai-notify.component";
7
+ import * as i6 from "./widgets/yunzai-theme-btn.component";
8
+ import * as i7 from "./widgets/yunzai-user.component";
9
+ import * as i8 from "./layout-nav/layout-nav-application.component";
10
+ import * as i9 from "./layout-nav/layout-nav-group.component";
11
+ import * as i10 from "./layout-nav/layout-nav-tile.component";
12
+ import * as i11 from "@angular/common/http";
13
+ import * as i12 from "@angular/common";
14
+ import * as i13 from "@angular/forms";
15
+ import * as i14 from "@angular/router";
16
+ import * as i15 from "@yelon/bcs/yunzai-shared-yelon";
17
+ import * as i16 from "@yelon/bcs/yunzai-shared-zorro";
18
+ export declare class YunzaiLayoutModule {
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiLayoutModule, never>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<YunzaiLayoutModule, [typeof i1.YunzaiLayoutBasicComponent, typeof i2.YunzaiClearStorageComponent, typeof i3.YunzaiFullScreenComponent, typeof i4.YunzaiI18NComponent, typeof i5.YunzaiNotifyComponent, typeof i6.YunzaiThemBtnComponent, typeof i7.YunzaiUserComponent, typeof i8.LayoutNavApplicationComponent, typeof i9.LayoutNavGroupComponent, typeof i10.LayoutNavTileComponent], [typeof i11.HttpClientModule, typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.RouterModule, typeof i13.ReactiveFormsModule, typeof i15.YunzaiSharedYelonModule, typeof i16.YunzaiSharedZorroModule], [typeof i1.YunzaiLayoutBasicComponent, typeof i2.YunzaiClearStorageComponent, typeof i3.YunzaiFullScreenComponent, typeof i4.YunzaiI18NComponent, typeof i5.YunzaiNotifyComponent, typeof i6.YunzaiThemBtnComponent, typeof i7.YunzaiUserComponent, typeof i8.LayoutNavApplicationComponent, typeof i9.LayoutNavGroupComponent, typeof i10.LayoutNavTileComponent]>;
21
+ static ɵinj: i0.ɵɵInjectorDeclaration<YunzaiLayoutModule>;
22
+ }
@@ -1,34 +1,34 @@
1
- import { Observable } from 'rxjs';
2
- import { ACLService } from '@yelon/acl';
3
- import { MenuService, SettingsService, TitleService } from '@yelon/theme';
4
- import { YunzaiMenu, YunzaiConfigService } from '@yelon/util';
5
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
6
- import { NzIconService } from 'ng-zorro-antd/icon';
7
- import { YunzaiAuthService } from './yunzai-auth.service';
8
- import { YunzaiI18NService } from './yunzai-i18n.service';
9
- import * as i0 from "@angular/core";
10
- export declare class YunzaiStartupService {
11
- private menuService;
12
- private i18n;
13
- private win;
14
- private settingService;
15
- private aclService;
16
- private titleService;
17
- private yzAuthService;
18
- private configService;
19
- private config;
20
- constructor(iconSrv: NzIconService, menuService: MenuService, i18n: YunzaiI18NService, win: NzSafeAny, settingService: SettingsService, aclService: ACLService, titleService: TitleService, yzAuthService: YunzaiAuthService, configService: YunzaiConfigService);
21
- load(): Observable<void>;
22
- systemInit(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiStartupService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiStartupService>;
25
- }
26
- export declare function mapYzSideToYelonMenu(menus: YunzaiMenu[]): void;
27
- export declare function generateAbility(menus: YunzaiMenu[], abilities: string[], prefix: string): void;
28
- export declare function YunzaiStartupServiceFactory(startupService: YunzaiStartupService): () => Observable<void>;
29
- export declare const YUNZAI_APPINIT_PROVIDES: (typeof YunzaiStartupService | {
30
- provide: import("@angular/core").InjectionToken<readonly (() => void | Observable<unknown> | Promise<unknown>)[]>;
31
- useFactory: typeof YunzaiStartupServiceFactory;
32
- deps: (typeof YunzaiStartupService)[];
33
- multi: boolean;
34
- })[];
1
+ import { Observable } from 'rxjs';
2
+ import { ACLService } from '@yelon/acl';
3
+ import { MenuService, SettingsService, TitleService } from '@yelon/theme';
4
+ import { YunzaiMenu, YunzaiConfigService } from '@yelon/util';
5
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
6
+ import { NzIconService } from 'ng-zorro-antd/icon';
7
+ import { YunzaiAuthService } from './yunzai-auth.service';
8
+ import { YunzaiI18NService } from './yunzai-i18n.service';
9
+ import * as i0 from "@angular/core";
10
+ export declare class YunzaiStartupService {
11
+ private menuService;
12
+ private i18n;
13
+ private win;
14
+ private settingService;
15
+ private aclService;
16
+ private titleService;
17
+ private yzAuthService;
18
+ private configService;
19
+ private config;
20
+ constructor(iconSrv: NzIconService, menuService: MenuService, i18n: YunzaiI18NService, win: NzSafeAny, settingService: SettingsService, aclService: ACLService, titleService: TitleService, yzAuthService: YunzaiAuthService, configService: YunzaiConfigService);
21
+ load(): Observable<void>;
22
+ systemInit(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiStartupService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiStartupService>;
25
+ }
26
+ export declare function mapYzSideToYelonMenu(menus: YunzaiMenu[]): void;
27
+ export declare function generateAbility(menus: YunzaiMenu[], abilities: string[], prefix: string): void;
28
+ export declare function YunzaiStartupServiceFactory(startupService: YunzaiStartupService): () => Observable<void>;
29
+ export declare const YUNZAI_APPINIT_PROVIDES: (typeof YunzaiStartupService | {
30
+ provide: import("@angular/core").InjectionToken<readonly (() => void | Observable<unknown> | Promise<unknown>)[]>;
31
+ useFactory: typeof YunzaiStartupServiceFactory;
32
+ deps: (typeof YunzaiStartupService)[];
33
+ multi: boolean;
34
+ })[];