@yelon/bis 16.0.4 → 16.2.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.
Files changed (28) hide show
  1. package/esm2022/layout/bis.config.mjs +5 -1
  2. package/esm2022/layout/layout-basic/interface.mjs +1 -1
  3. package/esm2022/layout/layout-basic/layout-basic.component.mjs +12 -24
  4. package/esm2022/layout/layout-nav/layout-nav-application.component.mjs +60 -30
  5. package/esm2022/layout/layout-nav/layout-nav-group.component.mjs +69 -80
  6. package/esm2022/layout/layout-nav/layout-nav-tile.component.mjs +5 -6
  7. package/esm2022/layout/widgets/yunzai-clear-storage.component.mjs +5 -6
  8. package/esm2022/layout/widgets/yunzai-fullscreen.component.mjs +5 -6
  9. package/esm2022/layout/widgets/yunzai-i18n.component.mjs +8 -13
  10. package/esm2022/layout/widgets/yunzai-notify.component.mjs +5 -6
  11. package/esm2022/layout/widgets/yunzai-theme-btn.component.mjs +8 -12
  12. package/esm2022/layout/widgets/yunzai-user.component.mjs +5 -6
  13. package/esm2022/layout/yunzai-act.guard.mjs +5 -6
  14. package/esm2022/layout/yunzai-auth.service.mjs +14 -12
  15. package/esm2022/layout/yunzai-default.interceptor.mjs +3 -3
  16. package/esm2022/layout/yunzai-i18n.service.mjs +12 -16
  17. package/esm2022/layout/yunzai-layout.module.mjs +9 -10
  18. package/esm2022/layout/yunzai-startup.service.mjs +14 -13
  19. package/fesm2022/layout.mjs +213 -205
  20. package/fesm2022/layout.mjs.map +1 -1
  21. package/layout/layout-basic/interface.d.ts +1 -3
  22. package/layout/layout-basic/layout-basic.component.d.ts +2 -3
  23. package/layout/layout-nav/layout-nav-application.component.d.ts +9 -5
  24. package/layout/layout-nav/layout-nav-group.component.d.ts +2 -3
  25. package/layout/widgets/yunzai-i18n.component.d.ts +2 -5
  26. package/layout/widgets/yunzai-theme-btn.component.d.ts +0 -1
  27. package/layout/yunzai-i18n.service.d.ts +1 -5
  28. package/package.json +12 -12
@@ -1,10 +1,8 @@
1
- import { Subject } from 'rxjs';
2
1
  import { LayoutDefaultOptions } from '@yelon/theme/layout-default';
3
- import { LayoutBasicAside, LayoutBasicDisplay, NavType } from "@yelon/util";
2
+ import { LayoutBasicAside, LayoutBasicDisplay, NavType } from '@yelon/util';
4
3
  export interface LayoutBasicState {
5
4
  options: LayoutDefaultOptions;
6
5
  aside: LayoutBasicAside;
7
6
  display: LayoutBasicDisplay;
8
7
  navType: NavType;
9
- destroy$: Subject<unknown>;
10
8
  }
@@ -1,9 +1,9 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import { StompService } from '@yelon/socket';
3
3
  import { LayoutDefaultOptions, LayoutDisplayService } from '@yelon/theme/layout-default';
4
4
  import { NavType, LayoutBasicAside } from '@yelon/util';
5
5
  import * as i0 from "@angular/core";
