@covalent/core 0.0.0-COVALENT
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/README.md +42 -0
- package/breadcrumbs/README.md +93 -0
- package/breadcrumbs/_breadcrumbs-theme.scss +10 -0
- package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +37 -0
- package/breadcrumbs/breadcrumbs.component.d.ts +37 -0
- package/breadcrumbs/breadcrumbs.module.d.ts +10 -0
- package/breadcrumbs/covalent-core-breadcrumbs.d.ts +5 -0
- package/breadcrumbs/package.json +10 -0
- package/breadcrumbs/public_api.d.ts +3 -0
- package/common/README.md +3 -0
- package/common/_common-theme.scss +35 -0
- package/common/animations/bounce/bounce.animation.d.ts +14 -0
- package/common/animations/collapse/collapse.animation.d.ts +20 -0
- package/common/animations/common/interfaces.d.ts +5 -0
- package/common/animations/fade/fadeInOut.animation.d.ts +20 -0
- package/common/animations/flash/flash.animation.d.ts +14 -0
- package/common/animations/headshake/headshake.animation.d.ts +14 -0
- package/common/animations/jello/jello.animation.d.ts +14 -0
- package/common/animations/pulse/pulse.animation.d.ts +14 -0
- package/common/animations/rotate/rotate.animation.d.ts +21 -0
- package/common/behaviors/control-value-accesor.mixin.d.ts +16 -0
- package/common/behaviors/disable-ripple.mixin.d.ts +9 -0
- package/common/behaviors/disabled.mixin.d.ts +9 -0
- package/common/common.module.d.ts +17 -0
- package/common/covalent-core-common.d.ts +5 -0
- package/common/directives/fullscreen/fullscreen.directive.d.ts +25 -0
- package/common/forms/auto-trim/auto-trim.directive.d.ts +12 -0
- package/common/forms/validators/validators.d.ts +8 -0
- package/common/functions/clipboard.d.ts +9 -0
- package/common/functions/convert.d.ts +31 -0
- package/common/functions/download.d.ts +48 -0
- package/common/functions/file.d.ts +7 -0
- package/common/package.json +10 -0
- package/common/pipes/bytes/bytes.pipe.d.ts +7 -0
- package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +7 -0
- package/common/pipes/digits/digits.pipe.d.ts +10 -0
- package/common/pipes/time-ago/time-ago.pipe.d.ts +7 -0
- package/common/pipes/time-difference/time-difference.pipe.d.ts +7 -0
- package/common/pipes/time-until/time-until.pipe.d.ts +7 -0
- package/common/pipes/truncate/truncate.pipe.d.ts +7 -0
- package/common/public_api.d.ts +35 -0
- package/common/services/icon.service.d.ts +8 -0
- package/common/services/router-path.service.d.ts +10 -0
- package/common/styles/_elevation.scss +285 -0
- package/common/styles/_layout.scss +605 -0
- package/common/styles/_palette-dark.scss +326 -0
- package/common/styles/_palette-light.scss +637 -0
- package/common/styles/_rtl.scss +31 -0
- package/common/styles/_styles.scss +10 -0
- package/common/styles/_theme-functions.scss +25 -0
- package/common/styles/_typography-functions.scss +43 -0
- package/common/styles/_variables.scss +99 -0
- package/common/styles/colors/_colors-dark.scss +1399 -0
- package/common/styles/colors/_colors-light.scss +3235 -0
- package/common/styles/colors/_colors.scss +7 -0
- package/common/styles/core/_button.scss +90 -0
- package/common/styles/core/_card.scss +189 -0
- package/common/styles/core/_content.scss +43 -0
- package/common/styles/core/_core.scss +23 -0
- package/common/styles/core/_divider.scss +16 -0
- package/common/styles/core/_icons.scss +22 -0
- package/common/styles/core/_list.scss +8 -0
- package/common/styles/core/_sidenav.scss +22 -0
- package/common/styles/core/_structure.scss +127 -0
- package/common/styles/core/_toolbar.scss +53 -0
- package/common/styles/core/_whiteframe.scss +138 -0
- package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
- package/common/styles/font/README.md +11 -0
- package/common/styles/font/_font.scss +99 -0
- package/common/styles/utilities/_general.scss +65 -0
- package/common/styles/utilities/_pad.scss +36 -0
- package/common/styles/utilities/_pull.scss +36 -0
- package/common/styles/utilities/_push.scss +36 -0
- package/common/styles/utilities/_size.scss +24 -0
- package/common/styles/utilities/_text.scss +105 -0
- package/common/styles/utilities/_utilities.scss +15 -0
- package/covalent-core.d.ts +5 -0
- package/dialogs/README.md +223 -0
- package/dialogs/_dialog-theme.scss +39 -0
- package/dialogs/alert-dialog/alert-dialog.component.d.ts +12 -0
- package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +15 -0
- package/dialogs/covalent-core-dialogs.d.ts +5 -0
- package/dialogs/dialog.component.d.ts +22 -0
- package/dialogs/dialogs.module.d.ts +19 -0
- package/dialogs/package.json +10 -0
- package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +23 -0
- package/dialogs/public_api.d.ts +8 -0
- package/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.d.ts +21 -0
- package/dialogs/services/dialog.service.d.ts +105 -0
- package/dialogs/src/README.md +223 -0
- package/dialogs/window-dialog/window-dialog.component.d.ts +16 -0
- package/dynamic-menu/README.md +152 -0
- package/dynamic-menu/_dynamic-menu-theme.scss +0 -0
- package/dynamic-menu/covalent-core-dynamic-menu.d.ts +5 -0
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +12 -0
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +10 -0
- package/dynamic-menu/dynamic-menu.component.d.ts +11 -0
- package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
- package/dynamic-menu/dynamic-menu.module.d.ts +15 -0
- package/dynamic-menu/package.json +10 -0
- package/dynamic-menu/public_api.d.ts +5 -0
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +92 -0
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +134 -0
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +20 -0
- package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
- package/esm2020/breadcrumbs/public_api.mjs +4 -0
- package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
- package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
- package/esm2020/common/animations/common/interfaces.mjs +2 -0
- package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
- package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
- package/esm2020/common/animations/headshake/headshake.animation.mjs +47 -0
- package/esm2020/common/animations/jello/jello.animation.mjs +59 -0
- package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
- package/esm2020/common/animations/rotate/rotate.animation.mjs +30 -0
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +41 -0
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
- package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
- package/esm2020/common/common.module.mjs +63 -0
- package/esm2020/common/covalent-core-common.mjs +5 -0
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
- package/esm2020/common/forms/validators/validators.mjs +29 -0
- package/esm2020/common/functions/clipboard.mjs +23 -0
- package/esm2020/common/functions/convert.mjs +84 -0
- package/esm2020/common/functions/download.mjs +75 -0
- package/esm2020/common/functions/file.mjs +16 -0
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +42 -0
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
- package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
- package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
- package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
- package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
- package/esm2020/common/public_api.mjs +39 -0
- package/esm2020/common/services/icon.service.mjs +1089 -0
- package/esm2020/common/services/router-path.service.mjs +29 -0
- package/esm2020/covalent-core.mjs +5 -0
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +23 -0
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +28 -0
- package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
- package/esm2020/dialogs/dialog.component.mjs +56 -0
- package/esm2020/dialogs/dialogs.module.mjs +89 -0
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +46 -0
- package/esm2020/dialogs/public_api.mjs +9 -0
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +216 -0
- package/esm2020/dialogs/services/dialog.service.mjs +171 -0
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +38 -0
- package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +24 -0
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +28 -0
- package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
- package/esm2020/dynamic-menu/dynamic-menu.module.mjs +57 -0
- package/esm2020/dynamic-menu/public_api.mjs +6 -0
- package/esm2020/file/covalent-core-file.mjs +5 -0
- package/esm2020/file/directives/file-drop.directive.mjs +147 -0
- package/esm2020/file/directives/file-select.directive.mjs +77 -0
- package/esm2020/file/file-input/file-input.component.mjs +110 -0
- package/esm2020/file/file-upload/file-upload.component.mjs +174 -0
- package/esm2020/file/file.module.mjs +58 -0
- package/esm2020/file/public_api.mjs +7 -0
- package/esm2020/file/services/file.service.mjs +64 -0
- package/esm2020/json-formatter/collapse.animation.mjs +51 -0
- package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
- package/esm2020/json-formatter/json-formatter.component.mjs +217 -0
- package/esm2020/json-formatter/json-formatter.module.mjs +20 -0
- package/esm2020/json-formatter/public_api.mjs +3 -0
- package/esm2020/layout/covalent-core-layout.mjs +5 -0
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +40 -0
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +33 -0
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +93 -0
- package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +84 -0
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +50 -0
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +128 -0
- package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +84 -0
- package/esm2020/layout/layout-toggle.class.mjs +92 -0
- package/esm2020/layout/layout.component.mjs +92 -0
- package/esm2020/layout/layout.directives.mjs +85 -0
- package/esm2020/layout/layout.module.mjs +117 -0
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +161 -0
- package/esm2020/layout/public_api.mjs +13 -0
- package/esm2020/menu/covalent-core-menu.mjs +5 -0
- package/esm2020/menu/menu.component.mjs +12 -0
- package/esm2020/menu/menu.module.mjs +21 -0
- package/esm2020/menu/public_api.mjs +3 -0
- package/esm2020/message/collapse.animation.mjs +51 -0
- package/esm2020/message/covalent-core-message.mjs +5 -0
- package/esm2020/message/message.component.mjs +203 -0
- package/esm2020/message/message.module.mjs +25 -0
- package/esm2020/message/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/search/covalent-core-search.mjs +5 -0
- package/esm2020/search/public_api.mjs +4 -0
- package/esm2020/search/search-box/search-box.component.mjs +194 -0
- package/esm2020/search/search-input/search-input.component.mjs +203 -0
- package/esm2020/search/search.module.mjs +39 -0
- package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
- package/esm2020/side-sheet/public_api.mjs +6 -0
- package/esm2020/side-sheet/side-sheet-container.mjs +274 -0
- package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
- package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
- package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +201 -0
- package/esm2020/side-sheet/side-sheet.mjs +221 -0
- package/esm2020/side-sheet/side-sheet.module.mjs +45 -0
- package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
- package/esm2020/user-profile/public_api.mjs +4 -0
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +24 -0
- package/esm2020/user-profile/user-profile.component.mjs +19 -0
- package/esm2020/user-profile/user-profile.module.mjs +44 -0
- package/fesm2015/covalent-core-breadcrumbs.mjs +246 -0
- package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
- package/fesm2015/covalent-core-common.mjs +2281 -0
- package/fesm2015/covalent-core-common.mjs.map +1 -0
- package/fesm2015/covalent-core-dialogs.mjs +639 -0
- package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
- package/fesm2015/covalent-core-dynamic-menu.mjs +128 -0
- package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
- package/fesm2015/covalent-core-file.mjs +613 -0
- package/fesm2015/covalent-core-file.mjs.map +1 -0
- package/fesm2015/covalent-core-json-formatter.mjs +298 -0
- package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
- package/fesm2015/covalent-core-layout.mjs +1024 -0
- package/fesm2015/covalent-core-layout.mjs.map +1 -0
- package/fesm2015/covalent-core-menu.mjs +37 -0
- package/fesm2015/covalent-core-menu.mjs.map +1 -0
- package/fesm2015/covalent-core-message.mjs +284 -0
- package/fesm2015/covalent-core-message.mjs.map +1 -0
- package/fesm2015/covalent-core-search.mjs +428 -0
- package/fesm2015/covalent-core-search.mjs.map +1 -0
- package/fesm2015/covalent-core-side-sheet.mjs +762 -0
- package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
- package/fesm2015/covalent-core-user-profile.mjs +86 -0
- package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
- package/fesm2015/covalent-core.mjs +4 -0
- package/fesm2015/covalent-core.mjs.map +1 -0
- package/fesm2020/covalent-core-breadcrumbs.mjs +246 -0
- package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -0
- package/fesm2020/covalent-core-common.mjs +2274 -0
- package/fesm2020/covalent-core-common.mjs.map +1 -0
- package/fesm2020/covalent-core-dialogs.mjs +634 -0
- package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
- package/fesm2020/covalent-core-dynamic-menu.mjs +128 -0
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
- package/fesm2020/covalent-core-file.mjs +607 -0
- package/fesm2020/covalent-core-file.mjs.map +1 -0
- package/fesm2020/covalent-core-json-formatter.mjs +290 -0
- package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
- package/fesm2020/covalent-core-layout.mjs +1000 -0
- package/fesm2020/covalent-core-layout.mjs.map +1 -0
- package/fesm2020/covalent-core-menu.mjs +37 -0
- package/fesm2020/covalent-core-menu.mjs.map +1 -0
- package/fesm2020/covalent-core-message.mjs +282 -0
- package/fesm2020/covalent-core-message.mjs.map +1 -0
- package/fesm2020/covalent-core-search.mjs +425 -0
- package/fesm2020/covalent-core-search.mjs.map +1 -0
- package/fesm2020/covalent-core-side-sheet.mjs +757 -0
- package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
- package/fesm2020/covalent-core-user-profile.mjs +86 -0
- package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
- package/fesm2020/covalent-core.mjs +4 -0
- package/fesm2020/covalent-core.mjs.map +1 -0
- package/file/_file-theme.scss +27 -0
- package/file/covalent-core-file.d.ts +5 -0
- package/file/directives/file-drop.directive.d.ts +61 -0
- package/file/directives/file-select.directive.d.ts +33 -0
- package/file/file-input/file-input.component.d.ts +61 -0
- package/file/file-upload/file-upload.component.d.ts +91 -0
- package/file/file.module.d.ts +15 -0
- package/file/package.json +10 -0
- package/file/public_api.d.ts +6 -0
- package/file/services/file.service.d.ts +34 -0
- package/file/src/file-input/README.md +147 -0
- package/file/src/file-upload/README.md +136 -0
- package/json-formatter/README.md +50 -0
- package/json-formatter/_json-formatter-theme.scss +72 -0
- package/json-formatter/collapse.animation.d.ts +24 -0
- package/json-formatter/covalent-core-json-formatter.d.ts +5 -0
- package/json-formatter/json-formatter.component.d.ts +78 -0
- package/json-formatter/json-formatter.module.d.ts +10 -0
- package/json-formatter/package.json +10 -0
- package/json-formatter/public_api.d.ts +2 -0
- package/layout/README.md +138 -0
- package/layout/_layout-theme.scss +128 -0
- package/layout/covalent-core-layout.d.ts +5 -0
- package/layout/layout-card-over/layout-card-over.component.d.ts +31 -0
- package/layout/layout-footer/layout-footer.component.d.ts +17 -0
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +66 -0
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +25 -0
- package/layout/layout-nav/layout-nav.component.d.ts +45 -0
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +104 -0
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +25 -0
- package/layout/layout-toggle.class.d.ts +40 -0
- package/layout/layout.component.d.ts +66 -0
- package/layout/layout.directives.d.ts +25 -0
- package/layout/layout.module.d.ts +25 -0
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +120 -0
- package/layout/package.json +10 -0
- package/layout/public_api.d.ts +12 -0
- package/layout/src/layout-card-over/README.md +43 -0
- package/layout/src/layout-manage-list/README.md +80 -0
- package/layout/src/layout-nav/README.md +50 -0
- package/layout/src/layout-nav-list/README.md +105 -0
- package/menu/covalent-core-menu.d.ts +5 -0
- package/menu/menu.component.d.ts +5 -0
- package/menu/menu.module.d.ts +10 -0
- package/menu/package.json +10 -0
- package/menu/public_api.d.ts +2 -0
- package/message/README.md +67 -0
- package/message/_message-theme.scss +44 -0
- package/message/collapse.animation.d.ts +24 -0
- package/message/covalent-core-message.d.ts +5 -0
- package/message/message.component.d.ts +101 -0
- package/message/message.module.d.ts +9 -0
- package/message/package.json +10 -0
- package/message/public_api.d.ts +2 -0
- package/package.json +146 -0
- package/public_api.d.ts +1 -0
- package/search/README.md +132 -0
- package/search/covalent-core-search.d.ts +5 -0
- package/search/package.json +10 -0
- package/search/public_api.d.ts +3 -0
- package/search/search-box/search-box.component.d.ts +88 -0
- package/search/search-input/search-input.component.d.ts +82 -0
- package/search/search.module.d.ts +13 -0
- package/search/src/search-box/README.md +73 -0
- package/search/src/search-input/README.md +74 -0
- package/side-sheet/README.md +64 -0
- package/side-sheet/_side-sheet.theme.scss +8 -0
- package/side-sheet/covalent-core-side-sheet.d.ts +5 -0
- package/side-sheet/package.json +10 -0
- package/side-sheet/public_api.d.ts +5 -0
- package/side-sheet/side-sheet-container.d.ts +110 -0
- package/side-sheet/side-sheet-ref.d.ts +10 -0
- package/side-sheet/side-sheet.animation.d.ts +4 -0
- package/side-sheet/side-sheet.config.d.ts +3 -0
- package/side-sheet/side-sheet.content-directives.d.ts +67 -0
- package/side-sheet/side-sheet.d.ts +66 -0
- package/side-sheet/side-sheet.module.d.ts +11 -0
- package/theming/_all-theme.scss +24 -0
- package/typography/_all-typography.scss +39 -0
- package/user-profile/README.md +60 -0
- package/user-profile/_user-profile-theme.scss +27 -0
- package/user-profile/covalent-core-user-profile.d.ts +5 -0
- package/user-profile/package.json +10 -0
- package/user-profile/public_api.d.ts +3 -0
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +8 -0
- package/user-profile/user-profile.component.d.ts +7 -0
- package/user-profile/user-profile.module.d.ts +14 -0
@@ -0,0 +1,128 @@
|
|
1
|
+
@import '../common/styles/elevation';
|
2
|
+
@import '../common/styles/theme-functions';
|
3
|
+
@import '../common/styles/typography-functions';
|
4
|
+
|
5
|
+
@mixin td-layout-typography($config) {
|
6
|
+
td-navigation-drawer {
|
7
|
+
.td-navigation-drawer-title {
|
8
|
+
font: {
|
9
|
+
family: td-font-family($config);
|
10
|
+
size: td-font-size($config, subheading-2);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.td-navigation-drawer-name {
|
15
|
+
font: {
|
16
|
+
family: td-font-family($config);
|
17
|
+
size: td-font-size($config, body-1);
|
18
|
+
weight: 500;
|
19
|
+
}
|
20
|
+
|
21
|
+
line-height: td-line-height($config, body-1);
|
22
|
+
}
|
23
|
+
|
24
|
+
.td-navigation-drawer-menu-toggle {
|
25
|
+
font: {
|
26
|
+
family: td-font-family($config);
|
27
|
+
size: td-font-size($config, body-2);
|
28
|
+
weight: 400;
|
29
|
+
}
|
30
|
+
|
31
|
+
line-height: td-line-height($config, body-2);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin td-layout-theme($theme) {
|
37
|
+
$primary: map-get($theme, primary);
|
38
|
+
$accent: map-get($theme, accent);
|
39
|
+
$warn: map-get($theme, warn);
|
40
|
+
$background: map-get($theme, background);
|
41
|
+
$foreground: map-get($theme, foreground);
|
42
|
+
|
43
|
+
.mat-drawer-container {
|
44
|
+
background-color: mat-color($background, status-bar);
|
45
|
+
}
|
46
|
+
|
47
|
+
[mat-icon-button].td-layout-menu-button {
|
48
|
+
margin-left: 0;
|
49
|
+
|
50
|
+
::ng-deep [dir='rtl'] & {
|
51
|
+
margin-right: 0;
|
52
|
+
margin-left: 6px;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
td-layout-nav,
|
57
|
+
td-layout-nav-list,
|
58
|
+
td-layout-manage-list,
|
59
|
+
td-layout-card-over,
|
60
|
+
td-navigation-drawer,
|
61
|
+
td-layout {
|
62
|
+
mat-toolbar {
|
63
|
+
@include mat-elevation(1);
|
64
|
+
|
65
|
+
z-index: 1;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
body[dense] td-layout-nav,
|
70
|
+
body[dense] td-layout-nav-list,
|
71
|
+
body[dense] td-layout-card-over,
|
72
|
+
td-layout-nav[dense],
|
73
|
+
td-layout-nav-list[dense],
|
74
|
+
td-layout-card-over[dense] {
|
75
|
+
mat-toolbar.td-layout-toolbar {
|
76
|
+
&.mat-toolbar-row,
|
77
|
+
&.mat-toolbar-single-row {
|
78
|
+
height: 48px;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
body[dense] td-layout-card-over,
|
84
|
+
td-layout-card-over[dense] {
|
85
|
+
.td-layout-card-over-wrapper {
|
86
|
+
margin: -48px;
|
87
|
+
margin-left: 0;
|
88
|
+
margin-right: 0;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.mat-drawer-side.td-layout-sidenav {
|
93
|
+
@include mat-elevation(2);
|
94
|
+
}
|
95
|
+
|
96
|
+
.td-layout-footer {
|
97
|
+
background: mat-color($background, app-bar);
|
98
|
+
color: mat-color($foreground, text);
|
99
|
+
@include mat-elevation(2);
|
100
|
+
|
101
|
+
&.mat-primary {
|
102
|
+
background: mat-color($primary);
|
103
|
+
|
104
|
+
&,
|
105
|
+
mat-icon {
|
106
|
+
color: mat-color($primary, default-contrast);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
&.mat-accent {
|
111
|
+
background: mat-color($accent);
|
112
|
+
|
113
|
+
&,
|
114
|
+
mat-icon {
|
115
|
+
color: mat-color($accent, default-contrast);
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
&.mat-warn {
|
120
|
+
background: mat-color($warn);
|
121
|
+
|
122
|
+
&,
|
123
|
+
mat-icon {
|
124
|
+
color: mat-color($warn, default-contrast);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class TdLayoutCardOverComponent {
|
3
|
+
/**
|
4
|
+
* cardTitle?: string
|
5
|
+
*
|
6
|
+
* Title set in card.
|
7
|
+
*/
|
8
|
+
cardTitle?: string;
|
9
|
+
/**
|
10
|
+
* cardSubtitle?: string
|
11
|
+
*
|
12
|
+
* Subtitle set in card.
|
13
|
+
*/
|
14
|
+
cardSubtitle?: string;
|
15
|
+
/**
|
16
|
+
* cardWidth?: string
|
17
|
+
*
|
18
|
+
* Card flex width in %.
|
19
|
+
* Defaults to 70%.
|
20
|
+
*/
|
21
|
+
cardWidth?: number | undefined;
|
22
|
+
/**
|
23
|
+
* color?: 'accent' | 'primary' | 'warn'
|
24
|
+
*
|
25
|
+
* toolbar color option: primary | accent | warn.
|
26
|
+
* If [color] is not set, primary is used.
|
27
|
+
*/
|
28
|
+
color: 'accent' | 'primary' | 'warn';
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutCardOverComponent, never>;
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutCardOverComponent, "td-layout-card-over", never, { "cardTitle": "cardTitle"; "cardSubtitle": "cardSubtitle"; "cardWidth": "cardWidth"; "color": "color"; }, {}, never, ["*", "[td-after-card]"]>;
|
31
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Renderer2, ElementRef } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class TdLayoutFooterComponent {
|
4
|
+
private _renderer;
|
5
|
+
private _elementRef;
|
6
|
+
private _color?;
|
7
|
+
/**
|
8
|
+
* color?: 'accent' | 'primary' | 'warn'
|
9
|
+
*
|
10
|
+
* Optional color option: primary | accent | warn.
|
11
|
+
*/
|
12
|
+
set color(color: 'primary' | 'accent' | 'warn' | undefined);
|
13
|
+
get color(): 'primary' | 'accent' | 'warn' | undefined;
|
14
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutFooterComponent, never>;
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutFooterComponent, "td-layout-footer,td-layout-footer-inner", never, { "color": "color"; }, {}, never, ["*"]>;
|
17
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { MatSidenav, MatDrawerToggleResult } from '@angular/material/sidenav';
|
2
|
+
import { ILayoutTogglable } from '../layout-toggle.class';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class TdLayoutManageListComponent implements ILayoutTogglable {
|
5
|
+
sidenav: MatSidenav;
|
6
|
+
/**
|
7
|
+
* mode?: 'side', 'push' or 'over'
|
8
|
+
*
|
9
|
+
* The mode or styling of the sidenav.
|
10
|
+
* Defaults to "side".
|
11
|
+
* See "MatSidenav" documentation for more info.
|
12
|
+
*
|
13
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
14
|
+
*/
|
15
|
+
mode: 'side' | 'push' | 'over';
|
16
|
+
/**
|
17
|
+
* opened?: boolean
|
18
|
+
*
|
19
|
+
* Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
|
20
|
+
* Defaults to "true".
|
21
|
+
*
|
22
|
+
* See "MatSidenav" documentation for more info.
|
23
|
+
*
|
24
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
25
|
+
*/
|
26
|
+
opened: boolean;
|
27
|
+
/**
|
28
|
+
* sidenavWidth?: string
|
29
|
+
*
|
30
|
+
* Sets the "width" of the sidenav in either "px" or "%"
|
31
|
+
* Defaults to "257px".
|
32
|
+
*
|
33
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
34
|
+
*/
|
35
|
+
sidenavWidth: string;
|
36
|
+
/**
|
37
|
+
* containerAutosize?: boolean
|
38
|
+
*
|
39
|
+
* Sets "autosize" of the sidenav-container.
|
40
|
+
* Defaults to "false".
|
41
|
+
*
|
42
|
+
* See documentation for more info and potential performance risks.
|
43
|
+
*
|
44
|
+
* https://github.com/angular/material2/blob/main/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
|
45
|
+
*/
|
46
|
+
containerAutosize: boolean;
|
47
|
+
/**
|
48
|
+
* Checks if `ESC` should close the sidenav
|
49
|
+
* Should only close it for `push` and `over` modes
|
50
|
+
*/
|
51
|
+
get disableClose(): boolean;
|
52
|
+
/**
|
53
|
+
* Proxy toggle method to access sidenav from outside (from td-layout template).
|
54
|
+
*/
|
55
|
+
toggle(): Promise<MatDrawerToggleResult>;
|
56
|
+
/**
|
57
|
+
* Proxy open method to access sidenav from outside (from td-layout template).
|
58
|
+
*/
|
59
|
+
open(): Promise<MatDrawerToggleResult>;
|
60
|
+
/**
|
61
|
+
* Proxy close method to access sidenav from outside (from td-layout template).
|
62
|
+
*/
|
63
|
+
close(): Promise<MatDrawerToggleResult>;
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListComponent, never>;
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutManageListComponent, "td-layout-manage-list", never, { "mode": "mode"; "opened": "opened"; "sidenavWidth": "sidenavWidth"; "containerAutosize": "containerAutosize"; }, {}, never, ["mat-toolbar[td-sidenav-content]", "[td-sidenav-content]", "mat-toolbar", "*", "td-layout-footer-inner"]>;
|
66
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Renderer2, ElementRef } from '@angular/core';
|
2
|
+
import { TdLayoutManageListComponent } from './layout-manage-list.component';
|
3
|
+
import { BaseLayoutToggleDirective } from '../layout-toggle.class';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class TdLayoutManageListToggleDirective extends BaseLayoutToggleDirective {
|
6
|
+
set tdLayoutManageListToggle(tdLayoutManageListToggle: boolean | string);
|
7
|
+
constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
|
8
|
+
onClick(): void;
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListToggleDirective, [{ optional: true; }, null, null]>;
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListToggleDirective, "[tdLayoutManageListToggle]", never, { "tdLayoutManageListToggle": "tdLayoutManageListToggle"; }, {}, never>;
|
11
|
+
}
|
12
|
+
export declare class TdLayoutManageListCloseDirective extends BaseLayoutToggleDirective {
|
13
|
+
set tdLayoutManageListClose(tdLayoutManageListClose: boolean);
|
14
|
+
constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
|
15
|
+
onClick(): void;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListCloseDirective, [{ optional: true; }, null, null]>;
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListCloseDirective, "[tdLayoutManageListClose]", never, { "tdLayoutManageListClose": "tdLayoutManageListClose"; }, {}, never>;
|
18
|
+
}
|
19
|
+
export declare class TdLayoutManageListOpenDirective extends BaseLayoutToggleDirective {
|
20
|
+
set tdLayoutManageListOpen(tdLayoutManageListOpen: boolean | string);
|
21
|
+
constructor(layout: TdLayoutManageListComponent, renderer: Renderer2, elementRef: ElementRef);
|
22
|
+
onClick(): void;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutManageListOpenDirective, [{ optional: true; }, null, null]>;
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutManageListOpenDirective, "[tdLayoutManageListOpen]", never, { "tdLayoutManageListOpen": "tdLayoutManageListOpen"; }, {}, never>;
|
25
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { Router } from '@angular/router';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class TdLayoutNavComponent {
|
4
|
+
private _router;
|
5
|
+
/**
|
6
|
+
* toolbarTitle?: string
|
7
|
+
*
|
8
|
+
* Title set in toolbar.
|
9
|
+
*/
|
10
|
+
toolbarTitle?: string;
|
11
|
+
/**
|
12
|
+
* icon?: string
|
13
|
+
*
|
14
|
+
* icon name to be displayed before the title
|
15
|
+
*/
|
16
|
+
icon?: string;
|
17
|
+
/**
|
18
|
+
* logo?: string
|
19
|
+
*
|
20
|
+
* logo icon name to be displayed before the title.
|
21
|
+
* If [icon] is set, then this will not be shown.
|
22
|
+
*/
|
23
|
+
logo?: string;
|
24
|
+
/**
|
25
|
+
* color?: 'accent' | 'primary' | 'warn'
|
26
|
+
*
|
27
|
+
* toolbar color option: primary | accent | warn.
|
28
|
+
* If [color] is not set, primary is used.
|
29
|
+
*/
|
30
|
+
color?: 'accent' | 'primary' | 'warn';
|
31
|
+
/**
|
32
|
+
* navigationRoute?: string
|
33
|
+
*
|
34
|
+
* option to set the combined route for the icon, logo, and toolbarTitle.
|
35
|
+
*/
|
36
|
+
navigationRoute?: string;
|
37
|
+
/**
|
38
|
+
* Checks if router was injected.
|
39
|
+
*/
|
40
|
+
get routerEnabled(): boolean;
|
41
|
+
constructor(_router: Router);
|
42
|
+
handleNavigationClick(): void;
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavComponent, [{ optional: true; }]>;
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavComponent, "td-layout-nav", never, { "toolbarTitle": "toolbarTitle"; "icon": "icon"; "logo": "logo"; "color": "color"; "navigationRoute": "navigationRoute"; }, {}, never, ["[td-menu-button]", "[td-toolbar-content]", "*", "td-layout-footer"]>;
|
45
|
+
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { Router } from '@angular/router';
|
2
|
+
import { MatSidenav, MatDrawerToggleResult } from '@angular/material/sidenav';
|
3
|
+
import { ILayoutTogglable } from '../layout-toggle.class';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class TdLayoutNavListComponent implements ILayoutTogglable {
|
6
|
+
private _router;
|
7
|
+
sidenav: MatSidenav;
|
8
|
+
/**
|
9
|
+
* toolbarTitle?: string
|
10
|
+
*
|
11
|
+
* Title set in toolbar.
|
12
|
+
*/
|
13
|
+
toolbarTitle?: string;
|
14
|
+
/**
|
15
|
+
* icon?: string
|
16
|
+
* icon name to be displayed before the title
|
17
|
+
*/
|
18
|
+
icon?: string;
|
19
|
+
/**
|
20
|
+
* logo?: string
|
21
|
+
*
|
22
|
+
* logo icon name to be displayed before the title.
|
23
|
+
* If [icon] is set, then this will not be shown.
|
24
|
+
*/
|
25
|
+
logo?: string;
|
26
|
+
/**
|
27
|
+
* color?: 'accent' | 'primary' | 'warn'
|
28
|
+
*
|
29
|
+
* toolbar color option: primary | accent | warn.
|
30
|
+
* If [color] is not set, primary is used.
|
31
|
+
*/
|
32
|
+
color?: 'accent' | 'primary' | 'warn';
|
33
|
+
/**
|
34
|
+
* mode?: 'side', 'push' or 'over'
|
35
|
+
*
|
36
|
+
* The mode or styling of the sidenav.
|
37
|
+
* Defaults to "side".
|
38
|
+
* See "MatSidenav" documentation for more info.
|
39
|
+
*
|
40
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
41
|
+
*/
|
42
|
+
mode: 'side' | 'push' | 'over';
|
43
|
+
/**
|
44
|
+
* opened?: boolean
|
45
|
+
* Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
|
46
|
+
* Defaults to "true".
|
47
|
+
*
|
48
|
+
* See "MatSidenav" documentation for more info.
|
49
|
+
*
|
50
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
51
|
+
*/
|
52
|
+
opened: boolean;
|
53
|
+
/**
|
54
|
+
* sidenavWidth?: string
|
55
|
+
*
|
56
|
+
* Sets the "width" of the sidenav in either "px" or "%"
|
57
|
+
* Defaults to "350px".
|
58
|
+
*
|
59
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
60
|
+
*/
|
61
|
+
sidenavWidth: string;
|
62
|
+
/**
|
63
|
+
* containerAutosize?: boolean
|
64
|
+
*
|
65
|
+
* Sets "autosize" of the sidenav-container.
|
66
|
+
* Defaults to "false".
|
67
|
+
*
|
68
|
+
* See documentation for more info and potential performance risks.
|
69
|
+
*
|
70
|
+
* https://github.com/angular/material2/blob/main/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
|
71
|
+
*/
|
72
|
+
containerAutosize: boolean;
|
73
|
+
/**
|
74
|
+
* navigationRoute?: string
|
75
|
+
*
|
76
|
+
* option to set the combined route for the icon, logo, and toolbarTitle.
|
77
|
+
*/
|
78
|
+
navigationRoute?: string;
|
79
|
+
/**
|
80
|
+
* Checks if `ESC` should close the sidenav
|
81
|
+
* Should only close it for `push` and `over` modes
|
82
|
+
*/
|
83
|
+
get disableClose(): boolean;
|
84
|
+
/**
|
85
|
+
* Checks if router was injected.
|
86
|
+
*/
|
87
|
+
get routerEnabled(): boolean;
|
88
|
+
constructor(_router: Router);
|
89
|
+
handleNavigationClick(): void;
|
90
|
+
/**
|
91
|
+
* Proxy toggle method to access sidenav from outside (from td-layout template).
|
92
|
+
*/
|
93
|
+
toggle(): Promise<MatDrawerToggleResult>;
|
94
|
+
/**
|
95
|
+
* Proxy open method to access sidenav from outside (from td-layout template).
|
96
|
+
*/
|
97
|
+
open(): Promise<MatDrawerToggleResult>;
|
98
|
+
/**
|
99
|
+
* Proxy close method to access sidenav from outside (from td-layout template).
|
100
|
+
*/
|
101
|
+
close(): Promise<MatDrawerToggleResult>;
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListComponent, [{ optional: true; }]>;
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutNavListComponent, "td-layout-nav-list", never, { "toolbarTitle": "toolbarTitle"; "icon": "icon"; "logo": "logo"; "color": "color"; "mode": "mode"; "opened": "opened"; "sidenavWidth": "sidenavWidth"; "containerAutosize": "containerAutosize"; "navigationRoute": "navigationRoute"; }, {}, never, ["[td-menu-button]", "[td-sidenav-toolbar-content]", "[td-sidenav-content]", "[td-toolbar-content]", "*", "td-layout-footer-inner", "td-layout-footer"]>;
|
104
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Renderer2, ElementRef } from '@angular/core';
|
2
|
+
import { TdLayoutNavListComponent } from './layout-nav-list.component';
|
3
|
+
import { BaseLayoutToggleDirective } from '../layout-toggle.class';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class TdLayoutNavListToggleDirective extends BaseLayoutToggleDirective {
|
6
|
+
set tdLayoutNavListToggle(tdLayoutNavListToggle: boolean | string);
|
7
|
+
constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
|
8
|
+
onClick(): void;
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListToggleDirective, [{ optional: true; }, null, null]>;
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListToggleDirective, "[tdLayoutNavListToggle]", never, { "tdLayoutNavListToggle": "tdLayoutNavListToggle"; }, {}, never>;
|
11
|
+
}
|
12
|
+
export declare class TdLayoutNavListCloseDirective extends BaseLayoutToggleDirective {
|
13
|
+
set tdLayoutNavListClose(tdLayoutNavListClose: boolean);
|
14
|
+
constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
|
15
|
+
onClick(): void;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListCloseDirective, [{ optional: true; }, null, null]>;
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListCloseDirective, "[tdLayoutNavListClose]", never, { "tdLayoutNavListClose": "tdLayoutNavListClose"; }, {}, never>;
|
18
|
+
}
|
19
|
+
export declare class TdLayoutNavListOpenDirective extends BaseLayoutToggleDirective {
|
20
|
+
set tdLayoutNavListOpen(tdLayoutNavListOpen: boolean | string);
|
21
|
+
constructor(layout: TdLayoutNavListComponent, renderer: Renderer2, elementRef: ElementRef);
|
22
|
+
onClick(): void;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutNavListOpenDirective, [{ optional: true; }, null, null]>;
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutNavListOpenDirective, "[tdLayoutNavListOpen]", never, { "tdLayoutNavListOpen": "tdLayoutNavListOpen"; }, {}, never>;
|
25
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { Renderer2, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
|
2
|
+
import { MatSidenav, MatDrawerToggleResult } from '@angular/material/sidenav';
|
3
|
+
import { ICanDisable } from '@covalent/core/common';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export interface ILayoutTogglable {
|
6
|
+
opened: boolean;
|
7
|
+
sidenav: MatSidenav;
|
8
|
+
toggle(): Promise<MatDrawerToggleResult>;
|
9
|
+
open(): Promise<MatDrawerToggleResult>;
|
10
|
+
close(): Promise<MatDrawerToggleResult>;
|
11
|
+
}
|
12
|
+
export declare class LayoutToggleBase {
|
13
|
+
}
|
14
|
+
export declare const _TdLayoutToggleMixinBase: (new (...args: any[]) => ICanDisable) & typeof LayoutToggleBase;
|
15
|
+
export declare abstract class BaseLayoutToggleDirective extends _TdLayoutToggleMixinBase implements AfterViewInit, OnDestroy, ICanDisable {
|
16
|
+
protected _layout: ILayoutTogglable;
|
17
|
+
private _renderer;
|
18
|
+
private _elementRef;
|
19
|
+
private _toggleSubs?;
|
20
|
+
private _initialized;
|
21
|
+
private _hideWhenOpened;
|
22
|
+
/**
|
23
|
+
* hideWhenOpened?: boolean
|
24
|
+
* When this is set to true, the host will be hidden when
|
25
|
+
* the sidenav is opened.
|
26
|
+
*/
|
27
|
+
set hideWhenOpened(hideWhenOpened: boolean);
|
28
|
+
constructor(_layout: ILayoutTogglable, _renderer: Renderer2, _elementRef: ElementRef);
|
29
|
+
ngAfterViewInit(): void;
|
30
|
+
ngOnDestroy(): void;
|
31
|
+
/**
|
32
|
+
* Listens to host click event to trigger the layout toggle
|
33
|
+
*/
|
34
|
+
clickListener(event: Event): void;
|
35
|
+
abstract onClick(): void;
|
36
|
+
private _toggleVisibility;
|
37
|
+
private _noLayoutMessage;
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseLayoutToggleDirective, never>;
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseLayoutToggleDirective, never, never, { "hideWhenOpened": "hideWhenOpened"; }, {}, never>;
|
40
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { MatSidenav, MatDrawerToggleResult } from '@angular/material/sidenav';
|
2
|
+
import { ILayoutTogglable } from './layout-toggle.class';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class TdLayoutComponent implements ILayoutTogglable {
|
5
|
+
sidenav: MatSidenav;
|
6
|
+
/**
|
7
|
+
* mode?: 'side', 'push' or 'over'
|
8
|
+
*
|
9
|
+
* The mode or styling of the sidenav.
|
10
|
+
* Defaults to "over".
|
11
|
+
* See "MatSidenav" documentation for more info.
|
12
|
+
*
|
13
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
14
|
+
*/
|
15
|
+
mode: 'side' | 'push' | 'over';
|
16
|
+
/**
|
17
|
+
* opened?: boolean
|
18
|
+
*
|
19
|
+
* Whether or not the sidenav is opened. Use this binding to open/close the sidenav.
|
20
|
+
* Defaults to "false".
|
21
|
+
*
|
22
|
+
* See "MatSidenav" documentation for more info.
|
23
|
+
*
|
24
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
25
|
+
*/
|
26
|
+
opened: boolean;
|
27
|
+
/**
|
28
|
+
* sidenavWidth?: string
|
29
|
+
*
|
30
|
+
* Sets the "width" of the sidenav in either "px" or "%"
|
31
|
+
* Defaults to "320px".
|
32
|
+
*
|
33
|
+
* https://github.com/angular/material2/tree/main/src/lib/sidenav
|
34
|
+
*/
|
35
|
+
sidenavWidth: string;
|
36
|
+
/**
|
37
|
+
* containerAutosize?: boolean
|
38
|
+
*
|
39
|
+
* Sets "autosize" of the sidenav-container.
|
40
|
+
* Defaults to "false".
|
41
|
+
*
|
42
|
+
* See documentation for more info and potential performance risks.
|
43
|
+
*
|
44
|
+
* https://github.com/angular/material2/blob/main/src/lib/sidenav/sidenav.md#resizing-an-open-sidenav
|
45
|
+
*/
|
46
|
+
containerAutosize: boolean;
|
47
|
+
/**
|
48
|
+
* Checks if `ESC` should close the sidenav
|
49
|
+
* Should only close it for `push` and `over` modes
|
50
|
+
*/
|
51
|
+
get disableClose(): boolean;
|
52
|
+
/**
|
53
|
+
* Proxy toggle method to access sidenav from outside (from td-layout template).
|
54
|
+
*/
|
55
|
+
toggle(): Promise<MatDrawerToggleResult>;
|
56
|
+
/**
|
57
|
+
* Proxy open method to access sidenav from outside (from td-layout template).
|
58
|
+
*/
|
59
|
+
open(): Promise<MatDrawerToggleResult>;
|
60
|
+
/**
|
61
|
+
* Proxy close method to access sidenav from outside (from td-layout template).
|
62
|
+
*/
|
63
|
+
close(): Promise<MatDrawerToggleResult>;
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutComponent, never>;
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdLayoutComponent, "td-layout", never, { "mode": "mode"; "opened": "opened"; "sidenavWidth": "sidenavWidth"; "containerAutosize": "containerAutosize"; }, {}, never, ["td-navigation-drawer", "[td-sidenav-content]", "*"]>;
|
66
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Renderer2, ElementRef } from '@angular/core';
|
2
|
+
import { TdLayoutComponent } from './layout.component';
|
3
|
+
import { BaseLayoutToggleDirective } from './layout-toggle.class';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class TdLayoutToggleDirective extends BaseLayoutToggleDirective {
|
6
|
+
set tdLayoutToggle(tdLayoutToggle: boolean | string);
|
7
|
+
constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
|
8
|
+
onClick(): void;
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutToggleDirective, [{ optional: true; }, null, null]>;
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutToggleDirective, "[tdLayoutToggle]", never, { "tdLayoutToggle": "tdLayoutToggle"; }, {}, never>;
|
11
|
+
}
|
12
|
+
export declare class TdLayoutCloseDirective extends BaseLayoutToggleDirective {
|
13
|
+
set tdLayoutClose(tdLayoutClose: boolean | string | undefined);
|
14
|
+
constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
|
15
|
+
onClick(): void;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutCloseDirective, [{ optional: true; }, null, null]>;
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutCloseDirective, "[tdLayoutClose]", never, { "tdLayoutClose": "tdLayoutClose"; }, {}, never>;
|
18
|
+
}
|
19
|
+
export declare class TdLayoutOpenDirective extends BaseLayoutToggleDirective {
|
20
|
+
set tdLayoutClose(tdLayoutOpen: boolean);
|
21
|
+
constructor(layout: TdLayoutComponent, renderer: Renderer2, elementRef: ElementRef);
|
22
|
+
onClick(): void;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdLayoutOpenDirective, [{ optional: true; }, null, null]>;
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdLayoutOpenDirective, "[tdLayoutOpen]", never, { "tdLayoutClose": "tdLayoutOpen"; }, {}, never>;
|
25
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./layout.component";
|
3
|
+
import * as i2 from "./layout.directives";
|
4
|
+
import * as i3 from "./layout-nav/layout-nav.component";
|
5
|
+
import * as i4 from "./layout-nav-list/layout-nav-list.component";
|
6
|
+
import * as i5 from "./layout-nav-list/layout-nav-list.directives";
|
7
|
+
import * as i6 from "./layout-card-over/layout-card-over.component";
|
8
|
+
import * as i7 from "./layout-manage-list/layout-manage-list.component";
|
9
|
+
import * as i8 from "./layout-manage-list/layout-manage-list.directives";
|
10
|
+
import * as i9 from "./layout-footer/layout-footer.component";
|
11
|
+
import * as i10 from "./navigation-drawer/navigation-drawer.component";
|
12
|
+
import * as i11 from "@angular/common";
|
13
|
+
import * as i12 from "@angular/cdk/scrolling";
|
14
|
+
import * as i13 from "@angular/material/sidenav";
|
15
|
+
import * as i14 from "@angular/material/toolbar";
|
16
|
+
import * as i15 from "@angular/material/button";
|
17
|
+
import * as i16 from "@angular/material/icon";
|
18
|
+
import * as i17 from "@angular/material/card";
|
19
|
+
import * as i18 from "@angular/material/divider";
|
20
|
+
import * as i19 from "@covalent/core/menu";
|
21
|
+
export declare class CovalentLayoutModule {
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentLayoutModule, never>;
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentLayoutModule, [typeof i1.TdLayoutComponent, typeof i2.TdLayoutToggleDirective, typeof i2.TdLayoutCloseDirective, typeof i2.TdLayoutOpenDirective, typeof i3.TdLayoutNavComponent, typeof i4.TdLayoutNavListComponent, typeof i5.TdLayoutNavListToggleDirective, typeof i5.TdLayoutNavListCloseDirective, typeof i5.TdLayoutNavListOpenDirective, typeof i6.TdLayoutCardOverComponent, typeof i7.TdLayoutManageListComponent, typeof i8.TdLayoutManageListToggleDirective, typeof i8.TdLayoutManageListCloseDirective, typeof i8.TdLayoutManageListOpenDirective, typeof i9.TdLayoutFooterComponent, typeof i10.TdNavigationDrawerComponent, typeof i10.TdNavigationDrawerMenuDirective, typeof i10.TdNavigationDrawerToolbarDirective], [typeof i11.CommonModule, typeof i12.ScrollingModule, typeof i13.MatSidenavModule, typeof i14.MatToolbarModule, typeof i15.MatButtonModule, typeof i16.MatIconModule, typeof i17.MatCardModule, typeof i18.MatDividerModule, typeof i19.CovalentMenuModule], [typeof i1.TdLayoutComponent, typeof i2.TdLayoutToggleDirective, typeof i2.TdLayoutCloseDirective, typeof i2.TdLayoutOpenDirective, typeof i3.TdLayoutNavComponent, typeof i4.TdLayoutNavListComponent, typeof i5.TdLayoutNavListToggleDirective, typeof i5.TdLayoutNavListCloseDirective, typeof i5.TdLayoutNavListOpenDirective, typeof i6.TdLayoutCardOverComponent, typeof i7.TdLayoutManageListComponent, typeof i8.TdLayoutManageListToggleDirective, typeof i8.TdLayoutManageListCloseDirective, typeof i8.TdLayoutManageListOpenDirective, typeof i9.TdLayoutFooterComponent, typeof i10.TdNavigationDrawerComponent, typeof i10.TdNavigationDrawerMenuDirective, typeof i10.TdNavigationDrawerToolbarDirective]>;
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentLayoutModule>;
|
25
|
+
}
|