@yelon/bis 18.3.0 → 19.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/fesm2022/bis.mjs +63 -57
- package/fesm2022/bis.mjs.map +1 -1
- package/fesm2022/layout.mjs +70 -74
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/yunzai-widgets.mjs +92 -102
- package/fesm2022/yunzai-widgets.mjs.map +1 -1
- package/layout/layout-basic.component.d.ts +1 -2
- package/layout/style/layout-website-01.less +1 -0
- package/package.json +12 -20
- package/src/helper.d.ts +1 -2
- package/src/refresh-token.d.ts +1 -2
- package/src/website/layout-website-01.component.d.ts +4 -5
- package/src/website/layout-website-02.component.d.ts +6 -7
- package/src/yunzai-analysis-addon.guard.d.ts +1 -2
- package/esm2022/bis.mjs +0 -5
- package/esm2022/config/bis.config.mjs +0 -15
- package/esm2022/config/config.mjs +0 -5
- package/esm2022/config/public_api.mjs +0 -2
- package/esm2022/layout/layout-basic.component.mjs +0 -518
- package/esm2022/layout/layout-nav-application.component.mjs +0 -372
- package/esm2022/layout/layout-nav-group.component.mjs +0 -166
- package/esm2022/layout/layout-nav-tile.component.mjs +0 -15
- package/esm2022/layout/layout.mjs +0 -5
- package/esm2022/layout/layout.module.mjs +0 -54
- package/esm2022/layout/public_api.mjs +0 -6
- package/esm2022/public_api.mjs +0 -11
- package/esm2022/src/bis.module.mjs +0 -17
- package/esm2022/src/helper.mjs +0 -45
- package/esm2022/src/provide.mjs +0 -8
- package/esm2022/src/refresh-token.mjs +0 -79
- package/esm2022/src/startup.service.mjs +0 -205
- package/esm2022/src/website/layout-website-01.component.mjs +0 -173
- package/esm2022/src/website/layout-website-02.component.mjs +0 -204
- package/esm2022/src/yunzai-act.guard.mjs +0 -88
- package/esm2022/src/yunzai-analysis-addon.guard.mjs +0 -99
- package/esm2022/src/yunzai-default.interceptor.mjs +0 -63
- package/esm2022/yunzai-widgets/public_api.mjs +0 -7
- package/esm2022/yunzai-widgets/yunzai-clear-storage.component.mjs +0 -47
- package/esm2022/yunzai-widgets/yunzai-fullscreen.component.mjs +0 -47
- package/esm2022/yunzai-widgets/yunzai-i18n.component.mjs +0 -139
- package/esm2022/yunzai-widgets/yunzai-notify.component.mjs +0 -180
- package/esm2022/yunzai-widgets/yunzai-user.component.mjs +0 -120
- package/esm2022/yunzai-widgets/yunzai-widget.module.mjs +0 -62
- package/esm2022/yunzai-widgets/yunzai-widgets.mjs +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yelon/bis",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"author": "devcui<devcui@outlook.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"component"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"ng-zorro-antd": "^
|
|
25
|
-
"@yelon/acl": "^
|
|
26
|
-
"@yelon/auth": "^
|
|
27
|
-
"@yelon/theme": "^
|
|
28
|
-
"@yelon/mock": "^
|
|
29
|
-
"@yelon/cache": "^
|
|
30
|
-
"@yelon/chart": "^
|
|
31
|
-
"@yelon/form": "^
|
|
32
|
-
"@yelon/testing": "^
|
|
33
|
-
"@yelon/util": "^
|
|
34
|
-
"@yelon/bcs": "^
|
|
24
|
+
"ng-zorro-antd": "^19.0.2",
|
|
25
|
+
"@yelon/acl": "^19.0.0",
|
|
26
|
+
"@yelon/auth": "^19.0.0",
|
|
27
|
+
"@yelon/theme": "^19.0.0",
|
|
28
|
+
"@yelon/mock": "^19.0.0",
|
|
29
|
+
"@yelon/cache": "^19.0.0",
|
|
30
|
+
"@yelon/chart": "^19.0.0",
|
|
31
|
+
"@yelon/form": "^19.0.0",
|
|
32
|
+
"@yelon/testing": "^19.0.0",
|
|
33
|
+
"@yelon/util": "^19.0.0",
|
|
34
|
+
"@yelon/bcs": "^19.0.0",
|
|
35
35
|
"tslib": "^2.3.0"
|
|
36
36
|
},
|
|
37
37
|
"module": "fesm2022/bis.mjs",
|
|
@@ -42,26 +42,18 @@
|
|
|
42
42
|
},
|
|
43
43
|
".": {
|
|
44
44
|
"types": "./index.d.ts",
|
|
45
|
-
"esm2022": "./esm2022/bis.mjs",
|
|
46
|
-
"esm": "./esm2022/bis.mjs",
|
|
47
45
|
"default": "./fesm2022/bis.mjs"
|
|
48
46
|
},
|
|
49
47
|
"./config": {
|
|
50
48
|
"types": "./config/index.d.ts",
|
|
51
|
-
"esm2022": "./esm2022/config/config.mjs",
|
|
52
|
-
"esm": "./esm2022/config/config.mjs",
|
|
53
49
|
"default": "./fesm2022/config.mjs"
|
|
54
50
|
},
|
|
55
51
|
"./layout": {
|
|
56
52
|
"types": "./layout/index.d.ts",
|
|
57
|
-
"esm2022": "./esm2022/layout/layout.mjs",
|
|
58
|
-
"esm": "./esm2022/layout/layout.mjs",
|
|
59
53
|
"default": "./fesm2022/layout.mjs"
|
|
60
54
|
},
|
|
61
55
|
"./yunzai-widgets": {
|
|
62
56
|
"types": "./yunzai-widgets/index.d.ts",
|
|
63
|
-
"esm2022": "./esm2022/yunzai-widgets/yunzai-widgets.mjs",
|
|
64
|
-
"esm": "./esm2022/yunzai-widgets/yunzai-widgets.mjs",
|
|
65
57
|
"default": "./fesm2022/yunzai-widgets.mjs"
|
|
66
58
|
}
|
|
67
59
|
},
|
package/src/helper.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HttpHeaders, HttpResponseBase } from '@angular/common/http';
|
|
2
2
|
import { Injector } from '@angular/core';
|
|
3
|
-
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
3
|
export declare const CODEMESSAGE: {
|
|
5
4
|
[key: number]: string;
|
|
6
5
|
};
|
|
@@ -9,7 +8,7 @@ export declare function getAdditionalHeaders(headers?: HttpHeaders): {
|
|
|
9
8
|
};
|
|
10
9
|
export declare function checkStatus(injector: Injector, ev: HttpResponseBase): void;
|
|
11
10
|
export interface ReThrowHttpError {
|
|
12
|
-
body:
|
|
11
|
+
body: any;
|
|
13
12
|
_throw: true;
|
|
14
13
|
}
|
|
15
14
|
export declare function goTo(injector: Injector, url: string): void;
|
package/src/refresh-token.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HttpHandlerFn, HttpRequest, HttpResponseBase } from '@angular/common/http';
|
|
2
2
|
import { Injector, Provider } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
|
|
5
|
-
export declare const tryRefreshToken: (injector: Injector, ev: HttpResponseBase, req: HttpRequest<NzSafeAny>, next: HttpHandlerFn) => Observable<NzSafeAny>;
|
|
4
|
+
export declare const tryRefreshToken: (injector: Injector, ev: HttpResponseBase, req: HttpRequest<any>, next: HttpHandlerFn) => Observable<any>;
|
|
6
5
|
export declare function provideYunzaiBindAuthRefresh(): Provider[];
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { YunzaiProfile } from '@yelon/util';
|
|
3
|
-
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class YunzaiLayoutWebsite01Component {
|
|
6
|
-
logoSrc?: string |
|
|
5
|
+
logoSrc?: string | any;
|
|
7
6
|
logoAlt?: string;
|
|
8
7
|
slogan?: string;
|
|
9
|
-
contentTpl?: TemplateRef<void> |
|
|
8
|
+
contentTpl?: TemplateRef<void> | any;
|
|
10
9
|
private readonly tokenService;
|
|
11
10
|
private readonly configService;
|
|
12
11
|
private readonly startupSrv;
|
|
13
12
|
private readonly win;
|
|
14
|
-
get _logoSrc(): string |
|
|
13
|
+
get _logoSrc(): string | any;
|
|
15
14
|
get _logoAlt(): string;
|
|
16
15
|
get _slogan(): string;
|
|
17
|
-
get _contentTpl(): TemplateRef<void> |
|
|
16
|
+
get _contentTpl(): TemplateRef<void> | any;
|
|
18
17
|
get _username(): string;
|
|
19
18
|
get isLogin(): boolean;
|
|
20
19
|
get _links(): YunzaiProfile[];
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { YunzaiProfile } from '@yelon/util';
|
|
3
|
-
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class YunzaiLayoutWebsite02Component {
|
|
6
|
-
logoSrc?: string |
|
|
5
|
+
logoSrc?: string | any;
|
|
7
6
|
logoAlt?: string;
|
|
8
7
|
userMenuShow?: boolean;
|
|
9
|
-
slogan?: TemplateRef<void> |
|
|
10
|
-
contentTpl?: TemplateRef<void> |
|
|
8
|
+
slogan?: TemplateRef<void> | any;
|
|
9
|
+
contentTpl?: TemplateRef<void> | any;
|
|
11
10
|
private readonly tokenService;
|
|
12
11
|
private readonly configService;
|
|
13
12
|
private readonly startupSrv;
|
|
14
13
|
private readonly win;
|
|
15
|
-
get _logoSrc(): string |
|
|
14
|
+
get _logoSrc(): string | any;
|
|
16
15
|
get _logoAlt(): string;
|
|
17
16
|
get _userMenuShow(): boolean;
|
|
18
|
-
get _slogan(): TemplateRef<void> |
|
|
19
|
-
get _contentTpl(): TemplateRef<void> |
|
|
17
|
+
get _slogan(): TemplateRef<void> | any;
|
|
18
|
+
get _contentTpl(): TemplateRef<void> | any;
|
|
20
19
|
get _username(): string;
|
|
21
20
|
get _avatar(): string | undefined;
|
|
22
21
|
get isLogin(): boolean;
|
|
@@ -2,7 +2,6 @@ import { CanActivateChildFn, CanActivateFn } from '@angular/router';
|
|
|
2
2
|
import { ITokenService } from '@yelon/auth';
|
|
3
3
|
import { Menu } from '@yelon/theme';
|
|
4
4
|
import { PathToRegexpService, YunzaiConfigService } from '@yelon/util';
|
|
5
|
-
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class YunzaiAnalysisAddonGuardService {
|
|
8
7
|
private configService;
|
|
@@ -13,7 +12,7 @@ export declare class YunzaiAnalysisAddonGuardService {
|
|
|
13
12
|
private menus;
|
|
14
13
|
private links;
|
|
15
14
|
private value;
|
|
16
|
-
constructor(configService: YunzaiConfigService, pathToRegexp: PathToRegexpService, win:
|
|
15
|
+
constructor(configService: YunzaiConfigService, pathToRegexp: PathToRegexpService, win: any, tokenService: ITokenService);
|
|
17
16
|
process(url: string): boolean;
|
|
18
17
|
getAllLinks(menu: Menu[], links: Array<{
|
|
19
18
|
title: string;
|
package/esm2022/bis.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public_api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvYmlzL2Jpcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const BUSINESS_DEFAULT_CONFIG = {
|
|
2
|
-
baseUrl: '/backstage',
|
|
3
|
-
systemCode: 'portal',
|
|
4
|
-
nav: {
|
|
5
|
-
mine: true,
|
|
6
|
-
all: true
|
|
7
|
-
},
|
|
8
|
-
loginForm: null,
|
|
9
|
-
refreshTokenEnabled: true,
|
|
10
|
-
refreshTokenType: 're-request'
|
|
11
|
-
};
|
|
12
|
-
export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5Gb3JtOiBudWxsLFxuICByZWZyZXNoVG9rZW5FbmFibGVkOiB0cnVlLFxuICByZWZyZXNoVG9rZW5UeXBlOiAncmUtcmVxdWVzdCdcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBtZXJnZUJpc0NvbmZpZyhzcnY6IFl1bnphaUNvbmZpZ1NlcnZpY2UpOiBZdW56YWlCdXNpbmVzc0NvbmZpZyB7XG4gIHJldHVybiBzcnYubWVyZ2UoJ2JpcycsIEJVU0lORVNTX0RFRkFVTFRfQ09ORklHKSE7XG59XG4iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public_api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYmlzL2NvbmZpZy9jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './bis.config';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Jpcy9jb25maWcvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYmlzLmNvbmZpZyc7XG4iXX0=
|