@yelon/bis 17.3.2 → 18.0.1
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/README.md +1 -1
- package/config/bis.config.d.ts +3 -3
- package/config/index.d.ts +5 -5
- package/config/public_api.d.ts +1 -1
- package/esm2022/bis.mjs +4 -4
- package/esm2022/config/bis.config.mjs +14 -14
- package/esm2022/config/config.mjs +4 -4
- package/esm2022/config/public_api.mjs +1 -1
- package/esm2022/layout/layout-basic.component.mjs +518 -508
- package/esm2022/layout/layout-nav-application.component.mjs +372 -372
- package/esm2022/layout/layout-nav-group.component.mjs +166 -162
- package/esm2022/layout/layout-nav-tile.component.mjs +14 -14
- package/esm2022/layout/layout.mjs +4 -4
- package/esm2022/layout/layout.module.mjs +53 -53
- package/esm2022/layout/public_api.mjs +5 -5
- package/esm2022/public_api.mjs +8 -8
- package/esm2022/src/bis.module.mjs +16 -16
- package/esm2022/src/helper.mjs +44 -44
- package/esm2022/src/provide.mjs +7 -7
- package/esm2022/src/refresh-token.mjs +78 -78
- package/esm2022/src/startup.service.mjs +183 -183
- package/esm2022/src/yunzai-act.guard.mjs +87 -87
- package/esm2022/src/yunzai-analysis-addon.guard.mjs +98 -98
- package/esm2022/src/yunzai-default.interceptor.mjs +62 -62
- package/esm2022/yunzai-widgets/public_api.mjs +6 -6
- package/esm2022/yunzai-widgets/yunzai-clear-storage.component.mjs +46 -46
- package/esm2022/yunzai-widgets/yunzai-fullscreen.component.mjs +46 -46
- package/esm2022/yunzai-widgets/yunzai-i18n.component.mjs +138 -138
- package/esm2022/yunzai-widgets/yunzai-notify.component.mjs +179 -179
- package/esm2022/yunzai-widgets/yunzai-user.component.mjs +119 -119
- package/esm2022/yunzai-widgets/yunzai-widget.module.mjs +61 -61
- package/esm2022/yunzai-widgets/yunzai-widgets.mjs +4 -4
- package/fesm2022/bis.mjs +559 -559
- package/fesm2022/config.mjs +21 -21
- package/fesm2022/layout.mjs +1097 -1083
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/yunzai-widgets.mjs +563 -563
- package/index.d.ts +5 -5
- package/index.less +1 -1
- package/layout/index.d.ts +5 -5
- package/layout/layout-basic.component.d.ts +54 -54
- package/layout/layout-nav-application.component.d.ts +26 -26
- package/layout/layout-nav-group.component.d.ts +14 -14
- package/layout/layout-nav-tile.component.d.ts +5 -5
- package/layout/layout.module.d.ts +18 -18
- package/layout/public_api.d.ts +5 -5
- package/layout/style/index.less +181 -182
- package/package.json +68 -68
- package/public_api.d.ts +8 -8
- package/src/bis.module.d.ts +8 -8
- package/src/helper.d.ts +16 -16
- package/src/provide.d.ts +2 -2
- package/src/refresh-token.d.ts +6 -6
- package/src/startup.service.d.ts +24 -24
- package/src/yunzai-act.guard.d.ts +20 -20
- package/src/yunzai-analysis-addon.guard.d.ts +26 -26
- package/src/yunzai-default.interceptor.d.ts +2 -2
- package/theme-compact.less +3 -3
- package/theme-dark.less +46 -46
- package/theme-default.less +48 -48
- package/theme-variable.less +1 -0
- package/yunzai-widgets/index.d.ts +5 -5
- package/yunzai-widgets/public_api.d.ts +6 -6
- package/yunzai-widgets/yunzai-clear-storage.component.d.ts +8 -8
- package/yunzai-widgets/yunzai-fullscreen.component.d.ts +8 -8
- package/yunzai-widgets/yunzai-i18n.component.d.ts +19 -19
- package/yunzai-widgets/yunzai-notify.component.d.ts +25 -25
- package/yunzai-widgets/yunzai-user.component.d.ts +22 -22
- package/yunzai-widgets/yunzai-widget.module.d.ts +18 -18
package/fesm2022/layout.mjs
CHANGED
|
@@ -1,1083 +1,1097 @@
|
|
|
1
|
-
import * as i4 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, Component, NgModule } from '@angular/core';
|
|
5
|
-
import * as i1 from '@angular/forms';
|
|
6
|
-
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import { _HttpClient, YunzaiHttpI18NService, I18nPipe } from '@yelon/theme';
|
|
8
|
-
import * as i3$1 from 'ng-zorro-antd/dropdown';
|
|
9
|
-
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
10
|
-
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
11
|
-
import * as i2 from 'ng-zorro-antd/grid';
|
|
12
|
-
import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
13
|
-
import * as i1$1 from 'ng-zorro-antd/icon';
|
|
14
|
-
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
15
|
-
import * as i3 from 'ng-zorro-antd/input';
|
|
16
|
-
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
17
|
-
import * as i4$1 from 'ng-zorro-antd/tabs';
|
|
18
|
-
import { NzTabsModule } from 'ng-zorro-antd/tabs';
|
|
19
|
-
import { HttpClient } from '@angular/common/http';
|
|
20
|
-
import * as i2$2 from '@angular/router';
|
|
21
|
-
import { RouterModule } from '@angular/router';
|
|
22
|
-
import * as i3$2 from '@yelon/abc/reuse-tab';
|
|
23
|
-
import { ReuseTabModule } from '@yelon/abc/reuse-tab';
|
|
24
|
-
import * as i13 from '@yelon/bis/yunzai-widgets';
|
|
25
|
-
import { YunzaiWidgetsModule } from '@yelon/bis/yunzai-widgets';
|
|
26
|
-
import { StompService } from '@yelon/socket';
|
|
27
|
-
import * as i1$2 from '@yelon/theme/layout-default';
|
|
28
|
-
import { LayoutDisplayService, LayoutDefaultModule } from '@yelon/theme/layout-default';
|
|
29
|
-
import * as i12 from '@yelon/theme/theme-btn';
|
|
30
|
-
import { ThemeBtnModule } from '@yelon/theme/theme-btn';
|
|
31
|
-
import { YunzaiConfigService, WINDOW, useLocalStorageHeader, YUNZAI_CONFIG, NavType, useLocalStorageProjectInfo, hasFavicon, setFavicon, useLocalStorageCurrent, useLocalStorageHeaderType, useLocalStorageDefaultRoute, log } from '@yelon/util';
|
|
32
|
-
import * as i7 from 'ng-zorro-antd/avatar';
|
|
33
|
-
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
|
|
34
|
-
import * as i11 from 'ng-zorro-antd/descriptions';
|
|
35
|
-
import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions';
|
|
36
|
-
import * as i9 from 'ng-zorro-antd/modal';
|
|
37
|
-
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
38
|
-
import * as i10 from 'ng-zorro-antd/skeleton';
|
|
39
|
-
import { NzSkeletonModule } from 'ng-zorro-antd/skeleton';
|
|
40
|
-
import { Subject, takeUntil } from 'rxjs';
|
|
41
|
-
import { mergeBisConfig } from '@yelon/bis/config';
|
|
42
|
-
import * as i2$1 from 'ng-zorro-antd/menu';
|
|
43
|
-
|
|
44
|
-
class YunzaiNavApplicationComponent {
|
|
45
|
-
constructor() {
|
|
46
|
-
this.config = mergeBisConfig(inject(YunzaiConfigService));
|
|
47
|
-
this.http = inject(_HttpClient);
|
|
48
|
-
this.win = inject(WINDOW);
|
|
49
|
-
this.i18n = inject(YunzaiHttpI18NService);
|
|
50
|
-
this.destroy$ = new Subject();
|
|
51
|
-
this.state = {
|
|
52
|
-
active: false,
|
|
53
|
-
type: 'all',
|
|
54
|
-
topic: undefined,
|
|
55
|
-
topics: [],
|
|
56
|
-
list: [],
|
|
57
|
-
search: null
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
get showAllMenu() {
|
|
61
|
-
if (this.config.nav)
|
|
62
|
-
return this.config.nav.all;
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
get showMineMenu() {
|
|
66
|
-
if (this.config.nav)
|
|
67
|
-
return this.config.nav.mine;
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
ngOnInit() {
|
|
71
|
-
this.fetchAllTopic();
|
|
72
|
-
this.attachNav('all');
|
|
73
|
-
this.win.addEventListener('click', (event) => {
|
|
74
|
-
const { target } = event;
|
|
75
|
-
const btn = this.win.document.getElementById('navBtn');
|
|
76
|
-
const dropdown = this.win.document.getElementById('navDropdown');
|
|
77
|
-
if (btn && dropdown && !dropdown.contains(target) && !btn.contains(target)) {
|
|
78
|
-
this.state.active = false;
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
fetchAllTopic() {
|
|
83
|
-
const [, getTopics] = useLocalStorageHeader();
|
|
84
|
-
this.state.topics = getTopics();
|
|
85
|
-
}
|
|
86
|
-
attachNav(type, topic) {
|
|
87
|
-
this.state.type = type;
|
|
88
|
-
this.clearSearch();
|
|
89
|
-
if (type === 'all') {
|
|
90
|
-
this.displayAllNav();
|
|
91
|
-
}
|
|
92
|
-
if (type === 'mine') {
|
|
93
|
-
this.displayMineNav();
|
|
94
|
-
}
|
|
95
|
-
if (type === 'other' && topic) {
|
|
96
|
-
this.displayOtherNav(topic);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
clearSearch() {
|
|
100
|
-
this.state.search = null;
|
|
101
|
-
}
|
|
102
|
-
displayAllNav() {
|
|
103
|
-
const [, getTopics] = useLocalStorageHeader();
|
|
104
|
-
this.state.list = getTopics();
|
|
105
|
-
}
|
|
106
|
-
displayMineNav() {
|
|
107
|
-
const [, getTopics] = useLocalStorageHeader();
|
|
108
|
-
this.state.list = getTopics()
|
|
109
|
-
.filter((topic) => {
|
|
110
|
-
topic.children = topic.children.filter((child) => {
|
|
111
|
-
return child.auth;
|
|
112
|
-
});
|
|
113
|
-
return topic;
|
|
114
|
-
})
|
|
115
|
-
.filter((topic) => {
|
|
116
|
-
return topic.children.length > 0;
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
displayOtherNav(topic) {
|
|
120
|
-
const [, getTopics] = useLocalStorageHeader();
|
|
121
|
-
this.state.topic = topic;
|
|
122
|
-
const temp = getTopics();
|
|
123
|
-
this.state.list = temp.filter(t => t.key === topic.key)[0].children;
|
|
124
|
-
}
|
|
125
|
-
diffChange(flag) {
|
|
126
|
-
if (flag) {
|
|
127
|
-
this.state.active = flag;
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
this.state.active = !this.state.active;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
open(topic) {
|
|
134
|
-
if (topic.key) {
|
|
135
|
-
this.http
|
|
136
|
-
.post(`/app-manager/web-scan/save`, {
|
|
137
|
-
appId: topic.key,
|
|
138
|
-
createDate: new Date()
|
|
139
|
-
})
|
|
140
|
-
.pipe(takeUntil(this.destroy$))
|
|
141
|
-
.subscribe();
|
|
142
|
-
}
|
|
143
|
-
switch (topic.target) {
|
|
144
|
-
case 'href':
|
|
145
|
-
this.win.location.href = topic.url;
|
|
146
|
-
break;
|
|
147
|
-
case 'blank':
|
|
148
|
-
this.win.
|
|
149
|
-
break;
|
|
150
|
-
case 'target':
|
|
151
|
-
this.win.
|
|
152
|
-
break;
|
|
153
|
-
default:
|
|
154
|
-
this.win.location.href = topic.url;
|
|
155
|
-
break;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
onSearch() {
|
|
159
|
-
const [, getTopics] = useLocalStorageHeader();
|
|
160
|
-
const temp = getTopics();
|
|
161
|
-
if (this.state.search) {
|
|
162
|
-
this.state.list = temp
|
|
163
|
-
.filter((topic) => {
|
|
164
|
-
if (this.i18n.fanyi(topic.name).includes(this.state.search)) {
|
|
165
|
-
return topic;
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
topic.children = topic.children.filter((child) => {
|
|
169
|
-
return this.i18n.fanyi(child.name).includes(this.state.search);
|
|
170
|
-
});
|
|
171
|
-
return topic;
|
|
172
|
-
}
|
|
173
|
-
})
|
|
174
|
-
.filter((topic) => {
|
|
175
|
-
return topic.children.length > 0;
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
const [, getTopics] = useLocalStorageHeader();
|
|
180
|
-
this.state.list = getTopics();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
ngOnDestroy() {
|
|
184
|
-
this.destroy$.complete();
|
|
185
|
-
}
|
|
186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
187
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
188
|
-
<ng-template #search>
|
|
189
|
-
<div nz-row class="yz-application-list-search">
|
|
190
|
-
<nz-input-group [nzPrefix]="prefixTemplate">
|
|
191
|
-
<input
|
|
192
|
-
data-event-id="_nav_search"
|
|
193
|
-
type="text"
|
|
194
|
-
nz-input
|
|
195
|
-
placeholder="{{ 'application.search' | i18n }}"
|
|
196
|
-
[(ngModel)]="state.search"
|
|
197
|
-
(ngModelChange)="onSearch()"
|
|
198
|
-
/>
|
|
199
|
-
<ng-template #prefixTemplate>
|
|
200
|
-
<i nz-icon nzType="search" nzTheme="outline"></i>
|
|
201
|
-
</ng-template>
|
|
202
|
-
</nz-input-group>
|
|
203
|
-
</div>
|
|
204
|
-
</ng-template>
|
|
205
|
-
|
|
206
|
-
<ng-template #ld>
|
|
207
|
-
<div class="yz-application-list">
|
|
208
|
-
<ul>
|
|
209
|
-
@for (topic of state.list; track topic) {
|
|
210
|
-
<li>
|
|
211
|
-
<h5>{{ topic.name | i18n }}</h5>
|
|
212
|
-
@for (nav of topic.children; track nav) {
|
|
213
|
-
<a
|
|
214
|
-
data-event-id="_nav_item"
|
|
215
|
-
[attr.data-name]="nav.name | i18n"
|
|
216
|
-
href="javascript:;"
|
|
217
|
-
(click)="open(nav)"
|
|
218
|
-
>{{ nav.name | i18n }}</a
|
|
219
|
-
>
|
|
220
|
-
}
|
|
221
|
-
</li>
|
|
222
|
-
}
|
|
223
|
-
</ul>
|
|
224
|
-
</div>
|
|
225
|
-
</ng-template>
|
|
226
|
-
|
|
227
|
-
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()"
|
|
228
|
-
>{{ 'mode.nav' | i18n }}
|
|
229
|
-
</div>
|
|
230
|
-
|
|
231
|
-
<div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
|
|
232
|
-
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
233
|
-
<div class="yz-application-topic-list">
|
|
234
|
-
@if (showAllMenu) {
|
|
235
|
-
<div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text" (click)="attachNav('all')"
|
|
236
|
-
>{{ 'mode.nav.all' | i18n }}
|
|
237
|
-
</div>
|
|
238
|
-
}
|
|
239
|
-
@if (showMineMenu) {
|
|
240
|
-
<div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')"
|
|
241
|
-
>{{ 'mode.nav.mine' | i18n }}
|
|
242
|
-
</div>
|
|
243
|
-
}
|
|
244
|
-
@for (nav of state.topics; track nav) {
|
|
245
|
-
<div
|
|
246
|
-
data-event-id="_nav_topic"
|
|
247
|
-
[attr.data-name]="nav.name | i18n"
|
|
248
|
-
class="yz-application-text"
|
|
249
|
-
(click)="attachNav('other', nav)"
|
|
250
|
-
>{{ nav.name | i18n }}
|
|
251
|
-
</div>
|
|
252
|
-
}
|
|
253
|
-
</div>
|
|
254
|
-
</div>
|
|
255
|
-
<div nz-col [nzSpan]="21" class="yz-application-container">
|
|
256
|
-
@switch (state.type) {
|
|
257
|
-
@case ('all') {
|
|
258
|
-
<div>
|
|
259
|
-
<ng-template [ngTemplateOutlet]="search" />
|
|
260
|
-
<ng-template [ngTemplateOutlet]="ld" />
|
|
261
|
-
</div>
|
|
262
|
-
}
|
|
263
|
-
@case ('mine') {
|
|
264
|
-
<div>
|
|
265
|
-
<ng-template [ngTemplateOutlet]="search" />
|
|
266
|
-
<ng-template [ngTemplateOutlet]="ld" />
|
|
267
|
-
</div>
|
|
268
|
-
}
|
|
269
|
-
@case ('other') {
|
|
270
|
-
<div class="yz-application-list yz-application-list-other">
|
|
271
|
-
<div class="yz-application-list-item">
|
|
272
|
-
<ul>
|
|
273
|
-
@for (nav of state.list; track nav) {
|
|
274
|
-
<li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" (click)="open(nav)">
|
|
275
|
-
<a href="javascript:;">
|
|
276
|
-
<h4>{{ nav.name | i18n }}</h4>
|
|
277
|
-
<p>{{ nav.intro | i18n }}</p>
|
|
278
|
-
</a>
|
|
279
|
-
</li>
|
|
280
|
-
}
|
|
281
|
-
</ul>
|
|
282
|
-
</div>
|
|
283
|
-
</div>
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
</div>
|
|
287
|
-
</div>
|
|
288
|
-
`, isInline: true, dependencies: [{ kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.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: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzGridModule }] }); }
|
|
289
|
-
}
|
|
290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
291
|
-
type: Component,
|
|
292
|
-
args: [{
|
|
293
|
-
selector: `yunzai-layout-nav-application`,
|
|
294
|
-
template: `
|
|
295
|
-
<ng-template #search>
|
|
296
|
-
<div nz-row class="yz-application-list-search">
|
|
297
|
-
<nz-input-group [nzPrefix]="prefixTemplate">
|
|
298
|
-
<input
|
|
299
|
-
data-event-id="_nav_search"
|
|
300
|
-
type="text"
|
|
301
|
-
nz-input
|
|
302
|
-
placeholder="{{ 'application.search' | i18n }}"
|
|
303
|
-
[(ngModel)]="state.search"
|
|
304
|
-
(ngModelChange)="onSearch()"
|
|
305
|
-
/>
|
|
306
|
-
<ng-template #prefixTemplate>
|
|
307
|
-
<i nz-icon nzType="search" nzTheme="outline"></i>
|
|
308
|
-
</ng-template>
|
|
309
|
-
</nz-input-group>
|
|
310
|
-
</div>
|
|
311
|
-
</ng-template>
|
|
312
|
-
|
|
313
|
-
<ng-template #ld>
|
|
314
|
-
<div class="yz-application-list">
|
|
315
|
-
<ul>
|
|
316
|
-
@for (topic of state.list; track topic) {
|
|
317
|
-
<li>
|
|
318
|
-
<h5>{{ topic.name | i18n }}</h5>
|
|
319
|
-
@for (nav of topic.children; track nav) {
|
|
320
|
-
<a
|
|
321
|
-
data-event-id="_nav_item"
|
|
322
|
-
[attr.data-name]="nav.name | i18n"
|
|
323
|
-
href="javascript:;"
|
|
324
|
-
(click)="open(nav)"
|
|
325
|
-
>{{ nav.name | i18n }}</a
|
|
326
|
-
>
|
|
327
|
-
}
|
|
328
|
-
</li>
|
|
329
|
-
}
|
|
330
|
-
</ul>
|
|
331
|
-
</div>
|
|
332
|
-
</ng-template>
|
|
333
|
-
|
|
334
|
-
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()"
|
|
335
|
-
>{{ 'mode.nav' | i18n }}
|
|
336
|
-
</div>
|
|
337
|
-
|
|
338
|
-
<div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
|
|
339
|
-
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
340
|
-
<div class="yz-application-topic-list">
|
|
341
|
-
@if (showAllMenu) {
|
|
342
|
-
<div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text" (click)="attachNav('all')"
|
|
343
|
-
>{{ 'mode.nav.all' | i18n }}
|
|
344
|
-
</div>
|
|
345
|
-
}
|
|
346
|
-
@if (showMineMenu) {
|
|
347
|
-
<div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')"
|
|
348
|
-
>{{ 'mode.nav.mine' | i18n }}
|
|
349
|
-
</div>
|
|
350
|
-
}
|
|
351
|
-
@for (nav of state.topics; track nav) {
|
|
352
|
-
<div
|
|
353
|
-
data-event-id="_nav_topic"
|
|
354
|
-
[attr.data-name]="nav.name | i18n"
|
|
355
|
-
class="yz-application-text"
|
|
356
|
-
(click)="attachNav('other', nav)"
|
|
357
|
-
>{{ nav.name | i18n }}
|
|
358
|
-
</div>
|
|
359
|
-
}
|
|
360
|
-
</div>
|
|
361
|
-
</div>
|
|
362
|
-
<div nz-col [nzSpan]="21" class="yz-application-container">
|
|
363
|
-
@switch (state.type) {
|
|
364
|
-
@case ('all') {
|
|
365
|
-
<div>
|
|
366
|
-
<ng-template [ngTemplateOutlet]="search" />
|
|
367
|
-
<ng-template [ngTemplateOutlet]="ld" />
|
|
368
|
-
</div>
|
|
369
|
-
}
|
|
370
|
-
@case ('mine') {
|
|
371
|
-
<div>
|
|
372
|
-
<ng-template [ngTemplateOutlet]="search" />
|
|
373
|
-
<ng-template [ngTemplateOutlet]="ld" />
|
|
374
|
-
</div>
|
|
375
|
-
}
|
|
376
|
-
@case ('other') {
|
|
377
|
-
<div class="yz-application-list yz-application-list-other">
|
|
378
|
-
<div class="yz-application-list-item">
|
|
379
|
-
<ul>
|
|
380
|
-
@for (nav of state.list; track nav) {
|
|
381
|
-
<li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" (click)="open(nav)">
|
|
382
|
-
<a href="javascript:;">
|
|
383
|
-
<h4>{{ nav.name | i18n }}</h4>
|
|
384
|
-
<p>{{ nav.intro | i18n }}</p>
|
|
385
|
-
</a>
|
|
386
|
-
</li>
|
|
387
|
-
}
|
|
388
|
-
</ul>
|
|
389
|
-
</div>
|
|
390
|
-
</div>
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
`,
|
|
396
|
-
standalone: true,
|
|
397
|
-
imports: [I18nPipe, FormsModule, NzFormModule, NzInputModule, CommonModule, NzGridModule]
|
|
398
|
-
}]
|
|
399
|
-
}] });
|
|
400
|
-
|
|
401
|
-
class YunzaiLayoutNavGroupComponent {
|
|
402
|
-
constructor() {
|
|
403
|
-
this.http = inject(_HttpClient);
|
|
404
|
-
this.destroy$ = new Subject();
|
|
405
|
-
this.win = inject(WINDOW);
|
|
406
|
-
this.state = {
|
|
407
|
-
topics: []
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
ngOnInit() {
|
|
411
|
-
const [, getTopics] = useLocalStorageHeader();
|
|
412
|
-
this.state.topics = getTopics() || [];
|
|
413
|
-
}
|
|
414
|
-
open(topic) {
|
|
415
|
-
if (topic.key) {
|
|
416
|
-
this.http
|
|
417
|
-
.post(`/app-manager/web-scan/save`, {
|
|
418
|
-
appId: topic.key,
|
|
419
|
-
createDate: new Date()
|
|
420
|
-
})
|
|
421
|
-
.pipe(takeUntil(this.destroy$))
|
|
422
|
-
.subscribe();
|
|
423
|
-
}
|
|
424
|
-
switch (topic.target) {
|
|
425
|
-
case 'href':
|
|
426
|
-
this.win.location.href = topic.url;
|
|
427
|
-
break;
|
|
428
|
-
case 'blank':
|
|
429
|
-
this.win.
|
|
430
|
-
break;
|
|
431
|
-
case 'target':
|
|
432
|
-
this.win.
|
|
433
|
-
break;
|
|
434
|
-
default:
|
|
435
|
-
this.win.location.href = topic.url;
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
ngOnDestroy() {
|
|
440
|
-
this.destroy$.complete();
|
|
441
|
-
}
|
|
442
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
443
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
444
|
-
<div class="yz-application-group">
|
|
445
|
-
<nz-tabset>
|
|
446
|
-
@for (menu of state.topics; track menu) {
|
|
447
|
-
<nz-tab [nzTitle]="groupTitleTpl">
|
|
448
|
-
<ng-template #groupTitleTpl>
|
|
449
|
-
<a
|
|
450
|
-
data-event-id="_nav_topic"
|
|
451
|
-
[attr.data-name]="menu.name | i18n"
|
|
452
|
-
nz-dropdown
|
|
453
|
-
[nzDropdownMenu]="menuTpl"
|
|
454
|
-
[nzTrigger]="'click'"
|
|
455
|
-
[nzOverlayClassName]="'yz-application-dropdown'"
|
|
456
|
-
>
|
|
457
|
-
@if (menu.icon) {
|
|
458
|
-
<i nz-icon [nzType]="menu.icon" nzTheme="outline"></i>
|
|
459
|
-
}
|
|
460
|
-
{{ menu.name | i18n }}
|
|
461
|
-
@if (menu.children && menu.children.length > 0) {
|
|
462
|
-
<i nz-icon nzType="down" nzTheme="outline"></i>
|
|
463
|
-
}
|
|
464
|
-
</a>
|
|
465
|
-
<nz-dropdown-menu #menuTpl="nzDropdownMenu">
|
|
466
|
-
@if (menu.children && menu.children.length > 0) {
|
|
467
|
-
<ul nz-menu nzSelectable>
|
|
468
|
-
@for (item of menu.children; track item) {
|
|
469
|
-
<ng-container>
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
[
|
|
508
|
-
|
|
509
|
-
[
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
this.
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
//
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
<ng-container *ngSwitchCase="NavType.
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
[
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
>
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}}</nz-descriptions-item>
|
|
858
|
-
<nz-descriptions-item nzTitle="
|
|
859
|
-
<nz-descriptions-item nzTitle="
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
<ng-container *ngSwitchCase="NavType.
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
<ng-container *ngSwitchCase="NavType.
|
|
934
|
-
<i nz-icon nzType="
|
|
935
|
-
</ng-container>
|
|
936
|
-
<ng-container *ngSwitchCase="NavType.
|
|
937
|
-
<i nz-icon nzType="
|
|
938
|
-
</ng-container>
|
|
939
|
-
<ng-container *
|
|
940
|
-
<i nz-icon nzType="
|
|
941
|
-
</ng-container>
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
</
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
<
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1
|
+
import * as i4 from '@angular/common';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { inject, Component, NgModule } from '@angular/core';
|
|
5
|
+
import * as i1 from '@angular/forms';
|
|
6
|
+
import { FormsModule } from '@angular/forms';
|
|
7
|
+
import { _HttpClient, YunzaiHttpI18NService, I18nPipe } from '@yelon/theme';
|
|
8
|
+
import * as i3$1 from 'ng-zorro-antd/dropdown';
|
|
9
|
+
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
10
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
11
|
+
import * as i2 from 'ng-zorro-antd/grid';
|
|
12
|
+
import { NzGridModule } from 'ng-zorro-antd/grid';
|
|
13
|
+
import * as i1$1 from 'ng-zorro-antd/icon';
|
|
14
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
15
|
+
import * as i3 from 'ng-zorro-antd/input';
|
|
16
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
17
|
+
import * as i4$1 from 'ng-zorro-antd/tabs';
|
|
18
|
+
import { NzTabsModule } from 'ng-zorro-antd/tabs';
|
|
19
|
+
import { HttpClient } from '@angular/common/http';
|
|
20
|
+
import * as i2$2 from '@angular/router';
|
|
21
|
+
import { RouterModule } from '@angular/router';
|
|
22
|
+
import * as i3$2 from '@yelon/abc/reuse-tab';
|
|
23
|
+
import { ReuseTabModule } from '@yelon/abc/reuse-tab';
|
|
24
|
+
import * as i13 from '@yelon/bis/yunzai-widgets';
|
|
25
|
+
import { YunzaiWidgetsModule } from '@yelon/bis/yunzai-widgets';
|
|
26
|
+
import { StompService } from '@yelon/socket';
|
|
27
|
+
import * as i1$2 from '@yelon/theme/layout-default';
|
|
28
|
+
import { LayoutDisplayService, LayoutDefaultModule } from '@yelon/theme/layout-default';
|
|
29
|
+
import * as i12 from '@yelon/theme/theme-btn';
|
|
30
|
+
import { ThemeBtnModule } from '@yelon/theme/theme-btn';
|
|
31
|
+
import { YunzaiConfigService, WINDOW, useLocalStorageHeader, YUNZAI_CONFIG, NavType, useLocalStorageProjectInfo, hasFavicon, setFavicon, useLocalStorageCurrent, useLocalStorageHeaderType, useLocalStorageDefaultRoute, log } from '@yelon/util';
|
|
32
|
+
import * as i7 from 'ng-zorro-antd/avatar';
|
|
33
|
+
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
|
|
34
|
+
import * as i11 from 'ng-zorro-antd/descriptions';
|
|
35
|
+
import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions';
|
|
36
|
+
import * as i9 from 'ng-zorro-antd/modal';
|
|
37
|
+
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
38
|
+
import * as i10 from 'ng-zorro-antd/skeleton';
|
|
39
|
+
import { NzSkeletonModule } from 'ng-zorro-antd/skeleton';
|
|
40
|
+
import { Subject, takeUntil } from 'rxjs';
|
|
41
|
+
import { mergeBisConfig } from '@yelon/bis/config';
|
|
42
|
+
import * as i2$1 from 'ng-zorro-antd/menu';
|
|
43
|
+
|
|
44
|
+
class YunzaiNavApplicationComponent {
|
|
45
|
+
constructor() {
|
|
46
|
+
this.config = mergeBisConfig(inject(YunzaiConfigService));
|
|
47
|
+
this.http = inject(_HttpClient);
|
|
48
|
+
this.win = inject(WINDOW);
|
|
49
|
+
this.i18n = inject(YunzaiHttpI18NService);
|
|
50
|
+
this.destroy$ = new Subject();
|
|
51
|
+
this.state = {
|
|
52
|
+
active: false,
|
|
53
|
+
type: 'all',
|
|
54
|
+
topic: undefined,
|
|
55
|
+
topics: [],
|
|
56
|
+
list: [],
|
|
57
|
+
search: null
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
get showAllMenu() {
|
|
61
|
+
if (this.config.nav)
|
|
62
|
+
return this.config.nav.all;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
get showMineMenu() {
|
|
66
|
+
if (this.config.nav)
|
|
67
|
+
return this.config.nav.mine;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
ngOnInit() {
|
|
71
|
+
this.fetchAllTopic();
|
|
72
|
+
this.attachNav('all');
|
|
73
|
+
this.win.addEventListener('click', (event) => {
|
|
74
|
+
const { target } = event;
|
|
75
|
+
const btn = this.win.document.getElementById('navBtn');
|
|
76
|
+
const dropdown = this.win.document.getElementById('navDropdown');
|
|
77
|
+
if (btn && dropdown && !dropdown.contains(target) && !btn.contains(target)) {
|
|
78
|
+
this.state.active = false;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
fetchAllTopic() {
|
|
83
|
+
const [, getTopics] = useLocalStorageHeader();
|
|
84
|
+
this.state.topics = getTopics();
|
|
85
|
+
}
|
|
86
|
+
attachNav(type, topic) {
|
|
87
|
+
this.state.type = type;
|
|
88
|
+
this.clearSearch();
|
|
89
|
+
if (type === 'all') {
|
|
90
|
+
this.displayAllNav();
|
|
91
|
+
}
|
|
92
|
+
if (type === 'mine') {
|
|
93
|
+
this.displayMineNav();
|
|
94
|
+
}
|
|
95
|
+
if (type === 'other' && topic) {
|
|
96
|
+
this.displayOtherNav(topic);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
clearSearch() {
|
|
100
|
+
this.state.search = null;
|
|
101
|
+
}
|
|
102
|
+
displayAllNav() {
|
|
103
|
+
const [, getTopics] = useLocalStorageHeader();
|
|
104
|
+
this.state.list = getTopics();
|
|
105
|
+
}
|
|
106
|
+
displayMineNav() {
|
|
107
|
+
const [, getTopics] = useLocalStorageHeader();
|
|
108
|
+
this.state.list = getTopics()
|
|
109
|
+
.filter((topic) => {
|
|
110
|
+
topic.children = topic.children.filter((child) => {
|
|
111
|
+
return child.auth;
|
|
112
|
+
});
|
|
113
|
+
return topic;
|
|
114
|
+
})
|
|
115
|
+
.filter((topic) => {
|
|
116
|
+
return topic.children.length > 0;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
displayOtherNav(topic) {
|
|
120
|
+
const [, getTopics] = useLocalStorageHeader();
|
|
121
|
+
this.state.topic = topic;
|
|
122
|
+
const temp = getTopics();
|
|
123
|
+
this.state.list = temp.filter(t => t.key === topic.key)[0].children;
|
|
124
|
+
}
|
|
125
|
+
diffChange(flag) {
|
|
126
|
+
if (flag) {
|
|
127
|
+
this.state.active = flag;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
this.state.active = !this.state.active;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
open(topic) {
|
|
134
|
+
if (topic.key) {
|
|
135
|
+
this.http
|
|
136
|
+
.post(`/app-manager/web-scan/save`, {
|
|
137
|
+
appId: topic.key,
|
|
138
|
+
createDate: new Date()
|
|
139
|
+
})
|
|
140
|
+
.pipe(takeUntil(this.destroy$))
|
|
141
|
+
.subscribe();
|
|
142
|
+
}
|
|
143
|
+
switch (topic.target) {
|
|
144
|
+
case 'href':
|
|
145
|
+
this.win.location.href = topic.url;
|
|
146
|
+
break;
|
|
147
|
+
case 'blank':
|
|
148
|
+
this.win.open(topic.url);
|
|
149
|
+
break;
|
|
150
|
+
case 'target':
|
|
151
|
+
this.win.open(topic.url);
|
|
152
|
+
break;
|
|
153
|
+
default:
|
|
154
|
+
this.win.location.href = topic.url;
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
onSearch() {
|
|
159
|
+
const [, getTopics] = useLocalStorageHeader();
|
|
160
|
+
const temp = getTopics();
|
|
161
|
+
if (this.state.search) {
|
|
162
|
+
this.state.list = temp
|
|
163
|
+
.filter((topic) => {
|
|
164
|
+
if (this.i18n.fanyi(topic.name).includes(this.state.search)) {
|
|
165
|
+
return topic;
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
topic.children = topic.children.filter((child) => {
|
|
169
|
+
return this.i18n.fanyi(child.name).includes(this.state.search);
|
|
170
|
+
});
|
|
171
|
+
return topic;
|
|
172
|
+
}
|
|
173
|
+
})
|
|
174
|
+
.filter((topic) => {
|
|
175
|
+
return topic.children.length > 0;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
const [, getTopics] = useLocalStorageHeader();
|
|
180
|
+
this.state.list = getTopics();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
ngOnDestroy() {
|
|
184
|
+
this.destroy$.complete();
|
|
185
|
+
}
|
|
186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiNavApplicationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
187
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.6", type: YunzaiNavApplicationComponent, isStandalone: true, selector: "yunzai-layout-nav-application", ngImport: i0, template: `
|
|
188
|
+
<ng-template #search>
|
|
189
|
+
<div nz-row class="yz-application-list-search">
|
|
190
|
+
<nz-input-group [nzPrefix]="prefixTemplate">
|
|
191
|
+
<input
|
|
192
|
+
data-event-id="_nav_search"
|
|
193
|
+
type="text"
|
|
194
|
+
nz-input
|
|
195
|
+
placeholder="{{ 'application.search' | i18n }}"
|
|
196
|
+
[(ngModel)]="state.search"
|
|
197
|
+
(ngModelChange)="onSearch()"
|
|
198
|
+
/>
|
|
199
|
+
<ng-template #prefixTemplate>
|
|
200
|
+
<i nz-icon nzType="search" nzTheme="outline"></i>
|
|
201
|
+
</ng-template>
|
|
202
|
+
</nz-input-group>
|
|
203
|
+
</div>
|
|
204
|
+
</ng-template>
|
|
205
|
+
|
|
206
|
+
<ng-template #ld>
|
|
207
|
+
<div class="yz-application-list">
|
|
208
|
+
<ul>
|
|
209
|
+
@for (topic of state.list; track topic) {
|
|
210
|
+
<li>
|
|
211
|
+
<h5>{{ topic.name | i18n }}</h5>
|
|
212
|
+
@for (nav of topic.children; track nav) {
|
|
213
|
+
<a
|
|
214
|
+
data-event-id="_nav_item"
|
|
215
|
+
[attr.data-name]="nav.name | i18n"
|
|
216
|
+
href="javascript:;"
|
|
217
|
+
(click)="open(nav)"
|
|
218
|
+
>{{ nav.name | i18n }}</a
|
|
219
|
+
>
|
|
220
|
+
}
|
|
221
|
+
</li>
|
|
222
|
+
}
|
|
223
|
+
</ul>
|
|
224
|
+
</div>
|
|
225
|
+
</ng-template>
|
|
226
|
+
|
|
227
|
+
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()"
|
|
228
|
+
>{{ 'mode.nav' | i18n }}
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
<div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
|
|
232
|
+
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
233
|
+
<div class="yz-application-topic-list">
|
|
234
|
+
@if (showAllMenu) {
|
|
235
|
+
<div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text" (click)="attachNav('all')"
|
|
236
|
+
>{{ 'mode.nav.all' | i18n }}
|
|
237
|
+
</div>
|
|
238
|
+
}
|
|
239
|
+
@if (showMineMenu) {
|
|
240
|
+
<div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')"
|
|
241
|
+
>{{ 'mode.nav.mine' | i18n }}
|
|
242
|
+
</div>
|
|
243
|
+
}
|
|
244
|
+
@for (nav of state.topics; track nav) {
|
|
245
|
+
<div
|
|
246
|
+
data-event-id="_nav_topic"
|
|
247
|
+
[attr.data-name]="nav.name | i18n"
|
|
248
|
+
class="yz-application-text"
|
|
249
|
+
(click)="attachNav('other', nav)"
|
|
250
|
+
>{{ nav.name | i18n }}
|
|
251
|
+
</div>
|
|
252
|
+
}
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
<div nz-col [nzSpan]="21" class="yz-application-container">
|
|
256
|
+
@switch (state.type) {
|
|
257
|
+
@case ('all') {
|
|
258
|
+
<div>
|
|
259
|
+
<ng-template [ngTemplateOutlet]="search" />
|
|
260
|
+
<ng-template [ngTemplateOutlet]="ld" />
|
|
261
|
+
</div>
|
|
262
|
+
}
|
|
263
|
+
@case ('mine') {
|
|
264
|
+
<div>
|
|
265
|
+
<ng-template [ngTemplateOutlet]="search" />
|
|
266
|
+
<ng-template [ngTemplateOutlet]="ld" />
|
|
267
|
+
</div>
|
|
268
|
+
}
|
|
269
|
+
@case ('other') {
|
|
270
|
+
<div class="yz-application-list yz-application-list-other">
|
|
271
|
+
<div class="yz-application-list-item">
|
|
272
|
+
<ul>
|
|
273
|
+
@for (nav of state.list; track nav) {
|
|
274
|
+
<li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" (click)="open(nav)">
|
|
275
|
+
<a href="javascript:;">
|
|
276
|
+
<h4>{{ nav.name | i18n }}</h4>
|
|
277
|
+
<p>{{ nav.intro | i18n }}</p>
|
|
278
|
+
</a>
|
|
279
|
+
</li>
|
|
280
|
+
}
|
|
281
|
+
</ul>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
`, isInline: true, dependencies: [{ kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i2.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: i2.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzGridModule }] }); }
|
|
289
|
+
}
|
|
290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiNavApplicationComponent, decorators: [{
|
|
291
|
+
type: Component,
|
|
292
|
+
args: [{
|
|
293
|
+
selector: `yunzai-layout-nav-application`,
|
|
294
|
+
template: `
|
|
295
|
+
<ng-template #search>
|
|
296
|
+
<div nz-row class="yz-application-list-search">
|
|
297
|
+
<nz-input-group [nzPrefix]="prefixTemplate">
|
|
298
|
+
<input
|
|
299
|
+
data-event-id="_nav_search"
|
|
300
|
+
type="text"
|
|
301
|
+
nz-input
|
|
302
|
+
placeholder="{{ 'application.search' | i18n }}"
|
|
303
|
+
[(ngModel)]="state.search"
|
|
304
|
+
(ngModelChange)="onSearch()"
|
|
305
|
+
/>
|
|
306
|
+
<ng-template #prefixTemplate>
|
|
307
|
+
<i nz-icon nzType="search" nzTheme="outline"></i>
|
|
308
|
+
</ng-template>
|
|
309
|
+
</nz-input-group>
|
|
310
|
+
</div>
|
|
311
|
+
</ng-template>
|
|
312
|
+
|
|
313
|
+
<ng-template #ld>
|
|
314
|
+
<div class="yz-application-list">
|
|
315
|
+
<ul>
|
|
316
|
+
@for (topic of state.list; track topic) {
|
|
317
|
+
<li>
|
|
318
|
+
<h5>{{ topic.name | i18n }}</h5>
|
|
319
|
+
@for (nav of topic.children; track nav) {
|
|
320
|
+
<a
|
|
321
|
+
data-event-id="_nav_item"
|
|
322
|
+
[attr.data-name]="nav.name | i18n"
|
|
323
|
+
href="javascript:;"
|
|
324
|
+
(click)="open(nav)"
|
|
325
|
+
>{{ nav.name | i18n }}</a
|
|
326
|
+
>
|
|
327
|
+
}
|
|
328
|
+
</li>
|
|
329
|
+
}
|
|
330
|
+
</ul>
|
|
331
|
+
</div>
|
|
332
|
+
</ng-template>
|
|
333
|
+
|
|
334
|
+
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item" (click)="diffChange()"
|
|
335
|
+
>{{ 'mode.nav' | i18n }}
|
|
336
|
+
</div>
|
|
337
|
+
|
|
338
|
+
<div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
|
|
339
|
+
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
340
|
+
<div class="yz-application-topic-list">
|
|
341
|
+
@if (showAllMenu) {
|
|
342
|
+
<div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text" (click)="attachNav('all')"
|
|
343
|
+
>{{ 'mode.nav.all' | i18n }}
|
|
344
|
+
</div>
|
|
345
|
+
}
|
|
346
|
+
@if (showMineMenu) {
|
|
347
|
+
<div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text" (click)="attachNav('mine')"
|
|
348
|
+
>{{ 'mode.nav.mine' | i18n }}
|
|
349
|
+
</div>
|
|
350
|
+
}
|
|
351
|
+
@for (nav of state.topics; track nav) {
|
|
352
|
+
<div
|
|
353
|
+
data-event-id="_nav_topic"
|
|
354
|
+
[attr.data-name]="nav.name | i18n"
|
|
355
|
+
class="yz-application-text"
|
|
356
|
+
(click)="attachNav('other', nav)"
|
|
357
|
+
>{{ nav.name | i18n }}
|
|
358
|
+
</div>
|
|
359
|
+
}
|
|
360
|
+
</div>
|
|
361
|
+
</div>
|
|
362
|
+
<div nz-col [nzSpan]="21" class="yz-application-container">
|
|
363
|
+
@switch (state.type) {
|
|
364
|
+
@case ('all') {
|
|
365
|
+
<div>
|
|
366
|
+
<ng-template [ngTemplateOutlet]="search" />
|
|
367
|
+
<ng-template [ngTemplateOutlet]="ld" />
|
|
368
|
+
</div>
|
|
369
|
+
}
|
|
370
|
+
@case ('mine') {
|
|
371
|
+
<div>
|
|
372
|
+
<ng-template [ngTemplateOutlet]="search" />
|
|
373
|
+
<ng-template [ngTemplateOutlet]="ld" />
|
|
374
|
+
</div>
|
|
375
|
+
}
|
|
376
|
+
@case ('other') {
|
|
377
|
+
<div class="yz-application-list yz-application-list-other">
|
|
378
|
+
<div class="yz-application-list-item">
|
|
379
|
+
<ul>
|
|
380
|
+
@for (nav of state.list; track nav) {
|
|
381
|
+
<li data-event-id="_nav_item" [attr.data-name]="nav.name | i18n" (click)="open(nav)">
|
|
382
|
+
<a href="javascript:;">
|
|
383
|
+
<h4>{{ nav.name | i18n }}</h4>
|
|
384
|
+
<p>{{ nav.intro | i18n }}</p>
|
|
385
|
+
</a>
|
|
386
|
+
</li>
|
|
387
|
+
}
|
|
388
|
+
</ul>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
`,
|
|
396
|
+
standalone: true,
|
|
397
|
+
imports: [I18nPipe, FormsModule, NzFormModule, NzInputModule, CommonModule, NzGridModule]
|
|
398
|
+
}]
|
|
399
|
+
}] });
|
|
400
|
+
|
|
401
|
+
class YunzaiLayoutNavGroupComponent {
|
|
402
|
+
constructor() {
|
|
403
|
+
this.http = inject(_HttpClient);
|
|
404
|
+
this.destroy$ = new Subject();
|
|
405
|
+
this.win = inject(WINDOW);
|
|
406
|
+
this.state = {
|
|
407
|
+
topics: []
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
ngOnInit() {
|
|
411
|
+
const [, getTopics] = useLocalStorageHeader();
|
|
412
|
+
this.state.topics = getTopics() || [];
|
|
413
|
+
}
|
|
414
|
+
open(topic) {
|
|
415
|
+
if (topic.key) {
|
|
416
|
+
this.http
|
|
417
|
+
.post(`/app-manager/web-scan/save`, {
|
|
418
|
+
appId: topic.key,
|
|
419
|
+
createDate: new Date()
|
|
420
|
+
})
|
|
421
|
+
.pipe(takeUntil(this.destroy$))
|
|
422
|
+
.subscribe();
|
|
423
|
+
}
|
|
424
|
+
switch (topic.target) {
|
|
425
|
+
case 'href':
|
|
426
|
+
this.win.location.href = topic.url;
|
|
427
|
+
break;
|
|
428
|
+
case 'blank':
|
|
429
|
+
this.win.open(topic.url);
|
|
430
|
+
break;
|
|
431
|
+
case 'target':
|
|
432
|
+
this.win.open(topic.url);
|
|
433
|
+
break;
|
|
434
|
+
default:
|
|
435
|
+
this.win.location.href = topic.url;
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
ngOnDestroy() {
|
|
440
|
+
this.destroy$.complete();
|
|
441
|
+
}
|
|
442
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
443
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.6", type: YunzaiLayoutNavGroupComponent, isStandalone: true, selector: "yunzai-layout-nav-group", ngImport: i0, template: `
|
|
444
|
+
<div class="yz-application-group">
|
|
445
|
+
<nz-tabset>
|
|
446
|
+
@for (menu of state.topics; track menu) {
|
|
447
|
+
<nz-tab [nzTitle]="groupTitleTpl">
|
|
448
|
+
<ng-template #groupTitleTpl>
|
|
449
|
+
<a
|
|
450
|
+
data-event-id="_nav_topic"
|
|
451
|
+
[attr.data-name]="menu.name | i18n"
|
|
452
|
+
nz-dropdown
|
|
453
|
+
[nzDropdownMenu]="menuTpl"
|
|
454
|
+
[nzTrigger]="'click'"
|
|
455
|
+
[nzOverlayClassName]="'yz-application-dropdown'"
|
|
456
|
+
>
|
|
457
|
+
@if (menu.icon) {
|
|
458
|
+
<i nz-icon [nzType]="menu.icon" nzTheme="outline"></i>
|
|
459
|
+
}
|
|
460
|
+
{{ menu.name | i18n }}
|
|
461
|
+
@if (menu.children && menu.children.length > 0) {
|
|
462
|
+
<i nz-icon nzType="down" nzTheme="outline"></i>
|
|
463
|
+
}
|
|
464
|
+
</a>
|
|
465
|
+
<nz-dropdown-menu #menuTpl="nzDropdownMenu">
|
|
466
|
+
@if (menu.children && menu.children.length > 0) {
|
|
467
|
+
<ul nz-menu nzSelectable>
|
|
468
|
+
@for (item of menu.children; track item) {
|
|
469
|
+
<ng-container>
|
|
470
|
+
@if (item.auth) {
|
|
471
|
+
<li
|
|
472
|
+
data-event-id="_nav_item"
|
|
473
|
+
[attr.data-name]="item.name | i18n"
|
|
474
|
+
nz-menu-item
|
|
475
|
+
(click)="open(item)"
|
|
476
|
+
>
|
|
477
|
+
@if (item.icon) {
|
|
478
|
+
<i nz-icon [nzType]="item.icon" nzTheme="outline"></i>
|
|
479
|
+
}
|
|
480
|
+
{{ item.name | i18n }}
|
|
481
|
+
</li>
|
|
482
|
+
}
|
|
483
|
+
</ng-container>
|
|
484
|
+
}
|
|
485
|
+
</ul>
|
|
486
|
+
}
|
|
487
|
+
</nz-dropdown-menu>
|
|
488
|
+
</ng-template>
|
|
489
|
+
</nz-tab>
|
|
490
|
+
}
|
|
491
|
+
</nz-tabset>
|
|
492
|
+
</div>
|
|
493
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$1.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i2$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i2$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i3$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i3$1.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i3$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i4$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: i4$1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }] }); }
|
|
494
|
+
}
|
|
495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutNavGroupComponent, decorators: [{
|
|
496
|
+
type: Component,
|
|
497
|
+
args: [{
|
|
498
|
+
selector: `yunzai-layout-nav-group`,
|
|
499
|
+
template: `
|
|
500
|
+
<div class="yz-application-group">
|
|
501
|
+
<nz-tabset>
|
|
502
|
+
@for (menu of state.topics; track menu) {
|
|
503
|
+
<nz-tab [nzTitle]="groupTitleTpl">
|
|
504
|
+
<ng-template #groupTitleTpl>
|
|
505
|
+
<a
|
|
506
|
+
data-event-id="_nav_topic"
|
|
507
|
+
[attr.data-name]="menu.name | i18n"
|
|
508
|
+
nz-dropdown
|
|
509
|
+
[nzDropdownMenu]="menuTpl"
|
|
510
|
+
[nzTrigger]="'click'"
|
|
511
|
+
[nzOverlayClassName]="'yz-application-dropdown'"
|
|
512
|
+
>
|
|
513
|
+
@if (menu.icon) {
|
|
514
|
+
<i nz-icon [nzType]="menu.icon" nzTheme="outline"></i>
|
|
515
|
+
}
|
|
516
|
+
{{ menu.name | i18n }}
|
|
517
|
+
@if (menu.children && menu.children.length > 0) {
|
|
518
|
+
<i nz-icon nzType="down" nzTheme="outline"></i>
|
|
519
|
+
}
|
|
520
|
+
</a>
|
|
521
|
+
<nz-dropdown-menu #menuTpl="nzDropdownMenu">
|
|
522
|
+
@if (menu.children && menu.children.length > 0) {
|
|
523
|
+
<ul nz-menu nzSelectable>
|
|
524
|
+
@for (item of menu.children; track item) {
|
|
525
|
+
<ng-container>
|
|
526
|
+
@if (item.auth) {
|
|
527
|
+
<li
|
|
528
|
+
data-event-id="_nav_item"
|
|
529
|
+
[attr.data-name]="item.name | i18n"
|
|
530
|
+
nz-menu-item
|
|
531
|
+
(click)="open(item)"
|
|
532
|
+
>
|
|
533
|
+
@if (item.icon) {
|
|
534
|
+
<i nz-icon [nzType]="item.icon" nzTheme="outline"></i>
|
|
535
|
+
}
|
|
536
|
+
{{ item.name | i18n }}
|
|
537
|
+
</li>
|
|
538
|
+
}
|
|
539
|
+
</ng-container>
|
|
540
|
+
}
|
|
541
|
+
</ul>
|
|
542
|
+
}
|
|
543
|
+
</nz-dropdown-menu>
|
|
544
|
+
</ng-template>
|
|
545
|
+
</nz-tab>
|
|
546
|
+
}
|
|
547
|
+
</nz-tabset>
|
|
548
|
+
</div>
|
|
549
|
+
`,
|
|
550
|
+
standalone: true,
|
|
551
|
+
imports: [NzIconModule, NzDropDownModule, I18nPipe, NzTabsModule]
|
|
552
|
+
}]
|
|
553
|
+
}] });
|
|
554
|
+
|
|
555
|
+
class YunzaiLayoutNavTileComponent {
|
|
556
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutNavTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
557
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.6", type: YunzaiLayoutNavTileComponent, isStandalone: true, selector: "yunzai-layout-nav-tile", ngImport: i0, template: `<ng-template />`, isInline: true }); }
|
|
558
|
+
}
|
|
559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutNavTileComponent, decorators: [{
|
|
560
|
+
type: Component,
|
|
561
|
+
args: [{
|
|
562
|
+
selector: `yunzai-layout-nav-tile`,
|
|
563
|
+
template: `<ng-template />`,
|
|
564
|
+
standalone: true
|
|
565
|
+
}]
|
|
566
|
+
}] });
|
|
567
|
+
|
|
568
|
+
class YunzaiLayoutBasicComponent {
|
|
569
|
+
constructor() {
|
|
570
|
+
this.stomp = inject(StompService);
|
|
571
|
+
this.win = inject(WINDOW);
|
|
572
|
+
this.layoutDisplayService = inject(LayoutDisplayService);
|
|
573
|
+
this.conf = inject(YUNZAI_CONFIG);
|
|
574
|
+
this.NavType = NavType;
|
|
575
|
+
this.state = {
|
|
576
|
+
options: {
|
|
577
|
+
logoExpanded: `./assets/logo-full.svg`,
|
|
578
|
+
logoCollapsed: `./assets/logo.svg`
|
|
579
|
+
},
|
|
580
|
+
aside: {
|
|
581
|
+
name: '',
|
|
582
|
+
intro: '',
|
|
583
|
+
icon: ''
|
|
584
|
+
},
|
|
585
|
+
display: {
|
|
586
|
+
nav: true,
|
|
587
|
+
aside: true,
|
|
588
|
+
reusetab: true
|
|
589
|
+
},
|
|
590
|
+
navType: NavType.APPLICATION
|
|
591
|
+
};
|
|
592
|
+
this.headerStyleList = [];
|
|
593
|
+
this.applicationModal = {
|
|
594
|
+
isVisible: false,
|
|
595
|
+
loading: false
|
|
596
|
+
};
|
|
597
|
+
this.httpClient = inject(HttpClient);
|
|
598
|
+
}
|
|
599
|
+
get options() {
|
|
600
|
+
return this.state.options;
|
|
601
|
+
}
|
|
602
|
+
get navType() {
|
|
603
|
+
return this.state.navType;
|
|
604
|
+
}
|
|
605
|
+
get aside() {
|
|
606
|
+
return this.state.aside;
|
|
607
|
+
}
|
|
608
|
+
get displayReusetab() {
|
|
609
|
+
return this.state.display.reusetab;
|
|
610
|
+
}
|
|
611
|
+
get reusetabCSS() {
|
|
612
|
+
let cascadingStyleSheet = {};
|
|
613
|
+
if (!this.state.display.nav) {
|
|
614
|
+
cascadingStyleSheet = {
|
|
615
|
+
...cascadingStyleSheet,
|
|
616
|
+
top: '0px'
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
if (!this.state.display.aside) {
|
|
620
|
+
cascadingStyleSheet = {
|
|
621
|
+
...cascadingStyleSheet,
|
|
622
|
+
left: '0px'
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
return cascadingStyleSheet;
|
|
626
|
+
}
|
|
627
|
+
ngOnInit() {
|
|
628
|
+
this.config = this.conf.bis;
|
|
629
|
+
this.initLogo();
|
|
630
|
+
this.initFavicon();
|
|
631
|
+
this.initNavType();
|
|
632
|
+
this.initAside();
|
|
633
|
+
this.addLayoutDisplayListener();
|
|
634
|
+
this.stomp.listen();
|
|
635
|
+
this.toIndex();
|
|
636
|
+
}
|
|
637
|
+
initFavicon() {
|
|
638
|
+
const [, getProjectInfo] = useLocalStorageProjectInfo();
|
|
639
|
+
const projectInfo = getProjectInfo();
|
|
640
|
+
if (projectInfo.faviconUrl) {
|
|
641
|
+
hasFavicon(projectInfo.faviconUrl).then((has) => {
|
|
642
|
+
if (has) {
|
|
643
|
+
setFavicon(projectInfo.faviconUrl);
|
|
644
|
+
}
|
|
645
|
+
else {
|
|
646
|
+
setFavicon('./assets/favicon.ico');
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
initAside() {
|
|
652
|
+
const [, getCurrent] = useLocalStorageCurrent();
|
|
653
|
+
const aside = getCurrent();
|
|
654
|
+
this.state.aside = { ...aside };
|
|
655
|
+
}
|
|
656
|
+
initLogo() {
|
|
657
|
+
const [, getProjectInfo] = useLocalStorageProjectInfo();
|
|
658
|
+
const projectInfo = getProjectInfo();
|
|
659
|
+
this.state.options.logoExpanded = projectInfo.maxLogoUrl ? projectInfo.maxLogoUrl : `./assets/logo-full.svg`;
|
|
660
|
+
this.state.options.logoCollapsed = projectInfo.miniLogoUrl ? projectInfo.miniLogoUrl : `./assets/logo.svg`;
|
|
661
|
+
}
|
|
662
|
+
initNavType() {
|
|
663
|
+
const [, getHeaderType] = useLocalStorageHeaderType();
|
|
664
|
+
const [, getProjectInfo] = useLocalStorageProjectInfo();
|
|
665
|
+
const navType = getHeaderType();
|
|
666
|
+
const projectInfo = getProjectInfo();
|
|
667
|
+
if (navType !== null) {
|
|
668
|
+
this.state.navType = navType;
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
this.state.navType = NavType.APPLICATION;
|
|
672
|
+
}
|
|
673
|
+
if (projectInfo.headerStyle && projectInfo.headerStyle.length > 0) {
|
|
674
|
+
this.headerStyleList = projectInfo.headerStyle;
|
|
675
|
+
const hasThis = this.headerStyleList.some(item => item.value === this.state.navType);
|
|
676
|
+
if (!hasThis) {
|
|
677
|
+
this.state.navType = projectInfo.headerStyle[0].value;
|
|
678
|
+
const [setHeaderType] = useLocalStorageHeaderType();
|
|
679
|
+
setHeaderType(this.state.navType);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
toIndex() {
|
|
684
|
+
const [, getDefaultRoute] = useLocalStorageDefaultRoute();
|
|
685
|
+
const defaultRoute = getDefaultRoute();
|
|
686
|
+
log('YunzaiLayoutBasicComponent: ', `todo: the default route was ${defaultRoute}, 但是还没想好如何实现.`);
|
|
687
|
+
}
|
|
688
|
+
onNavTypeChange(type) {
|
|
689
|
+
const [setHeaderType] = useLocalStorageHeaderType();
|
|
690
|
+
setHeaderType(type);
|
|
691
|
+
this.win.location.reload();
|
|
692
|
+
}
|
|
693
|
+
addLayoutDisplayListener() {
|
|
694
|
+
this.layoutDisplayService.listen('reuseTab', (display) => {
|
|
695
|
+
this.state.display.reusetab = display;
|
|
696
|
+
});
|
|
697
|
+
this.layoutDisplayService.listen('nav', (display) => {
|
|
698
|
+
this.state.display.nav = display;
|
|
699
|
+
});
|
|
700
|
+
this.layoutDisplayService.listen('aside', (display) => {
|
|
701
|
+
this.state.display.aside = display;
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
// 关于本应用
|
|
705
|
+
aboutApplication() {
|
|
706
|
+
const urlArr = window.location.pathname.split(`${this.config.baseUrl}/`);
|
|
707
|
+
if (urlArr.length > 1) {
|
|
708
|
+
// 应用标识,截取路径中 /backstage/后第一个字符串
|
|
709
|
+
// 例: http://222.30.194.61/backstage/auth/page/oafportal/#/base/menu 中 auth
|
|
710
|
+
const name = urlArr[1].split('/')[0];
|
|
711
|
+
this.applicationModal.isVisible = true;
|
|
712
|
+
this.applicationModal.loading = true;
|
|
713
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
714
|
+
this.httpClient.get(`/basic/api/app/aboutApp?name=${name}`).subscribe(
|
|
715
|
+
// @ts-ignore
|
|
716
|
+
(response) => {
|
|
717
|
+
this.applicationModal.loading = false;
|
|
718
|
+
if (response.data) {
|
|
719
|
+
this.applicationInfo = response.data;
|
|
720
|
+
}
|
|
721
|
+
}, () => {
|
|
722
|
+
this.applicationModal.loading = false;
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutBasicComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
727
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.6", type: YunzaiLayoutBasicComponent, isStandalone: true, selector: "yunzai-layout-basic", ngImport: i0, template: `
|
|
728
|
+
<layout-default [options]="options" [asideUser]="asideUserTpl" [content]="displayReusetab ? contentTpl : noneTpl">
|
|
729
|
+
<layout-default-header-item direction="left">
|
|
730
|
+
<ng-container [ngSwitch]="navType">
|
|
731
|
+
<ng-container *ngSwitchCase="NavType.APPLICATION">
|
|
732
|
+
<yunzai-layout-nav-application />
|
|
733
|
+
</ng-container>
|
|
734
|
+
<ng-container *ngSwitchCase="NavType.GROUP">
|
|
735
|
+
<yunzai-layout-nav-group />
|
|
736
|
+
</ng-container>
|
|
737
|
+
<ng-container *ngSwitchCase="NavType.TILE">
|
|
738
|
+
<yunzai-layout-nav-tile />
|
|
739
|
+
</ng-container>
|
|
740
|
+
<ng-container *ngSwitchCase="NavType.BLANK" />
|
|
741
|
+
<ng-container *ngSwitchCase="NavType.TABS" />
|
|
742
|
+
<ng-container *ngSwitchDefault>
|
|
743
|
+
<yunzai-layout-nav-application />
|
|
744
|
+
</ng-container>
|
|
745
|
+
</ng-container>
|
|
746
|
+
</layout-default-header-item>
|
|
747
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
748
|
+
<yunzai-header-notify />
|
|
749
|
+
</layout-default-header-item>
|
|
750
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
751
|
+
<theme-btn />
|
|
752
|
+
</layout-default-header-item>
|
|
753
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
754
|
+
<div
|
|
755
|
+
data-event-id="_nav_settings"
|
|
756
|
+
layout-default-header-item-trigger
|
|
757
|
+
nz-dropdown
|
|
758
|
+
[nzDropdownMenu]="settingsMenu"
|
|
759
|
+
nzTrigger="click"
|
|
760
|
+
nzPlacement="bottomRight"
|
|
761
|
+
>
|
|
762
|
+
<i nz-icon nzType="setting"></i>
|
|
763
|
+
</div>
|
|
764
|
+
<nz-dropdown-menu #settingsMenu="nzDropdownMenu">
|
|
765
|
+
<div nz-menu style="width: 200px;">
|
|
766
|
+
<div data-event-id="_nav_mode" nz-menu-item>
|
|
767
|
+
{{ 'mode.nav' | i18n }}
|
|
768
|
+
</div>
|
|
769
|
+
|
|
770
|
+
@if (headerStyleList.length > 1) {
|
|
771
|
+
@for (i of headerStyleList; track $index) {
|
|
772
|
+
<div
|
|
773
|
+
data-event-id="_nav_mode"
|
|
774
|
+
nz-menu-item
|
|
775
|
+
[attr.data-type]="i.value"
|
|
776
|
+
(click)="onNavTypeChange(i.value)"
|
|
777
|
+
>
|
|
778
|
+
<ng-container [ngSwitch]="i.value">
|
|
779
|
+
<ng-container *ngSwitchCase="NavType.APPLICATION">
|
|
780
|
+
<i nz-icon nzType="appstore" class="mr-sm"></i>
|
|
781
|
+
</ng-container>
|
|
782
|
+
<ng-container *ngSwitchCase="NavType.GROUP">
|
|
783
|
+
<i nz-icon nzType="group" class="mr-sm"></i>
|
|
784
|
+
</ng-container>
|
|
785
|
+
<ng-container *ngSwitchCase="NavType.TILE">
|
|
786
|
+
<i nz-icon nzType="dash" class="mr-sm"></i>
|
|
787
|
+
</ng-container>
|
|
788
|
+
<ng-container *ngSwitchCase="NavType.BLANK">
|
|
789
|
+
<i nz-icon nzType="border" class="mr-sm"></i>
|
|
790
|
+
</ng-container>
|
|
791
|
+
<ng-container *ngSwitchCase="NavType.TABS">
|
|
792
|
+
<i nz-icon nzType="insert-row-above" class="mr-sm"></i>
|
|
793
|
+
</ng-container>
|
|
794
|
+
<ng-container *ngSwitchDefault>
|
|
795
|
+
<i nz-icon nzType="appstore" class="mr-sm"></i>
|
|
796
|
+
</ng-container>
|
|
797
|
+
{{ 'mode.nav.' + i.value | i18n }}
|
|
798
|
+
</ng-container>
|
|
799
|
+
</div>
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
<div data-event-id="_nav_fullscreen" nz-menu-item>
|
|
804
|
+
<yunzai-header-fullscreen />
|
|
805
|
+
</div>
|
|
806
|
+
<div data-event-id="_nav_clearstorage" nz-menu-item>
|
|
807
|
+
<yunzai-header-clear-storage />
|
|
808
|
+
</div>
|
|
809
|
+
<div data-event-id="_nav_i18n" nz-menu-item>
|
|
810
|
+
<yunzai-header-i18n />
|
|
811
|
+
</div>
|
|
812
|
+
</div>
|
|
813
|
+
</nz-dropdown-menu>
|
|
814
|
+
</layout-default-header-item>
|
|
815
|
+
<layout-default-header-item direction="right">
|
|
816
|
+
<yunzai-header-user />
|
|
817
|
+
</layout-default-header-item>
|
|
818
|
+
</layout-default>
|
|
819
|
+
<ng-template #asideUserTpl>
|
|
820
|
+
<div data-event-id="_route_user" class="yunzai-default__aside-user">
|
|
821
|
+
<nz-avatar
|
|
822
|
+
class="yunzai-default__aside-user-avatar"
|
|
823
|
+
[nzSize]="40"
|
|
824
|
+
[nzSrc]="aside.icon"
|
|
825
|
+
(click)="aboutApplication()"
|
|
826
|
+
/>
|
|
827
|
+
<div class="yunzai-default__aside-user-info" nz-dropdown nzTrigger="click" [nzDropdownMenu]="userMenu">
|
|
828
|
+
<strong>{{ aside.name | i18n }}</strong>
|
|
829
|
+
<p>{{ aside.intro | i18n }}</p>
|
|
830
|
+
</div>
|
|
831
|
+
</div>
|
|
832
|
+
<nz-dropdown-menu #userMenu="nzDropdownMenu">
|
|
833
|
+
<ul nz-menu>
|
|
834
|
+
<li data-event-id="_route_backhome" nz-menu-item routerLink="/">{{ 'back.home' | i18n }}</li>
|
|
835
|
+
</ul>
|
|
836
|
+
</nz-dropdown-menu>
|
|
837
|
+
</ng-template>
|
|
838
|
+
<ng-template #contentTpl>
|
|
839
|
+
<reuse-tab #reuseTab [ngStyle]="reusetabCSS" />
|
|
840
|
+
<router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)" />
|
|
841
|
+
</ng-template>
|
|
842
|
+
<ng-template #noneTpl>
|
|
843
|
+
<router-outlet />
|
|
844
|
+
</ng-template>
|
|
845
|
+
|
|
846
|
+
<nz-modal
|
|
847
|
+
nzTitle="关于本应用"
|
|
848
|
+
[(nzVisible)]="applicationModal.isVisible"
|
|
849
|
+
[nzOkText]="null"
|
|
850
|
+
[nzCancelText]="'关闭'"
|
|
851
|
+
[nzWidth]="700"
|
|
852
|
+
(nzOnCancel)="applicationModal.isVisible = false"
|
|
853
|
+
>
|
|
854
|
+
<ng-container *nzModalContent>
|
|
855
|
+
<nz-skeleton [nzLoading]="applicationModal.loading" [nzActive]="true">
|
|
856
|
+
<nz-descriptions nzBordered [nzSize]="'middle'" [nzColumn]="{ xxl: 2, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }">
|
|
857
|
+
<nz-descriptions-item nzTitle="应用名称">{{ applicationInfo?.showName }}</nz-descriptions-item>
|
|
858
|
+
<nz-descriptions-item nzTitle="应用标识">{{ applicationInfo?.name }}</nz-descriptions-item>
|
|
859
|
+
<nz-descriptions-item nzTitle="版本总数">{{ applicationInfo?.versionNum }}</nz-descriptions-item>
|
|
860
|
+
<nz-descriptions-item nzTitle="应用首次部署时间">{{
|
|
861
|
+
applicationInfo?.firstDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss'
|
|
862
|
+
}}</nz-descriptions-item>
|
|
863
|
+
<nz-descriptions-item nzTitle="当前版本">{{ applicationInfo?.currentVersion }}</nz-descriptions-item>
|
|
864
|
+
<nz-descriptions-item nzTitle="当前版本部署时间">{{
|
|
865
|
+
applicationInfo?.currentDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss'
|
|
866
|
+
}}</nz-descriptions-item>
|
|
867
|
+
<nz-descriptions-item nzTitle="最新版本">{{ applicationInfo?.lastVersion }}</nz-descriptions-item>
|
|
868
|
+
<nz-descriptions-item nzTitle="最新版本发布时间">{{
|
|
869
|
+
applicationInfo?.lastPushDate | date: 'yyyy-MM-dd HH:mm:ss'
|
|
870
|
+
}}</nz-descriptions-item>
|
|
871
|
+
</nz-descriptions>
|
|
872
|
+
</nz-skeleton>
|
|
873
|
+
</ng-container>
|
|
874
|
+
</nz-modal>
|
|
875
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: LayoutDefaultModule }, { kind: "component", type: i1$2.LayoutDefaultComponent, selector: "layout-default", inputs: ["options", "asideUser", "asideBottom", "nav", "content", "customError", "fetchingStrictly", "fetching"], exportAs: ["layoutDefault"] }, { kind: "component", type: i1$2.LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: ["hidden", "direction"] }, { kind: "directive", type: i1$2.LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ReuseTabModule }, { kind: "component", type: i3$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: "ngmodule", type: CommonModule }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: I18nPipe, name: "i18n" }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i2$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i2$1.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i3$1.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i3$1.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzAvatarModule }, { kind: "component", type: i7.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i1$1.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i9.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i9.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzSkeletonModule }, { kind: "component", type: i10.NzSkeletonComponent, selector: "nz-skeleton", inputs: ["nzActive", "nzLoading", "nzRound", "nzTitle", "nzAvatar", "nzParagraph"], exportAs: ["nzSkeleton"] }, { kind: "ngmodule", type: NzDescriptionsModule }, { kind: "component", type: i11.NzDescriptionsComponent, selector: "nz-descriptions", inputs: ["nzBordered", "nzLayout", "nzColumn", "nzSize", "nzTitle", "nzExtra", "nzColon"], exportAs: ["nzDescriptions"] }, { kind: "component", type: i11.NzDescriptionsItemComponent, selector: "nz-descriptions-item", inputs: ["nzSpan", "nzTitle"], exportAs: ["nzDescriptionsItem"] }, { kind: "ngmodule", type: ThemeBtnModule }, { kind: "component", type: i12.ThemeBtnComponent, selector: "theme-btn", inputs: ["types", "devTips", "deployUrl"], outputs: ["themeChange"] }, { kind: "ngmodule", type: YunzaiWidgetsModule }, { kind: "component", type: i13.YunzaiHeaderClearStorageComponent, selector: "yunzai-header-clear-storage" }, { kind: "component", type: i13.YunzaiHeaderFullScreenComponent, selector: "yunzai-header-fullscreen" }, { kind: "component", type: i13.YunzaiHeaderNotifyComponent, selector: "yunzai-header-notify" }, { kind: "component", type: i13.YunzaiHeaderI18nComponent, selector: "yunzai-header-i18n", inputs: ["showLangText"] }, { kind: "component", type: i13.YunzaiHeaderUserComponent, selector: "yunzai-header-user" }, { kind: "component", type: YunzaiNavApplicationComponent, selector: "yunzai-layout-nav-application" }, { kind: "component", type: YunzaiLayoutNavGroupComponent, selector: "yunzai-layout-nav-group" }, { kind: "component", type: YunzaiLayoutNavTileComponent, selector: "yunzai-layout-nav-tile" }] }); }
|
|
876
|
+
}
|
|
877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutBasicComponent, decorators: [{
|
|
878
|
+
type: Component,
|
|
879
|
+
args: [{
|
|
880
|
+
selector: `yunzai-layout-basic`,
|
|
881
|
+
template: `
|
|
882
|
+
<layout-default [options]="options" [asideUser]="asideUserTpl" [content]="displayReusetab ? contentTpl : noneTpl">
|
|
883
|
+
<layout-default-header-item direction="left">
|
|
884
|
+
<ng-container [ngSwitch]="navType">
|
|
885
|
+
<ng-container *ngSwitchCase="NavType.APPLICATION">
|
|
886
|
+
<yunzai-layout-nav-application />
|
|
887
|
+
</ng-container>
|
|
888
|
+
<ng-container *ngSwitchCase="NavType.GROUP">
|
|
889
|
+
<yunzai-layout-nav-group />
|
|
890
|
+
</ng-container>
|
|
891
|
+
<ng-container *ngSwitchCase="NavType.TILE">
|
|
892
|
+
<yunzai-layout-nav-tile />
|
|
893
|
+
</ng-container>
|
|
894
|
+
<ng-container *ngSwitchCase="NavType.BLANK" />
|
|
895
|
+
<ng-container *ngSwitchCase="NavType.TABS" />
|
|
896
|
+
<ng-container *ngSwitchDefault>
|
|
897
|
+
<yunzai-layout-nav-application />
|
|
898
|
+
</ng-container>
|
|
899
|
+
</ng-container>
|
|
900
|
+
</layout-default-header-item>
|
|
901
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
902
|
+
<yunzai-header-notify />
|
|
903
|
+
</layout-default-header-item>
|
|
904
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
905
|
+
<theme-btn />
|
|
906
|
+
</layout-default-header-item>
|
|
907
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
908
|
+
<div
|
|
909
|
+
data-event-id="_nav_settings"
|
|
910
|
+
layout-default-header-item-trigger
|
|
911
|
+
nz-dropdown
|
|
912
|
+
[nzDropdownMenu]="settingsMenu"
|
|
913
|
+
nzTrigger="click"
|
|
914
|
+
nzPlacement="bottomRight"
|
|
915
|
+
>
|
|
916
|
+
<i nz-icon nzType="setting"></i>
|
|
917
|
+
</div>
|
|
918
|
+
<nz-dropdown-menu #settingsMenu="nzDropdownMenu">
|
|
919
|
+
<div nz-menu style="width: 200px;">
|
|
920
|
+
<div data-event-id="_nav_mode" nz-menu-item>
|
|
921
|
+
{{ 'mode.nav' | i18n }}
|
|
922
|
+
</div>
|
|
923
|
+
|
|
924
|
+
@if (headerStyleList.length > 1) {
|
|
925
|
+
@for (i of headerStyleList; track $index) {
|
|
926
|
+
<div
|
|
927
|
+
data-event-id="_nav_mode"
|
|
928
|
+
nz-menu-item
|
|
929
|
+
[attr.data-type]="i.value"
|
|
930
|
+
(click)="onNavTypeChange(i.value)"
|
|
931
|
+
>
|
|
932
|
+
<ng-container [ngSwitch]="i.value">
|
|
933
|
+
<ng-container *ngSwitchCase="NavType.APPLICATION">
|
|
934
|
+
<i nz-icon nzType="appstore" class="mr-sm"></i>
|
|
935
|
+
</ng-container>
|
|
936
|
+
<ng-container *ngSwitchCase="NavType.GROUP">
|
|
937
|
+
<i nz-icon nzType="group" class="mr-sm"></i>
|
|
938
|
+
</ng-container>
|
|
939
|
+
<ng-container *ngSwitchCase="NavType.TILE">
|
|
940
|
+
<i nz-icon nzType="dash" class="mr-sm"></i>
|
|
941
|
+
</ng-container>
|
|
942
|
+
<ng-container *ngSwitchCase="NavType.BLANK">
|
|
943
|
+
<i nz-icon nzType="border" class="mr-sm"></i>
|
|
944
|
+
</ng-container>
|
|
945
|
+
<ng-container *ngSwitchCase="NavType.TABS">
|
|
946
|
+
<i nz-icon nzType="insert-row-above" class="mr-sm"></i>
|
|
947
|
+
</ng-container>
|
|
948
|
+
<ng-container *ngSwitchDefault>
|
|
949
|
+
<i nz-icon nzType="appstore" class="mr-sm"></i>
|
|
950
|
+
</ng-container>
|
|
951
|
+
{{ 'mode.nav.' + i.value | i18n }}
|
|
952
|
+
</ng-container>
|
|
953
|
+
</div>
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
<div data-event-id="_nav_fullscreen" nz-menu-item>
|
|
958
|
+
<yunzai-header-fullscreen />
|
|
959
|
+
</div>
|
|
960
|
+
<div data-event-id="_nav_clearstorage" nz-menu-item>
|
|
961
|
+
<yunzai-header-clear-storage />
|
|
962
|
+
</div>
|
|
963
|
+
<div data-event-id="_nav_i18n" nz-menu-item>
|
|
964
|
+
<yunzai-header-i18n />
|
|
965
|
+
</div>
|
|
966
|
+
</div>
|
|
967
|
+
</nz-dropdown-menu>
|
|
968
|
+
</layout-default-header-item>
|
|
969
|
+
<layout-default-header-item direction="right">
|
|
970
|
+
<yunzai-header-user />
|
|
971
|
+
</layout-default-header-item>
|
|
972
|
+
</layout-default>
|
|
973
|
+
<ng-template #asideUserTpl>
|
|
974
|
+
<div data-event-id="_route_user" class="yunzai-default__aside-user">
|
|
975
|
+
<nz-avatar
|
|
976
|
+
class="yunzai-default__aside-user-avatar"
|
|
977
|
+
[nzSize]="40"
|
|
978
|
+
[nzSrc]="aside.icon"
|
|
979
|
+
(click)="aboutApplication()"
|
|
980
|
+
/>
|
|
981
|
+
<div class="yunzai-default__aside-user-info" nz-dropdown nzTrigger="click" [nzDropdownMenu]="userMenu">
|
|
982
|
+
<strong>{{ aside.name | i18n }}</strong>
|
|
983
|
+
<p>{{ aside.intro | i18n }}</p>
|
|
984
|
+
</div>
|
|
985
|
+
</div>
|
|
986
|
+
<nz-dropdown-menu #userMenu="nzDropdownMenu">
|
|
987
|
+
<ul nz-menu>
|
|
988
|
+
<li data-event-id="_route_backhome" nz-menu-item routerLink="/">{{ 'back.home' | i18n }}</li>
|
|
989
|
+
</ul>
|
|
990
|
+
</nz-dropdown-menu>
|
|
991
|
+
</ng-template>
|
|
992
|
+
<ng-template #contentTpl>
|
|
993
|
+
<reuse-tab #reuseTab [ngStyle]="reusetabCSS" />
|
|
994
|
+
<router-outlet (activate)="reuseTab.activate($event)" (attach)="reuseTab.activate($event)" />
|
|
995
|
+
</ng-template>
|
|
996
|
+
<ng-template #noneTpl>
|
|
997
|
+
<router-outlet />
|
|
998
|
+
</ng-template>
|
|
999
|
+
|
|
1000
|
+
<nz-modal
|
|
1001
|
+
nzTitle="关于本应用"
|
|
1002
|
+
[(nzVisible)]="applicationModal.isVisible"
|
|
1003
|
+
[nzOkText]="null"
|
|
1004
|
+
[nzCancelText]="'关闭'"
|
|
1005
|
+
[nzWidth]="700"
|
|
1006
|
+
(nzOnCancel)="applicationModal.isVisible = false"
|
|
1007
|
+
>
|
|
1008
|
+
<ng-container *nzModalContent>
|
|
1009
|
+
<nz-skeleton [nzLoading]="applicationModal.loading" [nzActive]="true">
|
|
1010
|
+
<nz-descriptions nzBordered [nzSize]="'middle'" [nzColumn]="{ xxl: 2, xl: 2, lg: 2, md: 2, sm: 2, xs: 1 }">
|
|
1011
|
+
<nz-descriptions-item nzTitle="应用名称">{{ applicationInfo?.showName }}</nz-descriptions-item>
|
|
1012
|
+
<nz-descriptions-item nzTitle="应用标识">{{ applicationInfo?.name }}</nz-descriptions-item>
|
|
1013
|
+
<nz-descriptions-item nzTitle="版本总数">{{ applicationInfo?.versionNum }}</nz-descriptions-item>
|
|
1014
|
+
<nz-descriptions-item nzTitle="应用首次部署时间">{{
|
|
1015
|
+
applicationInfo?.firstDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss'
|
|
1016
|
+
}}</nz-descriptions-item>
|
|
1017
|
+
<nz-descriptions-item nzTitle="当前版本">{{ applicationInfo?.currentVersion }}</nz-descriptions-item>
|
|
1018
|
+
<nz-descriptions-item nzTitle="当前版本部署时间">{{
|
|
1019
|
+
applicationInfo?.currentDeploymentDate | date: 'yyyy-MM-dd HH:mm:ss'
|
|
1020
|
+
}}</nz-descriptions-item>
|
|
1021
|
+
<nz-descriptions-item nzTitle="最新版本">{{ applicationInfo?.lastVersion }}</nz-descriptions-item>
|
|
1022
|
+
<nz-descriptions-item nzTitle="最新版本发布时间">{{
|
|
1023
|
+
applicationInfo?.lastPushDate | date: 'yyyy-MM-dd HH:mm:ss'
|
|
1024
|
+
}}</nz-descriptions-item>
|
|
1025
|
+
</nz-descriptions>
|
|
1026
|
+
</nz-skeleton>
|
|
1027
|
+
</ng-container>
|
|
1028
|
+
</nz-modal>
|
|
1029
|
+
`,
|
|
1030
|
+
standalone: true,
|
|
1031
|
+
imports: [
|
|
1032
|
+
LayoutDefaultModule,
|
|
1033
|
+
RouterModule,
|
|
1034
|
+
ReuseTabModule,
|
|
1035
|
+
CommonModule,
|
|
1036
|
+
I18nPipe,
|
|
1037
|
+
NzDropDownModule,
|
|
1038
|
+
NzAvatarModule,
|
|
1039
|
+
NzIconModule,
|
|
1040
|
+
NzModalModule,
|
|
1041
|
+
NzSkeletonModule,
|
|
1042
|
+
NzDescriptionsModule,
|
|
1043
|
+
ThemeBtnModule,
|
|
1044
|
+
YunzaiWidgetsModule,
|
|
1045
|
+
YunzaiNavApplicationComponent,
|
|
1046
|
+
YunzaiLayoutNavGroupComponent,
|
|
1047
|
+
YunzaiLayoutNavTileComponent
|
|
1048
|
+
]
|
|
1049
|
+
}]
|
|
1050
|
+
}] });
|
|
1051
|
+
|
|
1052
|
+
const COMPONENTS = [YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent];
|
|
1053
|
+
class YunzaiLayoutModule {
|
|
1054
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1055
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutModule, imports: [I18nPipe,
|
|
1056
|
+
FormsModule,
|
|
1057
|
+
NzFormModule,
|
|
1058
|
+
NzInputModule,
|
|
1059
|
+
CommonModule,
|
|
1060
|
+
NzGridModule,
|
|
1061
|
+
NzIconModule,
|
|
1062
|
+
NzDropDownModule,
|
|
1063
|
+
NzTabsModule, YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent], exports: [YunzaiLayoutNavTileComponent, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent] }); }
|
|
1064
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutModule, imports: [FormsModule,
|
|
1065
|
+
NzFormModule,
|
|
1066
|
+
NzInputModule,
|
|
1067
|
+
CommonModule,
|
|
1068
|
+
NzGridModule,
|
|
1069
|
+
NzIconModule,
|
|
1070
|
+
NzDropDownModule,
|
|
1071
|
+
NzTabsModule, YunzaiLayoutNavGroupComponent, YunzaiLayoutBasicComponent] }); }
|
|
1072
|
+
}
|
|
1073
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImport: i0, type: YunzaiLayoutModule, decorators: [{
|
|
1074
|
+
type: NgModule,
|
|
1075
|
+
args: [{
|
|
1076
|
+
imports: [
|
|
1077
|
+
I18nPipe,
|
|
1078
|
+
FormsModule,
|
|
1079
|
+
NzFormModule,
|
|
1080
|
+
NzInputModule,
|
|
1081
|
+
CommonModule,
|
|
1082
|
+
NzGridModule,
|
|
1083
|
+
NzIconModule,
|
|
1084
|
+
NzDropDownModule,
|
|
1085
|
+
NzTabsModule,
|
|
1086
|
+
...COMPONENTS
|
|
1087
|
+
],
|
|
1088
|
+
exports: COMPONENTS
|
|
1089
|
+
}]
|
|
1090
|
+
}] });
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Generated bundle index. Do not edit.
|
|
1094
|
+
*/
|
|
1095
|
+
|
|
1096
|
+
export { YunzaiLayoutBasicComponent, YunzaiLayoutModule, YunzaiLayoutNavGroupComponent, YunzaiLayoutNavTileComponent, YunzaiNavApplicationComponent };
|
|
1097
|
+
//# sourceMappingURL=layout.mjs.map
|