@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,120 @@
|
|
1
|
+
import { OnInit, OnDestroy, QueryList } from '@angular/core';
|
2
|
+
import { Router } from '@angular/router';
|
3
|
+
import { SafeStyle, DomSanitizer } from '@angular/platform-browser';
|
4
|
+
import { MatDrawerToggleResult } from '@angular/material/sidenav';
|
5
|
+
import { TdLayoutComponent } from '../layout.component';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class TdNavigationDrawerMenuDirective {
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdNavigationDrawerMenuDirective, never>;
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdNavigationDrawerMenuDirective, "[tdNavigationDrawerMenu]", never, {}, {}, never>;
|
10
|
+
}
|
11
|
+
export declare class TdNavigationDrawerToolbarDirective {
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdNavigationDrawerToolbarDirective, never>;
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TdNavigationDrawerToolbarDirective, "[tdNavigationDrawerToolbar]", never, {}, {}, never>;
|
14
|
+
}
|
15
|
+
export declare class TdNavigationDrawerComponent implements OnInit, OnDestroy {
|
16
|
+
private _layout;
|
17
|
+
private _router;
|
18
|
+
private _sanitize;
|
19
|
+
private _closeSubscription?;
|
20
|
+
private _menuToggled;
|
21
|
+
private _backgroundImage;
|
22
|
+
get menuToggled(): boolean;
|
23
|
+
_drawerMenu: QueryList<TdNavigationDrawerMenuDirective>;
|
24
|
+
_toolbar: QueryList<TdNavigationDrawerToolbarDirective>;
|
25
|
+
/**
|
26
|
+
* Checks if there is a [TdNavigationDrawerMenuDirective] has content.
|
27
|
+
*/
|
28
|
+
get isMenuAvailable(): boolean;
|
29
|
+
/**
|
30
|
+
* Checks if there is a [TdNavigationDrawerToolbarDirective] has content.
|
31
|
+
*/
|
32
|
+
get isCustomToolbar(): boolean;
|
33
|
+
/**
|
34
|
+
* Checks if there is a background image for the toolbar.
|
35
|
+
*/
|
36
|
+
get isBackgroundAvailable(): boolean;
|
37
|
+
/**
|
38
|
+
* sidenavTitle?: string
|
39
|
+
* Title set in sideNav.
|
40
|
+
*/
|
41
|
+
sidenavTitle?: string;
|
42
|
+
/**
|
43
|
+
* icon?: string
|
44
|
+
*
|
45
|
+
* icon name to be displayed before the title
|
46
|
+
*/
|
47
|
+
icon?: string;
|
48
|
+
/**
|
49
|
+
* logo?: string
|
50
|
+
*
|
51
|
+
* logo icon name to be displayed before the title.
|
52
|
+
* If [icon] is set, then this will not be shown.
|
53
|
+
*/
|
54
|
+
logo?: string;
|
55
|
+
/**
|
56
|
+
* avatar?: string
|
57
|
+
*
|
58
|
+
* avatar url to be displayed before the title
|
59
|
+
* If [icon] or [logo] are set, then this will not be shown.
|
60
|
+
*/
|
61
|
+
avatar?: string;
|
62
|
+
/**
|
63
|
+
* color?: 'accent' | 'primary' | 'warn'
|
64
|
+
*
|
65
|
+
* toolbar color option: primary | accent | warn.
|
66
|
+
* If [color] is not set, default is used.
|
67
|
+
*/
|
68
|
+
color?: 'accent' | 'primary' | 'warn';
|
69
|
+
/**
|
70
|
+
* navigationRoute?: string
|
71
|
+
*
|
72
|
+
* option to set the combined route for the icon, logo, and sidenavTitle.
|
73
|
+
*/
|
74
|
+
navigationRoute?: string;
|
75
|
+
/**
|
76
|
+
* backgroundUrl?: SafeResourceUrl
|
77
|
+
*
|
78
|
+
* image to be displayed as the background of the toolbar.
|
79
|
+
* URL used will be sanitized, but it should be always from a trusted source to avoid XSS.
|
80
|
+
*/
|
81
|
+
set backgroundUrl(backgroundUrl: any);
|
82
|
+
get backgroundImage(): SafeStyle | null;
|
83
|
+
/**
|
84
|
+
* name?: string
|
85
|
+
*
|
86
|
+
* string to be displayed as part of the navigation drawer sublabel.
|
87
|
+
* if [email] is not set, then [name] will be the toggle menu text.
|
88
|
+
*/
|
89
|
+
name?: string;
|
90
|
+
/**
|
91
|
+
* email?: string
|
92
|
+
*
|
93
|
+
* string to be displayed as part of the navigation drawer sublabel in the [toggle] menu text.
|
94
|
+
* if [email] and [name] are not set, then the toggle menu is not rendered.
|
95
|
+
*/
|
96
|
+
email?: string;
|
97
|
+
/**
|
98
|
+
* Checks if router was injected.
|
99
|
+
*/
|
100
|
+
get routerEnabled(): boolean;
|
101
|
+
constructor(_layout: TdLayoutComponent, _router: Router, _sanitize: DomSanitizer);
|
102
|
+
ngOnInit(): void;
|
103
|
+
ngOnDestroy(): void;
|
104
|
+
toggleMenu(): void;
|
105
|
+
handleNavigationClick(): void;
|
106
|
+
/**
|
107
|
+
* Proxy toggle method to access sidenav from outside (from td-layout template).
|
108
|
+
*/
|
109
|
+
toggle(): Promise<MatDrawerToggleResult>;
|
110
|
+
/**
|
111
|
+
* Proxy open method to access sidenav from outside (from td-layout template).
|
112
|
+
*/
|
113
|
+
open(): Promise<MatDrawerToggleResult>;
|
114
|
+
/**
|
115
|
+
* Proxy close method to access sidenav from outside (from td-layout template).
|
116
|
+
*/
|
117
|
+
close(): Promise<MatDrawerToggleResult>;
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdNavigationDrawerComponent, [null, { optional: true; }, null]>;
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdNavigationDrawerComponent, "td-navigation-drawer", never, { "sidenavTitle": "sidenavTitle"; "icon": "icon"; "logo": "logo"; "avatar": "avatar"; "color": "color"; "navigationRoute": "navigationRoute"; "backgroundUrl": "backgroundUrl"; "name": "name"; "email": "email"; }, {}, ["_drawerMenu", "_toolbar"], ["[td-navigation-drawer-toolbar]", "*", "[td-navigation-drawer-menu]"]>;
|
120
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"module": "../fesm2015/covalent-core-layout.mjs",
|
3
|
+
"es2020": "../fesm2020/covalent-core-layout.mjs",
|
4
|
+
"esm2020": "../esm2020/layout/covalent-core-layout.mjs",
|
5
|
+
"fesm2020": "../fesm2020/covalent-core-layout.mjs",
|
6
|
+
"fesm2015": "../fesm2015/covalent-core-layout.mjs",
|
7
|
+
"typings": "covalent-core-layout.d.ts",
|
8
|
+
"sideEffects": false,
|
9
|
+
"name": "@covalent/core/layout"
|
10
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export * from './layout.module';
|
2
|
+
export * from './layout.component';
|
3
|
+
export * from './layout.directives';
|
4
|
+
export * from './layout-toggle.class';
|
5
|
+
export * from './layout-card-over/layout-card-over.component';
|
6
|
+
export * from './layout-footer/layout-footer.component';
|
7
|
+
export * from './layout-manage-list/layout-manage-list.component';
|
8
|
+
export * from './layout-manage-list/layout-manage-list.directives';
|
9
|
+
export * from './layout-nav/layout-nav.component';
|
10
|
+
export * from './layout-nav-list/layout-nav-list.component';
|
11
|
+
export * from './layout-nav-list/layout-nav-list.directives';
|
12
|
+
export * from './navigation-drawer/navigation-drawer.component';
|
@@ -0,0 +1,43 @@
|
|
1
|
+
## TdLayoutCardOverComponent: td-layout-card-over
|
2
|
+
|
3
|
+
`<td-layout-card-over>` is a layout component which lets you customize a `card over` view.
|
4
|
+
|
5
|
+
## API Summary
|
6
|
+
|
7
|
+
#### Inputs
|
8
|
+
|
9
|
+
- cardTitle: string
|
10
|
+
- Title set in card.
|
11
|
+
- cardSubtitle: string
|
12
|
+
- Subtitle set in card.
|
13
|
+
- cardWidth: string
|
14
|
+
- Card flex width in %.
|
15
|
+
- Defaults to 70.
|
16
|
+
- color: string
|
17
|
+
- Optional toolbar color.
|
18
|
+
- Defaults to primary.
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
`[td-after-card]` is used to include content after the main card over content.
|
23
|
+
|
24
|
+
`td-layout-footer` is used to include items in the footer.
|
25
|
+
|
26
|
+
Example for Card Over Layout / Nav Layout combo:
|
27
|
+
|
28
|
+
```html
|
29
|
+
<td-layout-nav toolbarTitle="title" logo="logo" icon="icon" color="primary">
|
30
|
+
<td-layout-card-over
|
31
|
+
cardTitle="title"
|
32
|
+
cardSubtitle="subtitle"
|
33
|
+
cardWidth="widthIn%"
|
34
|
+
color="primary"
|
35
|
+
>
|
36
|
+
.. main content
|
37
|
+
<div td-after-card>.. content after card</div>
|
38
|
+
</td-layout-card-over>
|
39
|
+
<td-layout-footer color="primary">
|
40
|
+
// color is optional ... main footer content
|
41
|
+
</td-layout-footer>
|
42
|
+
</td-layout-nav>
|
43
|
+
```
|
@@ -0,0 +1,80 @@
|
|
1
|
+
## TdLayoutManageListComponent: td-layout-manage-list
|
2
|
+
|
3
|
+
`<td-layout-manage-list>` is a layout component which lets you customize a `management` view with toolbar items, item selections and footers.
|
4
|
+
|
5
|
+
## API Summary
|
6
|
+
|
7
|
+
#### Inputs
|
8
|
+
|
9
|
+
- mode: 'over' | 'side' | 'push'
|
10
|
+
- The mode or styling of the sidenav. Defaults to 'side'.
|
11
|
+
- opened: boolean
|
12
|
+
- Whether or not the sidenav is opened.
|
13
|
+
- Use this binding to open/close the sidenav.
|
14
|
+
- Defaults to 'true'.
|
15
|
+
- sidenavWidth: string
|
16
|
+
- Sets the 'width' of the sidenav in either 'px' or '%'.
|
17
|
+
- Defaults to '257px'.
|
18
|
+
- containerAutosize: boolean
|
19
|
+
- Sets 'autosize' of the sidenav-container.
|
20
|
+
- Defaults to 'false'.
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
To toggle/close/open the manage list sidenav from child layouts/components, you can use the `[tdLayoutManageListToggle]`, `[tdLayoutManageListClose]` or `[tdLayoutManageListOpen]` directives on any element and its click event will trigger the sidenav action.
|
25
|
+
|
26
|
+
Example:
|
27
|
+
|
28
|
+
```html
|
29
|
+
<button
|
30
|
+
mat-icon-button
|
31
|
+
[tdLayoutManageListToggle]="true"
|
32
|
+
[hideWhenOpened]="true"
|
33
|
+
>
|
34
|
+
// or tdLayoutManageListOpen / tdLayoutManageListClose
|
35
|
+
<mat-icon>menu</mat-icon>
|
36
|
+
</button>
|
37
|
+
```
|
38
|
+
|
39
|
+
To disable the sidenav action, just set the input to false.
|
40
|
+
|
41
|
+
```html
|
42
|
+
<button mat-icon-button [tdLayoutManageListToggle]="false">
|
43
|
+
<mat-icon>menu</mat-icon>
|
44
|
+
</button>
|
45
|
+
```
|
46
|
+
|
47
|
+
`[td-sidenav-content]` is used to include items in the left side list.
|
48
|
+
|
49
|
+
`[td-toolbar-content]` is used to include items in the toolbar.
|
50
|
+
|
51
|
+
`td-layout-footer-inner` is used to include items in the inner footer.
|
52
|
+
|
53
|
+
`[tdLayoutManageListToggle]` is used to add the sidenav toggle behavior to any clickable element.
|
54
|
+
|
55
|
+
`[tdLayoutManageListClose]` is used to add the sidenav close behavior to any clickable element.
|
56
|
+
|
57
|
+
`[tdLayoutManageListOpen]` is used to add the sidenav open behavior to any clickable element.
|
58
|
+
|
59
|
+
Example for Manage List Layout / Nav Layout combo:
|
60
|
+
|
61
|
+
```html
|
62
|
+
<td-layout-nav sidenavTitle="title" logo="logo" icon="icon" color="primary">
|
63
|
+
<div td-toolbar-content>.. main toolbar content</div>
|
64
|
+
<td-layout-manage-list opened="true" mode="side" sidenavWidth="257px">
|
65
|
+
<mat-toolbar td-sidenav-content> ... toolbar in sidenav </mat-toolbar>
|
66
|
+
<mat-nav-list td-sidenav-content> ... sidenav content </mat-nav-list>
|
67
|
+
<mat-toolbar>
|
68
|
+
<button mat-icon-button tdLayoutManageListOpen [hideWhenOpened]="true">
|
69
|
+
<mat-icon>arrow_back</mat-icon>
|
70
|
+
</button>
|
71
|
+
... sub toolbar content
|
72
|
+
</mat-toolbar>
|
73
|
+
... main content
|
74
|
+
<td-layout-footer-inner> ... sub footer content </td-layout-footer-inner>
|
75
|
+
</td-layout-manage-list>
|
76
|
+
<td-layout-footer color="primary">
|
77
|
+
// color is optional ... main footer content
|
78
|
+
</td-layout-footer>
|
79
|
+
</td-layout-nav>
|
80
|
+
```
|
@@ -0,0 +1,50 @@
|
|
1
|
+
## TdLayoutNavComponent: td-layout-nav
|
2
|
+
|
3
|
+
`<td-layout-nav>` is a layout component which lets you customize a `navigation` view with toolbar items and footers.
|
4
|
+
|
5
|
+
## API Summary
|
6
|
+
|
7
|
+
#### Inputs
|
8
|
+
|
9
|
+
- toolbarTitle: string
|
10
|
+
- Title set in toolbar.
|
11
|
+
- icon: string
|
12
|
+
- Icon name to be displayed before the title.
|
13
|
+
- logo: string
|
14
|
+
- Logo icon name to be displayed before the title.
|
15
|
+
- If [icon] is set, then this will not be shown.
|
16
|
+
- color: string
|
17
|
+
- Optional toolbar color.
|
18
|
+
- Defaults to primary.
|
19
|
+
- navigationRoute: string
|
20
|
+
- Option to set the combined route for the icon, logo, and toolbarTitle.
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
`[td-menu-button]` is used to include a menu button before the logo and title.
|
25
|
+
|
26
|
+
`[td-toolbar-content]` is used to include items in the toolbar.
|
27
|
+
|
28
|
+
`td-layout-footer` is used to include items in the footer.
|
29
|
+
|
30
|
+
Example for Nav Layout:
|
31
|
+
|
32
|
+
```html
|
33
|
+
<td-layout-nav
|
34
|
+
toolbarTitle="title"
|
35
|
+
logo="logo"
|
36
|
+
icon="icon"
|
37
|
+
color="primary"
|
38
|
+
navigationRoute="/"
|
39
|
+
>
|
40
|
+
<button mat-icon-button td-menu-button>
|
41
|
+
// can use `[tdLayoutToggle]` to toggle main sidenav
|
42
|
+
<mat-icon>menu</mat-icon>
|
43
|
+
</button>
|
44
|
+
<div td-toolbar-content>.. main toolbar content</div>
|
45
|
+
... main content
|
46
|
+
<td-layout-footer color="primary">
|
47
|
+
// color is optional ... main footer content
|
48
|
+
</td-layout-footer>
|
49
|
+
</td-layout-nav>
|
50
|
+
```
|
@@ -0,0 +1,105 @@
|
|
1
|
+
## TdLayoutNavListComponent: td-layout-nav-list
|
2
|
+
|
3
|
+
`<td-layout-nav-list>` is a layout component which lets you customize a `navigation` list view with toolbar items, item selections and footers.
|
4
|
+
|
5
|
+
## API Summary
|
6
|
+
|
7
|
+
#### Inputs
|
8
|
+
|
9
|
+
- toolbarTitle: string
|
10
|
+
- Title set in toolbar.
|
11
|
+
- icon: string
|
12
|
+
- Icon name to be displayed before the title.
|
13
|
+
- logo: string
|
14
|
+
- Logo icon name to be displayed before the title.
|
15
|
+
- If [icon] is set, then this will not be shown.
|
16
|
+
- color: string
|
17
|
+
- optional toolbar color.
|
18
|
+
- Defaults to primary.
|
19
|
+
- navigationRoute: string
|
20
|
+
- option to set the combined route for the icon, logo, and toolbarTitle.
|
21
|
+
- mode: 'over' | 'side' | 'push'
|
22
|
+
- The mode or styling of the sidenav.
|
23
|
+
- Defaults to 'side'.
|
24
|
+
- opened: boolean
|
25
|
+
- Whether or not the sidenav is opened.
|
26
|
+
- Use this binding to open/close the sidenav.
|
27
|
+
- Defaults to 'true'.
|
28
|
+
- sidenavWidth: string
|
29
|
+
- Sets the 'width' of the sidenav in either 'px' or '%'.
|
30
|
+
- Defaults to '257px'.
|
31
|
+
- containerAutosize: boolean
|
32
|
+
- Sets 'autosize' of the sidenav-container.
|
33
|
+
- Defaults to 'false'.
|
34
|
+
|
35
|
+
## Usage
|
36
|
+
|
37
|
+
To toggle/close/open the nav list sidenav from child layouts/components, you can use the `[tdLayoutNavListToggle]`, `[tdLayoutNavListClose]` or `[tdLayoutNavListOpen]` directives on any element and its click event will trigger the sidenav action.
|
38
|
+
|
39
|
+
Example:
|
40
|
+
|
41
|
+
```html
|
42
|
+
<button mat-icon-button [tdLayoutNavListToggle]="true" [hideWhenOpened]="true">
|
43
|
+
// or tdLayoutNavListOpen / tdLayoutNavListClose
|
44
|
+
<mat-icon>menu</mat-icon>
|
45
|
+
</button>
|
46
|
+
```
|
47
|
+
|
48
|
+
To disable the sidenav action, just set the input to false.
|
49
|
+
|
50
|
+
```html
|
51
|
+
<button mat-icon-button [tdLayoutNavListToggle]="false">
|
52
|
+
<mat-icon>menu</mat-icon>
|
53
|
+
</button>
|
54
|
+
```
|
55
|
+
|
56
|
+
`[td-menu-button]` is used to include a menu button before the logo and title.
|
57
|
+
|
58
|
+
`[td-sidenav-content]` is used to include items in the left side list.
|
59
|
+
|
60
|
+
`[td-sidenav-toolbar-content]` is used to include items in the left toolbar.
|
61
|
+
|
62
|
+
`[td-toolbar-content]` is used to include items in the right toolbar.
|
63
|
+
|
64
|
+
`td-layout-footer-inner` is used to include items in the inner footer.
|
65
|
+
|
66
|
+
`td-layout-footer` is used to include items in the main footer.
|
67
|
+
|
68
|
+
`[tdLayoutNavListToggle]` is used to add the sidenav toggle behavior to any clickable element.
|
69
|
+
|
70
|
+
`[tdLayoutNavListClose]` is used to add the sidenav close behavior to any clickable element.
|
71
|
+
|
72
|
+
`[tdLayoutNavListOpen]` is used to add the sidenav open behavior to any clickable element.
|
73
|
+
|
74
|
+
Example for Nav List Layout:
|
75
|
+
|
76
|
+
```html
|
77
|
+
<td-layout-nav-list
|
78
|
+
sidenavTitle="title"
|
79
|
+
logo="logo"
|
80
|
+
icon="icon"
|
81
|
+
opened="true"
|
82
|
+
mode="side"
|
83
|
+
sidenavWidth="350px"
|
84
|
+
color="primary"
|
85
|
+
navigationRoute="/"
|
86
|
+
>
|
87
|
+
<button mat-icon-button td-menu-button>
|
88
|
+
// can use `[tdLayoutToggle]` to toggle main sidenav
|
89
|
+
<mat-icon>menu</mat-icon>
|
90
|
+
</button>
|
91
|
+
<div td-sidenav-toolbar-content>... left toolbar content</div>
|
92
|
+
<mat-nav-list td-sidenav-content>
|
93
|
+
<button mat-icon-button tdLayoutNavListOpen [hideWhenOpened]="true">
|
94
|
+
<mat-icon>arrow_back</mat-icon>
|
95
|
+
</button>
|
96
|
+
... sidenav content
|
97
|
+
</mat-nav-list>
|
98
|
+
<div td-toolbar-content>... right toolbar content</div>
|
99
|
+
... main content
|
100
|
+
<td-layout-footer-inner> ... sub footer content </td-layout-footer-inner>
|
101
|
+
<td-layout-footer color="primary">
|
102
|
+
// color is optional ... main footer content
|
103
|
+
</td-layout-footer>
|
104
|
+
</td-layout-nav-list>
|
105
|
+
```
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class TdMenuComponent {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdMenuComponent, never>;
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdMenuComponent, "td-menu", never, {}, {}, never, ["[td-menu-header]", "*", "[td-menu-footer]"]>;
|
5
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./menu.component";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "@angular/material/menu";
|
5
|
+
import * as i4 from "@angular/material/divider";
|
6
|
+
export declare class CovalentMenuModule {
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentMenuModule, never>;
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentMenuModule, [typeof i1.TdMenuComponent], [typeof i2.CommonModule, typeof i3.MatMenuModule, typeof i4.MatDividerModule], [typeof i1.TdMenuComponent]>;
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentMenuModule>;
|
10
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"module": "../fesm2015/covalent-core-menu.mjs",
|
3
|
+
"es2020": "../fesm2020/covalent-core-menu.mjs",
|
4
|
+
"esm2020": "../esm2020/menu/covalent-core-menu.mjs",
|
5
|
+
"fesm2020": "../fesm2020/covalent-core-menu.mjs",
|
6
|
+
"fesm2015": "../fesm2015/covalent-core-menu.mjs",
|
7
|
+
"typings": "covalent-core-menu.d.ts",
|
8
|
+
"sideEffects": false,
|
9
|
+
"name": "@covalent/core/menu"
|
10
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# td-message
|
2
|
+
|
3
|
+
`td-message` element generates an inline message with an icon, color, label and sublabel.
|
4
|
+
|
5
|
+
`color` can be either with any theme color (`primary`, `accent` or `warn`)
|
6
|
+
But you can also set a `color` from our lib and it can be applied in the component to get any material color not in the theme. (`blue`, `red`, etc)
|
7
|
+
|
8
|
+
## API Summary
|
9
|
+
|
10
|
+
#### Inputs
|
11
|
+
|
12
|
+
- label?: string
|
13
|
+
- Sets the label of the message.
|
14
|
+
- sublabel?: string
|
15
|
+
- Sets the sublabel of the message.
|
16
|
+
- icon?: string
|
17
|
+
- The icon to be displayed before the title. Defaults to `info_outline` icon.
|
18
|
+
- color?: 'primary' | 'accent' | 'warn'
|
19
|
+
- Sets the color of the message. Can also use any material color: `purple`, `light-blue`, etc.
|
20
|
+
- opened?: boolean
|
21
|
+
- Shows or hides the message depending on its value. Defaults to 'true'.
|
22
|
+
|
23
|
+
#### Methods
|
24
|
+
|
25
|
+
- open: function
|
26
|
+
- Renders the message on screen.
|
27
|
+
- close: function
|
28
|
+
- Removes the message content from screen.
|
29
|
+
- toggle: function
|
30
|
+
- Toggles between open and close depending on state.
|
31
|
+
|
32
|
+
## Setup
|
33
|
+
|
34
|
+
Import the [CovalentMessageModule] in your NgModule:
|
35
|
+
|
36
|
+
```typescript
|
37
|
+
import { CovalentMessageModule } from '@covalent/core/message';
|
38
|
+
@NgModule({
|
39
|
+
imports: [
|
40
|
+
CovalentMessageModule,
|
41
|
+
...
|
42
|
+
],
|
43
|
+
...
|
44
|
+
})
|
45
|
+
export class MyModule {}
|
46
|
+
```
|
47
|
+
|
48
|
+
## Usage
|
49
|
+
|
50
|
+
Example for HTML usage:
|
51
|
+
|
52
|
+
```html
|
53
|
+
<td-message
|
54
|
+
#messageDemo
|
55
|
+
color="primary"
|
56
|
+
class="pad-sm"
|
57
|
+
label="Hide me!"
|
58
|
+
sublabel="You can toggle my visibility & add a class!"
|
59
|
+
>
|
60
|
+
<button td-message-actions mat-icon-button (click)="messageDemo.close()">
|
61
|
+
<mat-icon>cancel</mat-icon>
|
62
|
+
</button>
|
63
|
+
</td-message>
|
64
|
+
<button mat-button color="accent" (click)="messageDemo.toggle()">
|
65
|
+
Toggle Visibility
|
66
|
+
</button>
|
67
|
+
```
|
@@ -0,0 +1,44 @@
|
|
1
|
+
@import '../common/styles/theme-functions';
|
2
|
+
@import '../common/styles/typography-functions';
|
3
|
+
|
4
|
+
@mixin td-message-typography($config) {
|
5
|
+
.td-message-label {
|
6
|
+
font: {
|
7
|
+
family: td-font-family($config);
|
8
|
+
size: td-font-size($config, body-2);
|
9
|
+
weight: 600;
|
10
|
+
}
|
11
|
+
|
12
|
+
line-height: td-line-height($config, body-2);
|
13
|
+
}
|
14
|
+
|
15
|
+
.td-message-sublabel {
|
16
|
+
font: {
|
17
|
+
family: td-font-family($config);
|
18
|
+
size: td-font-size($config, body-1);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
@mixin td-message-theme($theme) {
|
24
|
+
$primary: map-get($theme, primary);
|
25
|
+
$accent: map-get($theme, accent);
|
26
|
+
$warn: map-get($theme, warn);
|
27
|
+
|
28
|
+
.td-message {
|
29
|
+
&.mat-primary {
|
30
|
+
color: mat-color($primary);
|
31
|
+
background-color: mat-color($primary, 0.15);
|
32
|
+
}
|
33
|
+
|
34
|
+
&.mat-accent {
|
35
|
+
color: mat-color($accent);
|
36
|
+
background-color: mat-color($accent, 0.15);
|
37
|
+
}
|
38
|
+
|
39
|
+
&.mat-warn {
|
40
|
+
color: mat-color($warn);
|
41
|
+
background-color: mat-color($warn, 0.15);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { AnimationTriggerMetadata } from '@angular/animations';
|
2
|
+
export interface IAnimationOptions {
|
3
|
+
anchor?: string;
|
4
|
+
duration?: number;
|
5
|
+
delay?: number;
|
6
|
+
}
|
7
|
+
export interface ICollapseAnimation extends IAnimationOptions {
|
8
|
+
easeOnClose?: string;
|
9
|
+
easeOnOpen?: string;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* const tdCollapseAnimation
|
13
|
+
*
|
14
|
+
* Parameter Options:
|
15
|
+
* * duration: Duration the animation will run in milliseconds. Defaults to 150 ms.
|
16
|
+
* * delay: Delay before the animation will run in milliseconds. Defaults to 0 ms.
|
17
|
+
* * easeOnClose: Animation accelerates and decelerates when closing. Defaults to ease-in.
|
18
|
+
* * easeOnOpen: Animation accelerates and decelerates when opening. Defaults to ease-out.
|
19
|
+
*
|
20
|
+
* Returns an [AnimationTriggerMetadata] object with boolean states for a collapse/expand animation.
|
21
|
+
*
|
22
|
+
* usage: [@tdCollapse]="{ value: true | false, params: { duration: 500 }}"
|
23
|
+
*/
|
24
|
+
export declare const tdCollapseAnimation: AnimationTriggerMetadata;
|