@yelon/bis 18.2.0 → 19.0.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.
- package/LICENSE +21 -21
- package/fesm2022/bis.mjs +63 -57
- package/fesm2022/bis.mjs.map +1 -1
- package/fesm2022/config.mjs.map +1 -1
- package/fesm2022/layout.mjs +70 -74
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/yunzai-widgets.mjs +92 -102
- package/fesm2022/yunzai-widgets.mjs.map +1 -1
- package/layout/layout-basic.component.d.ts +1 -2
- package/layout/style/layout-website-01.less +1 -0
- package/package.json +12 -20
- package/src/helper.d.ts +1 -2
- package/src/refresh-token.d.ts +1 -2
- package/src/website/layout-website-01.component.d.ts +4 -5
- package/src/website/layout-website-02.component.d.ts +6 -7
- package/src/yunzai-analysis-addon.guard.d.ts +1 -2
- package/esm2022/bis.mjs +0 -5
- package/esm2022/config/bis.config.mjs +0 -15
- package/esm2022/config/config.mjs +0 -5
- package/esm2022/config/public_api.mjs +0 -2
- package/esm2022/layout/layout-basic.component.mjs +0 -518
- package/esm2022/layout/layout-nav-application.component.mjs +0 -372
- package/esm2022/layout/layout-nav-group.component.mjs +0 -166
- package/esm2022/layout/layout-nav-tile.component.mjs +0 -15
- package/esm2022/layout/layout.mjs +0 -5
- package/esm2022/layout/layout.module.mjs +0 -54
- package/esm2022/layout/public_api.mjs +0 -6
- package/esm2022/public_api.mjs +0 -11
- package/esm2022/src/bis.module.mjs +0 -17
- package/esm2022/src/helper.mjs +0 -45
- package/esm2022/src/provide.mjs +0 -8
- package/esm2022/src/refresh-token.mjs +0 -79
- package/esm2022/src/startup.service.mjs +0 -205
- package/esm2022/src/website/layout-website-01.component.mjs +0 -173
- package/esm2022/src/website/layout-website-02.component.mjs +0 -204
- package/esm2022/src/yunzai-act.guard.mjs +0 -88
- package/esm2022/src/yunzai-analysis-addon.guard.mjs +0 -99
- package/esm2022/src/yunzai-default.interceptor.mjs +0 -63
- package/esm2022/yunzai-widgets/public_api.mjs +0 -7
- package/esm2022/yunzai-widgets/yunzai-clear-storage.component.mjs +0 -47
- package/esm2022/yunzai-widgets/yunzai-fullscreen.component.mjs +0 -47
- package/esm2022/yunzai-widgets/yunzai-i18n.component.mjs +0 -139
- package/esm2022/yunzai-widgets/yunzai-notify.component.mjs +0 -180
- package/esm2022/yunzai-widgets/yunzai-user.component.mjs +0 -120
- package/esm2022/yunzai-widgets/yunzai-widget.module.mjs +0 -62
- package/esm2022/yunzai-widgets/yunzai-widgets.mjs +0 -5
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017-present yunzai<yunzai-bot@outlook.com>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-present yunzai<yunzai-bot@outlook.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/fesm2022/bis.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgModule, importProvidersFrom, makeEnvironmentProviders, inject,
|
|
2
|
+
import { NgModule, importProvidersFrom, makeEnvironmentProviders, inject, Injector, APP_INITIALIZER, Injectable, Inject, Input, Component } from '@angular/core';
|
|
3
3
|
import { YunzaiLayoutModule } from '@yelon/bis/layout';
|
|
4
4
|
import { YunzaiWidgetsModule } from '@yelon/bis/yunzai-widgets';
|
|
5
5
|
import * as i2 from '@angular/router';
|
|
@@ -24,11 +24,11 @@ import * as i4 from 'ng-zorro-antd/avatar';
|
|
|
24
24
|
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
|
|
25
25
|
|
|
26
26
|
class BisModule {
|
|
27
|
-
static
|
|
28
|
-
static
|
|
29
|
-
static
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: BisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
28
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: BisModule, imports: [YunzaiLayoutModule, YunzaiWidgetsModule], exports: [YunzaiLayoutModule, YunzaiWidgetsModule] });
|
|
29
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: BisModule, imports: [YunzaiLayoutModule, YunzaiWidgetsModule, YunzaiLayoutModule, YunzaiWidgetsModule] });
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: BisModule, decorators: [{
|
|
32
32
|
type: NgModule,
|
|
33
33
|
args: [{
|
|
34
34
|
imports: [YunzaiLayoutModule, YunzaiWidgetsModule],
|
|
@@ -222,18 +222,16 @@ function provideYunzaiStartup() {
|
|
|
222
222
|
];
|
|
223
223
|
}
|
|
224
224
|
class YunzaiStartupService {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
this.configService = inject(YunzaiConfigService);
|
|
236
|
-
}
|
|
225
|
+
config = mergeBisConfig(inject(YunzaiConfigService));
|
|
226
|
+
menuService = inject(MenuService);
|
|
227
|
+
aclService = inject(ACLService);
|
|
228
|
+
titleService = inject(TitleService);
|
|
229
|
+
tokenService = inject(YA_SERVICE_TOKEN);
|
|
230
|
+
httpClient = inject(HttpClient);
|
|
231
|
+
settingService = inject(SettingsService);
|
|
232
|
+
i18n = inject(YUNZAI_I18N_TOKEN);
|
|
233
|
+
win = inject(WINDOW);
|
|
234
|
+
configService = inject(YunzaiConfigService);
|
|
237
235
|
load(param) {
|
|
238
236
|
let defaultLang = this.settingService.layout.lang || this.i18n.defaultLang || 'zh-CN';
|
|
239
237
|
const [setTenant] = useLocalStorageTenant();
|
|
@@ -366,10 +364,10 @@ class YunzaiStartupService {
|
|
|
366
364
|
}));
|
|
367
365
|
}
|
|
368
366
|
}
|
|
369
|
-
static
|
|
370
|
-
static
|
|
367
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiStartupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
368
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiStartupService });
|
|
371
369
|
}
|
|
372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiStartupService, decorators: [{
|
|
373
371
|
type: Injectable
|
|
374
372
|
}] });
|
|
375
373
|
function mapYzSideToYelonMenu(menus) {
|
|
@@ -407,15 +405,19 @@ function generateAbility(menus, abilities, prefix) {
|
|
|
407
405
|
}
|
|
408
406
|
|
|
409
407
|
class YunzaiAnalysisAddonGuardService {
|
|
408
|
+
configService;
|
|
409
|
+
pathToRegexp;
|
|
410
|
+
win;
|
|
411
|
+
tokenService;
|
|
412
|
+
bis = BUSINESS_DEFAULT_CONFIG;
|
|
413
|
+
menus = [];
|
|
414
|
+
links = [];
|
|
415
|
+
value = {};
|
|
410
416
|
constructor(configService, pathToRegexp, win, tokenService) {
|
|
411
417
|
this.configService = configService;
|
|
412
418
|
this.pathToRegexp = pathToRegexp;
|
|
413
419
|
this.win = win;
|
|
414
420
|
this.tokenService = tokenService;
|
|
415
|
-
this.bis = BUSINESS_DEFAULT_CONFIG;
|
|
416
|
-
this.menus = [];
|
|
417
|
-
this.links = [];
|
|
418
|
-
this.value = {};
|
|
419
421
|
this.bis = mergeBisConfig(this.configService);
|
|
420
422
|
const [, getUser] = useLocalStorageUser();
|
|
421
423
|
const user = getUser();
|
|
@@ -481,10 +483,10 @@ class YunzaiAnalysisAddonGuardService {
|
|
|
481
483
|
}
|
|
482
484
|
});
|
|
483
485
|
}
|
|
484
|
-
static
|
|
485
|
-
static
|
|
486
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiAnalysisAddonGuardService, deps: [{ token: i1.YunzaiConfigService }, { token: i1.PathToRegexpService }, { token: WINDOW }, { token: YA_SERVICE_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
487
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiAnalysisAddonGuardService, providedIn: 'root' });
|
|
486
488
|
}
|
|
487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiAnalysisAddonGuardService, decorators: [{
|
|
488
490
|
type: Injectable,
|
|
489
491
|
args: [{
|
|
490
492
|
providedIn: 'root'
|
|
@@ -500,13 +502,16 @@ const analysisAddonCanActive = (_, state) => inject(YunzaiAnalysisAddonGuardServ
|
|
|
500
502
|
const analysisAddonCanActiveChild = (_, state) => inject(YunzaiAnalysisAddonGuardService).process(state.url);
|
|
501
503
|
|
|
502
504
|
class ActGuardService {
|
|
505
|
+
configService;
|
|
506
|
+
pathToRegexp;
|
|
507
|
+
router;
|
|
508
|
+
bis = BUSINESS_DEFAULT_CONFIG;
|
|
509
|
+
menus = [];
|
|
510
|
+
links = [];
|
|
503
511
|
constructor(configService, pathToRegexp, router) {
|
|
504
512
|
this.configService = configService;
|
|
505
513
|
this.pathToRegexp = pathToRegexp;
|
|
506
514
|
this.router = router;
|
|
507
|
-
this.bis = BUSINESS_DEFAULT_CONFIG;
|
|
508
|
-
this.menus = [];
|
|
509
|
-
this.links = [];
|
|
510
515
|
log('act: ');
|
|
511
516
|
this.bis = mergeBisConfig(this.configService);
|
|
512
517
|
log('act: config ', this.bis);
|
|
@@ -571,10 +576,10 @@ class ActGuardService {
|
|
|
571
576
|
}
|
|
572
577
|
});
|
|
573
578
|
}
|
|
574
|
-
static
|
|
575
|
-
static
|
|
579
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ActGuardService, deps: [{ token: i1.YunzaiConfigService }, { token: i1.PathToRegexpService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
580
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ActGuardService, providedIn: 'root' });
|
|
576
581
|
}
|
|
577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: ActGuardService, decorators: [{
|
|
578
583
|
type: Injectable,
|
|
579
584
|
args: [{ providedIn: 'root' }]
|
|
580
585
|
}], ctorParameters: () => [{ type: i1.YunzaiConfigService }, { type: i1.PathToRegexpService }, { type: i2.Router }] });
|
|
@@ -582,14 +587,14 @@ const actGuardCanActive = (_, state) => inject(ActGuardService).process(state.ur
|
|
|
582
587
|
const actGuardCanActiveChild = (_, state) => inject(ActGuardService).process(state.url);
|
|
583
588
|
|
|
584
589
|
class YunzaiLayoutWebsite01Component {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
590
|
+
logoSrc;
|
|
591
|
+
logoAlt = 'logo';
|
|
592
|
+
slogan = '';
|
|
593
|
+
contentTpl;
|
|
594
|
+
tokenService = inject(YA_SERVICE_TOKEN);
|
|
595
|
+
configService = inject(YunzaiConfigService);
|
|
596
|
+
startupSrv = inject(YunzaiStartupService);
|
|
597
|
+
win = inject(WINDOW);
|
|
593
598
|
get _logoSrc() {
|
|
594
599
|
return this.logoSrc;
|
|
595
600
|
}
|
|
@@ -625,8 +630,8 @@ class YunzaiLayoutWebsite01Component {
|
|
|
625
630
|
if (url)
|
|
626
631
|
this.win.location.href = url;
|
|
627
632
|
}
|
|
628
|
-
static
|
|
629
|
-
static
|
|
633
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutWebsite01Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
634
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.5", type: YunzaiLayoutWebsite01Component, isStandalone: true, selector: "yunzai-layout-website-01", inputs: { logoSrc: "logoSrc", logoAlt: "logoAlt", slogan: "slogan", contentTpl: "contentTpl" }, ngImport: i0, template: `
|
|
630
635
|
<div class="yz-layout-website-01">
|
|
631
636
|
<div class="yz-layout-website-01-nav__user">
|
|
632
637
|
@if (isLogin) {
|
|
@@ -673,9 +678,9 @@ class YunzaiLayoutWebsite01Component {
|
|
|
673
678
|
<router-outlet />
|
|
674
679
|
</main>
|
|
675
680
|
</div>
|
|
676
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzI18nModule }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i2$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i2$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
681
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzI18nModule }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i2$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i2$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
677
682
|
}
|
|
678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutWebsite01Component, decorators: [{
|
|
679
684
|
type: Component,
|
|
680
685
|
args: [{
|
|
681
686
|
selector: 'yunzai-layout-website-01',
|
|
@@ -741,14 +746,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
741
746
|
}] } });
|
|
742
747
|
|
|
743
748
|
class YunzaiLayoutWebsite02Component {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
749
|
+
logoSrc;
|
|
750
|
+
logoAlt = 'logo';
|
|
751
|
+
userMenuShow = false;
|
|
752
|
+
slogan;
|
|
753
|
+
contentTpl;
|
|
754
|
+
tokenService = inject(YA_SERVICE_TOKEN);
|
|
755
|
+
configService = inject(YunzaiConfigService);
|
|
756
|
+
startupSrv = inject(YunzaiStartupService);
|
|
757
|
+
win = inject(WINDOW);
|
|
752
758
|
get _logoSrc() {
|
|
753
759
|
return this.logoSrc;
|
|
754
760
|
}
|
|
@@ -793,8 +799,8 @@ class YunzaiLayoutWebsite02Component {
|
|
|
793
799
|
if (url)
|
|
794
800
|
this.win.location.href = url;
|
|
795
801
|
}
|
|
796
|
-
static
|
|
797
|
-
static
|
|
802
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutWebsite02Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
803
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.5", type: YunzaiLayoutWebsite02Component, isStandalone: true, selector: "yunzai-layout-website-02", inputs: { logoSrc: "logoSrc", logoAlt: "logoAlt", userMenuShow: "userMenuShow", slogan: "slogan", contentTpl: "contentTpl" }, ngImport: i0, template: `
|
|
798
804
|
<div class="yz-layout-website-02">
|
|
799
805
|
<header class="yz-layout-website-02-nav">
|
|
800
806
|
<div class="yz-layout-website-02-inner-content">
|
|
@@ -845,9 +851,9 @@ class YunzaiLayoutWebsite02Component {
|
|
|
845
851
|
<router-outlet />
|
|
846
852
|
</main>
|
|
847
853
|
</div>
|
|
848
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzI18nModule }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i2$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i2$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzAvatarModule }, { kind: "component", type: i4.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }] });
|
|
854
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzI18nModule }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i1$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i1$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i2$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i2$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i2$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzAvatarModule }, { kind: "component", type: i4.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }] });
|
|
849
855
|
}
|
|
850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: YunzaiLayoutWebsite02Component, decorators: [{
|
|
851
857
|
type: Component,
|
|
852
858
|
args: [{
|
|
853
859
|
selector: 'yunzai-layout-website-02',
|