@yelon/bis 17.2.1 → 17.2.2

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 (109) hide show
  1. package/config/index.d.ts +5 -0
  2. package/config/public_api.d.ts +1 -0
  3. package/esm2022/bis.mjs +2 -2
  4. package/esm2022/{layout → config}/bis.config.mjs +1 -1
  5. package/esm2022/config/config.mjs +5 -0
  6. package/esm2022/config/public_api.mjs +2 -0
  7. package/esm2022/layout/layout-basic.component.mjs +376 -0
  8. package/esm2022/layout/layout-nav-application.component.mjs +368 -0
  9. package/esm2022/layout/layout-nav-group.component.mjs +159 -0
  10. package/esm2022/layout/layout-nav-tile.component.mjs +15 -0
  11. package/esm2022/layout/layout.module.mjs +54 -0
  12. package/esm2022/layout/public_api.mjs +6 -14
  13. package/esm2022/public_api.mjs +9 -2
  14. package/esm2022/src/bis.module.mjs +17 -0
  15. package/esm2022/src/helper.mjs +45 -0
  16. package/esm2022/src/provide.mjs +8 -0
  17. package/esm2022/src/refresh-token.mjs +79 -0
  18. package/esm2022/src/startup.service.mjs +182 -0
  19. package/esm2022/src/yunzai-act.guard.mjs +88 -0
  20. package/esm2022/src/yunzai-analysis-addon.guard.mjs +99 -0
  21. package/esm2022/src/yunzai-default.interceptor.mjs +63 -0
  22. package/esm2022/yunzai-widgets/public_api.mjs +7 -0
  23. package/esm2022/yunzai-widgets/yunzai-clear-storage.component.mjs +47 -0
  24. package/esm2022/yunzai-widgets/yunzai-fullscreen.component.mjs +47 -0
  25. package/esm2022/yunzai-widgets/yunzai-i18n.component.mjs +139 -0
  26. package/esm2022/yunzai-widgets/yunzai-notify.component.mjs +179 -0
  27. package/esm2022/yunzai-widgets/yunzai-user.component.mjs +119 -0
  28. package/esm2022/yunzai-widgets/yunzai-widget.module.mjs +62 -0
  29. package/esm2022/yunzai-widgets/yunzai-widgets.mjs +5 -0
  30. package/fesm2022/bis.mjs +552 -1
  31. package/fesm2022/bis.mjs.map +1 -1
  32. package/fesm2022/config.mjs +21 -0
  33. package/fesm2022/config.mjs.map +1 -0
  34. package/fesm2022/layout.mjs +395 -2781
  35. package/fesm2022/layout.mjs.map +1 -1
  36. package/fesm2022/yunzai-widgets.mjs +561 -0
  37. package/fesm2022/yunzai-widgets.mjs.map +1 -0
  38. package/index.d.ts +4 -0
  39. package/layout/{layout-basic/layout-basic.component.d.ts → layout-basic.component.d.ts} +12 -8
  40. package/layout/layout-nav-application.component.d.ts +26 -0
  41. package/layout/layout-nav-group.component.d.ts +13 -0
  42. package/layout/layout-nav-tile.component.d.ts +5 -0
  43. package/layout/layout.module.d.ts +18 -0
  44. package/layout/public_api.d.ts +5 -13
  45. package/package.json +40 -11
  46. package/public_api.d.ts +8 -2
  47. package/src/bis.module.d.ts +8 -0
  48. package/src/helper.d.ts +16 -0
  49. package/src/provide.d.ts +2 -0
  50. package/src/refresh-token.d.ts +6 -0
  51. package/src/startup.service.d.ts +22 -0
  52. package/src/yunzai-default.interceptor.d.ts +2 -0
  53. package/yunzai-widgets/index.d.ts +5 -0
  54. package/{layout/widgets/index.d.ts → yunzai-widgets/public_api.d.ts} +2 -2
  55. package/yunzai-widgets/yunzai-clear-storage.component.d.ts +8 -0
  56. package/yunzai-widgets/yunzai-fullscreen.component.d.ts +8 -0
  57. package/yunzai-widgets/yunzai-i18n.component.d.ts +19 -0
  58. package/yunzai-widgets/yunzai-notify.component.d.ts +24 -0
  59. package/yunzai-widgets/yunzai-user.component.d.ts +21 -0
  60. package/yunzai-widgets/yunzai-widget.module.d.ts +18 -0
  61. package/README.md +0 -23
  62. package/esm2022/index.mjs +0 -2
  63. package/esm2022/layout/html-names.mjs +0 -33
  64. package/esm2022/layout/icon/style-icons.mjs +0 -796
  65. package/esm2022/layout/layout-basic/index.mjs +0 -3
  66. package/esm2022/layout/layout-basic/interface.mjs +0 -2
  67. package/esm2022/layout/layout-basic/layout-basic.component.mjs +0 -368
  68. package/esm2022/layout/layout-nav/index.mjs +0 -4
  69. package/esm2022/layout/layout-nav/layout-nav-application.component.mjs +0 -382
  70. package/esm2022/layout/layout-nav/layout-nav-group.component.mjs +0 -122
  71. package/esm2022/layout/layout-nav/layout-nav-tile.component.mjs +0 -15
  72. package/esm2022/layout/widgets/index.mjs +0 -7
  73. package/esm2022/layout/widgets/yunzai-clear-storage.component.mjs +0 -44
  74. package/esm2022/layout/widgets/yunzai-fullscreen.component.mjs +0 -44
  75. package/esm2022/layout/widgets/yunzai-i18n.component.mjs +0 -140
  76. package/esm2022/layout/widgets/yunzai-notify.component.mjs +0 -185
  77. package/esm2022/layout/widgets/yunzai-theme-btn.component.mjs +0 -200
  78. package/esm2022/layout/widgets/yunzai-user.component.mjs +0 -129
  79. package/esm2022/layout/yunzai-act.guard.mjs +0 -88
  80. package/esm2022/layout/yunzai-analysis-addon.guard.mjs +0 -100
  81. package/esm2022/layout/yunzai-auth.service.mjs +0 -108
  82. package/esm2022/layout/yunzai-default.interceptor.mjs +0 -201
  83. package/esm2022/layout/yunzai-i18n.service.mjs +0 -107
  84. package/esm2022/layout/yunzai-lang.mjs +0 -114
  85. package/esm2022/layout/yunzai-layout.module.mjs +0 -118
  86. package/esm2022/layout/yunzai-startup.service.mjs +0 -152
  87. package/layout/html-names.d.ts +0 -31
  88. package/layout/icon/style-icons.d.ts +0 -1
  89. package/layout/layout-basic/index.d.ts +0 -2
  90. package/layout/layout-basic/interface.d.ts +0 -8
  91. package/layout/layout-nav/index.d.ts +0 -3
  92. package/layout/layout-nav/layout-nav-application.component.d.ts +0 -32
  93. package/layout/layout-nav/layout-nav-group.component.d.ts +0 -16
  94. package/layout/layout-nav/layout-nav-tile.component.d.ts +0 -6
  95. package/layout/widgets/yunzai-clear-storage.component.d.ts +0 -11
  96. package/layout/widgets/yunzai-fullscreen.component.d.ts +0 -8
  97. package/layout/widgets/yunzai-i18n.component.d.ts +0 -22
  98. package/layout/widgets/yunzai-notify.component.d.ts +0 -30
  99. package/layout/widgets/yunzai-theme-btn.component.d.ts +0 -32
  100. package/layout/widgets/yunzai-user.component.d.ts +0 -26
  101. package/layout/yunzai-auth.service.d.ts +0 -19
  102. package/layout/yunzai-default.interceptor.d.ts +0 -28
  103. package/layout/yunzai-i18n.service.d.ts +0 -27
  104. package/layout/yunzai-lang.d.ts +0 -12
  105. package/layout/yunzai-layout.module.d.ts +0 -30
  106. package/layout/yunzai-startup.service.d.ts +0 -34
  107. /package/{layout → config}/bis.config.d.ts +0 -0
  108. /package/{layout → src}/yunzai-act.guard.d.ts +0 -0
  109. /package/{layout → src}/yunzai-analysis-addon.guard.d.ts +0 -0
