@covalent/core 4.0.0-beta.2 → 4.1.0-develop.10
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 +5 -4
- package/breadcrumbs/README.md +21 -17
- package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -1
- package/breadcrumbs/breadcrumbs.component.d.ts +3 -4
- 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/material-icons.css +1 -111
- package/common/material-icons.css.map +1 -1
- package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
- package/common/platform.css +1 -16819
- package/common/platform.css.map +1 -1
- package/common/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/styles/_elevation.scss +7 -2
- package/common/styles/_typography-functions.scss +10 -2
- package/common/styles/_variables.scss +2 -1
- package/common/styles/core/_button.scss +35 -5
- package/common/styles/core/_card.scss +11 -6
- package/common/styles/core/_whiteframe.scss +16 -8
- 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 +25 -34
- 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 +41 -68
- 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 +22 -51
- 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 +37 -124
- package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +47 -53
- package/esm2020/layout/layout-toggle.class.mjs +12 -15
- package/esm2020/layout/layout.component.mjs +22 -43
- 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 +40 -85
- 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 +148 -233
- 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 +194 -747
- 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 +54 -80
- 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 +229 -273
- 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 +353 -767
- 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 +7 -7
- 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.component.d.ts +4 -4
- 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 +9 -9
- 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.component.d.ts +4 -4
- 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 +36 -55
- 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/theming/prebuilt/blue-grey-deep-orange.css +1 -2815
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.css +1 -2815
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/indigo-pink.css +1 -2815
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.css +1 -2815
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/teal-orange.css +1 -2815
- package/theming/prebuilt/teal-orange.css.map +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.scss +0 -3
- package/common/platform.scss +0 -7
- 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.scss +0 -20
- package/theming/prebuilt/blue-orange.scss +0 -20
- package/theming/prebuilt/indigo-pink.scss +0 -20
- package/theming/prebuilt/orange-light-blue.scss +0 -20
- 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
@@ -1,82 +0,0 @@
|
|
1
|
-
@import '../../common/styles/core/whiteframe';
|
2
|
-
|
3
|
-
:host {
|
4
|
-
display: flex;
|
5
|
-
margin: 0;
|
6
|
-
width: 100%;
|
7
|
-
min-height: 100%;
|
8
|
-
height: 100%;
|
9
|
-
overflow: hidden;
|
10
|
-
|
11
|
-
mat-sidenav-container.td-layout-manage-list {
|
12
|
-
// [flex]
|
13
|
-
flex: 1;
|
14
|
-
|
15
|
-
& > .mat-drawer > .mat-drawer-inner-container {
|
16
|
-
&.mat-drawer-opened,
|
17
|
-
&.mat-drawer-opening,
|
18
|
-
&.mat-drawer-closed,
|
19
|
-
&.mat-drawer-closing {
|
20
|
-
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 20%);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
.td-layout-manage-list-sidenav {
|
26
|
-
text-align: start;
|
27
|
-
// [flex]
|
28
|
-
flex: 1;
|
29
|
-
// [md-content]
|
30
|
-
display: block;
|
31
|
-
position: relative;
|
32
|
-
overflow: auto;
|
33
|
-
-webkit-overflow-scrolling: touch;
|
34
|
-
}
|
35
|
-
|
36
|
-
.td-layout-manage-list-main {
|
37
|
-
margin: 0;
|
38
|
-
width: 100%;
|
39
|
-
min-height: 100%;
|
40
|
-
height: 100%;
|
41
|
-
position: relative;
|
42
|
-
overflow: auto;
|
43
|
-
// [layout="column"]
|
44
|
-
flex-direction: column;
|
45
|
-
box-sizing: border-box;
|
46
|
-
display: flex;
|
47
|
-
|
48
|
-
.td-layout-manage-list-content {
|
49
|
-
// [md-content]
|
50
|
-
display: block;
|
51
|
-
position: relative;
|
52
|
-
overflow: auto;
|
53
|
-
-webkit-overflow-scrolling: touch;
|
54
|
-
// [flex]
|
55
|
-
flex: 1;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
:host ::ng-deep {
|
61
|
-
mat-sidenav-container.td-layout-manage-list {
|
62
|
-
& > .mat-drawer-content {
|
63
|
-
flex-grow: 1;
|
64
|
-
}
|
65
|
-
|
66
|
-
/* Ensure the left sidenav is a flex column & 100% height */
|
67
|
-
& > .mat-drawer > .mat-drawer-inner-container {
|
68
|
-
box-shadow: $whiteframe-shadow-1dp;
|
69
|
-
box-sizing: border-box;
|
70
|
-
display: flex;
|
71
|
-
flex-direction: column;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
mat-nav-list a[mat-list-item] .mat-list-item-content {
|
76
|
-
font-size: 14px;
|
77
|
-
}
|
78
|
-
|
79
|
-
.mat-toolbar {
|
80
|
-
font-weight: 400;
|
81
|
-
}
|
82
|
-
}
|
@@ -1,46 +0,0 @@
|
|
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
|
-
|
6
|
-
## API Summary
|
7
|
-
|
8
|
-
#### Inputs
|
9
|
-
|
10
|
-
+ toolbarTitle: string
|
11
|
-
+ Title set in toolbar.
|
12
|
-
+ icon: string
|
13
|
-
+ Icon name to be displayed before the title.
|
14
|
-
+ logo: string
|
15
|
-
+ Logo icon name to be displayed before the title.
|
16
|
-
+ If [icon] is set, then this will not be shown.
|
17
|
-
+ color: string
|
18
|
-
+ Optional toolbar color.
|
19
|
-
+ Defaults to primary.
|
20
|
-
+ navigationRoute: string
|
21
|
-
+ Option to set the combined route for the icon, logo, and toolbarTitle.
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
`[td-menu-button]` is used to include a menu button before the logo and title.
|
26
|
-
|
27
|
-
`[td-toolbar-content]` is used to include items in the toolbar.
|
28
|
-
|
29
|
-
`td-layout-footer` is used to include items in the footer.
|
30
|
-
|
31
|
-
Example for Nav Layout:
|
32
|
-
|
33
|
-
```html
|
34
|
-
<td-layout-nav toolbarTitle="title" logo="logo" icon="icon" color="primary" navigationRoute="/">
|
35
|
-
<button mat-icon-button td-menu-button> // can use `[tdLayoutToggle]` to toggle main sidenav
|
36
|
-
<mat-icon>menu</mat-icon>
|
37
|
-
</button>
|
38
|
-
<div td-toolbar-content>
|
39
|
-
.. main toolbar content
|
40
|
-
</div>
|
41
|
-
... main content
|
42
|
-
<td-layout-footer color="primary"> // color is optional
|
43
|
-
... main footer content
|
44
|
-
</td-layout-footer>
|
45
|
-
</td-layout-nav>
|
46
|
-
```
|
@@ -1,54 +0,0 @@
|
|
1
|
-
.td-menu-button {
|
2
|
-
margin-left: 0;
|
3
|
-
|
4
|
-
::ng-deep [dir='rtl'] & {
|
5
|
-
margin-right: 0;
|
6
|
-
margin-left: 6px;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
:host {
|
11
|
-
display: flex;
|
12
|
-
margin: 0;
|
13
|
-
width: 100%;
|
14
|
-
min-height: 100%;
|
15
|
-
height: 100%;
|
16
|
-
overflow: hidden;
|
17
|
-
|
18
|
-
.td-layout-nav-wrapper {
|
19
|
-
// [layout="column"]
|
20
|
-
flex-direction: column;
|
21
|
-
box-sizing: border-box;
|
22
|
-
display: flex;
|
23
|
-
// [layout-fill]
|
24
|
-
margin: 0;
|
25
|
-
width: 100%;
|
26
|
-
min-height: 100%;
|
27
|
-
height: 100%;
|
28
|
-
|
29
|
-
.td-layout-nav-toolbar-content {
|
30
|
-
// [layout="row"]
|
31
|
-
flex-direction: row;
|
32
|
-
box-sizing: border-box;
|
33
|
-
display: flex;
|
34
|
-
// [layout-align="start center"]
|
35
|
-
align-items: center;
|
36
|
-
align-content: center;
|
37
|
-
max-width: 100%;
|
38
|
-
justify-content: flex-start;
|
39
|
-
}
|
40
|
-
|
41
|
-
.td-layout-nav-content {
|
42
|
-
// [layout="column"]
|
43
|
-
flex-direction: column;
|
44
|
-
box-sizing: border-box;
|
45
|
-
display: flex;
|
46
|
-
// [flex]
|
47
|
-
flex: 1;
|
48
|
-
// [md-content]
|
49
|
-
position: relative;
|
50
|
-
overflow: auto;
|
51
|
-
-webkit-overflow-scrolling: touch;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
@@ -1,115 +0,0 @@
|
|
1
|
-
@import '../../common/styles/core/whiteframe';
|
2
|
-
|
3
|
-
:host {
|
4
|
-
.td-layout-nav-list-wrapper > .mat-sidenav-container {
|
5
|
-
> mat-sidenav.mat-drawer-side {
|
6
|
-
border-right: 0;
|
7
|
-
|
8
|
-
[dir='rtl'] & {
|
9
|
-
border-left: 0;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
}
|
13
|
-
// [layout-fill]
|
14
|
-
margin: 0;
|
15
|
-
width: 100%;
|
16
|
-
min-height: 100%;
|
17
|
-
height: 100%;
|
18
|
-
overflow: hidden;
|
19
|
-
// [layout="column"]
|
20
|
-
flex-direction: column;
|
21
|
-
box-sizing: border-box;
|
22
|
-
display: flex;
|
23
|
-
// [flex]
|
24
|
-
flex: 1;
|
25
|
-
|
26
|
-
.td-layout-nav-list-wrapper {
|
27
|
-
// [layout="column"]
|
28
|
-
flex-direction: column;
|
29
|
-
box-sizing: border-box;
|
30
|
-
display: flex;
|
31
|
-
// [flex]
|
32
|
-
flex: 1;
|
33
|
-
// [md-content]
|
34
|
-
position: relative;
|
35
|
-
overflow: auto;
|
36
|
-
-webkit-overflow-scrolling: touch;
|
37
|
-
|
38
|
-
.td-layout-nav-list-toolbar-content {
|
39
|
-
// [layout="row"]
|
40
|
-
flex-direction: row;
|
41
|
-
box-sizing: border-box;
|
42
|
-
display: flex;
|
43
|
-
// [layout-align="start center"]
|
44
|
-
align-items: center;
|
45
|
-
align-content: center;
|
46
|
-
max-width: 100%;
|
47
|
-
justify-content: flex-start;
|
48
|
-
}
|
49
|
-
|
50
|
-
.td-layout-nav-list-content {
|
51
|
-
text-align: start;
|
52
|
-
// [flex]
|
53
|
-
flex: 1;
|
54
|
-
// [md-content]
|
55
|
-
display: block;
|
56
|
-
position: relative;
|
57
|
-
overflow: auto;
|
58
|
-
-webkit-overflow-scrolling: touch;
|
59
|
-
}
|
60
|
-
|
61
|
-
.td-layout-nav-list-main {
|
62
|
-
// [layout="column"]
|
63
|
-
flex-direction: column;
|
64
|
-
box-sizing: border-box;
|
65
|
-
display: flex;
|
66
|
-
// [layout-fill]
|
67
|
-
margin: 0;
|
68
|
-
width: 100%;
|
69
|
-
min-height: 100%;
|
70
|
-
height: 100%;
|
71
|
-
position: relative;
|
72
|
-
overflow: auto;
|
73
|
-
|
74
|
-
.td-layout-nav-list-content {
|
75
|
-
// [md-content]
|
76
|
-
display: block;
|
77
|
-
position: relative;
|
78
|
-
overflow: auto;
|
79
|
-
-webkit-overflow-scrolling: touch;
|
80
|
-
// [flex]
|
81
|
-
flex: 1;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
mat-sidenav-container.td-layout-nav-list {
|
86
|
-
// [flex]
|
87
|
-
flex: 1;
|
88
|
-
|
89
|
-
& > mat-sidenav {
|
90
|
-
&.mat-drawer-opened,
|
91
|
-
&.mat-drawer-opening,
|
92
|
-
&.mat-drawer-closed,
|
93
|
-
&.mat-drawer-closing {
|
94
|
-
box-shadow: none;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
:host ::ng-deep {
|
102
|
-
mat-sidenav-container.td-layout-nav-list {
|
103
|
-
& > .mat-drawer-content {
|
104
|
-
flex-grow: 1;
|
105
|
-
}
|
106
|
-
|
107
|
-
/* Ensure the left sidenav is a flex column & 100% height */
|
108
|
-
& > .mat-drawer > .mat-drawer-inner-container {
|
109
|
-
box-shadow: $whiteframe-shadow-1dp;
|
110
|
-
box-sizing: border-box;
|
111
|
-
display: flex;
|
112
|
-
flex-direction: column;
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: flex;
|
3
|
-
margin: 0;
|
4
|
-
width: 100%;
|
5
|
-
min-height: 100%;
|
6
|
-
height: 100%;
|
7
|
-
overflow: hidden;
|
8
|
-
|
9
|
-
::ng-deep {
|
10
|
-
// Ensuring sidenav content has flex column properties
|
11
|
-
& > mat-sidenav-container .mat-drawer > .mat-drawer-inner-container {
|
12
|
-
display: flex;
|
13
|
-
flex-direction: column;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
@@ -1,81 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
width: 100%;
|
3
|
-
|
4
|
-
.td-navigation-drawer-content,
|
5
|
-
.td-navigation-drawer-menu-content {
|
6
|
-
&.ng-animating {
|
7
|
-
overflow: hidden;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
mat-toolbar {
|
12
|
-
padding: 16px;
|
13
|
-
|
14
|
-
&.td-toolbar-background {
|
15
|
-
background-repeat: no-repeat;
|
16
|
-
background-size: cover;
|
17
|
-
}
|
18
|
-
|
19
|
-
&.td-nagivation-drawer-toolbar {
|
20
|
-
flex-direction: column;
|
21
|
-
height: auto !important;
|
22
|
-
display: block !important;
|
23
|
-
}
|
24
|
-
|
25
|
-
.td-navigation-drawer-toolbar-content {
|
26
|
-
// [layout="row"]
|
27
|
-
flex-direction: row;
|
28
|
-
box-sizing: border-box;
|
29
|
-
display: flex;
|
30
|
-
// [layout-align="start center"]
|
31
|
-
align-items: center;
|
32
|
-
align-content: center;
|
33
|
-
max-width: 100%;
|
34
|
-
justify-content: flex-start;
|
35
|
-
|
36
|
-
.td-nagivation-drawer-toolbar-avatar {
|
37
|
-
border-radius: 50%;
|
38
|
-
height: 60px;
|
39
|
-
width: 60px;
|
40
|
-
margin: 0 12px 12px 0;
|
41
|
-
}
|
42
|
-
|
43
|
-
.td-navigation-drawer-title {
|
44
|
-
white-space: nowrap;
|
45
|
-
overflow: hidden;
|
46
|
-
text-overflow: ellipsis;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
.td-navigation-drawer-name {
|
51
|
-
white-space: nowrap;
|
52
|
-
overflow: hidden;
|
53
|
-
text-overflow: ellipsis;
|
54
|
-
}
|
55
|
-
|
56
|
-
.td-navigation-drawer-menu-toggle {
|
57
|
-
// [layout="row"]
|
58
|
-
flex-direction: row;
|
59
|
-
box-sizing: border-box;
|
60
|
-
display: flex;
|
61
|
-
|
62
|
-
.td-navigation-drawer-label {
|
63
|
-
// [flex]
|
64
|
-
flex: 1;
|
65
|
-
white-space: nowrap;
|
66
|
-
overflow: hidden;
|
67
|
-
text-overflow: ellipsis;
|
68
|
-
}
|
69
|
-
|
70
|
-
.td-navigation-drawer-menu-button {
|
71
|
-
height: 24px;
|
72
|
-
line-height: 24px;
|
73
|
-
width: 24px;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
> div {
|
79
|
-
overflow: hidden;
|
80
|
-
}
|
81
|
-
}
|
package/menu/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './public-api';
|
package/menu/menu.component.scss
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
$td-menu-spacing: 8px !default;
|
2
|
-
|
3
|
-
:host {
|
4
|
-
margin-top: -$td-menu-spacing;
|
5
|
-
margin-bottom: -$td-menu-spacing;
|
6
|
-
// [layout]
|
7
|
-
box-sizing: border-box;
|
8
|
-
display: flex;
|
9
|
-
// [layout="column"]
|
10
|
-
flex-direction: column;
|
11
|
-
}
|
12
|
-
|
13
|
-
:host ::ng-deep {
|
14
|
-
[td-menu-header] {
|
15
|
-
padding: $td-menu-spacing;
|
16
|
-
text-align: center;
|
17
|
-
}
|
18
|
-
|
19
|
-
mat-list,
|
20
|
-
mat-list[dense],
|
21
|
-
mat-nav-list,
|
22
|
-
mat-nav-list[dense] {
|
23
|
-
a[mat-list-item].mat-2-line,
|
24
|
-
mat-list-item.mat-2-line {
|
25
|
-
height: auto;
|
26
|
-
|
27
|
-
& .mat-list-item-content {
|
28
|
-
height: auto;
|
29
|
-
padding: $td-menu-spacing;
|
30
|
-
|
31
|
-
.mat-list-text {
|
32
|
-
padding-right: 0;
|
33
|
-
|
34
|
-
[dir='rtl'] & {
|
35
|
-
padding-left: 0;
|
36
|
-
padding-right: 16px;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
[matLine] + [matLine] {
|
41
|
-
margin-top: calc($td-menu-spacing / 2);
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
.td-menu-content {
|
49
|
-
max-height: calc(50vh);
|
50
|
-
overflow-y: auto;
|
51
|
-
}
|
package/message/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './public-api';
|
@@ -1,32 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
|
4
|
-
.td-message-wrapper {
|
5
|
-
padding: 8px 16px;
|
6
|
-
min-height: 52px;
|
7
|
-
// [layout]
|
8
|
-
box-sizing: border-box;
|
9
|
-
display: flex;
|
10
|
-
// [layout="row"]
|
11
|
-
flex-direction: row;
|
12
|
-
// [layout-align="start center"]
|
13
|
-
align-items: center;
|
14
|
-
align-content: center;
|
15
|
-
max-width: 100%;
|
16
|
-
justify-content: flex-start;
|
17
|
-
|
18
|
-
.td-message-labels {
|
19
|
-
// [flex]
|
20
|
-
flex: 1;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
.td-message-icon {
|
26
|
-
margin-right: 16px;
|
27
|
-
|
28
|
-
::ng-deep [dir='rtl'] & {
|
29
|
-
margin-left: 16px;
|
30
|
-
margin-right: 0;
|
31
|
-
}
|
32
|
-
}
|
package/schematics/README.md
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
# Covalent schematics
|
2
|
-
Utilizes the Angular Schematics workflow tool to create Covalent applications
|
3
|
-
|
4
|
-
## Prerequisites
|
5
|
-
|
6
|
-
Prerequisites to run Covalent schematics in your project:
|
7
|
-
|
8
|
-
```
|
9
|
-
Node : v8.15.0
|
10
|
-
Npm : 6.7.0
|
11
|
-
Typescript : 3.1.3
|
12
|
-
Tslint : 5.12.1
|
13
|
-
Angular CLI : 7.2.2
|
14
|
-
```
|
15
|
-
|
16
|
-
## Install Covalent core schematics
|
17
|
-
The following will:
|
18
|
-
- Ensure project dependencies are placed in package.json
|
19
|
-
- Install all core components
|
20
|
-
- Optionally install dynamic forms, http service, code highlight, markdown parser, flavored markdown parser
|
21
|
-
- Add Covalent theme file to your src folder
|
22
|
-
- Include theme.scss in angular config
|
23
|
-
|
24
|
-
### Build locally
|
25
|
-
To run Covalent core schematic locally, run the following commands:
|
26
|
-
|
27
|
-
(alternatively run `./precommit-schematics.sh` from scripts folder that includes the same commands)
|
28
|
-
|
29
|
-
#### Run test and linter
|
30
|
-
```
|
31
|
-
npm run test-schematics
|
32
|
-
npm run tslint
|
33
|
-
```
|
34
|
-
|
35
|
-
#### Link project
|
36
|
-
```
|
37
|
-
cd ../src/platform/experimental
|
38
|
-
npm link
|
39
|
-
```
|
40
|
-
|
41
|
-
#### Create Angular base project
|
42
|
-
```
|
43
|
-
cd /tmp
|
44
|
-
rm -rf testxyz
|
45
|
-
ng new testxyz
|
46
|
-
```
|
47
|
-
|
48
|
-
#### Run Covalent schematics
|
49
|
-
```
|
50
|
-
cd testxyz
|
51
|
-
npm link @covalent/experimental
|
52
|
-
ng g @covalent/experimental:ng-add
|
53
|
-
```
|
54
|
-
|
55
|
-
#### Check generated files
|
56
|
-
```
|
57
|
-
git status
|
58
|
-
npm ci
|
59
|
-
ng serve
|
60
|
-
```
|
61
|
-
|
62
|
-
### Covalent core `ng add` schematic
|
63
|
-
*NOTE: This command does not work yet and will not work until after Covalent schematics is published to npm. Most likely once it is out of the Covalent experimental area. See above on how to build locally instead.*
|
64
|
-
```
|
65
|
-
ng add @covalent/core
|
66
|
-
```
|
@@ -1,64 +0,0 @@
|
|
1
|
-
@import '~@angular/material/theming';
|
2
|
-
@import '~@covalent/core/theming/all-theme';
|
3
|
-
<% if (markdown) { %>@import '~@covalent/markdown/markdown-theme';<% } %>
|
4
|
-
<% if (highlight) { %>@import '~@covalent/highlight/highlight-theme';<% } %>
|
5
|
-
<% if (flavoredMarkdown) { %>@import '~@covalent/flavored-markdown/flavored-markdown-theme';<% } %>
|
6
|
-
// Plus imports for other components in your app.
|
7
|
-
|
8
|
-
// Custom typography
|
9
|
-
$custom-typography: mat-typography-config(
|
10
|
-
$button: mat-typography-level(14px, 14px, 400)
|
11
|
-
);
|
12
|
-
$custom-toolbar-typography: mat-typography-config(
|
13
|
-
$title: mat-typography-level(20px, 32px, 400)
|
14
|
-
);
|
15
|
-
|
16
|
-
// Include the base styles for Angular Material core. We include this here so that you only
|
17
|
-
// have to load a single css file for Angular Material in your app.
|
18
|
-
@include mat-core($custom-typography);
|
19
|
-
|
20
|
-
// Setting the toolbar to the proper spec weight
|
21
|
-
@include mat-toolbar-typography($custom-toolbar-typography);
|
22
|
-
|
23
|
-
// Include the core styles for Covalent
|
24
|
-
@include covalent-core();
|
25
|
-
|
26
|
-
// Include material icons
|
27
|
-
$mat-font-url: './';
|
28
|
-
@include covalent-material-icons();
|
29
|
-
|
30
|
-
<% if (styleSheetUtilities) { %>
|
31
|
-
// Include covalent utility classes
|
32
|
-
@include covalent-utilities();
|
33
|
-
<% } %>
|
34
|
-
<% if (styleSheetFlexLayout) { %>
|
35
|
-
// Include flex layout classes
|
36
|
-
@include covalent-layout();
|
37
|
-
<% } %>
|
38
|
-
<% if (styleSheetColors) { %>
|
39
|
-
// Include covalent color classes
|
40
|
-
@include covalent-colors();
|
41
|
-
<% } %>
|
42
|
-
|
43
|
-
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
44
|
-
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
45
|
-
// hue.
|
46
|
-
$primary: mat-palette($mat-indigo, 700, 300, 900);
|
47
|
-
$accent: mat-palette($mat-light-blue);
|
48
|
-
|
49
|
-
// The warn palette is optional (defaults to red).
|
50
|
-
$warn: mat-palette($mat-red, 600, 200, 900);
|
51
|
-
|
52
|
-
// Create the theme object (a Sass map containing all of the palettes).
|
53
|
-
$theme: mat-light-theme($primary, $accent, $warn);
|
54
|
-
|
55
|
-
// Include theme styles for core and each component used in your app.
|
56
|
-
// Alternatively, you can import and @include the theme mixins for each component
|
57
|
-
// that you are using.
|
58
|
-
@include angular-material-theme($theme);
|
59
|
-
@include covalent-theme($theme);
|
60
|
-
<% if (markdown) { %>@include covalent-markdown-theme($theme);<% } %>
|
61
|
-
<% if (highlight) { %>
|
62
|
-
@include covalent-highlight-theme(); // OR @import '~highlight.js/styles/vs.css';
|
63
|
-
<% } %>
|
64
|
-
<% if (flavoredMarkdown) { %>@include covalent-flavored-markdown-theme($theme);<% } %>
|
package/search/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './public-api';
|
@@ -1,62 +0,0 @@
|
|
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 backIcon="arrow_back" placeholder="Search here" [(ngModel)]="searchInputTerm" [showUnderline]="false|true" [debounce]="500" [alwaysVisible]="false|true" (searchDebounce)="searchInputTerm = $event" (search)="searchInputTerm = $event" (clear)="searchInputTerm = ''" (blur)="onBlurEvent()">
|
61
|
-
</td-search-box>
|
62
|
-
```
|