@yelon/bis 12.0.13 → 12.0.17
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 +4 -4
- package/bundles/bis.umd.js +7 -7
- package/bundles/layout.umd.js +2570 -1631
- package/bundles/layout.umd.js.map +1 -1
- package/bundles/shared.umd.js +1226 -1229
- package/bundles/shared.umd.js.map +1 -1
- package/esm2015/bis.js +4 -4
- package/esm2015/layout/act.guard.js +115 -0
- package/esm2015/layout/bis.config.js +10 -10
- package/esm2015/layout/contact/contact.component.js +434 -0
- package/esm2015/layout/contact/contact.service.js +150 -0
- package/esm2015/layout/layout.js +8 -6
- package/esm2015/layout/layout.module.js +47 -35
- package/esm2015/layout/path-to-regexp.service.js +237 -0
- package/esm2015/layout/public_api.js +15 -11
- package/esm2015/layout/stomp.config.js +19 -19
- package/esm2015/layout/widgets/index.js +7 -7
- package/esm2015/layout/widgets/yz.application.component.js +132 -132
- package/esm2015/layout/widgets/yz.clear-storage.component.js +35 -35
- package/esm2015/layout/widgets/yz.fullscreen.component.js +32 -32
- package/esm2015/layout/widgets/yz.i18n.component.js +50 -50
- package/esm2015/layout/widgets/yz.notify.component.js +143 -143
- package/esm2015/layout/widgets/yz.them-btn.component.js +106 -106
- package/esm2015/layout/widgets/yz.user.component.js +57 -57
- package/esm2015/layout/yz.auth.service.js +157 -157
- package/esm2015/layout/yz.basic.component.js +40 -40
- package/esm2015/layout/yz.default.interceptor.js +203 -203
- package/esm2015/layout/yz.i18n.service.js +102 -104
- package/esm2015/layout/yz.startup.service.js +137 -137
- package/esm2015/layout/yz.stomp.service.js +90 -90
- package/esm2015/public_api.js +1 -1
- package/esm2015/shared/public_api.js +4 -4
- package/esm2015/shared/shared-yelon.module.js +107 -107
- package/esm2015/shared/shared-zorro.module.js +81 -79
- package/esm2015/shared/shared.js +4 -4
- package/esm2015/shared/shared.module.js +22 -16
- package/esm2015/shared/style-icons.js +795 -795
- package/fesm2015/bis.js +2 -2
- package/fesm2015/layout.js +2148 -1221
- package/fesm2015/layout.js.map +1 -1
- package/fesm2015/shared.js +909 -901
- package/fesm2015/shared.js.map +1 -1
- package/layout/act.guard.d.ts +20 -0
- package/layout/bis.config.d.ts +3 -3
- package/layout/contact/contact.component.d.ts +166 -0
- package/layout/contact/contact.service.d.ts +115 -0
- package/layout/layout.d.ts +7 -5
- package/layout/layout.metadata.json +1 -1
- package/layout/layout.module.d.ts +2 -2
- package/layout/path-to-regexp.service.d.ts +23 -0
- package/layout/public_api.d.ts +12 -10
- package/layout/stomp.config.d.ts +3 -3
- package/layout/widgets/index.d.ts +7 -7
- package/layout/widgets/yz.application.component.d.ts +45 -45
- package/layout/widgets/yz.clear-storage.component.d.ts +8 -8
- package/layout/widgets/yz.fullscreen.component.d.ts +6 -6
- package/layout/widgets/yz.i18n.component.d.ts +19 -19
- package/layout/widgets/yz.notify.component.d.ts +25 -25
- package/layout/widgets/yz.them-btn.component.d.ts +29 -29
- package/layout/widgets/yz.user.component.d.ts +25 -25
- package/layout/yz.auth.service.d.ts +19 -19
- package/layout/yz.basic.component.d.ts +15 -15
- package/layout/yz.default.interceptor.d.ts +26 -26
- package/layout/yz.i18n.service.d.ts +24 -24
- package/layout/yz.startup.service.d.ts +31 -31
- package/layout/yz.stomp.service.d.ts +39 -39
- package/package.json +10 -10
- package/public_api.d.ts +2 -2
- 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 +4 -4
- package/shared/shared.metadata.json +1 -1
- package/shared/shared.module.d.ts +2 -2
- package/shared/style-icons.d.ts +1 -1
|
@@ -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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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,
|
|
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 { 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,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.
|
|
3
|
+
"version": "12.0.17",
|
|
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.
|
|
9
|
-
"@yelon/auth": "^12.0.
|
|
10
|
-
"@yelon/theme": "^12.0.
|
|
11
|
-
"@yelon/mock": "^12.0.
|
|
12
|
-
"@yelon/cache": "^12.0.
|
|
13
|
-
"@yelon/chart": "^12.0.
|
|
14
|
-
"@yelon/form": "^12.0.
|
|
15
|
-
"@yelon/testing": "^12.0.
|
|
16
|
-
"@yelon/util": "^12.0.
|
|
8
|
+
"@yelon/acl": "^12.0.17",
|
|
9
|
+
"@yelon/auth": "^12.0.17",
|
|
10
|
+
"@yelon/theme": "^12.0.17",
|
|
11
|
+
"@yelon/mock": "^12.0.17",
|
|
12
|
+
"@yelon/cache": "^12.0.17",
|
|
13
|
+
"@yelon/chart": "^12.0.17",
|
|
14
|
+
"@yelon/form": "^12.0.17",
|
|
15
|
+
"@yelon/testing": "^12.0.17",
|
|
16
|
+
"@yelon/util": "^12.0.17",
|
|
17
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;
|
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 { NzTreeModule } from 'ng-zorro-antd/tree';
|
|
2
|
+
export declare const YZ_SHARED_ZORRO_MODULES: (typeof NzTreeModule)[];
|
package/shared/shared.d.ts
CHANGED
|
@@ -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';
|