@@ -1,13 +1,18 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { StompService } from '@yelon/socket';
3
- import { LayoutDefaultOptions, LayoutDisplayService } from '@yelon/theme/layout-default';
4
- import { NavType, LayoutBasicAside } from '@yelon/util';
2
+ import { LayoutDefaultOptions } from '@yelon/theme/layout-default';
3
+ import { LayoutBasicAside, LayoutBasicDisplay, NavType } from '@yelon/util';
5
4
  import { NzSafeAny } from 'ng-zorro-antd/core/types';
6
5
  import * as i0 from "@angular/core";
6
+ export interface LayoutBasicState {
7
+ options: LayoutDefaultOptions;
8
+ aside: LayoutBasicAside;
9
+ display: LayoutBasicDisplay;
10
+ navType: NavType;
11
+ }
7
12
  export declare class YunzaiLayoutBasicComponent implements OnInit {
8
- private layoutDisplayService;
9
- private stompService;
10
- private win;
13
+ private readonly stomp;
14
+ private readonly win;
15
+ private readonly layoutDisplayService;
11
16
  NavType: typeof NavType;
12
17
  private state;
13
18
  get options(): LayoutDefaultOptions;
@@ -15,7 +20,6 @@ export declare class YunzaiLayoutBasicComponent implements OnInit {
15
20
  get aside(): LayoutBasicAside;
16
21
  get displayReusetab(): boolean;
17
22
  get reusetabCSS(): NzSafeAny;
18
- constructor(layoutDisplayService: LayoutDisplayService, stompService: StompService, win: typeof window);
19
23
  ngOnInit(): void;
20
24
  initFavicon(): void;
21
25
  initAside(): void;
@@ -25,5 +29,5 @@ export declare class YunzaiLayoutBasicComponent implements OnInit {
25
29
  onNavTypeChange(type: NavType): void;
26
30
  addLayoutDisplayListener(): void;
27
31
  static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiLayoutBasicComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiLayoutBasicComponent, "yz-layout-basic", never, {}, {}, never, never, false, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiLayoutBasicComponent, "yunzai-layout-basic", never, {}, {}, never, never, true, never>;
29
33
  }
@@ -0,0 +1,26 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { LayoutNavApplicationState, YunzaiNavTopic } from '@yelon/util';
3
+ import * as i0 from "@angular/core";
4
+ export declare class YunzaiNavApplicationComponent implements OnInit, OnDestroy {
5
+ private readonly config;
6
+ private readonly http;
7
+ private readonly win;
8
+ private readonly i18n;
9
+ private readonly destroy$;
10
+ state: LayoutNavApplicationState;
11
+ get showAllMenu(): boolean;
12
+ get showMineMenu(): boolean;
13
+ ngOnInit(): void;
14
+ fetchAllTopic(): void;
15
+ attachNav(type: 'all' | 'mine' | 'other', topic?: YunzaiNavTopic): void;
16
+ clearSearch(): void;
17
+ displayAllNav(): void;
18
+ displayMineNav(): void;
19
+ displayOtherNav(topic: YunzaiNavTopic): void;
20
+ diffChange(flag?: boolean): void;
21
+ open(topic: YunzaiNavTopic): void;
22
+ onSearch(): void;
23
+ ngOnDestroy(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiNavApplicationComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiNavApplicationComponent, "yunzai-layout-nav-application", never, {}, {}, never, never, true, never>;
26
+ }
@@ -0,0 +1,13 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { LayoutNavGroupState, YunzaiNavTopic } from '@yelon/util';
3
+ import * as i0 from "@angular/core";
4
+ export declare class YunzaiLayoutNavGroupComponent implements OnInit, OnDestroy {
5
+ private readonly http;
6
+ private destroy$;
7
+ state: LayoutNavGroupState;
8
+ ngOnInit(): void;
9
+ open(topic: YunzaiNavTopic): void;
10
+ ngOnDestroy(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiLayoutNavGroupComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiLayoutNavGroupComponent, "yunzai-layout-nav-group", never, {}, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class YunzaiLayoutNavTileComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiLayoutNavTileComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiLayoutNavTileComponent, "yunzai-layout-nav-tile", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@yelon/theme";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "ng-zorro-antd/form";
5
+ import * as i4 from "ng-zorro-antd/input";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "ng-zorro-antd/grid";
8
+ import * as i7 from "ng-zorro-antd/icon";
9
+ import * as i8 from "ng-zorro-antd/dropdown";
10
+ import * as i9 from "ng-zorro-antd/tabs";
11
+ import * as i10 from "./layout-nav-tile.component";
12
+ import * as i11 from "./layout-nav-group.component";
13
+ import * as i12 from "./layout-basic.component";
14
+ export declare class YunzaiLayoutModule {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiLayoutModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<YunzaiLayoutModule, never, [typeof i1.I18nPipe, typeof i2.FormsModule, typeof i3.NzFormModule, typeof i4.NzInputModule, typeof i5.CommonModule, typeof i6.NzGridModule, typeof i7.NzIconModule, typeof i8.NzDropDownModule, typeof i9.NzTabsModule, typeof i10.YunzaiLayoutNavTileComponent, typeof i11.YunzaiLayoutNavGroupComponent, typeof i12.YunzaiLayoutBasicComponent], [typeof i10.YunzaiLayoutNavTileComponent, typeof i11.YunzaiLayoutNavGroupComponent, typeof i12.YunzaiLayoutBasicComponent]>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<YunzaiLayoutModule>;
18
+ }
@@ -1,13 +1,5 @@
1
- export * from './layout-basic';
2
- export * from './layout-nav';
3
- export * from './widgets';
4
- export * from './bis.config';
5
- export * from './yunzai-act.guard';
6
- export * from './yunzai-auth.service';
7
- export * from './yunzai-default.interceptor';
8
- export * from './yunzai-i18n.service';
9
- export * from './yunzai-lang';
10
- export * from './yunzai-layout.module';
11
- export * from './yunzai-startup.service';
12
- export * from './html-names';
13
- export * from './yunzai-analysis-addon.guard';
1
+ export * from './layout.module';
2
+ export * from './layout-basic.component';
3
+ export * from './layout-nav-application.component';
4
+ export * from './layout-nav-group.component';
5
+ export * from './layout-nav-tile.component';
package/package.json CHANGED
@@ -1,20 +1,37 @@
1
1
  {
2
2
  "name": "@yelon/bis",
3
- "version": "17.2.1",
3
+ "version": "17.2.2",
4
4
  "author": "devcui<devcui@outlook.com>",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/hbyunzai/yelon.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/hbyunzai/ng-yunzai/issues"
12
+ },
13
+ "homepage": "https://ng.yunzainfo.com",
14
+ "keywords": [
15
+ "yelon",
16
+ "ng-yunzai",
17
+ "yunzai",
18
+ "antd",
19
+ "ng-zorro-antd",
20
+ "angular",
21
+ "component"
22
+ ],
6
23
  "dependencies": {
7
24
  "ng-zorro-antd": "^17.2.0",
8
- "@yelon/acl": "^17.2.1",
9
- "@yelon/auth": "^17.2.1",
10
- "@yelon/theme": "^17.2.1",
11
- "@yelon/mock": "^17.2.1",
12
- "@yelon/cache": "^17.2.1",
13
- "@yelon/chart": "^17.2.1",
14
- "@yelon/form": "^17.2.1",
15
- "@yelon/testing": "^17.2.1",
16
- "@yelon/util": "^17.2.1",
17
- "@yelon/bcs": "^17.2.1",
25
+ "@yelon/acl": "^17.2.2",
26
+ "@yelon/auth": "^17.2.2",
27
+ "@yelon/theme": "^17.2.2",
28
+ "@yelon/mock": "^17.2.2",
29
+ "@yelon/cache": "^17.2.2",
30
+ "@yelon/chart": "^17.2.2",
31
+ "@yelon/form": "^17.2.2",
32
+ "@yelon/testing": "^17.2.2",
33
+ "@yelon/util": "^17.2.2",
34
+ "@yelon/bcs": "^17.2.2",
18
35
  "tslib": "^2.3.0"
19
36
  },
20
37
  "module": "fesm2022/bis.mjs",
@@ -29,11 +46,23 @@
29
46
  "esm": "./esm2022/bis.mjs",
30
47
  "default": "./fesm2022/bis.mjs"
31
48
  },
49
+ "./config": {
50
+ "types": "./config/index.d.ts",
51
+ "esm2022": "./esm2022/config/config.mjs",
52
+ "esm": "./esm2022/config/config.mjs",
53
+ "default": "./fesm2022/config.mjs"
54
+ },
32
55
  "./layout": {
33
56
  "types": "./layout/index.d.ts",
34
57
  "esm2022": "./esm2022/layout/layout.mjs",
35
58
  "esm": "./esm2022/layout/layout.mjs",
36
59
  "default": "./fesm2022/layout.mjs"
60
+ },
61
+ "./yunzai-widgets": {
62
+ "types": "./yunzai-widgets/index.d.ts",
63
+ "esm2022": "./esm2022/yunzai-widgets/yunzai-widgets.mjs",
64
+ "esm": "./esm2022/yunzai-widgets/yunzai-widgets.mjs",
65
+ "default": "./fesm2022/yunzai-widgets.mjs"
37
66
  }
38
67
  },
39
68
  "sideEffects": false
package/public_api.d.ts CHANGED
@@ -1,2 +1,8 @@
1
- declare const _default: undefined;
2
- export default _default;
1
+ export * from './src/provide';
2
+ export * from './src/bis.module';
3
+ export * from './src/helper';
4
+ export * from './src/yunzai-default.interceptor';
5
+ export * from './src/refresh-token';
6
+ export * from './src/startup.service';
7
+ export * from './src/yunzai-analysis-addon.guard';
8
+ export * from './src/yunzai-act.guard';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@yelon/bis/layout";
3
+ import * as i2 from "@yelon/bis/yunzai-widgets";
4
+ export declare class BisModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<BisModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BisModule, never, [typeof i1.YunzaiLayoutModule, typeof i2.YunzaiWidgetsModule], [typeof i1.YunzaiLayoutModule, typeof i2.YunzaiWidgetsModule]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<BisModule>;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpHeaders, HttpResponseBase } from '@angular/common/http';
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
+ };
10
+ export declare function checkStatus(injector: Injector, ev: HttpResponseBase): void;
11
+ export interface ReThrowHttpError {
12
+ body: NzSafeAny;
13
+ _throw: true;
14
+ }
15
+ export declare function goTo(injector: Injector, url: string): void;
16
+ export declare function toLogin(injector: Injector): void;
@@ -0,0 +1,2 @@
1
+ import { EnvironmentProviders } from '@angular/core';
2
+ export declare function provideYunzaiBis(): EnvironmentProviders;
@@ -0,0 +1,6 @@
1
+ import { HttpHandlerFn, HttpRequest, HttpResponseBase } from '@angular/common/http';
2
+ import { Injector, Provider } from '@angular/core';
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>;
6
+ export declare function provideYunzaiBindAuthRefresh(): Provider[];
@@ -0,0 +1,22 @@
1
+ import { Provider } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ITokenModel } from '@yelon/auth';
4
+ import { YunzaiMenu } from '@yelon/util';
5
+ import * as i0 from "@angular/core";
6
+ export declare function provideYunzaiStartup(): Provider[];
7
+ export declare class YunzaiStartupService {
8
+ private config;
9
+ private menuService;
10
+ private aclService;
11
+ private titleService;
12
+ private tokenService;
13
+ private httpClient;
14
+ private settingService;
15
+ private i18n;
16
+ load(): Observable<void>;
17
+ token(): Observable<ITokenModel>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiStartupService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<YunzaiStartupService>;
20
+ }
21
+ export declare function mapYzSideToYelonMenu(menus: YunzaiMenu[]): void;
22
+ export declare function generateAbility(menus: YunzaiMenu[], abilities: string[], prefix: string): void;
@@ -0,0 +1,2 @@
1
+ import { HttpInterceptorFn } from '@angular/common/http';
2
+ export declare const yunzaiDefaultInterceptor: HttpInterceptorFn;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@yelon/bis/yunzai-widgets" />
5
+ export * from './public_api';
@@ -1,6 +1,6 @@
1
1
  export * from './yunzai-clear-storage.component';
