@yelon/bis 16.3.9 → 16.4.4
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/bis.config.mjs +1 -1
- package/esm2022/layout/layout-basic/interface.mjs +1 -1
- package/esm2022/layout/layout-basic/layout-basic.component.mjs +31 -35
- package/esm2022/layout/layout-nav/layout-nav-application.component.mjs +50 -32
- package/esm2022/layout/layout-nav/layout-nav-group.component.mjs +3 -3
- package/esm2022/layout/layout-nav/layout-nav-tile.component.mjs +3 -3
- package/esm2022/layout/public_api.mjs +2 -3
- package/esm2022/layout/widgets/yunzai-i18n.component.mjs +3 -3
- package/esm2022/layout/widgets/yunzai-notify.component.mjs +6 -4
- package/esm2022/layout/widgets/yunzai-theme-btn.component.mjs +5 -5
- package/esm2022/layout/widgets/yunzai-user.component.mjs +4 -4
- package/esm2022/layout/yunzai-act.guard.mjs +26 -49
- package/esm2022/layout/yunzai-analysis-addon.guard.mjs +7 -6
- package/esm2022/layout/yunzai-default.interceptor.mjs +2 -2
- package/esm2022/layout/yunzai-i18n.service.mjs +2 -2
- package/esm2022/layout/yunzai-startup.service.mjs +3 -3
- package/fesm2022/layout.mjs +125 -150
- package/fesm2022/layout.mjs.map +1 -1
- package/layout/public_api.d.ts +1 -2
- package/layout/widgets/yunzai-i18n.component.d.ts +1 -1
- package/layout/yunzai-act.guard.d.ts +8 -8
- package/layout/yunzai-analysis-addon.guard.d.ts +4 -4
- package/layout/yunzai-i18n.service.d.ts +1 -1
- package/package.json +12 -12
- package/esm2022/layout/analysis.addon.mjs +0 -19
- package/layout/analysis.addon.d.ts +0 -3
package/fesm2022/layout.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, HostListener, Injectable, Inject, Input, Optional, NgModule, APP_INITIALIZER
|
|
2
|
+
import { Component, ChangeDetectionStrategy, HostListener, Injectable, Inject, Input, Optional, inject, NgModule, APP_INITIALIZER } from '@angular/core';
|
|
3
3
|
import * as i1$3 from '@yelon/util';
|
|
4
4
|
import { WINDOW, useLocalStorageProjectInfo, useLocalStorageUser, useLocalStorageHeader, NavType, hasFavicon, setFavicon, useLocalStorageCurrent, useLocalStorageHeaderType, useLocalStorageDefaultRoute, log as log$1, deepCopy, YunzaiConfigService, useLocalStorageTenant } from '@yelon/util';
|
|
5
5
|
import * as i1$4 from '@yelon/theme/layout-default';
|
|
@@ -20,11 +20,12 @@ import * as i1$2 from '@yelon/theme';
|
|
|
20
20
|
import { zh_CN as zh_CN$1, zh_TW as zh_TW$1, en_US as en_US$1, el_GR as el_GR$1, es_ES as es_ES$1, fr_FR as fr_FR$1, hr_HR as hr_HR$1, it_IT as it_IT$1, ko_KR as ko_KR$1, pl_PL as pl_PL$1, sl_SI as sl_SI$1, tr_TR as tr_TR$1, YunzaiI18nBaseService, YUNZAI_I18N_TOKEN, _HttpClient } from '@yelon/theme';
|
|
21
21
|
import screenfull from 'screenfull';
|
|
22
22
|
import { __decorate } from 'tslib';
|
|
23
|
-
import { InputBoolean } from '@yelon/util/decorator';
|
|
24
23
|
import { Subject, takeUntil, catchError, of, forkJoin, map as map$1, mergeMap, combineLatest, BehaviorSubject, throwError, filter, take, switchMap } from 'rxjs';
|
|
24
|
+
import { InputBoolean } from '@yelon/util/decorator';
|
|
25
25
|
import ngEn from '@angular/common/locales/en';
|
|
26
26
|
import { zhCN, zhTW, enUS, el, es, fr, hr, it, ko, pl, sl, tr } from 'date-fns/locale';
|
|
27
27
|
import { map } from 'rxjs/operators';
|
|
28
|
+
import { YA_SERVICE_TOKEN, ALLOW_ANONYMOUS } from '@yelon/auth';
|
|
28
29
|
import * as i2 from 'ng-zorro-antd/i18n';
|
|
29
30
|
import { zh_CN, zh_TW, en_US, el_GR, es_ES, fr_FR, hr_HR, it_IT, ko_KR, pl_PL, sl_SI, tr_TR } from 'ng-zorro-antd/i18n';
|
|
30
31
|
import ngElGr from '@angular/common/locales/el';
|
|
@@ -38,7 +39,6 @@ import ngSl from '@angular/common/locales/sl';
|
|
|
38
39
|
import ngTr from '@angular/common/locales/tr';
|
|
39
40
|
import ngZh from '@angular/common/locales/zh';
|
|
40
41
|
import ngZhTw from '@angular/common/locales/zh-Hant';
|
|
41
|
-
import { YA_SERVICE_TOKEN, ALLOW_ANONYMOUS } from '@yelon/auth';
|
|
42
42
|
import * as i3$1 from '@angular/cdk/platform';
|
|
43
43
|
import * as i4 from '@yelon/util/config';
|
|
44
44
|
import { YunzaiConfigService as YunzaiConfigService$1 } from '@yelon/util/config';
|
|
@@ -400,7 +400,7 @@ class YunzaiI18NComponent {
|
|
|
400
400
|
</li>
|
|
401
401
|
</ul>
|
|
402
402
|
</nz-dropdown-menu>
|
|
403
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "
|
|
403
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
404
404
|
}
|
|
405
405
|
__decorate([
|
|
406
406
|
InputBoolean()
|
|
@@ -504,7 +504,9 @@ class YunzaiNotifyComponent {
|
|
|
504
504
|
loadData() {
|
|
505
505
|
this.count = 0;
|
|
506
506
|
this.loading = true;
|
|
507
|
-
this.subs.push(
|
|
507
|
+
this.subs.push(
|
|
508
|
+
// @ts-ignore
|
|
509
|
+
forkJoin(this.loadTodo(), this.loadMessage()).subscribe(() => {
|
|
508
510
|
this.loading = false;
|
|
509
511
|
this.cdr.detectChanges();
|
|
510
512
|
}));
|
|
@@ -606,7 +608,7 @@ class YunzaiNotifyComponent {
|
|
|
606
608
|
btnIconClass="yunzai-default__nav-item-icon"
|
|
607
609
|
(select)="select($event)"
|
|
608
610
|
(clear)="clear($event)"
|
|
609
|
-
|
|
611
|
+
/>
|
|
610
612
|
`, isInline: true, dependencies: [{ kind: "component", type: i4$3.NoticeIconComponent, selector: "notice-icon", inputs: ["data", "count", "loading", "popoverVisible", "btnClass", "btnIconClass", "centered"], outputs: ["select", "clear", "popoverVisibleChange"], exportAs: ["noticeIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
611
613
|
}
|
|
612
614
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: YunzaiNotifyComponent, decorators: [{
|
|
@@ -622,7 +624,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
622
624
|
btnIconClass="yunzai-default__nav-item-icon"
|
|
623
625
|
(select)="select($event)"
|
|
624
626
|
(clear)="clear($event)"
|
|
625
|
-
|
|
627
|
+
/>
|
|
626
628
|
`,
|
|
627
629
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
628
630
|
}]
|
|
@@ -721,7 +723,7 @@ class YunzaiThemBtnComponent {
|
|
|
721
723
|
<g fill-rule="nonzero">
|
|
722
724
|
<path
|
|
723
725
|
d="M7.02 3.635l12.518 12.518a1.863 1.863 0 010 2.635l-1.317 1.318a1.863 1.863 0 01-2.635 0L3.068 7.588A2.795 2.795 0 117.02 3.635zm2.09 14.428a.932.932 0 110 1.864.932.932 0 010-1.864zm-.043-9.747L7.75 9.635l9.154 9.153 1.318-1.317-9.154-9.155zM3.52 12.473c.514 0 .931.417.931.931v.932h.932a.932.932 0 110 1.864h-.932v.931a.932.932 0 01-1.863 0l-.001-.931h-.93a.932.932 0 010-1.864h.93v-.932c0-.514.418-.931.933-.931zm15.374-3.727a1.398 1.398 0 110 2.795 1.398 1.398 0 010-2.795zM4.385 4.953a.932.932 0 000 1.317l2.046 2.047L7.75 7 5.703 4.953a.932.932 0 00-1.318 0zM14.701.36a.932.932 0 01.931.932v.931h.932a.932.932 0 010 1.864h-.933l.001.932a.932.932 0 11-1.863 0l-.001-.932h-.93a.932.932 0 110-1.864h.93v-.931a.932.932 0 01.933-.932z"
|
|
724
|
-
|
|
726
|
+
/>
|
|
725
727
|
</g>
|
|
726
728
|
</g>
|
|
727
729
|
</svg>
|
|
@@ -749,7 +751,7 @@ class YunzaiThemBtnComponent {
|
|
|
749
751
|
<!-- </div>-->
|
|
750
752
|
<!-- </div>-->
|
|
751
753
|
</nz-dropdown-menu>
|
|
752
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "
|
|
754
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
753
755
|
}
|
|
754
756
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: YunzaiThemBtnComponent, decorators: [{
|
|
755
757
|
type: Component,
|
|
@@ -769,7 +771,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
769
771
|
<g fill-rule="nonzero">
|
|
770
772
|
<path
|
|
771
773
|
d="M7.02 3.635l12.518 12.518a1.863 1.863 0 010 2.635l-1.317 1.318a1.863 1.863 0 01-2.635 0L3.068 7.588A2.795 2.795 0 117.02 3.635zm2.09 14.428a.932.932 0 110 1.864.932.932 0 010-1.864zm-.043-9.747L7.75 9.635l9.154 9.153 1.318-1.317-9.154-9.155zM3.52 12.473c.514 0 .931.417.931.931v.932h.932a.932.932 0 110 1.864h-.932v.931a.932.932 0 01-1.863 0l-.001-.931h-.93a.932.932 0 010-1.864h.93v-.932c0-.514.418-.931.933-.931zm15.374-3.727a1.398 1.398 0 110 2.795 1.398 1.398 0 010-2.795zM4.385 4.953a.932.932 0 000 1.317l2.046 2.047L7.75 7 5.703 4.953a.932.932 0 00-1.318 0zM14.701.36a.932.932 0 01.931.932v.931h.932a.932.932 0 010 1.864h-.933l.001.932a.932.932 0 11-1.863 0l-.001-.932h-.93a.932.932 0 110-1.864h.93v-.931a.932.932 0 01.933-.932z"
|
|
772
|
-
|
|
774
|
+
/>
|
|
773
775
|
</g>
|
|
774
776
|
</g>
|
|
775
777
|
</svg>
|
|
@@ -878,7 +880,7 @@ class YunzaiUserComponent {
|
|
|
878
880
|
[nzDropdownMenu]="userMenu"
|
|
879
881
|
>
|
|
880
882
|
<div class="yz-user-name">
|
|
881
|
-
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"
|
|
883
|
+
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm" />
|
|
882
884
|
{{ username }}
|
|
883
885
|
</div>
|
|
884
886
|
</div>
|
|
@@ -901,7 +903,7 @@ class YunzaiUserComponent {
|
|
|
901
903
|
</div>
|
|
902
904
|
</div>
|
|
903
905
|
</nz-dropdown-menu>
|
|
904
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "
|
|
906
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i8$1.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
905
907
|
}
|
|
906
908
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: YunzaiUserComponent, decorators: [{
|
|
907
909
|
type: Component,
|
|
@@ -916,7 +918,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
916
918
|
[nzDropdownMenu]="userMenu"
|
|
917
919
|
>
|
|
918
920
|
<div class="yz-user-name">
|
|
919
|
-
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"
|
|
921
|
+
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm" />
|
|
920
922
|
{{ username }}
|
|
921
923
|
</div>
|
|
922
924
|
</div>
|
|
@@ -974,17 +976,17 @@ class LayoutNavApplicationComponent {
|
|
|
974
976
|
topic: undefined,
|
|
975
977
|
topics: [],
|
|
976
978
|
list: [],
|
|
977
|
-
search: null
|
|
979
|
+
search: null
|
|
978
980
|
};
|
|
979
981
|
this.bis = mergeBisConfig(configService);
|
|
980
982
|
}
|
|
981
983
|
ngOnInit() {
|
|
982
984
|
this.fetchAllTopic();
|
|
983
985
|
this.attachNav('all');
|
|
984
|
-
this.win.addEventListener(
|
|
986
|
+
this.win.addEventListener('click', (event) => {
|
|
985
987
|
const { target } = event;
|
|
986
|
-
const btn = this.win.document.getElementById(
|
|
987
|
-
const dropdown = this.win.document.getElementById(
|
|
988
|
+
const btn = this.win.document.getElementById('navBtn');
|
|
989
|
+
const dropdown = this.win.document.getElementById('navDropdown');
|
|
988
990
|
if (btn && dropdown && !dropdown.contains(target) && !btn.contains(target)) {
|
|
989
991
|
this.state.active = false;
|
|
990
992
|
}
|
|
@@ -1128,7 +1130,7 @@ class LayoutNavApplicationComponent {
|
|
|
1128
1130
|
href="javascript:;"
|
|
1129
1131
|
*ngFor="let nav of topic.children"
|
|
1130
1132
|
(click)="open(nav)"
|
|
1131
|
-
|
|
1133
|
+
>{{ nav.name | i18n }}</a
|
|
1132
1134
|
>
|
|
1133
1135
|
</li>
|
|
1134
1136
|
</ul>
|
|
@@ -1137,28 +1139,37 @@ class LayoutNavApplicationComponent {
|
|
|
1137
1139
|
<!-- right menu end -->
|
|
1138
1140
|
|
|
1139
1141
|
<!-- button start-->
|
|
1140
|
-
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item"
|
|
1141
|
-
|
|
1142
|
+
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()">{{
|
|
1143
|
+
'mode.nav' | i18n
|
|
1144
|
+
}}</div>
|
|
1142
1145
|
<!-- button end-->
|
|
1143
1146
|
|
|
1144
1147
|
<!-- header start-->
|
|
1145
1148
|
<div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
|
|
1146
1149
|
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
1147
|
-
<div
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
'mode.nav.
|
|
1154
|
-
|
|
1150
|
+
<div
|
|
1151
|
+
*ngIf="showAllMenu"
|
|
1152
|
+
data-event-id="_nav_topic"
|
|
1153
|
+
data-name="全部应用"
|
|
1154
|
+
class="yz-application-text"
|
|
1155
|
+
(click)="attachNav('all')"
|
|
1156
|
+
>{{ 'mode.nav.all' | i18n }}</div
|
|
1157
|
+
>
|
|
1158
|
+
<div
|
|
1159
|
+
*ngIf="showMineMenu"
|
|
1160
|
+
data-event-id="_nav_topic"
|
|
1161
|
+
data-name="我的应用"
|
|
1162
|
+
class="yz-application-text"
|
|
1163
|
+
(click)="attachNav('mine')"
|
|
1164
|
+
>{{ 'mode.nav.mine' | i18n }}</div
|
|
1165
|
+
>
|
|
1155
1166
|
<div
|
|
1156
1167
|
data-event-id="_nav_topic"
|
|
1157
1168
|
[attr.data-name]="nav.name | i18n"
|
|
1158
1169
|
class="yz-application-text"
|
|
1159
1170
|
*ngFor="let nav of state.topics"
|
|
1160
1171
|
(click)="attachNav('other', nav)"
|
|
1161
|
-
|
|
1172
|
+
>{{ nav.name | i18n }}</div
|
|
1162
1173
|
>
|
|
1163
1174
|
</div>
|
|
1164
1175
|
<div nz-col [nzSpan]="21" [ngSwitch]="state.topic" class="yz-application-container">
|
|
@@ -1190,7 +1201,7 @@ class LayoutNavApplicationComponent {
|
|
|
1190
1201
|
</div>
|
|
1191
1202
|
</div>
|
|
1192
1203
|
<!-- header end-->
|
|
1193
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i5$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i7.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i7.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i9.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i9.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] }); }
|
|
1204
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i5$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i7.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i7.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i9.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i9.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] }); }
|
|
1194
1205
|
}
|
|
1195
1206
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutNavApplicationComponent, decorators: [{
|
|
1196
1207
|
type: Component,
|
|
@@ -1229,7 +1240,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1229
1240
|
href="javascript:;"
|
|
1230
1241
|
*ngFor="let nav of topic.children"
|
|
1231
1242
|
(click)="open(nav)"
|
|
1232
|
-
|
|
1243
|
+
>{{ nav.name | i18n }}</a
|
|
1233
1244
|
>
|
|
1234
1245
|
</li>
|
|
1235
1246
|
</ul>
|
|
@@ -1238,28 +1249,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1238
1249
|
<!-- right menu end -->
|
|
1239
1250
|
|
|
1240
1251
|
<!-- button start-->
|
|
1241
|
-
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item"
|
|
1242
|
-
|
|
1252
|
+
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()">{{
|
|
1253
|
+
'mode.nav' | i18n
|
|
1254
|
+
}}</div>
|
|
1243
1255
|
<!-- button end-->
|
|
1244
1256
|
|
|
1245
1257
|
<!-- header start-->
|
|
1246
1258
|
<div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
|
|
1247
1259
|
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
1248
|
-
<div
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
'mode.nav.
|
|
1255
|
-
|
|
1260
|
+
<div
|
|
1261
|
+
*ngIf="showAllMenu"
|
|
1262
|
+
data-event-id="_nav_topic"
|
|
1263
|
+
data-name="全部应用"
|
|
1264
|
+
class="yz-application-text"
|
|
1265
|
+
(click)="attachNav('all')"
|
|
1266
|
+
>{{ 'mode.nav.all' | i18n }}</div
|
|
1267
|
+
>
|
|
1268
|
+
<div
|
|
1269
|
+
*ngIf="showMineMenu"
|
|
1270
|
+
data-event-id="_nav_topic"
|
|
1271
|
+
data-name="我的应用"
|
|
1272
|
+
class="yz-application-text"
|
|
1273
|
+
(click)="attachNav('mine')"
|
|
1274
|
+
>{{ 'mode.nav.mine' | i18n }}</div
|
|
1275
|
+
>
|
|
1256
1276
|
<div
|
|
1257
1277
|
data-event-id="_nav_topic"
|
|
1258
1278
|
[attr.data-name]="nav.name | i18n"
|
|
1259
1279
|
class="yz-application-text"
|
|
1260
1280
|
*ngFor="let nav of state.topics"
|
|
1261
1281
|
(click)="attachNav('other', nav)"
|
|
1262
|
-
|
|
1282
|
+
>{{ nav.name | i18n }}</div
|
|
1263
1283
|
>
|
|
1264
1284
|
</div>
|
|
1265
1285
|
<div nz-col [nzSpan]="21" [ngSwitch]="state.topic" class="yz-application-container">
|
|
@@ -1370,7 +1390,7 @@ class LayoutNavGroupComponent {
|
|
|
1370
1390
|
</nz-tab>
|
|
1371
1391
|
</nz-tabset>
|
|
1372
1392
|
</div>
|
|
1373
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "
|
|
1393
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i5.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i7$1.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i7$1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] }); }
|
|
1374
1394
|
}
|
|
1375
1395
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutNavGroupComponent, decorators: [{
|
|
1376
1396
|
type: Component,
|
|
@@ -1413,13 +1433,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1413
1433
|
class LayoutNavTileComponent {
|
|
1414
1434
|
constructor() { }
|
|
1415
1435
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutNavTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1416
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LayoutNavTileComponent, selector: "layout-nav-tile", ngImport: i0, template: `<template
|
|
1436
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LayoutNavTileComponent, selector: "layout-nav-tile", ngImport: i0, template: `<ng-template />`, isInline: true }); }
|
|
1417
1437
|
}
|
|
1418
1438
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutNavTileComponent, decorators: [{
|
|
1419
1439
|
type: Component,
|
|
1420
1440
|
args: [{
|
|
1421
1441
|
selector: `layout-nav-tile`,
|
|
1422
|
-
template: `<template
|
|
1442
|
+
template: `<ng-template />`
|
|
1423
1443
|
}]
|
|
1424
1444
|
}], ctorParameters: function () { return []; } });
|
|
1425
1445
|
|
|
@@ -1472,7 +1492,7 @@ class YunzaiLayoutBasicComponent {
|
|
|
1472
1492
|
aside: true,
|
|
1473
1493
|
reusetab: true
|
|
1474
1494
|
},
|
|
1475
|
-
navType: NavType.APPLICATION
|
|
1495
|
+
navType: NavType.APPLICATION
|
|
1476
1496
|
};
|
|
1477
1497
|
}
|
|
1478
1498
|
ngOnInit() {
|
|
@@ -1556,25 +1576,25 @@ class YunzaiLayoutBasicComponent {
|
|
|
1556
1576
|
<layout-default-header-item direction="left">
|
|
1557
1577
|
<ng-container [ngSwitch]="navType">
|
|
1558
1578
|
<ng-container *ngSwitchCase="NavType.APPLICATION">
|
|
1559
|
-
<layout-nav-application
|
|
1579
|
+
<layout-nav-application />
|
|
1560
1580
|
</ng-container>
|
|
1561
1581
|
<ng-container *ngSwitchCase="NavType.GROUP">
|
|
1562
|
-
<layout-nav-group
|
|
1582
|
+
<layout-nav-group />
|
|
1563
1583
|
</ng-container>
|
|
1564
1584
|
<ng-container *ngSwitchCase="NavType.TILE">
|
|
1565
|
-
<layout-nav-tile
|
|
1585
|
+
<layout-nav-tile />
|
|
1566
1586
|
</ng-container>
|
|
1567
1587
|
<ng-container *ngSwitchDefault>
|
|
1568
|
-
<layout-nav-application
|
|
1588
|
+
<layout-nav-application />
|
|
1569
1589
|
</ng-container>
|
|
1570
1590
|
</ng-container>
|
|
1571
1591
|
</layout-default-header-item>
|
|
1572
1592
|
<!-- nav end -->
|
|
1573
1593
|
<layout-default-header-item direction="right" hidden="mobile">
|
|
1574
|
-
<yunzai-notify
|
|
1594
|
+
<yunzai-notify />
|
|
1575
1595
|
</layout-default-header-item>
|
|
1576
1596
|
<layout-default-header-item direction="right" hidden="mobile">
|
|
1577
|
-
<yunzai-theme-btn
|
|
1597
|
+
<yunzai-theme-btn />
|
|
1578
1598
|
</layout-default-header-item>
|
|
1579
1599
|
<!-- setting -->
|
|
1580
1600
|
<layout-default-header-item direction="right" hidden="mobile">
|
|
@@ -1612,19 +1632,19 @@ class YunzaiLayoutBasicComponent {
|
|
|
1612
1632
|
{{ 'mode.nav.tile' | i18n }}
|
|
1613
1633
|
</div>
|
|
1614
1634
|
<div data-event-id="_nav_fullscreen" nz-menu-item>
|
|
1615
|
-
<yunzai-fullscreen
|
|
1635
|
+
<yunzai-fullscreen />
|
|
1616
1636
|
</div>
|
|
1617
1637
|
<div data-event-id="_nav_clearstorage" nz-menu-item>
|
|
1618
|
-
<yunzai-clearstorage
|
|
1638
|
+
<yunzai-clearstorage />
|
|
1619
1639
|
</div>
|
|
1620
1640
|
<div data-event-id="_nav_i18n" nz-menu-item>
|
|
1621
|
-
<yunzai-i18n
|
|
1641
|
+
<yunzai-i18n />
|
|
1622
1642
|
</div>
|
|
1623
1643
|
</div>
|
|
1624
1644
|
</nz-dropdown-menu>
|
|
1625
1645
|
</layout-default-header-item>
|
|
1626
1646
|
<layout-default-header-item direction="right">
|
|
1627
|
-
<yunzai-user
|
|
1647
|
+
<yunzai-user />
|
|
1628
1648
|
</layout-default-header-item>
|
|
1629
1649
|
<!-- setting end -->
|
|
1630
1650
|
</layout-default>
|
|
@@ -1636,7 +1656,7 @@ class YunzaiLayoutBasicComponent {
|
|
|
1636
1656
|
[nzDropdownMenu]="userMenu"
|
|
1637
1657
|
class="yunzai-default__aside-user"
|
|
1638
1658
|
>
|
|
1639
|
-
<nz-avatar class="yunzai-default__aside-user-avatar" [nzSrc]="aside.icon"
|
|
1659
|
+
<nz-avatar class="yunzai-default__aside-user-avatar" [nzSrc]="aside.icon" />
|
|
1640
1660
|
<div class="yunzai-default__aside-user-info">
|
|
1641
1661
|
<strong>{{ aside.name | i18n }}</strong>
|
|
1642
1662
|
<p class="mb0">{{ aside.intro | i18n }}</p>
|
|
@@ -1649,13 +1669,11 @@ class YunzaiLayoutBasicComponent {
|
|
|
1649
1669
|
</nz-dropdown-menu>
|
|
1650
1670
|
</ng-template>
|
|
1651
1671
|
<ng-template #contentTpl>
|
|
1652
|
-
<reuse-tab #reuseTab [ngStyle]="reusetabCSS"
|
|
1653
|
-
<router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)"
|
|
1654
|
-
</ng-template>
|
|
1655
|
-
<ng-template #noneTpl>
|
|
1656
|
-
<router-outlet></router-outlet>
|
|
1672
|
+
<reuse-tab #reuseTab [ngStyle]="reusetabCSS" />
|
|
1673
|
+
<router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)" />
|
|
1657
1674
|
</ng-template>
|
|
1658
|
-
|
|
1675
|
+
<ng-template #noneTpl> <router-outlet /> </ng-template>
|
|
1676
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i4$4.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i4$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i5$2.ReuseTabComponent, selector: "reuse-tab, [reuse-tab]", inputs: ["mode", "i18n", "debug", "max", "tabMaxWidth", "excludes", "allowClose", "keepingScroll", "storageState", "keepingScrollContainer", "customContextMenu", "tabBarExtraContent", "tabBarGutter", "tabBarStyle", "tabType", "routeParamMatchMode", "disabled", "titleRender", "canClose"], outputs: ["change", "close"], exportAs: ["reuseTab"] }, { kind: "component", type: i1$4.LayoutDefaultComponent, selector: "layout-default", inputs: ["options", "asideUser", "asideBottom", "nav", "content", "customError", "fetchingStrictly", "fetching"], exportAs: ["layoutDefault"] }, { kind: "component", type: i1$4.LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: ["hidden", "direction"] }, { kind: "directive", type: i1$4.LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]" }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i4$2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i8$1.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "component", type: YunzaiClearStorageComponent, selector: "yunzai-clearstorage" }, { kind: "component", type: YunzaiFullScreenComponent, selector: "yunzai-fullscreen" }, { kind: "component", type: YunzaiI18NComponent, selector: "yunzai-i18n", inputs: ["showLangText"] }, { kind: "component", type: YunzaiNotifyComponent, selector: "yunzai-notify" }, { kind: "component", type: YunzaiThemBtnComponent, selector: "yunzai-theme-btn", inputs: ["types", "devTips", "deployUrl"] }, { kind: "component", type: YunzaiUserComponent, selector: "yunzai-user" }, { kind: "component", type: LayoutNavApplicationComponent, selector: "layout-nav-application" }, { kind: "component", type: LayoutNavGroupComponent, selector: "layout-nav-group" }, { kind: "component", type: LayoutNavTileComponent, selector: "layout-nav-tile" }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] }); }
|
|
1659
1677
|
}
|
|
1660
1678
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: YunzaiLayoutBasicComponent, decorators: [{
|
|
1661
1679
|
type: Component,
|
|
@@ -1667,25 +1685,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1667
1685
|
<layout-default-header-item direction="left">
|
|
1668
1686
|
<ng-container [ngSwitch]="navType">
|
|
1669
1687
|
<ng-container *ngSwitchCase="NavType.APPLICATION">
|
|
1670
|
-
<layout-nav-application
|
|
1688
|
+
<layout-nav-application />
|
|
1671
1689
|
</ng-container>
|
|
1672
1690
|
<ng-container *ngSwitchCase="NavType.GROUP">
|
|
1673
|
-
<layout-nav-group
|
|
1691
|
+
<layout-nav-group />
|
|
1674
1692
|
</ng-container>
|
|
1675
1693
|
<ng-container *ngSwitchCase="NavType.TILE">
|
|
1676
|
-
<layout-nav-tile
|
|
1694
|
+
<layout-nav-tile />
|
|
1677
1695
|
</ng-container>
|
|
1678
1696
|
<ng-container *ngSwitchDefault>
|
|
1679
|
-
<layout-nav-application
|
|
1697
|
+
<layout-nav-application />
|
|
1680
1698
|
</ng-container>
|
|
1681
1699
|
</ng-container>
|
|
1682
1700
|
</layout-default-header-item>
|
|
1683
1701
|
<!-- nav end -->
|
|
1684
1702
|
<layout-default-header-item direction="right" hidden="mobile">
|
|
1685
|
-
<yunzai-notify
|
|
1703
|
+
<yunzai-notify />
|
|
1686
1704
|
</layout-default-header-item>
|
|
1687
1705
|
<layout-default-header-item direction="right" hidden="mobile">
|
|
1688
|
-
<yunzai-theme-btn
|
|
1706
|
+
<yunzai-theme-btn />
|
|
1689
1707
|
</layout-default-header-item>
|
|
1690
1708
|
<!-- setting -->
|
|
1691
1709
|
<layout-default-header-item direction="right" hidden="mobile">
|
|
@@ -1723,19 +1741,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1723
1741
|
{{ 'mode.nav.tile' | i18n }}
|
|
1724
1742
|
</div>
|
|
1725
1743
|
<div data-event-id="_nav_fullscreen" nz-menu-item>
|
|
1726
|
-
<yunzai-fullscreen
|
|
1744
|
+
<yunzai-fullscreen />
|
|
1727
1745
|
</div>
|
|
1728
1746
|
<div data-event-id="_nav_clearstorage" nz-menu-item>
|
|
1729
|
-
<yunzai-clearstorage
|
|
1747
|
+
<yunzai-clearstorage />
|
|
1730
1748
|
</div>
|
|
1731
1749
|
<div data-event-id="_nav_i18n" nz-menu-item>
|
|
1732
|
-
<yunzai-i18n
|
|
1750
|
+
<yunzai-i18n />
|
|
1733
1751
|
</div>
|
|
1734
1752
|
</div>
|
|
1735
1753
|
</nz-dropdown-menu>
|
|
1736
1754
|
</layout-default-header-item>
|
|
1737
1755
|
<layout-default-header-item direction="right">
|
|
1738
|
-
<yunzai-user
|
|
1756
|
+
<yunzai-user />
|
|
1739
1757
|
</layout-default-header-item>
|
|
1740
1758
|
<!-- setting end -->
|
|
1741
1759
|
</layout-default>
|
|
@@ -1747,7 +1765,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1747
1765
|
[nzDropdownMenu]="userMenu"
|
|
1748
1766
|
class="yunzai-default__aside-user"
|
|
1749
1767
|
>
|
|
1750
|
-
<nz-avatar class="yunzai-default__aside-user-avatar" [nzSrc]="aside.icon"
|
|
1768
|
+
<nz-avatar class="yunzai-default__aside-user-avatar" [nzSrc]="aside.icon" />
|
|
1751
1769
|
<div class="yunzai-default__aside-user-info">
|
|
1752
1770
|
<strong>{{ aside.name | i18n }}</strong>
|
|
1753
1771
|
<p class="mb0">{{ aside.intro | i18n }}</p>
|
|
@@ -1760,12 +1778,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1760
1778
|
</nz-dropdown-menu>
|
|
1761
1779
|
</ng-template>
|
|
1762
1780
|
<ng-template #contentTpl>
|
|
1763
|
-
<reuse-tab #reuseTab [ngStyle]="reusetabCSS"
|
|
1764
|
-
<router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)"
|
|
1765
|
-
</ng-template>
|
|
1766
|
-
<ng-template #noneTpl>
|
|
1767
|
-
<router-outlet></router-outlet>
|
|
1781
|
+
<reuse-tab #reuseTab [ngStyle]="reusetabCSS" />
|
|
1782
|
+
<router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)" />
|
|
1768
1783
|
</ng-template>
|
|
1784
|
+
<ng-template #noneTpl> <router-outlet /> </ng-template>
|
|
1769
1785
|
`
|
|
1770
1786
|
}]
|
|
1771
1787
|
}], ctorParameters: function () { return [{ type: i1$4.LayoutDisplayService }, { type: i2$1.StompService }, { type: undefined, decorators: [{
|
|
@@ -1773,7 +1789,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1773
1789
|
args: [WINDOW]
|
|
1774
1790
|
}] }]; } });
|
|
1775
1791
|
|
|
1776
|
-
class
|
|
1792
|
+
class ActGuardService {
|
|
1777
1793
|
constructor(configService, pathToRegexp, router) {
|
|
1778
1794
|
this.configService = configService;
|
|
1779
1795
|
this.pathToRegexp = pathToRegexp;
|
|
@@ -1793,47 +1809,24 @@ class ActGuard {
|
|
|
1793
1809
|
this.getAllLinks(this.menus, this.links);
|
|
1794
1810
|
log$1('act: links ', this.links);
|
|
1795
1811
|
}
|
|
1796
|
-
|
|
1797
|
-
log$1('act: can activate ',
|
|
1798
|
-
if (this.preHandle(
|
|
1799
|
-
return true;
|
|
1800
|
-
}
|
|
1801
|
-
log$1('act: can activate child prehandle success');
|
|
1802
|
-
let canactivate = false;
|
|
1803
|
-
this.links.forEach((link) => {
|
|
1804
|
-
const regexp = this.pathToRegexp.stringToRegexp(link, null, null);
|
|
1805
|
-
log$1(`act: ${link} test ${state.url.split('?')[0]}`);
|
|
1806
|
-
if (regexp.test(state.url.split('?')[0])) {
|
|
1807
|
-
canactivate = true;
|
|
1808
|
-
log$1(`act: test value ${canactivate}`);
|
|
1809
|
-
return;
|
|
1810
|
-
}
|
|
1811
|
-
});
|
|
1812
|
-
if (canactivate) {
|
|
1813
|
-
log$1(`act: test sucess`);
|
|
1814
|
-
return true;
|
|
1815
|
-
}
|
|
1816
|
-
else {
|
|
1817
|
-
log$1(`act: test error`);
|
|
1818
|
-
this.router.navigate(['displayIndex']);
|
|
1819
|
-
return false;
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
canActivateChild(_, state) {
|
|
1823
|
-
log$1('act: can activate child ', state);
|
|
1824
|
-
if (this.preHandle(state)) {
|
|
1812
|
+
process(url) {
|
|
1813
|
+
log$1('act: can activate ', url);
|
|
1814
|
+
if (this.preHandle(url)) {
|
|
1825
1815
|
return true;
|
|
1826
1816
|
}
|
|
1827
1817
|
log$1('act: can activate child prehandle success');
|
|
1828
1818
|
let canactivate = false;
|
|
1829
1819
|
this.links.forEach((link) => {
|
|
1830
|
-
|
|
1820
|
+
// path = /xxx
|
|
1821
|
+
if (link === url.split('?')[0]) {
|
|
1831
1822
|
canactivate = true;
|
|
1823
|
+
log$1(`act: link value ${link} equals url value ${url}`);
|
|
1832
1824
|
return;
|
|
1833
1825
|
}
|
|
1826
|
+
// paht = /xxx/:xx
|
|
1834
1827
|
const regexp = this.pathToRegexp.stringToRegexp(link, null, null);
|
|
1835
|
-
|
|
1836
|
-
|
|
1828
|
+
log$1(`act: ${link} test ${url.split('?')[0]}`);
|
|
1829
|
+
if (regexp.test(url.split('?')[0])) {
|
|
1837
1830
|
canactivate = true;
|
|
1838
1831
|
log$1(`act: test value ${canactivate}`);
|
|
1839
1832
|
return;
|
|
@@ -1849,14 +1842,14 @@ class ActGuard {
|
|
|
1849
1842
|
return false;
|
|
1850
1843
|
}
|
|
1851
1844
|
}
|
|
1852
|
-
preHandle(
|
|
1853
|
-
return (
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1845
|
+
preHandle(url) {
|
|
1846
|
+
return (url.includes('error') ||
|
|
1847
|
+
url.includes('exception') ||
|
|
1848
|
+
url.includes('displayIndex') ||
|
|
1849
|
+
url === '' ||
|
|
1850
|
+
url === null ||
|
|
1851
|
+
url === '/' ||
|
|
1852
|
+
url.includes('iframePage'));
|
|
1860
1853
|
}
|
|
1861
1854
|
getAllLinks(menu, links) {
|
|
1862
1855
|
menu.forEach((sider) => {
|
|
@@ -1868,15 +1861,15 @@ class ActGuard {
|
|
|
1868
1861
|
}
|
|
1869
1862
|
});
|
|
1870
1863
|
}
|
|
1871
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1872
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1864
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActGuardService, deps: [{ token: i1$3.YunzaiConfigService }, { token: i1$3.PathToRegexpService }, { token: i4$4.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1865
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActGuardService, providedIn: 'root' }); }
|
|
1873
1866
|
}
|
|
1874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
1867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActGuardService, decorators: [{
|
|
1875
1868
|
type: Injectable,
|
|
1876
|
-
args: [{
|
|
1877
|
-
providedIn: 'root'
|
|
1878
|
-
}]
|
|
1869
|
+
args: [{ providedIn: 'root' }]
|
|
1879
1870
|
}], ctorParameters: function () { return [{ type: i1$3.YunzaiConfigService }, { type: i1$3.PathToRegexpService }, { type: i4$4.Router }]; } });
|
|
1871
|
+
const actGuardCanActive = (_, state) => inject(ActGuardService).process(state.url);
|
|
1872
|
+
const actGuardCanActiveChild = (_, state) => inject(ActGuardService).process(state.url);
|
|
1880
1873
|
|
|
1881
1874
|
class YunzaiAuthService {
|
|
1882
1875
|
constructor(injector) {
|
|
@@ -2108,7 +2101,7 @@ class YunzaiDefaultInterceptor {
|
|
|
2108
2101
|
case 200:
|
|
2109
2102
|
return of(ev);
|
|
2110
2103
|
case 401:
|
|
2111
|
-
log(
|
|
2104
|
+
log('http401: ', req.url);
|
|
2112
2105
|
if (this.config.refreshTokenEnabled && this.config.refreshTokenType === 're-request') {
|
|
2113
2106
|
const unAuthorizationReq = req.clone();
|
|
2114
2107
|
unAuthorizationReq.headers.delete('Authorization');
|
|
@@ -3046,11 +3039,11 @@ class YunzaiStartupService {
|
|
|
3046
3039
|
let defaultLang = this.settingService.layout.lang || this.i18n.defaultLang;
|
|
3047
3040
|
return this.yzAuthService.login().pipe(mergeMap(() => {
|
|
3048
3041
|
return this.i18n.loadLangData(defaultLang);
|
|
3049
|
-
}), mergeMap(
|
|
3042
|
+
}), mergeMap(langData => {
|
|
3050
3043
|
log$1('startup.service: ', 'set i18n, defaultLang->', defaultLang, ' langData->', langData);
|
|
3051
3044
|
this.i18n.use(defaultLang, langData);
|
|
3052
3045
|
return of(void 0);
|
|
3053
|
-
}), mergeMap(
|
|
3046
|
+
}), mergeMap(v => {
|
|
3054
3047
|
this.systemInit();
|
|
3055
3048
|
log$1('startup.service: preloader finish');
|
|
3056
3049
|
if (this.win && this.win.appBootstrap) {
|
|
@@ -3199,25 +3192,6 @@ const HTML_NAMES_MAPPING = {
|
|
|
3199
3192
|
_reusetab_custom: '多标签-自定义'
|
|
3200
3193
|
};
|
|
3201
3194
|
|
|
3202
|
-
class AnalysisAddon {
|
|
3203
|
-
static putValueInAnalysis(values) {
|
|
3204
|
-
if (!window)
|
|
3205
|
-
return;
|
|
3206
|
-
// @ts-ignore
|
|
3207
|
-
if (!window['yunzai'])
|
|
3208
|
-
return;
|
|
3209
|
-
// @ts-ignore
|
|
3210
|
-
if (window['yunzai']['extra']) {
|
|
3211
|
-
// @ts-ignore
|
|
3212
|
-
window['yunzai']['extra'] = { ...window['yunzai']['extra'], ...values };
|
|
3213
|
-
}
|
|
3214
|
-
else {
|
|
3215
|
-
// @ts-ignore
|
|
3216
|
-
window['yunzai']['extra'] = { ...values };
|
|
3217
|
-
}
|
|
3218
|
-
}
|
|
3219
|
-
}
|
|
3220
|
-
|
|
3221
3195
|
class YunzaiAnalysisAddonGuardService {
|
|
3222
3196
|
constructor(configService, pathToRegexp, win, tokenService) {
|
|
3223
3197
|
this.configService = configService;
|
|
@@ -3235,6 +3209,7 @@ class YunzaiAnalysisAddonGuardService {
|
|
|
3235
3209
|
this.menus = deepCopy(user.menu || []).filter((m) => m.systemCode && m.systemCode === this.bis.systemCode);
|
|
3236
3210
|
if (user) {
|
|
3237
3211
|
this.value = {
|
|
3212
|
+
systemCode: this.bis.systemCode,
|
|
3238
3213
|
userid: user.id,
|
|
3239
3214
|
realname: user.realname,
|
|
3240
3215
|
usertype: user.userType,
|
|
@@ -3253,7 +3228,7 @@ class YunzaiAnalysisAddonGuardService {
|
|
|
3253
3228
|
}
|
|
3254
3229
|
process(url) {
|
|
3255
3230
|
let flag = false;
|
|
3256
|
-
this.links.forEach(
|
|
3231
|
+
this.links.forEach(link => {
|
|
3257
3232
|
if (link.link === url.split('?')[0]) {
|
|
3258
3233
|
flag = true;
|
|
3259
3234
|
this.value['routename'] = link.title;
|
|
@@ -3315,5 +3290,5 @@ const analysisAddonCanActiveChild = (_, state) => inject(YunzaiAnalysisAddonGuar
|
|
|
3315
3290
|
* Generated bundle index. Do not edit.
|
|
3316
3291
|
*/
|
|
3317
3292
|
|
|
3318
|
-
export {
|
|
3293
|
+
export { ActGuardService, BUSINESS_DEFAULT_CONFIG, HTML_NAMES_MAPPING, LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent, YUNZAI_APPINIT_PROVIDES, YUNZAI_LANGS, YunzaiAnalysisAddonGuardService, YunzaiAuthService, YunzaiClearStorageComponent, YunzaiDefaultInterceptor, YunzaiFullScreenComponent, YunzaiI18NComponent, YunzaiI18NService, YunzaiLayoutBasicComponent, YunzaiLayoutModule, YunzaiNotifyComponent, YunzaiStartupService, YunzaiStartupServiceFactory, YunzaiThemBtnComponent, YunzaiUserComponent, YunzaiDefaultInterceptor as YzDefaultInterceptor, actGuardCanActive, actGuardCanActiveChild, analysisAddonCanActive, analysisAddonCanActiveChild, generateAbility, mapYzSideToYelonMenu, mergeBisConfig };
|
|
3319
3294
|
//# sourceMappingURL=layout.mjs.map
|