@yelon/bis 12.0.18 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bis.d.ts +1 -0
- package/{esm2015/bis.js → esm2020/bis.mjs} +0 -0
- package/esm2020/layout/act.guard.mjs +108 -0
- package/{esm2015/layout/bis.config.js → esm2020/layout/bis.config.mjs} +0 -0
- package/esm2020/layout/contact/contact.component.mjs +492 -0
- package/esm2020/layout/contact/contact.service.mjs +146 -0
- package/esm2020/layout/layout.mjs +5 -0
- package/esm2020/layout/layout.module.mjs +73 -0
- package/{esm2015/layout/path-to-regexp.service.js → esm2020/layout/path-to-regexp.service.mjs} +9 -8
- package/{esm2015/layout/public_api.js → esm2020/layout/public_api.mjs} +3 -3
- package/esm2020/layout/stomp.config.mjs +18 -0
- package/{esm2015/layout/widgets/index.js → esm2020/layout/widgets/index.mjs} +0 -0
- package/esm2020/layout/widgets/yz.application.component.mjs +271 -0
- package/esm2020/layout/widgets/yz.clear-storage.component.mjs +45 -0
- package/esm2020/layout/widgets/yz.fullscreen.component.mjs +45 -0
- package/esm2020/layout/widgets/yz.i18n.component.mjs +115 -0
- package/esm2020/layout/widgets/yz.notify.component.mjs +184 -0
- package/esm2020/layout/widgets/yz.them-btn.component.mjs +196 -0
- package/esm2020/layout/widgets/yz.user.component.mjs +112 -0
- package/esm2020/layout/yz.auth.service.mjs +156 -0
- package/esm2020/layout/yz.basic.component.mjs +207 -0
- package/esm2020/layout/yz.default.interceptor.mjs +203 -0
- package/esm2020/layout/yz.i18n.service.mjs +93 -0
- package/esm2020/layout/yz.startup.service.mjs +137 -0
- package/esm2020/layout/yz.stomp.service.mjs +88 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/{esm2015/shared/public_api.js → esm2020/shared/public_api.mjs} +0 -0
- package/{esm2015/shared/shared-yelon.module.js → esm2020/shared/shared-yelon.module.mjs} +0 -0
- package/{esm2015/shared/shared-zorro.module.js → esm2020/shared/shared-zorro.module.mjs} +0 -0
- package/{esm2015/shared/shared.js → esm2020/shared/shared.mjs} +0 -0
- package/esm2020/shared/shared.module.mjs +116 -0
- package/{esm2015/shared/style-icons.js → esm2020/shared/style-icons.mjs} +0 -0
- package/fesm2015/{bis.js → bis.mjs} +1 -1
- package/fesm2015/bis.mjs.map +1 -0
- package/fesm2015/{layout.js → layout.mjs} +610 -279
- package/fesm2015/layout.mjs.map +1 -0
- package/fesm2015/{shared.js → shared.mjs} +101 -7
- package/fesm2015/shared.mjs.map +1 -0
- package/fesm2020/bis.mjs +6 -0
- package/fesm2020/bis.mjs.map +1 -0
- package/fesm2020/layout.mjs +2796 -0
- package/fesm2020/layout.mjs.map +1 -0
- package/fesm2020/shared.mjs +1106 -0
- package/fesm2020/shared.mjs.map +1 -0
- package/layout/act.guard.d.ts +3 -0
- package/layout/contact/contact.component.d.ts +4 -1
- package/layout/contact/contact.service.d.ts +4 -1
- package/layout/layout.d.ts +1 -3
- package/layout/layout.module.d.ts +18 -0
- package/layout/package.json +5 -6
- package/layout/path-to-regexp.service.d.ts +3 -0
- package/layout/public_api.d.ts +2 -0
- package/layout/widgets/yz.application.component.d.ts +3 -0
- package/layout/widgets/yz.clear-storage.component.d.ts +3 -0
- package/layout/widgets/yz.fullscreen.component.d.ts +3 -1
- package/layout/widgets/yz.i18n.component.d.ts +3 -0
- package/layout/widgets/yz.notify.component.d.ts +3 -0
- package/layout/widgets/yz.them-btn.component.d.ts +3 -0
- package/layout/widgets/yz.user.component.d.ts +3 -0
- package/layout/yz.auth.service.d.ts +3 -0
- package/layout/yz.basic.component.d.ts +11 -2
- package/layout/yz.default.interceptor.d.ts +3 -0
- package/layout/yz.i18n.service.d.ts +3 -0
- package/layout/yz.startup.service.d.ts +3 -0
- package/layout/yz.stomp.service.d.ts +6 -3
- package/package.json +46 -18
- package/shared/package.json +5 -6
- package/shared/shared-zorro.module.d.ts +2 -2
- package/shared/shared.d.ts +1 -0
- package/shared/shared.module.d.ts +93 -0
- package/bis.metadata.json +0 -1
- package/bundles/bis.umd.js +0 -18
- package/bundles/bis.umd.js.map +0 -1
- package/bundles/layout.umd.js +0 -2671
- package/bundles/layout.umd.js.map +0 -1
- package/bundles/shared.umd.js +0 -1249
- package/bundles/shared.umd.js.map +0 -1
- package/esm2015/layout/act.guard.js +0 -115
- package/esm2015/layout/contact/contact.component.js +0 -434
- package/esm2015/layout/contact/contact.service.js +0 -150
- package/esm2015/layout/layout.js +0 -8
- package/esm2015/layout/layout.module.js +0 -47
- package/esm2015/layout/stomp.config.js +0 -20
- package/esm2015/layout/widgets/yz.application.component.js +0 -200
- package/esm2015/layout/widgets/yz.clear-storage.component.js +0 -39
- package/esm2015/layout/widgets/yz.fullscreen.component.js +0 -36
- package/esm2015/layout/widgets/yz.i18n.component.js +0 -78
- package/esm2015/layout/widgets/yz.notify.component.js +0 -157
- package/esm2015/layout/widgets/yz.them-btn.component.js +0 -146
- package/esm2015/layout/widgets/yz.user.component.js +0 -81
- package/esm2015/layout/yz.auth.service.js +0 -158
- package/esm2015/layout/yz.basic.component.js +0 -101
- package/esm2015/layout/yz.default.interceptor.js +0 -204
- package/esm2015/layout/yz.i18n.service.js +0 -102
- package/esm2015/layout/yz.startup.service.js +0 -138
- package/esm2015/layout/yz.stomp.service.js +0 -91
- package/esm2015/shared/shared.module.js +0 -22
- package/fesm2015/bis.js.map +0 -1
- package/fesm2015/layout.js.map +0 -1
- package/fesm2015/shared.js.map +0 -1
- package/layout/layout.metadata.json +0 -1
- package/shared/shared.metadata.json +0 -1
|
@@ -1,45 +1,64 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, ChangeDetectionStrategy,
|
|
2
|
+
import { Injectable, Component, ChangeDetectionStrategy, Inject, Input, Optional, HostListener, EventEmitter, ViewChild, Output, isDevMode, NgModule, APP_INITIALIZER } from '@angular/core';
|
|
3
|
+
import * as i1$2 from '@yelon/util';
|
|
4
|
+
import { WINDOW, log as log$1, deepCopy } from '@yelon/util';
|
|
3
5
|
import * as i2$1 from '@yelon/cache';
|
|
4
6
|
import { CacheService } from '@yelon/cache';
|
|
5
|
-
import * as
|
|
6
|
-
import { zh_CN as zh_CN$1, zh_TW as zh_TW$1, en_US as en_US$1, YunzaiI18nBaseService, _HttpClient, SettingsService, YelonLocaleService, YUNZAI_I18N_TOKEN, MenuService, TitleService } from '@yelon/theme';
|
|
7
|
-
import { WINDOW, YunzaiConfigService as YunzaiConfigService$1, log as log$1, deepCopy } from '@yelon/util';
|
|
8
|
-
import * as i3 from '@angular/cdk/platform';
|
|
9
|
-
import { Platform } from '@angular/cdk/platform';
|
|
7
|
+
import * as i9$1 from '@angular/common';
|
|
10
8
|
import { registerLocaleData, DOCUMENT, CommonModule } from '@angular/common';
|
|
11
9
|
import ngEn from '@angular/common/locales/en';
|
|
12
10
|
import ngZh from '@angular/common/locales/zh';
|
|
13
11
|
import ngZhTw from '@angular/common/locales/zh-Hant';
|
|
14
12
|
import { zhCN, zhTW, enUS } from 'date-fns/locale';
|
|
15
|
-
import * as i1
|
|
16
|
-
import {
|
|
13
|
+
import * as i1 from '@yelon/theme';
|
|
14
|
+
import { zh_CN as zh_CN$1, zh_TW as zh_TW$1, en_US as en_US$1, YunzaiI18nBaseService, YUNZAI_I18N_TOKEN, _HttpClient } from '@yelon/theme';
|
|
17
15
|
import * as i2 from 'ng-zorro-antd/i18n';
|
|
18
|
-
import { zh_CN, zh_TW, en_US
|
|
16
|
+
import { zh_CN, zh_TW, en_US } from 'ng-zorro-antd/i18n';
|
|
17
|
+
import * as i3 from '@angular/cdk/platform';
|
|
18
|
+
import * as i4 from '@yelon/util/config';
|
|
19
|
+
import { YunzaiConfigService } from '@yelon/util/config';
|
|
20
|
+
import * as i4$1 from 'ng-zorro-antd/input';
|
|
21
|
+
import * as i5 from 'ng-zorro-antd/grid';
|
|
22
|
+
import * as i8 from 'ng-zorro-antd/core/transition-patch';
|
|
23
|
+
import * as i7 from '@angular/forms';
|
|
24
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
25
|
+
import * as i9 from 'ng-zorro-antd/icon';
|
|
19
26
|
import { __decorate } from 'tslib';
|
|
20
27
|
import { InputBoolean } from '@yelon/util/decorator';
|
|
28
|
+
import * as i2$2 from 'ng-zorro-antd/dropdown';
|
|
29
|
+
import * as i6 from 'ng-zorro-antd/menu';
|
|
21
30
|
import { forkJoin, Subject, of, BehaviorSubject, throwError } from 'rxjs';
|
|
22
31
|
import { map, takeUntil, mergeMap, mergeAll, filter, take, switchMap, catchError } from 'rxjs/operators';
|
|
23
32
|
import { formatDistanceToNow } from 'date-fns';
|
|
24
33
|
import { log } from '@yelon/util/other';
|
|
25
|
-
import
|
|
26
|
-
import
|
|
34
|
+
import * as i1$1 from 'ng-zorro-antd/message';
|
|
35
|
+
import * as i4$2 from '@yelon/abc/notice-icon';
|
|
27
36
|
import { YUNZAI_THEME_BTN_KEYS } from '@yelon/theme/theme-btn';
|
|
37
|
+
import * as i3$1 from '@angular/cdk/bidi';
|
|
38
|
+
import * as i5$1 from 'ng-zorro-antd/tooltip';
|
|
28
39
|
import { YA_SERVICE_TOKEN, mergeConfig } from '@yelon/auth';
|
|
29
|
-
import
|
|
30
|
-
import * as
|
|
40
|
+
import * as i4$3 from 'ng-zorro-antd/avatar';
|
|
41
|
+
import * as i1$3 from 'ng-zorro-antd/modal';
|
|
42
|
+
import screenfull from 'screenfull';
|
|
31
43
|
import { HttpClientModule, HttpErrorResponse, HttpResponse, HttpResponseBase } from '@angular/common/http';
|
|
32
|
-
import
|
|
33
|
-
import * as i4 from '@angular/router';
|
|
44
|
+
import * as i17 from '@angular/router';
|
|
34
45
|
import { RouterModule, Router } from '@angular/router';
|
|
35
46
|
import { YzSharedModule, ICONS } from '@yelon/bis/shared';
|
|
47
|
+
import * as i2$3 from 'ng-zorro-antd/tabs';
|
|
48
|
+
import * as i3$2 from '@yelon/abc/sg';
|
|
49
|
+
import * as i5$2 from 'ng-zorro-antd/spin';
|
|
50
|
+
import * as i6$1 from 'ng-zorro-antd/tree';
|
|
51
|
+
import * as i7$1 from 'ng-zorro-antd/list';
|
|
52
|
+
import * as i8$1 from '@yelon/abc/st';
|
|
53
|
+
import * as i9$2 from 'ng-zorro-antd/button';
|
|
54
|
+
import * as i14 from 'ng-zorro-antd/core/wave';
|
|
36
55
|
import { RxStomp } from '@stomp/rx-stomp';
|
|
37
|
-
import * as i3$
|
|
56
|
+
import * as i3$3 from 'ng-zorro-antd/notification';
|
|
38
57
|
import { NzNotificationService } from 'ng-zorro-antd/notification';
|
|
39
|
-
import
|
|
40
|
-
import
|
|
58
|
+
import * as i3$4 from '@yelon/theme/layout-default';
|
|
59
|
+
import * as i13 from '@yelon/abc/reuse-tab';
|
|
60
|
+
import * as i3$5 from '@yelon/acl';
|
|
41
61
|
|
|
42
|
-
// 请参考:https://ng.yunzainfo.com/docs/i18n
|
|
43
62
|
const DEFAULT = 'zh-CN';
|
|
44
63
|
const LANGS = {
|
|
45
64
|
'zh-CN': {
|
|
@@ -113,18 +132,12 @@ class YzI18NService extends YunzaiI18nBaseService {
|
|
|
113
132
|
return this._langs;
|
|
114
133
|
}
|
|
115
134
|
}
|
|
116
|
-
YzI18NService.ɵ
|
|
117
|
-
YzI18NService
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
{ type: SettingsService },
|
|
123
|
-
{ type: NzI18nService },
|
|
124
|
-
{ type: YelonLocaleService },
|
|
125
|
-
{ type: Platform },
|
|
126
|
-
{ type: YunzaiConfigService }
|
|
127
|
-
];
|
|
135
|
+
YzI18NService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzI18NService, deps: [{ token: i1._HttpClient }, { token: i1.SettingsService }, { token: i2.NzI18nService }, { token: i1.YelonLocaleService }, { token: i3.Platform }, { token: i4.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
136
|
+
YzI18NService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzI18NService, providedIn: 'root' });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzI18NService, decorators: [{
|
|
138
|
+
type: Injectable,
|
|
139
|
+
args: [{ providedIn: 'root' }]
|
|
140
|
+
}], ctorParameters: function () { return [{ type: i1._HttpClient }, { type: i1.SettingsService }, { type: i2.NzI18nService }, { type: i1.YelonLocaleService }, { type: i3.Platform }, { type: i4.YunzaiConfigService }]; } });
|
|
128
141
|
|
|
129
142
|
var TOPIC;
|
|
130
143
|
(function (TOPIC) {
|
|
@@ -240,10 +253,80 @@ class YzHeaderApplicationComponent {
|
|
|
240
253
|
}
|
|
241
254
|
}
|
|
242
255
|
}
|
|
243
|
-
YzHeaderApplicationComponent
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
256
|
+
YzHeaderApplicationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderApplicationComponent, deps: [{ token: i0.Injector }, { token: i2$1.CacheService }, { token: YzI18NService }, { token: i1._HttpClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
257
|
+
YzHeaderApplicationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: YzHeaderApplicationComponent, selector: "yz-header-application", ngImport: i0, template: `
|
|
258
|
+
<!-- template start-->
|
|
259
|
+
<ng-template #search>
|
|
260
|
+
<div nz-row class="yz-application-list-search">
|
|
261
|
+
<nz-input-group [nzPrefix]="prefixTemplate">
|
|
262
|
+
<input
|
|
263
|
+
type="text"
|
|
264
|
+
nz-input
|
|
265
|
+
placeholder="{{ 'application.search' | i18n }}"
|
|
266
|
+
[(ngModel)]="searchValue"
|
|
267
|
+
(ngModelChange)="onSearch()"
|
|
268
|
+
/>
|
|
269
|
+
<ng-template #prefixTemplate>
|
|
270
|
+
<i nz-icon nzType="search" nzTheme="outline"></i>
|
|
271
|
+
</ng-template>
|
|
272
|
+
</nz-input-group>
|
|
273
|
+
</div>
|
|
274
|
+
</ng-template>
|
|
275
|
+
<ng-template #ld>
|
|
276
|
+
<div class="yz-application-list">
|
|
277
|
+
<ul>
|
|
278
|
+
<li *ngFor="let d of listData">
|
|
279
|
+
<h5>{{ d.name }}</h5>
|
|
280
|
+
<a href="javascript:;" *ngFor="let cd of d.children" (click)="open(cd)">{{ cd.name }}</a>
|
|
281
|
+
</li>
|
|
282
|
+
</ul>
|
|
283
|
+
</div>
|
|
284
|
+
</ng-template>
|
|
285
|
+
<!-- template end-->
|
|
286
|
+
|
|
287
|
+
<!-- button start-->
|
|
288
|
+
<div class="yunzai-default__nav-item" (click)="diffChange()"> {{ 'application.button' | i18n }}</div>
|
|
289
|
+
<!-- button end-->
|
|
290
|
+
|
|
291
|
+
<!-- header start-->
|
|
292
|
+
<div class="yz-application" nz-row *ngIf="active">
|
|
293
|
+
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
294
|
+
<div class="yz-application-text" (click)="full()">{{ 'application.all' | i18n }}</div>
|
|
295
|
+
<div class="yz-application-text" (click)="own()">{{ 'application.mine' | i18n }}</div>
|
|
296
|
+
<div class="yz-application-text" *ngFor="let d of topicData" (click)="every(d)">
|
|
297
|
+
{{ d.name }}
|
|
298
|
+
</div>
|
|
299
|
+
</div>
|
|
300
|
+
<div nz-col [nzSpan]="21" [ngSwitch]="topic" class="yz-application-container">
|
|
301
|
+
<div *ngSwitchCase="T.FULL">
|
|
302
|
+
<ng-template [ngTemplateOutlet]="search"></ng-template>
|
|
303
|
+
<ng-template [ngTemplateOutlet]="ld"></ng-template>
|
|
304
|
+
</div>
|
|
305
|
+
<div *ngSwitchCase="T.OWN">
|
|
306
|
+
<ng-template [ngTemplateOutlet]="search"></ng-template>
|
|
307
|
+
<ng-template [ngTemplateOutlet]="ld"></ng-template>
|
|
308
|
+
</div>
|
|
309
|
+
<div *ngSwitchCase="T.EVERY" class="yz-application-list">
|
|
310
|
+
<div class="yz-application-list-item">
|
|
311
|
+
<ul>
|
|
312
|
+
<li *ngFor="let d of listData" (click)="open(d)">
|
|
313
|
+
<a href="javascript:;">
|
|
314
|
+
<h4>{{ d.name }}</h4>
|
|
315
|
+
<p>{{ d.intro }}</p>
|
|
316
|
+
</a>
|
|
317
|
+
</li>
|
|
318
|
+
</ul>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
<!-- header end-->
|
|
324
|
+
`, isInline: true, components: [{ type: i4$1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }], directives: [{ type: i5.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { type: i8.ɵ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"] }, { type: i4$1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { type: i4$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "disabled"], exportAs: ["nzInput"] }, { type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i9$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.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"] }, { type: i9$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i9$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i9$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "i18n": i1.I18nPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderApplicationComponent, decorators: [{
|
|
326
|
+
type: Component,
|
|
327
|
+
args: [{
|
|
328
|
+
selector: 'yz-header-application',
|
|
329
|
+
template: `
|
|
247
330
|
<!-- template start-->
|
|
248
331
|
<ng-template #search>
|
|
249
332
|
<div nz-row class="yz-application-list-search">
|
|
@@ -311,15 +394,9 @@ YzHeaderApplicationComponent.decorators = [
|
|
|
311
394
|
</div>
|
|
312
395
|
<!-- header end-->
|
|
313
396
|
`,
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
];
|
|
317
|
-
YzHeaderApplicationComponent.ctorParameters = () => [
|
|
318
|
-
{ type: Injector },
|
|
319
|
-
{ type: CacheService },
|
|
320
|
-
{ type: YzI18NService },
|
|
321
|
-
{ type: _HttpClient }
|
|
322
|
-
];
|
|
397
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
398
|
+
}]
|
|
399
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2$1.CacheService }, { type: YzI18NService }, { type: i1._HttpClient }]; } });
|
|
323
400
|
|
|
324
401
|
class YzHeaderI18NComponent {
|
|
325
402
|
constructor(settings, i18n, doc) {
|
|
@@ -347,10 +424,8 @@ class YzHeaderI18NComponent {
|
|
|
347
424
|
});
|
|
348
425
|
}
|
|
349
426
|
}
|
|
350
|
-
YzHeaderI18NComponent
|
|
351
|
-
|
|
352
|
-
selector: 'yz-header-i18n',
|
|
353
|
-
template: `
|
|
427
|
+
YzHeaderI18NComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderI18NComponent, deps: [{ token: i1.SettingsService }, { token: YUNZAI_I18N_TOKEN }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
428
|
+
YzHeaderI18NComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: YzHeaderI18NComponent, selector: "yz-header-i18n", inputs: { showLangText: "showLangText" }, ngImport: i0, template: `
|
|
354
429
|
<div *ngIf="showLangText" nz-dropdown [nzDropdownMenu]="langMenu" nzPlacement="bottomRight">
|
|
355
430
|
<i nz-icon nzType="global"></i>
|
|
356
431
|
{{ 'menu.lang' | i18n }}
|
|
@@ -377,21 +452,55 @@ YzHeaderI18NComponent.decorators = [
|
|
|
377
452
|
</li>
|
|
378
453
|
</ul>
|
|
379
454
|
</nz-dropdown-menu>
|
|
380
|
-
`,
|
|
381
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
382
|
-
},] }
|
|
383
|
-
];
|
|
384
|
-
YzHeaderI18NComponent.ctorParameters = () => [
|
|
385
|
-
{ type: SettingsService },
|
|
386
|
-
{ type: YzI18NService, decorators: [{ type: Inject, args: [YUNZAI_I18N_TOKEN,] }] },
|
|
387
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
388
|
-
];
|
|
389
|
-
YzHeaderI18NComponent.propDecorators = {
|
|
390
|
-
showLangText: [{ type: Input }]
|
|
391
|
-
};
|
|
455
|
+
`, isInline: true, components: [{ type: i2$2.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }], directives: [{ type: i9$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$2.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { type: i8.ɵ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"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i6.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { type: i9$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }], pipes: { "i18n": i1.I18nPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
392
456
|
__decorate([
|
|
393
457
|
InputBoolean()
|
|
394
458
|
], YzHeaderI18NComponent.prototype, "showLangText", void 0);
|
|
459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderI18NComponent, decorators: [{
|
|
460
|
+
type: Component,
|
|
461
|
+
args: [{
|
|
462
|
+
selector: 'yz-header-i18n',
|
|
463
|
+
template: `
|
|
464
|
+
<div *ngIf="showLangText" nz-dropdown [nzDropdownMenu]="langMenu" nzPlacement="bottomRight">
|
|
465
|
+
<i nz-icon nzType="global"></i>
|
|
466
|
+
{{ 'menu.lang' | i18n }}
|
|
467
|
+
<i nz-icon nzType="down"></i>
|
|
468
|
+
</div>
|
|
469
|
+
<i
|
|
470
|
+
*ngIf="!showLangText"
|
|
471
|
+
nz-dropdown
|
|
472
|
+
[nzDropdownMenu]="langMenu"
|
|
473
|
+
nzPlacement="bottomRight"
|
|
474
|
+
nz-icon
|
|
475
|
+
nzType="global"
|
|
476
|
+
></i>
|
|
477
|
+
<nz-dropdown-menu #langMenu="nzDropdownMenu">
|
|
478
|
+
<ul nz-menu>
|
|
479
|
+
<li
|
|
480
|
+
nz-menu-item
|
|
481
|
+
*ngFor="let item of langs"
|
|
482
|
+
[nzSelected]="item.code === curLangCode"
|
|
483
|
+
(click)="change(item.code)"
|
|
484
|
+
>
|
|
485
|
+
<span role="img" [attr.aria-label]="item.text" class="pr-xs">{{ item.abbr }}</span>
|
|
486
|
+
{{ item.text }}
|
|
487
|
+
</li>
|
|
488
|
+
</ul>
|
|
489
|
+
</nz-dropdown-menu>
|
|
490
|
+
`,
|
|
491
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
492
|
+
}]
|
|
493
|
+
}], ctorParameters: function () {
|
|
494
|
+
return [{ type: i1.SettingsService }, { type: YzI18NService, decorators: [{
|
|
495
|
+
type: Inject,
|
|
496
|
+
args: [YUNZAI_I18N_TOKEN]
|
|
497
|
+
}] }, { type: undefined, decorators: [{
|
|
498
|
+
type: Inject,
|
|
499
|
+
args: [DOCUMENT]
|
|
500
|
+
}] }];
|
|
501
|
+
}, propDecorators: { showLangText: [{
|
|
502
|
+
type: Input
|
|
503
|
+
}] } });
|
|
395
504
|
|
|
396
505
|
class YzHeaderNotifyComponent {
|
|
397
506
|
constructor(injector, msg, y18n, nzI18n, cdr, httpClient) {
|
|
@@ -514,10 +623,23 @@ class YzHeaderNotifyComponent {
|
|
|
514
623
|
this.subs.forEach(a => a.unsubscribe());
|
|
515
624
|
}
|
|
516
625
|
}
|
|
517
|
-
YzHeaderNotifyComponent
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
626
|
+
YzHeaderNotifyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderNotifyComponent, deps: [{ token: i0.Injector }, { token: i1$1.NzMessageService }, { token: YUNZAI_I18N_TOKEN }, { token: i2.NzI18nService }, { token: i0.ChangeDetectorRef }, { token: i1._HttpClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
627
|
+
YzHeaderNotifyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: YzHeaderNotifyComponent, selector: "yz-header-notify", ngImport: i0, template: `
|
|
628
|
+
<notice-icon
|
|
629
|
+
[data]="data"
|
|
630
|
+
[count]="count"
|
|
631
|
+
[loading]="loading"
|
|
632
|
+
btnClass="yunzai-default__nav-item"
|
|
633
|
+
btnIconClass="yunzai-default__nav-item-icon"
|
|
634
|
+
(select)="select($event)"
|
|
635
|
+
(clear)="clear($event)"
|
|
636
|
+
></notice-icon>
|
|
637
|
+
`, isInline: true, components: [{ type: i4$2.NoticeIconComponent, selector: "notice-icon", inputs: ["data", "count", "loading", "popoverVisible", "btnClass", "btnIconClass"], outputs: ["select", "clear", "popoverVisibleChange"], exportAs: ["noticeIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderNotifyComponent, decorators: [{
|
|
639
|
+
type: Component,
|
|
640
|
+
args: [{
|
|
641
|
+
selector: 'yz-header-notify',
|
|
642
|
+
template: `
|
|
521
643
|
<notice-icon
|
|
522
644
|
[data]="data"
|
|
523
645
|
[count]="count"
|
|
@@ -528,17 +650,14 @@ YzHeaderNotifyComponent.decorators = [
|
|
|
528
650
|
(clear)="clear($event)"
|
|
529
651
|
></notice-icon>
|
|
530
652
|
`,
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
]
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
{ type: ChangeDetectorRef },
|
|
540
|
-
{ type: _HttpClient }
|
|
541
|
-
];
|
|
653
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
654
|
+
}]
|
|
655
|
+
}], ctorParameters: function () {
|
|
656
|
+
return [{ type: i0.Injector }, { type: i1$1.NzMessageService }, { type: YzI18NService, decorators: [{
|
|
657
|
+
type: Inject,
|
|
658
|
+
args: [YUNZAI_I18N_TOKEN]
|
|
659
|
+
}] }, { type: i2.NzI18nService }, { type: i0.ChangeDetectorRef }, { type: i1._HttpClient }];
|
|
660
|
+
} });
|
|
542
661
|
|
|
543
662
|
class YzHeaderThemBtnComponent {
|
|
544
663
|
constructor(renderer, configSrv, platform, doc, directionality, KEYS) {
|
|
@@ -618,10 +737,52 @@ class YzHeaderThemBtnComponent {
|
|
|
618
737
|
this.destroy$.complete();
|
|
619
738
|
}
|
|
620
739
|
}
|
|
621
|
-
YzHeaderThemBtnComponent
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
740
|
+
YzHeaderThemBtnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderThemBtnComponent, deps: [{ token: i0.Renderer2 }, { token: i4.YunzaiConfigService }, { token: i3.Platform }, { token: DOCUMENT }, { token: i3$1.Directionality, optional: true }, { token: YUNZAI_THEME_BTN_KEYS }], target: i0.ɵɵFactoryTarget.Component });
|
|
741
|
+
YzHeaderThemBtnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: YzHeaderThemBtnComponent, selector: "yz-header-theme-btn", inputs: { types: "types", devTips: "devTips", deployUrl: "deployUrl" }, ngImport: i0, template: `
|
|
742
|
+
<div
|
|
743
|
+
class="yunzai-default__nav-item"
|
|
744
|
+
nz-dropdown
|
|
745
|
+
[nzDropdownMenu]="iconMenu"
|
|
746
|
+
nzTrigger="click"
|
|
747
|
+
nzPlacement="bottomRight"
|
|
748
|
+
>
|
|
749
|
+
<svg nz-tooltip class="anticon" role="img" width="21" height="21" viewBox="0 0 21 21" fill="currentColor">
|
|
750
|
+
<g fill-rule="evenodd">
|
|
751
|
+
<g fill-rule="nonzero">
|
|
752
|
+
<path
|
|
753
|
+
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"
|
|
754
|
+
></path>
|
|
755
|
+
</g>
|
|
756
|
+
</g>
|
|
757
|
+
</svg>
|
|
758
|
+
</div>
|
|
759
|
+
<nz-dropdown-menu #iconMenu="nzDropdownMenu">
|
|
760
|
+
<ul nz-menu>
|
|
761
|
+
<li
|
|
762
|
+
nz-menu-item
|
|
763
|
+
*ngFor="let theme of types"
|
|
764
|
+
(click)="onThemeChange(theme.key)"
|
|
765
|
+
[style]="{ color: theme.color }"
|
|
766
|
+
>
|
|
767
|
+
<i nz-icon nzType="bg-colors"></i>
|
|
768
|
+
{{ theme.text | i18n }}
|
|
769
|
+
</li>
|
|
770
|
+
</ul>
|
|
771
|
+
<!-- <div nz-menu class="wd-xl animated jello">-->
|
|
772
|
+
<!-- <div nz-row [nzJustify]="'space-between'" [nzAlign]="'middle'" class="app-icons">-->
|
|
773
|
+
<!-- <div nz-col [nzSpan]="4" *ngFor="let theme of types" (click)="onThemeChange(theme.key)">-->
|
|
774
|
+
<!-- <i nz-icon nzType="bg-colors" class="text-white" [style]="{ backgroundColor: theme.color }"></i>-->
|
|
775
|
+
<!-- <span [ngStyle]="{ color: theme.color }">{{ theme.text | i18n }}</span>-->
|
|
776
|
+
<!-- </div>-->
|
|
777
|
+
<!-- </div>-->
|
|
778
|
+
<!-- </div>-->
|
|
779
|
+
</nz-dropdown-menu>
|
|
780
|
+
`, isInline: true, components: [{ type: i2$2.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }], directives: [{ type: i2$2.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { type: i5$1.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i6.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { type: i9$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.ɵ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"] }, { type: i6.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], pipes: { "i18n": i1.I18nPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderThemBtnComponent, decorators: [{
|
|
782
|
+
type: Component,
|
|
783
|
+
args: [{
|
|
784
|
+
selector: 'yz-header-theme-btn',
|
|
785
|
+
template: `
|
|
625
786
|
<div
|
|
626
787
|
class="yunzai-default__nav-item"
|
|
627
788
|
nz-dropdown
|
|
@@ -661,22 +822,25 @@ YzHeaderThemBtnComponent.decorators = [
|
|
|
661
822
|
<!-- </div>-->
|
|
662
823
|
</nz-dropdown-menu>
|
|
663
824
|
`,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
]
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
]
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
825
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
826
|
+
}]
|
|
827
|
+
}], ctorParameters: function () {
|
|
828
|
+
return [{ type: i0.Renderer2 }, { type: i4.YunzaiConfigService }, { type: i3.Platform }, { type: undefined, decorators: [{
|
|
829
|
+
type: Inject,
|
|
830
|
+
args: [DOCUMENT]
|
|
831
|
+
}] }, { type: i3$1.Directionality, decorators: [{
|
|
832
|
+
type: Optional
|
|
833
|
+
}] }, { type: undefined, decorators: [{
|
|
834
|
+
type: Inject,
|
|
835
|
+
args: [YUNZAI_THEME_BTN_KEYS]
|
|
836
|
+
}] }];
|
|
837
|
+
}, propDecorators: { types: [{
|
|
838
|
+
type: Input
|
|
839
|
+
}], devTips: [{
|
|
840
|
+
type: Input
|
|
841
|
+
}], deployUrl: [{
|
|
842
|
+
type: Input
|
|
843
|
+
}] } });
|
|
680
844
|
|
|
681
845
|
const BUSINESS_DEFAULT_CONFIG = {
|
|
682
846
|
baseUrl: '/backstage',
|
|
@@ -726,10 +890,36 @@ class YzHeaderUserComponent {
|
|
|
726
890
|
}
|
|
727
891
|
}
|
|
728
892
|
}
|
|
729
|
-
YzHeaderUserComponent
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
893
|
+
YzHeaderUserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderUserComponent, deps: [{ token: i0.Injector }, { token: i1$1.NzMessageService }, { token: YA_SERVICE_TOKEN }, { token: i1$2.YunzaiConfigService }, { token: i2$1.CacheService }], target: i0.ɵɵFactoryTarget.Component });
|
|
894
|
+
YzHeaderUserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: YzHeaderUserComponent, selector: "yz-header-user", ngImport: i0, template: `
|
|
895
|
+
<div
|
|
896
|
+
class="yunzai-default__nav-item d-flex align-items-center px-sm"
|
|
897
|
+
nz-dropdown
|
|
898
|
+
nzPlacement="bottomRight"
|
|
899
|
+
[nzDropdownMenu]="userMenu"
|
|
900
|
+
>
|
|
901
|
+
<nz-avatar [nzSrc]="icon" nzSize="small" class="mr-sm"></nz-avatar>
|
|
902
|
+
{{ username }}
|
|
903
|
+
</div>
|
|
904
|
+
<nz-dropdown-menu #userMenu="nzDropdownMenu">
|
|
905
|
+
<div nz-menu class="width-sm">
|
|
906
|
+
<div nz-menu-item *ngFor="let m of menus" (click)="to(m.url)">
|
|
907
|
+
<i nz-icon [nzType]="m.icon" class="mr-sm"></i>
|
|
908
|
+
{{ m.name | i18n }}
|
|
909
|
+
</div>
|
|
910
|
+
<li nz-menu-divider></li>
|
|
911
|
+
<div nz-menu-item (click)="logout()">
|
|
912
|
+
<i nz-icon nzType="logout" class="mr-sm"></i>
|
|
913
|
+
{{ 'menu.account.logout' | i18n }}
|
|
914
|
+
</div>
|
|
915
|
+
</div>
|
|
916
|
+
</nz-dropdown-menu>
|
|
917
|
+
`, isInline: true, components: [{ type: i4$3.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { type: i2$2.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }], directives: [{ type: i2$2.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { type: i6.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { type: i9$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.ɵ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"] }, { type: i6.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i6.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }], pipes: { "i18n": i1.I18nPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderUserComponent, decorators: [{
|
|
919
|
+
type: Component,
|
|
920
|
+
args: [{
|
|
921
|
+
selector: 'yz-header-user',
|
|
922
|
+
template: `
|
|
733
923
|
<div
|
|
734
924
|
class="yunzai-default__nav-item d-flex align-items-center px-sm"
|
|
735
925
|
nz-dropdown
|
|
@@ -753,16 +943,14 @@ YzHeaderUserComponent.decorators = [
|
|
|
753
943
|
</div>
|
|
754
944
|
</nz-dropdown-menu>
|
|
755
945
|
`,
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
]
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
{ type: CacheService }
|
|
765
|
-
];
|
|
946
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
947
|
+
}]
|
|
948
|
+
}], ctorParameters: function () {
|
|
949
|
+
return [{ type: i0.Injector }, { type: i1$1.NzMessageService }, { type: undefined, decorators: [{
|
|
950
|
+
type: Inject,
|
|
951
|
+
args: [YA_SERVICE_TOKEN]
|
|
952
|
+
}] }, { type: i1$2.YunzaiConfigService }, { type: i2$1.CacheService }];
|
|
953
|
+
} });
|
|
766
954
|
|
|
767
955
|
class YzHeaderClearStorageComponent {
|
|
768
956
|
constructor(modalSrv, messageSrv) {
|
|
@@ -779,60 +967,67 @@ class YzHeaderClearStorageComponent {
|
|
|
779
967
|
});
|
|
780
968
|
}
|
|
781
969
|
}
|
|
782
|
-
YzHeaderClearStorageComponent
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
970
|
+
YzHeaderClearStorageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderClearStorageComponent, deps: [{ token: i1$3.NzModalService }, { token: i1$1.NzMessageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
971
|
+
YzHeaderClearStorageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: YzHeaderClearStorageComponent, selector: "yz-header-clear-storage", host: { listeners: { "click": "_click()" }, properties: { "class.d-block": "true" } }, ngImport: i0, template: `
|
|
972
|
+
<i nz-icon nzType="tool"></i>
|
|
973
|
+
{{ 'menu.clear.local.storage' | i18n }}
|
|
974
|
+
`, isInline: true, directives: [{ type: i8.ɵ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"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], pipes: { "i18n": i1.I18nPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderClearStorageComponent, decorators: [{
|
|
976
|
+
type: Component,
|
|
977
|
+
args: [{
|
|
978
|
+
selector: 'yz-header-clear-storage',
|
|
979
|
+
template: `
|
|
786
980
|
<i nz-icon nzType="tool"></i>
|
|
787
981
|
{{ 'menu.clear.local.storage' | i18n }}
|
|
788
982
|
`,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
];
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
];
|
|
799
|
-
YzHeaderClearStorageComponent.propDecorators = {
|
|
800
|
-
_click: [{ type: HostListener, args: ['click',] }]
|
|
801
|
-
};
|
|
983
|
+
host: {
|
|
984
|
+
'[class.d-block]': 'true'
|
|
985
|
+
},
|
|
986
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
987
|
+
}]
|
|
988
|
+
}], ctorParameters: function () { return [{ type: i1$3.NzModalService }, { type: i1$1.NzMessageService }]; }, propDecorators: { _click: [{
|
|
989
|
+
type: HostListener,
|
|
990
|
+
args: ['click']
|
|
991
|
+
}] } });
|
|
802
992
|
|
|
803
993
|
class YzHeaderFullScreenComponent {
|
|
804
994
|
constructor() {
|
|
805
995
|
this.status = false;
|
|
806
996
|
}
|
|
807
|
-
get sf() {
|
|
808
|
-
return screenfull;
|
|
809
|
-
}
|
|
810
997
|
_resize() {
|
|
811
|
-
this.status =
|
|
998
|
+
this.status = screenfull.isFullscreen;
|
|
812
999
|
}
|
|
813
1000
|
_click() {
|
|
814
|
-
if (
|
|
815
|
-
|
|
1001
|
+
if (screenfull.isEnabled) {
|
|
1002
|
+
screenfull.toggle();
|
|
816
1003
|
}
|
|
817
1004
|
}
|
|
818
1005
|
}
|
|
819
|
-
YzHeaderFullScreenComponent
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
1006
|
+
YzHeaderFullScreenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderFullScreenComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1007
|
+
YzHeaderFullScreenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: YzHeaderFullScreenComponent, selector: "yz-header-fullscreen", host: { listeners: { "window:resize": "_resize()", "click": "_click()" }, properties: { "class.d-block": "true" } }, ngImport: i0, template: `
|
|
1008
|
+
<i nz-icon [nzType]="status ? 'fullscreen-exit' : 'fullscreen'"></i>
|
|
1009
|
+
{{ (status ? 'menu.fullscreen.exit' : 'menu.fullscreen') | i18n }}
|
|
1010
|
+
`, isInline: true, directives: [{ type: i8.ɵ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"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], pipes: { "i18n": i1.I18nPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1011
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzHeaderFullScreenComponent, decorators: [{
|
|
1012
|
+
type: Component,
|
|
1013
|
+
args: [{
|
|
1014
|
+
selector: 'yz-header-fullscreen',
|
|
1015
|
+
template: `
|
|
823
1016
|
<i nz-icon [nzType]="status ? 'fullscreen-exit' : 'fullscreen'"></i>
|
|
824
1017
|
{{ (status ? 'menu.fullscreen.exit' : 'menu.fullscreen') | i18n }}
|
|
825
1018
|
`,
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
]
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
1019
|
+
host: {
|
|
1020
|
+
'[class.d-block]': 'true'
|
|
1021
|
+
},
|
|
1022
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1023
|
+
}]
|
|
1024
|
+
}], propDecorators: { _resize: [{
|
|
1025
|
+
type: HostListener,
|
|
1026
|
+
args: ['window:resize']
|
|
1027
|
+
}], _click: [{
|
|
1028
|
+
type: HostListener,
|
|
1029
|
+
args: ['click']
|
|
1030
|
+
}] } });
|
|
836
1031
|
|
|
837
1032
|
class ContactService {
|
|
838
1033
|
constructor(http, cache) {
|
|
@@ -966,16 +1161,14 @@ class ContactService {
|
|
|
966
1161
|
}));
|
|
967
1162
|
}
|
|
968
1163
|
}
|
|
969
|
-
ContactService.ɵ
|
|
970
|
-
ContactService
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
{ type: CacheService }
|
|
978
|
-
];
|
|
1164
|
+
ContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ContactService, deps: [{ token: i1._HttpClient }, { token: i2$1.CacheService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1165
|
+
ContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ContactService, providedIn: 'root' });
|
|
1166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ContactService, decorators: [{
|
|
1167
|
+
type: Injectable,
|
|
1168
|
+
args: [{
|
|
1169
|
+
providedIn: 'root'
|
|
1170
|
+
}]
|
|
1171
|
+
}], ctorParameters: function () { return [{ type: i1._HttpClient }, { type: i2$1.CacheService }]; } });
|
|
979
1172
|
|
|
980
1173
|
class ContactComponent {
|
|
981
1174
|
constructor(contact, changeDetectorRef) {
|
|
@@ -1000,6 +1193,7 @@ class ContactComponent {
|
|
|
1000
1193
|
this.nzDeptClass = true;
|
|
1001
1194
|
this.nzDeptClassHistory = true;
|
|
1002
1195
|
this.nzDeptGrade = false;
|
|
1196
|
+
this.nzDeptGradeID = null;
|
|
1003
1197
|
/**
|
|
1004
1198
|
* 角色树
|
|
1005
1199
|
*/
|
|
@@ -1377,41 +1571,82 @@ class ContactComponent {
|
|
|
1377
1571
|
this.subs.forEach(s => s.unsubscribe());
|
|
1378
1572
|
}
|
|
1379
1573
|
}
|
|
1380
|
-
ContactComponent
|
|
1381
|
-
{ type: Component, args: [{
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
styles: [".nz-tabset-input{width:100%}.nz-tabset-content{padding:20px}.nz-tabset-sg{padding-right:38px!important;padding-left:38px!important}.nz-tabset-content-item:hover{background-color:#f1f1f1;cursor:pointer}\n"]
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1574
|
+
ContactComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ContactComponent, deps: [{ token: ContactService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1575
|
+
ContactComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ContactComponent, selector: "contact", inputs: { nzTabsetSearch: "nzTabsetSearch", nzTabsetLoading: "nzTabsetLoading", nzExpandAll: "nzExpandAll", nzDepts: "nzDepts", nzDeptTreeVirtualHeight: "nzDeptTreeVirtualHeight", nzDeptClass: "nzDeptClass", nzDeptClassHistory: "nzDeptClassHistory", nzDeptGrade: "nzDeptGrade", nzDeptGradeID: "nzDeptGradeID", nzRoles: "nzRoles", nzRoleTreeVirtualHeight: "nzRoleTreeVirtualHeight", nzFriendGroups: "nzFriendGroups", defaultContacts: "defaultContacts", nzContacts: "nzContacts", nzContactLoading: "nzContactLoading", button: "button" }, outputs: { confirmed: "confirmed" }, viewQueries: [{ propertyName: "st", first: true, predicate: ["st"], descendants: true }], ngImport: i0, template: "<nz-row [nzGutter]=\"16\">\n <nz-col [nzXs]=\"24\" [nzSm]=\"24\" [nzMd]=\"24\" [nzLg]=\"8\" [nzXl]=\"6\" [nzXXl]=\"6\">\n <nz-tabset nzCentered>\n <nz-tab nzTitle=\"\u90E8\u95E8\" (nzSelect)=\"onTabsetDept()\">\n <div sg-container=\"2\">\n <sg col=\"1\" class=\"nz-tabset-sg\">\n <nz-input-group class=\"nz-tabset-input\" [nzSuffix]=\"searchInputTpl\">\n <input\n nz-input\n [(ngModel)]=\"nzTabsetSearch\"\n (ngModelChange)=\"onTabsetSearchChange('dept', $event)\"\n type=\"text\"\n placeholder=\"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0\"\n />\n </nz-input-group>\n </sg>\n <sg col=\"1\">\n <nz-spin [nzSpinning]=\"nzTabsetLoading\">\n <nz-tree\n class=\"nz-tabset-content\"\n (nzClick)=\"onDeptClick($event)\"\n [nzBlockNode]=\"true\"\n [nzShowLine]=\"true\"\n [nzHideUnMatched]=\"true\"\n [nzVirtualHeight]=\"nzDeptTreeVirtualHeight\"\n [nzData]=\"nzDepts\"\n ></nz-tree>\n </nz-spin>\n </sg>\n </div>\n </nz-tab>\n <nz-tab nzTitle=\"\u89D2\u8272\" (nzSelect)=\"onTabsetRole()\">\n <div sg-container=\"2\">\n <sg col=\"1\" class=\"nz-tabset-sg\">\n <nz-input-group class=\"nz-tabset-input\" [nzSuffix]=\"searchInputTpl\">\n <input\n nz-input\n [(ngModel)]=\"nzTabsetSearch\"\n (ngModelChange)=\"onTabsetSearchChange('role', $event)\"\n type=\"text\"\n placeholder=\"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0\"\n />\n </nz-input-group>\n </sg>\n <sg col=\"1\">\n <nz-spin [nzSpinning]=\"nzTabsetLoading\">\n <nz-tree\n class=\"nz-tabset-content\"\n (nzClick)=\"onRoleClick($event)\"\n [nzBlockNode]=\"true\"\n [nzShowLine]=\"true\"\n [nzHideUnMatched]=\"true\"\n [nzVirtualHeight]=\"nzRoleTreeVirtualHeight\"\n [nzData]=\"nzRoles\"\n ></nz-tree>\n </nz-spin>\n </sg>\n </div>\n </nz-tab>\n <nz-tab nzTitle=\"\u597D\u53CB\" (nzSelect)=\"onTabsetFriendGroup()\">\n <div sg-container=\"2\">\n <sg col=\"1\" class=\"nz-tabset-sg\">\n <nz-input-group class=\"nz-tabset-input\" [nzSuffix]=\"searchInputTpl\">\n <input\n nz-input\n [(ngModel)]=\"nzTabsetSearch\"\n (ngModelChange)=\"onTabsetSearchChange('friendGroup', $event)\"\n type=\"text\"\n placeholder=\"\u8BF7\u8F93\u5165\u597D\u53CB\u540D\u79F0\"\n />\n </nz-input-group>\n </sg>\n <sg col=\"1\">\n <nz-spin [nzSpinning]=\"nzTabsetLoading\">\n <nz-list class=\"nz-tabset-content\" nzItemLayout=\"horizontal\" [nzSplit]=\"false\" nzSize=\"small\">\n <nz-list-item\n class=\"nz-tabset-content-item\"\n *ngFor=\"let group of nzFriendGroups\"\n (click)=\"onFriendGroupClick(group)\"\n >\n <nz-list-item-meta>\n <nz-list-item-meta-title>\n {{ group.name }}\n </nz-list-item-meta-title>\n </nz-list-item-meta>\n </nz-list-item>\n </nz-list>\n </nz-spin>\n </sg>\n </div>\n </nz-tab>\n </nz-tabset>\n </nz-col>\n\n <nz-col [nzXs]=\"24\" [nzSm]=\"24\" [nzMd]=\"24\" [nzLg]=\"16\" [nzXl]=\"13\" [nzXXl]=\"13\">\n <st #st responsiveHideHeaderFooter></st>\n </nz-col>\n\n <nz-col [nzXs]=\"24\" [nzSm]=\"24\" [nzMd]=\"24\" [nzLg]=\"24\" [nzXl]=\"5\" [nzXXl]=\"5\">\n <nz-spin [nzSpinning]=\"nzContactLoading\">\n <nz-list nzItemLayout=\"horizontal\" [nzSplit]=\"false\" nzSize=\"small\">\n <nz-list-item\n class=\"nz-tabset-content-item\"\n *ngFor=\"let contact of nzContacts\"\n (click)=\"onContactRemove(contact)\"\n >\n <nz-list-item-meta>\n <nz-list-item-meta-title>\n {{ contact.realName }}\n </nz-list-item-meta-title>\n </nz-list-item-meta>\n </nz-list-item>\n </nz-list>\n </nz-spin>\n </nz-col>\n</nz-row>\n\n<nz-row *ngIf=\"button\">\n <nz-col [nzSpan]=\"4\" [nzOffset]=\"20\">\n <button nz-button nzType=\"primary\" (click)=\"confirm()\">\u786E\u5B9A</button>\n </nz-col>\n</nz-row>\n\n<ng-template #searchInputTpl>\n <i nz-icon nzType=\"close\" nzTheme=\"outline\" *ngIf=\"nzTabsetSearch\" (click)=\"onTabsetSearchClean()\"></i>\n <i nz-icon nzType=\"search\" nzTheme=\"outline\" *ngIf=\"!nzTabsetSearch\"></i>\n</ng-template>\n", styles: [".nz-tabset-input{width:100%}.nz-tabset-content{padding:20px}.nz-tabset-sg{padding-right:38px!important;padding-left:38px!important}.nz-tabset-content-item:hover{background-color:#f1f1f1;cursor:pointer}\n"], components: [{ type: i2$3.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"] }, { type: i2$3.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { type: i3$2.SGContainerComponent, selector: "sg-container, [sg-container]", inputs: ["gutter", "sg-container", "col"], exportAs: ["sgContainer"] }, { type: i3$2.SGComponent, selector: "sg", inputs: ["col"], exportAs: ["sg"] }, { type: i4$1.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { type: i5$2.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { type: i6$1.NzTreeComponent, selector: "nz-tree", inputs: ["nzShowIcon", "nzHideUnMatched", "nzBlockNode", "nzExpandAll", "nzSelectMode", "nzCheckStrictly", "nzShowExpand", "nzShowLine", "nzCheckable", "nzAsyncData", "nzDraggable", "nzMultiple", "nzExpandedIcon", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualHeight", "nzTreeTemplate", "nzBeforeDrop", "nzData", "nzExpandedKeys", "nzSelectedKeys", "nzCheckedKeys", "nzSearchValue", "nzSearchFunc"], outputs: ["nzExpandedKeysChange", "nzSelectedKeysChange", "nzCheckedKeysChange", "nzSearchValueChange", "nzClick", "nzDblClick", "nzContextMenu", "nzCheckBoxChange", "nzExpandChange", "nzOnDragStart", "nzOnDragEnter", "nzOnDragOver", "nzOnDragLeave", "nzOnDrop", "nzOnDragEnd"], exportAs: ["nzTree"] }, { type: i7$1.NzListComponent, selector: "nz-list, [nz-list]", inputs: ["nzDataSource", "nzBordered", "nzGrid", "nzHeader", "nzFooter", "nzItemLayout", "nzRenderItem", "nzLoading", "nzLoadMore", "nzPagination", "nzSize", "nzSplit", "nzNoResult"], exportAs: ["nzList"] }, { type: i7$1.NzListItemComponent, selector: "nz-list-item, [nz-list-item]", inputs: ["nzActions", "nzContent", "nzExtra", "nzNoFlex"], exportAs: ["nzListItem"] }, { type: i7$1.NzListItemMetaComponent, selector: "nz-list-item-meta, [nz-list-item-meta]", inputs: ["nzAvatar", "nzTitle", "nzDescription"], exportAs: ["nzListItemMeta"] }, { type: i7$1.NzListItemMetaTitleComponent, selector: "nz-list-item-meta-title", exportAs: ["nzListItemMetaTitle"] }, { type: i8$1.STComponent, selector: "st", inputs: ["req", "res", "page", "data", "columns", "contextmenu", "ps", "pi", "total", "loading", "loadingDelay", "loadingIndicator", "bordered", "size", "scroll", "singleSort", "multiSort", "rowClassName", "clickRowClassName", "widthMode", "widthConfig", "resizable", "header", "showHeader", "footer", "bodyHeader", "body", "expandRowByClick", "expandAccordion", "expand", "noResult", "responsive", "responsiveHideHeaderFooter", "virtualScroll", "virtualItemSize", "virtualMaxBufferPx", "virtualMinBufferPx", "customRequest", "virtualForTrackBy"], outputs: ["error", "change"], exportAs: ["st"] }, { type: i9$2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }], directives: [{ type: i5.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { type: i5.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"] }, { type: i8.ɵ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"] }, { type: i4$1.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { type: i4$1.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "disabled"], exportAs: ["nzInput"] }, { type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }] });
|
|
1576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ContactComponent, decorators: [{
|
|
1577
|
+
type: Component,
|
|
1578
|
+
args: [{ selector: 'contact', template: "<nz-row [nzGutter]=\"16\">\n <nz-col [nzXs]=\"24\" [nzSm]=\"24\" [nzMd]=\"24\" [nzLg]=\"8\" [nzXl]=\"6\" [nzXXl]=\"6\">\n <nz-tabset nzCentered>\n <nz-tab nzTitle=\"\u90E8\u95E8\" (nzSelect)=\"onTabsetDept()\">\n <div sg-container=\"2\">\n <sg col=\"1\" class=\"nz-tabset-sg\">\n <nz-input-group class=\"nz-tabset-input\" [nzSuffix]=\"searchInputTpl\">\n <input\n nz-input\n [(ngModel)]=\"nzTabsetSearch\"\n (ngModelChange)=\"onTabsetSearchChange('dept', $event)\"\n type=\"text\"\n placeholder=\"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0\"\n />\n </nz-input-group>\n </sg>\n <sg col=\"1\">\n <nz-spin [nzSpinning]=\"nzTabsetLoading\">\n <nz-tree\n class=\"nz-tabset-content\"\n (nzClick)=\"onDeptClick($event)\"\n [nzBlockNode]=\"true\"\n [nzShowLine]=\"true\"\n [nzHideUnMatched]=\"true\"\n [nzVirtualHeight]=\"nzDeptTreeVirtualHeight\"\n [nzData]=\"nzDepts\"\n ></nz-tree>\n </nz-spin>\n </sg>\n </div>\n </nz-tab>\n <nz-tab nzTitle=\"\u89D2\u8272\" (nzSelect)=\"onTabsetRole()\">\n <div sg-container=\"2\">\n <sg col=\"1\" class=\"nz-tabset-sg\">\n <nz-input-group class=\"nz-tabset-input\" [nzSuffix]=\"searchInputTpl\">\n <input\n nz-input\n [(ngModel)]=\"nzTabsetSearch\"\n (ngModelChange)=\"onTabsetSearchChange('role', $event)\"\n type=\"text\"\n placeholder=\"\u8BF7\u8F93\u5165\u89D2\u8272\u540D\u79F0\"\n />\n </nz-input-group>\n </sg>\n <sg col=\"1\">\n <nz-spin [nzSpinning]=\"nzTabsetLoading\">\n <nz-tree\n class=\"nz-tabset-content\"\n (nzClick)=\"onRoleClick($event)\"\n [nzBlockNode]=\"true\"\n [nzShowLine]=\"true\"\n [nzHideUnMatched]=\"true\"\n [nzVirtualHeight]=\"nzRoleTreeVirtualHeight\"\n [nzData]=\"nzRoles\"\n ></nz-tree>\n </nz-spin>\n </sg>\n </div>\n </nz-tab>\n <nz-tab nzTitle=\"\u597D\u53CB\" (nzSelect)=\"onTabsetFriendGroup()\">\n <div sg-container=\"2\">\n <sg col=\"1\" class=\"nz-tabset-sg\">\n <nz-input-group class=\"nz-tabset-input\" [nzSuffix]=\"searchInputTpl\">\n <input\n nz-input\n [(ngModel)]=\"nzTabsetSearch\"\n (ngModelChange)=\"onTabsetSearchChange('friendGroup', $event)\"\n type=\"text\"\n placeholder=\"\u8BF7\u8F93\u5165\u597D\u53CB\u540D\u79F0\"\n />\n </nz-input-group>\n </sg>\n <sg col=\"1\">\n <nz-spin [nzSpinning]=\"nzTabsetLoading\">\n <nz-list class=\"nz-tabset-content\" nzItemLayout=\"horizontal\" [nzSplit]=\"false\" nzSize=\"small\">\n <nz-list-item\n class=\"nz-tabset-content-item\"\n *ngFor=\"let group of nzFriendGroups\"\n (click)=\"onFriendGroupClick(group)\"\n >\n <nz-list-item-meta>\n <nz-list-item-meta-title>\n {{ group.name }}\n </nz-list-item-meta-title>\n </nz-list-item-meta>\n </nz-list-item>\n </nz-list>\n </nz-spin>\n </sg>\n </div>\n </nz-tab>\n </nz-tabset>\n </nz-col>\n\n <nz-col [nzXs]=\"24\" [nzSm]=\"24\" [nzMd]=\"24\" [nzLg]=\"16\" [nzXl]=\"13\" [nzXXl]=\"13\">\n <st #st responsiveHideHeaderFooter></st>\n </nz-col>\n\n <nz-col [nzXs]=\"24\" [nzSm]=\"24\" [nzMd]=\"24\" [nzLg]=\"24\" [nzXl]=\"5\" [nzXXl]=\"5\">\n <nz-spin [nzSpinning]=\"nzContactLoading\">\n <nz-list nzItemLayout=\"horizontal\" [nzSplit]=\"false\" nzSize=\"small\">\n <nz-list-item\n class=\"nz-tabset-content-item\"\n *ngFor=\"let contact of nzContacts\"\n (click)=\"onContactRemove(contact)\"\n >\n <nz-list-item-meta>\n <nz-list-item-meta-title>\n {{ contact.realName }}\n </nz-list-item-meta-title>\n </nz-list-item-meta>\n </nz-list-item>\n </nz-list>\n </nz-spin>\n </nz-col>\n</nz-row>\n\n<nz-row *ngIf=\"button\">\n <nz-col [nzSpan]=\"4\" [nzOffset]=\"20\">\n <button nz-button nzType=\"primary\" (click)=\"confirm()\">\u786E\u5B9A</button>\n </nz-col>\n</nz-row>\n\n<ng-template #searchInputTpl>\n <i nz-icon nzType=\"close\" nzTheme=\"outline\" *ngIf=\"nzTabsetSearch\" (click)=\"onTabsetSearchClean()\"></i>\n <i nz-icon nzType=\"search\" nzTheme=\"outline\" *ngIf=\"!nzTabsetSearch\"></i>\n</ng-template>\n", styles: [".nz-tabset-input{width:100%}.nz-tabset-content{padding:20px}.nz-tabset-sg{padding-right:38px!important;padding-left:38px!important}.nz-tabset-content-item:hover{background-color:#f1f1f1;cursor:pointer}\n"] }]
|
|
1579
|
+
}], ctorParameters: function () { return [{ type: ContactService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { nzTabsetSearch: [{
|
|
1580
|
+
type: Optional
|
|
1581
|
+
}, {
|
|
1582
|
+
type: Input
|
|
1583
|
+
}], nzTabsetLoading: [{
|
|
1584
|
+
type: Optional
|
|
1585
|
+
}, {
|
|
1586
|
+
type: Input
|
|
1587
|
+
}], nzExpandAll: [{
|
|
1588
|
+
type: Optional
|
|
1589
|
+
}, {
|
|
1590
|
+
type: Input
|
|
1591
|
+
}], nzDepts: [{
|
|
1592
|
+
type: Optional
|
|
1593
|
+
}, {
|
|
1594
|
+
type: Input
|
|
1595
|
+
}], nzDeptTreeVirtualHeight: [{
|
|
1596
|
+
type: Optional
|
|
1597
|
+
}, {
|
|
1598
|
+
type: Input
|
|
1599
|
+
}], nzDeptClass: [{
|
|
1600
|
+
type: Optional
|
|
1601
|
+
}, {
|
|
1602
|
+
type: Input
|
|
1603
|
+
}], nzDeptClassHistory: [{
|
|
1604
|
+
type: Optional
|
|
1605
|
+
}, {
|
|
1606
|
+
type: Input
|
|
1607
|
+
}], nzDeptGrade: [{
|
|
1608
|
+
type: Optional
|
|
1609
|
+
}, {
|
|
1610
|
+
type: Input
|
|
1611
|
+
}], nzDeptGradeID: [{
|
|
1612
|
+
type: Optional
|
|
1613
|
+
}, {
|
|
1614
|
+
type: Input
|
|
1615
|
+
}], nzRoles: [{
|
|
1616
|
+
type: Optional
|
|
1617
|
+
}, {
|
|
1618
|
+
type: Input
|
|
1619
|
+
}], nzRoleTreeVirtualHeight: [{
|
|
1620
|
+
type: Optional
|
|
1621
|
+
}, {
|
|
1622
|
+
type: Input
|
|
1623
|
+
}], nzFriendGroups: [{
|
|
1624
|
+
type: Optional
|
|
1625
|
+
}, {
|
|
1626
|
+
type: Input
|
|
1627
|
+
}], st: [{
|
|
1628
|
+
type: ViewChild,
|
|
1629
|
+
args: ['st', { static: false }]
|
|
1630
|
+
}], defaultContacts: [{
|
|
1631
|
+
type: Optional
|
|
1632
|
+
}, {
|
|
1633
|
+
type: Input
|
|
1634
|
+
}], nzContacts: [{
|
|
1635
|
+
type: Optional
|
|
1636
|
+
}, {
|
|
1637
|
+
type: Input
|
|
1638
|
+
}], nzContactLoading: [{
|
|
1639
|
+
type: Optional
|
|
1640
|
+
}, {
|
|
1641
|
+
type: Input
|
|
1642
|
+
}], button: [{
|
|
1643
|
+
type: Optional
|
|
1644
|
+
}, {
|
|
1645
|
+
type: Input
|
|
1646
|
+
}], confirmed: [{
|
|
1647
|
+
type: Output
|
|
1648
|
+
}] } });
|
|
1411
1649
|
|
|
1412
|
-
const ɵ0 = msg => {
|
|
1413
|
-
log$1(msg);
|
|
1414
|
-
};
|
|
1415
1650
|
const STOMP_DEFAULT_CONFIG = {
|
|
1416
1651
|
connectHeaders: {
|
|
1417
1652
|
login: 'guest',
|
|
@@ -1421,7 +1656,9 @@ const STOMP_DEFAULT_CONFIG = {
|
|
|
1421
1656
|
heartbeatIncoming: 1000 * 60,
|
|
1422
1657
|
heartbeatOutgoing: 1000 * 60,
|
|
1423
1658
|
reconnectDelay: 30000000,
|
|
1424
|
-
debug:
|
|
1659
|
+
debug: msg => {
|
|
1660
|
+
log$1(msg);
|
|
1661
|
+
}
|
|
1425
1662
|
};
|
|
1426
1663
|
function mergeStompConfig(srv) {
|
|
1427
1664
|
return srv.merge('stomp', STOMP_DEFAULT_CONFIG);
|
|
@@ -1433,6 +1670,9 @@ class YzStompService {
|
|
|
1433
1670
|
this.cache = cache;
|
|
1434
1671
|
this.injector = injector;
|
|
1435
1672
|
this.notification = notification;
|
|
1673
|
+
this.config = null;
|
|
1674
|
+
this.bisConfig = null;
|
|
1675
|
+
this.rxStomp = null;
|
|
1436
1676
|
this.subs = [];
|
|
1437
1677
|
if (!this.user) {
|
|
1438
1678
|
this.user = this.cache.get('_yz_user', { mode: 'none' });
|
|
@@ -1495,21 +1735,18 @@ class YzStompService {
|
|
|
1495
1735
|
return this.rxStomp.watch(destination, headers);
|
|
1496
1736
|
}
|
|
1497
1737
|
}
|
|
1498
|
-
YzStompService.ɵ
|
|
1499
|
-
YzStompService
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
{ type: CacheService },
|
|
1505
|
-
{ type: Injector },
|
|
1506
|
-
{ type: NzNotificationService }
|
|
1507
|
-
];
|
|
1738
|
+
YzStompService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzStompService, deps: [{ token: i1$2.YunzaiConfigService }, { token: i2$1.CacheService }, { token: i0.Injector }, { token: i3$3.NzNotificationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1739
|
+
YzStompService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzStompService, providedIn: 'root' });
|
|
1740
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzStompService, decorators: [{
|
|
1741
|
+
type: Injectable,
|
|
1742
|
+
args: [{ providedIn: 'root' }]
|
|
1743
|
+
}], ctorParameters: function () { return [{ type: i1$2.YunzaiConfigService }, { type: i2$1.CacheService }, { type: i0.Injector }, { type: i3$3.NzNotificationService }]; } });
|
|
1508
1744
|
|
|
1509
1745
|
class YzLayoutBasicComponent {
|
|
1510
|
-
constructor(cacheService, yzStompService) {
|
|
1746
|
+
constructor(cacheService, yzStompService, layoutService) {
|
|
1511
1747
|
this.cacheService = cacheService;
|
|
1512
1748
|
this.yzStompService = yzStompService;
|
|
1749
|
+
this.layoutService = layoutService;
|
|
1513
1750
|
this.options = {
|
|
1514
1751
|
logoExpanded: `./assets/logo-full.svg`,
|
|
1515
1752
|
logoCollapsed: `./assets/logo.svg`
|
|
@@ -1517,6 +1754,19 @@ class YzLayoutBasicComponent {
|
|
|
1517
1754
|
this.intro = '';
|
|
1518
1755
|
this.text = '';
|
|
1519
1756
|
this.icon = '';
|
|
1757
|
+
this.showReuseTab = true;
|
|
1758
|
+
this.showHeader = true;
|
|
1759
|
+
this.showSider = true;
|
|
1760
|
+
}
|
|
1761
|
+
get reuseStyleSheet() {
|
|
1762
|
+
let cascadingStyleSheet = {};
|
|
1763
|
+
if (!this.showHeader) {
|
|
1764
|
+
cascadingStyleSheet = Object.assign(Object.assign({}, cascadingStyleSheet), { top: 0 });
|
|
1765
|
+
}
|
|
1766
|
+
if (!this.showSider) {
|
|
1767
|
+
cascadingStyleSheet = Object.assign(Object.assign({}, cascadingStyleSheet), { left: '24px' });
|
|
1768
|
+
}
|
|
1769
|
+
return cascadingStyleSheet;
|
|
1520
1770
|
}
|
|
1521
1771
|
ngOnInit() {
|
|
1522
1772
|
const current = this.cacheService.get('_yz_current', { mode: 'none' });
|
|
@@ -1527,16 +1777,85 @@ class YzLayoutBasicComponent {
|
|
|
1527
1777
|
this.options.logoExpanded = project.maxLogoUrl ? project.maxLogoUrl : `./assets/logo-full.svg`;
|
|
1528
1778
|
this.options.logoCollapsed = project.miniLogoUrl ? project.miniLogoUrl : `./assets/logo.svg`;
|
|
1529
1779
|
this.yzStompService.listen();
|
|
1780
|
+
this.layoutService.reuseTab.asObservable().subscribe(show => (this.showReuseTab = show));
|
|
1781
|
+
this.layoutService.header.asObservable().subscribe(show => (this.showHeader = show));
|
|
1782
|
+
this.layoutService.sidebar.asObservable().subscribe(show => (this.showSider = show));
|
|
1530
1783
|
}
|
|
1531
1784
|
ngOnDestroy() {
|
|
1532
1785
|
this.yzStompService.unListen();
|
|
1533
1786
|
}
|
|
1534
1787
|
}
|
|
1535
|
-
YzLayoutBasicComponent
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1788
|
+
YzLayoutBasicComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzLayoutBasicComponent, deps: [{ token: i2$1.CacheService }, { token: YzStompService }, { token: i3$4.LayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1789
|
+
YzLayoutBasicComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: YzLayoutBasicComponent, selector: "yz-layout-basic", ngImport: i0, template: `
|
|
1790
|
+
<layout-default [options]="options" [asideUser]="asideUserTpl" [content]="showReuseTab ? contentTpl : noneTpl">
|
|
1791
|
+
<layout-default-header-item direction="left">
|
|
1792
|
+
<yz-header-application></yz-header-application>
|
|
1793
|
+
</layout-default-header-item>
|
|
1794
|
+
|
|
1795
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
1796
|
+
<yz-header-notify></yz-header-notify>
|
|
1797
|
+
</layout-default-header-item>
|
|
1798
|
+
|
|
1799
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
1800
|
+
<yz-header-theme-btn></yz-header-theme-btn>
|
|
1801
|
+
</layout-default-header-item>
|
|
1802
|
+
|
|
1803
|
+
<layout-default-header-item direction="right" hidden="mobile">
|
|
1804
|
+
<div
|
|
1805
|
+
layout-default-header-item-trigger
|
|
1806
|
+
nz-dropdown
|
|
1807
|
+
[nzDropdownMenu]="settingsMenu"
|
|
1808
|
+
nzTrigger="click"
|
|
1809
|
+
nzPlacement="bottomRight"
|
|
1810
|
+
>
|
|
1811
|
+
<i nz-icon nzType="setting"></i>
|
|
1812
|
+
</div>
|
|
1813
|
+
<nz-dropdown-menu #settingsMenu="nzDropdownMenu">
|
|
1814
|
+
<div nz-menu style="width: 200px;">
|
|
1815
|
+
<div nz-menu-item>
|
|
1816
|
+
<yz-header-fullscreen></yz-header-fullscreen>
|
|
1817
|
+
</div>
|
|
1818
|
+
<div nz-menu-item>
|
|
1819
|
+
<yz-header-clear-storage></yz-header-clear-storage>
|
|
1820
|
+
</div>
|
|
1821
|
+
<div nz-menu-item>
|
|
1822
|
+
<yz-header-i18n></yz-header-i18n>
|
|
1823
|
+
</div>
|
|
1824
|
+
</div>
|
|
1825
|
+
</nz-dropdown-menu>
|
|
1826
|
+
</layout-default-header-item>
|
|
1827
|
+
<layout-default-header-item direction="right">
|
|
1828
|
+
<yz-header-user></yz-header-user>
|
|
1829
|
+
</layout-default-header-item>
|
|
1830
|
+
<ng-template #asideUserTpl>
|
|
1831
|
+
<div nz-dropdown nzTrigger="click" [nzDropdownMenu]="userMenu" class="yunzai-default__aside-user">
|
|
1832
|
+
<nz-avatar class="yunzai-default__aside-user-avatar" [nzSrc]="icon"></nz-avatar>
|
|
1833
|
+
<div class="yunzai-default__aside-user-info">
|
|
1834
|
+
<strong>{{ text }}</strong>
|
|
1835
|
+
<p class="mb0">{{ intro }}</p>
|
|
1836
|
+
</div>
|
|
1837
|
+
</div>
|
|
1838
|
+
<nz-dropdown-menu #userMenu="nzDropdownMenu">
|
|
1839
|
+
<ul nz-menu>
|
|
1840
|
+
<li nz-menu-item routerLink="/">{{ 'menu.backtohome' | i18n }}</li>
|
|
1841
|
+
</ul>
|
|
1842
|
+
</nz-dropdown-menu>
|
|
1843
|
+
</ng-template>
|
|
1844
|
+
<ng-template #contentTpl>
|
|
1845
|
+
<reuse-tab #reuseTab [ngStyle]="reuseStyleSheet"></reuse-tab>
|
|
1846
|
+
<router-outlet (activate)="reuseTab.activate($event)"></router-outlet>
|
|
1847
|
+
</ng-template>
|
|
1848
|
+
<ng-template #noneTpl>
|
|
1849
|
+
<router-outlet></router-outlet>
|
|
1850
|
+
</ng-template>
|
|
1851
|
+
</layout-default>
|
|
1852
|
+
`, isInline: true, components: [{ type: i3$4.LayoutDefaultComponent, selector: "layout-default", inputs: ["options", "asideUser", "nav", "content", "customError"], exportAs: ["layoutDefault"] }, { type: i3$4.LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: ["hidden", "direction"] }, { type: YzHeaderApplicationComponent, selector: "yz-header-application" }, { type: YzHeaderNotifyComponent, selector: "yz-header-notify" }, { type: YzHeaderThemBtnComponent, selector: "yz-header-theme-btn", inputs: ["types", "devTips", "deployUrl"] }, { type: i2$2.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { type: YzHeaderFullScreenComponent, selector: "yz-header-fullscreen" }, { type: YzHeaderClearStorageComponent, selector: "yz-header-clear-storage" }, { type: YzHeaderI18NComponent, selector: "yz-header-i18n", inputs: ["showLangText"] }, { type: YzHeaderUserComponent, selector: "yz-header-user" }, { type: i4$3.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { type: i13.ReuseTabComponent, selector: "reuse-tab, [reuse-tab]", inputs: ["mode", "i18n", "debug", "max", "tabMaxWidth", "excludes", "allowClose", "keepingScroll", "keepingScrollContainer", "customContextMenu", "tabBarExtraContent", "tabBarGutter", "tabBarStyle", "tabType", "routeParamMatchMode", "disabled", "titleRender"], outputs: ["change", "close"], exportAs: ["reuseTab"] }], directives: [{ type: i3$4.LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]" }, { type: i2$2.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { type: i8.ɵ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"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i6.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { type: i6.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { type: i17.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i9$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i17.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], pipes: { "i18n": i1.I18nPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzLayoutBasicComponent, decorators: [{
|
|
1854
|
+
type: Component,
|
|
1855
|
+
args: [{
|
|
1856
|
+
selector: 'yz-layout-basic',
|
|
1857
|
+
template: `
|
|
1858
|
+
<layout-default [options]="options" [asideUser]="asideUserTpl" [content]="showReuseTab ? contentTpl : noneTpl">
|
|
1540
1859
|
<layout-default-header-item direction="left">
|
|
1541
1860
|
<yz-header-application></yz-header-application>
|
|
1542
1861
|
</layout-default-header-item>
|
|
@@ -1591,18 +1910,17 @@ YzLayoutBasicComponent.decorators = [
|
|
|
1591
1910
|
</nz-dropdown-menu>
|
|
1592
1911
|
</ng-template>
|
|
1593
1912
|
<ng-template #contentTpl>
|
|
1594
|
-
<reuse-tab #reuseTab></reuse-tab>
|
|
1913
|
+
<reuse-tab #reuseTab [ngStyle]="reuseStyleSheet"></reuse-tab>
|
|
1595
1914
|
<router-outlet (activate)="reuseTab.activate($event)"></router-outlet>
|
|
1596
1915
|
</ng-template>
|
|
1916
|
+
<ng-template #noneTpl>
|
|
1917
|
+
<router-outlet></router-outlet>
|
|
1918
|
+
</ng-template>
|
|
1597
1919
|
</layout-default>
|
|
1598
1920
|
`,
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
];
|
|
1602
|
-
YzLayoutBasicComponent.ctorParameters = () => [
|
|
1603
|
-
{ type: CacheService },
|
|
1604
|
-
{ type: YzStompService }
|
|
1605
|
-
];
|
|
1921
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1922
|
+
}]
|
|
1923
|
+
}], ctorParameters: function () { return [{ type: i2$1.CacheService }, { type: YzStompService }, { type: i3$4.LayoutService }]; } });
|
|
1606
1924
|
|
|
1607
1925
|
/*
|
|
1608
1926
|
* @Author: cui <devcui@outlook.com>
|
|
@@ -1627,19 +1945,44 @@ const COMPONENTS = [
|
|
|
1627
1945
|
];
|
|
1628
1946
|
class YunzaiLayoutModule {
|
|
1629
1947
|
}
|
|
1630
|
-
YunzaiLayoutModule
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1948
|
+
YunzaiLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YunzaiLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1949
|
+
YunzaiLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YunzaiLayoutModule, declarations: [ContactComponent,
|
|
1950
|
+
YzLayoutBasicComponent,
|
|
1951
|
+
YzHeaderApplicationComponent,
|
|
1952
|
+
YzHeaderNotifyComponent,
|
|
1953
|
+
YzHeaderThemBtnComponent,
|
|
1954
|
+
YzHeaderUserComponent,
|
|
1955
|
+
YzHeaderFullScreenComponent,
|
|
1956
|
+
YzHeaderClearStorageComponent,
|
|
1957
|
+
YzHeaderI18NComponent], imports: [HttpClientModule, CommonModule, FormsModule, RouterModule, ReactiveFormsModule, YzSharedModule], exports: [ContactComponent,
|
|
1958
|
+
YzLayoutBasicComponent,
|
|
1959
|
+
YzHeaderApplicationComponent,
|
|
1960
|
+
YzHeaderNotifyComponent,
|
|
1961
|
+
YzHeaderThemBtnComponent,
|
|
1962
|
+
YzHeaderUserComponent,
|
|
1963
|
+
YzHeaderFullScreenComponent,
|
|
1964
|
+
YzHeaderClearStorageComponent,
|
|
1965
|
+
YzHeaderI18NComponent] });
|
|
1966
|
+
YunzaiLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YunzaiLayoutModule, providers: [
|
|
1967
|
+
{
|
|
1968
|
+
provide: YUNZAI_THEME_BTN_KEYS,
|
|
1969
|
+
useValue: 'site-theme'
|
|
1970
|
+
}
|
|
1971
|
+
], imports: [[HttpClientModule, CommonModule, FormsModule, RouterModule, ReactiveFormsModule, YzSharedModule]] });
|
|
1972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YunzaiLayoutModule, decorators: [{
|
|
1973
|
+
type: NgModule,
|
|
1974
|
+
args: [{
|
|
1975
|
+
imports: [HttpClientModule, CommonModule, FormsModule, RouterModule, ReactiveFormsModule, YzSharedModule],
|
|
1976
|
+
providers: [
|
|
1977
|
+
{
|
|
1978
|
+
provide: YUNZAI_THEME_BTN_KEYS,
|
|
1979
|
+
useValue: 'site-theme'
|
|
1980
|
+
}
|
|
1981
|
+
],
|
|
1982
|
+
declarations: [...COMPONENTS],
|
|
1983
|
+
exports: [...COMPONENTS]
|
|
1984
|
+
}]
|
|
1985
|
+
}] });
|
|
1643
1986
|
|
|
1644
1987
|
class YzAuthService {
|
|
1645
1988
|
constructor(injector) {
|
|
@@ -1780,13 +2123,12 @@ class YzAuthService {
|
|
|
1780
2123
|
}));
|
|
1781
2124
|
}
|
|
1782
2125
|
}
|
|
1783
|
-
YzAuthService.ɵ
|
|
1784
|
-
YzAuthService
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
];
|
|
2126
|
+
YzAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzAuthService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2127
|
+
YzAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzAuthService, providedIn: 'root' });
|
|
2128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzAuthService, decorators: [{
|
|
2129
|
+
type: Injectable,
|
|
2130
|
+
args: [{ providedIn: 'root' }]
|
|
2131
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1790
2132
|
|
|
1791
2133
|
const CODEMESSAGE = {
|
|
1792
2134
|
200: '服务器成功返回请求的数据。',
|
|
@@ -1973,12 +2315,11 @@ class YzDefaultInterceptor {
|
|
|
1973
2315
|
}), catchError((err) => this.handleData(err, newReq, next)));
|
|
1974
2316
|
}
|
|
1975
2317
|
}
|
|
1976
|
-
YzDefaultInterceptor
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
];
|
|
2318
|
+
YzDefaultInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzDefaultInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2319
|
+
YzDefaultInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzDefaultInterceptor });
|
|
2320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzDefaultInterceptor, decorators: [{
|
|
2321
|
+
type: Injectable
|
|
2322
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1982
2323
|
|
|
1983
2324
|
function mapYzSideToYelonMenu(menus) {
|
|
1984
2325
|
menus.forEach(menu => {
|
|
@@ -2078,20 +2419,16 @@ class YzStartupService {
|
|
|
2078
2419
|
});
|
|
2079
2420
|
}
|
|
2080
2421
|
}
|
|
2081
|
-
YzStartupService
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
{ type: YzAuthService },
|
|
2092
|
-
{ type: CacheService },
|
|
2093
|
-
{ type: YunzaiConfigService$1 }
|
|
2094
|
-
];
|
|
2422
|
+
YzStartupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzStartupService, deps: [{ token: i9.NzIconService }, { token: i1.MenuService }, { token: YUNZAI_I18N_TOKEN }, { token: i1.SettingsService }, { token: i3$5.ACLService }, { token: i1.TitleService }, { token: YzAuthService }, { token: i2$1.CacheService }, { token: i1$2.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2423
|
+
YzStartupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzStartupService });
|
|
2424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: YzStartupService, decorators: [{
|
|
2425
|
+
type: Injectable
|
|
2426
|
+
}], ctorParameters: function () {
|
|
2427
|
+
return [{ type: i9.NzIconService }, { type: i1.MenuService }, { type: YzI18NService, decorators: [{
|
|
2428
|
+
type: Inject,
|
|
2429
|
+
args: [YUNZAI_I18N_TOKEN]
|
|
2430
|
+
}] }, { type: i1.SettingsService }, { type: i3$5.ACLService }, { type: i1.TitleService }, { type: YzAuthService }, { type: i2$1.CacheService }, { type: i1$2.YunzaiConfigService }];
|
|
2431
|
+
} });
|
|
2095
2432
|
function YzStartupServiceFactory(startupService) {
|
|
2096
2433
|
return () => startupService.load();
|
|
2097
2434
|
}
|
|
@@ -2333,13 +2670,14 @@ class PathToRegexpService {
|
|
|
2333
2670
|
return this.stringToRegexp(/** @type {string} */ path, keys, options);
|
|
2334
2671
|
}
|
|
2335
2672
|
}
|
|
2336
|
-
PathToRegexpService.ɵ
|
|
2337
|
-
PathToRegexpService
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2673
|
+
PathToRegexpService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: PathToRegexpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2674
|
+
PathToRegexpService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: PathToRegexpService, providedIn: 'root' });
|
|
2675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: PathToRegexpService, decorators: [{
|
|
2676
|
+
type: Injectable,
|
|
2677
|
+
args: [{
|
|
2678
|
+
providedIn: 'root'
|
|
2679
|
+
}]
|
|
2680
|
+
}], ctorParameters: function () { return []; } });
|
|
2343
2681
|
|
|
2344
2682
|
class ActGuard {
|
|
2345
2683
|
constructor(configService, cacheService, pathToRegexp, router) {
|
|
@@ -2432,25 +2770,18 @@ class ActGuard {
|
|
|
2432
2770
|
});
|
|
2433
2771
|
}
|
|
2434
2772
|
}
|
|
2435
|
-
ActGuard.ɵ
|
|
2436
|
-
ActGuard
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
{ type: CacheService },
|
|
2444
|
-
{ type: PathToRegexpService },
|
|
2445
|
-
{ type: Router }
|
|
2446
|
-
];
|
|
2447
|
-
|
|
2448
|
-
// export * from './contact/contact.component';
|
|
2449
|
-
// export * from './contact/contact.service';
|
|
2773
|
+
ActGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActGuard, deps: [{ token: i1$2.YunzaiConfigService }, { token: i2$1.CacheService }, { token: PathToRegexpService }, { token: i17.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2774
|
+
ActGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActGuard, providedIn: 'root' });
|
|
2775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActGuard, decorators: [{
|
|
2776
|
+
type: Injectable,
|
|
2777
|
+
args: [{
|
|
2778
|
+
providedIn: 'root'
|
|
2779
|
+
}]
|
|
2780
|
+
}], ctorParameters: function () { return [{ type: i1$2.YunzaiConfigService }, { type: i2$1.CacheService }, { type: PathToRegexpService }, { type: i17.Router }]; } });
|
|
2450
2781
|
|
|
2451
2782
|
/**
|
|
2452
2783
|
* Generated bundle index. Do not edit.
|
|
2453
2784
|
*/
|
|
2454
2785
|
|
|
2455
|
-
export { ActGuard, BUSINESS_DEFAULT_CONFIG, PathToRegexpService, STOMP_DEFAULT_CONFIG, TOPIC, YZ_APPINIT_PROVIDES, YunzaiLayoutModule, YzAuthService, YzDefaultInterceptor, YzHeaderApplicationComponent, YzHeaderClearStorageComponent, YzHeaderFullScreenComponent, YzHeaderI18NComponent, YzHeaderNotifyComponent, YzHeaderThemBtnComponent, YzHeaderUserComponent, YzI18NService, YzLayoutBasicComponent, YzStartupService, YzStartupServiceFactory, YzStompService, generateAbility, mapYzSideToYelonMenu, mergeBisConfig, mergeStompConfig
|
|
2456
|
-
//# sourceMappingURL=layout.
|
|
2786
|
+
export { ActGuard, BUSINESS_DEFAULT_CONFIG, ContactComponent, ContactService, PathToRegexpService, STOMP_DEFAULT_CONFIG, TOPIC, YZ_APPINIT_PROVIDES, YunzaiLayoutModule, YzAuthService, YzDefaultInterceptor, YzHeaderApplicationComponent, YzHeaderClearStorageComponent, YzHeaderFullScreenComponent, YzHeaderI18NComponent, YzHeaderNotifyComponent, YzHeaderThemBtnComponent, YzHeaderUserComponent, YzI18NService, YzLayoutBasicComponent, YzStartupService, YzStartupServiceFactory, YzStompService, generateAbility, mapYzSideToYelonMenu, mergeBisConfig, mergeStompConfig };
|
|
2787
|
+
//# sourceMappingURL=layout.mjs.map
|