@yelon/bis 15.0.0-beta.7 → 15.1.0-077d885e

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.
@@ -6,5 +6,6 @@ export * from './yunzai-act.guard';
6
6
  export * from './yunzai-auth.service';
7
7
  export * from './yunzai-default.interceptor';
8
8
  export * from './yunzai-i18n.service';
9
+ export * from './yunzai-lang';
9
10
  export * from './yunzai-layout.module';
10
11
  export * from './yunzai-startup.service';
@@ -1,22 +1,21 @@
1
- import { SettingsService } from '@yelon/theme';
1
+ import { OnDestroy } from '@angular/core';
2
+ import { SettingsService, YunzaiI18NType } from '@yelon/theme';
2
3
  import { BooleanInput } from '@yelon/util/decorator';
3
4
  import { YunzaiI18NService } from '../yunzai-i18n.service';
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;
11
+ private destroy$;
10
12
  /** Whether to display language text */
11
13
  showLangText: boolean;
12
- get langs(): Array<{
13
- code: string;
14
- text: string;
15
- abbr: string;
16
- }>;
14
+ langs: YunzaiI18NType[];
17
15
  get curLangCode(): string;
18
16
  constructor(settings: SettingsService, i18n: YunzaiI18NService, doc: any);
19
17
  change(lang: string): void;
18
+ ngOnDestroy(): void;
20
19
  static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NComponent, never>;
21
20
  static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiI18NComponent, "yunzai-i18n", never, { "showLangText": "showLangText"; }, {}, never, never, false, never>;
22
21
  }
@@ -1,27 +1,28 @@
1
1
  import { Platform } from '@angular/cdk/platform';
2
+ import { OnDestroy } from '@angular/core';
2
3
  import { Observable } from 'rxjs';
3
- import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService } from '@yelon/theme';
4
+ import { CacheService } from '@yelon/cache';
5
+ import { YelonLocaleService, SettingsService, _HttpClient, YunzaiI18nBaseService, YunzaiI18NType } from '@yelon/theme';
4
6
  import { YunzaiConfigService } from '@yelon/util/config';
5
7
  import { NzSafeAny } from 'ng-zorro-antd/core/types';
6
8
  import { NzI18nService } from 'ng-zorro-antd/i18n';
7
9
  import * as i0 from "@angular/core";
8
- declare class YunzaiI18NService extends YunzaiI18nBaseService {
10
+ declare class YunzaiI18NService extends YunzaiI18nBaseService implements OnDestroy {
9
11
  private http;
10
12
  private settings;
11
13
  private nzI18nService;
12
14
  private yelonLocaleService;
13
15
  private platform;
16
+ private cacheService;
14
17
  protected _defaultLang: string;
15
- private _langs;
16
- constructor(http: _HttpClient, settings: SettingsService, nzI18nService: NzI18nService, yelonLocaleService: YelonLocaleService, platform: Platform, cogSrv: YunzaiConfigService);
18
+ private bis;
19
+ private destroy$;
20
+ constructor(http: _HttpClient, settings: SettingsService, nzI18nService: NzI18nService, yelonLocaleService: YelonLocaleService, platform: Platform, cogSrv: YunzaiConfigService, cacheService: CacheService);
17
21
  private getDefaultLang;
18
22
  loadLangData(lang: string): Observable<NzSafeAny>;
19
23
  use(lang: string, data: Record<string, unknown>): void;
20
- getLangs(): Array<{
21
- code: string;
22
- text: string;
23
- abbr: string;
24
- }>;
24
+ getLangs(): Observable<YunzaiI18NType[]>;
25
+ ngOnDestroy(): void;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiI18NService, never>;
26
27
  static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiI18NService>;
27
28
  }
@@ -0,0 +1,11 @@
1
+ export interface LangConfigData {
2
+ abbr: string;
3
+ text: string;
4
+ ng: any;
5
+ zorro: any;
6
+ date: any;
7
+ yelon: any;
8
+ }
9
+ export declare const YUNZAI_LANGS: {
10
+ [key: string]: LangConfigData;
11
+ };
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@yelon/bis",
3
- "version": "15.0.0-beta.7",
3
+ "version": "15.1.0-077d885e",
4
4
  "author": "devcui<devcui@outlook.com>",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
7
  "ng-zorro-antd": "^15.0.3",
8
- "@yelon/acl": "^15.0.0-beta.7",
9
- "@yelon/auth": "^15.0.0-beta.7",
10
- "@yelon/theme": "^15.0.0-beta.7",
11
- "@yelon/mock": "^15.0.0-beta.7",
12
- "@yelon/cache": "^15.0.0-beta.7",
13
- "@yelon/chart": "^15.0.0-beta.7",
14
- "@yelon/form": "^15.0.0-beta.7",
15
- "@yelon/testing": "^15.0.0-beta.7",
16
- "@yelon/util": "^15.0.0-beta.7",
17
- "@yelon/bcs": "^15.0.0-beta.7",
8
+ "@yelon/acl": "^15.1.0-077d885e",
9
+ "@yelon/auth": "^15.1.0-077d885e",
10
+ "@yelon/theme": "^15.1.0-077d885e",
11
+ "@yelon/mock": "^15.1.0-077d885e",
12
+ "@yelon/cache": "^15.1.0-077d885e",
13
+ "@yelon/chart": "^15.1.0-077d885e",
14
+ "@yelon/form": "^15.1.0-077d885e",
15
+ "@yelon/testing": "^15.1.0-077d885e",
16
+ "@yelon/util": "^15.1.0-077d885e",
17
+ "@yelon/bcs": "^15.1.0-077d885e",
18
18
  "tslib": "^2.3.0"
19
19
  },
20
20
  "module": "fesm2015/bis.mjs",