@yelon/bis 18.3.0 → 19.0.1

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 (45) hide show
  1. package/fesm2022/bis.mjs +96 -82
  2. package/fesm2022/bis.mjs.map +1 -1
  3. package/fesm2022/layout.mjs +99 -110
  4. package/fesm2022/layout.mjs.map +1 -1
  5. package/fesm2022/yunzai-widgets.mjs +104 -114
  6. package/fesm2022/yunzai-widgets.mjs.map +1 -1
  7. package/layout/layout-basic.component.d.ts +1 -2
  8. package/layout/style/layout-website-01.less +1 -0
  9. package/package.json +12 -20
  10. package/src/helper.d.ts +3 -8
  11. package/src/refresh-token.d.ts +1 -2
  12. package/src/startup.service.d.ts +2 -2
  13. package/src/website/layout-website-01.component.d.ts +4 -5
  14. package/src/website/layout-website-02.component.d.ts +6 -7
  15. package/src/yunzai-analysis-addon.guard.d.ts +1 -2
  16. package/esm2022/bis.mjs +0 -5
  17. package/esm2022/config/bis.config.mjs +0 -15
  18. package/esm2022/config/config.mjs +0 -5
  19. package/esm2022/config/public_api.mjs +0 -2
  20. package/esm2022/layout/layout-basic.component.mjs +0 -518
  21. package/esm2022/layout/layout-nav-application.component.mjs +0 -372
  22. package/esm2022/layout/layout-nav-group.component.mjs +0 -166
  23. package/esm2022/layout/layout-nav-tile.component.mjs +0 -15
  24. package/esm2022/layout/layout.mjs +0 -5
  25. package/esm2022/layout/layout.module.mjs +0 -54
  26. package/esm2022/layout/public_api.mjs +0 -6
  27. package/esm2022/public_api.mjs +0 -11
  28. package/esm2022/src/bis.module.mjs +0 -17
  29. package/esm2022/src/helper.mjs +0 -45
  30. package/esm2022/src/provide.mjs +0 -8
  31. package/esm2022/src/refresh-token.mjs +0 -79
  32. package/esm2022/src/startup.service.mjs +0 -205
  33. package/esm2022/src/website/layout-website-01.component.mjs +0 -173
  34. package/esm2022/src/website/layout-website-02.component.mjs +0 -204
  35. package/esm2022/src/yunzai-act.guard.mjs +0 -88
  36. package/esm2022/src/yunzai-analysis-addon.guard.mjs +0 -99
  37. package/esm2022/src/yunzai-default.interceptor.mjs +0 -63
  38. package/esm2022/yunzai-widgets/public_api.mjs +0 -7
  39. package/esm2022/yunzai-widgets/yunzai-clear-storage.component.mjs +0 -47
  40. package/esm2022/yunzai-widgets/yunzai-fullscreen.component.mjs +0 -47
  41. package/esm2022/yunzai-widgets/yunzai-i18n.component.mjs +0 -139
  42. package/esm2022/yunzai-widgets/yunzai-notify.component.mjs +0 -180
  43. package/esm2022/yunzai-widgets/yunzai-user.component.mjs +0 -120
  44. package/esm2022/yunzai-widgets/yunzai-widget.module.mjs +0 -62
  45. package/esm2022/yunzai-widgets/yunzai-widgets.mjs +0 -5
@@ -1,7 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { LayoutDefaultOptions } from '@yelon/theme/layout-default';
3
3
  import { LayoutBasicAside, LayoutBasicDisplay, NavType, YunzaiHeaderStyle } from '@yelon/util';
4
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
5
4
  import * as i0 from "@angular/core";
