@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.
- package/LICENSE +21 -21
- package/bis.d.ts +5 -4
- package/{esm2015/bis.js → esm2020/bis.mjs} +4 -4
- package/esm2020/layout/act.guard.mjs +108 -0
- package/{esm2015/layout/bis.config.js → esm2020/layout/bis.config.mjs} +10 -10
- package/esm2020/layout/contact/contact.component.mjs +492 -0
- package/esm2020/layout/contact/contact.service.mjs +146 -0
- package/esm2020/layout/layout.mjs +5 -0
- package/esm2020/layout/layout.module.mjs +73 -0
- package/{esm2015/layout/path-to-regexp.service.js → esm2020/layout/path-to-regexp.service.mjs} +238 -237
- package/{esm2015/layout/public_api.js → esm2020/layout/public_api.mjs} +15 -15
- package/esm2020/layout/stomp.config.mjs +18 -0
- package/{esm2015/layout/widgets/index.js → esm2020/layout/widgets/index.mjs} +7 -7
- package/esm2020/layout/widgets/yz.application.component.mjs +271 -0
- package/esm2020/layout/widgets/yz.clear-storage.component.mjs +45 -0
- package/esm2020/layout/widgets/yz.fullscreen.component.mjs +45 -0
- package/esm2020/layout/widgets/yz.i18n.component.mjs +115 -0
- package/esm2020/layout/widgets/yz.notify.component.mjs +184 -0
- package/esm2020/layout/widgets/yz.them-btn.component.mjs +196 -0
- package/esm2020/layout/widgets/yz.user.component.mjs +112 -0
- package/esm2020/layout/yz.auth.service.mjs +156 -0
- package/esm2020/layout/yz.basic.component.mjs +207 -0
- package/esm2020/layout/yz.default.interceptor.mjs +203 -0
- package/esm2020/layout/yz.i18n.service.mjs +93 -0
- package/esm2020/layout/yz.startup.service.mjs +137 -0
- package/esm2020/layout/yz.stomp.service.mjs +88 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +1 -1
- package/{esm2015/shared/public_api.js → esm2020/shared/public_api.mjs} +4 -4
- package/{esm2015/shared/shared-yelon.module.js → esm2020/shared/shared-yelon.module.mjs} +107 -107
- package/{esm2015/shared/shared-zorro.module.js → esm2020/shared/shared-zorro.module.mjs} +80 -80
- package/{esm2015/shared/shared.js → esm2020/shared/shared.mjs} +4 -4
- package/esm2020/shared/shared.module.mjs +116 -0
- package/{esm2015/shared/style-icons.js → esm2020/shared/style-icons.mjs} +795 -795
- package/fesm2015/{bis.js → bis.mjs} +3 -3
- package/fesm2015/bis.mjs.map +1 -0
- package/fesm2015/{layout.js → layout.mjs} +2514 -2181
- package/fesm2015/layout.mjs.map +1 -0
- package/fesm2015/{shared.js → shared.mjs} +1004 -910
- package/fesm2015/shared.mjs.map +1 -0
- package/fesm2020/bis.mjs +6 -0
- package/fesm2020/bis.mjs.map +1 -0
- package/fesm2020/layout.mjs +2796 -0
- package/fesm2020/layout.mjs.map +1 -0
- package/fesm2020/shared.mjs +1106 -0
- package/fesm2020/shared.mjs.map +1 -0
- package/layout/act.guard.d.ts +23 -20
- package/layout/bis.config.d.ts +3 -3
- package/layout/contact/contact.component.d.ts +169 -166
- package/layout/contact/contact.service.d.ts +118 -115
- package/layout/layout.d.ts +5 -7
- package/layout/layout.module.d.ts +20 -2
- package/layout/package.json +5 -6
- package/layout/path-to-regexp.service.d.ts +26 -23
- package/layout/public_api.d.ts +14 -12
- package/layout/stomp.config.d.ts +3 -3
- package/layout/widgets/index.d.ts +7 -7
- package/layout/widgets/yz.application.component.d.ts +48 -45
- package/layout/widgets/yz.clear-storage.component.d.ts +11 -8
- package/layout/widgets/yz.fullscreen.component.d.ts +8 -6
- package/layout/widgets/yz.i18n.component.d.ts +22 -19
- package/layout/widgets/yz.notify.component.d.ts +30 -25
- package/layout/widgets/yz.them-btn.component.d.ts +32 -29
- package/layout/widgets/yz.user.component.d.ts +28 -25
- package/layout/yz.auth.service.d.ts +22 -19
- package/layout/yz.basic.component.d.ts +24 -15
- package/layout/yz.default.interceptor.d.ts +29 -26
- package/layout/yz.i18n.service.d.ts +27 -24
- package/layout/yz.startup.service.d.ts +34 -31
- package/layout/yz.stomp.service.d.ts +42 -39
- package/package.json +46 -18
- package/public_api.d.ts +2 -2
- package/shared/package.json +5 -6
- package/shared/public_api.d.ts +4 -4
- package/shared/shared-yelon.module.d.ts +3 -3
- package/shared/shared-zorro.module.d.ts +2 -2
- package/shared/shared.d.ts +5 -4
- package/shared/shared.module.d.ts +95 -2
- package/shared/style-icons.d.ts +1 -1
- package/bis.metadata.json +0 -1
- package/bundles/bis.umd.js +0 -18
- package/bundles/bis.umd.js.map +0 -1
- package/bundles/layout.umd.js +0 -2669
- package/bundles/layout.umd.js.map +0 -1
- package/bundles/shared.umd.js +0 -1249
- package/bundles/shared.umd.js.map +0 -1
- package/esm2015/layout/act.guard.js +0 -115
- package/esm2015/layout/contact/contact.component.js +0 -434
- package/esm2015/layout/contact/contact.service.js +0 -150
- package/esm2015/layout/layout.js +0 -8
- package/esm2015/layout/layout.module.js +0 -47
- package/esm2015/layout/stomp.config.js +0 -20
- package/esm2015/layout/widgets/yz.application.component.js +0 -200
- package/esm2015/layout/widgets/yz.clear-storage.component.js +0 -39
- package/esm2015/layout/widgets/yz.fullscreen.component.js +0 -36
- package/esm2015/layout/widgets/yz.i18n.component.js +0 -78
- package/esm2015/layout/widgets/yz.notify.component.js +0 -154
- package/esm2015/layout/widgets/yz.them-btn.component.js +0 -146
- package/esm2015/layout/widgets/yz.user.component.js +0 -81
- package/esm2015/layout/yz.auth.service.js +0 -158
- package/esm2015/layout/yz.basic.component.js +0 -101
- package/esm2015/layout/yz.default.interceptor.js +0 -204
- package/esm2015/layout/yz.i18n.service.js +0 -102
- package/esm2015/layout/yz.startup.service.js +0 -138
- package/esm2015/layout/yz.stomp.service.js +0 -91
- package/esm2015/shared/shared.module.js +0 -22
- package/fesm2015/bis.js.map +0 -1
- package/fesm2015/layout.js.map +0 -1
- package/fesm2015/shared.js.map +0 -1
- package/layout/layout.metadata.json +0 -1
- 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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
private
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
protected
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
private get
|
|
12
|
-
private get
|
|
13
|
-
private get
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private get
|
|
14
|
-
private get
|
|
15
|
-
private get
|
|
16
|
-
private
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { YzAuthService } from './yz.auth.service';
|
|
8
|
-
import { YzI18NService } from './yz.i18n.service';
|
|
9
|
-
|
|
10
|
-
export declare function
|
|
11
|
-
export declare
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"author": "devcui<devcui@outlook.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"ng-zorro-antd": "^
|
|
8
|
-
"@yelon/acl": "^
|
|
9
|
-
"@yelon/auth": "^
|
|
10
|
-
"@yelon/theme": "^
|
|
11
|
-
"@yelon/mock": "^
|
|
12
|
-
"@yelon/cache": "^
|
|
13
|
-
"@yelon/chart": "^
|
|
14
|
-
"@yelon/form": "^
|
|
15
|
-
"@yelon/testing": "^
|
|
16
|
-
"@yelon/util": "^
|
|
17
|
-
"tslib": "^2.
|
|
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
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"fesm2015": "fesm2015/bis.
|
|
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
|
-
"
|
|
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;
|
package/shared/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"fesm2015": "../fesm2015/shared.
|
|
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
|
}
|
package/shared/public_api.d.ts
CHANGED
|
@@ -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 {
|
|
2
|
-
export declare const YZ_SHARED_ZORRO_MODULES: (typeof
|
|
1
|
+
import { NzBadgeModule } from 'ng-zorro-antd/badge';
|
|
2
|
+
export declare const YZ_SHARED_ZORRO_MODULES: (typeof NzBadgeModule)[];
|
package/shared/shared.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@yelon/bis/shared" />
|
|
5
|
+
export * from './public_api';
|