@yelon/bis 16.0.4 → 16.2.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/esm2022/layout/bis.config.mjs +5 -1
- package/esm2022/layout/layout-basic/interface.mjs +1 -1
- package/esm2022/layout/layout-basic/layout-basic.component.mjs +12 -24
- package/esm2022/layout/layout-nav/layout-nav-application.component.mjs +60 -30
- package/esm2022/layout/layout-nav/layout-nav-group.component.mjs +69 -80
- package/esm2022/layout/layout-nav/layout-nav-tile.component.mjs +5 -6
- package/esm2022/layout/widgets/yunzai-clear-storage.component.mjs +5 -6
- package/esm2022/layout/widgets/yunzai-fullscreen.component.mjs +5 -6
- package/esm2022/layout/widgets/yunzai-i18n.component.mjs +8 -13
- package/esm2022/layout/widgets/yunzai-notify.component.mjs +5 -6
- package/esm2022/layout/widgets/yunzai-theme-btn.component.mjs +8 -12
- package/esm2022/layout/widgets/yunzai-user.component.mjs +5 -6
- package/esm2022/layout/yunzai-act.guard.mjs +5 -6
- package/esm2022/layout/yunzai-auth.service.mjs +14 -12
- package/esm2022/layout/yunzai-default.interceptor.mjs +3 -3
- package/esm2022/layout/yunzai-i18n.service.mjs +12 -16
- package/esm2022/layout/yunzai-layout.module.mjs +9 -10
- package/esm2022/layout/yunzai-startup.service.mjs +14 -13
- package/fesm2022/layout.mjs +213 -205
- package/fesm2022/layout.mjs.map +1 -1
- package/layout/layout-basic/interface.d.ts +1 -3
- package/layout/layout-basic/layout-basic.component.d.ts +2 -3
- package/layout/layout-nav/layout-nav-application.component.d.ts +9 -5
- package/layout/layout-nav/layout-nav-group.component.d.ts +2 -3
- package/layout/widgets/yunzai-i18n.component.d.ts +2 -5
- package/layout/widgets/yunzai-theme-btn.component.d.ts +0 -1
- package/layout/yunzai-i18n.service.d.ts +1 -5
- package/package.json +12 -12
package/fesm2022/layout.mjs
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, HostListener, Injectable, Inject, Input, Optional, NgModule, APP_INITIALIZER } from '@angular/core';
|
|
3
|
-
import { Subject, takeUntil, of, catchError, forkJoin, map as map$1, mergeMap, combineLatest, BehaviorSubject, throwError, filter, take, switchMap } from 'rxjs';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, HostListener, inject, DestroyRef, Injectable, Inject, Input, Optional, NgModule, APP_INITIALIZER } from '@angular/core';
|
|
4
3
|
import * as i1$3 from '@yelon/util';
|
|
5
4
|
import { useLocalStorageLang, useLocalStorageLangs, WINDOW, useLocalStorageProjectInfo, useLocalStorageUser, useLocalStorageHeader, NavType, hasFavicon, setFavicon, useLocalStorageCurrent, useLocalStorageHeaderType, useLocalStorageDefaultRoute, log as log$1, deepCopy, YunzaiConfigService, useLocalStorageTenant } from '@yelon/util';
|
|
6
5
|
import * as i1$4 from '@yelon/theme/layout-default';
|
|
7
6
|
import * as i2$1 from '@yelon/socket';
|
|
8
|
-
import * as
|
|
7
|
+
import * as i4$1 from '@angular/common';
|
|
9
8
|
import { registerLocaleData, DOCUMENT, CommonModule } from '@angular/common';
|
|
10
9
|
import * as i4$4 from '@angular/router';
|
|
11
10
|
import { Router, RouterModule } from '@angular/router';
|
|
12
|
-
import * as i5$
|
|
11
|
+
import * as i5$2 from '@yelon/abc/reuse-tab';
|
|
13
12
|
import * as i3 from 'ng-zorro-antd/core/transition-patch';
|
|
14
|
-
import * as i4$
|
|
13
|
+
import * as i4$2 from 'ng-zorro-antd/menu';
|
|
15
14
|
import * as i5 from 'ng-zorro-antd/dropdown';
|
|
16
|
-
import * as
|
|
15
|
+
import * as i6 from 'ng-zorro-antd/icon';
|
|
17
16
|
import * as i8$1 from 'ng-zorro-antd/avatar';
|
|
18
17
|
import * as i1 from 'ng-zorro-antd/modal';
|
|
19
18
|
import * as i1$1 from 'ng-zorro-antd/message';
|
|
@@ -22,7 +21,9 @@ import { zh_CN as zh_CN$1, zh_TW as zh_TW$1, en_US as en_US$1, el_GR as el_GR$1,
|
|
|
22
21
|
import screenfull from 'screenfull';
|
|
23
22
|
import { __decorate } from 'tslib';
|
|
24
23
|
import { InputBoolean } from '@yelon/util/decorator';
|
|
24
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
25
25
|
import ngEn from '@angular/common/locales/en';
|
|
26
|
+
import { of, catchError, forkJoin, map as map$1, mergeMap, combineLatest, BehaviorSubject, throwError, filter, take, switchMap } from 'rxjs';
|
|
26
27
|
import { zhCN, zhTW, enUS, el, es, fr, hr, it, ko, pl, sl, tr } from 'date-fns/locale';
|
|
27
28
|
import { map } from 'rxjs/operators';
|
|
28
29
|
import * as i2 from 'ng-zorro-antd/i18n';
|
|
@@ -43,22 +44,22 @@ import * as i4 from '@yelon/util/config';
|
|
|
43
44
|
import { YunzaiConfigService as YunzaiConfigService$1 } from '@yelon/util/config';
|
|
44
45
|
import { formatDistanceToNow } from 'date-fns';
|
|
45
46
|
import { log } from '@yelon/util/other';
|
|
46
|
-
import * as i4$
|
|
47
|
+
import * as i4$3 from '@yelon/abc/notice-icon';
|
|
47
48
|
import { YUNZAI_THEME_BTN_KEYS } from '@yelon/theme/theme-btn';
|
|
48
|
-
import * as i3$
|
|
49
|
+
import * as i3$2 from '@angular/cdk/bidi';
|
|
49
50
|
import * as i8 from 'ng-zorro-antd/tooltip';
|
|
50
51
|
import { YA_SERVICE_TOKEN, ALLOW_ANONYMOUS } from '@yelon/auth';
|
|
51
|
-
import * as
|
|
52
|
+
import * as i5$1 from '@angular/forms';
|
|
52
53
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
53
|
-
import * as
|
|
54
|
-
import * as
|
|
54
|
+
import * as i7 from 'ng-zorro-antd/grid';
|
|
55
|
+
import * as i9 from 'ng-zorro-antd/input';
|
|
55
56
|
import * as i7$1 from 'ng-zorro-antd/tabs';
|
|
56
57
|
import { HttpErrorResponse, HttpResponse, HttpResponseBase, HttpClientModule } from '@angular/common/http';
|
|
57
58
|
import { NzNotificationService } from 'ng-zorro-antd/notification';
|
|
58
59
|
import { YunzaiSharedYelonModule } from '@yelon/bcs/yunzai-shared-yelon';
|
|
59
60
|
import { YunzaiSharedZorroModule } from '@yelon/bcs/yunzai-shared-zorro';
|
|
60
61
|
import { AccountBookTwoTone, AccountBookFill, AccountBookOutline, AlertTwoTone, AlertFill, AlibabaOutline, AimOutline, AlipayCircleFill, AlertOutline, AlignCenterOutline, AlipayCircleOutline, AlipayOutline, AlignLeftOutline, AlignRightOutline, AmazonOutline, AliwangwangOutline, AliyunOutline, AlipaySquareFill, AmazonCircleFill, AndroidFill, AliwangwangFill, AntCloudOutline, AmazonSquareFill, AndroidOutline, ApartmentOutline, ApiTwoTone, ApiFill, ApiOutline, AntDesignOutline, AppstoreAddOutline, AppstoreFill, AppleOutline, AppstoreOutline, ArrowDownOutline, AppleFill, ArrowsAltOutline, AppstoreTwoTone, ArrowUpOutline, AreaChartOutline, ArrowLeftOutline, AudioFill, ArrowRightOutline, AudioTwoTone, AuditOutline, AudioMutedOutline, BackwardFill, AudioOutline, BackwardOutline, BankFill, BarcodeOutline, BellFill, BankTwoTone, BarsOutline, BankOutline, BehanceCircleFill, BehanceSquareFill, BoldOutline, BellOutline, BehanceOutline, BlockOutline, BehanceSquareOutline, BgColorsOutline, BellTwoTone, BarChartOutline, BookTwoTone, BookFill, BorderOuterOutline, BorderLeftOutline, BorderBottomOutline, BorderHorizontalOutline, BorderTopOutline, BorderOutline, BorderInnerOutline, BorderRightOutline, BoxPlotOutline, BoxPlotFill, BoxPlotTwoTone, BookOutline, BorderlessTableOutline, BorderVerticleOutline, BuildTwoTone, BuildOutline, BugFill, BugOutline, BugTwoTone, BulbFill, BulbTwoTone, BuildFill, BulbOutline, CalculatorFill, CalculatorTwoTone, CalendarFill, CalendarOutline, CalculatorOutline, CalendarTwoTone, CameraOutline, CameraFill, CameraTwoTone, CarTwoTone, CaretDownOutline, CarOutline, CaretLeftFill, CarFill, CaretRightOutline, CaretDownFill, CaretUpOutline, CaretRightFill, CarryOutFill, CarryOutOutline, CaretLeftOutline, CaretUpFill, BranchesOutline, CarryOutTwoTone, CheckCircleFill, CheckCircleOutline, CheckSquareOutline, CheckCircleTwoTone, CiCircleTwoTone, CheckOutline, CheckSquareTwoTone, CiOutline, CheckSquareFill, CiTwoTone, ChromeOutline, ClockCircleOutline, CiCircleOutline, ChromeFill, ClearOutline, CloseCircleTwoTone, CiCircleFill, CloseCircleOutline, ClockCircleFill, CloseCircleFill, ClockCircleTwoTone, CloseOutline, CloseSquareOutline, CloseSquareFill, CloudFill, CloseSquareTwoTone, CloudDownloadOutline, CloudTwoTone, CloudServerOutline, CloudUploadOutline, CloudSyncOutline, ClusterOutline, CodeSandboxCircleFill, CodeFill, CodepenCircleOutline, CloudOutline, CodeSandboxOutline, CodeOutline, CodeSandboxSquareFill, CodeTwoTone, CodepenSquareFill, CodepenOutline, CoffeeOutline, ColumnWidthOutline, CompressOutline, ColumnHeightOutline, CodepenCircleFill, CompassTwoTone, CommentOutline, ContainerFill, CompassOutline, ConsoleSqlOutline, ContactsOutline, ContainerTwoTone, ContactsFill, ContactsTwoTone, ContainerOutline, ControlFill, CopyFill, CopyOutline, CompassFill, CopyTwoTone, CopyrightOutline, CopyrightCircleOutline, ControlTwoTone, ControlOutline, CreditCardFill, CopyrightTwoTone, CrownFill, CopyrightCircleFill, CrownOutline, CustomerServiceTwoTone, CreditCardOutline, CustomerServiceOutline, DashboardTwoTone, CrownTwoTone, CreditCardTwoTone, CustomerServiceFill, DashboardFill, DashOutline, DatabaseOutline, DatabaseTwoTone, DatabaseFill, DashboardOutline, DeleteTwoTone, DeleteRowOutline, DeleteColumnOutline, DeliveredProcedureOutline, DeleteOutline, CopyrightCircleTwoTone, DesktopOutline, DeleteFill, DiffOutline, DiffFill, DeploymentUnitOutline, DiffTwoTone, DingtalkOutline, DollarCircleFill, DislikeFill, DingtalkSquareFill, DisconnectOutline, DollarCircleTwoTone, DollarOutline, DingtalkCircleFill, DislikeTwoTone, DollarTwoTone, DownCircleFill, DislikeOutline, DollarCircleOutline, DoubleLeftOutline, DownSquareFill, DownOutline, DownSquareOutline, DownSquareTwoTone, DownCircleTwoTone, DoubleRightOutline, DownCircleOutline, DownloadOutline, DotChartOutline, DribbbleCircleFill, DribbbleOutline, DribbbleSquareOutline, DropboxCircleFill, DingdingOutline, EditOutline, DribbbleSquareFill, DropboxSquareFill, EllipsisOutline, EnvironmentFill, EditFill, EnterOutline, EuroCircleFill, EuroTwoTone, EuroCircleOutline, EditTwoTone, EuroOutline, EnvironmentTwoTone, ExclamationCircleFill, ExpandAltOutline, EuroCircleTwoTone, ExclamationCircleTwoTone, EnvironmentOutline, ExperimentOutline, ExperimentFill, ExpandOutline, ExceptionOutline, ExportOutline, ExperimentTwoTone, ExclamationCircleOutline, ExclamationOutline, EyeFill, EyeInvisibleFill, EyeInvisibleTwoTone, DropboxOutline, DragOutline, FacebookOutline, FacebookFill, EyeTwoTone, EyeOutline, FastForwardFill, FieldBinaryOutline, FieldNumberOutline, FastBackwardOutline, FileAddFill, FastBackwardFill, FileExcelFill, FastForwardOutline, FieldStringOutline, FileDoneOutline, FileAddTwoTone, FileExcelTwoTone, FileExclamationFill, FileAddOutline, FileExclamationOutline, FieldTimeOutline, FileImageTwoTone, FileExcelOutline, FileExclamationTwoTone, FileImageFill, FileGifOutline, FileFill, FileMarkdownTwoTone, FileMarkdownOutline, FallOutline, FileImageOutline, EyeInvisibleOutline, FilePdfOutline, FileSearchOutline, FilePptTwoTone, FilePdfTwoTone, FileJpgOutline, FileTextFill, FilePptOutline, FileSyncOutline, FilePptFill, FileUnknownOutline, FileProtectOutline, FileTextTwoTone, FileWordFill, FileUnknownTwoTone, FileWordTwoTone, FileUnknownFill, FileTextOutline, FileZipFill, FilterTwoTone, FilterFill, FileWordOutline, FireOutline, FireTwoTone, FileZipOutline, FilterOutline, FlagTwoTone, FileTwoTone, FilePdfFill, FileOutline, FileMarkdownFill, FileZipTwoTone, FlagOutline, FolderAddTwoTone, FolderOpenFill, FireFill, FlagFill, FolderOutline, FolderViewOutline, FolderTwoTone, FontColorsOutline, FolderOpenTwoTone, FolderFill, ForwardOutline, FolderOpenOutline, ForkOutline, ForwardFill, FormatPainterOutline, FormatPainterFill, FormOutline, FrownFill, FrownTwoTone, FullscreenOutline, FontSizeOutline, FundFill, FunctionOutline, FundViewOutline, FullscreenExitOutline, GifOutline, FundProjectionScreenOutline, FundTwoTone, FolderAddFill, FunnelPlotTwoTone, GiftOutline, FunnelPlotFill, FundOutline, FrownOutline, GithubOutline, GoldFill, FolderAddOutline, GitlabFill, GiftFill, GitlabOutline, GoldTwoTone, GoogleCircleFill, GiftTwoTone, GooglePlusCircleFill, GoldOutline, GithubFill, GoogleOutline, GooglePlusOutline, GoogleSquareFill, GoldenFill, HddTwoTone, GooglePlusSquareFill, GlobalOutline, HeartOutline, HeartTwoTone, GroupOutline, HeartFill, HeatMapOutline, GatewayOutline, FunnelPlotOutline, HddFill, HomeFill, HighlightFill, HomeOutline, HistoryOutline, HighlightOutline, HddOutline, HourglassFill, HomeTwoTone, HourglassTwoTone, Html5Outline, Html5Fill, IdcardFill, Html5TwoTone, HourglassOutline, IdcardTwoTone, IdcardOutline, IeOutline, IeCircleFill, IeSquareFill, InboxOutline, ImportOutline, InfoCircleOutline, InfoCircleTwoTone, InsertRowAboveOutline, InsertRowRightOutline, InfoCircleFill, InfoOutline, InsertRowBelowOutline, HighlightTwoTone, InsuranceFill, InstagramFill, InteractionFill, InsertRowLeftOutline, InstagramOutline, InteractionOutline, ItalicOutline, InteractionTwoTone, LayoutOutline, IssuesCloseOutline, LayoutFill, LaptopOutline, LeftCircleFill, LayoutTwoTone, KeyOutline, LeftOutline, LeftCircleOutline, LeftSquareOutline, LeftSquareFill, LeftCircleTwoTone, LikeFill, LeftSquareTwoTone, LineOutline, LikeTwoTone, LinkedinOutline, LineChartOutline, LineHeightOutline, LinkedinFill, LinkOutline, LikeOutline, InsuranceOutline, Loading3QuartersOutline, LockFill, InsuranceTwoTone, MacCommandOutline, LockTwoTone, LoadingOutline, MailOutline, LoginOutline, MedicineBoxOutline, MailFill, MailTwoTone, MacCommandFill, ManOutline, MedicineBoxFill, MedicineBoxTwoTone, MediumCircleFill, MediumOutline, MehFill, MediumWorkmarkOutline, MenuFoldOutline, MehOutline, MediumSquareFill, MessageTwoTone, MehTwoTone, MergeCellsOutline, MinusCircleFill, MenuOutline, MenuUnfoldOutline, MessageFill, MinusCircleTwoTone, LockOutline, MinusOutline, MinusCircleOutline, LogoutOutline, MessageOutline, MoneyCollectFill, MinusSquareOutline, MinusSquareTwoTone, MobileOutline, MobileTwoTone, MoneyCollectOutline, MoreOutline, NotificationFill, NotificationOutline, MoneyCollectTwoTone, NodeIndexOutline, NodeExpandOutline, MonitorOutline, OrderedListOutline, NodeCollapseOutline, NumberOutline, PaperClipOutline, NotificationTwoTone, PauseCircleFill, PartitionOutline, PauseOutline, OneToOneOutline, PayCircleOutline, PayCircleFill, MinusSquareFill, PauseCircleOutline, PauseCircleTwoTone, PicCenterOutline, PicRightOutline, PercentageOutline, MobileFill, PictureOutline, PictureFill, PhoneTwoTone, PhoneFill, PieChartFill, PictureTwoTone, PieChartOutline, PlaySquareFill, PlayCircleTwoTone, PlayCircleFill, PlusCircleFill, PlaySquareTwoTone, PlaySquareOutline, PlayCircleOutline, PieChartTwoTone, PlusCircleOutline, PlusSquareFill, PoundCircleFill, PlusSquareOutline, PlusOutline, PoundOutline, PoundCircleOutline, PlusSquareTwoTone, PlusCircleTwoTone, PoweroffOutline, PoundCircleTwoTone, PhoneOutline, PrinterFill, PicLeftOutline, ProjectTwoTone, PrinterOutline, ProjectFill, ProfileOutline, ProfileTwoTone, ProjectOutline, PropertySafetyFill, PullRequestOutline, PropertySafetyOutline, PushpinOutline, PushpinTwoTone, PropertySafetyTwoTone, PushpinFill, QqOutline, QqCircleFill, QrcodeOutline, QqSquareFill, QuestionCircleTwoTone, QuestionCircleFill, RadarChartOutline, RadiusUprightOutline, QuestionCircleOutline, QuestionOutline, ReadFill, RadiusUpleftOutline, RadiusBottomleftOutline, RadiusSettingOutline, RadiusBottomrightOutline, ProfileFill, PrinterTwoTone, ReadOutline, ReconciliationFill, ReloadOutline, ReconciliationOutline, RedEnvelopeTwoTone, RedditCircleFill, RedoOutline, RedEnvelopeFill, RedditOutline, RestTwoTone, RightCircleOutline, RestOutline, RedditSquareFill, RestFill, RightCircleTwoTone, RightOutline, RightSquareFill, RightCircleFill, RightSquareOutline, RetweetOutline, RiseOutline, RightSquareTwoTone, RobotFill, RocketOutline, RobotOutline, RocketTwoTone, RocketFill, RedEnvelopeOutline, RollbackOutline, RotateRightOutline, RotateLeftOutline, ReconciliationTwoTone, SafetyCertificateTwoTone, SaveOutline, SafetyOutline, SaveFill, SaveTwoTone, ScheduleFill, SafetyCertificateOutline, ScanOutline, ScheduleTwoTone, SearchOutline, ScheduleOutline, SecurityScanTwoTone, SecurityScanOutline, ScissorOutline, SelectOutline, SecurityScanFill, SendOutline, SettingOutline, SettingTwoTone, SettingFill, ShareAltOutline, ShopOutline, ShopFill, ShopTwoTone, ShrinkOutline, ShakeOutline, ShoppingOutline, ShoppingCartOutline, ShoppingFill, SisternodeOutline, ShoppingTwoTone, SafetyCertificateFill, SkinOutline, SignalFill, SketchOutline, SkinTwoTone, SketchSquareFill, SkypeFill, SkinFill, SlackCircleFill, SlackSquareFill, SlidersTwoTone, SkypeOutline, SlidersFill, SlackSquareOutline, SmallDashOutline, SmileTwoTone, SlidersOutline, SnippetsFill, SnippetsOutline, SmileOutline, SolutionOutline, SlackOutline, SnippetsTwoTone, SoundTwoTone, SortAscendingOutline, SoundFill, SortDescendingOutline, SmileFill, SoundOutline, SplitCellsOutline, SketchCircleFill, StarOutline, StockOutline, StarTwoTone, StepForwardFill, StarFill, StepBackwardFill, StepForwardOutline, StopFill, SubnodeOutline, SwapLeftOutline, StopOutline, StopTwoTone, SwapRightOutline, SwapOutline, SwitcherTwoTone, SwitcherOutline, SyncOutline, StrikethroughOutline, SwitcherFill, TagOutline, TabletTwoTone, TabletOutline, TabletFill, TableOutline, TagsFill, TagFill, TagsTwoTone, TaobaoCircleOutline, StepBackwardOutline, TagsOutline, TagTwoTone, TaobaoOutline, ThunderboltOutline, TaobaoSquareFill, TeamOutline, TaobaoCircleFill, ThunderboltTwoTone, ToolFill, ThunderboltFill, ToTopOutline, ToolOutline, ToolTwoTone, TrademarkCircleFill, TrophyFill, TrademarkCircleTwoTone, TransactionOutline, TrademarkCircleOutline, TranslationOutline, TwitterCircleFill, TrophyOutline, TrademarkOutline, TrophyTwoTone, TwitterSquareFill, UnlockFill, TwitterOutline, UnderlineOutline, UndoOutline, UpCircleFill, UngroupOutline, UnlockTwoTone, UnlockOutline, UpOutline, UsbFill, UpCircleOutline, UnorderedListOutline, UpCircleTwoTone, UpSquareFill, UpSquareOutline, UserAddOutline, UsbTwoTone, UsergroupDeleteOutline, UpSquareTwoTone, UserOutline, UsbOutline, UserDeleteOutline, UserSwitchOutline, VerticalLeftOutline, VerticalAlignBottomOutline, VerifiedOutline, UsergroupAddOutline, UploadOutline, VerticalAlignMiddleOutline, VerticalAlignTopOutline, VerticalRightOutline, VideoCameraOutline, VideoCameraAddOutline, VideoCameraTwoTone, VideoCameraFill, WalletOutline, WalletFill, WarningFill, WarningOutline, WechatOutline, WalletTwoTone, WeiboCircleFill, WarningTwoTone, WeiboSquareFill, WeiboOutline, WeiboSquareOutline, WeiboCircleOutline, WechatFill, WhatsAppOutline, WifiOutline, WomanOutline, YoutubeFill, YahooOutline, WindowsFill, WindowsOutline, YoutubeOutline, YuqueOutline, ZhihuCircleFill, YuqueFill, ZhihuOutline, ZhihuSquareFill, ZoomInOutline, ZoomOutOutline, YahooFill } from '@ant-design/icons-angular/icons';
|
|
61
|
-
import * as i3$
|
|
62
|
+
import * as i3$3 from '@yelon/acl';
|
|
62
63
|
|
|
63
64
|
class YunzaiClearStorageComponent {
|
|
64
65
|
constructor(modalSrv, messageSrv) {
|
|
@@ -74,13 +75,13 @@ class YunzaiClearStorageComponent {
|
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
78
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiClearStorageComponent, deps: [{ token: i1.NzModalService }, { token: i1$1.NzMessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
79
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: YunzaiClearStorageComponent, selector: "yunzai-clearstorage", host: { listeners: { "click": "_click()" }, properties: { "class.d-block": "true" } }, ngImport: i0, template: `
|
|
79
80
|
<i nz-icon nzType="tool"></i>
|
|
80
81
|
{{ 'storage.clear' | i18n }}
|
|
81
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type:
|
|
82
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
82
83
|
}
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiClearStorageComponent, decorators: [{
|
|
84
85
|
type: Component,
|
|
85
86
|
args: [{
|
|
86
87
|
selector: 'yunzai-clearstorage',
|
|
@@ -110,13 +111,13 @@ class YunzaiFullScreenComponent {
|
|
|
110
111
|
screenfull.toggle();
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
114
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1
|
|
114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiFullScreenComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
115
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: YunzaiFullScreenComponent, selector: "yunzai-fullscreen", host: { listeners: { "window:resize": "_resize()", "click": "_click()" }, properties: { "class.d-block": "true" } }, ngImport: i0, template: `
|
|
115
116
|
<i nz-icon [nzType]="status ? 'fullscreen-exit' : 'fullscreen'"></i>
|
|
116
117
|
{{ (status ? 'exitFullscreen' : 'fullscreen') | i18n }}
|
|
117
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type:
|
|
118
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
118
119
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiFullScreenComponent, decorators: [{
|
|
120
121
|
type: Component,
|
|
121
122
|
args: [{
|
|
122
123
|
selector: 'yunzai-fullscreen',
|
|
@@ -140,6 +141,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImpor
|
|
|
140
141
|
const BUSINESS_DEFAULT_CONFIG = {
|
|
141
142
|
baseUrl: '/backstage',
|
|
142
143
|
systemCode: 'portal',
|
|
144
|
+
nav: {
|
|
145
|
+
mine: true,
|
|
146
|
+
all: true
|
|
147
|
+
},
|
|
143
148
|
loginForm: null,
|
|
144
149
|
refreshTokenEnabled: true,
|
|
145
150
|
refreshTokenType: 're-request'
|
|
@@ -257,11 +262,10 @@ class YunzaiI18NService extends YunzaiI18nBaseService {
|
|
|
257
262
|
this.yelonLocaleService = yelonLocaleService;
|
|
258
263
|
this.platform = platform;
|
|
259
264
|
this._defaultLang = DEFAULT;
|
|
260
|
-
this.destroy$ = new Subject();
|
|
261
265
|
const defaultLang = this.getDefaultLang();
|
|
262
266
|
this.bis = mergeBisConfig(cogSrv);
|
|
263
267
|
this.getLangs()
|
|
264
|
-
.pipe(
|
|
268
|
+
.pipe(takeUntilDestroyed(inject(DestroyRef)))
|
|
265
269
|
.subscribe(langs => {
|
|
266
270
|
this._defaultLang = langs.findIndex(w => w.code === defaultLang) === -1 ? DEFAULT : defaultLang;
|
|
267
271
|
});
|
|
@@ -334,7 +338,7 @@ class YunzaiI18NService extends YunzaiI18nBaseService {
|
|
|
334
338
|
}
|
|
335
339
|
}
|
|
336
340
|
cacheLang(lang, data) {
|
|
337
|
-
const [setLang
|
|
341
|
+
const [setLang] = useLocalStorageLang();
|
|
338
342
|
setLang(lang, data);
|
|
339
343
|
}
|
|
340
344
|
getLang(lang) {
|
|
@@ -342,20 +346,17 @@ class YunzaiI18NService extends YunzaiI18nBaseService {
|
|
|
342
346
|
return getL(lang) || {};
|
|
343
347
|
}
|
|
344
348
|
cacheLangs(langs) {
|
|
345
|
-
const [setLangs
|
|
349
|
+
const [setLangs] = useLocalStorageLangs();
|
|
346
350
|
setLangs(langs);
|
|
347
351
|
}
|
|
348
352
|
getCachedLangs() {
|
|
349
353
|
const [, getLangs] = useLocalStorageLangs();
|
|
350
354
|
return getLangs() || [];
|
|
351
355
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: YunzaiI18NService, deps: [{ token: i1$2._HttpClient }, { token: i1$2.SettingsService }, { token: i2.NzI18nService }, { token: i1$2.YelonLocaleService }, { token: i3$1.Platform }, { token: i4.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
356
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: YunzaiI18NService, providedIn: 'root' }); }
|
|
356
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiI18NService, deps: [{ token: i1$2._HttpClient }, { token: i1$2.SettingsService }, { token: i2.NzI18nService }, { token: i1$2.YelonLocaleService }, { token: i3$1.Platform }, { token: i4.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
357
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiI18NService, providedIn: 'root' }); }
|
|
357
358
|
}
|
|
358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiI18NService, decorators: [{
|
|
359
360
|
type: Injectable,
|
|
360
361
|
args: [{ providedIn: 'root' }]
|
|
361
362
|
}], ctorParameters: function () { return [{ type: i1$2._HttpClient }, { type: i1$2.SettingsService }, { type: i2.NzI18nService }, { type: i1$2.YelonLocaleService }, { type: i3$1.Platform }, { type: i4.YunzaiConfigService }]; } });
|
|
@@ -368,13 +369,12 @@ class YunzaiI18NComponent {
|
|
|
368
369
|
this.settings = settings;
|
|
369
370
|
this.i18n = i18n;
|
|
370
371
|
this.doc = doc;
|
|
371
|
-
this.destroy$ = new Subject();
|
|
372
372
|
/** Whether to display language text */
|
|
373
373
|
this.showLangText = true;
|
|
374
374
|
this.langs = [];
|
|
375
375
|
this.i18n
|
|
376
376
|
.getLangs()
|
|
377
|
-
.pipe(
|
|
377
|
+
.pipe(takeUntilDestroyed(inject(DestroyRef)))
|
|
378
378
|
.subscribe(langs => {
|
|
379
379
|
this.langs = langs;
|
|
380
380
|
});
|
|
@@ -390,11 +390,8 @@ class YunzaiI18NComponent {
|
|
|
390
390
|
setTimeout(() => this.doc.location.reload());
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: YunzaiI18NComponent, deps: [{ token: i1$2.SettingsService }, { token: YUNZAI_I18N_TOKEN }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
397
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: YunzaiI18NComponent, selector: "yunzai-i18n", inputs: { showLangText: "showLangText" }, ngImport: i0, template: `
|
|
393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiI18NComponent, deps: [{ token: i1$2.SettingsService }, { token: YUNZAI_I18N_TOKEN }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
394
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: YunzaiI18NComponent, selector: "yunzai-i18n", inputs: { showLangText: "showLangText" }, ngImport: i0, template: `
|
|
398
395
|
<div *ngIf="showLangText" nz-dropdown [nzDropdownMenu]="langMenu" nzPlacement="bottomRight">
|
|
399
396
|
<i nz-icon nzType="global"></i>
|
|
400
397
|
{{ 'lang.nav' | i18n }}
|
|
@@ -432,12 +429,12 @@ class YunzaiI18NComponent {
|
|
|
432
429
|
</li>
|
|
433
430
|
</ul>
|
|
434
431
|
</nz-dropdown-menu>
|
|
435
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
432
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i4$2.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
436
433
|
}
|
|
437
434
|
__decorate([
|
|
438
435
|
InputBoolean()
|
|
439
436
|
], YunzaiI18NComponent.prototype, "showLangText", void 0);
|
|
440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiI18NComponent, decorators: [{
|
|
441
438
|
type: Component,
|
|
442
439
|
args: [{
|
|
443
440
|
selector: 'yunzai-i18n',
|
|
@@ -628,8 +625,8 @@ class YunzaiNotifyComponent {
|
|
|
628
625
|
ngOnDestroy() {
|
|
629
626
|
this.subs.forEach(a => a.unsubscribe());
|
|
630
627
|
}
|
|
631
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
632
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1
|
|
628
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiNotifyComponent, deps: [{ token: i0.Injector }, { token: i1$1.NzMessageService }, { token: YUNZAI_I18N_TOKEN }, { token: i2.NzI18nService }, { token: i0.ChangeDetectorRef }, { token: i1$2._HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
629
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: YunzaiNotifyComponent, selector: "yunzai-notify", ngImport: i0, template: `
|
|
633
630
|
<notice-icon
|
|
634
631
|
[data]="data"
|
|
635
632
|
[count]="count"
|
|
@@ -639,9 +636,9 @@ class YunzaiNotifyComponent {
|
|
|
639
636
|
(select)="select($event)"
|
|
640
637
|
(clear)="clear($event)"
|
|
641
638
|
></notice-icon>
|
|
642
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i4$
|
|
639
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i4$3.NoticeIconComponent, selector: "notice-icon", inputs: ["data", "count", "loading", "popoverVisible", "btnClass", "btnIconClass", "centered"], outputs: ["select", "clear", "popoverVisibleChange"], exportAs: ["noticeIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
643
640
|
}
|
|
644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiNotifyComponent, decorators: [{
|
|
645
642
|
type: Component,
|
|
646
643
|
args: [{
|
|
647
644
|
selector: 'yunzai-notify',
|
|
@@ -688,12 +685,11 @@ class YunzaiThemBtnComponent {
|
|
|
688
685
|
];
|
|
689
686
|
this.devTips = `When the dark.css file can't be found, you need to run it once: npm run theme`;
|
|
690
687
|
this.deployUrl = '';
|
|
691
|
-
this.destroy$ = new Subject();
|
|
692
688
|
this.dir = 'ltr';
|
|
693
689
|
}
|
|
694
690
|
ngOnInit() {
|
|
695
691
|
this.dir = this.directionality.value;
|
|
696
|
-
this.directionality.change?.pipe(
|
|
692
|
+
this.directionality.change?.pipe(takeUntilDestroyed(inject(DestroyRef))).subscribe((direction) => {
|
|
697
693
|
this.dir = direction;
|
|
698
694
|
});
|
|
699
695
|
this.initTheme();
|
|
@@ -736,11 +732,9 @@ class YunzaiThemBtnComponent {
|
|
|
736
732
|
if (el != null) {
|
|
737
733
|
this.doc.body.removeChild(el);
|
|
738
734
|
}
|
|
739
|
-
this.destroy$.next();
|
|
740
|
-
this.destroy$.complete();
|
|
741
735
|
}
|
|
742
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
743
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1
|
|
736
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiThemBtnComponent, deps: [{ token: i0.Renderer2 }, { token: i4.YunzaiConfigService }, { token: i3$1.Platform }, { token: DOCUMENT }, { token: i3$2.Directionality, optional: true }, { token: YUNZAI_THEME_BTN_KEYS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
737
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: YunzaiThemBtnComponent, selector: "yunzai-theme-btn", inputs: { types: "types", devTips: "devTips", deployUrl: "deployUrl" }, ngImport: i0, template: `
|
|
744
738
|
<div
|
|
745
739
|
data-event-id="_nav_theme"
|
|
746
740
|
class="yunzai-default__nav-item"
|
|
@@ -782,9 +776,9 @@ class YunzaiThemBtnComponent {
|
|
|
782
776
|
<!-- </div>-->
|
|
783
777
|
<!-- </div>-->
|
|
784
778
|
</nz-dropdown-menu>
|
|
785
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
779
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i4$2.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i8.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
786
780
|
}
|
|
787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiThemBtnComponent, decorators: [{
|
|
788
782
|
type: Component,
|
|
789
783
|
args: [{
|
|
790
784
|
selector: 'yunzai-theme-btn',
|
|
@@ -836,7 +830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImpor
|
|
|
836
830
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i4.YunzaiConfigService }, { type: i3$1.Platform }, { type: undefined, decorators: [{
|
|
837
831
|
type: Inject,
|
|
838
832
|
args: [DOCUMENT]
|
|
839
|
-
}] }, { type: i3$
|
|
833
|
+
}] }, { type: i3$2.Directionality, decorators: [{
|
|
840
834
|
type: Optional
|
|
841
835
|
}] }, { type: undefined, decorators: [{
|
|
842
836
|
type: Inject,
|
|
@@ -886,8 +880,8 @@ class YunzaiUserComponent {
|
|
|
886
880
|
this.msg.error('该菜单没有配置链接!');
|
|
887
881
|
}
|
|
888
882
|
}
|
|
889
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
890
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1
|
|
883
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiUserComponent, deps: [{ token: i0.Injector }, { token: i1$1.NzMessageService }, { token: YA_SERVICE_TOKEN }, { token: i1$3.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
884
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: YunzaiUserComponent, selector: "yunzai-user", ngImport: i0, template: `
|
|
891
885
|
<div
|
|
892
886
|
class="yunzai-default__nav-item d-flex align-items-center px-sm"
|
|
893
887
|
data-event-id="_nav_user"
|
|
@@ -919,9 +913,9 @@ class YunzaiUserComponent {
|
|
|
919
913
|
</div>
|
|
920
914
|
</div>
|
|
921
915
|
</nz-dropdown-menu>
|
|
922
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
916
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i4$2.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i4$2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i8$1.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
923
917
|
}
|
|
924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiUserComponent, decorators: [{
|
|
925
919
|
type: Component,
|
|
926
920
|
args: [{
|
|
927
921
|
selector: 'yunzai-user',
|
|
@@ -966,10 +960,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImpor
|
|
|
966
960
|
}] }, { type: i1$3.YunzaiConfigService }]; } });
|
|
967
961
|
|
|
968
962
|
class LayoutNavApplicationComponent {
|
|
969
|
-
|
|
963
|
+
get showAllMenu() {
|
|
964
|
+
if (this.bis.nav)
|
|
965
|
+
return this.bis.nav.all;
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
get showMineMenu() {
|
|
969
|
+
if (this.bis.nav)
|
|
970
|
+
return this.bis.nav.mine;
|
|
971
|
+
return true;
|
|
972
|
+
}
|
|
973
|
+
constructor(i18n, http, inject,
|
|
974
|
+
// @ts-ignore
|
|
975
|
+
configService, win) {
|
|
970
976
|
this.i18n = i18n;
|
|
971
977
|
this.http = http;
|
|
972
978
|
this.inject = inject;
|
|
979
|
+
this.configService = configService;
|
|
980
|
+
this.win = win;
|
|
981
|
+
this.bis = BUSINESS_DEFAULT_CONFIG;
|
|
973
982
|
this.state = {
|
|
974
983
|
active: false,
|
|
975
984
|
type: 'all',
|
|
@@ -977,12 +986,20 @@ class LayoutNavApplicationComponent {
|
|
|
977
986
|
topics: [],
|
|
978
987
|
list: [],
|
|
979
988
|
search: null,
|
|
980
|
-
destroy$: new Subject()
|
|
981
989
|
};
|
|
990
|
+
this.bis = mergeBisConfig(configService);
|
|
982
991
|
}
|
|
983
992
|
ngOnInit() {
|
|
984
993
|
this.fetchAllTopic();
|
|
985
994
|
this.attachNav('all');
|
|
995
|
+
this.win.addEventListener("click", (event) => {
|
|
996
|
+
const { target } = event;
|
|
997
|
+
const btn = this.win.document.getElementById("navBtn");
|
|
998
|
+
const dropdown = this.win.document.getElementById("navDropdown");
|
|
999
|
+
if (btn && dropdown && !dropdown.contains(target) && !btn.contains(target)) {
|
|
1000
|
+
this.state.active = false;
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
986
1003
|
}
|
|
987
1004
|
fetchAllTopic() {
|
|
988
1005
|
const [, getTopics] = useLocalStorageHeader();
|
|
@@ -1042,7 +1059,7 @@ class LayoutNavApplicationComponent {
|
|
|
1042
1059
|
appId: topic.key,
|
|
1043
1060
|
createDate: new Date()
|
|
1044
1061
|
})
|
|
1045
|
-
.pipe(
|
|
1062
|
+
.pipe(takeUntilDestroyed(inject(DestroyRef)))
|
|
1046
1063
|
.subscribe();
|
|
1047
1064
|
}
|
|
1048
1065
|
switch (topic.target) {
|
|
@@ -1085,11 +1102,8 @@ class LayoutNavApplicationComponent {
|
|
|
1085
1102
|
this.state.list = getTopics();
|
|
1086
1103
|
}
|
|
1087
1104
|
}
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1091
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: LayoutNavApplicationComponent, deps: [{ token: YunzaiI18NService }, { token: i1$2._HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1092
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: LayoutNavApplicationComponent, selector: "layout-nav-application", ngImport: i0, template: `
|
|
1105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: LayoutNavApplicationComponent, deps: [{ token: YunzaiI18NService }, { token: i1$2._HttpClient }, { token: i0.Injector }, { token: i1$3.YunzaiConfigService }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1106
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: LayoutNavApplicationComponent, selector: "layout-nav-application", ngImport: i0, template: `
|
|
1093
1107
|
<!-- search start-->
|
|
1094
1108
|
<ng-template #search>
|
|
1095
1109
|
<div nz-row class="yz-application-list-search">
|
|
@@ -1131,16 +1145,19 @@ class LayoutNavApplicationComponent {
|
|
|
1131
1145
|
<!-- right menu end -->
|
|
1132
1146
|
|
|
1133
1147
|
<!-- button start-->
|
|
1134
|
-
<div data-event-id="_nav_app" class="yunzai-default__nav-item"
|
|
1148
|
+
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item"
|
|
1149
|
+
(click)="diffChange()"> {{ 'mode.nav' | i18n }}</div>
|
|
1135
1150
|
<!-- button end-->
|
|
1136
1151
|
|
|
1137
1152
|
<!-- header start-->
|
|
1138
|
-
<div class="yz-application" nz-row *ngIf="state.active">
|
|
1153
|
+
<div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
|
|
1139
1154
|
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
1140
|
-
<div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text"
|
|
1155
|
+
<div *ngIf="showAllMenu" data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text"
|
|
1156
|
+
(click)="attachNav('all')">{{
|
|
1141
1157
|
'mode.nav.all' | i18n
|
|
1142
1158
|
}}</div>
|
|
1143
|
-
<div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text"
|
|
1159
|
+
<div *ngIf="showMineMenu" data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text"
|
|
1160
|
+
(click)="attachNav('mine')">{{
|
|
1144
1161
|
'mode.nav.mine' | i18n
|
|
1145
1162
|
}}</div>
|
|
1146
1163
|
<div
|
|
@@ -1181,9 +1198,9 @@ class LayoutNavApplicationComponent {
|
|
|
1181
1198
|
</div>
|
|
1182
1199
|
</div>
|
|
1183
1200
|
<!-- header end-->
|
|
1184
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
1201
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i5$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i7.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i7.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i9.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i9.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i9.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] }); }
|
|
1185
1202
|
}
|
|
1186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
1203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: LayoutNavApplicationComponent, decorators: [{
|
|
1187
1204
|
type: Component,
|
|
1188
1205
|
args: [{
|
|
1189
1206
|
selector: `layout-nav-application`,
|
|
@@ -1229,16 +1246,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImpor
|
|
|
1229
1246
|
<!-- right menu end -->
|
|
1230
1247
|
|
|
1231
1248
|
<!-- button start-->
|
|
1232
|
-
<div data-event-id="_nav_app" class="yunzai-default__nav-item"
|
|
1249
|
+
<div data-event-id="_nav_app" id="navBtn" class="yunzai-default__nav-item"
|
|
1250
|
+
(click)="diffChange()"> {{ 'mode.nav' | i18n }}</div>
|
|
1233
1251
|
<!-- button end-->
|
|
1234
1252
|
|
|
1235
1253
|
<!-- header start-->
|
|
1236
|
-
<div class="yz-application" nz-row *ngIf="state.active">
|
|
1254
|
+
<div class="yz-application" id="navDropdown" nz-row *ngIf="state.active">
|
|
1237
1255
|
<div nz-col [nzSpan]="3" class="yz-application-topic">
|
|
1238
|
-
<div data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text"
|
|
1256
|
+
<div *ngIf="showAllMenu" data-event-id="_nav_topic" data-name="全部应用" class="yz-application-text"
|
|
1257
|
+
(click)="attachNav('all')">{{
|
|
1239
1258
|
'mode.nav.all' | i18n
|
|
1240
1259
|
}}</div>
|
|
1241
|
-
<div data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text"
|
|
1260
|
+
<div *ngIf="showMineMenu" data-event-id="_nav_topic" data-name="我的应用" class="yz-application-text"
|
|
1261
|
+
(click)="attachNav('mine')">{{
|
|
1242
1262
|
'mode.nav.mine' | i18n
|
|
1243
1263
|
}}</div>
|
|
1244
1264
|
<div
|
|
@@ -1281,15 +1301,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImpor
|
|
|
1281
1301
|
<!-- header end-->
|
|
1282
1302
|
`
|
|
1283
1303
|
}]
|
|
1284
|
-
}], ctorParameters: function () { return [{ type: YunzaiI18NService }, { type: i1$2._HttpClient }, { type: i0.Injector }
|
|
1304
|
+
}], ctorParameters: function () { return [{ type: YunzaiI18NService }, { type: i1$2._HttpClient }, { type: i0.Injector }, { type: i1$3.YunzaiConfigService }, { type: undefined, decorators: [{
|
|
1305
|
+
type: Inject,
|
|
1306
|
+
args: [WINDOW]
|
|
1307
|
+
}] }]; } });
|
|
1285
1308
|
|
|
1286
1309
|
class LayoutNavGroupComponent {
|
|
1287
1310
|
constructor(inject, http) {
|
|
1288
1311
|
this.inject = inject;
|
|
1289
1312
|
this.http = http;
|
|
1290
1313
|
this.state = {
|
|
1291
|
-
topics: []
|
|
1292
|
-
destroy$: new Subject()
|
|
1314
|
+
topics: []
|
|
1293
1315
|
};
|
|
1294
1316
|
}
|
|
1295
1317
|
ngOnInit() {
|
|
@@ -1303,7 +1325,7 @@ class LayoutNavGroupComponent {
|
|
|
1303
1325
|
appId: topic.key,
|
|
1304
1326
|
createDate: new Date()
|
|
1305
1327
|
})
|
|
1306
|
-
.pipe(
|
|
1328
|
+
.pipe(takeUntilDestroyed(inject(DestroyRef)))
|
|
1307
1329
|
.subscribe();
|
|
1308
1330
|
}
|
|
1309
1331
|
switch (topic.target) {
|
|
@@ -1321,92 +1343,83 @@ class LayoutNavGroupComponent {
|
|
|
1321
1343
|
break;
|
|
1322
1344
|
}
|
|
1323
1345
|
}
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
<
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
</nz-dropdown-menu>
|
|
1357
|
-
</ng-template>
|
|
1358
|
-
</nz-tab>
|
|
1359
|
-
</nz-tabset>
|
|
1360
|
-
</div>
|
|
1361
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i3$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$1.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i4$1.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i5.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i7$1.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i7$1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] }); }
|
|
1346
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: LayoutNavGroupComponent, deps: [{ token: i0.Injector }, { token: i1$2._HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1347
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: LayoutNavGroupComponent, selector: "layout-nav-group", ngImport: i0, template: `
|
|
1348
|
+
<div class="yz-application-group">
|
|
1349
|
+
<nz-tabset>
|
|
1350
|
+
<nz-tab *ngFor="let menu of state.topics" [nzTitle]="groupTitleTpl">
|
|
1351
|
+
<ng-template #groupTitleTpl>
|
|
1352
|
+
<a
|
|
1353
|
+
data-event-id="_nav_topic"
|
|
1354
|
+
[attr.data-name]="menu.name | i18n"
|
|
1355
|
+
nz-dropdown
|
|
1356
|
+
[nzDropdownMenu]="menuTpl"
|
|
1357
|
+
[nzTrigger]="'click'"
|
|
1358
|
+
[nzOverlayClassName]="'yz-application-dropdown'"
|
|
1359
|
+
>
|
|
1360
|
+
<i nz-icon *ngIf="menu.icon" [nzType]="menu.icon" nzTheme="outline"></i>
|
|
1361
|
+
{{ menu.name | i18n }}
|
|
1362
|
+
<i *ngIf="menu.children && menu.children.length > 0" nz-icon nzType="down" nzTheme="outline"></i>
|
|
1363
|
+
</a>
|
|
1364
|
+
<nz-dropdown-menu #menuTpl="nzDropdownMenu">
|
|
1365
|
+
<ul nz-menu nzSelectable *ngIf="menu.children && menu.children.length > 0">
|
|
1366
|
+
<ng-container *ngFor="let item of menu.children">
|
|
1367
|
+
<li data-event-id="_nav_item" [attr.data-name]="item.name | i18n" nz-menu-item (click)="open(item)">
|
|
1368
|
+
<i nz-icon *ngIf="item.icon" [nzType]="item.icon" nzTheme="outline"></i>{{ item.name | i18n }}
|
|
1369
|
+
</li>
|
|
1370
|
+
</ng-container>
|
|
1371
|
+
</ul>
|
|
1372
|
+
</nz-dropdown-menu>
|
|
1373
|
+
</ng-template>
|
|
1374
|
+
</nz-tab>
|
|
1375
|
+
</nz-tabset>
|
|
1376
|
+
</div>
|
|
1377
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i4$2.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "directive", type: i5.NzDropDownADirective, selector: "a[nz-dropdown]" }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i7$1.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i7$1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] }); }
|
|
1362
1378
|
}
|
|
1363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
1379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: LayoutNavGroupComponent, decorators: [{
|
|
1364
1380
|
type: Component,
|
|
1365
1381
|
args: [{
|
|
1366
1382
|
selector: `layout-nav-group`,
|
|
1367
1383
|
template: `
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
</nz-tabset>
|
|
1399
|
-
</div>
|
|
1400
|
-
`
|
|
1384
|
+
<div class="yz-application-group">
|
|
1385
|
+
<nz-tabset>
|
|
1386
|
+
<nz-tab *ngFor="let menu of state.topics" [nzTitle]="groupTitleTpl">
|
|
1387
|
+
<ng-template #groupTitleTpl>
|
|
1388
|
+
<a
|
|
1389
|
+
data-event-id="_nav_topic"
|
|
1390
|
+
[attr.data-name]="menu.name | i18n"
|
|
1391
|
+
nz-dropdown
|
|
1392
|
+
[nzDropdownMenu]="menuTpl"
|
|
1393
|
+
[nzTrigger]="'click'"
|
|
1394
|
+
[nzOverlayClassName]="'yz-application-dropdown'"
|
|
1395
|
+
>
|
|
1396
|
+
<i nz-icon *ngIf="menu.icon" [nzType]="menu.icon" nzTheme="outline"></i>
|
|
1397
|
+
{{ menu.name | i18n }}
|
|
1398
|
+
<i *ngIf="menu.children && menu.children.length > 0" nz-icon nzType="down" nzTheme="outline"></i>
|
|
1399
|
+
</a>
|
|
1400
|
+
<nz-dropdown-menu #menuTpl="nzDropdownMenu">
|
|
1401
|
+
<ul nz-menu nzSelectable *ngIf="menu.children && menu.children.length > 0">
|
|
1402
|
+
<ng-container *ngFor="let item of menu.children">
|
|
1403
|
+
<li data-event-id="_nav_item" [attr.data-name]="item.name | i18n" nz-menu-item (click)="open(item)">
|
|
1404
|
+
<i nz-icon *ngIf="item.icon" [nzType]="item.icon" nzTheme="outline"></i>{{ item.name | i18n }}
|
|
1405
|
+
</li>
|
|
1406
|
+
</ng-container>
|
|
1407
|
+
</ul>
|
|
1408
|
+
</nz-dropdown-menu>
|
|
1409
|
+
</ng-template>
|
|
1410
|
+
</nz-tab>
|
|
1411
|
+
</nz-tabset>
|
|
1412
|
+
</div>
|
|
1413
|
+
`
|
|
1401
1414
|
}]
|
|
1402
1415
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$2._HttpClient }]; } });
|
|
1403
1416
|
|
|
1404
1417
|
class LayoutNavTileComponent {
|
|
1405
1418
|
constructor() { }
|
|
1406
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
1407
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1
|
|
1419
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: LayoutNavTileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1420
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: LayoutNavTileComponent, selector: "layout-nav-tile", ngImport: i0, template: `<template></template>`, isInline: true }); }
|
|
1408
1421
|
}
|
|
1409
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
1422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: LayoutNavTileComponent, decorators: [{
|
|
1410
1423
|
type: Component,
|
|
1411
1424
|
args: [{
|
|
1412
1425
|
selector: `layout-nav-tile`,
|
|
@@ -1464,7 +1477,6 @@ class YunzaiLayoutBasicComponent {
|
|
|
1464
1477
|
reusetab: true
|
|
1465
1478
|
},
|
|
1466
1479
|
navType: NavType.APPLICATION,
|
|
1467
|
-
destroy$: new Subject()
|
|
1468
1480
|
};
|
|
1469
1481
|
}
|
|
1470
1482
|
ngOnInit() {
|
|
@@ -1526,7 +1538,7 @@ class YunzaiLayoutBasicComponent {
|
|
|
1526
1538
|
log$1('YunzaiLayoutBasicComponent: ', `todo: the default route was ${defaultRoute}, 但是还没想好如何实现.`);
|
|
1527
1539
|
}
|
|
1528
1540
|
onNavTypeChange(type) {
|
|
1529
|
-
const [setHeaderType
|
|
1541
|
+
const [setHeaderType] = useLocalStorageHeaderType();
|
|
1530
1542
|
setHeaderType(type);
|
|
1531
1543
|
this.win.location.reload();
|
|
1532
1544
|
}
|
|
@@ -1541,16 +1553,9 @@ class YunzaiLayoutBasicComponent {
|
|
|
1541
1553
|
this.state.display.aside = display;
|
|
1542
1554
|
});
|
|
1543
1555
|
}
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: YunzaiLayoutBasicComponent, deps: [{ token: i1$4.LayoutDisplayService }, { token: i2$1.StompService }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1548
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: YunzaiLayoutBasicComponent, selector: "yz-layout-basic", ngImport: i0, template: `
|
|
1549
|
-
<layout-default
|
|
1550
|
-
[options]="options"
|
|
1551
|
-
[asideUser]="asideUserTpl"
|
|
1552
|
-
[content]="displayReusetab ? contentTpl : noneTpl"
|
|
1553
|
-
>
|
|
1556
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiLayoutBasicComponent, deps: [{ token: i1$4.LayoutDisplayService }, { token: i2$1.StompService }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1557
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: YunzaiLayoutBasicComponent, selector: "yz-layout-basic", ngImport: i0, template: `
|
|
1558
|
+
<layout-default [options]="options" [asideUser]="asideUserTpl" [content]="displayReusetab ? contentTpl : noneTpl">
|
|
1554
1559
|
<!-- nav -->
|
|
1555
1560
|
<layout-default-header-item direction="left">
|
|
1556
1561
|
<ng-container [ngSwitch]="navType">
|
|
@@ -1653,18 +1658,15 @@ class YunzaiLayoutBasicComponent {
|
|
|
1653
1658
|
</ng-template>
|
|
1654
1659
|
<ng-template #noneTpl>
|
|
1655
1660
|
<router-outlet></router-outlet>
|
|
1656
|
-
</ng-template>
|
|
1661
|
+
</ng-template>
|
|
1662
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i4$4.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i4$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i5$2.ReuseTabComponent, selector: "reuse-tab, [reuse-tab]", inputs: ["mode", "i18n", "debug", "max", "tabMaxWidth", "excludes", "allowClose", "keepingScroll", "storageState", "keepingScrollContainer", "customContextMenu", "tabBarExtraContent", "tabBarGutter", "tabBarStyle", "tabType", "routeParamMatchMode", "disabled", "titleRender", "canClose"], outputs: ["change", "close"], exportAs: ["reuseTab"] }, { kind: "component", type: i1$4.LayoutDefaultComponent, selector: "layout-default", inputs: ["options", "asideUser", "asideBottom", "nav", "content", "customError", "fetchingStrictly", "fetching"], exportAs: ["layoutDefault"] }, { kind: "component", type: i1$4.LayoutDefaultHeaderItemComponent, selector: "layout-default-header-item", inputs: ["hidden", "direction"] }, { kind: "directive", type: i1$4.LayoutDefaultHeaderItemTriggerDirective, selector: "[layout-default-header-item-trigger]" }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4$2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i4$2.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i5.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i5.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: i8$1.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "component", type: YunzaiClearStorageComponent, selector: "yunzai-clearstorage" }, { kind: "component", type: YunzaiFullScreenComponent, selector: "yunzai-fullscreen" }, { kind: "component", type: YunzaiI18NComponent, selector: "yunzai-i18n", inputs: ["showLangText"] }, { kind: "component", type: YunzaiNotifyComponent, selector: "yunzai-notify" }, { kind: "component", type: YunzaiThemBtnComponent, selector: "yunzai-theme-btn", inputs: ["types", "devTips", "deployUrl"] }, { kind: "component", type: YunzaiUserComponent, selector: "yunzai-user" }, { kind: "component", type: LayoutNavApplicationComponent, selector: "layout-nav-application" }, { kind: "component", type: LayoutNavGroupComponent, selector: "layout-nav-group" }, { kind: "component", type: LayoutNavTileComponent, selector: "layout-nav-tile" }, { kind: "pipe", type: i1$2.I18nPipe, name: "i18n" }] }); }
|
|
1657
1663
|
}
|
|
1658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiLayoutBasicComponent, decorators: [{
|
|
1659
1665
|
type: Component,
|
|
1660
1666
|
args: [{
|
|
1661
1667
|
selector: `yz-layout-basic`,
|
|
1662
1668
|
template: `
|
|
1663
|
-
<layout-default
|
|
1664
|
-
[options]="options"
|
|
1665
|
-
[asideUser]="asideUserTpl"
|
|
1666
|
-
[content]="displayReusetab ? contentTpl : noneTpl"
|
|
1667
|
-
>
|
|
1669
|
+
<layout-default [options]="options" [asideUser]="asideUserTpl" [content]="displayReusetab ? contentTpl : noneTpl">
|
|
1668
1670
|
<!-- nav -->
|
|
1669
1671
|
<layout-default-header-item direction="left">
|
|
1670
1672
|
<ng-container [ngSwitch]="navType">
|
|
@@ -1767,7 +1769,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImpor
|
|
|
1767
1769
|
</ng-template>
|
|
1768
1770
|
<ng-template #noneTpl>
|
|
1769
1771
|
<router-outlet></router-outlet>
|
|
1770
|
-
</ng-template>
|
|
1772
|
+
</ng-template>
|
|
1773
|
+
`
|
|
1771
1774
|
}]
|
|
1772
1775
|
}], ctorParameters: function () { return [{ type: i1$4.LayoutDisplayService }, { type: i2$1.StompService }, { type: undefined, decorators: [{
|
|
1773
1776
|
type: Inject,
|
|
@@ -1865,10 +1868,10 @@ class ActGuard {
|
|
|
1865
1868
|
}
|
|
1866
1869
|
});
|
|
1867
1870
|
}
|
|
1868
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
1869
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1
|
|
1871
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ActGuard, deps: [{ token: i1$3.YunzaiConfigService }, { token: i1$3.PathToRegexpService }, { token: i4$4.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1872
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ActGuard, providedIn: 'root' }); }
|
|
1870
1873
|
}
|
|
1871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
1874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ActGuard, decorators: [{
|
|
1872
1875
|
type: Injectable,
|
|
1873
1876
|
args: [{
|
|
1874
1877
|
providedIn: 'root'
|
|
@@ -1948,12 +1951,15 @@ class YunzaiAuthService {
|
|
|
1948
1951
|
}
|
|
1949
1952
|
cacheInit() {
|
|
1950
1953
|
log$1('yz.auth.service: ', 'cacheInit');
|
|
1951
|
-
const [setTenant
|
|
1952
|
-
const [setUser
|
|
1953
|
-
const [setHeader
|
|
1954
|
-
const [setProject
|
|
1955
|
-
return combineLatest([
|
|
1956
|
-
.
|
|
1954
|
+
const [setTenant] = useLocalStorageTenant();
|
|
1955
|
+
const [setUser] = useLocalStorageUser();
|
|
1956
|
+
const [setHeader] = useLocalStorageHeader();
|
|
1957
|
+
const [setProject] = useLocalStorageProjectInfo();
|
|
1958
|
+
return combineLatest([
|
|
1959
|
+
this.httpClient.get(`/auth/user`),
|
|
1960
|
+
this.httpClient.get(`/auth/allheader/v2`),
|
|
1961
|
+
this.httpClient.get(`/app-manager/project/info`)
|
|
1962
|
+
]).pipe(map$1(([user, header, project]) => {
|
|
1957
1963
|
log$1('yz.auth.service: ', 'set user');
|
|
1958
1964
|
setUser(user.principal);
|
|
1959
1965
|
log$1('yz.auth.service: ', 'set tenant');
|
|
@@ -1965,10 +1971,10 @@ class YunzaiAuthService {
|
|
|
1965
1971
|
return void 0;
|
|
1966
1972
|
}));
|
|
1967
1973
|
}
|
|
1968
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
1969
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1
|
|
1974
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiAuthService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1975
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiAuthService, providedIn: 'root' }); }
|
|
1970
1976
|
}
|
|
1971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
1977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiAuthService, decorators: [{
|
|
1972
1978
|
type: Injectable,
|
|
1973
1979
|
args: [{ providedIn: 'root' }]
|
|
1974
1980
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
@@ -2154,10 +2160,10 @@ class YunzaiDefaultInterceptor {
|
|
|
2154
2160
|
return of(ev);
|
|
2155
2161
|
}), catchError((err) => this.handleData(err, newReq, next)));
|
|
2156
2162
|
}
|
|
2157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
2158
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1
|
|
2163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiDefaultInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2164
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiDefaultInterceptor }); }
|
|
2159
2165
|
}
|
|
2160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
2166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiDefaultInterceptor, decorators: [{
|
|
2161
2167
|
type: Injectable
|
|
2162
2168
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
2163
2169
|
|
|
@@ -2172,8 +2178,8 @@ const WIDGETS = [
|
|
|
2172
2178
|
const LAYOUT_NAV_COMPONENTS = [LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent];
|
|
2173
2179
|
const COMPONENTS = [YunzaiLayoutBasicComponent];
|
|
2174
2180
|
class YunzaiLayoutModule {
|
|
2175
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
2176
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1
|
|
2181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2182
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: YunzaiLayoutModule, declarations: [YunzaiLayoutBasicComponent, YunzaiClearStorageComponent,
|
|
2177
2183
|
YunzaiFullScreenComponent,
|
|
2178
2184
|
YunzaiI18NComponent,
|
|
2179
2185
|
YunzaiNotifyComponent,
|
|
@@ -2190,7 +2196,7 @@ class YunzaiLayoutModule {
|
|
|
2190
2196
|
YunzaiNotifyComponent,
|
|
2191
2197
|
YunzaiThemBtnComponent,
|
|
2192
2198
|
YunzaiUserComponent, LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent] }); }
|
|
2193
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1
|
|
2199
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiLayoutModule, providers: [
|
|
2194
2200
|
{
|
|
2195
2201
|
provide: YUNZAI_THEME_BTN_KEYS,
|
|
2196
2202
|
useValue: 'site-theme'
|
|
@@ -2203,7 +2209,7 @@ class YunzaiLayoutModule {
|
|
|
2203
2209
|
YunzaiSharedYelonModule,
|
|
2204
2210
|
YunzaiSharedZorroModule] }); }
|
|
2205
2211
|
}
|
|
2206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
2212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiLayoutModule, decorators: [{
|
|
2207
2213
|
type: NgModule,
|
|
2208
2214
|
args: [{
|
|
2209
2215
|
imports: [
|
|
@@ -3055,9 +3061,9 @@ class YunzaiStartupService {
|
|
|
3055
3061
|
}
|
|
3056
3062
|
systemInit() {
|
|
3057
3063
|
log$1('startup.service: system init');
|
|
3058
|
-
const [setCurrent
|
|
3064
|
+
const [setCurrent] = useLocalStorageCurrent();
|
|
3059
3065
|
const [, getUser] = useLocalStorageUser();
|
|
3060
|
-
const [setDefaultRoute
|
|
3066
|
+
const [setDefaultRoute] = useLocalStorageDefaultRoute();
|
|
3061
3067
|
const yunzaiUser = getUser();
|
|
3062
3068
|
// @ts-ignore
|
|
3063
3069
|
const yunzaiMenus = deepCopy(yunzaiUser.menu).filter(m => m.systemCode && m.systemCode === this.config.systemCode);
|
|
@@ -3074,9 +3080,11 @@ class YunzaiStartupService {
|
|
|
3074
3080
|
this.titleService.setTitle(currentMenu && currentMenu.text ? currentMenu.text : 'no title');
|
|
3075
3081
|
const abilities = [];
|
|
3076
3082
|
generateAbility([currentMenu], abilities, '');
|
|
3077
|
-
this.aclService.attachRole(yunzaiUser?.roles
|
|
3083
|
+
this.aclService.attachRole(yunzaiUser?.roles
|
|
3084
|
+
.map((role) => {
|
|
3078
3085
|
return role.roleValue;
|
|
3079
|
-
})
|
|
3086
|
+
})
|
|
3087
|
+
.filter((a) => !!a) || []);
|
|
3080
3088
|
this.aclService.attachAbility(abilities);
|
|
3081
3089
|
this.menuService.add([currentMenu]);
|
|
3082
3090
|
setCurrent({
|
|
@@ -3091,30 +3099,30 @@ class YunzaiStartupService {
|
|
|
3091
3099
|
setDefaultRoute(attr.defaultRoute);
|
|
3092
3100
|
}
|
|
3093
3101
|
else {
|
|
3094
|
-
setDefaultRoute(
|
|
3102
|
+
setDefaultRoute('/displayIndex');
|
|
3095
3103
|
}
|
|
3096
3104
|
}
|
|
3097
3105
|
else {
|
|
3098
|
-
setDefaultRoute(
|
|
3106
|
+
setDefaultRoute('/displayIndex');
|
|
3099
3107
|
}
|
|
3100
3108
|
}
|
|
3101
3109
|
}
|
|
3102
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1
|
|
3103
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1
|
|
3110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiStartupService, deps: [{ token: i6.NzIconService }, { token: i1$2.MenuService }, { token: YUNZAI_I18N_TOKEN }, { token: WINDOW }, { token: i1$2.SettingsService }, { token: i3$3.ACLService }, { token: i1$2.TitleService }, { token: YunzaiAuthService }, { token: i1$3.YunzaiConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3111
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiStartupService }); }
|
|
3104
3112
|
}
|
|
3105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1
|
|
3113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: YunzaiStartupService, decorators: [{
|
|
3106
3114
|
type: Injectable
|
|
3107
|
-
}], ctorParameters: function () { return [{ type:
|
|
3115
|
+
}], ctorParameters: function () { return [{ type: i6.NzIconService }, { type: i1$2.MenuService }, { type: YunzaiI18NService, decorators: [{
|
|
3108
3116
|
type: Inject,
|
|
3109
3117
|
args: [YUNZAI_I18N_TOKEN]
|
|
3110
3118
|
}] }, { type: undefined, decorators: [{
|
|
3111
3119
|
type: Inject,
|
|
3112
3120
|
args: [WINDOW]
|
|
3113
|
-
}] }, { type: i1$2.SettingsService }, { type: i3$
|
|
3121
|
+
}] }, { type: i1$2.SettingsService }, { type: i3$3.ACLService }, { type: i1$2.TitleService }, { type: YunzaiAuthService }, { type: i1$3.YunzaiConfigService }]; } });
|
|
3114
3122
|
function mapYzSideToYelonMenu(menus) {
|
|
3115
3123
|
menus.forEach(menu => {
|
|
3116
3124
|
if (menu.children && menu.hideChildren) {
|
|
3117
|
-
menu.children.forEach(c => c.hide = true);
|
|
3125
|
+
menu.children.forEach(c => (c.hide = true));
|
|
3118
3126
|
}
|
|
3119
3127
|
menu.badgeDot = menu.badge_dot || null;
|
|
3120
3128
|
menu.badgeStatus = menu.badge_status || null;
|
|
@@ -3195,5 +3203,5 @@ const HTML_NAMES_MAPPING = {
|
|
|
3195
3203
|
* Generated bundle index. Do not edit.
|
|
3196
3204
|
*/
|
|
3197
3205
|
|
|
3198
|
-
export { ActGuard, BUSINESS_DEFAULT_CONFIG, HTML_NAMES_MAPPING, LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent, YUNZAI_APPINIT_PROVIDES, YUNZAI_LANGS, YunzaiAuthService, YunzaiClearStorageComponent, YunzaiDefaultInterceptor, YunzaiFullScreenComponent, YunzaiI18NComponent, YunzaiI18NService, YunzaiLayoutBasicComponent, YunzaiLayoutModule, YunzaiNotifyComponent, YunzaiStartupService, YunzaiStartupServiceFactory, YunzaiThemBtnComponent, YunzaiUserComponent, YunzaiDefaultInterceptor as YzDefaultInterceptor,
|
|
3206
|
+
export { ActGuard, BUSINESS_DEFAULT_CONFIG, HTML_NAMES_MAPPING, LayoutNavApplicationComponent, LayoutNavGroupComponent, LayoutNavTileComponent, YUNZAI_APPINIT_PROVIDES, YUNZAI_LANGS, YunzaiAuthService, YunzaiClearStorageComponent, YunzaiDefaultInterceptor, YunzaiFullScreenComponent, YunzaiI18NComponent, YunzaiI18NService, YunzaiLayoutBasicComponent, YunzaiLayoutModule, YunzaiNotifyComponent, YunzaiStartupService, YunzaiStartupServiceFactory, YunzaiThemBtnComponent, YunzaiUserComponent, YunzaiDefaultInterceptor as YzDefaultInterceptor, generateAbility, mapYzSideToYelonMenu, mergeBisConfig };
|
|
3199
3207
|
//# sourceMappingURL=layout.mjs.map
|