2
2
  export * from './yunzai-fullscreen.component';
3
- export * from './yunzai-i18n.component';
4
3
  export * from './yunzai-notify.component';
5
- export * from './yunzai-theme-btn.component';
4
+ export * from './yunzai-i18n.component';
6
5
  export * from './yunzai-user.component';
6
+ export * from './yunzai-widget.module';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class YunzaiHeaderClearStorageComponent {
3
+ private readonly modalSrv;
4
+ private readonly messageSrv;
5
+ _click(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiHeaderClearStorageComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiHeaderClearStorageComponent, "yunzai-header-clear-storage", never, {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class YunzaiHeaderFullScreenComponent {
3
+ status: boolean;
4
+ _resize(): void;
5
+ _click(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiHeaderFullScreenComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiHeaderFullScreenComponent, "yunzai-header-fullscreen", never, {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,19 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { YunzaiI18NType } from '@yelon/theme';
3
+ import * as i0 from "@angular/core";
4
+ export declare class YunzaiHeaderI18nComponent implements OnInit, OnDestroy {
5
+ private readonly settings;
6
+ private readonly i18n;
7
+ private readonly doc;
8
+ langs: YunzaiI18NType[];
9
+ private destroy$;
10
+ /** Whether to display language text */
11
+ showLangText: boolean;
12
+ get curLangCode(): string;
13
+ ngOnInit(): void;
14
+ change(lang: string): void;
15
+ ngOnDestroy(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiHeaderI18nComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiHeaderI18nComponent, "yunzai-header-i18n", never, { "showLangText": { "alias": "showLangText"; "required": false; }; }, {}, never, never, true, never>;
18
+ static ngAcceptInputType_showLangText: unknown;
19
+ }
@@ -0,0 +1,24 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { Observable, Subscription } from 'rxjs';
3
+ import { NoticeIconSelect, NoticeItem } from '@yelon/abc/notice-icon';
4
+ import * as i0 from "@angular/core";
5
+ export declare class YunzaiHeaderNotifyComponent implements OnInit, OnDestroy {
6
+ private readonly i18n;
7
+ private readonly msg;
8
+ private readonly nzI18n;
9
+ private readonly cdr;
10
+ private readonly http;
11
+ loading: boolean;
12
+ count: number;
13
+ subs: Subscription[];
14
+ data: NoticeItem[];
15
+ ngOnInit(): void;
16
+ loadData(): void;
17
+ loadMessage(): Observable<void>;
18
+ loadTodo(): Observable<void>;
19
+ clear(type: string): void;
20
+ select(res: NoticeIconSelect): void;
21
+ ngOnDestroy(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiHeaderNotifyComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiHeaderNotifyComponent, "yunzai-header-notify", never, {}, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,21 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface UserLink {
4
+ icon: string;
5
+ name: string;
6
+ url: string;
7
+ }
8
+ export declare class YunzaiHeaderUserComponent implements OnInit {
9
+ private readonly msg;
10
+ private readonly tokenService;
11
+ private readonly configService;
12
+ private readonly config;
13
+ icon: string;
14
+ username: string;
15
+ menus: UserLink[];
16
+ ngOnInit(): void;
17
+ logout(): void;
18
+ to(href: string): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiHeaderUserComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<YunzaiHeaderUserComponent, "yunzai-header-user", never, {}, {}, never, never, true, never>;
21
+ }
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "ng-zorro-antd/avatar";
3
+ import * as i2 from "@angular/router";
4
+ import * as i3 from "@yelon/abc/notice-icon";
5
+ import * as i4 from "ng-zorro-antd/dropdown";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "ng-zorro-antd/icon";
8
+ import * as i7 from "@yelon/theme";
9
+ import * as i8 from "./yunzai-clear-storage.component";
10
+ import * as i9 from "./yunzai-fullscreen.component";
11
+ import * as i10 from "./yunzai-notify.component";
12
+ import * as i11 from "./yunzai-i18n.component";
13
+ import * as i12 from "./yunzai-user.component";
14
+ export declare class YunzaiWidgetsModule {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<YunzaiWidgetsModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<YunzaiWidgetsModule, never, [typeof i1.NzAvatarModule, typeof i2.RouterModule, typeof i3.NoticeIconModule, typeof i4.NzDropDownModule, typeof i5.CommonModule, typeof i6.NzIconModule, typeof i7.I18nPipe, typeof i8.YunzaiHeaderClearStorageComponent, typeof i9.YunzaiHeaderFullScreenComponent, typeof i10.YunzaiHeaderNotifyComponent, typeof i11.YunzaiHeaderI18nComponent, typeof i12.YunzaiHeaderUserComponent], [typeof i8.YunzaiHeaderClearStorageComponent, typeof i9.YunzaiHeaderFullScreenComponent, typeof i10.YunzaiHeaderNotifyComponent, typeof i11.YunzaiHeaderI18nComponent, typeof i12.YunzaiHeaderUserComponent]>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<YunzaiWidgetsModule>;
18
+ }
package/README.md DELETED
@@ -1,23 +0,0 @@
1
- # @yelon/bis [![Build Status](https://dev.azure.com/hbyunzai/yelon/_apis/build/status/yelon-CI?branchName=master)](https://dev.azure.com/hbyunzai/yelon/_build/latest?definitionId=1&branchName=master) [![NPM version](https://img.shields.io/npm/v/@yelon/bis.svg?style=flat-square)](https://www.npmjs.com/package/@yelon/bis)
2
-
3
- A yunzai business module.
4
-
5
- ## Links
6
-
7
- + [Document](https://ng.yunzainfo.com/bis) ([Surge Mirror](https://ng-yunzai-doc.surge.sh/bis)
8
- + [@yelon Source](https://github.com/hbyunzai/yelon)
9
- + [DEMO](https://ng-yunzai.surge.sh) ([国内镜像](https://ng-yunzai.gitee.io/))
10
-
11
-
12
- ## Troubleshooting
13
-
14
- Please follow this guidelines when reporting bugs and feature requests:
15
-
16
- 1. Use [GitHub Issues](https://github.com/hbyunzai/yelon/issues) board to report bugs and feature requests (not our email address)
17
- 2. Please **always** write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.
18
-
19
- Thanks for understanding!
20
-
21
- ### License
22
-
23
- The MIT License (see the [LICENSE](https://github.com/hbyunzai/yelon/blob/master/LICENSE) file for the full text)
package/esm2022/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- export * from './public_api';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9iaXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
@@ -1,33 +0,0 @@
1
- // 埋点转换表
2
- export const HTML_NAMES_MAPPING = {
3
- _route_icon: '路由-图标',
4
- _route_link: '路由-跳转',
5
- _route_toggle: '路由-显示/隐藏',
6
- _route_group: '路由-分组',
7
- _route_user: '路由-用户头像',
8
- _route_backhome: '路由-返回首页',
9
- _nav_search: '导航-搜索',
10
- _nav_topic: '导航-主题',
11
- _nav_item: '导航-应用',
12
- _nav_notify: '导航-铃铛',
13
- _nav_msg: '导航-消息',
14
- _nav_todo: '导航-待办',
15
- _nav_notice: '导航-通知',
16
- _nav_clear_msg: '导航-清空消息',
17
- _nav_clear_todo: '导航-清空待办',
18
- _nav_clear_notice: '导航-清空通知',
19
- _nav_theme: '导航-主题',
20
- _nav_settings: '导航-设置',
21
- _nav_user: '导航-用户头像',
22
- _nav_lang: '导航-语言',
23
- _nav_logo: '导航-Logo',
24
- _nav_toggle: '导航-显示/隐藏',
25
- _nav_app: '导航-应用与服务',
26
- _reusetab: '多标签',
27
- _reusetab_refresh: '多标签-刷新',
28
- _reusetab_close: '多标签-关闭',
29
- _reusetab_closeOther: '多标签-关闭其他',
30
- _reusetab_closeRight: '多标签-关闭右侧',
31
- _reusetab_custom: '多标签-自定义'
32
- };
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC1uYW1lcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Jpcy9sYXlvdXQvaHRtbC1uYW1lcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxRQUFRO0FBQ1IsTUFBTSxDQUFDLE1BQU0sa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