@yelon/bis 16.2.2 → 16.2.3
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/esm2022/layout/layout-nav/layout-nav-application.component.mjs +8 -4
- package/esm2022/layout/layout-nav/layout-nav-group.component.mjs +8 -4
- package/esm2022/layout/widgets/yunzai-i18n.component.mjs +8 -4
- package/esm2022/layout/widgets/yunzai-theme-btn.component.mjs +6 -4
- package/esm2022/layout/yunzai-i18n.service.mjs +8 -5
- package/fesm2022/layout.mjs +25 -8
- package/fesm2022/layout.mjs.map +1 -1
- package/layout/layout-nav/layout-nav-application.component.d.ts +4 -2
- package/layout/layout-nav/layout-nav-group.component.d.ts +4 -2
- package/layout/widgets/yunzai-i18n.component.d.ts +4 -1
- package/layout/widgets/yunzai-theme-btn.component.d.ts +1 -0
- package/layout/yunzai-i18n.service.d.ts +4 -1
- package/package.json +11 -11
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Injector, OnInit } from '@angular/core';
|
|
1
|
+
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { _HttpClient } from '@yelon/theme';
|
|
3
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 {
|
|
6
|
+
export declare class LayoutNavApplicationComponent implements OnInit, OnDestroy {
|
|
7
7
|
private i18n;
|
|
8
8
|
private http;
|
|
9
9
|
private inject;
|
|
10
10
|
private configService;
|
|
11
11
|
private win;
|
|
12
12
|
private bis;
|
|
13
|
+
private $destroy;
|
|
13
14
|
state: LayoutNavApplicationState;
|
|
14
15
|
get showAllMenu(): boolean;
|
|
15
16
|
get showMineMenu(): boolean;
|
|
@@ -24,6 +25,7 @@ export declare class LayoutNavApplicationComponent implements OnInit {
|
|
|
24
25
|
diffChange(flag?: boolean): void;
|
|
25
26
|
open(topic: YunzaiNavTopic): void;
|
|
26
27
|
onSearch(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
27
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutNavApplicationComponent, never>;
|
|
28
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutNavApplicationComponent, "layout-nav-application", never, {}, {}, never, never, false, never>;
|
|
29
31
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { Injector, OnInit } from '@angular/core';
|
|
1
|
+
import { Injector, OnDestroy, 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 {
|
|
5
|
+
export declare class LayoutNavGroupComponent implements OnInit, OnDestroy {
|
|
6
6
|
private inject;
|
|
7
7
|
private http;
|
|
8
|
+
private $destroy;
|
|
8
9
|
state: LayoutNavGroupState;
|
|
9
10
|
constructor(inject: Injector, http: _HttpClient);
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
open(topic: YunzaiNavTopic): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutNavGroupComponent, never>;
|
|
13
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutNavGroupComponent, "layout-nav-group", never, {}, {}, never, never, false, never>;
|
|
14
16
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import { SettingsService, YunzaiI18NType } from '@yelon/theme';
|
|
2
3
|
import { YunzaiI18NService } from "../yunzai-i18n.service";
|
|
3
4
|
import { BooleanInput } from '@yelon/util/decorator';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class YunzaiI18NComponent {
|
|
6
|
+
export declare class YunzaiI18NComponent implements OnDestroy {
|
|
6
7
|
private settings;
|
|
7
8
|
private i18n;
|
|
8
9
|
private doc;
|
|
9
10
|
static ngAcceptInputType_showLangText: BooleanInput;
|
|
10
11
|
/** Whether to display language text */
|
|
11
12
|
showLangText: boolean;
|
|
13
|
+
private $destroy;
|
|
12
14
|
langs: YunzaiI18NType[];
|
|
13
15
|
get curLangCode(): string;
|
|
14
16
|
constructor(settings: SettingsService, i18n: YunzaiI18NService, doc: any);
|
|
15
17
|
change(lang: string): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
16
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NComponent, never>;
|
|
17
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiI18NComponent, "yunzai-i18n", never, { "showLangText": { "alias": "showLangText"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
21
|
}
|
|
@@ -20,6 +20,7 @@ export declare class YunzaiThemBtnComponent implements OnInit, OnDestroy {
|
|
|
20
20
|
devTips: string;
|
|
21
21
|
deployUrl: string;
|
|
22
22
|
dir: Direction;
|
|
23
|
+
private $destroy;
|
|
23
24
|
constructor(renderer: Renderer2, configSrv: YunzaiConfigService, platform: Platform, doc: NzSafeAny, directionality: Directionality, KEYS: string);
|
|
24
25
|
ngOnInit(): void;
|
|
25
26
|
private initTheme;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Platform } from '@angular/cdk/platform';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService, YunzaiI18NType } from '@yelon/theme';
|
|
4
5
|
import { YunzaiConfigService } from '@yelon/util/config';
|
|
5
6
|
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
7
|
import { NzI18nService } from 'ng-zorro-antd/i18n';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class YunzaiI18NService extends YunzaiI18nBaseService {
|
|
9
|
+
export declare class YunzaiI18NService extends YunzaiI18nBaseService implements OnDestroy {
|
|
9
10
|
private http;
|
|
10
11
|
private settings;
|
|
11
12
|
private nzI18nService;
|
|
@@ -13,6 +14,7 @@ export declare class YunzaiI18NService extends YunzaiI18nBaseService {
|
|
|
13
14
|
private platform;
|
|
14
15
|
protected _defaultLang: string;
|
|
15
16
|
private bis;
|
|
17
|
+
private $destroy;
|
|
16
18
|
constructor(http: _HttpClient, settings: SettingsService, nzI18nService: NzI18nService, yelonLocaleService: YelonLocaleService, platform: Platform, cogSrv: YunzaiConfigService);
|
|
17
19
|
private getDefaultLang;
|
|
18
20
|
loadLangData(lang: string): Observable<NzSafeAny>;
|
|
@@ -22,6 +24,7 @@ export declare class YunzaiI18NService extends YunzaiI18nBaseService {
|
|
|
22
24
|
getLang(lang: string): Record<string, unknown>;
|
|
23
25
|
cacheLangs(langs: YunzaiI18NType[]): void;
|
|
24
26
|
getCachedLangs(): YunzaiI18NType[];
|
|
27
|
+
ngOnDestroy(): void;
|
|
25
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NService, never>;
|
|
26
29
|
static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiI18NService>;
|
|
27
30
|
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yelon/bis",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.3",
|
|
4
4
|
"author": "devcui<devcui@outlook.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"ng-zorro-antd": "^16.1.0",
|
|
8
|
-
"@yelon/acl": "^16.2.
|
|
9
|
-
"@yelon/auth": "^16.2.
|
|
10
|
-
"@yelon/theme": "^16.2.
|
|
11
|
-
"@yelon/mock": "^16.2.
|
|
12
|
-
"@yelon/cache": "^16.2.
|
|
13
|
-
"@yelon/chart": "^16.2.
|
|
14
|
-
"@yelon/form": "^16.2.
|
|
15
|
-
"@yelon/testing": "^16.2.
|
|
16
|
-
"@yelon/util": "^16.2.
|
|
17
|
-
"@yelon/bcs": "^16.2.
|
|
8
|
+
"@yelon/acl": "^16.2.3",
|
|
9
|
+
"@yelon/auth": "^16.2.3",
|
|
10
|
+
"@yelon/theme": "^16.2.3",
|
|
11
|
+
"@yelon/mock": "^16.2.3",
|
|
12
|
+
"@yelon/cache": "^16.2.3",
|
|
13
|
+
"@yelon/chart": "^16.2.3",
|
|
14
|
+
"@yelon/form": "^16.2.3",
|
|
15
|
+
"@yelon/testing": "^16.2.3",
|
|
16
|
+
"@yelon/util": "^16.2.3",
|
|
17
|
+
"@yelon/bcs": "^16.2.3",
|
|
18
18
|
"tslib": "^2.3.0"
|
|
19
19
|
},
|
|
20
20
|
"module": "fesm2022/bis.mjs",
|