6
- export declare class YunzaiLayoutBasicComponent implements OnInit, OnDestroy {
6
+ export declare class YunzaiLayoutBasicComponent implements OnInit {
7
7
  private layoutDisplayService;
8
8
  private stompService;
9
9
  private win;
@@ -23,7 +23,6 @@ export declare class YunzaiLayoutBasicComponent implements OnInit, OnDestroy {
23
23
  toIndex(): void;
24
24
  onNavTypeChange(type: NavType): void;
25
25
  addLayoutDisplayListener(): void;
26
- ngOnDestroy(): void;
27
26
  static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiLayoutBasicComponent, never>;
28
27
  static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiLayoutBasicComponent, "yz-layout-basic", never, {}, {}, never, never, false, never>;
29
28
  }
@@ -1,14 +1,19 @@
1
- import { Injector, OnDestroy, OnInit } from '@angular/core';
1
+ import { Injector, OnInit } from '@angular/core';
2
2
  import { _HttpClient } from '@yelon/theme';
3
- import { LayoutNavApplicationState, YunzaiNavTopic } from '@yelon/util';
3
+ import { LayoutNavApplicationState, YunzaiConfigService, YunzaiNavTopic } from '@yelon/util';
4
4
  import { YunzaiI18NService } from '../yunzai-i18n.service';
5
5
  import * as i0 from "@angular/core";
6
- export declare class LayoutNavApplicationComponent implements OnInit, OnDestroy {
6
+ export declare class LayoutNavApplicationComponent implements OnInit {
7
7
  private i18n;
8
8
  private http;
9
9
  private inject;
10
+ private configService;
11
+ private win;
12
+ private bis;
10
13
  state: LayoutNavApplicationState;
11
- constructor(i18n: YunzaiI18NService, http: _HttpClient, inject: Injector);
14
+ get showAllMenu(): boolean;
15
+ get showMineMenu(): boolean;
16
+ constructor(i18n: YunzaiI18NService, http: _HttpClient, inject: Injector, configService: YunzaiConfigService, win: any);
12
17
  ngOnInit(): void;
13
18
  fetchAllTopic(): void;
14
19
  attachNav(type: 'all' | 'mine' | 'other', topic?: YunzaiNavTopic): void;
@@ -19,7 +24,6 @@ export declare class LayoutNavApplicationComponent implements OnInit, OnDestroy
19
24
  diffChange(flag?: boolean): void;
20
25
  open(topic: YunzaiNavTopic): void;
21
26
  onSearch(): void;
22
- ngOnDestroy(): void;
23
27
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutNavApplicationComponent, never>;
24
28
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutNavApplicationComponent, "layout-nav-application", never, {}, {}, never, never, false, never>;
25
29
  }
@@ -1,15 +1,14 @@
1
- import { Injector, OnDestroy, OnInit } from '@angular/core';
1
+ import { Injector, OnInit } from '@angular/core';
2
2
  import { _HttpClient } from '@yelon/theme';
3
3
  import { LayoutNavGroupState, YunzaiNavTopic } from '@yelon/util';
4
4
  import * as i0 from "@angular/core";
5
- export declare class LayoutNavGroupComponent implements OnInit, OnDestroy {
5
+ export declare class LayoutNavGroupComponent implements OnInit {
6
6
  private inject;
7
7
  private http;
8
8
  state: LayoutNavGroupState;
9
9
  constructor(inject: Injector, http: _HttpClient);
10
10
  ngOnInit(): void;
11
11
  open(topic: YunzaiNavTopic): void;
12
- ngOnDestroy(): void;
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutNavGroupComponent, never>;
14
13
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutNavGroupComponent, "layout-nav-group", never, {}, {}, never, never, false, never>;
15
14
  }
@@ -1,21 +1,18 @@
1
- import { OnDestroy } from '@angular/core';
2
1
  import { SettingsService, YunzaiI18NType } from '@yelon/theme';
2
+ import { YunzaiI18NService } from "../yunzai-i18n.service";
3
3
  import { BooleanInput } from '@yelon/util/decorator';
4
- import { YunzaiI18NService } from '../yunzai-i18n.service';
5
4
  import * as i0 from "@angular/core";
6
- export declare class YunzaiI18NComponent implements OnDestroy {
5
+ export declare class YunzaiI18NComponent {
7
6
  private settings;
8
7
  private i18n;
9
8
  private doc;
10
9
  static ngAcceptInputType_showLangText: BooleanInput;
11
- private destroy$;
12
10
  /** Whether to display language text */
13
11
  showLangText: boolean;
14
12
  langs: YunzaiI18NType[];
15
13
  get curLangCode(): string;
16
14
  constructor(settings: SettingsService, i18n: YunzaiI18NService, doc: any);
17
15
  change(lang: string): void;
18
- ngOnDestroy(): void;
19
16
  static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NComponent, never>;
20
17
  static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiI18NComponent, "yunzai-i18n", never, { "showLangText": { "alias": "showLangText"; "required": false; }; }, {}, never, never, false, never>;
21
18
  }
@@ -19,7 +19,6 @@ export declare class YunzaiThemBtnComponent implements OnInit, OnDestroy {
19
19
  types: YunzaiThemeBtnType[];
20
20
  devTips: string;
21
21
  deployUrl: string;
22
- private destroy$;
23
22
  dir: Direction;
24
23
  constructor(renderer: Renderer2, configSrv: YunzaiConfigService, platform: Platform, doc: NzSafeAny, directionality: Directionality, KEYS: string);
25
24
  ngOnInit(): void;
@@ -1,12 +1,11 @@
1
1
  import { Platform } from '@angular/cdk/platform';
2
- import { OnDestroy } from '@angular/core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService, YunzaiI18NType } from '@yelon/theme';
5
4
  import { YunzaiConfigService } from '@yelon/util/config';
6
5
  import { NzSafeAny } from 'ng-zorro-antd/core/types';
7
6
  import { NzI18nService } from 'ng-zorro-antd/i18n';
8
7
  import * as i0 from "@angular/core";
9
- declare class YunzaiI18NService extends YunzaiI18nBaseService implements OnDestroy {
8
+ export declare class YunzaiI18NService extends YunzaiI18nBaseService {
10
9
  private http;
11
10
  private settings;
12
11
  private nzI18nService;
@@ -14,7 +13,6 @@ declare class YunzaiI18NService extends YunzaiI18nBaseService implements OnDestr
14
13
  private platform;
15
14
  protected _defaultLang: string;
16
15
  private bis;
17
- private destroy$;
18
16
  constructor(http: _HttpClient, settings: SettingsService, nzI18nService: NzI18nService, yelonLocaleService: YelonLocaleService, platform: Platform, cogSrv: YunzaiConfigService);
19
17
  private getDefaultLang;
20
18
  loadLangData(lang: string): Observable<NzSafeAny>;
@@ -24,8 +22,6 @@ declare class YunzaiI18NService extends YunzaiI18nBaseService implements OnDestr
24
22
  getLang(lang: string): Record<string, unknown>;
25
23
  cacheLangs(langs: YunzaiI18NType[]): void;
26
24
  getCachedLangs(): YunzaiI18NType[];
27
- ngOnDestroy(): void;
28
25
  static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NService, never>;
29
26
  static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiI18NService>;
30
27
  }
31
- export { YunzaiI18NService as YzI18NService, YunzaiI18NService };
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@yelon/bis",
3
- "version": "16.0.4",
3
+ "version": "16.2.0",
4
4
  "author": "devcui<devcui@outlook.com>",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "ng-zorro-antd": "^16.0.0",
8
- "@yelon/acl": "^16.0.4",
9
- "@yelon/auth": "^16.0.4",
10
- "@yelon/theme": "^16.0.4",
11
- "@yelon/mock": "^16.0.4",
12
- "@yelon/cache": "^16.0.4",
13
- "@yelon/chart": "^16.0.4",
14
- "@yelon/form": "^16.0.4",
15
- "@yelon/testing": "^16.0.4",
16
- "@yelon/util": "^16.0.4",
17
- "@yelon/bcs": "^16.0.4",
7
+ "ng-zorro-antd": "^16.1.0",
8
+ "@yelon/acl": "^16.2.0",
9
+ "@yelon/auth": "^16.2.0",
10
+ "@yelon/theme": "^16.2.0",
11
+ "@yelon/mock": "^16.2.0",
12
+ "@yelon/cache": "^16.2.0",
13
+ "@yelon/chart": "^16.2.0",
14
+ "@yelon/form": "^16.2.0",
15
+ "@yelon/testing": "^16.2.0",
16
+ "@yelon/util": "^16.2.0",
17
+ "@yelon/bcs": "^16.2.0",
18
18
  "tslib": "^2.3.0"
19
19
  },
20
20
  "module": "fesm2022/bis.mjs",