@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,73 @@
|
|
1
|
+
# TdSearchBoxComponent: td-search-box
|
2
|
+
|
3
|
+
`td-search-box` element to generate a search box with animations.
|
4
|
+
|
5
|
+
## API Summary
|
6
|
+
|
7
|
+
#### Inputs
|
8
|
+
|
9
|
+
- backIcon?: string
|
10
|
+
- The icon used to close the search toggle, only shown when [alwaysVisible] is false. Defaults to 'search' icon.
|
11
|
+
- searchIcon?: string
|
12
|
+
- The icon used to open/focus the search toggle. Defaults to 'search' icon.
|
13
|
+
- clearIcon?: string
|
14
|
+
- The icon used to clear the search input. Defaults to 'cancel' icon.
|
15
|
+
- showUnderline?: boolean
|
16
|
+
- Sets if the input underline should be visible. Defaults to 'false'.
|
17
|
+
- debounce?: number
|
18
|
+
- Debounce timeout between keypresses. Defaults to 400.
|
19
|
+
- alwaysVisible?: boolean
|
20
|
+
- Sets if the input should always be visible. Defaults to 'false'.
|
21
|
+
- placeholder?: string
|
22
|
+
- Placeholder for the underlying input component.
|
23
|
+
|
24
|
+
#### Events
|
25
|
+
|
26
|
+
- searchDebounce?: string
|
27
|
+
- Event emitted after the [debounce] timeout.
|
28
|
+
- Emits a [string].
|
29
|
+
- search?: string
|
30
|
+
- Event emitted after the key enter has been pressed.
|
31
|
+
- Emits a [string].
|
32
|
+
- clear?: string
|
33
|
+
- Event emitted after the clear icon has been clicked.
|
34
|
+
- Emits [void].
|
35
|
+
- blur: function
|
36
|
+
- Event emitted after the blur event has been called in underlying input.
|
37
|
+
- Emits [void].
|
38
|
+
|
39
|
+
## Setup
|
40
|
+
|
41
|
+
Import the [CovalentSearchModule] in your NgModule:
|
42
|
+
|
43
|
+
```typescript
|
44
|
+
import { CovalentSearchModule } from '@covalent/core/search';
|
45
|
+
@NgModule({
|
46
|
+
imports: [
|
47
|
+
CovalentSearchModule,
|
48
|
+
...
|
49
|
+
],
|
50
|
+
...
|
51
|
+
})
|
52
|
+
export class MyModule {}
|
53
|
+
```
|
54
|
+
|
55
|
+
## Usage
|
56
|
+
|
57
|
+
Example for HTML usage:
|
58
|
+
|
59
|
+
```html
|
60
|
+
<td-search-box
|
61
|
+
backIcon="arrow_back"
|
62
|
+
placeholder="Search here"
|
63
|
+
[(ngModel)]="searchInputTerm"
|
64
|
+
[showUnderline]="false|true"
|
65
|
+
[debounce]="500"
|
66
|
+
[alwaysVisible]="false|true"
|
67
|
+
(searchDebounce)="searchInputTerm = $event"
|
68
|
+
(search)="searchInputTerm = $event"
|
69
|
+
(clear)="searchInputTerm = ''"
|
70
|
+
(blur)="onBlurEvent()"
|
71
|
+
>
|
72
|
+
</td-search-box>
|
73
|
+
```
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# TdSearchInputComponent: td-search-input
|
2
|
+
|
3
|
+
`td-search-input` element to generate a search input with its animated cancel button.
|
4
|
+
|
5
|
+
## API Summary
|
6
|
+
|
7
|
+
#### Inputs
|
8
|
+
|
9
|
+
- debounce?: number
|
10
|
+
- Debounce timeout between keypresses. Defaults to 400.
|
11
|
+
- placeholder?: string
|
12
|
+
- Placeholder for the underlying input component.
|
13
|
+
- showUnderline?: boolean
|
14
|
+
- Sets if the input underline should be visible. Defaults to 'false'.
|
15
|
+
- clearIcon?: string
|
16
|
+
- The icon used to clear the search input. Defaults to 'cancel' icon.
|
17
|
+
- appearance?: MatFormFieldAppearance
|
18
|
+
- Appearance style for the underlying input component.
|
19
|
+
|
20
|
+
#### Events
|
21
|
+
|
22
|
+
- searchDebounce: function
|
23
|
+
- Event emitted after the [debounce] timeout.
|
24
|
+
- Emits a [string].
|
25
|
+
- search: function
|
26
|
+
- Event emitted after the key enter has been pressed.
|
27
|
+
- Emits a [string].
|
28
|
+
- clear: function
|
29
|
+
- Event emitted after the clear icon has been clicked.
|
30
|
+
- Emits [void].
|
31
|
+
- blur: function
|
32
|
+
- Event emitted after the blur event has been called in underlying input.
|
33
|
+
- Emits [void].
|
34
|
+
|
35
|
+
#### Methods
|
36
|
+
|
37
|
+
- focus: function
|
38
|
+
- Method to focus to underlying input.
|
39
|
+
- clearSearch: function
|
40
|
+
- Method to clear the underlying input.
|
41
|
+
|
42
|
+
## Setup
|
43
|
+
|
44
|
+
Import the [CovalentSearchModule] in your NgModule:
|
45
|
+
|
46
|
+
```typescript
|
47
|
+
import { CovalentSearchModule } from '@covalent/core/search';
|
48
|
+
@NgModule({
|
49
|
+
imports: [
|
50
|
+
CovalentSearchModule,
|
51
|
+
...
|
52
|
+
],
|
53
|
+
...
|
54
|
+
})
|
55
|
+
export class MyModule {}
|
56
|
+
```
|
57
|
+
|
58
|
+
## Usage
|
59
|
+
|
60
|
+
Example for HTML usage:
|
61
|
+
|
62
|
+
```html
|
63
|
+
<td-search-input
|
64
|
+
appearance="legacy|standard|fill|outline"
|
65
|
+
placeholder="Search here"
|
66
|
+
[(ngModel)]="searchInputTerm"
|
67
|
+
[showUnderline]="false|true"
|
68
|
+
[debounce]="500"
|
69
|
+
(searchDebounce)="searchInputTerm = $event"
|
70
|
+
(search)="searchInputTerm = $event"
|
71
|
+
(clear)="searchInputTerm = ''"
|
72
|
+
>
|
73
|
+
</td-search-input>
|
74
|
+
```
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# CovalentSideSheet
|
2
|
+
|
3
|
+
Main injectable to import and call the `open` method with any TemplateRef or Component
|
4
|
+
|
5
|
+
## td-side-sheet-title
|
6
|
+
|
7
|
+
`td-side-sheet-title` adds title styling to an element (optional)
|
8
|
+
|
9
|
+
## td-side-sheet-close
|
10
|
+
|
11
|
+
`td-side-sheet-close` will close the open side sheet on click, enter, etc.
|
12
|
+
|
13
|
+
## td-side-sheet-content
|
14
|
+
|
15
|
+
`td-side-sheet-content` creates an element to hold the content with margins that follow Material spec and also scroll when the content is larger than the view port
|
16
|
+
|
17
|
+
## td-side-sheet-actions
|
18
|
+
|
19
|
+
`td-side-sheet-actions` creates a sticky footer that can hold multiple actions (optional)
|
20
|
+
|
21
|
+
## Setup
|
22
|
+
|
23
|
+
Import the [CovalentSideSheetModule] in your NgModule:
|
24
|
+
|
25
|
+
```typescript
|
26
|
+
import { CovalentSideSheetModule } from '@covalent/core/side-sheet';
|
27
|
+
@NgModule({
|
28
|
+
imports: [
|
29
|
+
CovalentSideSheetModule,
|
30
|
+
...
|
31
|
+
],
|
32
|
+
...
|
33
|
+
})
|
34
|
+
export class MyModule {}
|
35
|
+
```
|
36
|
+
|
37
|
+
## Usage
|
38
|
+
|
39
|
+
Basic Example:
|
40
|
+
|
41
|
+
```typescript
|
42
|
+
import { ExampleSideSheetComponent } from './example.sidebar/example.sidesheet.component';
|
43
|
+
import { CovalentSideSheet } from '.@covalent/core/side-sheet';
|
44
|
+
|
45
|
+
export class AppComponent {
|
46
|
+
constructor(private sideSheet: CovalentSideSheet) {
|
47
|
+
this.sideSheet.open(ExampleSidebarComponent);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
```
|
51
|
+
|
52
|
+
Example component html content with optional directives to support styling:
|
53
|
+
|
54
|
+
```html
|
55
|
+
<span td-sidesheet-title>
|
56
|
+
Side Sheet Title
|
57
|
+
<button mat-icon-button td-sidesheet-close>close</button>
|
58
|
+
</span>
|
59
|
+
<td-side-sheet-content> Sidesheet Content </td-side-sheet-content>
|
60
|
+
<td-sidesheet-actions>
|
61
|
+
<button mat-icon-button td-sidesheet-close>close</button>
|
62
|
+
<button mat-icon-button td-sidesheet-close>save</button>
|
63
|
+
</td-sidesheet-actions>
|
64
|
+
```
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"module": "../fesm2015/covalent-core-side-sheet.mjs",
|
3
|
+
"es2020": "../fesm2020/covalent-core-side-sheet.mjs",
|
4
|
+
"esm2020": "../esm2020/side-sheet/covalent-core-side-sheet.mjs",
|
5
|
+
"fesm2020": "../fesm2020/covalent-core-side-sheet.mjs",
|
6
|
+
"fesm2015": "../fesm2015/covalent-core-side-sheet.mjs",
|
7
|
+
"typings": "covalent-core-side-sheet.d.ts",
|
8
|
+
"sideEffects": false,
|
9
|
+
"name": "@covalent/core/side-sheet"
|
10
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import { AnimationEvent } from '@angular/animations';
|
2
|
+
import { ConfigurableFocusTrapFactory, FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
3
|
+
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal';
|
4
|
+
import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter } from '@angular/core';
|
5
|
+
import { CovalentSideSheetConfig } from './side-sheet.config';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare function _getFocusedElementPierceShadowDom(): HTMLElement | null;
|
8
|
+
/**
|
9
|
+
* Base class for the `CovalentSideSheetContainer`. The base class does not implement
|
10
|
+
* animations as these are left to implementers of the side-sheet container.
|
11
|
+
*/
|
12
|
+
export declare abstract class _CovalentSideSheetContainerBase extends BasePortalOutlet {
|
13
|
+
protected _elementRef: ElementRef;
|
14
|
+
protected _focusTrapFactory: ConfigurableFocusTrapFactory;
|
15
|
+
protected _changeDetectorRef: ChangeDetectorRef;
|
16
|
+
/** The side-sheet configuration. */
|
17
|
+
_config: CovalentSideSheetConfig;
|
18
|
+
private _focusMonitor?;
|
19
|
+
protected _document: Document;
|
20
|
+
/** The portal outlet inside of this container into which the side-sheet content will be loaded. */
|
21
|
+
_portalOutlet: CdkPortalOutlet;
|
22
|
+
/** The class that traps and manages focus within the side-sheet. */
|
23
|
+
private _focusTrap;
|
24
|
+
/** Emits when an animation state changes. */
|
25
|
+
_animationStateChanged: EventEmitter<{
|
26
|
+
state: 'opened' | 'opening' | 'closing' | 'closed';
|
27
|
+
totalTime: number;
|
28
|
+
}>;
|
29
|
+
/** Element that was focused before the side-sheet was opened. Save this to restore upon close. */
|
30
|
+
private _elementFocusedBeforeSideSheetWasOpened;
|
31
|
+
/**
|
32
|
+
* Type of interaction that led to the side-sheet being closed. This is used to determine
|
33
|
+
* whether the focus style will be applied when returning focus to its original location
|
34
|
+
* after the side-sheet is closed.
|
35
|
+
*/
|
36
|
+
_closeInteractionType: FocusOrigin | null;
|
37
|
+
/** ID of the element that should be considered as the side-sheet's label. */
|
38
|
+
_ariaLabelledBy: string | null;
|
39
|
+
/** ID for the container DOM element. */
|
40
|
+
_id: string;
|
41
|
+
constructor(_elementRef: ElementRef, _focusTrapFactory: ConfigurableFocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _document: any,
|
42
|
+
/** The side-sheet configuration. */
|
43
|
+
_config: CovalentSideSheetConfig, _focusMonitor?: FocusMonitor | undefined);
|
44
|
+
/** Starts the side-sheet exit animation. */
|
45
|
+
abstract _startExitAnimation(): void;
|
46
|
+
/** Initializes the side-sheet container with the attached content. */
|
47
|
+
_initializeWithAttachedContent(): void;
|
48
|
+
/**
|
49
|
+
* Attach a ComponentPortal as content to this side-sheet container.
|
50
|
+
* @param portal Portal to be attached as the side-sheet content.
|
51
|
+
*/
|
52
|
+
attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
|
53
|
+
/**
|
54
|
+
* Attach a TemplatePortal as content to this side-sheet container.
|
55
|
+
* @param portal Portal to be attached as the side-sheet content.
|
56
|
+
*/
|
57
|
+
attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
|
58
|
+
/**
|
59
|
+
* Attaches a DOM portal to the side-sheet container.
|
60
|
+
* @param portal Portal to be attached.
|
61
|
+
* @deprecated To be turned into a method.
|
62
|
+
*/
|
63
|
+
attachDomPortal: (portal: DomPortal) => void;
|
64
|
+
/** Moves focus back into the side-sheet if it was moved out. */
|
65
|
+
_recaptureFocus(): void;
|
66
|
+
/**
|
67
|
+
* Moves the focus inside the focus trap. When autoFocus is not set to 'side-sheet', if focus
|
68
|
+
* cannot be moved then focus will go to the side-sheet container.
|
69
|
+
*/
|
70
|
+
protected _trapFocus(): void;
|
71
|
+
/** Restores focus to the element that was focused before the side-sheet opened. */
|
72
|
+
protected _restoreFocus(): void;
|
73
|
+
/** Sets up the focus trap. */
|
74
|
+
private _setupFocusTrap;
|
75
|
+
/** Captures the element that was focused before the side-sheet was opened. */
|
76
|
+
private _capturePreviouslyFocusedElement;
|
77
|
+
/** Focuses the side-sheet container. */
|
78
|
+
private _focusSideSheetContainer;
|
79
|
+
/** Returns whether focus is inside the side-sheet. */
|
80
|
+
private _containsFocus;
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_CovalentSideSheetContainerBase, [null, null, null, { optional: true; }, null, null]>;
|
82
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_CovalentSideSheetContainerBase, never, never, {}, {}, never>;
|
83
|
+
}
|
84
|
+
/**
|
85
|
+
* Internal component that wraps the generated side-sheet content.
|
86
|
+
* This animation below is the only reason for duplicating most of the Material dialog code
|
87
|
+
*/
|
88
|
+
export declare class CovalentSideSheetContainerComponent extends _CovalentSideSheetContainerBase {
|
89
|
+
/** State of the side-sheet animation. */
|
90
|
+
_state: 'void' | 'enter' | 'exit';
|
91
|
+
tdSideSheetContainerClass: boolean;
|
92
|
+
tabIndex: number;
|
93
|
+
arialModal: boolean;
|
94
|
+
idAttr: string;
|
95
|
+
roleAttr: import("@angular/material/dialog").DialogRole | undefined;
|
96
|
+
arialLabelByAttr: string | null;
|
97
|
+
arialDescribeByAttr: string | null;
|
98
|
+
arialLabelAttr: string | null | undefined;
|
99
|
+
get sideSheetAnimationState(): "enter" | "void" | "exit";
|
100
|
+
onAnimateStart($event: AnimationEvent): void;
|
101
|
+
onAnimateDone($event: AnimationEvent): void;
|
102
|
+
/** Callback, invoked whenever an animation on the host completes. */
|
103
|
+
_onAnimationDone({ toState, totalTime }: AnimationEvent): void;
|
104
|
+
/** Callback, invoked when an animation on the host starts. */
|
105
|
+
_onAnimationStart({ toState, totalTime }: AnimationEvent): void;
|
106
|
+
/** Starts the side-sheet exit animation. */
|
107
|
+
_startExitAnimation(): void;
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetContainerComponent, never>;
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CovalentSideSheetContainerComponent, "td-side-sheet-container", never, {}, {}, never, never>;
|
110
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
2
|
+
import { OverlayRef } from '@angular/cdk/overlay';
|
3
|
+
import { MatDialogRef, _MatDialogContainerBase } from '@angular/material/dialog';
|
4
|
+
export declare class CovalentSideSheetRef<T, R = any> extends MatDialogRef<T, R> {
|
5
|
+
overlayRef: OverlayRef;
|
6
|
+
_containerInstance: _MatDialogContainerBase;
|
7
|
+
readonly id: string;
|
8
|
+
constructor(overlayRef: OverlayRef, _containerInstance: _MatDialogContainerBase, id?: string);
|
9
|
+
}
|
10
|
+
export declare function _closeSideSheetVia<R>(ref: CovalentSideSheetRef<R>, interactionType: FocusOrigin, result?: R): void;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges, ElementRef } from '@angular/core';
|
2
|
+
import { CovalentSideSheet } from './side-sheet';
|
3
|
+
import { CovalentSideSheetRef } from './side-sheet-ref';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* Button that will close the current dialog.
|
7
|
+
*/
|
8
|
+
export declare class CovalentSideSheetCloseDirective implements OnInit, OnChanges {
|
9
|
+
dialogRef: CovalentSideSheetRef<any>;
|
10
|
+
private _elementRef;
|
11
|
+
private _dialog;
|
12
|
+
/** Screenreader label for the button. */
|
13
|
+
ariaLabel?: string;
|
14
|
+
/** Default to "button" to prevents accidental form submits. */
|
15
|
+
type: 'submit' | 'button' | 'reset';
|
16
|
+
/** Dialog close input. */
|
17
|
+
dialogResult: any;
|
18
|
+
_CovalentSideSheetClose: any;
|
19
|
+
onClick($event: MouseEvent): void;
|
20
|
+
constructor(dialogRef: CovalentSideSheetRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CovalentSideSheet);
|
21
|
+
ngOnInit(): void;
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
23
|
+
_onButtonClick(event: MouseEvent): void;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetCloseDirective, [{ optional: true; }, null, null]>;
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetCloseDirective, "[td-side-sheet-close], [CovalentSideSheetClose]", ["CovalentSideSheetClose"], { "ariaLabel": "aria-label"; "type": "type"; "dialogResult": "td-side-sheet-close"; "_CovalentSideSheetClose": "CovalentSideSheetClose"; }, {}, never>;
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* Title of a side sheet element. Stays fixed to the top of the side sheet when scrolling.
|
29
|
+
*/
|
30
|
+
export declare class CovalentSideSheetTitleDirective implements OnInit {
|
31
|
+
private _dialogRef;
|
32
|
+
private _elementRef;
|
33
|
+
private _dialog;
|
34
|
+
/** Unique id for the dialog title. If none is supplied, it will be auto-generated. */
|
35
|
+
id: string;
|
36
|
+
tdSideSheetTitle: boolean;
|
37
|
+
idAttr: string;
|
38
|
+
constructor(_dialogRef: CovalentSideSheetRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CovalentSideSheet);
|
39
|
+
ngOnInit(): void;
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetTitleDirective, [{ optional: true; }, null, null]>;
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetTitleDirective, "[td-side-sheet-title], [CovalentSideSheetTitle]", ["CovalentSideSheetTitle"], { "id": "id"; }, {}, never>;
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Scrollable content container of a dialog.
|
45
|
+
*/
|
46
|
+
export declare class CovalentSideSheetContentDirective {
|
47
|
+
tdSideSheetContent: boolean;
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetContentDirective, never>;
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetContentDirective, "[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]", never, {}, {}, never>;
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* Container for the bottom action buttons in a dialog.
|
53
|
+
* Stays fixed to the bottom when scrolling.
|
54
|
+
*/
|
55
|
+
export declare class CovalentSideSheetActionsDirective {
|
56
|
+
tdSideSheetActions: boolean;
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetActionsDirective, never>;
|
58
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetActionsDirective, "[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]", never, {}, {}, never>;
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* Container for the wrapper part of the dialog
|
62
|
+
*/
|
63
|
+
export declare class CovalentSideSheetWrapperDirective {
|
64
|
+
tdSideSheetWrapper: boolean;
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetWrapperDirective, never>;
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CovalentSideSheetWrapperDirective, "[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]", never, {}, {}, never>;
|
67
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { InjectionToken, Injector, OnDestroy, TemplateRef, Type } from '@angular/core';
|
2
|
+
import { Overlay } from '@angular/cdk/overlay';
|
3
|
+
import { ComponentType } from '@angular/cdk/portal';
|
4
|
+
import { CovalentSideSheetContainerComponent, _CovalentSideSheetContainerBase } from './side-sheet-container';
|
5
|
+
import { CovalentSideSheetRef } from './side-sheet-ref';
|
6
|
+
import { CovalentSideSheetConfig } from './side-sheet.config';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export declare class _CovalentSideSheetBase<C extends _CovalentSideSheetContainerBase> implements OnDestroy {
|
9
|
+
private _overlay;
|
10
|
+
private _injector;
|
11
|
+
private _defaultOptions;
|
12
|
+
private _parentSideSheet;
|
13
|
+
private _sideSheetRefConstructor;
|
14
|
+
private _sideSheetContainerType;
|
15
|
+
private _sideSheetDataToken;
|
16
|
+
private _openSideSheetsAtThisLevel;
|
17
|
+
private readonly _afterAllClosedAtThisLevel;
|
18
|
+
private readonly _afterOpenedAtThisLevel;
|
19
|
+
private _animationStateSubscriptions;
|
20
|
+
private defaultSidebarConfig;
|
21
|
+
constructor(_overlay: Overlay, _injector: Injector, _defaultOptions: CovalentSideSheetConfig | undefined, _parentSideSheet: _CovalentSideSheetBase<C> | undefined, _sideSheetRefConstructor: Type<CovalentSideSheetRef<any>>, _sideSheetContainerType: Type<C>, _sideSheetDataToken: InjectionToken<unknown>);
|
22
|
+
/** Keeps track of the currently-open side-sheets. */
|
23
|
+
get openSideSheets(): CovalentSideSheetRef<unknown>[];
|
24
|
+
open<T, D = unknown, R = unknown>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: CovalentSideSheetConfig<D>): CovalentSideSheetRef<T, R>;
|
25
|
+
ngOnDestroy(): void;
|
26
|
+
/**
|
27
|
+
* Closes all of the currently-open side-sheets.
|
28
|
+
*/
|
29
|
+
closeAll(): void;
|
30
|
+
private _createOverlay;
|
31
|
+
/**
|
32
|
+
* Attaches a container to a side-sheets's already-created overlay.
|
33
|
+
* @param overlay Reference to the side-sheet's underlying overlay.
|
34
|
+
* @param config The side-sheet configuration.
|
35
|
+
* @returns A promise resolving to a ComponentRef for the attached container.
|
36
|
+
*/
|
37
|
+
private _attachSideSheetContainer;
|
38
|
+
/**
|
39
|
+
* Attaches the user-provided component to the already-created side sheet container.
|
40
|
+
* @param componentOrTemplateRef The type of component being loaded into the side-sheet,
|
41
|
+
* or a TemplateRef to instantiate as the content.
|
42
|
+
* @param dialogContainer Reference to the wrapping side-sheet container.
|
43
|
+
* @param overlayRef Reference to the overlay in which the side-sheet resides.
|
44
|
+
* @param config The side-sheet configuration.
|
45
|
+
* @returns A promise resolving to the CovalentSideSheetRef that should be returned to the user.
|
46
|
+
*/
|
47
|
+
private _attachSideSheetContent;
|
48
|
+
private _createInjector;
|
49
|
+
/**
|
50
|
+
* Removes a side sheet from the array of open side sheets.
|
51
|
+
* @param sideSheetRef Side Sheet to be removed.
|
52
|
+
*/
|
53
|
+
private _removeOpenSideSheet;
|
54
|
+
/** Closes all of the side-sheet in an array. */
|
55
|
+
private _closeSideSheets;
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_CovalentSideSheetBase<any>, never>;
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<_CovalentSideSheetBase<any>, never, never, {}, {}, never>;
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* Service to open Covalent Design side-sheet.
|
61
|
+
*/
|
62
|
+
export declare class CovalentSideSheet extends _CovalentSideSheetBase<CovalentSideSheetContainerComponent> {
|
63
|
+
constructor(overlay: Overlay, injector: Injector, defaultOptions: CovalentSideSheetConfig, parentSideSheet: CovalentSideSheet);
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheet, [null, null, { optional: true; }, { optional: true; skipSelf: true; }]>;
|
65
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CovalentSideSheet>;
|
66
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./side-sheet-container";
|
3
|
+
import * as i2 from "./side-sheet.content-directives";
|
4
|
+
import * as i3 from "@angular/cdk/portal";
|
5
|
+
import * as i4 from "@angular/material/dialog";
|
6
|
+
import * as i5 from "@angular/material/core";
|
7
|
+
export declare class CovalentSideSheetModule {
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentSideSheetModule, never>;
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentSideSheetModule, [typeof i1.CovalentSideSheetContainerComponent, typeof i2.CovalentSideSheetActionsDirective, typeof i2.CovalentSideSheetCloseDirective, typeof i2.CovalentSideSheetContentDirective, typeof i2.CovalentSideSheetTitleDirective, typeof i2.CovalentSideSheetWrapperDirective], [typeof i3.PortalModule, typeof i4.MatDialogModule, typeof i5.MatCommonModule], [typeof i2.CovalentSideSheetActionsDirective, typeof i2.CovalentSideSheetCloseDirective, typeof i2.CovalentSideSheetContentDirective, typeof i2.CovalentSideSheetTitleDirective, typeof i2.CovalentSideSheetWrapperDirective]>;
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentSideSheetModule>;
|
11
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
@import '../breadcrumbs/breadcrumbs-theme';
|
2
|
+
@import '../common/common-theme';
|
3
|
+
@import '../layout/layout-theme';
|
4
|
+
@import '../file/file-theme';
|
5
|
+
@import '../dialogs/dialog-theme';
|
6
|
+
@import '../json-formatter/json-formatter-theme';
|
7
|
+
@import '../message/message-theme';
|
8
|
+
@import '../side-sheet/side-sheet.theme';
|
9
|
+
// import the covalent mixins
|
10
|
+
@import '../common/styles/styles';
|
11
|
+
@import '../typography/all-typography';
|
12
|
+
|
13
|
+
// Create a theme.
|
14
|
+
@mixin covalent-theme($theme, $config: null) {
|
15
|
+
@include td-typography($config);
|
16
|
+
@include td-breadcrumbs-theme($theme);
|
17
|
+
@include td-common-theme($theme);
|
18
|
+
@include td-layout-theme($theme);
|
19
|
+
@include td-file-theme($theme);
|
20
|
+
@include td-dialog-theme($theme);
|
21
|
+
@include td-json-formatter-theme($theme);
|
22
|
+
@include td-message-theme($theme);
|
23
|
+
@include td-side-sheet-theme($theme);
|
24
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
@import '../dialogs/dialog-theme';
|
2
|
+
@import '../json-formatter/json-formatter-theme';
|
3
|
+
@import '../message/message-theme';
|
4
|
+
|
5
|
+
@function td-typography-config(
|
6
|
+
$font-family: '"Roboto", "Helvetica Neue", sans-serif',
|
7
|
+
$headline: td-typography-level(24px, 32px, 400),
|
8
|
+
$title: td-typography-level(20px, 32px, 500),
|
9
|
+
$subheading-2: td-typography-level(16px, 28px, 400),
|
10
|
+
$subheading-1: td-typography-level(15px, 24px, 400),
|
11
|
+
$body-2: td-typography-level(14px, 24px, 500),
|
12
|
+
$body-1: td-typography-level(14px, 20px, 400),
|
13
|
+
$caption: td-typography-level(12px, 20px, 400)
|
14
|
+
) {
|
15
|
+
@return (
|
16
|
+
font-family: $font-family,
|
17
|
+
headline: $headline,
|
18
|
+
title: $title,
|
19
|
+
subheading-2: $subheading-2,
|
20
|
+
subheading-1: $subheading-1,
|
21
|
+
body-2: $body-2,
|
22
|
+
body-1: $body-1,
|
23
|
+
caption: $caption
|
24
|
+
);
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin td-typography($config: null) {
|
28
|
+
@if $config == null {
|
29
|
+
$config: td-typography-config();
|
30
|
+
}
|
31
|
+
|
32
|
+
body {
|
33
|
+
font-family: td-font-family($config);
|
34
|
+
}
|
35
|
+
@include td-dialog-typography($config);
|
36
|
+
@include td-json-formatter-typography($config);
|
37
|
+
@include td-message-typography($config);
|
38
|
+
@include td-layout-typography($config);
|
39
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# td-user-profile
|
2
|
+
|
3
|
+
`td-user-profile` element generates user-profile menu to display user information and actions using `mat-list-item` component/directive.
|
4
|
+
|
5
|
+
## API Summary
|
6
|
+
|
7
|
+
#### Inputs
|
8
|
+
|
9
|
+
- name?: string
|
10
|
+
- name of the user.
|
11
|
+
- email?: string
|
12
|
+
- email of the user.
|
13
|
+
|
14
|
+
## Setup
|
15
|
+
|
16
|
+
Import the **[CovalentUserProfileModule]** in your NgModule:
|
17
|
+
|
18
|
+
```typescript
|
19
|
+
import { CovalentUserProfileModule } from '@covalent/core/user-profile';
|
20
|
+
@NgModule({
|
21
|
+
imports: [
|
22
|
+
CovalentUserProfileModule,
|
23
|
+
...
|
24
|
+
],
|
25
|
+
...
|
26
|
+
})
|
27
|
+
export class MyModule {}
|
28
|
+
```
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
|
32
|
+
Basic Example:
|
33
|
+
|
34
|
+
```html
|
35
|
+
<td-user-profile name="daffy duck" email="daffy.duck@teradata.com">
|
36
|
+
</td-user-profile>
|
37
|
+
```
|
38
|
+
|
39
|
+
Example with all inputs and projected content:
|
40
|
+
|
41
|
+
`[td-user-info-list]` is used to project content in the mat-list.
|
42
|
+
`[td-user-action-list]` is used to project content in the mat-action-list.
|
43
|
+
|
44
|
+
```html
|
45
|
+
<td-user-profile name="daffy duck" email="daffy.duck@teradata.com">
|
46
|
+
<ng-container td-user-info-list>
|
47
|
+
<mat-list-item>
|
48
|
+
<mat-icon matListAvatar>account_balance</mat-icon>
|
49
|
+
<span matLine>default</span>
|
50
|
+
<span matLine>organization</span>
|
51
|
+
</mat-list-item>
|
52
|
+
</ng-container>
|
53
|
+
<ng-container td-user-action-list>
|
54
|
+
<button mat-list-item>
|
55
|
+
<span matListAvatar></span>
|
56
|
+
<span matLine>Sign out</span>
|
57
|
+
</button>
|
58
|
+
</ng-container>
|
59
|
+
</td-user-profile>
|
60
|
+
```
|