@covalent/core 4.0.0-beta.1 → 4.1.1-beta.3
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 +4 -38
- package/breadcrumbs/README.md +21 -17
- package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -1
- package/breadcrumbs/breadcrumbs.component.d.ts +1 -0
- package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -1
- package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/README.md +3 -0
- package/common/_common-theme.scss +1 -1
- package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
- package/common/behaviors/disabled.mixin.d.ts +1 -1
- package/common/covalent-core-common.d.ts +1 -1
- package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
- package/common/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/styles/font/README.md +4 -2
- package/covalent-core.d.ts +1 -1
- package/dialogs/README.md +38 -30
- package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -2
- package/dialogs/covalent-core-dialogs.d.ts +1 -1
- package/dialogs/dialog.component.d.ts +4 -4
- package/dialogs/dialogs.module.d.ts +1 -1
- package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +3 -3
- package/dialogs/{public-api.d.ts → public_api.d.ts} +0 -0
- package/dialogs/src/README.md +223 -0
- package/dialogs/window-dialog/window-dialog.component.d.ts +5 -5
- package/dynamic-menu/README.md +6 -6
- package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu.component.d.ts +1 -22
- package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
- package/dynamic-menu/public_api.d.ts +1 -0
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +21 -37
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +20 -25
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +12 -13
- package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +2 -2
- package/esm2020/breadcrumbs/public_api.mjs +4 -0
- package/esm2020/common/animations/bounce/bounce.animation.mjs +1 -1
- package/esm2020/common/animations/collapse/collapse.animation.mjs +1 -1
- package/esm2020/common/animations/common/interfaces.mjs +1 -1
- package/esm2020/common/animations/fade/fadeInOut.animation.mjs +1 -1
- package/esm2020/common/animations/flash/flash.animation.mjs +1 -1
- package/esm2020/common/animations/headshake/headshake.animation.mjs +17 -5
- package/esm2020/common/animations/jello/jello.animation.mjs +29 -8
- package/esm2020/common/animations/pulse/pulse.animation.mjs +1 -1
- package/esm2020/common/animations/rotate/rotate.animation.mjs +7 -2
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +4 -2
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +1 -1
- package/esm2020/common/behaviors/disabled.mixin.mjs +1 -1
- package/esm2020/common/common.module.mjs +14 -15
- package/esm2020/common/covalent-core-common.mjs +2 -2
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +41 -41
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +19 -19
- package/esm2020/common/forms/validators/validators.mjs +6 -6
- package/esm2020/common/functions/clipboard.mjs +1 -1
- package/esm2020/common/functions/convert.mjs +1 -1
- package/esm2020/common/functions/download.mjs +1 -1
- package/esm2020/common/functions/file.mjs +1 -1
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +21 -11
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +21 -11
- package/esm2020/common/pipes/digits/digits.pipe.mjs +13 -13
- package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +9 -9
- package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +9 -9
- package/esm2020/common/pipes/time-until/time-until.pipe.mjs +9 -9
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +10 -10
- package/esm2020/common/public_api.mjs +39 -0
- package/esm2020/common/services/icon.service.mjs +6 -6
- package/esm2020/common/services/router-path.service.mjs +6 -6
- package/esm2020/covalent-core.mjs +2 -2
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +9 -40
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +9 -49
- package/esm2020/dialogs/covalent-core-dialogs.mjs +2 -2
- package/esm2020/dialogs/dialog.component.mjs +35 -76
- package/esm2020/dialogs/dialogs.module.mjs +39 -36
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +15 -73
- package/esm2020/dialogs/public_api.mjs +9 -0
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +27 -10
- package/esm2020/dialogs/services/dialog.service.mjs +16 -13
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +24 -55
- package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +2 -2
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +19 -136
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +14 -103
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +18 -101
- package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
- package/esm2020/dynamic-menu/dynamic-menu.module.mjs +44 -19
- package/esm2020/dynamic-menu/public_api.mjs +2 -1
- package/esm2020/file/covalent-core-file.mjs +2 -2
- package/esm2020/file/directives/file-drop.directive.mjs +46 -47
- package/esm2020/file/directives/file-select.directive.mjs +32 -31
- package/esm2020/file/file-input/file-input.component.mjs +67 -72
- package/esm2020/file/file-upload/file-upload.component.mjs +76 -112
- package/esm2020/file/file.module.mjs +32 -17
- package/esm2020/file/public_api.mjs +7 -0
- package/esm2020/file/services/file.service.mjs +13 -11
- package/esm2020/json-formatter/collapse.animation.mjs +51 -0
- package/esm2020/json-formatter/covalent-core-json-formatter.mjs +2 -2
- package/esm2020/json-formatter/json-formatter.component.mjs +38 -123
- package/esm2020/json-formatter/json-formatter.module.mjs +12 -13
- package/esm2020/json-formatter/public_api.mjs +3 -0
- package/esm2020/layout/covalent-core-layout.mjs +2 -2
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +17 -64
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +9 -14
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +18 -47
- package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +47 -53
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +22 -84
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +33 -120
- package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +47 -53
- package/esm2020/layout/layout-toggle.class.mjs +13 -15
- package/esm2020/layout/layout.component.mjs +18 -39
- package/esm2020/layout/layout.directives.mjs +48 -50
- package/esm2020/layout/layout.module.mjs +34 -35
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +56 -201
- package/esm2020/layout/public_api.mjs +13 -0
- package/esm2020/menu/covalent-core-menu.mjs +2 -2
- package/esm2020/menu/menu.component.mjs +7 -18
- package/esm2020/menu/menu.module.mjs +12 -13
- package/esm2020/menu/public_api.mjs +3 -0
- package/esm2020/message/collapse.animation.mjs +51 -0
- package/esm2020/message/covalent-core-message.mjs +2 -2
- package/esm2020/message/message.component.mjs +44 -102
- package/esm2020/message/message.module.mjs +19 -15
- package/esm2020/message/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/search/covalent-core-search.mjs +2 -2
- package/esm2020/search/public_api.mjs +4 -0
- package/esm2020/search/search-box/search-box.component.mjs +97 -123
- package/esm2020/search/search-input/search-input.component.mjs +116 -153
- package/esm2020/search/search.module.mjs +28 -13
- package/esm2020/side-sheet/covalent-core-side-sheet.mjs +2 -2
- package/esm2020/side-sheet/public_api.mjs +6 -0
- package/esm2020/side-sheet/side-sheet-container.mjs +89 -57
- package/esm2020/side-sheet/side-sheet-ref.mjs +2 -2
- package/esm2020/side-sheet/side-sheet.animation.mjs +2 -2
- package/esm2020/side-sheet/side-sheet.config.mjs +1 -1
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +109 -86
- package/esm2020/side-sheet/side-sheet.mjs +44 -31
- package/esm2020/side-sheet/side-sheet.module.mjs +37 -38
- package/esm2020/user-profile/covalent-core-user-profile.mjs +2 -2
- package/esm2020/user-profile/public_api.mjs +1 -1
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +13 -64
- package/esm2020/user-profile/user-profile.component.mjs +13 -35
- package/esm2020/user-profile/user-profile.module.mjs +32 -14
- package/fesm2015/covalent-core-breadcrumbs.mjs +35 -76
- package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -1
- package/fesm2015/covalent-core-common.mjs +170 -140
- package/fesm2015/covalent-core-common.mjs.map +1 -1
- package/fesm2015/covalent-core-dialogs.mjs +125 -358
- package/fesm2015/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2015/covalent-core-dynamic-menu.mjs +73 -425
- package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -1
- package/fesm2015/covalent-core-file.mjs +175 -237
- package/fesm2015/covalent-core-file.mjs.map +1 -1
- package/fesm2015/covalent-core-json-formatter.mjs +93 -148
- package/fesm2015/covalent-core-json-formatter.mjs.map +1 -1
- package/fesm2015/covalent-core-layout.mjs +183 -735
- package/fesm2015/covalent-core-layout.mjs.map +1 -1
- package/fesm2015/covalent-core-menu.mjs +10 -28
- package/fesm2015/covalent-core-menu.mjs.map +1 -1
- package/fesm2015/covalent-core-message.mjs +79 -104
- package/fesm2015/covalent-core-message.mjs.map +1 -1
- package/fesm2015/covalent-core-search.mjs +147 -227
- package/fesm2015/covalent-core-search.mjs.map +1 -1
- package/fesm2015/covalent-core-side-sheet.mjs +202 -173
- package/fesm2015/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2015/covalent-core-user-profile.mjs +38 -114
- package/fesm2015/covalent-core-user-profile.mjs.map +1 -1
- package/fesm2015/covalent-core.mjs.map +1 -1
- package/fesm2020/covalent-core-breadcrumbs.mjs +49 -71
- package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -1
- package/fesm2020/covalent-core-common.mjs +224 -165
- package/fesm2020/covalent-core-common.mjs.map +1 -1
- package/fesm2020/covalent-core-dialogs.mjs +160 -338
- package/fesm2020/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2020/covalent-core-dynamic-menu.mjs +89 -354
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -1
- package/fesm2020/covalent-core-file.mjs +255 -277
- package/fesm2020/covalent-core-file.mjs.map +1 -1
- package/fesm2020/covalent-core-json-formatter.mjs +97 -133
- package/fesm2020/covalent-core-json-formatter.mjs.map +1 -1
- package/fesm2020/covalent-core-layout.mjs +342 -755
- package/fesm2020/covalent-core-layout.mjs.map +1 -1
- package/fesm2020/covalent-core-menu.mjs +17 -29
- package/fesm2020/covalent-core-menu.mjs.map +1 -1
- package/fesm2020/covalent-core-message.mjs +110 -114
- package/fesm2020/covalent-core-message.mjs.map +1 -1
- package/fesm2020/covalent-core-search.mjs +233 -281
- package/fesm2020/covalent-core-search.mjs.map +1 -1
- package/fesm2020/covalent-core-side-sheet.mjs +267 -200
- package/fesm2020/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2020/covalent-core-user-profile.mjs +54 -109
- package/fesm2020/covalent-core-user-profile.mjs.map +1 -1
- package/fesm2020/covalent-core.mjs.map +1 -1
- package/file/_file-theme.scss +2 -1
- package/file/covalent-core-file.d.ts +1 -1
- package/file/directives/file-drop.directive.d.ts +6 -7
- package/file/directives/file-select.directive.d.ts +2 -2
- package/file/file-input/file-input.component.d.ts +19 -12
- package/file/file-upload/file-upload.component.d.ts +16 -9
- package/file/{public-api.d.ts → public_api.d.ts} +0 -0
- package/file/{file-input → src/file-input}/README.md +46 -37
- package/file/{file-upload → src/file-upload}/README.md +36 -27
- package/json-formatter/README.md +8 -8
- package/json-formatter/collapse.animation.d.ts +24 -0
- package/json-formatter/covalent-core-json-formatter.d.ts +1 -1
- package/json-formatter/json-formatter.component.d.ts +4 -4
- package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/layout/README.md +48 -50
- package/layout/covalent-core-layout.d.ts +1 -1
- package/layout/layout-card-over/layout-card-over.component.d.ts +3 -3
- package/layout/layout-footer/layout-footer.component.d.ts +3 -3
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +5 -5
- package/layout/layout-nav/layout-nav.component.d.ts +5 -5
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +5 -5
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +5 -5
- package/layout/layout-toggle.class.d.ts +1 -1
- package/layout/layout.directives.d.ts +2 -2
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +12 -12
- package/layout/{public-api.d.ts → public_api.d.ts} +0 -0
- package/layout/{layout-card-over → src/layout-card-over}/README.md +19 -17
- package/layout/{layout-manage-list → src/layout-manage-list}/README.md +24 -28
- package/layout/src/layout-nav/README.md +50 -0
- package/layout/{layout-nav-list → src/layout-nav-list}/README.md +44 -40
- package/menu/covalent-core-menu.d.ts +1 -1
- package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
- package/message/README.md +26 -18
- package/message/collapse.animation.d.ts +24 -0
- package/message/covalent-core-message.d.ts +1 -1
- package/message/message.component.d.ts +4 -4
- package/message/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +25 -54
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/search/README.md +74 -73
- package/search/covalent-core-search.d.ts +1 -1
- package/search/{public-api.d.ts → public_api.d.ts} +0 -0
- package/search/search-box/search-box.component.d.ts +10 -6
- package/search/search-input/search-input.component.d.ts +10 -6
- package/search/src/search-box/README.md +73 -0
- package/search/src/search-input/README.md +74 -0
- package/side-sheet/README.md +3 -5
- package/side-sheet/{side-sheet.theme.scss → _side-sheet.theme.scss} +0 -0
- package/side-sheet/covalent-core-side-sheet.d.ts +1 -1
- package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
- package/side-sheet/side-sheet-container.d.ts +18 -7
- package/side-sheet/side-sheet.content-directives.d.ts +22 -16
- package/side-sheet/side-sheet.d.ts +2 -2
- package/side-sheet/side-sheet.module.d.ts +1 -1
- package/user-profile/README.md +5 -5
- package/user-profile/covalent-core-user-profile.d.ts +1 -1
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +2 -2
- package/user-profile/user-profile.component.d.ts +2 -2
- package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -25
- package/breadcrumbs/breadcrumbs.component.scss +0 -8
- package/breadcrumbs/index.d.ts +0 -1
- package/common/index.d.ts +0 -1
- package/common/material-icons.css +0 -111
- package/common/material-icons.css.map +0 -1
- package/common/material-icons.scss +0 -3
- package/common/platform.css +0 -16819
- package/common/platform.css.map +0 -1
- package/common/platform.scss +0 -7
- package/common/styles/_elevation.scss +0 -280
- package/common/styles/_layout.scss +0 -605
- package/common/styles/_palette-dark.scss +0 -326
- package/common/styles/_palette-light.scss +0 -637
- package/common/styles/_rtl.scss +0 -31
- package/common/styles/_styles.scss +0 -10
- package/common/styles/_theme-functions.scss +0 -25
- package/common/styles/_typography-functions.scss +0 -35
- package/common/styles/_variables.scss +0 -98
- package/common/styles/colors/_colors-dark.scss +0 -1399
- package/common/styles/colors/_colors-light.scss +0 -3235
- package/common/styles/colors/_colors.scss +0 -7
- package/common/styles/core/_button.scss +0 -60
- package/common/styles/core/_card.scss +0 -184
- package/common/styles/core/_content.scss +0 -43
- package/common/styles/core/_core.scss +0 -23
- package/common/styles/core/_divider.scss +0 -16
- package/common/styles/core/_icons.scss +0 -22
- package/common/styles/core/_list.scss +0 -8
- package/common/styles/core/_sidenav.scss +0 -22
- package/common/styles/core/_structure.scss +0 -127
- package/common/styles/core/_toolbar.scss +0 -53
- package/common/styles/core/_whiteframe.scss +0 -130
- package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
- package/common/styles/font/_font.scss +0 -99
- package/common/styles/utilities/_general.scss +0 -65
- package/common/styles/utilities/_pad.scss +0 -36
- package/common/styles/utilities/_pull.scss +0 -36
- package/common/styles/utilities/_push.scss +0 -36
- package/common/styles/utilities/_size.scss +0 -24
- package/common/styles/utilities/_text.scss +0 -105
- package/common/styles/utilities/_utilities.scss +0 -15
- package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
- package/dialogs/dialog.component.scss +0 -49
- package/dialogs/index.d.ts +0 -1
- package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -16
- package/dialogs/window-dialog/window-dialog.component.scss +0 -31
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -7
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -13
- package/dynamic-menu/dynamic-menu.component.scss +0 -0
- package/dynamic-menu/index.d.ts +0 -1
- package/esm2020/breadcrumbs/index.mjs +0 -2
- package/esm2020/breadcrumbs/public-api.mjs +0 -4
- package/esm2020/common/index.mjs +0 -2
- package/esm2020/common/public-api.mjs +0 -39
- package/esm2020/dialogs/index.mjs +0 -2
- package/esm2020/dialogs/public-api.mjs +0 -9
- package/esm2020/dynamic-menu/index.mjs +0 -2
- package/esm2020/file/index.mjs +0 -2
- package/esm2020/file/public-api.mjs +0 -7
- package/esm2020/index.mjs +0 -2
- package/esm2020/json-formatter/index.mjs +0 -2
- package/esm2020/json-formatter/public-api.mjs +0 -3
- package/esm2020/layout/index.mjs +0 -2
- package/esm2020/layout/public-api.mjs +0 -13
- package/esm2020/menu/index.mjs +0 -2
- package/esm2020/menu/public-api.mjs +0 -3
- package/esm2020/message/index.mjs +0 -2
- package/esm2020/message/public-api.mjs +0 -3
- package/esm2020/search/index.mjs +0 -2
- package/esm2020/search/public-api.mjs +0 -4
- package/esm2020/side-sheet/index.mjs +0 -2
- package/esm2020/side-sheet/public-api.mjs +0 -6
- package/esm2020/user-profile/index.mjs +0 -2
- package/file/file-input/file-input.component.scss +0 -22
- package/file/file-upload/file-upload.component.scss +0 -34
- package/file/index.d.ts +0 -1
- package/json-formatter/index.d.ts +0 -1
- package/json-formatter/json-formatter.component.scss +0 -74
- package/layout/index.d.ts +0 -1
- package/layout/layout-card-over/layout-card-over.component.scss +0 -45
- package/layout/layout-footer/layout-footer.component.scss +0 -4
- package/layout/layout-manage-list/layout-manage-list.component.scss +0 -82
- package/layout/layout-nav/README.md +0 -46
- package/layout/layout-nav/layout-nav.component.scss +0 -54
- package/layout/layout-nav-list/layout-nav-list.component.scss +0 -115
- package/layout/layout.component.scss +0 -16
- package/layout/navigation-drawer/navigation-drawer.component.scss +0 -81
- package/menu/index.d.ts +0 -1
- package/menu/menu.component.scss +0 -51
- package/message/index.d.ts +0 -1
- package/message/message.component.scss +0 -32
- package/schematics/README.md +0 -66
- package/schematics/ng-add/files/theme.scss +0 -64
- package/search/index.d.ts +0 -1
- package/search/search-box/README.md +0 -62
- package/search/search-box/search-box.component.scss +0 -37
- package/search/search-input/README.md +0 -65
- package/search/search-input/search-input.component.scss +0 -75
- package/side-sheet/index.d.ts +0 -1
- package/side-sheet/side-sheet.scss +0 -68
- package/theming/prebuilt/blue-grey-deep-orange.css +0 -2815
- package/theming/prebuilt/blue-grey-deep-orange.css.map +0 -1
- package/theming/prebuilt/blue-grey-deep-orange.scss +0 -20
- package/theming/prebuilt/blue-orange.css +0 -2815
- package/theming/prebuilt/blue-orange.css.map +0 -1
- package/theming/prebuilt/blue-orange.scss +0 -20
- package/theming/prebuilt/indigo-pink.css +0 -2815
- package/theming/prebuilt/indigo-pink.css.map +0 -1
- package/theming/prebuilt/indigo-pink.scss +0 -20
- package/theming/prebuilt/orange-light-blue.css +0 -2815
- package/theming/prebuilt/orange-light-blue.css.map +0 -1
- package/theming/prebuilt/orange-light-blue.scss +0 -20
- package/theming/prebuilt/teal-orange.css +0 -2815
- package/theming/prebuilt/teal-orange.css.map +0 -1
- package/theming/prebuilt/teal-orange.scss +0 -20
- package/user-profile/index.d.ts +0 -1
- package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -41
package/message/README.md
CHANGED
@@ -9,25 +9,25 @@ But you can also set a `color` from our lib and it can be applied in the compone
|
|
9
9
|
|
10
10
|
#### Inputs
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
22
|
|
23
23
|
#### Methods
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
31
|
|
32
32
|
## Setup
|
33
33
|
|
@@ -50,8 +50,16 @@ export class MyModule {}
|
|
50
50
|
Example for HTML usage:
|
51
51
|
|
52
52
|
```html
|
53
|
-
<td-message
|
54
|
-
|
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>
|
55
63
|
</td-message>
|
56
64
|
<button mat-button color="accent" (click)="messageDemo.toggle()">
|
57
65
|
Toggle Visibility
|
@@ -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;
|
@@ -15,7 +15,7 @@ export declare class TdMessageComponent implements AfterViewInit {
|
|
15
15
|
private _hidden;
|
16
16
|
private _animating;
|
17
17
|
private _initialized;
|
18
|
-
_childElement
|
18
|
+
_childElement?: TdMessageContainerDirective;
|
19
19
|
_template: TemplateRef<any>;
|
20
20
|
/**
|
21
21
|
* Binding host to tdCollapse animation
|
@@ -30,20 +30,20 @@ export declare class TdMessageComponent implements AfterViewInit {
|
|
30
30
|
*
|
31
31
|
* Sets the label of the message.
|
32
32
|
*/
|
33
|
-
label
|
33
|
+
label?: string;
|
34
34
|
/**
|
35
35
|
* sublabel?: string
|
36
36
|
*
|
37
37
|
* Sets the sublabel of the message.
|
38
38
|
*/
|
39
|
-
sublabel
|
39
|
+
sublabel?: string;
|
40
40
|
/**
|
41
41
|
* icon?: string
|
42
42
|
*
|
43
43
|
* The icon to be displayed before the title.
|
44
44
|
* Defaults to `info_outline` icon
|
45
45
|
*/
|
46
|
-
icon
|
46
|
+
icon?: string;
|
47
47
|
/**
|
48
48
|
* color?: primary | accent | warn
|
49
49
|
*
|
File without changes
|
package/package.json
CHANGED
@@ -1,56 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@covalent/core",
|
3
|
-
"version": "4.
|
4
|
-
"description": "Teradata UI Platform built on Angular Material",
|
5
|
-
"keywords": [
|
6
|
-
"angular",
|
7
|
-
"material",
|
8
|
-
"material design",
|
9
|
-
"components",
|
10
|
-
"covalent",
|
11
|
-
"reusable"
|
12
|
-
],
|
13
|
-
"schematics": "./schematics/collection.json",
|
14
|
-
"ng-update": {
|
15
|
-
"migrations": "./schematics/migration.json"
|
16
|
-
},
|
17
|
-
"repository": {
|
18
|
-
"type": "git",
|
19
|
-
"url": "https://github.com/teradata/covalent.git"
|
20
|
-
},
|
21
|
-
"bugs": {
|
22
|
-
"url": "https://github.com/teradata/covalent/issues"
|
23
|
-
},
|
24
|
-
"license": "MIT",
|
25
|
-
"author": "Teradata UX",
|
26
|
-
"contributors": [
|
27
|
-
"Kyle Ledbetter <kyle.ledbetter@teradata.com>",
|
28
|
-
"Richa Vyas <richa.vyas@teradata.com>",
|
29
|
-
"Ed Morales <eduardo.morales@teradata.com>",
|
30
|
-
"Jason Weaver <jason.weaver@teradata.com>",
|
31
|
-
"Jeremy Wilken <jeremy.wilken@teradata.com>",
|
32
|
-
"Jeremy Smartt <jeremy.smartt@teradata.com>",
|
33
|
-
"Steven Ov <steven.ov@teradata.com>"
|
34
|
-
],
|
35
|
-
"peerDependencies": {
|
36
|
-
"@angular/common": "^12.0.0-0 || ^13.0.0-0",
|
37
|
-
"@angular/core": "^12.0.0-0 || ^13.0.0-0",
|
38
|
-
"@angular/forms": "^12.0.0-0 || ^13.0.0-0",
|
39
|
-
"@angular/router": "^12.0.0-0 || ^13.0.0-0",
|
40
|
-
"@angular/cdk": "^12.0.0-0 || ^13.0.0-0",
|
41
|
-
"@angular/material": "^12.0.0-0 || ^13.0.0-0"
|
42
|
-
},
|
43
|
-
"module": "fesm2015/covalent-core.mjs",
|
44
|
-
"es2020": "fesm2020/covalent-core.mjs",
|
45
|
-
"esm2020": "esm2020/covalent-core.mjs",
|
46
|
-
"fesm2020": "fesm2020/covalent-core.mjs",
|
47
|
-
"fesm2015": "fesm2015/covalent-core.mjs",
|
48
|
-
"typings": "covalent-core.d.ts",
|
3
|
+
"version": "4.1.1-beta.3",
|
49
4
|
"exports": {
|
50
|
-
"./package.json": {
|
51
|
-
"default": "./package.json"
|
52
|
-
},
|
53
5
|
".": {
|
6
|
+
"sass": "./theming/_all-theme.scss",
|
54
7
|
"types": "./covalent-core.d.ts",
|
55
8
|
"esm2020": "./esm2020/covalent-core.mjs",
|
56
9
|
"es2020": "./fesm2020/covalent-core.mjs",
|
@@ -58,6 +11,9 @@
|
|
58
11
|
"node": "./fesm2015/covalent-core.mjs",
|
59
12
|
"default": "./fesm2020/covalent-core.mjs"
|
60
13
|
},
|
14
|
+
"./package.json": {
|
15
|
+
"default": "./package.json"
|
16
|
+
},
|
61
17
|
"./breadcrumbs": {
|
62
18
|
"types": "./breadcrumbs/covalent-core-breadcrumbs.d.ts",
|
63
19
|
"esm2020": "./esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs",
|
@@ -155,11 +111,26 @@
|
|
155
111
|
"default": "./fesm2020/covalent-core-user-profile.mjs"
|
156
112
|
}
|
157
113
|
},
|
158
|
-
"
|
114
|
+
"peerDependencies": {
|
115
|
+
"@angular/common": "^13.2.0",
|
116
|
+
"@angular/core": "^13.2.0",
|
117
|
+
"@angular/router": "~13.2.0",
|
118
|
+
"@angular/platform-browser": "~13.2.0",
|
119
|
+
"@angular/material": "^13.2.1",
|
120
|
+
"rxjs": "~7.4.0",
|
121
|
+
"@angular/animations": "~13.2.0",
|
122
|
+
"@angular/forms": "~13.2.0",
|
123
|
+
"@angular/cdk": "^13.2.1",
|
124
|
+
"@angular/platform-browser-dynamic": "~13.2.0"
|
125
|
+
},
|
159
126
|
"dependencies": {
|
160
127
|
"tslib": "^2.3.0"
|
161
128
|
},
|
162
|
-
"
|
163
|
-
|
164
|
-
|
165
|
-
|
129
|
+
"module": "fesm2015/covalent-core.mjs",
|
130
|
+
"es2020": "fesm2020/covalent-core.mjs",
|
131
|
+
"esm2020": "esm2020/covalent-core.mjs",
|
132
|
+
"fesm2020": "fesm2020/covalent-core.mjs",
|
133
|
+
"fesm2015": "fesm2015/covalent-core.mjs",
|
134
|
+
"typings": "covalent-core.d.ts",
|
135
|
+
"sideEffects": false
|
136
|
+
}
|
File without changes
|
package/search/README.md
CHANGED
@@ -6,56 +6,56 @@
|
|
6
6
|
|
7
7
|
#### Inputs
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
23
|
|
24
24
|
#### Events
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
38
|
|
39
39
|
## Usage
|
40
40
|
|
41
41
|
Example for HTML usage:
|
42
42
|
|
43
43
|
```html
|
44
|
-
<td-search-box
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
44
|
+
<td-search-box
|
45
|
+
backIcon="arrow_back"
|
46
|
+
placeholder="Search here"
|
47
|
+
[(ngModel)]="searchInputTerm"
|
48
|
+
[showUnderline]="false|true"
|
49
|
+
[debounce]="500"
|
50
|
+
[alwaysVisible]="false|true"
|
51
|
+
(searchDebounce)="searchInputTerm = $event"
|
52
|
+
(search)="searchInputTerm = $event"
|
53
|
+
(clear)="searchInputTerm = ''"
|
54
|
+
(blur)="onBlurEvent()"
|
55
|
+
>
|
55
56
|
</td-search-box>
|
56
57
|
```
|
57
58
|
|
58
|
-
|
59
59
|
# TdSearchInputComponent: td-search-input
|
60
60
|
|
61
61
|
`td-search-input` element to generate a search input with its animated cancel button.
|
@@ -64,53 +64,54 @@ Example for HTML usage:
|
|
64
64
|
|
65
65
|
#### Inputs
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
67
|
+
- debounce?: number
|
68
|
+
- Debounce timeout between keypresses. Defaults to 400.
|
69
|
+
- placeholder?: string
|
70
|
+
- Placeholder for the underlying input component.
|
71
|
+
- showUnderline?: boolean
|
72
|
+
- Sets if the input underline should be visible. Defaults to 'false'.
|
73
|
+
- clearIcon?: string
|
74
|
+
- The icon used to clear the search input. Defaults to 'cancel' icon.
|
75
|
+
- appearance?: MatFormFieldAppearance
|
76
|
+
- Appearance style for the underlying input component.
|
77
77
|
|
78
78
|
#### Events
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
80
|
+
- searchDebounce: function
|
81
|
+
- Event emitted after the [debounce] timeout.
|
82
|
+
- Emits a [string].
|
83
|
+
- search: function
|
84
|
+
- Event emitted after the key enter has been pressed.
|
85
|
+
- Emits a [string].
|
86
|
+
- clear: function
|
87
|
+
- Event emitted after the clear icon has been clicked.
|
88
|
+
- Emits [void].
|
89
|
+
- blur: function
|
90
|
+
- Event emitted after the blur event has been called in underlying input.
|
91
|
+
- Emits [void].
|
92
92
|
|
93
93
|
#### Methods
|
94
94
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
95
|
+
- focus: function
|
96
|
+
- Method to focus to underlying input.
|
97
|
+
- clearSearch: function
|
98
|
+
- Method to clear the underlying input.
|
99
99
|
|
100
100
|
## Usage
|
101
101
|
|
102
102
|
Example for HTML usage:
|
103
103
|
|
104
104
|
```html
|
105
|
-
<td-search-input
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
105
|
+
<td-search-input
|
106
|
+
appearance="legacy|standard|fill|outline"
|
107
|
+
placeholder="Search here"
|
108
|
+
[(ngModel)]="searchInputTerm"
|
109
|
+
[showUnderline]="false|true"
|
110
|
+
[debounce]="500"
|
111
|
+
(searchDebounce)="searchInputTerm = $event"
|
112
|
+
(search)="searchInputTerm = $event"
|
113
|
+
(clear)="searchInputTerm = ''"
|
114
|
+
>
|
114
115
|
</td-search-input>
|
115
116
|
```
|
116
117
|
|
File without changes
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
2
3
|
import { TdSearchInputComponent } from '../search-input/search-input.component';
|
3
|
-
import { IControlValueAccessor } from '@covalent/core/common';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class TdSearchBoxBase {
|
6
6
|
_changeDetectorRef: ChangeDetectorRef;
|
7
7
|
constructor(_changeDetectorRef: ChangeDetectorRef);
|
8
8
|
}
|
9
|
-
export declare
|
10
|
-
|
9
|
+
export declare class TdSearchBoxComponent implements ControlValueAccessor {
|
10
|
+
private _changeDetectorRef;
|
11
11
|
private _searchVisible;
|
12
|
-
_searchInput
|
12
|
+
_searchInput?: TdSearchInputComponent;
|
13
13
|
get searchVisible(): boolean;
|
14
14
|
/**
|
15
15
|
* backIcon?: string
|
@@ -49,6 +49,7 @@ export declare class TdSearchBoxComponent extends _TdSearchBoxMixinBase implemen
|
|
49
49
|
* Placeholder for the underlying input component.
|
50
50
|
*/
|
51
51
|
placeholder: string;
|
52
|
+
value: unknown;
|
52
53
|
/**
|
53
54
|
* searchDebounce: function($event)
|
54
55
|
* Event emitted after the [debounce] timeout.
|
@@ -68,8 +69,11 @@ export declare class TdSearchBoxComponent extends _TdSearchBoxMixinBase implemen
|
|
68
69
|
* blur: function()
|
69
70
|
* Event emitted after the blur event has been called in underlying input.
|
70
71
|
*/
|
71
|
-
|
72
|
+
blurSearch: EventEmitter<void>;
|
72
73
|
constructor(_changeDetectorRef: ChangeDetectorRef);
|
74
|
+
writeValue(value: unknown): void;
|
75
|
+
registerOnChange(): void;
|
76
|
+
registerOnTouched(): void;
|
73
77
|
/**
|
74
78
|
* Method executed when the search icon is clicked.
|
75
79
|
*/
|
@@ -80,5 +84,5 @@ export declare class TdSearchBoxComponent extends _TdSearchBoxMixinBase implemen
|
|
80
84
|
handleClear(): void;
|
81
85
|
handleBlur(): void;
|
82
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchBoxComponent, never>;
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchBoxComponent, "td-search-box", never, { "
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchBoxComponent, "td-search-box", never, { "backIcon": "backIcon"; "searchIcon": "searchIcon"; "clearIcon": "clearIcon"; "showUnderline": "showUnderline"; "debounce": "debounce"; "alwaysVisible": "alwaysVisible"; "placeholder": "placeholder"; "value": "value"; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never>;
|
84
88
|
}
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
2
3
|
import { Dir } from '@angular/cdk/bidi';
|
3
4
|
import { MatInput } from '@angular/material/input';
|
4
5
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
5
|
-
import { IControlValueAccessor } from '@covalent/core/common';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class TdSearchInputBase {
|
8
8
|
_changeDetectorRef: ChangeDetectorRef;
|
9
9
|
constructor(_changeDetectorRef: ChangeDetectorRef);
|
10
10
|
}
|
11
|
-
export declare
|
12
|
-
export declare class TdSearchInputComponent extends _TdSearchInputMixinBase implements IControlValueAccessor, OnInit {
|
11
|
+
export declare class TdSearchInputComponent implements ControlValueAccessor, OnInit {
|
13
12
|
private _dir;
|
14
|
-
|
13
|
+
private _changeDetectorRef;
|
14
|
+
_input?: MatInput;
|
15
15
|
/**
|
16
16
|
* appearance?: MatFormFieldAppearance
|
17
17
|
* Appearance style for the underlying input component.
|
@@ -38,6 +38,7 @@ export declare class TdSearchInputComponent extends _TdSearchInputMixinBase impl
|
|
38
38
|
* Defaults to 'cancel' icon.
|
39
39
|
*/
|
40
40
|
clearIcon: string;
|
41
|
+
value?: unknown;
|
41
42
|
/**
|
42
43
|
* searchDebounce: function($event)
|
43
44
|
* Event emitted after the [debounce] timeout.
|
@@ -57,10 +58,13 @@ export declare class TdSearchInputComponent extends _TdSearchInputMixinBase impl
|
|
57
58
|
* blur: function()
|
58
59
|
* Event emitted after the blur event has been called in underlying input.
|
59
60
|
*/
|
60
|
-
|
61
|
+
blurSearch: EventEmitter<void>;
|
61
62
|
get isRTL(): boolean;
|
62
63
|
constructor(_dir: Dir, _changeDetectorRef: ChangeDetectorRef);
|
63
64
|
ngOnInit(): void;
|
65
|
+
writeValue(value: unknown): void;
|
66
|
+
registerOnChange(): void;
|
67
|
+
registerOnTouched(): void;
|
64
68
|
/**
|
65
69
|
* Method to focus to underlying input.
|
66
70
|
*/
|
@@ -74,5 +78,5 @@ export declare class TdSearchInputComponent extends _TdSearchInputMixinBase impl
|
|
74
78
|
clearSearch(): void;
|
75
79
|
private _searchTermChanged;
|
76
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdSearchInputComponent, [{ optional: true; }, null]>;
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchInputComponent, "td-search-input", never, { "
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdSearchInputComponent, "td-search-input", never, { "appearance": "appearance"; "showUnderline": "showUnderline"; "debounce": "debounce"; "placeholder": "placeholder"; "clearIcon": "clearIcon"; "value": "value"; }, { "searchDebounce": "searchDebounce"; "search": "search"; "clear": "clear"; "blurSearch": "blurSearch"; }, never, never>;
|
78
82
|
}
|
@@ -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
|
+
```
|