@covalent/core 6.3.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/breadcrumbs/breadcrumbs.component.d.ts +1 -1
- package/dialogs/window-dialog/window-dialog.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu.component.d.ts +1 -1
- package/esm2022/breadcrumbs/breadcrumb/breadcrumb.component.mjs +94 -0
- package/esm2022/breadcrumbs/breadcrumbs.component.mjs +135 -0
- package/{esm2020 → esm2022}/breadcrumbs/breadcrumbs.module.mjs +5 -5
- package/esm2022/common/behaviors/control-value-accesor.mixin.mjs +43 -0
- package/esm2022/common/behaviors/disable-ripple.mixin.mjs +24 -0
- package/{esm2020 → esm2022}/common/behaviors/disabled.mixin.mjs +2 -2
- package/{esm2020 → esm2022}/common/common.module.mjs +17 -17
- package/esm2022/common/directives/fullscreen/fullscreen.directive.mjs +87 -0
- package/esm2022/common/forms/auto-trim/auto-trim.directive.mjs +37 -0
- package/esm2022/common/functions/convert.mjs +84 -0
- package/esm2022/common/functions/download.mjs +75 -0
- package/esm2022/common/pipes/bytes/bytes.pipe.mjs +42 -0
- package/esm2022/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
- package/esm2022/common/pipes/digits/digits.pipe.mjs +41 -0
- package/{esm2020 → esm2022}/common/pipes/time-ago/time-ago.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/common/pipes/time-difference/time-difference.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/common/pipes/time-until/time-until.pipe.mjs +4 -4
- package/esm2022/common/pipes/truncate/truncate.pipe.mjs +27 -0
- package/esm2022/common/services/icon.service.mjs +1087 -0
- package/esm2022/common/services/router-path.service.mjs +30 -0
- package/esm2022/dialogs/alert-dialog/alert-dialog.component.mjs +26 -0
- package/esm2022/dialogs/confirm-dialog/confirm-dialog.component.mjs +31 -0
- package/esm2022/dialogs/dialog.component.mjs +60 -0
- package/{esm2020 → esm2022}/dialogs/dialogs.module.mjs +39 -39
- package/esm2022/dialogs/prompt-dialog/prompt-dialog.component.mjs +84 -0
- package/esm2022/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +220 -0
- package/esm2022/dialogs/services/dialog.service.mjs +179 -0
- package/esm2022/dialogs/window-dialog/window-dialog.component.mjs +40 -0
- package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
- package/esm2022/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +23 -0
- package/esm2022/dynamic-menu/dynamic-menu.component.mjs +28 -0
- package/{esm2020 → esm2022}/dynamic-menu/dynamic-menu.module.mjs +19 -19
- package/esm2022/file/directives/file-drop.directive.mjs +145 -0
- package/esm2022/file/directives/file-select.directive.mjs +78 -0
- package/esm2022/file/file-input/file-input.component.mjs +146 -0
- package/esm2022/file/file-upload/file-upload.component.mjs +185 -0
- package/{esm2020 → esm2022}/file/file.module.mjs +21 -21
- package/esm2022/file/services/file.service.mjs +66 -0
- package/esm2022/json-formatter/json-formatter.component.mjs +222 -0
- package/{esm2020 → esm2022}/json-formatter/json-formatter.module.mjs +5 -5
- package/esm2022/layout/layout-card-over/layout-card-over.component.mjs +50 -0
- package/esm2022/layout/layout-footer/layout-footer.component.mjs +36 -0
- package/esm2022/layout/layout-manage-list/layout-manage-list.component.mjs +92 -0
- package/{esm2020 → esm2022}/layout/layout-manage-list/layout-manage-list.directives.mjs +10 -10
- package/esm2022/layout/layout-nav/layout-nav.component.mjs +76 -0
- package/esm2022/layout/layout-nav-list/layout-nav-list.component.mjs +154 -0
- package/{esm2020 → esm2022}/layout/layout-nav-list/layout-nav-list.directives.mjs +10 -10
- package/esm2022/layout/layout-toggle.class.mjs +96 -0
- package/esm2022/layout/layout.component.mjs +91 -0
- package/{esm2020 → esm2022}/layout/layout.directives.mjs +10 -10
- package/{esm2020 → esm2022}/layout/layout.module.mjs +55 -55
- package/esm2022/layout/navigation-drawer/navigation-drawer.component.mjs +221 -0
- package/esm2022/loading/directives/loading.directive.mjs +133 -0
- package/esm2022/loading/loading.component.mjs +193 -0
- package/{esm2020 → esm2022}/loading/loading.module.mjs +13 -13
- package/esm2022/loading/services/loading.factory.mjs +210 -0
- package/esm2022/loading/services/loading.service.mjs +219 -0
- package/{esm2020 → esm2022}/menu/menu.component.mjs +4 -4
- package/{esm2020 → esm2022}/menu/menu.module.mjs +5 -5
- package/esm2022/message/message.component.mjs +222 -0
- package/{esm2020 → esm2022}/message/message.module.mjs +7 -7
- package/esm2022/search/search-box/search-box.component.mjs +198 -0
- package/esm2022/search/search-input/search-input.component.mjs +214 -0
- package/{esm2020 → esm2022}/search/search.module.mjs +13 -13
- package/esm2022/side-sheet/side-sheet-container.mjs +285 -0
- package/esm2022/side-sheet/side-sheet-ref.mjs +30 -0
- package/{esm2020 → esm2022}/side-sheet/side-sheet.config.mjs +2 -5
- package/esm2022/side-sheet/side-sheet.content-directives.mjs +206 -0
- package/esm2022/side-sheet/side-sheet.mjs +236 -0
- package/{esm2020 → esm2022}/side-sheet/side-sheet.module.mjs +14 -14
- package/esm2022/user-profile/user-profile-menu/user-profile-menu.component.mjs +25 -0
- package/esm2022/user-profile/user-profile.component.mjs +21 -0
- package/{esm2020 → esm2022}/user-profile/user-profile.module.mjs +15 -15
- package/{fesm2015 → fesm2022}/covalent-core-breadcrumbs.mjs +28 -22
- package/{fesm2015 → fesm2022}/covalent-core-breadcrumbs.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-common.mjs +1131 -1125
- package/fesm2022/covalent-core-common.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/covalent-core-dialogs.mjs +109 -80
- package/{fesm2020 → fesm2022}/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2022/covalent-core-dynamic-menu.mjs +125 -0
- package/{fesm2015 → fesm2022}/covalent-core-dynamic-menu.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-file.mjs +148 -110
- package/{fesm2020 → fesm2022}/covalent-core-file.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-json-formatter.mjs +26 -21
- package/{fesm2020 → fesm2022}/covalent-core-json-formatter.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-layout.mjs +396 -271
- package/{fesm2015 → fesm2022}/covalent-core-layout.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-loading.mjs +100 -78
- package/{fesm2020 → fesm2022}/covalent-core-loading.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/covalent-core-menu.mjs +7 -7
- package/{fesm2015 → fesm2022}/covalent-core-menu.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/covalent-core-message.mjs +42 -23
- package/{fesm2020 → fesm2022}/covalent-core-message.mjs.map +1 -1
- package/fesm2022/covalent-core-search.mjs +438 -0
- package/fesm2022/covalent-core-search.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/covalent-core-side-sheet.mjs +124 -99
- package/{fesm2020 → fesm2022}/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2022/covalent-core-user-profile.mjs +87 -0
- package/fesm2022/covalent-core-user-profile.mjs.map +1 -0
- package/file/directives/file-drop.directive.d.ts +1 -1
- package/file/directives/file-select.directive.d.ts +1 -1
- package/file/file-input/file-input.component.d.ts +1 -1
- package/file/file-upload/file-upload.component.d.ts +1 -1
- package/json-formatter/json-formatter.component.d.ts +1 -1
- package/layout/layout-card-over/layout-card-over.component.d.ts +1 -1
- package/layout/layout-footer/layout-footer.component.d.ts +1 -1
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +1 -1
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +3 -3
- package/layout/layout-nav/layout-nav.component.d.ts +1 -1
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +1 -1
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +3 -3
- package/layout/layout-toggle.class.d.ts +1 -1
- package/layout/layout.component.d.ts +1 -1
- package/layout/layout.directives.d.ts +3 -3
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +1 -1
- package/loading/directives/loading.directive.d.ts +1 -1
- package/message/message.component.d.ts +1 -1
- package/package.json +55 -91
- package/search/search-box/search-box.component.d.ts +1 -1
- package/search/search-input/search-input.component.d.ts +1 -1
- package/side-sheet/side-sheet.content-directives.d.ts +2 -2
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +1 -1
- package/user-profile/user-profile.component.d.ts +1 -1
- package/common/styles/font/README.md +0 -11
- package/dialogs/src/README.md +0 -223
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +0 -92
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +0 -131
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +0 -41
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +0 -24
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +0 -85
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +0 -36
- package/esm2020/common/functions/convert.mjs +0 -84
- package/esm2020/common/functions/download.mjs +0 -75
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +0 -42
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +0 -42
- package/esm2020/common/pipes/digits/digits.pipe.mjs +0 -39
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +0 -27
- package/esm2020/common/services/icon.service.mjs +0 -1089
- package/esm2020/common/services/router-path.service.mjs +0 -29
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +0 -23
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +0 -28
- package/esm2020/dialogs/dialog.component.mjs +0 -57
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +0 -75
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +0 -216
- package/esm2020/dialogs/services/dialog.service.mjs +0 -174
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +0 -38
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +0 -30
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +0 -24
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +0 -28
- package/esm2020/file/directives/file-drop.directive.mjs +0 -139
- package/esm2020/file/directives/file-select.directive.mjs +0 -77
- package/esm2020/file/file-input/file-input.component.mjs +0 -128
- package/esm2020/file/file-upload/file-upload.component.mjs +0 -174
- package/esm2020/file/services/file.service.mjs +0 -64
- package/esm2020/json-formatter/json-formatter.component.mjs +0 -217
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +0 -40
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +0 -33
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +0 -93
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +0 -50
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +0 -128
- package/esm2020/layout/layout-toggle.class.mjs +0 -92
- package/esm2020/layout/layout.component.mjs +0 -92
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +0 -163
- package/esm2020/loading/directives/loading.directive.mjs +0 -126
- package/esm2020/loading/loading.component.mjs +0 -187
- package/esm2020/loading/services/loading.factory.mjs +0 -207
- package/esm2020/loading/services/loading.service.mjs +0 -213
- package/esm2020/message/message.component.mjs +0 -203
- package/esm2020/search/search-box/search-box.component.mjs +0 -194
- package/esm2020/search/search-input/search-input.component.mjs +0 -207
- package/esm2020/side-sheet/side-sheet-container.mjs +0 -274
- package/esm2020/side-sheet/side-sheet-ref.mjs +0 -26
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +0 -201
- package/esm2020/side-sheet/side-sheet.mjs +0 -228
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +0 -23
- package/esm2020/user-profile/user-profile.component.mjs +0 -19
- package/fesm2015/covalent-core-common.mjs +0 -2281
- package/fesm2015/covalent-core-common.mjs.map +0 -1
- package/fesm2015/covalent-core-dialogs.mjs +0 -668
- package/fesm2015/covalent-core-dialogs.mjs.map +0 -1
- package/fesm2015/covalent-core-dynamic-menu.mjs +0 -126
- package/fesm2015/covalent-core-file.mjs +0 -621
- package/fesm2015/covalent-core-file.mjs.map +0 -1
- package/fesm2015/covalent-core-json-formatter.mjs +0 -298
- package/fesm2015/covalent-core-json-formatter.mjs.map +0 -1
- package/fesm2015/covalent-core-layout.mjs +0 -1024
- package/fesm2015/covalent-core-loading.mjs +0 -766
- package/fesm2015/covalent-core-loading.mjs.map +0 -1
- package/fesm2015/covalent-core-message.mjs +0 -284
- package/fesm2015/covalent-core-message.mjs.map +0 -1
- package/fesm2015/covalent-core-search.mjs +0 -430
- package/fesm2015/covalent-core-search.mjs.map +0 -1
- package/fesm2015/covalent-core-side-sheet.mjs +0 -784
- package/fesm2015/covalent-core-side-sheet.mjs.map +0 -1
- package/fesm2015/covalent-core-user-profile.mjs +0 -83
- package/fesm2015/covalent-core-user-profile.mjs.map +0 -1
- package/fesm2020/covalent-core-breadcrumbs.mjs +0 -243
- package/fesm2020/covalent-core-breadcrumbs.mjs.map +0 -1
- package/fesm2020/covalent-core-common.mjs.map +0 -1
- package/fesm2020/covalent-core-dynamic-menu.mjs +0 -126
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +0 -1
- package/fesm2020/covalent-core-layout.mjs.map +0 -1
- package/fesm2020/covalent-core-menu.mjs +0 -37
- package/fesm2020/covalent-core-menu.mjs.map +0 -1
- package/fesm2020/covalent-core-search.mjs +0 -427
- package/fesm2020/covalent-core-search.mjs.map +0 -1
- package/fesm2020/covalent-core-user-profile.mjs +0 -83
- package/fesm2020/covalent-core-user-profile.mjs.map +0 -1
- package/fesm2020/covalent-core.mjs +0 -4
- package/fesm2020/covalent-core.mjs.map +0 -1
- package/file/src/file-input/README.md +0 -147
- package/file/src/file-upload/README.md +0 -136
- package/layout/src/layout-card-over/README.md +0 -43
- package/layout/src/layout-manage-list/README.md +0 -80
- package/layout/src/layout-nav/README.md +0 -50
- package/layout/src/layout-nav-list/README.md +0 -105
- package/search/src/search-box/README.md +0 -73
- package/search/src/search-input/README.md +0 -74
- /package/{esm2020 → esm2022}/breadcrumbs/covalent-core-breadcrumbs.mjs +0 -0
- /package/{esm2020 → esm2022}/breadcrumbs/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/bounce/bounce.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/collapse/collapse.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/common/interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/fade/fadeInOut.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/flash/flash.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/headshake/headshake.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/jello/jello.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/pulse/pulse.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/animations/rotate/rotate.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/common/covalent-core-common.mjs +0 -0
- /package/{esm2020 → esm2022}/common/forms/validators/validators.mjs +0 -0
- /package/{esm2020 → esm2022}/common/functions/clipboard.mjs +0 -0
- /package/{esm2020 → esm2022}/common/functions/file.mjs +0 -0
- /package/{esm2020 → esm2022}/common/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/covalent-core.mjs +0 -0
- /package/{esm2020 → esm2022}/dialogs/covalent-core-dialogs.mjs +0 -0
- /package/{esm2020 → esm2022}/dialogs/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-menu/covalent-core-dynamic-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-menu/dynamic-menu.menu.mjs +0 -0
- /package/{esm2020 → esm2022}/dynamic-menu/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/file/covalent-core-file.mjs +0 -0
- /package/{esm2020 → esm2022}/file/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/json-formatter/collapse.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/json-formatter/covalent-core-json-formatter.mjs +0 -0
- /package/{esm2020 → esm2022}/json-formatter/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/layout/covalent-core-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/layout/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/loading/covalent-core-loading.mjs +0 -0
- /package/{esm2020 → esm2022}/loading/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/covalent-core-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/message/collapse.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/message/covalent-core-message.mjs +0 -0
- /package/{esm2020 → esm2022}/message/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/search/covalent-core-search.mjs +0 -0
- /package/{esm2020 → esm2022}/search/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/side-sheet/covalent-core-side-sheet.mjs +0 -0
- /package/{esm2020 → esm2022}/side-sheet/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/side-sheet/side-sheet.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/user-profile/covalent-core-user-profile.mjs +0 -0
- /package/{esm2020 → esm2022}/user-profile/public_api.mjs +0 -0
- /package/{fesm2015 → fesm2022}/covalent-core.mjs +0 -0
- /package/{fesm2015 → fesm2022}/covalent-core.mjs.map +0 -0
@@ -1,1024 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { Component, ViewChild, Input, Directive, HostListener, forwardRef, Optional, Inject, SecurityContext, ContentChildren, NgModule } from '@angular/core';
|
3
|
-
import * as i2 from '@angular/common';
|
4
|
-
import { CommonModule } from '@angular/common';
|
5
|
-
import * as i3 from '@angular/cdk/scrolling';
|
6
|
-
import { ScrollingModule } from '@angular/cdk/scrolling';
|
7
|
-
import * as i1 from '@angular/material/sidenav';
|
8
|
-
import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
|
9
|
-
import * as i4 from '@angular/material/toolbar';
|
10
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
11
|
-
import * as i5 from '@angular/material/button';
|
12
|
-
import { MatButtonModule } from '@angular/material/button';
|
13
|
-
import * as i6 from '@angular/material/icon';
|
14
|
-
import { MatIconModule } from '@angular/material/icon';
|
15
|
-
import * as i3$1 from '@angular/material/card';
|
16
|
-
import { MatCardModule } from '@angular/material/card';
|
17
|
-
import * as i4$1 from '@angular/material/divider';
|
18
|
-
import { MatDividerModule } from '@angular/material/divider';
|
19
|
-
import { CovalentMenuModule } from '@covalent/core/menu';
|
20
|
-
import { mixinDisabled, tdCollapseAnimation } from '@covalent/core/common';
|
21
|
-
import * as i1$1 from '@angular/router';
|
22
|
-
import { Subject } from 'rxjs';
|
23
|
-
import { takeUntil } from 'rxjs/operators';
|
24
|
-
import * as i2$1 from '@angular/platform-browser';
|
25
|
-
|
26
|
-
class TdLayoutComponent {
|
27
|
-
constructor() {
|
28
|
-
/**
|
29
|
-
* mode?: 'side', 'push' or 'over'
|
30
|
-
*
|
31
|
-
* The mode or styling of the sidenav.
|
32
|
-
* Defaults to "over".
|
33
|
-
* See "MatSidenav" documentation for more info.
|
34
|
-
*
|
35
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
36
|
-
*/
|
37
|
-
this.mode = 'over';
|
38
|
-
/**
|
39
|
-
* opened?: boolean
|
40
|
-
*
|
41
|
-
* Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
|
42
|
-
* Defaults to "false".
|
43
|
-
*
|
44
|
-
* See "MatSidenav" documentation for more info.
|
45
|
-
*
|
46
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
47
|
-
*/
|
48
|
-
this.opened = false;
|
49
|
-
/**
|
50
|
-
* sidenavWidth?: string
|
51
|
-
*
|
52
|
-
* Sets the "width" of the sidenav in either "px" or "%"
|
53
|
-
* Defaults to "320px".
|
54
|
-
*
|
55
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
56
|
-
*/
|
57
|
-
this.sidenavWidth = '320px';
|
58
|
-
/**
|
59
|
-
* containerAutosize?: boolean
|
60
|
-
*
|
61
|
-
* Sets "autosize" of the sidenav-container.
|
62
|
-
* Defaults to "false".
|
63
|
-
*
|
64
|
-
* See documentation for more info and potential performance risks.
|
65
|
-
*
|
66
|
-
* https://github.com/angular/material2/blob/main/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
|
67
|
-
*/
|
68
|
-
this.containerAutosize = false;
|
69
|
-
}
|
70
|
-
/**
|
71
|
-
* Checks if `ESC` should close the sidenav
|
72
|
-
* Should only close it for `push` and `over` modes
|
73
|
-
*/
|
74
|
-
get disableClose() {
|
75
|
-
return this.mode === 'side';
|
76
|
-
}
|
77
|
-
/**
|
78
|
-
* Proxy toggle method to access sidenav from outside (from td-layout template).
|
79
|
-
*/
|
80
|
-
toggle() {
|
81
|
-
return this.sidenav.toggle(!this.sidenav.opened);
|
82
|
-
}
|
83
|
-
/**
|
84
|
-
* Proxy open method to access sidenav from outside (from td-layout template).
|
85
|
-
*/
|
86
|
-
open() {
|
87
|
-
return this.sidenav.open();
|
88
|
-
}
|
89
|
-
/**
|
90
|
-
* Proxy close method to access sidenav from outside (from td-layout template).
|
91
|
-
*/
|
92
|
-
close() {
|
93
|
-
return this.sidenav.close();
|
94
|
-
}
|
95
|
-
}
|
96
|
-
TdLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
97
|
-
TdLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutComponent, selector: "td-layout", inputs: { mode: "mode", opened: "opened", sidenavWidth: "sidenavWidth", containerAutosize: "containerAutosize" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, static: true }], ngImport: i0, template: "<mat-sidenav-container fullscreen [autosize]=\"containerAutosize\">\n <mat-sidenav\n #sidenav\n class=\"td-layout-sidenav\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n [disableClose]=\"disableClose\"\n >\n <ng-content select=\"td-navigation-drawer\"></ng-content>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </mat-sidenav>\n <ng-content></ng-content>\n</mat-sidenav-container>\n", styles: [":host{display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host ::ng-deep>mat-sidenav-container .mat-drawer>.mat-drawer-inner-container{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "component", type: i1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }] });
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutComponent, decorators: [{
|
99
|
-
type: Component,
|
100
|
-
args: [{ selector: 'td-layout', template: "<mat-sidenav-container fullscreen [autosize]=\"containerAutosize\">\n <mat-sidenav\n #sidenav\n class=\"td-layout-sidenav\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n [disableClose]=\"disableClose\"\n >\n <ng-content select=\"td-navigation-drawer\"></ng-content>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </mat-sidenav>\n <ng-content></ng-content>\n</mat-sidenav-container>\n", styles: [":host{display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host ::ng-deep>mat-sidenav-container .mat-drawer>.mat-drawer-inner-container{display:flex;flex-direction:column}\n"] }]
|
101
|
-
}], propDecorators: { sidenav: [{
|
102
|
-
type: ViewChild,
|
103
|
-
args: [MatSidenav, { static: true }]
|
104
|
-
}], mode: [{
|
105
|
-
type: Input
|
106
|
-
}], opened: [{
|
107
|
-
type: Input
|
108
|
-
}], sidenavWidth: [{
|
109
|
-
type: Input
|
110
|
-
}], containerAutosize: [{
|
111
|
-
type: Input
|
112
|
-
}] } });
|
113
|
-
|
114
|
-
class LayoutToggleBase {
|
115
|
-
}
|
116
|
-
/* tslint:disable-next-line */
|
117
|
-
const _TdLayoutToggleMixinBase = mixinDisabled(LayoutToggleBase);
|
118
|
-
class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBase {
|
119
|
-
/**
|
120
|
-
* hideWhenOpened?: boolean
|
121
|
-
* When this is set to true, the host will be hidden when
|
122
|
-
* the sidenav is opened.
|
123
|
-
*/
|
124
|
-
set hideWhenOpened(hideWhenOpened) {
|
125
|
-
this._hideWhenOpened = hideWhenOpened;
|
126
|
-
if (this._initialized) {
|
127
|
-
this._toggleVisibility();
|
128
|
-
}
|
129
|
-
}
|
130
|
-
constructor(_layout, _renderer, _elementRef) {
|
131
|
-
super();
|
132
|
-
this._layout = _layout;
|
133
|
-
this._renderer = _renderer;
|
134
|
-
this._elementRef = _elementRef;
|
135
|
-
this._initialized = false;
|
136
|
-
this._hideWhenOpened = false;
|
137
|
-
// if layout has not been provided
|
138
|
-
// show warn message
|
139
|
-
if (!this._layout) {
|
140
|
-
this._noLayoutMessage();
|
141
|
-
}
|
142
|
-
this._renderer.addClass(this._elementRef.nativeElement, 'td-layout-menu-button');
|
143
|
-
}
|
144
|
-
ngAfterViewInit() {
|
145
|
-
this._initialized = true;
|
146
|
-
if (this._layout && this._layout.sidenav) {
|
147
|
-
this._toggleSubs = this._layout.sidenav._animationStarted.subscribe(() => {
|
148
|
-
this._toggleVisibility();
|
149
|
-
});
|
150
|
-
}
|
151
|
-
// execute toggleVisibility since the onOpenStart and onCloseStart
|
152
|
-
// methods might not be executed always when the element is rendered
|
153
|
-
this._toggleVisibility();
|
154
|
-
}
|
155
|
-
ngOnDestroy() {
|
156
|
-
if (this._toggleSubs) {
|
157
|
-
this._toggleSubs.unsubscribe();
|
158
|
-
this._toggleSubs = undefined;
|
159
|
-
}
|
160
|
-
}
|
161
|
-
/**
|
162
|
-
* Listens to host click event to trigger the layout toggle
|
163
|
-
*/
|
164
|
-
clickListener(event) {
|
165
|
-
event.preventDefault();
|
166
|
-
if (!this.disabled) {
|
167
|
-
// if layout has been provided, try triggering the click on it
|
168
|
-
// else show warn message
|
169
|
-
if (this._layout) {
|
170
|
-
this.onClick();
|
171
|
-
}
|
172
|
-
else {
|
173
|
-
this._noLayoutMessage();
|
174
|
-
}
|
175
|
-
}
|
176
|
-
}
|
177
|
-
_toggleVisibility() {
|
178
|
-
if (this._layout) {
|
179
|
-
if (this._layout.sidenav.opened && this._hideWhenOpened) {
|
180
|
-
this._renderer.setStyle(this._elementRef.nativeElement, 'display', 'none');
|
181
|
-
}
|
182
|
-
else {
|
183
|
-
this._renderer.setStyle(this._elementRef.nativeElement, 'display', '');
|
184
|
-
}
|
185
|
-
}
|
186
|
-
}
|
187
|
-
_noLayoutMessage() {
|
188
|
-
/* tslint:disable-next-line */
|
189
|
-
console.warn('Covalent: Parent layout not found for layout toggle directive');
|
190
|
-
}
|
191
|
-
}
|
192
|
-
BaseLayoutToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: BaseLayoutToggleDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
193
|
-
BaseLayoutToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: BaseLayoutToggleDirective, inputs: { hideWhenOpened: "hideWhenOpened" }, host: { listeners: { "click": "clickListener($event)" } }, usesInheritance: true, ngImport: i0 });
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: BaseLayoutToggleDirective, decorators: [{
|
195
|
-
type: Directive
|
196
|
-
}], ctorParameters: function () { return [{ type: undefined }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { hideWhenOpened: [{
|
197
|
-
type: Input
|
198
|
-
}], clickListener: [{
|
199
|
-
type: HostListener,
|
200
|
-
args: ['click', ['$event']]
|
201
|
-
}] } });
|
202
|
-
|
203
|
-
class TdLayoutToggleDirective extends BaseLayoutToggleDirective {
|
204
|
-
set tdLayoutToggle(tdLayoutToggle) {
|
205
|
-
this.disabled = !(tdLayoutToggle === '' || tdLayoutToggle);
|
206
|
-
}
|
207
|
-
constructor(layout, renderer, elementRef) {
|
208
|
-
super(layout, renderer, elementRef);
|
209
|
-
}
|
210
|
-
onClick() {
|
211
|
-
this._layout.toggle();
|
212
|
-
}
|
213
|
-
}
|
214
|
-
TdLayoutToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutToggleDirective, deps: [{ token: forwardRef(() => TdLayoutComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
215
|
-
TdLayoutToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutToggleDirective, selector: "[tdLayoutToggle]", inputs: { tdLayoutToggle: "tdLayoutToggle" }, usesInheritance: true, ngImport: i0 });
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutToggleDirective, decorators: [{
|
217
|
-
type: Directive,
|
218
|
-
args: [{
|
219
|
-
selector: '[tdLayoutToggle]',
|
220
|
-
}]
|
221
|
-
}], ctorParameters: function () {
|
222
|
-
return [{ type: TdLayoutComponent, decorators: [{
|
223
|
-
type: Optional
|
224
|
-
}, {
|
225
|
-
type: Inject,
|
226
|
-
args: [forwardRef(() => TdLayoutComponent)]
|
227
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
228
|
-
}, propDecorators: { tdLayoutToggle: [{
|
229
|
-
type: Input
|
230
|
-
}] } });
|
231
|
-
class TdLayoutCloseDirective extends BaseLayoutToggleDirective {
|
232
|
-
set tdLayoutClose(tdLayoutClose) {
|
233
|
-
this.disabled = !(tdLayoutClose === '' || tdLayoutClose);
|
234
|
-
}
|
235
|
-
constructor(layout, renderer, elementRef) {
|
236
|
-
super(layout, renderer, elementRef);
|
237
|
-
}
|
238
|
-
onClick() {
|
239
|
-
this._layout.close();
|
240
|
-
}
|
241
|
-
}
|
242
|
-
TdLayoutCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutCloseDirective, deps: [{ token: forwardRef(() => TdLayoutComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
243
|
-
TdLayoutCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutCloseDirective, selector: "[tdLayoutClose]", inputs: { tdLayoutClose: "tdLayoutClose" }, usesInheritance: true, ngImport: i0 });
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutCloseDirective, decorators: [{
|
245
|
-
type: Directive,
|
246
|
-
args: [{
|
247
|
-
selector: '[tdLayoutClose]',
|
248
|
-
}]
|
249
|
-
}], ctorParameters: function () {
|
250
|
-
return [{ type: TdLayoutComponent, decorators: [{
|
251
|
-
type: Optional
|
252
|
-
}, {
|
253
|
-
type: Inject,
|
254
|
-
args: [forwardRef(() => TdLayoutComponent)]
|
255
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
256
|
-
}, propDecorators: { tdLayoutClose: [{
|
257
|
-
type: Input
|
258
|
-
}] } });
|
259
|
-
class TdLayoutOpenDirective extends BaseLayoutToggleDirective {
|
260
|
-
set tdLayoutClose(tdLayoutOpen) {
|
261
|
-
this.disabled = !(tdLayoutOpen === '' || tdLayoutOpen);
|
262
|
-
}
|
263
|
-
constructor(layout, renderer, elementRef) {
|
264
|
-
super(layout, renderer, elementRef);
|
265
|
-
}
|
266
|
-
onClick() {
|
267
|
-
this._layout.open();
|
268
|
-
}
|
269
|
-
}
|
270
|
-
TdLayoutOpenDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutOpenDirective, deps: [{ token: forwardRef(() => TdLayoutComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
271
|
-
TdLayoutOpenDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutOpenDirective, selector: "[tdLayoutOpen]", inputs: { tdLayoutClose: ["tdLayoutOpen", "tdLayoutClose"] }, usesInheritance: true, ngImport: i0 });
|
272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutOpenDirective, decorators: [{
|
273
|
-
type: Directive,
|
274
|
-
args: [{
|
275
|
-
selector: '[tdLayoutOpen]',
|
276
|
-
}]
|
277
|
-
}], ctorParameters: function () {
|
278
|
-
return [{ type: TdLayoutComponent, decorators: [{
|
279
|
-
type: Optional
|
280
|
-
}, {
|
281
|
-
type: Inject,
|
282
|
-
args: [forwardRef(() => TdLayoutComponent)]
|
283
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
284
|
-
}, propDecorators: { tdLayoutClose: [{
|
285
|
-
type: Input,
|
286
|
-
args: ['tdLayoutOpen']
|
287
|
-
}] } });
|
288
|
-
|
289
|
-
class TdLayoutNavComponent {
|
290
|
-
/**
|
291
|
-
* Checks if router was injected.
|
292
|
-
*/
|
293
|
-
get routerEnabled() {
|
294
|
-
return !!this._router && !!this.navigationRoute;
|
295
|
-
}
|
296
|
-
constructor(_router) {
|
297
|
-
this._router = _router;
|
298
|
-
/**
|
299
|
-
* color?: 'accent' | 'primary' | 'warn'
|
300
|
-
*
|
301
|
-
* toolbar color option: primary | accent | warn.
|
302
|
-
* If [color] is not set, primary is used.
|
303
|
-
*/
|
304
|
-
this.color = 'primary';
|
305
|
-
}
|
306
|
-
handleNavigationClick() {
|
307
|
-
if (this.routerEnabled && this.navigationRoute) {
|
308
|
-
this._router.navigateByUrl(this.navigationRoute);
|
309
|
-
}
|
310
|
-
}
|
311
|
-
}
|
312
|
-
TdLayoutNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavComponent, deps: [{ token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
313
|
-
TdLayoutNavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutNavComponent, selector: "td-layout-nav", inputs: { toolbarTitle: "toolbarTitle", icon: "icon", logo: "logo", color: "color", navigationRoute: "navigationRoute" }, ngImport: i0, template: "<div class=\"td-layout-nav-wrapper\">\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-menu-button]\"></ng-content>\n <span\n *ngIf=\"icon || logo || toolbarTitle\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n class=\"td-layout-nav-toolbar-content\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <span *ngIf=\"toolbarTitle\">{{ toolbarTitle }}</span>\n </span>\n <ng-content select=\"[td-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer\"></ng-content>\n</div>\n", styles: [".td-menu-button{margin-left:0}::ng-deep [dir=rtl] .td-menu-button{margin-right:0;margin-left:6px}:host{display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host .td-layout-nav-wrapper{flex-direction:column;box-sizing:border-box;display:flex;margin:0;width:100%;min-height:100%;height:100%}:host .td-layout-nav-wrapper .td-layout-nav-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host .td-layout-nav-wrapper .td-layout-nav-content{flex-direction:column;box-sizing:border-box;display:flex;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "component", type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavComponent, decorators: [{
|
315
|
-
type: Component,
|
316
|
-
args: [{ selector: 'td-layout-nav', template: "<div class=\"td-layout-nav-wrapper\">\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-menu-button]\"></ng-content>\n <span\n *ngIf=\"icon || logo || toolbarTitle\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n class=\"td-layout-nav-toolbar-content\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <span *ngIf=\"toolbarTitle\">{{ toolbarTitle }}</span>\n </span>\n <ng-content select=\"[td-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer\"></ng-content>\n</div>\n", styles: [".td-menu-button{margin-left:0}::ng-deep [dir=rtl] .td-menu-button{margin-right:0;margin-left:6px}:host{display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host .td-layout-nav-wrapper{flex-direction:column;box-sizing:border-box;display:flex;margin:0;width:100%;min-height:100%;height:100%}:host .td-layout-nav-wrapper .td-layout-nav-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host .td-layout-nav-wrapper .td-layout-nav-content{flex-direction:column;box-sizing:border-box;display:flex;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}\n"] }]
|
317
|
-
}], ctorParameters: function () {
|
318
|
-
return [{ type: i1$1.Router, decorators: [{
|
319
|
-
type: Optional
|
320
|
-
}] }];
|
321
|
-
}, propDecorators: { toolbarTitle: [{
|
322
|
-
type: Input
|
323
|
-
}], icon: [{
|
324
|
-
type: Input
|
325
|
-
}], logo: [{
|
326
|
-
type: Input
|
327
|
-
}], color: [{
|
328
|
-
type: Input
|
329
|
-
}], navigationRoute: [{
|
330
|
-
type: Input
|
331
|
-
}] } });
|
332
|
-
|
333
|
-
class TdLayoutNavListComponent {
|
334
|
-
/**
|
335
|
-
* Checks if `ESC` should close the sidenav
|
336
|
-
* Should only close it for `push` and `over` modes
|
337
|
-
*/
|
338
|
-
get disableClose() {
|
339
|
-
return this.mode === 'side';
|
340
|
-
}
|
341
|
-
/**
|
342
|
-
* Checks if router was injected.
|
343
|
-
*/
|
344
|
-
get routerEnabled() {
|
345
|
-
return !!this._router && !!this.navigationRoute;
|
346
|
-
}
|
347
|
-
constructor(_router) {
|
348
|
-
this._router = _router;
|
349
|
-
/**
|
350
|
-
* color?: 'accent' | 'primary' | 'warn'
|
351
|
-
*
|
352
|
-
* toolbar color option: primary | accent | warn.
|
353
|
-
* If [color] is not set, primary is used.
|
354
|
-
*/
|
355
|
-
this.color = 'primary';
|
356
|
-
/**
|
357
|
-
* mode?: 'side', 'push' or 'over'
|
358
|
-
*
|
359
|
-
* The mode or styling of the sidenav.
|
360
|
-
* Defaults to "side".
|
361
|
-
* See "MatSidenav" documentation for more info.
|
362
|
-
*
|
363
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
364
|
-
*/
|
365
|
-
this.mode = 'side';
|
366
|
-
/**
|
367
|
-
* opened?: boolean
|
368
|
-
* Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
|
369
|
-
* Defaults to "true".
|
370
|
-
*
|
371
|
-
* See "MatSidenav" documentation for more info.
|
372
|
-
*
|
373
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
374
|
-
*/
|
375
|
-
this.opened = true;
|
376
|
-
/**
|
377
|
-
* sidenavWidth?: string
|
378
|
-
*
|
379
|
-
* Sets the "width" of the sidenav in either "px" or "%"
|
380
|
-
* Defaults to "350px".
|
381
|
-
*
|
382
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
383
|
-
*/
|
384
|
-
this.sidenavWidth = '350px';
|
385
|
-
/**
|
386
|
-
* containerAutosize?: boolean
|
387
|
-
*
|
388
|
-
* Sets "autosize" of the sidenav-container.
|
389
|
-
* Defaults to "false".
|
390
|
-
*
|
391
|
-
* See documentation for more info and potential performance risks.
|
392
|
-
*
|
393
|
-
* https://github.com/angular/material2/blob/main/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
|
394
|
-
*/
|
395
|
-
this.containerAutosize = false;
|
396
|
-
}
|
397
|
-
handleNavigationClick() {
|
398
|
-
if (this.routerEnabled && this.navigationRoute) {
|
399
|
-
this._router.navigateByUrl(this.navigationRoute);
|
400
|
-
}
|
401
|
-
}
|
402
|
-
/**
|
403
|
-
* Proxy toggle method to access sidenav from outside (from td-layout template).
|
404
|
-
*/
|
405
|
-
toggle() {
|
406
|
-
return this.sidenav.toggle(!this.sidenav.opened);
|
407
|
-
}
|
408
|
-
/**
|
409
|
-
* Proxy open method to access sidenav from outside (from td-layout template).
|
410
|
-
*/
|
411
|
-
open() {
|
412
|
-
return this.sidenav.open();
|
413
|
-
}
|
414
|
-
/**
|
415
|
-
* Proxy close method to access sidenav from outside (from td-layout template).
|
416
|
-
*/
|
417
|
-
close() {
|
418
|
-
return this.sidenav.close();
|
419
|
-
}
|
420
|
-
}
|
421
|
-
TdLayoutNavListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavListComponent, deps: [{ token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
422
|
-
TdLayoutNavListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutNavListComponent, selector: "td-layout-nav-list", inputs: { toolbarTitle: "toolbarTitle", icon: "icon", logo: "logo", color: "color", mode: "mode", opened: "opened", sidenavWidth: "sidenavWidth", containerAutosize: "containerAutosize", navigationRoute: "navigationRoute" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, static: true }], ngImport: i0, template: "<div class=\"td-layout-nav-list-wrapper\">\n <mat-sidenav-container\n fullscreen\n [autosize]=\"containerAutosize\"\n class=\"td-layout-nav-list\"\n >\n <mat-sidenav\n #sidenav\n position=\"start\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [disableClose]=\"disableClose\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n >\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-menu-button]\"></ng-content>\n <span\n *ngIf=\"icon || logo || toolbarTitle\"\n class=\"td-layout-nav-list-toolbar-content\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <span *ngIf=\"toolbarTitle\">{{ toolbarTitle }}</span>\n </span>\n <ng-content select=\"[td-sidenav-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-list-content\" cdkScrollable>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </div>\n </mat-sidenav>\n <div class=\"td-layout-nav-list-main\">\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-list-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer-inner\"></ng-content>\n </div>\n </mat-sidenav-container>\n</div>\n<ng-content select=\"td-layout-footer\"></ng-content>\n", styles: [":host{margin:0;width:100%;min-height:100%;height:100%;overflow:hidden;flex-direction:column;box-sizing:border-box;display:flex;flex:1}:host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-right:0}[dir=rtl] :host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-left:0}:host .td-layout-nav-list-wrapper{flex-direction:column;box-sizing:border-box;display:flex;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host .td-layout-nav-list-wrapper .td-layout-nav-list-content{text-align:start;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main{flex-direction:column;box-sizing:border-box;display:flex;margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main .td-layout-nav-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list{flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opened,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opening,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closed,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closing{box-shadow:none}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer-content{flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;box-sizing:border-box;display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "component", type: i1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavListComponent, decorators: [{
|
424
|
-
type: Component,
|
425
|
-
args: [{ selector: 'td-layout-nav-list', template: "<div class=\"td-layout-nav-list-wrapper\">\n <mat-sidenav-container\n fullscreen\n [autosize]=\"containerAutosize\"\n class=\"td-layout-nav-list\"\n >\n <mat-sidenav\n #sidenav\n position=\"start\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [disableClose]=\"disableClose\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n >\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-menu-button]\"></ng-content>\n <span\n *ngIf=\"icon || logo || toolbarTitle\"\n class=\"td-layout-nav-list-toolbar-content\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <span *ngIf=\"toolbarTitle\">{{ toolbarTitle }}</span>\n </span>\n <ng-content select=\"[td-sidenav-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-list-content\" cdkScrollable>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </div>\n </mat-sidenav>\n <div class=\"td-layout-nav-list-main\">\n <mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\">\n <ng-content select=\"[td-toolbar-content]\"></ng-content>\n </mat-toolbar>\n <div class=\"td-layout-nav-list-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer-inner\"></ng-content>\n </div>\n </mat-sidenav-container>\n</div>\n<ng-content select=\"td-layout-footer\"></ng-content>\n", styles: [":host{margin:0;width:100%;min-height:100%;height:100%;overflow:hidden;flex-direction:column;box-sizing:border-box;display:flex;flex:1}:host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-right:0}[dir=rtl] :host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-left:0}:host .td-layout-nav-list-wrapper{flex-direction:column;box-sizing:border-box;display:flex;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host .td-layout-nav-list-wrapper .td-layout-nav-list-content{text-align:start;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main{flex-direction:column;box-sizing:border-box;display:flex;margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main .td-layout-nav-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list{flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opened,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opening,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closed,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closing{box-shadow:none}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer-content{flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;box-sizing:border-box;display:flex;flex-direction:column}\n"] }]
|
426
|
-
}], ctorParameters: function () {
|
427
|
-
return [{ type: i1$1.Router, decorators: [{
|
428
|
-
type: Optional
|
429
|
-
}] }];
|
430
|
-
}, propDecorators: { sidenav: [{
|
431
|
-
type: ViewChild,
|
432
|
-
args: [MatSidenav, { static: true }]
|
433
|
-
}], toolbarTitle: [{
|
434
|
-
type: Input
|
435
|
-
}], icon: [{
|
436
|
-
type: Input
|
437
|
-
}], logo: [{
|
438
|
-
type: Input
|
439
|
-
}], color: [{
|
440
|
-
type: Input
|
441
|
-
}], mode: [{
|
442
|
-
type: Input
|
443
|
-
}], opened: [{
|
444
|
-
type: Input
|
445
|
-
}], sidenavWidth: [{
|
446
|
-
type: Input
|
447
|
-
}], containerAutosize: [{
|
448
|
-
type: Input
|
449
|
-
}], navigationRoute: [{
|
450
|
-
type: Input
|
451
|
-
}] } });
|
452
|
-
|
453
|
-
class TdLayoutNavListToggleDirective extends BaseLayoutToggleDirective {
|
454
|
-
set tdLayoutNavListToggle(tdLayoutNavListToggle) {
|
455
|
-
this.disabled = !(tdLayoutNavListToggle === '' || tdLayoutNavListToggle);
|
456
|
-
}
|
457
|
-
constructor(layout, renderer, elementRef) {
|
458
|
-
super(layout, renderer, elementRef);
|
459
|
-
}
|
460
|
-
onClick() {
|
461
|
-
this._layout.toggle();
|
462
|
-
}
|
463
|
-
}
|
464
|
-
TdLayoutNavListToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavListToggleDirective, deps: [{ token: forwardRef(() => TdLayoutNavListComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
465
|
-
TdLayoutNavListToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutNavListToggleDirective, selector: "[tdLayoutNavListToggle]", inputs: { tdLayoutNavListToggle: "tdLayoutNavListToggle" }, usesInheritance: true, ngImport: i0 });
|
466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavListToggleDirective, decorators: [{
|
467
|
-
type: Directive,
|
468
|
-
args: [{
|
469
|
-
selector: '[tdLayoutNavListToggle]',
|
470
|
-
}]
|
471
|
-
}], ctorParameters: function () {
|
472
|
-
return [{ type: TdLayoutNavListComponent, decorators: [{
|
473
|
-
type: Optional
|
474
|
-
}, {
|
475
|
-
type: Inject,
|
476
|
-
args: [forwardRef(() => TdLayoutNavListComponent)]
|
477
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
478
|
-
}, propDecorators: { tdLayoutNavListToggle: [{
|
479
|
-
type: Input
|
480
|
-
}] } });
|
481
|
-
class TdLayoutNavListCloseDirective extends BaseLayoutToggleDirective {
|
482
|
-
set tdLayoutNavListClose(tdLayoutNavListClose) {
|
483
|
-
this.disabled = !(tdLayoutNavListClose === '' || tdLayoutNavListClose);
|
484
|
-
}
|
485
|
-
constructor(layout, renderer, elementRef) {
|
486
|
-
super(layout, renderer, elementRef);
|
487
|
-
}
|
488
|
-
onClick() {
|
489
|
-
this._layout.close();
|
490
|
-
}
|
491
|
-
}
|
492
|
-
TdLayoutNavListCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavListCloseDirective, deps: [{ token: forwardRef(() => TdLayoutNavListComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
493
|
-
TdLayoutNavListCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutNavListCloseDirective, selector: "[tdLayoutNavListClose]", inputs: { tdLayoutNavListClose: "tdLayoutNavListClose" }, usesInheritance: true, ngImport: i0 });
|
494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavListCloseDirective, decorators: [{
|
495
|
-
type: Directive,
|
496
|
-
args: [{
|
497
|
-
selector: '[tdLayoutNavListClose]',
|
498
|
-
}]
|
499
|
-
}], ctorParameters: function () {
|
500
|
-
return [{ type: TdLayoutNavListComponent, decorators: [{
|
501
|
-
type: Optional
|
502
|
-
}, {
|
503
|
-
type: Inject,
|
504
|
-
args: [forwardRef(() => TdLayoutNavListComponent)]
|
505
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
506
|
-
}, propDecorators: { tdLayoutNavListClose: [{
|
507
|
-
type: Input
|
508
|
-
}] } });
|
509
|
-
class TdLayoutNavListOpenDirective extends BaseLayoutToggleDirective {
|
510
|
-
set tdLayoutNavListOpen(tdLayoutNavListOpen) {
|
511
|
-
this.disabled = !(tdLayoutNavListOpen === '' || tdLayoutNavListOpen);
|
512
|
-
}
|
513
|
-
constructor(layout, renderer, elementRef) {
|
514
|
-
super(layout, renderer, elementRef);
|
515
|
-
}
|
516
|
-
onClick() {
|
517
|
-
this._layout.open();
|
518
|
-
}
|
519
|
-
}
|
520
|
-
TdLayoutNavListOpenDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavListOpenDirective, deps: [{ token: forwardRef(() => TdLayoutNavListComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
521
|
-
TdLayoutNavListOpenDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutNavListOpenDirective, selector: "[tdLayoutNavListOpen]", inputs: { tdLayoutNavListOpen: "tdLayoutNavListOpen" }, usesInheritance: true, ngImport: i0 });
|
522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutNavListOpenDirective, decorators: [{
|
523
|
-
type: Directive,
|
524
|
-
args: [{
|
525
|
-
selector: '[tdLayoutNavListOpen]',
|
526
|
-
}]
|
527
|
-
}], ctorParameters: function () {
|
528
|
-
return [{ type: TdLayoutNavListComponent, decorators: [{
|
529
|
-
type: Optional
|
530
|
-
}, {
|
531
|
-
type: Inject,
|
532
|
-
args: [forwardRef(() => TdLayoutNavListComponent)]
|
533
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
534
|
-
}, propDecorators: { tdLayoutNavListOpen: [{
|
535
|
-
type: Input
|
536
|
-
}] } });
|
537
|
-
|
538
|
-
class TdLayoutCardOverComponent {
|
539
|
-
constructor() {
|
540
|
-
/**
|
541
|
-
* cardWidth?: string
|
542
|
-
*
|
543
|
-
* Card flex width in %.
|
544
|
-
* Defaults to 70%.
|
545
|
-
*/
|
546
|
-
this.cardWidth = 70;
|
547
|
-
/**
|
548
|
-
* color?: 'accent' | 'primary' | 'warn'
|
549
|
-
*
|
550
|
-
* toolbar color option: primary | accent | warn.
|
551
|
-
* If [color] is not set, primary is used.
|
552
|
-
*/
|
553
|
-
this.color = 'primary';
|
554
|
-
}
|
555
|
-
}
|
556
|
-
TdLayoutCardOverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutCardOverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
557
|
-
TdLayoutCardOverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutCardOverComponent, selector: "td-layout-card-over", inputs: { cardTitle: "cardTitle", cardSubtitle: "cardSubtitle", cardWidth: "cardWidth", color: "color" }, ngImport: i0, template: "<mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\"></mat-toolbar>\n<div class=\"td-layout-card-over-wrapper\">\n <div\n class=\"td-layout-card-over\"\n [style.max-width.%]=\"cardWidth\"\n [style.flex]=\"'1 1 ' + cardWidth + '%'\"\n [style.-ms-flex]=\"'1 1 ' + cardWidth + '%'\"\n [style.-webkit-box-flex]=\"1\"\n >\n <mat-card>\n <mat-card-header>\n <mat-card-title *ngIf=\"cardTitle\">{{ cardTitle }}</mat-card-title>\n <mat-card-subtitle *ngIf=\"cardSubtitle\">{{\n cardSubtitle\n }}</mat-card-subtitle>\n </mat-card-header>\n <mat-divider *ngIf=\"cardTitle || cardSubtitle\"></mat-divider>\n <mat-card-content>\n <ng-content></ng-content>\n </mat-card-content>\n </mat-card>\n <ng-content select=\"[td-after-card]\"></ng-content>\n </div>\n</div>\n", styles: [":host{position:relative;display:block;z-index:2;width:100%;min-height:100%;height:100%}:host [td-after-card]{display:block}.td-layout-card-over-wrapper{margin:-64px 0;width:100%;min-height:100%;height:100%}@media (min-width: 600px){.td-layout-card-over-wrapper{flex-direction:row;box-sizing:border-box;display:flex;align-items:flex-start;align-content:flex-start;justify-content:center}.td-layout-card-over-wrapper .td-layout-card-over{max-height:100%;box-sizing:border-box}}@media (max-width: 599px){.td-layout-card-over-wrapper .td-layout-card-over{max-width:100%!important}}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i3$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i3$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i3$1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i3$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i4$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }] });
|
558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutCardOverComponent, decorators: [{
|
559
|
-
type: Component,
|
560
|
-
args: [{ selector: 'td-layout-card-over', template: "<mat-toolbar class=\"td-layout-toolbar\" [color]=\"color\"></mat-toolbar>\n<div class=\"td-layout-card-over-wrapper\">\n <div\n class=\"td-layout-card-over\"\n [style.max-width.%]=\"cardWidth\"\n [style.flex]=\"'1 1 ' + cardWidth + '%'\"\n [style.-ms-flex]=\"'1 1 ' + cardWidth + '%'\"\n [style.-webkit-box-flex]=\"1\"\n >\n <mat-card>\n <mat-card-header>\n <mat-card-title *ngIf=\"cardTitle\">{{ cardTitle }}</mat-card-title>\n <mat-card-subtitle *ngIf=\"cardSubtitle\">{{\n cardSubtitle\n }}</mat-card-subtitle>\n </mat-card-header>\n <mat-divider *ngIf=\"cardTitle || cardSubtitle\"></mat-divider>\n <mat-card-content>\n <ng-content></ng-content>\n </mat-card-content>\n </mat-card>\n <ng-content select=\"[td-after-card]\"></ng-content>\n </div>\n</div>\n", styles: [":host{position:relative;display:block;z-index:2;width:100%;min-height:100%;height:100%}:host [td-after-card]{display:block}.td-layout-card-over-wrapper{margin:-64px 0;width:100%;min-height:100%;height:100%}@media (min-width: 600px){.td-layout-card-over-wrapper{flex-direction:row;box-sizing:border-box;display:flex;align-items:flex-start;align-content:flex-start;justify-content:center}.td-layout-card-over-wrapper .td-layout-card-over{max-height:100%;box-sizing:border-box}}@media (max-width: 599px){.td-layout-card-over-wrapper .td-layout-card-over{max-width:100%!important}}\n"] }]
|
561
|
-
}], propDecorators: { cardTitle: [{
|
562
|
-
type: Input
|
563
|
-
}], cardSubtitle: [{
|
564
|
-
type: Input
|
565
|
-
}], cardWidth: [{
|
566
|
-
type: Input
|
567
|
-
}], color: [{
|
568
|
-
type: Input
|
569
|
-
}] } });
|
570
|
-
|
571
|
-
class TdLayoutManageListComponent {
|
572
|
-
constructor() {
|
573
|
-
/**
|
574
|
-
* mode?: 'side', 'push' or 'over'
|
575
|
-
*
|
576
|
-
* The mode or styling of the sidenav.
|
577
|
-
* Defaults to "side".
|
578
|
-
* See "MatSidenav" documentation for more info.
|
579
|
-
*
|
580
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
581
|
-
*/
|
582
|
-
this.mode = 'side';
|
583
|
-
/**
|
584
|
-
* opened?: boolean
|
585
|
-
*
|
586
|
-
* Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
|
587
|
-
* Defaults to "true".
|
588
|
-
*
|
589
|
-
* See "MatSidenav" documentation for more info.
|
590
|
-
*
|
591
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
592
|
-
*/
|
593
|
-
this.opened = true;
|
594
|
-
/**
|
595
|
-
* sidenavWidth?: string
|
596
|
-
*
|
597
|
-
* Sets the "width" of the sidenav in either "px" or "%"
|
598
|
-
* Defaults to "257px".
|
599
|
-
*
|
600
|
-
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
601
|
-
*/
|
602
|
-
this.sidenavWidth = '257px';
|
603
|
-
/**
|
604
|
-
* containerAutosize?: boolean
|
605
|
-
*
|
606
|
-
* Sets "autosize" of the sidenav-container.
|
607
|
-
* Defaults to "false".
|
608
|
-
*
|
609
|
-
* See documentation for more info and potential performance risks.
|
610
|
-
*
|
611
|
-
* https://github.com/angular/material2/blob/main/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
|
612
|
-
*/
|
613
|
-
this.containerAutosize = false;
|
614
|
-
}
|
615
|
-
/**
|
616
|
-
* Checks if `ESC` should close the sidenav
|
617
|
-
* Should only close it for `push` and `over` modes
|
618
|
-
*/
|
619
|
-
get disableClose() {
|
620
|
-
return this.mode === 'side';
|
621
|
-
}
|
622
|
-
/**
|
623
|
-
* Proxy toggle method to access sidenav from outside (from td-layout template).
|
624
|
-
*/
|
625
|
-
toggle() {
|
626
|
-
return this.sidenav.toggle(!this.sidenav.opened);
|
627
|
-
}
|
628
|
-
/**
|
629
|
-
* Proxy open method to access sidenav from outside (from td-layout template).
|
630
|
-
*/
|
631
|
-
open() {
|
632
|
-
return this.sidenav.open();
|
633
|
-
}
|
634
|
-
/**
|
635
|
-
* Proxy close method to access sidenav from outside (from td-layout template).
|
636
|
-
*/
|
637
|
-
close() {
|
638
|
-
return this.sidenav.close();
|
639
|
-
}
|
640
|
-
}
|
641
|
-
TdLayoutManageListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutManageListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
642
|
-
TdLayoutManageListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutManageListComponent, selector: "td-layout-manage-list", inputs: { mode: "mode", opened: "opened", sidenavWidth: "sidenavWidth", containerAutosize: "containerAutosize" }, viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, static: true }], ngImport: i0, template: "<mat-sidenav-container\n fullscreen\n [autosize]=\"containerAutosize\"\n class=\"td-layout-manage-list\"\n>\n <mat-sidenav\n #sidenav\n position=\"start\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [disableClose]=\"disableClose\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n >\n <ng-content select=\"mat-toolbar[td-sidenav-content]\"></ng-content>\n <div class=\"td-layout-manage-list-sidenav\" cdkScrollable>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </div>\n </mat-sidenav>\n <div class=\"td-layout-manage-list-main\">\n <ng-content select=\"mat-toolbar\"></ng-content>\n <div class=\"td-layout-manage-list-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer-inner\"></ng-content>\n </div>\n</mat-sidenav-container>\n", styles: [":host{display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host mat-sidenav-container.td-layout-manage-list{flex:1}:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-opened,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-opening,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closed,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closing{box-shadow:0 1px 3px #0003}:host .td-layout-manage-list-sidenav{text-align:start;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-manage-list-main{margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto;flex-direction:column;box-sizing:border-box;display:flex}:host .td-layout-manage-list-main .td-layout-manage-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;flex:1}:host ::ng-deep mat-sidenav-container.td-layout-manage-list>.mat-drawer-content{flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;box-sizing:border-box;display:flex;flex-direction:column}:host ::ng-deep mat-nav-list a[mat-list-item] .mat-list-item-content{font-size:14px}:host ::ng-deep .mat-toolbar{font-weight:400}\n"], dependencies: [{ kind: "directive", type: i3.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "component", type: i1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }] });
|
643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutManageListComponent, decorators: [{
|
644
|
-
type: Component,
|
645
|
-
args: [{ selector: 'td-layout-manage-list', template: "<mat-sidenav-container\n fullscreen\n [autosize]=\"containerAutosize\"\n class=\"td-layout-manage-list\"\n>\n <mat-sidenav\n #sidenav\n position=\"start\"\n [mode]=\"mode\"\n [opened]=\"opened\"\n [disableClose]=\"disableClose\"\n [style.max-width]=\"sidenavWidth\"\n [style.min-width]=\"sidenavWidth\"\n >\n <ng-content select=\"mat-toolbar[td-sidenav-content]\"></ng-content>\n <div class=\"td-layout-manage-list-sidenav\" cdkScrollable>\n <ng-content select=\"[td-sidenav-content]\"></ng-content>\n </div>\n </mat-sidenav>\n <div class=\"td-layout-manage-list-main\">\n <ng-content select=\"mat-toolbar\"></ng-content>\n <div class=\"td-layout-manage-list-content\" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select=\"td-layout-footer-inner\"></ng-content>\n </div>\n</mat-sidenav-container>\n", styles: [":host{display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host mat-sidenav-container.td-layout-manage-list{flex:1}:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-opened,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-opening,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closed,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closing{box-shadow:0 1px 3px #0003}:host .td-layout-manage-list-sidenav{text-align:start;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-manage-list-main{margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto;flex-direction:column;box-sizing:border-box;display:flex}:host .td-layout-manage-list-main .td-layout-manage-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;flex:1}:host ::ng-deep mat-sidenav-container.td-layout-manage-list>.mat-drawer-content{flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container{box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;box-sizing:border-box;display:flex;flex-direction:column}:host ::ng-deep mat-nav-list a[mat-list-item] .mat-list-item-content{font-size:14px}:host ::ng-deep .mat-toolbar{font-weight:400}\n"] }]
|
646
|
-
}], propDecorators: { sidenav: [{
|
647
|
-
type: ViewChild,
|
648
|
-
args: [MatSidenav, { static: true }]
|
649
|
-
}], mode: [{
|
650
|
-
type: Input
|
651
|
-
}], opened: [{
|
652
|
-
type: Input
|
653
|
-
}], sidenavWidth: [{
|
654
|
-
type: Input
|
655
|
-
}], containerAutosize: [{
|
656
|
-
type: Input
|
657
|
-
}] } });
|
658
|
-
|
659
|
-
class TdLayoutManageListToggleDirective extends BaseLayoutToggleDirective {
|
660
|
-
set tdLayoutManageListToggle(tdLayoutManageListToggle) {
|
661
|
-
this.disabled = !(tdLayoutManageListToggle === '' || tdLayoutManageListToggle);
|
662
|
-
}
|
663
|
-
constructor(layout, renderer, elementRef) {
|
664
|
-
super(layout, renderer, elementRef);
|
665
|
-
}
|
666
|
-
onClick() {
|
667
|
-
this._layout.toggle();
|
668
|
-
}
|
669
|
-
}
|
670
|
-
TdLayoutManageListToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutManageListToggleDirective, deps: [{ token: forwardRef(() => TdLayoutManageListComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
671
|
-
TdLayoutManageListToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutManageListToggleDirective, selector: "[tdLayoutManageListToggle]", inputs: { tdLayoutManageListToggle: "tdLayoutManageListToggle" }, usesInheritance: true, ngImport: i0 });
|
672
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutManageListToggleDirective, decorators: [{
|
673
|
-
type: Directive,
|
674
|
-
args: [{
|
675
|
-
selector: '[tdLayoutManageListToggle]',
|
676
|
-
}]
|
677
|
-
}], ctorParameters: function () {
|
678
|
-
return [{ type: TdLayoutManageListComponent, decorators: [{
|
679
|
-
type: Optional
|
680
|
-
}, {
|
681
|
-
type: Inject,
|
682
|
-
args: [forwardRef(() => TdLayoutManageListComponent)]
|
683
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
684
|
-
}, propDecorators: { tdLayoutManageListToggle: [{
|
685
|
-
type: Input
|
686
|
-
}] } });
|
687
|
-
class TdLayoutManageListCloseDirective extends BaseLayoutToggleDirective {
|
688
|
-
set tdLayoutManageListClose(tdLayoutManageListClose) {
|
689
|
-
this.disabled = !(tdLayoutManageListClose === '' || tdLayoutManageListClose);
|
690
|
-
}
|
691
|
-
constructor(layout, renderer, elementRef) {
|
692
|
-
super(layout, renderer, elementRef);
|
693
|
-
}
|
694
|
-
onClick() {
|
695
|
-
this._layout.close();
|
696
|
-
}
|
697
|
-
}
|
698
|
-
TdLayoutManageListCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutManageListCloseDirective, deps: [{ token: forwardRef(() => TdLayoutManageListComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
699
|
-
TdLayoutManageListCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutManageListCloseDirective, selector: "[tdLayoutManageListClose]", inputs: { tdLayoutManageListClose: "tdLayoutManageListClose" }, usesInheritance: true, ngImport: i0 });
|
700
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutManageListCloseDirective, decorators: [{
|
701
|
-
type: Directive,
|
702
|
-
args: [{
|
703
|
-
selector: '[tdLayoutManageListClose]',
|
704
|
-
}]
|
705
|
-
}], ctorParameters: function () {
|
706
|
-
return [{ type: TdLayoutManageListComponent, decorators: [{
|
707
|
-
type: Optional
|
708
|
-
}, {
|
709
|
-
type: Inject,
|
710
|
-
args: [forwardRef(() => TdLayoutManageListComponent)]
|
711
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
712
|
-
}, propDecorators: { tdLayoutManageListClose: [{
|
713
|
-
type: Input
|
714
|
-
}] } });
|
715
|
-
class TdLayoutManageListOpenDirective extends BaseLayoutToggleDirective {
|
716
|
-
set tdLayoutManageListOpen(tdLayoutManageListOpen) {
|
717
|
-
this.disabled = !(tdLayoutManageListOpen === '' || tdLayoutManageListOpen);
|
718
|
-
}
|
719
|
-
constructor(layout, renderer, elementRef) {
|
720
|
-
super(layout, renderer, elementRef);
|
721
|
-
}
|
722
|
-
onClick() {
|
723
|
-
this._layout.open();
|
724
|
-
}
|
725
|
-
}
|
726
|
-
TdLayoutManageListOpenDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutManageListOpenDirective, deps: [{ token: forwardRef(() => TdLayoutManageListComponent), optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
727
|
-
TdLayoutManageListOpenDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutManageListOpenDirective, selector: "[tdLayoutManageListOpen]", inputs: { tdLayoutManageListOpen: "tdLayoutManageListOpen" }, usesInheritance: true, ngImport: i0 });
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutManageListOpenDirective, decorators: [{
|
729
|
-
type: Directive,
|
730
|
-
args: [{
|
731
|
-
selector: '[tdLayoutManageListOpen]',
|
732
|
-
}]
|
733
|
-
}], ctorParameters: function () {
|
734
|
-
return [{ type: TdLayoutManageListComponent, decorators: [{
|
735
|
-
type: Optional
|
736
|
-
}, {
|
737
|
-
type: Inject,
|
738
|
-
args: [forwardRef(() => TdLayoutManageListComponent)]
|
739
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];
|
740
|
-
}, propDecorators: { tdLayoutManageListOpen: [{
|
741
|
-
type: Input
|
742
|
-
}] } });
|
743
|
-
|
744
|
-
class TdLayoutFooterComponent {
|
745
|
-
/**
|
746
|
-
* color?: 'accent' | 'primary' | 'warn'
|
747
|
-
*
|
748
|
-
* Optional color option: primary | accent | warn.
|
749
|
-
*/
|
750
|
-
set color(color) {
|
751
|
-
if (color) {
|
752
|
-
this._renderer.removeClass(this._elementRef.nativeElement, 'mat-' + this._color);
|
753
|
-
this._color = color;
|
754
|
-
this._renderer.addClass(this._elementRef.nativeElement, 'mat-' + this._color);
|
755
|
-
}
|
756
|
-
}
|
757
|
-
get color() {
|
758
|
-
return this._color;
|
759
|
-
}
|
760
|
-
constructor(_renderer, _elementRef) {
|
761
|
-
this._renderer = _renderer;
|
762
|
-
this._elementRef = _elementRef;
|
763
|
-
this._renderer.addClass(this._elementRef.nativeElement, 'td-layout-footer');
|
764
|
-
}
|
765
|
-
}
|
766
|
-
TdLayoutFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutFooterComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
767
|
-
TdLayoutFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdLayoutFooterComponent, selector: "td-layout-footer,td-layout-footer-inner", inputs: { color: "color" }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block;padding:10px 16px}\n"] });
|
768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdLayoutFooterComponent, decorators: [{
|
769
|
-
type: Component,
|
770
|
-
args: [{ selector: 'td-layout-footer,td-layout-footer-inner', template: "<ng-content></ng-content>\n", styles: [":host{display:block;padding:10px 16px}\n"] }]
|
771
|
-
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { color: [{
|
772
|
-
type: Input
|
773
|
-
}] } });
|
774
|
-
|
775
|
-
class TdNavigationDrawerMenuDirective {
|
776
|
-
}
|
777
|
-
TdNavigationDrawerMenuDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdNavigationDrawerMenuDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
778
|
-
TdNavigationDrawerMenuDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdNavigationDrawerMenuDirective, selector: "[tdNavigationDrawerMenu]", ngImport: i0 });
|
779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdNavigationDrawerMenuDirective, decorators: [{
|
780
|
-
type: Directive,
|
781
|
-
args: [{
|
782
|
-
selector: '[tdNavigationDrawerMenu]',
|
783
|
-
}]
|
784
|
-
}] });
|
785
|
-
class TdNavigationDrawerToolbarDirective {
|
786
|
-
}
|
787
|
-
TdNavigationDrawerToolbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdNavigationDrawerToolbarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
788
|
-
TdNavigationDrawerToolbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: TdNavigationDrawerToolbarDirective, selector: "[tdNavigationDrawerToolbar]", ngImport: i0 });
|
789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdNavigationDrawerToolbarDirective, decorators: [{
|
790
|
-
type: Directive,
|
791
|
-
args: [{
|
792
|
-
selector: '[tdNavigationDrawerToolbar]',
|
793
|
-
}]
|
794
|
-
}] });
|
795
|
-
class TdNavigationDrawerComponent {
|
796
|
-
get menuToggled() {
|
797
|
-
return this._menuToggled;
|
798
|
-
}
|
799
|
-
/**
|
800
|
-
* Checks if there is a [TdNavigationDrawerMenuDirective] has content.
|
801
|
-
*/
|
802
|
-
get isMenuAvailable() {
|
803
|
-
return this._drawerMenu ? this._drawerMenu.length > 0 : false;
|
804
|
-
}
|
805
|
-
/**
|
806
|
-
* Checks if there is a [TdNavigationDrawerToolbarDirective] has content.
|
807
|
-
*/
|
808
|
-
get isCustomToolbar() {
|
809
|
-
return this._toolbar ? this._toolbar.length > 0 : false;
|
810
|
-
}
|
811
|
-
/**
|
812
|
-
* Checks if there is a background image for the toolbar.
|
813
|
-
*/
|
814
|
-
get isBackgroundAvailable() {
|
815
|
-
return !!this._backgroundImage;
|
816
|
-
}
|
817
|
-
/**
|
818
|
-
* backgroundUrl?: SafeResourceUrl
|
819
|
-
*
|
820
|
-
* image to be displayed as the background of the toolbar.
|
821
|
-
* URL used will be sanitized, but it should be always from a trusted source to avoid XSS.
|
822
|
-
*/
|
823
|
-
set backgroundUrl(backgroundUrl) {
|
824
|
-
if (backgroundUrl) {
|
825
|
-
const sanitizedUrl = this._sanitize.sanitize(SecurityContext.RESOURCE_URL, backgroundUrl);
|
826
|
-
this._backgroundImage = this._sanitize.sanitize(SecurityContext.STYLE, 'url(' + sanitizedUrl + ')');
|
827
|
-
}
|
828
|
-
}
|
829
|
-
get backgroundImage() {
|
830
|
-
return this._backgroundImage;
|
831
|
-
}
|
832
|
-
/**
|
833
|
-
* Checks if router was injected.
|
834
|
-
*/
|
835
|
-
get routerEnabled() {
|
836
|
-
return !!this._router && !!this.navigationRoute;
|
837
|
-
}
|
838
|
-
constructor(_layout, _router, _sanitize) {
|
839
|
-
this._layout = _layout;
|
840
|
-
this._router = _router;
|
841
|
-
this._sanitize = _sanitize;
|
842
|
-
this._menuToggled = false;
|
843
|
-
this._destroy$ = new Subject();
|
844
|
-
}
|
845
|
-
ngOnInit() {
|
846
|
-
this._layout.sidenav.openedChange
|
847
|
-
.pipe(takeUntil(this._destroy$))
|
848
|
-
.subscribe((opened) => {
|
849
|
-
if (!opened) {
|
850
|
-
this._menuToggled = false;
|
851
|
-
}
|
852
|
-
});
|
853
|
-
}
|
854
|
-
ngOnDestroy() {
|
855
|
-
this._destroy$.next();
|
856
|
-
}
|
857
|
-
toggleMenu() {
|
858
|
-
if (this.isMenuAvailable) {
|
859
|
-
this._menuToggled = !this._menuToggled;
|
860
|
-
}
|
861
|
-
}
|
862
|
-
handleNavigationClick() {
|
863
|
-
if (this.routerEnabled && this.navigationRoute) {
|
864
|
-
this._router.navigateByUrl(this.navigationRoute);
|
865
|
-
this.close();
|
866
|
-
}
|
867
|
-
}
|
868
|
-
/**
|
869
|
-
* Proxy toggle method to access sidenav from outside (from td-layout template).
|
870
|
-
*/
|
871
|
-
toggle() {
|
872
|
-
return this._layout.toggle();
|
873
|
-
}
|
874
|
-
/**
|
875
|
-
* Proxy open method to access sidenav from outside (from td-layout template).
|
876
|
-
*/
|
877
|
-
open() {
|
878
|
-
return this._layout.open();
|
879
|
-
}
|
880
|
-
/**
|
881
|
-
* Proxy close method to access sidenav from outside (from td-layout template).
|
882
|
-
*/
|
883
|
-
close() {
|
884
|
-
return this._layout.close();
|
885
|
-
}
|
886
|
-
}
|
887
|
-
TdNavigationDrawerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdNavigationDrawerComponent, deps: [{ token: forwardRef(() => TdLayoutComponent) }, { token: i1$1.Router, optional: true }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
888
|
-
TdNavigationDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdNavigationDrawerComponent, selector: "td-navigation-drawer", inputs: { sidenavTitle: "sidenavTitle", icon: "icon", logo: "logo", avatar: "avatar", color: "color", navigationRoute: "navigationRoute", backgroundUrl: "backgroundUrl", name: "name", email: "email" }, queries: [{ propertyName: "_drawerMenu", predicate: TdNavigationDrawerMenuDirective, descendants: true }, { propertyName: "_toolbar", predicate: TdNavigationDrawerToolbarDirective, descendants: true }], ngImport: i0, template: "<mat-toolbar\n [color]=\"color\"\n [style.background-image]=\"backgroundImage\"\n [class.td-toolbar-background]=\"!!isBackgroundAvailable\"\n class=\"td-nagivation-drawer-toolbar\"\n>\n <ng-content select=\"[td-navigation-drawer-toolbar]\"></ng-content>\n <ng-container *ngIf=\"!isCustomToolbar\">\n <div\n *ngIf=\"icon || logo || sidenavTitle || avatar\"\n class=\"td-navigation-drawer-toolbar-content\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <img\n *ngIf=\"avatar && !logo && !icon\"\n class=\"td-nagivation-drawer-toolbar-avatar\"\n [attr.src]=\"avatar\"\n />\n <span *ngIf=\"sidenavTitle\" class=\"td-navigation-drawer-title\">{{\n sidenavTitle\n }}</span>\n </div>\n <div class=\"td-navigation-drawer-name\" *ngIf=\"email && name\">\n {{ name }}\n </div>\n <div\n class=\"td-navigation-drawer-menu-toggle\"\n href\n *ngIf=\"email || name\"\n (click)=\"toggleMenu()\"\n >\n <span class=\"td-navigation-drawer-label\">{{ email || name }}</span>\n <button\n mat-icon-button\n class=\"td-navigation-drawer-menu-button\"\n *ngIf=\"isMenuAvailable\"\n >\n <mat-icon *ngIf=\"!menuToggled\">arrow_drop_down</mat-icon>\n <mat-icon *ngIf=\"menuToggled\">arrow_drop_up</mat-icon>\n </button>\n </div>\n </ng-container>\n</mat-toolbar>\n<div class=\"td-navigation-drawer-content\" [@tdCollapse]=\"menuToggled\">\n <ng-content></ng-content>\n</div>\n<div class=\"td-navigation-drawer-menu-content\" [@tdCollapse]=\"!menuToggled\">\n <ng-content select=\"[td-navigation-drawer-menu]\"></ng-content>\n</div>\n", styles: [":host{width:100%}:host .td-navigation-drawer-content.ng-animating,:host .td-navigation-drawer-menu-content.ng-animating{overflow:hidden}:host mat-toolbar{padding:16px}:host mat-toolbar.td-toolbar-background{background-repeat:no-repeat;background-size:cover}:host mat-toolbar.td-nagivation-drawer-toolbar{flex-direction:column;height:auto!important;display:block!important}:host mat-toolbar .td-navigation-drawer-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-nagivation-drawer-toolbar-avatar{border-radius:50%;height:60px;width:60px;margin:0 12px 12px 0}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-navigation-drawer-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-menu-toggle{flex-direction:row;box-sizing:border-box;display:flex}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-menu-button{width:24px;height:24px;padding:0}:host>div{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [tdCollapseAnimation] });
|
889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdNavigationDrawerComponent, decorators: [{
|
890
|
-
type: Component,
|
891
|
-
args: [{ selector: 'td-navigation-drawer', animations: [tdCollapseAnimation], template: "<mat-toolbar\n [color]=\"color\"\n [style.background-image]=\"backgroundImage\"\n [class.td-toolbar-background]=\"!!isBackgroundAvailable\"\n class=\"td-nagivation-drawer-toolbar\"\n>\n <ng-content select=\"[td-navigation-drawer-toolbar]\"></ng-content>\n <ng-container *ngIf=\"!isCustomToolbar\">\n <div\n *ngIf=\"icon || logo || sidenavTitle || avatar\"\n class=\"td-navigation-drawer-toolbar-content\"\n [class.cursor-pointer]=\"routerEnabled\"\n (click)=\"handleNavigationClick()\"\n >\n <mat-icon *ngIf=\"icon\">{{ icon }}</mat-icon>\n <mat-icon\n *ngIf=\"logo && !icon\"\n class=\"mat-icon-logo\"\n [svgIcon]=\"logo\"\n ></mat-icon>\n <img\n *ngIf=\"avatar && !logo && !icon\"\n class=\"td-nagivation-drawer-toolbar-avatar\"\n [attr.src]=\"avatar\"\n />\n <span *ngIf=\"sidenavTitle\" class=\"td-navigation-drawer-title\">{{\n sidenavTitle\n }}</span>\n </div>\n <div class=\"td-navigation-drawer-name\" *ngIf=\"email && name\">\n {{ name }}\n </div>\n <div\n class=\"td-navigation-drawer-menu-toggle\"\n href\n *ngIf=\"email || name\"\n (click)=\"toggleMenu()\"\n >\n <span class=\"td-navigation-drawer-label\">{{ email || name }}</span>\n <button\n mat-icon-button\n class=\"td-navigation-drawer-menu-button\"\n *ngIf=\"isMenuAvailable\"\n >\n <mat-icon *ngIf=\"!menuToggled\">arrow_drop_down</mat-icon>\n <mat-icon *ngIf=\"menuToggled\">arrow_drop_up</mat-icon>\n </button>\n </div>\n </ng-container>\n</mat-toolbar>\n<div class=\"td-navigation-drawer-content\" [@tdCollapse]=\"menuToggled\">\n <ng-content></ng-content>\n</div>\n<div class=\"td-navigation-drawer-menu-content\" [@tdCollapse]=\"!menuToggled\">\n <ng-content select=\"[td-navigation-drawer-menu]\"></ng-content>\n</div>\n", styles: [":host{width:100%}:host .td-navigation-drawer-content.ng-animating,:host .td-navigation-drawer-menu-content.ng-animating{overflow:hidden}:host mat-toolbar{padding:16px}:host mat-toolbar.td-toolbar-background{background-repeat:no-repeat;background-size:cover}:host mat-toolbar.td-nagivation-drawer-toolbar{flex-direction:column;height:auto!important;display:block!important}:host mat-toolbar .td-navigation-drawer-toolbar-content{flex-direction:row;box-sizing:border-box;display:flex;align-items:center;align-content:center;max-width:100%;justify-content:flex-start}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-nagivation-drawer-toolbar-avatar{border-radius:50%;height:60px;width:60px;margin:0 12px 12px 0}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-navigation-drawer-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-menu-toggle{flex-direction:row;box-sizing:border-box;display:flex}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-label{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-menu-button{width:24px;height:24px;padding:0}:host>div{overflow:hidden}\n"] }]
|
892
|
-
}], ctorParameters: function () {
|
893
|
-
return [{ type: TdLayoutComponent, decorators: [{
|
894
|
-
type: Inject,
|
895
|
-
args: [forwardRef(() => TdLayoutComponent)]
|
896
|
-
}] }, { type: i1$1.Router, decorators: [{
|
897
|
-
type: Optional
|
898
|
-
}] }, { type: i2$1.DomSanitizer }];
|
899
|
-
}, propDecorators: { _drawerMenu: [{
|
900
|
-
type: ContentChildren,
|
901
|
-
args: [TdNavigationDrawerMenuDirective, { descendants: true }]
|
902
|
-
}], _toolbar: [{
|
903
|
-
type: ContentChildren,
|
904
|
-
args: [TdNavigationDrawerToolbarDirective, { descendants: true }]
|
905
|
-
}], sidenavTitle: [{
|
906
|
-
type: Input
|
907
|
-
}], icon: [{
|
908
|
-
type: Input
|
909
|
-
}], logo: [{
|
910
|
-
type: Input
|
911
|
-
}], avatar: [{
|
912
|
-
type: Input
|
913
|
-
}], color: [{
|
914
|
-
type: Input
|
915
|
-
}], navigationRoute: [{
|
916
|
-
type: Input
|
917
|
-
}], backgroundUrl: [{
|
918
|
-
type: Input
|
919
|
-
}], name: [{
|
920
|
-
type: Input
|
921
|
-
}], email: [{
|
922
|
-
type: Input
|
923
|
-
}] } });
|
924
|
-
|
925
|
-
const TD_LAYOUTS = [
|
926
|
-
TdLayoutComponent,
|
927
|
-
TdLayoutToggleDirective,
|
928
|
-
TdLayoutCloseDirective,
|
929
|
-
TdLayoutOpenDirective,
|
930
|
-
TdLayoutNavComponent,
|
931
|
-
TdLayoutNavListComponent,
|
932
|
-
TdLayoutNavListToggleDirective,
|
933
|
-
TdLayoutNavListCloseDirective,
|
934
|
-
TdLayoutNavListOpenDirective,
|
935
|
-
TdLayoutCardOverComponent,
|
936
|
-
TdLayoutManageListComponent,
|
937
|
-
TdLayoutManageListToggleDirective,
|
938
|
-
TdLayoutManageListCloseDirective,
|
939
|
-
TdLayoutManageListOpenDirective,
|
940
|
-
TdLayoutFooterComponent,
|
941
|
-
TdNavigationDrawerComponent,
|
942
|
-
TdNavigationDrawerMenuDirective,
|
943
|
-
TdNavigationDrawerToolbarDirective,
|
944
|
-
];
|
945
|
-
class CovalentLayoutModule {
|
946
|
-
}
|
947
|
-
CovalentLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
948
|
-
CovalentLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: CovalentLayoutModule, declarations: [TdLayoutComponent,
|
949
|
-
TdLayoutToggleDirective,
|
950
|
-
TdLayoutCloseDirective,
|
951
|
-
TdLayoutOpenDirective,
|
952
|
-
TdLayoutNavComponent,
|
953
|
-
TdLayoutNavListComponent,
|
954
|
-
TdLayoutNavListToggleDirective,
|
955
|
-
TdLayoutNavListCloseDirective,
|
956
|
-
TdLayoutNavListOpenDirective,
|
957
|
-
TdLayoutCardOverComponent,
|
958
|
-
TdLayoutManageListComponent,
|
959
|
-
TdLayoutManageListToggleDirective,
|
960
|
-
TdLayoutManageListCloseDirective,
|
961
|
-
TdLayoutManageListOpenDirective,
|
962
|
-
TdLayoutFooterComponent,
|
963
|
-
TdNavigationDrawerComponent,
|
964
|
-
TdNavigationDrawerMenuDirective,
|
965
|
-
TdNavigationDrawerToolbarDirective], imports: [CommonModule,
|
966
|
-
ScrollingModule,
|
967
|
-
MatSidenavModule,
|
968
|
-
MatToolbarModule,
|
969
|
-
MatButtonModule,
|
970
|
-
MatIconModule,
|
971
|
-
MatCardModule,
|
972
|
-
MatDividerModule,
|
973
|
-
CovalentMenuModule], exports: [TdLayoutComponent,
|
974
|
-
TdLayoutToggleDirective,
|
975
|
-
TdLayoutCloseDirective,
|
976
|
-
TdLayoutOpenDirective,
|
977
|
-
TdLayoutNavComponent,
|
978
|
-
TdLayoutNavListComponent,
|
979
|
-
TdLayoutNavListToggleDirective,
|
980
|
-
TdLayoutNavListCloseDirective,
|
981
|
-
TdLayoutNavListOpenDirective,
|
982
|
-
TdLayoutCardOverComponent,
|
983
|
-
TdLayoutManageListComponent,
|
984
|
-
TdLayoutManageListToggleDirective,
|
985
|
-
TdLayoutManageListCloseDirective,
|
986
|
-
TdLayoutManageListOpenDirective,
|
987
|
-
TdLayoutFooterComponent,
|
988
|
-
TdNavigationDrawerComponent,
|
989
|
-
TdNavigationDrawerMenuDirective,
|
990
|
-
TdNavigationDrawerToolbarDirective] });
|
991
|
-
CovalentLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentLayoutModule, imports: [CommonModule,
|
992
|
-
ScrollingModule,
|
993
|
-
MatSidenavModule,
|
994
|
-
MatToolbarModule,
|
995
|
-
MatButtonModule,
|
996
|
-
MatIconModule,
|
997
|
-
MatCardModule,
|
998
|
-
MatDividerModule,
|
999
|
-
CovalentMenuModule] });
|
1000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentLayoutModule, decorators: [{
|
1001
|
-
type: NgModule,
|
1002
|
-
args: [{
|
1003
|
-
imports: [
|
1004
|
-
CommonModule,
|
1005
|
-
ScrollingModule,
|
1006
|
-
MatSidenavModule,
|
1007
|
-
MatToolbarModule,
|
1008
|
-
MatButtonModule,
|
1009
|
-
MatIconModule,
|
1010
|
-
MatCardModule,
|
1011
|
-
MatDividerModule,
|
1012
|
-
CovalentMenuModule,
|
1013
|
-
],
|
1014
|
-
declarations: [...TD_LAYOUTS],
|
1015
|
-
exports: [...TD_LAYOUTS],
|
1016
|
-
}]
|
1017
|
-
}] });
|
1018
|
-
|
1019
|
-
/**
|
1020
|
-
* Generated bundle index. Do not edit.
|
1021
|
-
*/
|
1022
|
-
|
1023
|
-
export { BaseLayoutToggleDirective, CovalentLayoutModule, LayoutToggleBase, TdLayoutCardOverComponent, TdLayoutCloseDirective, TdLayoutComponent, TdLayoutFooterComponent, TdLayoutManageListCloseDirective, TdLayoutManageListComponent, TdLayoutManageListOpenDirective, TdLayoutManageListToggleDirective, TdLayoutNavComponent, TdLayoutNavListCloseDirective, TdLayoutNavListComponent, TdLayoutNavListOpenDirective, TdLayoutNavListToggleDirective, TdLayoutOpenDirective, TdLayoutToggleDirective, TdNavigationDrawerComponent, TdNavigationDrawerMenuDirective, TdNavigationDrawerToolbarDirective, _TdLayoutToggleMixinBase };
|
1024
|
-
//# sourceMappingURL=covalent-core-layout.mjs.map
|