6
5
  export interface LayoutBasicState {
7
6
  options: LayoutDefaultOptions;
@@ -39,7 +38,7 @@ export declare class YunzaiLayoutBasicComponent implements OnInit {
39
38
  get navType(): NavType;
40
39
  get aside(): LayoutBasicAside;
41
40
  get displayReusetab(): boolean;
42
- get reusetabCSS(): NzSafeAny;
41
+ get reusetabCSS(): any;
43
42
  ngOnInit(): void;
44
43
  initFavicon(): void;
45
44
  initAside(): void;
@@ -56,6 +56,7 @@
56
56
  &-link{
57
57
  color: @yz-layout-website-01-nav-link-color;
58
58
  font-size: @yz-layout-website-01-nav-link-font-size;
59
+
59
60
  span {
60
61
  margin: 0 5px;
61
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yelon/bis",
3
- "version": "18.3.0",
3
+ "version": "19.0.1",
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": "^18.1.1",
25
- "@yelon/acl": "^18.3.0",
26
- "@yelon/auth": "^18.3.0",
27
- "@yelon/theme": "^18.3.0",
28
- "@yelon/mock": "^18.3.0",
29
- "@yelon/cache": "^18.3.0",
30
- "@yelon/chart": "^18.3.0",
31
- "@yelon/form": "^18.3.0",
32
- "@yelon/testing": "^18.3.0",
33
- "@yelon/util": "^18.3.0",
34
- "@yelon/bcs": "^18.3.0",
24
+ "ng-zorro-antd": "^19.0.2",
25
+ "@yelon/acl": "^19.0.1",
26
+ "@yelon/auth": "^19.0.1",
27
+ "@yelon/theme": "^19.0.1",
28
+ "@yelon/mock": "^19.0.1",
29
+ "@yelon/cache": "^19.0.1",
30
+ "@yelon/chart": "^19.0.1",
31
+ "@yelon/form": "^19.0.1",
32
+ "@yelon/testing": "^19.0.1",
33
+ "@yelon/util": "^19.0.1",
34
+ "@yelon/bcs": "^19.0.1",
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,15 +1,10 @@
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
- export declare const CODEMESSAGE: {
5
- [key: number]: string;
6
- };
7
- export declare function getAdditionalHeaders(headers?: HttpHeaders): {
8
- [name: string]: string;
9
- };
3
+ export declare const CODEMESSAGE: Record<number, string>;
4
+ export declare function getAdditionalHeaders(headers?: HttpHeaders): Record<string, string>;
10
5
  export declare function checkStatus(injector: Injector, ev: HttpResponseBase): void;
11
6
  export interface ReThrowHttpError {
12
- body: NzSafeAny;
7
+ body: any;
13
8
  _throw: true;
14
9
  }
15
10
  export declare function goTo(injector: Injector, url: string): void;
@@ -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
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
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,4 +1,4 @@
1
- import { Provider } from '@angular/core';
1
+ import { EnvironmentProviders, Provider } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ITokenModel } from '@yelon/auth';
4
4
  import { YunzaiMenu } from '@yelon/util';
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  export interface LoadParam {
7
7
  force?: boolean;
8
8
  }
9
- export declare function provideYunzaiStartup(): Provider[];
9
+ export declare function provideYunzaiStartup(): Array<Provider | EnvironmentProviders>;
10
10
  export declare class YunzaiStartupService {
11
11
  private readonly config;
12
12
  private readonly menuService;
@@ -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 | NzSafeAny;
5
+ logoSrc?: string | any;
7
6
  logoAlt?: string;
8
7
  slogan?: string;
9
- contentTpl?: TemplateRef<void> | NzSafeAny;
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 | NzSafeAny;
13
+ get _logoSrc(): string | any;
15
14
  get _logoAlt(): string;
16
15
  get _slogan(): string;
17
- get _contentTpl(): TemplateRef<void> | NzSafeAny;
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 | NzSafeAny;
5
+ logoSrc?: string | any;
7
6
  logoAlt?: string;
8
7
  userMenuShow?: boolean;
9
- slogan?: TemplateRef<void> | NzSafeAny;
10
- contentTpl?: TemplateRef<void> | NzSafeAny;
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 | NzSafeAny;
14
+ get _logoSrc(): string | any;
16
15
  get _logoAlt(): string;
17
16
  get _userMenuShow(): boolean;
18
- get _slogan(): TemplateRef<void> | NzSafeAny;
19
- get _contentTpl(): TemplateRef<void> | NzSafeAny;
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: NzSafeAny, tokenService: ITokenService);
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 function mergeBisConfig(srv) {
13
- return srv.merge('bis', BUSINESS_DEFAULT_CONFIG);
14
- }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlzLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Jpcy9jb25maWcvYmlzLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSx1QkFBdUIsR0FBeUI7SUFDM0QsT0FBTyxFQUFFLFlBQVk7SUFDckIsVUFBVSxFQUFFLFFBQVE7SUFDcEIsR0FBRyxFQUFFO1FBQ0gsSUFBSSxFQUFFLElBQUk7UUFDVixHQUFHLEVBQUUsSUFBSTtLQUNWO0lBQ0QsU0FBUyxFQUFFLElBQUk7SUFDZixtQkFBbUIsRUFBRSxJQUFJO0lBQ3pCLGdCQUFnQixFQUFFLFlBQVk7Q0FDL0IsQ0FBQztBQUVGLE1BQU0sVUFBVSxjQUFjLENBQUMsR0FBd0I7SUFDckQsT0FBTyxHQUFHLENBQUMsS0FBSyxDQUFDLEtBQUssRUFBRSx1QkFBdUIsQ0FBRSxDQUFDO0FBQ3BELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBZdW56YWlCdXNpbmVzc0NvbmZpZywgWXVuemFpQ29uZmlnU2VydmljZSB9IGZyb20gJ0B5ZWxvbi91dGlsJztcblxuZXhwb3J0IGNvbnN0IEJVU0lORVNTX0RFRkFVTFRfQ09ORklHOiBZdW56YWlCdXNpbmVzc0NvbmZpZyA9IHtcbiAgYmFzZVVybDogJy9iYWNrc3RhZ2UnLFxuICBzeXN0ZW1Db2RlOiAncG9ydGFsJyxcbiAgbmF2OiB7XG4gICAgbWluZTogdHJ1ZSxcbiAgICBhbGw6IHRydWVcbiAgfSxcbiAgbG9naW5Gb3JtOiBudWxsLFxuICByZWZyZXNoVG9rZW5FbmFibGVkOiB0cnVlLFxuICByZWZyZXNoVG9rZW5UeXBlOiAncmUtcmVxdWVzdCdcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBtZXJnZUJpc0NvbmZpZyhzcnY6IFl1bnphaUNvbmZpZ1NlcnZpY2UpOiBZdW56YWlCdXNpbmVzc0NvbmZpZyB7XG4gIHJldHVybiBzcnYubWVyZ2UoJ2JpcycsIEJVU0lORVNTX0RFRkFVTFRfQ09ORklHKSE7XG59XG4iXX0=
@@ -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=