@covalent/core 4.0.0-beta.2 → 4.1.0-develop.2
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 +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 +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 +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 +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 +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 +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/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
@@ -1,66 +1,35 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { EventEmitter, forwardRef, Component, ChangeDetectionStrategy, Optional, ViewChild, Input, Output, NgModule } from '@angular/core';
|
3
|
-
import * as
|
3
|
+
import * as i7 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
|
-
import * as
|
5
|
+
import * as i6 from '@angular/forms';
|
6
6
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
7
|
-
import * as
|
7
|
+
import * as i5 from '@angular/material/input';
|
8
8
|
import { MatInput, MatInputModule } from '@angular/material/input';
|
9
|
-
import * as
|
9
|
+
import * as i4 from '@angular/material/icon';
|
10
10
|
import { MatIconModule } from '@angular/material/icon';
|
11
|
-
import * as
|
11
|
+
import * as i3 from '@angular/material/button';
|
12
12
|
import { MatButtonModule } from '@angular/material/button';
|
13
13
|
import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
|
14
14
|
import * as i1 from '@angular/cdk/bidi';
|
15
15
|
import { debounceTime, skip } from 'rxjs/operators';
|
16
|
-
import {
|
16
|
+
import { noop } from 'rxjs';
|
17
17
|
import * as i2 from '@angular/material/form-field';
|
18
18
|
|
19
|
-
function TdSearchInputComponent_span_4_ng_template_1_Template(rf, ctx) { }
|
20
|
-
function TdSearchInputComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
21
|
-
i0.ɵɵelementStart(0, "span", 7);
|
22
|
-
i0.ɵɵtemplate(1, TdSearchInputComponent_span_4_ng_template_1_Template, 0, 0, "ng-template", 8);
|
23
|
-
i0.ɵɵelementEnd();
|
24
|
-
} if (rf & 2) {
|
25
|
-
i0.ɵɵnextContext();
|
26
|
-
const _r3 = i0.ɵɵreference(7);
|
27
|
-
i0.ɵɵadvance(1);
|
28
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r3);
|
29
|
-
} }
|
30
|
-
function TdSearchInputComponent_5_ng_template_0_Template(rf, ctx) { }
|
31
|
-
function TdSearchInputComponent_5_Template(rf, ctx) { if (rf & 1) {
|
32
|
-
i0.ɵɵtemplate(0, TdSearchInputComponent_5_ng_template_0_Template, 0, 0, "ng-template", 8);
|
33
|
-
} if (rf & 2) {
|
34
|
-
i0.ɵɵnextContext();
|
35
|
-
const _r3 = i0.ɵɵreference(7);
|
36
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r3);
|
37
|
-
} }
|
38
|
-
function TdSearchInputComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
39
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
40
|
-
i0.ɵɵelementStart(0, "button", 9);
|
41
|
-
i0.ɵɵlistener("click", function TdSearchInputComponent_ng_template_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.clearSearch(); });
|
42
|
-
i0.ɵɵelementStart(1, "mat-icon");
|
43
|
-
i0.ɵɵtext(2);
|
44
|
-
i0.ɵɵelementEnd();
|
45
|
-
i0.ɵɵelementEnd();
|
46
|
-
} if (rf & 2) {
|
47
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
48
|
-
const _r0 = i0.ɵɵreference(3);
|
49
|
-
i0.ɵɵproperty("@searchState", _r0.value ? "show" : ctx_r4.isRTL ? "hide-left" : "hide-right");
|
50
|
-
i0.ɵɵadvance(2);
|
51
|
-
i0.ɵɵtextInterpolate(ctx_r4.clearIcon);
|
52
|
-
} }
|
53
19
|
class TdSearchInputBase {
|
54
20
|
constructor(_changeDetectorRef) {
|
55
21
|
this._changeDetectorRef = _changeDetectorRef;
|
56
22
|
}
|
57
23
|
}
|
58
|
-
|
59
|
-
const _TdSearchInputMixinBase = mixinControlValueAccessor(TdSearchInputBase);
|
60
|
-
class TdSearchInputComponent extends _TdSearchInputMixinBase {
|
24
|
+
class TdSearchInputComponent {
|
61
25
|
constructor(_dir, _changeDetectorRef) {
|
62
|
-
super(_changeDetectorRef);
|
63
26
|
this._dir = _dir;
|
27
|
+
this._changeDetectorRef = _changeDetectorRef;
|
28
|
+
/**
|
29
|
+
* appearance?: MatFormFieldAppearance
|
30
|
+
* Appearance style for the underlying input component.
|
31
|
+
*/
|
32
|
+
this.appearance = 'legacy';
|
64
33
|
/**
|
65
34
|
* showUnderline?: boolean
|
66
35
|
* Sets if the input underline should be visible. Defaults to 'false'.
|
@@ -71,6 +40,11 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
|
|
71
40
|
* Debounce timeout between keypresses. Defaults to 400.
|
72
41
|
*/
|
73
42
|
this.debounce = 400;
|
43
|
+
/**
|
44
|
+
* placeholder?: string
|
45
|
+
* Placeholder for the underlying input component.
|
46
|
+
*/
|
47
|
+
this.placeholder = '';
|
74
48
|
/**
|
75
49
|
* clearIcon?: string
|
76
50
|
* The icon used to clear the search input.
|
@@ -96,7 +70,7 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
|
|
96
70
|
* blur: function()
|
97
71
|
* Event emitted after the blur event has been called in underlying input.
|
98
72
|
*/
|
99
|
-
this.
|
73
|
+
this.blurSearch = new EventEmitter();
|
100
74
|
}
|
101
75
|
get isRTL() {
|
102
76
|
if (this._dir) {
|
@@ -105,27 +79,40 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
|
|
105
79
|
return false;
|
106
80
|
}
|
107
81
|
ngOnInit() {
|
108
|
-
this._input
|
109
|
-
|
82
|
+
this._input?.ngControl?.valueChanges
|
83
|
+
?.pipe(debounceTime(this.debounce), skip(1) // skip first change when value is set to undefined
|
84
|
+
)
|
110
85
|
.subscribe((value) => {
|
111
86
|
this._searchTermChanged(value);
|
112
87
|
});
|
113
88
|
}
|
89
|
+
writeValue(value) {
|
90
|
+
this.value = value;
|
91
|
+
this._changeDetectorRef.markForCheck();
|
92
|
+
}
|
93
|
+
registerOnChange() {
|
94
|
+
noop;
|
95
|
+
}
|
96
|
+
registerOnTouched() {
|
97
|
+
noop;
|
98
|
+
}
|
114
99
|
/**
|
115
100
|
* Method to focus to underlying input.
|
116
101
|
*/
|
117
102
|
focus() {
|
118
|
-
this._input
|
103
|
+
this._input?.focus();
|
119
104
|
}
|
120
105
|
handleBlur() {
|
121
|
-
this.
|
106
|
+
this.blurSearch.emit();
|
122
107
|
}
|
123
108
|
stopPropagation(event) {
|
124
109
|
event.stopPropagation();
|
125
110
|
}
|
126
111
|
handleSearch(event) {
|
127
112
|
this.stopPropagation(event);
|
128
|
-
|
113
|
+
if (typeof this.value == 'string') {
|
114
|
+
this.search.emit(this.value);
|
115
|
+
}
|
129
116
|
}
|
130
117
|
/**
|
131
118
|
* Method to clear the underlying input.
|
@@ -139,136 +126,92 @@ class TdSearchInputComponent extends _TdSearchInputMixinBase {
|
|
139
126
|
this.searchDebounce.emit(value);
|
140
127
|
}
|
141
128
|
}
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
] },
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
}], function () { return [{ type: i1.Dir, decorators: [{
|
220
|
-
type: Optional
|
221
|
-
}] }, { type: i0.ChangeDetectorRef }]; }, { _input: [{
|
222
|
-
type: ViewChild,
|
223
|
-
args: [MatInput, { static: true }]
|
224
|
-
}], appearance: [{
|
225
|
-
type: Input
|
226
|
-
}], showUnderline: [{
|
227
|
-
type: Input
|
228
|
-
}], debounce: [{
|
229
|
-
type: Input
|
230
|
-
}], placeholder: [{
|
231
|
-
type: Input
|
232
|
-
}], clearIcon: [{
|
233
|
-
type: Input
|
234
|
-
}], searchDebounce: [{
|
235
|
-
type: Output
|
236
|
-
}], search: [{
|
237
|
-
type: Output
|
238
|
-
}], clear: [{
|
239
|
-
type: Output
|
240
|
-
}], blur: [{
|
241
|
-
type: Output
|
242
|
-
}] }); })();
|
129
|
+
TdSearchInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSearchInputComponent, deps: [{ token: i1.Dir, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
130
|
+
TdSearchInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdSearchInputComponent, selector: "td-search-input", inputs: { appearance: "appearance", showUnderline: "showUnderline", debounce: "debounce", placeholder: "placeholder", clearIcon: "clearIcon", value: "value" }, outputs: { searchDebounce: "searchDebounce", search: "search", clear: "clear", blurSearch: "blurSearch" }, providers: [
|
131
|
+
{
|
132
|
+
provide: NG_VALUE_ACCESSOR,
|
133
|
+
useExisting: forwardRef(() => TdSearchInputComponent),
|
134
|
+
multi: true,
|
135
|
+
},
|
136
|
+
], viewQueries: [{ propertyName: "_input", first: true, predicate: MatInput, descendants: true, static: true }], ngImport: i0, template: "<div class=\"td-search-input\">\n <mat-form-field\n class=\"td-search-input-field\"\n [class.mat-hide-underline]=\"!showUnderline\"\n [appearance]=\"appearance\"\n floatLabel=\"never\"\n >\n <input\n matInput\n #searchElement\n type=\"search\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleBlur()\"\n (search)=\"stopPropagation($event)\"\n (keyup.enter)=\"handleSearch($event)\"\n />\n <span\n matSuffix\n *ngIf=\"\n appearance === 'fill' ||\n appearance === 'outline' ||\n appearance === 'standard'\n \"\n >\n <ng-template [ngTemplateOutlet]=\"clearButton\"></ng-template>\n </span>\n </mat-form-field>\n <ng-template\n *ngIf=\"!appearance || appearance === 'legacy'\"\n [ngTemplateOutlet]=\"clearButton\"\n ></ng-template>\n</div>\n<ng-template #clearButton>\n <button\n mat-icon-button\n class=\"td-search-input-clear\"\n type=\"button\"\n [@searchState]=\"\n searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\n \"\n (click)=\"clearSearch()\"\n >\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n</ng-template>\n", styles: [":host .td-search-input{overflow-x:hidden;box-sizing:border-box;display:flex;flex-direction:row;align-items:baseline;align-content:center;max-width:100%;justify-content:flex-end}:host .td-search-input .td-search-input-field{flex:1}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-flex{height:52px}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-infix{bottom:.4em}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-legacy .mat-form-field-infix{align-self:center}:host .td-search-input ::ng-deep mat-form-field .mat-input-element{caret-color:currentColor}:host .td-search-input ::ng-deep mat-form-field.mat-hide-underline .mat-form-field-underline{display:none}:host .td-search-input .td-search-input-clear{flex:0 0 auto;align-self:center}\n"], components: [{ type: i2.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.MatSuffix, selector: "[matSuffix]" }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
|
137
|
+
trigger('searchState', [
|
138
|
+
state('hide-left', style({
|
139
|
+
transform: 'translateX(-150%)',
|
140
|
+
display: 'none',
|
141
|
+
})),
|
142
|
+
state('hide-right', style({
|
143
|
+
transform: 'translateX(150%)',
|
144
|
+
display: 'none',
|
145
|
+
})),
|
146
|
+
state('show', style({
|
147
|
+
transform: 'translateX(0%)',
|
148
|
+
display: 'block',
|
149
|
+
})),
|
150
|
+
transition('* => show', animate('200ms ease-in')),
|
151
|
+
transition('show => *', animate('200ms ease-out')),
|
152
|
+
]),
|
153
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSearchInputComponent, decorators: [{
|
155
|
+
type: Component,
|
156
|
+
args: [{ providers: [
|
157
|
+
{
|
158
|
+
provide: NG_VALUE_ACCESSOR,
|
159
|
+
useExisting: forwardRef(() => TdSearchInputComponent),
|
160
|
+
multi: true,
|
161
|
+
},
|
162
|
+
], selector: 'td-search-input', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
163
|
+
trigger('searchState', [
|
164
|
+
state('hide-left', style({
|
165
|
+
transform: 'translateX(-150%)',
|
166
|
+
display: 'none',
|
167
|
+
})),
|
168
|
+
state('hide-right', style({
|
169
|
+
transform: 'translateX(150%)',
|
170
|
+
display: 'none',
|
171
|
+
})),
|
172
|
+
state('show', style({
|
173
|
+
transform: 'translateX(0%)',
|
174
|
+
display: 'block',
|
175
|
+
})),
|
176
|
+
transition('* => show', animate('200ms ease-in')),
|
177
|
+
transition('show => *', animate('200ms ease-out')),
|
178
|
+
]),
|
179
|
+
], template: "<div class=\"td-search-input\">\n <mat-form-field\n class=\"td-search-input-field\"\n [class.mat-hide-underline]=\"!showUnderline\"\n [appearance]=\"appearance\"\n floatLabel=\"never\"\n >\n <input\n matInput\n #searchElement\n type=\"search\"\n [(ngModel)]=\"value\"\n [placeholder]=\"placeholder\"\n (blur)=\"handleBlur()\"\n (search)=\"stopPropagation($event)\"\n (keyup.enter)=\"handleSearch($event)\"\n />\n <span\n matSuffix\n *ngIf=\"\n appearance === 'fill' ||\n appearance === 'outline' ||\n appearance === 'standard'\n \"\n >\n <ng-template [ngTemplateOutlet]=\"clearButton\"></ng-template>\n </span>\n </mat-form-field>\n <ng-template\n *ngIf=\"!appearance || appearance === 'legacy'\"\n [ngTemplateOutlet]=\"clearButton\"\n ></ng-template>\n</div>\n<ng-template #clearButton>\n <button\n mat-icon-button\n class=\"td-search-input-clear\"\n type=\"button\"\n [@searchState]=\"\n searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\n \"\n (click)=\"clearSearch()\"\n >\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n</ng-template>\n", styles: [":host .td-search-input{overflow-x:hidden;box-sizing:border-box;display:flex;flex-direction:row;align-items:baseline;align-content:center;max-width:100%;justify-content:flex-end}:host .td-search-input .td-search-input-field{flex:1}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-flex{height:52px}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-infix{bottom:.4em}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-legacy .mat-form-field-infix{align-self:center}:host .td-search-input ::ng-deep mat-form-field .mat-input-element{caret-color:currentColor}:host .td-search-input ::ng-deep mat-form-field.mat-hide-underline .mat-form-field-underline{display:none}:host .td-search-input .td-search-input-clear{flex:0 0 auto;align-self:center}\n"] }]
|
180
|
+
}], ctorParameters: function () { return [{ type: i1.Dir, decorators: [{
|
181
|
+
type: Optional
|
182
|
+
}] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _input: [{
|
183
|
+
type: ViewChild,
|
184
|
+
args: [MatInput, { static: true }]
|
185
|
+
}], appearance: [{
|
186
|
+
type: Input
|
187
|
+
}], showUnderline: [{
|
188
|
+
type: Input
|
189
|
+
}], debounce: [{
|
190
|
+
type: Input
|
191
|
+
}], placeholder: [{
|
192
|
+
type: Input
|
193
|
+
}], clearIcon: [{
|
194
|
+
type: Input
|
195
|
+
}], value: [{
|
196
|
+
type: Input
|
197
|
+
}], searchDebounce: [{
|
198
|
+
type: Output
|
199
|
+
}], search: [{
|
200
|
+
type: Output
|
201
|
+
}], clear: [{
|
202
|
+
type: Output
|
203
|
+
}], blurSearch: [{
|
204
|
+
type: Output
|
205
|
+
}] } });
|
243
206
|
|
244
|
-
function TdSearchBoxComponent_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
245
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
246
|
-
i0.ɵɵtext(1);
|
247
|
-
i0.ɵɵelementEnd();
|
248
|
-
} if (rf & 2) {
|
249
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
250
|
-
i0.ɵɵadvance(1);
|
251
|
-
i0.ɵɵtextInterpolate(ctx_r0.backIcon);
|
252
|
-
} }
|
253
|
-
function TdSearchBoxComponent_mat_icon_3_Template(rf, ctx) { if (rf & 1) {
|
254
|
-
i0.ɵɵelementStart(0, "mat-icon");
|
255
|
-
i0.ɵɵtext(1);
|
256
|
-
i0.ɵɵelementEnd();
|
257
|
-
} if (rf & 2) {
|
258
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
259
|
-
i0.ɵɵadvance(1);
|
260
|
-
i0.ɵɵtextInterpolate(ctx_r1.searchIcon);
|
261
|
-
} }
|
262
207
|
class TdSearchBoxBase {
|
263
208
|
constructor(_changeDetectorRef) {
|
264
209
|
this._changeDetectorRef = _changeDetectorRef;
|
265
210
|
}
|
266
211
|
}
|
267
|
-
|
268
|
-
const _TdSearchBoxMixinBase = mixinControlValueAccessor(TdSearchBoxBase);
|
269
|
-
class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
|
212
|
+
class TdSearchBoxComponent {
|
270
213
|
constructor(_changeDetectorRef) {
|
271
|
-
|
214
|
+
this._changeDetectorRef = _changeDetectorRef;
|
272
215
|
this._searchVisible = false;
|
273
216
|
/**
|
274
217
|
* backIcon?: string
|
@@ -303,6 +246,11 @@ class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
|
|
303
246
|
* Sets if the input should always be visible. Defaults to 'false'.
|
304
247
|
*/
|
305
248
|
this.alwaysVisible = false;
|
249
|
+
/**
|
250
|
+
* placeholder?: string
|
251
|
+
* Placeholder for the underlying input component.
|
252
|
+
*/
|
253
|
+
this.placeholder = '';
|
306
254
|
/**
|
307
255
|
* searchDebounce: function($event)
|
308
256
|
* Event emitted after the [debounce] timeout.
|
@@ -322,11 +270,21 @@ class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
|
|
322
270
|
* blur: function()
|
323
271
|
* Event emitted after the blur event has been called in underlying input.
|
324
272
|
*/
|
325
|
-
this.
|
273
|
+
this.blurSearch = new EventEmitter();
|
326
274
|
}
|
327
275
|
get searchVisible() {
|
328
276
|
return this._searchVisible;
|
329
277
|
}
|
278
|
+
writeValue(value) {
|
279
|
+
this.value = value;
|
280
|
+
this._changeDetectorRef.markForCheck();
|
281
|
+
}
|
282
|
+
registerOnChange() {
|
283
|
+
noop;
|
284
|
+
}
|
285
|
+
registerOnTouched() {
|
286
|
+
noop;
|
287
|
+
}
|
330
288
|
/**
|
331
289
|
* Method executed when the search icon is clicked.
|
332
290
|
*/
|
@@ -336,7 +294,7 @@ class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
|
|
336
294
|
this.handleClear();
|
337
295
|
}
|
338
296
|
else if (this.alwaysVisible || !this._searchVisible) {
|
339
|
-
this._searchInput
|
297
|
+
this._searchInput?.focus();
|
340
298
|
}
|
341
299
|
this.toggleVisibility();
|
342
300
|
}
|
@@ -354,120 +312,114 @@ class TdSearchBoxComponent extends _TdSearchBoxMixinBase {
|
|
354
312
|
this.clear.emit();
|
355
313
|
}
|
356
314
|
handleBlur() {
|
357
|
-
this.
|
315
|
+
this.blurSearch.emit();
|
358
316
|
}
|
359
317
|
}
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
] },
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
}], searchIcon: [{
|
432
|
-
type: Input
|
433
|
-
}], clearIcon: [{
|
434
|
-
type: Input
|
435
|
-
}], showUnderline: [{
|
436
|
-
type: Input
|
437
|
-
}], debounce: [{
|
438
|
-
type: Input
|
439
|
-
}], alwaysVisible: [{
|
440
|
-
type: Input
|
441
|
-
}], placeholder: [{
|
442
|
-
type: Input
|
443
|
-
}], searchDebounce: [{
|
444
|
-
type: Output
|
445
|
-
}], search: [{
|
446
|
-
type: Output
|
447
|
-
}], clear: [{
|
448
|
-
type: Output
|
449
|
-
}], blur: [{
|
450
|
-
type: Output
|
451
|
-
}] }); })();
|
318
|
+
TdSearchBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSearchBoxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
319
|
+
TdSearchBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdSearchBoxComponent, selector: "td-search-box", inputs: { backIcon: "backIcon", searchIcon: "searchIcon", clearIcon: "clearIcon", showUnderline: "showUnderline", debounce: "debounce", alwaysVisible: "alwaysVisible", placeholder: "placeholder", value: "value" }, outputs: { searchDebounce: "searchDebounce", search: "search", clear: "clear", blurSearch: "blurSearch" }, providers: [
|
320
|
+
{
|
321
|
+
provide: NG_VALUE_ACCESSOR,
|
322
|
+
useExisting: forwardRef(() => TdSearchBoxComponent),
|
323
|
+
multi: true,
|
324
|
+
},
|
325
|
+
], viewQueries: [{ propertyName: "_searchInput", first: true, predicate: TdSearchInputComponent, descendants: true, static: true }], ngImport: i0, template: "<div class=\"td-search-box\">\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-search-icon\"\n (click)=\"searchClicked()\"\n >\n <mat-icon *ngIf=\"searchVisible && !alwaysVisible\">{{ backIcon }}</mat-icon>\n <mat-icon *ngIf=\"!searchVisible || alwaysVisible\">{{\n searchIcon\n }}</mat-icon>\n </button>\n <td-search-input\n #searchInput\n [@inputState]=\"alwaysVisible || searchVisible\"\n [debounce]=\"debounce\"\n [(ngModel)]=\"value\"\n [showUnderline]=\"showUnderline\"\n [placeholder]=\"placeholder\"\n [clearIcon]=\"clearIcon\"\n (searchDebounce)=\"handleSearchDebounce($event)\"\n (search)=\"handleSearch($event)\"\n (clear)=\"handleClear(); toggleVisibility()\"\n (blur)=\"handleBlur()\"\n ></td-search-input>\n</div>\n", styles: [":host{display:block}.td-search-box{box-sizing:border-box;display:flex;flex-direction:row;align-items:baseline;align-content:center;max-width:100%;justify-content:flex-end}.td-search-box .td-search-icon{flex:0 0 auto;align-self:center}.td-search-box td-search-input{margin-left:12px}::ng-deep [dir=rtl] .td-search-box td-search-input{margin-right:12px;margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-form.field.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1em}\n"], components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: TdSearchInputComponent, selector: "td-search-input", inputs: ["appearance", "showUnderline", "debounce", "placeholder", "clearIcon", "value"], outputs: ["searchDebounce", "search", "clear", "blurSearch"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], animations: [
|
326
|
+
trigger('inputState', [
|
327
|
+
state('0', style({
|
328
|
+
width: '0%',
|
329
|
+
margin: '0px',
|
330
|
+
})),
|
331
|
+
state('1', style({
|
332
|
+
width: '100%',
|
333
|
+
margin: AUTO_STYLE,
|
334
|
+
})),
|
335
|
+
transition('0 => 1', animate('200ms ease-in')),
|
336
|
+
transition('1 => 0', animate('200ms ease-out')),
|
337
|
+
]),
|
338
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSearchBoxComponent, decorators: [{
|
340
|
+
type: Component,
|
341
|
+
args: [{ providers: [
|
342
|
+
{
|
343
|
+
provide: NG_VALUE_ACCESSOR,
|
344
|
+
useExisting: forwardRef(() => TdSearchBoxComponent),
|
345
|
+
multi: true,
|
346
|
+
},
|
347
|
+
], selector: 'td-search-box', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
348
|
+
trigger('inputState', [
|
349
|
+
state('0', style({
|
350
|
+
width: '0%',
|
351
|
+
margin: '0px',
|
352
|
+
})),
|
353
|
+
state('1', style({
|
354
|
+
width: '100%',
|
355
|
+
margin: AUTO_STYLE,
|
356
|
+
})),
|
357
|
+
transition('0 => 1', animate('200ms ease-in')),
|
358
|
+
transition('1 => 0', animate('200ms ease-out')),
|
359
|
+
]),
|
360
|
+
], template: "<div class=\"td-search-box\">\n <button\n mat-icon-button\n type=\"button\"\n class=\"td-search-icon\"\n (click)=\"searchClicked()\"\n >\n <mat-icon *ngIf=\"searchVisible && !alwaysVisible\">{{ backIcon }}</mat-icon>\n <mat-icon *ngIf=\"!searchVisible || alwaysVisible\">{{\n searchIcon\n }}</mat-icon>\n </button>\n <td-search-input\n #searchInput\n [@inputState]=\"alwaysVisible || searchVisible\"\n [debounce]=\"debounce\"\n [(ngModel)]=\"value\"\n [showUnderline]=\"showUnderline\"\n [placeholder]=\"placeholder\"\n [clearIcon]=\"clearIcon\"\n (searchDebounce)=\"handleSearchDebounce($event)\"\n (search)=\"handleSearch($event)\"\n (clear)=\"handleClear(); toggleVisibility()\"\n (blur)=\"handleBlur()\"\n ></td-search-input>\n</div>\n", styles: [":host{display:block}.td-search-box{box-sizing:border-box;display:flex;flex-direction:row;align-items:baseline;align-content:center;max-width:100%;justify-content:flex-end}.td-search-box .td-search-icon{flex:0 0 auto;align-self:center}.td-search-box td-search-input{margin-left:12px}::ng-deep [dir=rtl] .td-search-box td-search-input{margin-right:12px;margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-form.field.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1em}\n"] }]
|
361
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _searchInput: [{
|
362
|
+
type: ViewChild,
|
363
|
+
args: [TdSearchInputComponent, { static: true }]
|
364
|
+
}], backIcon: [{
|
365
|
+
type: Input
|
366
|
+
}], searchIcon: [{
|
367
|
+
type: Input
|
368
|
+
}], clearIcon: [{
|
369
|
+
type: Input
|
370
|
+
}], showUnderline: [{
|
371
|
+
type: Input
|
372
|
+
}], debounce: [{
|
373
|
+
type: Input
|
374
|
+
}], alwaysVisible: [{
|
375
|
+
type: Input
|
376
|
+
}], placeholder: [{
|
377
|
+
type: Input
|
378
|
+
}], value: [{
|
379
|
+
type: Input
|
380
|
+
}], searchDebounce: [{
|
381
|
+
type: Output
|
382
|
+
}], search: [{
|
383
|
+
type: Output
|
384
|
+
}], clear: [{
|
385
|
+
type: Output
|
386
|
+
}], blurSearch: [{
|
387
|
+
type: Output
|
388
|
+
}] } });
|
452
389
|
|
453
390
|
class CovalentSearchModule {
|
454
391
|
}
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
392
|
+
CovalentSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
393
|
+
CovalentSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSearchModule, declarations: [TdSearchInputComponent, TdSearchBoxComponent], imports: [FormsModule,
|
394
|
+
CommonModule,
|
395
|
+
MatInputModule,
|
396
|
+
MatIconModule,
|
397
|
+
MatButtonModule], exports: [TdSearchInputComponent, TdSearchBoxComponent] });
|
398
|
+
CovalentSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSearchModule, imports: [[
|
399
|
+
FormsModule,
|
400
|
+
CommonModule,
|
401
|
+
MatInputModule,
|
402
|
+
MatIconModule,
|
403
|
+
MatButtonModule,
|
404
|
+
]] });
|
405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSearchModule, decorators: [{
|
406
|
+
type: NgModule,
|
407
|
+
args: [{
|
408
|
+
imports: [
|
409
|
+
FormsModule,
|
410
|
+
CommonModule,
|
411
|
+
MatInputModule,
|
412
|
+
MatIconModule,
|
413
|
+
MatButtonModule,
|
414
|
+
],
|
415
|
+
declarations: [TdSearchInputComponent, TdSearchBoxComponent],
|
416
|
+
exports: [TdSearchInputComponent, TdSearchBoxComponent],
|
417
|
+
}]
|
418
|
+
}] });
|
467
419
|
|
468
420
|
/**
|
469
421
|
* Generated bundle index. Do not edit.
|
470
422
|
*/
|
471
423
|
|
472
|
-
export { CovalentSearchModule, TdSearchBoxBase, TdSearchBoxComponent, TdSearchInputBase, TdSearchInputComponent
|
424
|
+
export { CovalentSearchModule, TdSearchBoxBase, TdSearchBoxComponent, TdSearchInputBase, TdSearchInputComponent };
|
473
425
|
//# sourceMappingURL=covalent-core-search.mjs.map
|