@covalent/core 4.0.0 → 4.1.0-develop.5
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 +6 -1
- package/breadcrumbs/breadcrumbs.component.d.ts +4 -0
- package/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/breadcrumbs/covalent-core-breadcrumbs.d.ts +2 -1
- package/breadcrumbs/package.json +6 -7
- package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/README.md +3 -0
- package/common/_common-theme.scss +3 -1
- package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
- package/common/behaviors/disabled.mixin.d.ts +1 -1
- package/common/common.module.d.ts +15 -0
- package/common/covalent-core-common.d.ts +2 -3
- package/common/directives/fullscreen/fullscreen.directive.d.ts +3 -0
- package/common/forms/auto-trim/auto-trim.directive.d.ts +3 -0
- package/common/package.json +6 -7
- package/common/pipes/bytes/bytes.pipe.d.ts +3 -0
- package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +3 -0
- package/common/pipes/digits/digits.pipe.d.ts +3 -0
- package/common/pipes/time-ago/time-ago.pipe.d.ts +3 -0
- package/common/pipes/time-difference/time-difference.pipe.d.ts +3 -0
- package/common/pipes/time-until/time-until.pipe.d.ts +3 -0
- package/common/pipes/truncate/truncate.pipe.d.ts +4 -1
- package/common/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/services/icon.service.d.ts +3 -0
- package/common/services/router-path.service.d.ts +3 -0
- package/common/styles/_elevation.scss +7 -2
- package/common/styles/_layout.scss +12 -10
- package/common/styles/_palette-dark.scss +2 -2
- package/common/styles/_palette-light.scss +6 -6
- package/common/styles/_rtl.scss +3 -0
- package/common/styles/_typography-functions.scss +10 -2
- package/common/styles/_variables.scss +7 -6
- package/common/styles/colors/_colors-dark.scss +327 -0
- package/common/styles/colors/_colors-light.scss +748 -0
- package/common/styles/core/_button.scss +37 -6
- package/common/styles/core/_card.scss +34 -9
- package/common/styles/core/_content.scss +2 -1
- package/common/styles/core/_divider.scss +1 -0
- package/common/styles/core/_icons.scss +2 -0
- package/common/styles/core/_sidenav.scss +2 -0
- package/common/styles/core/_structure.scss +6 -7
- package/common/styles/core/_toolbar.scss +7 -0
- package/common/styles/core/_whiteframe.scss +18 -10
- package/common/styles/font/README.md +4 -2
- package/common/styles/font/_font.scss +10 -4
- package/common/styles/utilities/_general.scss +14 -0
- package/common/styles/utilities/_text.scss +21 -0
- package/covalent-core.d.ts +2 -1
- package/dialogs/README.md +38 -30
- package/dialogs/_dialog-theme.scss +1 -0
- package/dialogs/alert-dialog/alert-dialog.component.d.ts +6 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +5 -2
- package/dialogs/covalent-core-dialogs.d.ts +2 -2
- package/dialogs/dialog.component.d.ts +9 -0
- package/dialogs/dialogs.module.d.ts +17 -0
- package/dialogs/package.json +6 -7
- package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +6 -3
- package/dialogs/{public-api.d.ts → public_api.d.ts} +1 -0
- package/dialogs/services/dialog.service.d.ts +3 -0
- package/dialogs/src/README.md +223 -0
- package/dialogs/window-dialog/window-dialog.component.d.ts +8 -5
- package/dynamic-menu/README.md +6 -6
- package/dynamic-menu/covalent-core-dynamic-menu.d.ts +2 -2
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +4 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +4 -1
- package/dynamic-menu/dynamic-menu.component.d.ts +4 -22
- package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
- package/dynamic-menu/dynamic-menu.module.d.ts +13 -0
- package/dynamic-menu/package.json +6 -7
- package/dynamic-menu/public_api.d.ts +2 -0
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +92 -0
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +134 -0
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +20 -0
- package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
- package/esm2020/breadcrumbs/public_api.mjs +4 -0
- package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
- package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
- package/esm2020/common/animations/common/interfaces.mjs +2 -0
- package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
- package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
- package/esm2020/common/animations/headshake/headshake.animation.mjs +47 -0
- package/esm2020/common/animations/jello/jello.animation.mjs +59 -0
- package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
- package/esm2020/common/animations/rotate/rotate.animation.mjs +30 -0
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +41 -0
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
- package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
- package/esm2020/common/common.module.mjs +63 -0
- package/esm2020/common/covalent-core-common.mjs +5 -0
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
- package/esm2020/common/forms/validators/validators.mjs +29 -0
- package/esm2020/common/functions/clipboard.mjs +23 -0
- package/esm2020/common/functions/convert.mjs +84 -0
- package/esm2020/common/functions/download.mjs +75 -0
- package/esm2020/common/functions/file.mjs +16 -0
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +42 -0
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
- package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
- package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
- package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
- package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
- package/esm2020/common/public_api.mjs +39 -0
- package/esm2020/common/services/icon.service.mjs +1089 -0
- package/esm2020/common/services/router-path.service.mjs +29 -0
- package/esm2020/covalent-core.mjs +5 -0
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +23 -0
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +28 -0
- package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
- package/esm2020/dialogs/dialog.component.mjs +56 -0
- package/esm2020/dialogs/dialogs.module.mjs +89 -0
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +46 -0
- package/esm2020/dialogs/public_api.mjs +9 -0
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +216 -0
- package/esm2020/dialogs/services/dialog.service.mjs +171 -0
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +38 -0
- package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +24 -0
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +28 -0
- package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
- package/esm2020/dynamic-menu/dynamic-menu.module.mjs +57 -0
- package/esm2020/dynamic-menu/public_api.mjs +6 -0
- package/esm2020/file/covalent-core-file.mjs +5 -0
- package/esm2020/file/directives/file-drop.directive.mjs +147 -0
- package/esm2020/file/directives/file-select.directive.mjs +77 -0
- package/esm2020/file/file-input/file-input.component.mjs +110 -0
- package/esm2020/file/file-upload/file-upload.component.mjs +174 -0
- package/esm2020/file/file.module.mjs +58 -0
- package/esm2020/file/public_api.mjs +7 -0
- package/esm2020/file/services/file.service.mjs +64 -0
- package/esm2020/json-formatter/collapse.animation.mjs +51 -0
- package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
- package/esm2020/json-formatter/json-formatter.component.mjs +217 -0
- package/esm2020/json-formatter/json-formatter.module.mjs +20 -0
- package/esm2020/json-formatter/public_api.mjs +3 -0
- package/esm2020/layout/covalent-core-layout.mjs +5 -0
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +40 -0
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +33 -0
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +93 -0
- package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +84 -0
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +50 -0
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +128 -0
- package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +84 -0
- package/esm2020/layout/layout-toggle.class.mjs +92 -0
- package/esm2020/layout/layout.component.mjs +92 -0
- package/esm2020/layout/layout.directives.mjs +85 -0
- package/esm2020/layout/layout.module.mjs +117 -0
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +161 -0
- package/esm2020/layout/public_api.mjs +13 -0
- package/esm2020/menu/covalent-core-menu.mjs +5 -0
- package/esm2020/menu/menu.component.mjs +12 -0
- package/esm2020/menu/menu.module.mjs +21 -0
- package/esm2020/menu/public_api.mjs +3 -0
- package/esm2020/message/collapse.animation.mjs +51 -0
- package/esm2020/message/covalent-core-message.mjs +5 -0
- package/esm2020/message/message.component.mjs +203 -0
- package/esm2020/message/message.module.mjs +25 -0
- package/esm2020/message/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/search/covalent-core-search.mjs +5 -0
- package/esm2020/search/public_api.mjs +4 -0
- package/esm2020/search/search-box/search-box.component.mjs +194 -0
- package/esm2020/search/search-input/search-input.component.mjs +203 -0
- package/esm2020/search/search.module.mjs +39 -0
- package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
- package/esm2020/side-sheet/public_api.mjs +6 -0
- package/esm2020/side-sheet/side-sheet-container.mjs +274 -0
- package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
- package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
- package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +201 -0
- package/esm2020/side-sheet/side-sheet.mjs +221 -0
- package/esm2020/side-sheet/side-sheet.module.mjs +45 -0
- package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
- package/esm2020/user-profile/public_api.mjs +4 -0
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +24 -0
- package/esm2020/user-profile/user-profile.component.mjs +19 -0
- package/esm2020/user-profile/user-profile.module.mjs +44 -0
- package/fesm2015/covalent-core-breadcrumbs.mjs +246 -0
- package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
- package/fesm2015/covalent-core-common.mjs +2281 -0
- package/fesm2015/covalent-core-common.mjs.map +1 -0
- package/fesm2015/covalent-core-dialogs.mjs +639 -0
- package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
- package/fesm2015/covalent-core-dynamic-menu.mjs +128 -0
- package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
- package/fesm2015/covalent-core-file.mjs +613 -0
- package/fesm2015/covalent-core-file.mjs.map +1 -0
- package/fesm2015/covalent-core-json-formatter.mjs +298 -0
- package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
- package/fesm2015/covalent-core-layout.mjs +1024 -0
- package/fesm2015/covalent-core-layout.mjs.map +1 -0
- package/fesm2015/covalent-core-menu.mjs +37 -0
- package/fesm2015/covalent-core-menu.mjs.map +1 -0
- package/fesm2015/covalent-core-message.mjs +284 -0
- package/fesm2015/covalent-core-message.mjs.map +1 -0
- package/fesm2015/covalent-core-search.mjs +428 -0
- package/fesm2015/covalent-core-search.mjs.map +1 -0
- package/fesm2015/covalent-core-side-sheet.mjs +762 -0
- package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
- package/fesm2015/covalent-core-user-profile.mjs +86 -0
- package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
- package/fesm2015/covalent-core.mjs +4 -0
- package/fesm2015/covalent-core.mjs.map +1 -0
- package/fesm2020/covalent-core-breadcrumbs.mjs +246 -0
- package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -0
- package/{fesm2015/covalent-core-common.js → fesm2020/covalent-core-common.mjs} +317 -813
- package/fesm2020/covalent-core-common.mjs.map +1 -0
- package/fesm2020/covalent-core-dialogs.mjs +634 -0
- package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
- package/fesm2020/covalent-core-dynamic-menu.mjs +128 -0
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
- package/fesm2020/covalent-core-file.mjs +607 -0
- package/fesm2020/covalent-core-file.mjs.map +1 -0
- package/fesm2020/covalent-core-json-formatter.mjs +290 -0
- package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
- package/fesm2020/covalent-core-layout.mjs +1000 -0
- package/fesm2020/covalent-core-layout.mjs.map +1 -0
- package/fesm2020/covalent-core-menu.mjs +37 -0
- package/fesm2020/covalent-core-menu.mjs.map +1 -0
- package/fesm2020/covalent-core-message.mjs +282 -0
- package/fesm2020/covalent-core-message.mjs.map +1 -0
- package/fesm2020/covalent-core-search.mjs +425 -0
- package/fesm2020/covalent-core-search.mjs.map +1 -0
- package/fesm2020/covalent-core-side-sheet.mjs +757 -0
- package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
- package/fesm2020/covalent-core-user-profile.mjs +86 -0
- package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
- package/fesm2020/covalent-core.mjs +4 -0
- package/fesm2020/covalent-core.mjs.map +1 -0
- package/file/_file-theme.scss +3 -1
- package/file/covalent-core-file.d.ts +2 -1
- package/file/directives/file-drop.directive.d.ts +8 -6
- package/file/directives/file-select.directive.d.ts +5 -2
- package/file/file-input/file-input.component.d.ts +10 -5
- package/file/file-upload/file-upload.component.d.ts +18 -8
- package/file/file.module.d.ts +13 -0
- package/file/package.json +6 -7
- package/file/{public-api.d.ts → public_api.d.ts} +0 -0
- package/file/services/file.service.d.ts +3 -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/_json-formatter-theme.scss +10 -0
- package/json-formatter/collapse.animation.d.ts +24 -0
- package/json-formatter/covalent-core-json-formatter.d.ts +2 -1
- package/json-formatter/json-formatter.component.d.ts +7 -4
- package/json-formatter/json-formatter.module.d.ts +8 -0
- package/json-formatter/package.json +6 -7
- package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/layout/README.md +48 -50
- package/layout/_layout-theme.scss +12 -0
- package/layout/covalent-core-layout.d.ts +2 -1
- package/layout/layout-card-over/layout-card-over.component.d.ts +6 -3
- package/layout/layout-footer/layout-footer.component.d.ts +6 -3
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +7 -4
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +9 -2
- package/layout/layout-nav/layout-nav.component.d.ts +8 -5
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +12 -9
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +9 -2
- package/layout/layout-toggle.class.d.ts +4 -1
- package/layout/layout.component.d.ts +7 -4
- package/layout/layout.directives.d.ts +9 -2
- package/layout/layout.module.d.ts +23 -0
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +17 -10
- package/layout/package.json +6 -7
- 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 +2 -1
- package/menu/menu.component.d.ts +3 -0
- package/menu/menu.module.d.ts +8 -0
- package/menu/package.json +6 -7
- package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
- package/message/README.md +26 -18
- package/message/_message-theme.scss +3 -0
- package/message/collapse.animation.d.ts +24 -0
- package/message/covalent-core-message.d.ts +2 -1
- package/message/message.component.d.ts +9 -4
- package/message/message.module.d.ts +7 -0
- package/message/package.json +6 -7
- package/message/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +129 -37
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/search/README.md +74 -73
- package/search/covalent-core-search.d.ts +2 -1
- package/search/package.json +6 -7
- package/search/{public-api.d.ts → public_api.d.ts} +0 -0
- package/search/search-box/search-box.component.d.ts +12 -5
- package/search/search-input/search-input.component.d.ts +12 -5
- package/search/search.module.d.ts +11 -0
- 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 +2 -3
- package/side-sheet/package.json +6 -7
- package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
- package/side-sheet/side-sheet-container.d.ts +21 -5
- package/side-sheet/side-sheet.content-directives.d.ts +23 -6
- package/side-sheet/side-sheet.d.ts +7 -2
- package/side-sheet/side-sheet.module.d.ts +9 -0
- package/user-profile/README.md +5 -5
- package/user-profile/covalent-core-user-profile.d.ts +2 -1
- package/user-profile/package.json +6 -7
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +5 -2
- package/user-profile/user-profile.component.d.ts +5 -2
- package/user-profile/user-profile.module.d.ts +12 -0
- package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -22
- package/breadcrumbs/breadcrumbs.component.scss +0 -7
- package/breadcrumbs/covalent-core-breadcrumbs.metadata.json +0 -1
- package/breadcrumbs/index.d.ts +0 -1
- package/bundles/covalent-core-breadcrumbs.umd.js +0 -490
- package/bundles/covalent-core-breadcrumbs.umd.js.map +0 -1
- package/bundles/covalent-core-breadcrumbs.umd.min.js +0 -2
- package/bundles/covalent-core-breadcrumbs.umd.min.js.map +0 -1
- package/bundles/covalent-core-common.umd.js +0 -3188
- package/bundles/covalent-core-common.umd.js.map +0 -1
- package/bundles/covalent-core-common.umd.min.js +0 -17
- package/bundles/covalent-core-common.umd.min.js.map +0 -1
- package/bundles/covalent-core-dialogs.umd.js +0 -1318
- package/bundles/covalent-core-dialogs.umd.js.map +0 -1
- package/bundles/covalent-core-dialogs.umd.min.js +0 -2
- package/bundles/covalent-core-dialogs.umd.min.js.map +0 -1
- package/bundles/covalent-core-dynamic-menu.umd.js +0 -215
- package/bundles/covalent-core-dynamic-menu.umd.js.map +0 -1
- package/bundles/covalent-core-dynamic-menu.umd.min.js +0 -2
- package/bundles/covalent-core-dynamic-menu.umd.min.js.map +0 -1
- package/bundles/covalent-core-file.umd.js +0 -1211
- package/bundles/covalent-core-file.umd.js.map +0 -1
- package/bundles/covalent-core-file.umd.min.js +0 -17
- package/bundles/covalent-core-file.umd.min.js.map +0 -1
- package/bundles/covalent-core-json-formatter.umd.js +0 -408
- package/bundles/covalent-core-json-formatter.umd.js.map +0 -1
- package/bundles/covalent-core-json-formatter.umd.min.js +0 -2
- package/bundles/covalent-core-json-formatter.umd.min.js.map +0 -1
- package/bundles/covalent-core-layout.umd.js +0 -2084
- package/bundles/covalent-core-layout.umd.js.map +0 -1
- package/bundles/covalent-core-layout.umd.min.js +0 -17
- package/bundles/covalent-core-layout.umd.min.js.map +0 -1
- package/bundles/covalent-core-menu.umd.js +0 -69
- package/bundles/covalent-core-menu.umd.js.map +0 -1
- package/bundles/covalent-core-menu.umd.min.js +0 -2
- package/bundles/covalent-core-menu.umd.min.js.map +0 -1
- package/bundles/covalent-core-message.umd.js +0 -375
- package/bundles/covalent-core-message.umd.js.map +0 -1
- package/bundles/covalent-core-message.umd.min.js +0 -2
- package/bundles/covalent-core-message.umd.min.js.map +0 -1
- package/bundles/covalent-core-search.umd.js +0 -877
- package/bundles/covalent-core-search.umd.js.map +0 -1
- package/bundles/covalent-core-search.umd.min.js +0 -16
- package/bundles/covalent-core-search.umd.min.js.map +0 -1
- package/bundles/covalent-core-side-sheet.umd.js +0 -1458
- package/bundles/covalent-core-side-sheet.umd.js.map +0 -1
- package/bundles/covalent-core-side-sheet.umd.min.js +0 -16
- package/bundles/covalent-core-side-sheet.umd.min.js.map +0 -1
- package/bundles/covalent-core-user-profile.umd.js +0 -116
- package/bundles/covalent-core-user-profile.umd.js.map +0 -1
- package/bundles/covalent-core-user-profile.umd.min.js +0 -2
- package/bundles/covalent-core-user-profile.umd.min.js.map +0 -1
- package/bundles/covalent-core.umd.js +0 -9
- package/bundles/covalent-core.umd.js.map +0 -1
- package/bundles/covalent-core.umd.min.js +0 -2
- package/bundles/covalent-core.umd.min.js.map +0 -1
- package/common/covalent-core-common.metadata.json +0 -1
- package/common/index.d.ts +0 -1
- package/common/material-icons.css +0 -98
- package/common/material-icons.css.map +0 -1
- package/common/material-icons.scss +0 -3
- package/common/platform.css +0 -15424
- package/common/platform.css.map +0 -1
- package/common/platform.scss +0 -7
- package/covalent-core.metadata.json +0 -1
- package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
- package/dialogs/covalent-core-dialogs.metadata.json +0 -1
- package/dialogs/dialog.component.scss +0 -44
- package/dialogs/index.d.ts +0 -1
- package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -15
- package/dialogs/window-dialog/window-dialog.component.scss +0 -31
- package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +0 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -6
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -11
- package/dynamic-menu/dynamic-menu.component.scss +0 -0
- package/dynamic-menu/index.d.ts +0 -1
- package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -171
- package/esm2015/breadcrumbs/breadcrumbs.component.js +0 -241
- package/esm2015/breadcrumbs/breadcrumbs.module.js +0 -20
- package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +0 -10
- package/esm2015/breadcrumbs/index.js +0 -7
- package/esm2015/breadcrumbs/public-api.js +0 -9
- package/esm2015/common/animations/bounce/bounce.animation.js +0 -76
- package/esm2015/common/animations/collapse/collapse.animation.js +0 -67
- package/esm2015/common/animations/common/interfaces.js +0 -18
- package/esm2015/common/animations/fade/fadeInOut.animation.js +0 -53
- package/esm2015/common/animations/flash/flash.animation.js +0 -40
- package/esm2015/common/animations/headshake/headshake.animation.js +0 -41
- package/esm2015/common/animations/jello/jello.animation.js +0 -44
- package/esm2015/common/animations/pulse/pulse.animation.js +0 -38
- package/esm2015/common/animations/rotate/rotate.animation.js +0 -41
- package/esm2015/common/behaviors/control-value-accesor.mixin.js +0 -107
- package/esm2015/common/behaviors/disable-ripple.mixin.js +0 -63
- package/esm2015/common/behaviors/disabled.mixin.js +0 -63
- package/esm2015/common/common.module.js +0 -54
- package/esm2015/common/covalent-core-common.js +0 -12
- package/esm2015/common/directives/fullscreen/fullscreen.directive.js +0 -180
- package/esm2015/common/forms/auto-trim/auto-trim.directive.js +0 -46
- package/esm2015/common/forms/validators/validators.js +0 -58
- package/esm2015/common/functions/clipboard.js +0 -30
- package/esm2015/common/functions/convert.js +0 -103
- package/esm2015/common/functions/download.js +0 -88
- package/esm2015/common/functions/file.js +0 -29
- package/esm2015/common/index.js +0 -7
- package/esm2015/common/pipes/bytes/bytes.pipe.js +0 -41
- package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -41
- package/esm2015/common/pipes/digits/digits.pipe.js +0 -65
- package/esm2015/common/pipes/time-ago/time-ago.pipe.js +0 -81
- package/esm2015/common/pipes/time-difference/time-difference.pipe.js +0 -66
- package/esm2015/common/pipes/time-until/time-until.pipe.js +0 -81
- package/esm2015/common/pipes/truncate/truncate.pipe.js +0 -34
- package/esm2015/common/public-api.js +0 -44
- package/esm2015/common/services/icon.service.js +0 -1109
- package/esm2015/common/services/router-path.service.js +0 -60
- package/esm2015/covalent-core.js +0 -10
- package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +0 -47
- package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +0 -59
- package/esm2015/dialogs/covalent-core-dialogs.js +0 -11
- package/esm2015/dialogs/dialog.component.js +0 -58
- package/esm2015/dialogs/dialogs.module.js +0 -57
- package/esm2015/dialogs/index.js +0 -7
- package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +0 -83
- package/esm2015/dialogs/public-api.js +0 -13
- package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -325
- package/esm2015/dialogs/services/dialog.service.js +0 -316
- package/esm2015/dialogs/window-dialog/window-dialog.component.js +0 -56
- package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +0 -11
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -40
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -35
- package/esm2015/dynamic-menu/dynamic-menu.component.js +0 -89
- package/esm2015/dynamic-menu/dynamic-menu.module.js +0 -26
- package/esm2015/dynamic-menu/index.js +0 -7
- package/esm2015/dynamic-menu/public_api.js +0 -9
- package/esm2015/file/covalent-core-file.js +0 -10
- package/esm2015/file/directives/file-drop.directive.js +0 -191
- package/esm2015/file/directives/file-select.directive.js +0 -98
- package/esm2015/file/file-input/file-input.component.js +0 -186
- package/esm2015/file/file-upload/file-upload.component.js +0 -237
- package/esm2015/file/file.module.js +0 -35
- package/esm2015/file/index.js +0 -7
- package/esm2015/file/public-api.js +0 -12
- package/esm2015/file/services/file.service.js +0 -109
- package/esm2015/index.js +0 -7
- package/esm2015/json-formatter/covalent-core-json-formatter.js +0 -10
- package/esm2015/json-formatter/index.js +0 -7
- package/esm2015/json-formatter/json-formatter.component.js +0 -338
- package/esm2015/json-formatter/json-formatter.module.js +0 -20
- package/esm2015/json-formatter/public-api.js +0 -8
- package/esm2015/layout/covalent-core-layout.js +0 -10
- package/esm2015/layout/index.js +0 -7
- package/esm2015/layout/layout-card-over/layout-card-over.component.js +0 -71
- package/esm2015/layout/layout-footer/layout-footer.component.js +0 -71
- package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +0 -145
- package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +0 -132
- package/esm2015/layout/layout-nav/layout-nav.component.js +0 -100
- package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +0 -220
- package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +0 -132
- package/esm2015/layout/layout-toggle.class.js +0 -188
- package/esm2015/layout/layout.component.js +0 -145
- package/esm2015/layout/layout.directives.js +0 -129
- package/esm2015/layout/layout.module.js +0 -64
- package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +0 -280
- package/esm2015/layout/public-api.js +0 -18
- package/esm2015/menu/covalent-core-menu.js +0 -10
- package/esm2015/menu/index.js +0 -7
- package/esm2015/menu/menu.component.js +0 -16
- package/esm2015/menu/menu.module.js +0 -22
- package/esm2015/menu/public-api.js +0 -8
- package/esm2015/message/covalent-core-message.js +0 -10
- package/esm2015/message/index.js +0 -7
- package/esm2015/message/message.component.js +0 -307
- package/esm2015/message/message.module.js +0 -21
- package/esm2015/message/public-api.js +0 -8
- package/esm2015/search/covalent-core-search.js +0 -10
- package/esm2015/search/index.js +0 -7
- package/esm2015/search/public-api.js +0 -9
- package/esm2015/search/search-box/search-box.component.js +0 -270
- package/esm2015/search/search-input/search-input.component.js +0 -260
- package/esm2015/search/search.module.js +0 -23
- package/esm2015/side-sheet/covalent-core-side-sheet.js +0 -12
- package/esm2015/side-sheet/index.js +0 -7
- package/esm2015/side-sheet/public-api.js +0 -11
- package/esm2015/side-sheet/side-sheet-container.js +0 -402
- package/esm2015/side-sheet/side-sheet-ref.js +0 -50
- package/esm2015/side-sheet/side-sheet.animation.js +0 -20
- package/esm2015/side-sheet/side-sheet.config.js +0 -12
- package/esm2015/side-sheet/side-sheet.content-directives.js +0 -255
- package/esm2015/side-sheet/side-sheet.js +0 -360
- package/esm2015/side-sheet/side-sheet.module.js +0 -36
- package/esm2015/user-profile/covalent-core-user-profile.js +0 -10
- package/esm2015/user-profile/index.js +0 -7
- package/esm2015/user-profile/public_api.js +0 -9
- package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +0 -35
- package/esm2015/user-profile/user-profile.component.js +0 -26
- package/esm2015/user-profile/user-profile.module.js +0 -25
- package/fesm2015/covalent-core-breadcrumbs.js +0 -448
- package/fesm2015/covalent-core-breadcrumbs.js.map +0 -1
- package/fesm2015/covalent-core-common.js.map +0 -1
- package/fesm2015/covalent-core-dialogs.js +0 -1001
- package/fesm2015/covalent-core-dialogs.js.map +0 -1
- package/fesm2015/covalent-core-dynamic-menu.js +0 -204
- package/fesm2015/covalent-core-dynamic-menu.js.map +0 -1
- package/fesm2015/covalent-core-file.js +0 -855
- package/fesm2015/covalent-core-file.js.map +0 -1
- package/fesm2015/covalent-core-json-formatter.js +0 -377
- package/fesm2015/covalent-core-json-formatter.js.map +0 -1
- package/fesm2015/covalent-core-layout.js +0 -1663
- package/fesm2015/covalent-core-layout.js.map +0 -1
- package/fesm2015/covalent-core-menu.js +0 -57
- package/fesm2015/covalent-core-menu.js.map +0 -1
- package/fesm2015/covalent-core-message.js +0 -347
- package/fesm2015/covalent-core-message.js.map +0 -1
- package/fesm2015/covalent-core-search.js +0 -564
- package/fesm2015/covalent-core-search.js.map +0 -1
- package/fesm2015/covalent-core-side-sheet.js +0 -1134
- package/fesm2015/covalent-core-side-sheet.js.map +0 -1
- package/fesm2015/covalent-core-user-profile.js +0 -103
- package/fesm2015/covalent-core-user-profile.js.map +0 -1
- package/fesm2015/covalent-core.js +0 -12
- package/fesm2015/covalent-core.js.map +0 -1
- package/file/covalent-core-file.metadata.json +0 -1
- package/file/file-input/file-input.component.scss +0 -20
- package/file/file-upload/file-upload.component.scss +0 -30
- package/file/index.d.ts +0 -1
- package/json-formatter/covalent-core-json-formatter.metadata.json +0 -1
- package/json-formatter/index.d.ts +0 -1
- package/json-formatter/json-formatter.component.scss +0 -61
- package/layout/covalent-core-layout.metadata.json +0 -1
- package/layout/index.d.ts +0 -1
- package/layout/layout-card-over/layout-card-over.component.scss +0 -42
- package/layout/layout-footer/layout-footer.component.scss +0 -4
- package/layout/layout-manage-list/layout-manage-list.component.scss +0 -78
- package/layout/layout-nav/README.md +0 -46
- package/layout/layout-nav/layout-nav.component.scss +0 -50
- package/layout/layout-nav-list/layout-nav-list.component.scss +0 -110
- package/layout/layout.component.scss +0 -20
- package/layout/navigation-drawer/navigation-drawer.component.scss +0 -73
- package/menu/covalent-core-menu.metadata.json +0 -1
- package/menu/index.d.ts +0 -1
- package/menu/menu.component.scss +0 -43
- package/message/covalent-core-message.metadata.json +0 -1
- package/message/index.d.ts +0 -1
- package/message/message.component.scss +0 -29
- package/schematics/README.md +0 -66
- package/schematics/collection.json +0 -11
- package/schematics/components.js +0 -111
- package/schematics/components.js.map +0 -1
- package/schematics/migration.json +0 -10
- package/schematics/ng-add/files/theme.scss +0 -64
- package/schematics/ng-add/index.js +0 -58
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/schema.js +0 -3
- package/schematics/ng-add/schema.js.map +0 -1
- package/schematics/ng-add/schema.json +0 -81
- package/schematics/ng-update/index.js +0 -52
- package/schematics/ng-update/index.js.map +0 -1
- package/schematics/ng-update/target-version.js +0 -8
- package/schematics/ng-update/target-version.js.map +0 -1
- package/schematics/version-names.js +0 -6
- package/schematics/version-names.js.map +0 -1
- package/search/covalent-core-search.metadata.json +0 -1
- package/search/index.d.ts +0 -1
- package/search/search-box/README.md +0 -62
- package/search/search-box/search-box.component.scss +0 -32
- package/search/search-input/README.md +0 -65
- package/search/search-input/search-input.component.scss +0 -63
- package/side-sheet/covalent-core-side-sheet.metadata.json +0 -1
- package/side-sheet/index.d.ts +0 -1
- package/side-sheet/side-sheet.scss +0 -69
- package/theming/prebuilt/blue-grey-deep-orange.css +0 -2434
- package/theming/prebuilt/blue-grey-deep-orange.css.map +0 -1
- package/theming/prebuilt/blue-grey-deep-orange.scss +0 -13
- package/theming/prebuilt/blue-orange.css +0 -2434
- package/theming/prebuilt/blue-orange.css.map +0 -1
- package/theming/prebuilt/blue-orange.scss +0 -13
- package/theming/prebuilt/indigo-pink.css +0 -2434
- package/theming/prebuilt/indigo-pink.css.map +0 -1
- package/theming/prebuilt/indigo-pink.scss +0 -13
- package/theming/prebuilt/orange-light-blue.css +0 -2434
- package/theming/prebuilt/orange-light-blue.css.map +0 -1
- package/theming/prebuilt/orange-light-blue.scss +0 -13
- package/theming/prebuilt/teal-orange.css +0 -2434
- package/theming/prebuilt/teal-orange.css.map +0 -1
- package/theming/prebuilt/teal-orange.scss +0 -13
- package/user-profile/covalent-core-user-profile.metadata.json +0 -1
- package/user-profile/index.d.ts +0 -1
- package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -38
@@ -1,877 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/input'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/animations'), require('@angular/cdk/bidi'), require('rxjs/operators'), require('@covalent/core/common')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@covalent/core/search', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/input', '@angular/material/icon', '@angular/material/button', '@angular/animations', '@angular/cdk/bidi', 'rxjs/operators', '@covalent/core/common'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.search = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.input, global.ng.material.icon, global.ng.material.button, global.ng.animations, global.ng.cdk.bidi, global.rxjs.operators, global.covalent.core.common));
|
5
|
-
}(this, (function (exports, core, common$1, forms, input, icon, button, animations, bidi, operators, common) { 'use strict';
|
6
|
-
|
7
|
-
/*! *****************************************************************************
|
8
|
-
Copyright (c) Microsoft Corporation.
|
9
|
-
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
11
|
-
purpose with or without fee is hereby granted.
|
12
|
-
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
20
|
-
***************************************************************************** */
|
21
|
-
/* global Reflect, Promise */
|
22
|
-
var extendStatics = function (d, b) {
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
25
|
-
function (d, b) { for (var p in b)
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
27
|
-
d[p] = b[p]; };
|
28
|
-
return extendStatics(d, b);
|
29
|
-
};
|
30
|
-
function __extends(d, b) {
|
31
|
-
extendStatics(d, b);
|
32
|
-
function __() { this.constructor = d; }
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
34
|
-
}
|
35
|
-
var __assign = function () {
|
36
|
-
__assign = Object.assign || function __assign(t) {
|
37
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
38
|
-
s = arguments[i];
|
39
|
-
for (var p in s)
|
40
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
41
|
-
t[p] = s[p];
|
42
|
-
}
|
43
|
-
return t;
|
44
|
-
};
|
45
|
-
return __assign.apply(this, arguments);
|
46
|
-
};
|
47
|
-
function __rest(s, e) {
|
48
|
-
var t = {};
|
49
|
-
for (var p in s)
|
50
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
51
|
-
t[p] = s[p];
|
52
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
53
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
54
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
55
|
-
t[p[i]] = s[p[i]];
|
56
|
-
}
|
57
|
-
return t;
|
58
|
-
}
|
59
|
-
function __decorate(decorators, target, key, desc) {
|
60
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
61
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
62
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
63
|
-
else
|
64
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
65
|
-
if (d = decorators[i])
|
66
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
67
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
68
|
-
}
|
69
|
-
function __param(paramIndex, decorator) {
|
70
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
71
|
-
}
|
72
|
-
function __metadata(metadataKey, metadataValue) {
|
73
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
74
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
75
|
-
}
|
76
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
77
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
78
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
79
|
-
function fulfilled(value) { try {
|
80
|
-
step(generator.next(value));
|
81
|
-
}
|
82
|
-
catch (e) {
|
83
|
-
reject(e);
|
84
|
-
} }
|
85
|
-
function rejected(value) { try {
|
86
|
-
step(generator["throw"](value));
|
87
|
-
}
|
88
|
-
catch (e) {
|
89
|
-
reject(e);
|
90
|
-
} }
|
91
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
92
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
93
|
-
});
|
94
|
-
}
|
95
|
-
function __generator(thisArg, body) {
|
96
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
97
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
98
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
99
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
100
|
-
function step(op) {
|
101
|
-
if (f)
|
102
|
-
throw new TypeError("Generator is already executing.");
|
103
|
-
while (_)
|
104
|
-
try {
|
105
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
106
|
-
return t;
|
107
|
-
if (y = 0, t)
|
108
|
-
op = [op[0] & 2, t.value];
|
109
|
-
switch (op[0]) {
|
110
|
-
case 0:
|
111
|
-
case 1:
|
112
|
-
t = op;
|
113
|
-
break;
|
114
|
-
case 4:
|
115
|
-
_.label++;
|
116
|
-
return { value: op[1], done: false };
|
117
|
-
case 5:
|
118
|
-
_.label++;
|
119
|
-
y = op[1];
|
120
|
-
op = [0];
|
121
|
-
continue;
|
122
|
-
case 7:
|
123
|
-
op = _.ops.pop();
|
124
|
-
_.trys.pop();
|
125
|
-
continue;
|
126
|
-
default:
|
127
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
128
|
-
_ = 0;
|
129
|
-
continue;
|
130
|
-
}
|
131
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
132
|
-
_.label = op[1];
|
133
|
-
break;
|
134
|
-
}
|
135
|
-
if (op[0] === 6 && _.label < t[1]) {
|
136
|
-
_.label = t[1];
|
137
|
-
t = op;
|
138
|
-
break;
|
139
|
-
}
|
140
|
-
if (t && _.label < t[2]) {
|
141
|
-
_.label = t[2];
|
142
|
-
_.ops.push(op);
|
143
|
-
break;
|
144
|
-
}
|
145
|
-
if (t[2])
|
146
|
-
_.ops.pop();
|
147
|
-
_.trys.pop();
|
148
|
-
continue;
|
149
|
-
}
|
150
|
-
op = body.call(thisArg, _);
|
151
|
-
}
|
152
|
-
catch (e) {
|
153
|
-
op = [6, e];
|
154
|
-
y = 0;
|
155
|
-
}
|
156
|
-
finally {
|
157
|
-
f = t = 0;
|
158
|
-
}
|
159
|
-
if (op[0] & 5)
|
160
|
-
throw op[1];
|
161
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
162
|
-
}
|
163
|
-
}
|
164
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
165
|
-
if (k2 === undefined)
|
166
|
-
k2 = k;
|
167
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
168
|
-
}) : (function (o, m, k, k2) {
|
169
|
-
if (k2 === undefined)
|
170
|
-
k2 = k;
|
171
|
-
o[k2] = m[k];
|
172
|
-
});
|
173
|
-
function __exportStar(m, o) {
|
174
|
-
for (var p in m)
|
175
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
176
|
-
__createBinding(o, m, p);
|
177
|
-
}
|
178
|
-
function __values(o) {
|
179
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
180
|
-
if (m)
|
181
|
-
return m.call(o);
|
182
|
-
if (o && typeof o.length === "number")
|
183
|
-
return {
|
184
|
-
next: function () {
|
185
|
-
if (o && i >= o.length)
|
186
|
-
o = void 0;
|
187
|
-
return { value: o && o[i++], done: !o };
|
188
|
-
}
|
189
|
-
};
|
190
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
191
|
-
}
|
192
|
-
function __read(o, n) {
|
193
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
194
|
-
if (!m)
|
195
|
-
return o;
|
196
|
-
var i = m.call(o), r, ar = [], e;
|
197
|
-
try {
|
198
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
199
|
-
ar.push(r.value);
|
200
|
-
}
|
201
|
-
catch (error) {
|
202
|
-
e = { error: error };
|
203
|
-
}
|
204
|
-
finally {
|
205
|
-
try {
|
206
|
-
if (r && !r.done && (m = i["return"]))
|
207
|
-
m.call(i);
|
208
|
-
}
|
209
|
-
finally {
|
210
|
-
if (e)
|
211
|
-
throw e.error;
|
212
|
-
}
|
213
|
-
}
|
214
|
-
return ar;
|
215
|
-
}
|
216
|
-
function __spread() {
|
217
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
218
|
-
ar = ar.concat(__read(arguments[i]));
|
219
|
-
return ar;
|
220
|
-
}
|
221
|
-
function __spreadArrays() {
|
222
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
223
|
-
s += arguments[i].length;
|
224
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
225
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
226
|
-
r[k] = a[j];
|
227
|
-
return r;
|
228
|
-
}
|
229
|
-
;
|
230
|
-
function __await(v) {
|
231
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
232
|
-
}
|
233
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
234
|
-
if (!Symbol.asyncIterator)
|
235
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
236
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
237
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
238
|
-
function verb(n) { if (g[n])
|
239
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
240
|
-
function resume(n, v) { try {
|
241
|
-
step(g[n](v));
|
242
|
-
}
|
243
|
-
catch (e) {
|
244
|
-
settle(q[0][3], e);
|
245
|
-
} }
|
246
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
247
|
-
function fulfill(value) { resume("next", value); }
|
248
|
-
function reject(value) { resume("throw", value); }
|
249
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
250
|
-
resume(q[0][0], q[0][1]); }
|
251
|
-
}
|
252
|
-
function __asyncDelegator(o) {
|
253
|
-
var i, p;
|
254
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
255
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
256
|
-
}
|
257
|
-
function __asyncValues(o) {
|
258
|
-
if (!Symbol.asyncIterator)
|
259
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
260
|
-
var m = o[Symbol.asyncIterator], i;
|
261
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
262
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
263
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
264
|
-
}
|
265
|
-
function __makeTemplateObject(cooked, raw) {
|
266
|
-
if (Object.defineProperty) {
|
267
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
268
|
-
}
|
269
|
-
else {
|
270
|
-
cooked.raw = raw;
|
271
|
-
}
|
272
|
-
return cooked;
|
273
|
-
}
|
274
|
-
;
|
275
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
276
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
277
|
-
}) : function (o, v) {
|
278
|
-
o["default"] = v;
|
279
|
-
};
|
280
|
-
function __importStar(mod) {
|
281
|
-
if (mod && mod.__esModule)
|
282
|
-
return mod;
|
283
|
-
var result = {};
|
284
|
-
if (mod != null)
|
285
|
-
for (var k in mod)
|
286
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
287
|
-
__createBinding(result, mod, k);
|
288
|
-
__setModuleDefault(result, mod);
|
289
|
-
return result;
|
290
|
-
}
|
291
|
-
function __importDefault(mod) {
|
292
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
293
|
-
}
|
294
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
295
|
-
if (!privateMap.has(receiver)) {
|
296
|
-
throw new TypeError("attempted to get private field on non-instance");
|
297
|
-
}
|
298
|
-
return privateMap.get(receiver);
|
299
|
-
}
|
300
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
301
|
-
if (!privateMap.has(receiver)) {
|
302
|
-
throw new TypeError("attempted to set private field on non-instance");
|
303
|
-
}
|
304
|
-
privateMap.set(receiver, value);
|
305
|
-
return value;
|
306
|
-
}
|
307
|
-
|
308
|
-
var TdSearchInputBase = /** @class */ (function () {
|
309
|
-
/**
|
310
|
-
* @param {?} _changeDetectorRef
|
311
|
-
*/
|
312
|
-
function TdSearchInputBase(_changeDetectorRef) {
|
313
|
-
this._changeDetectorRef = _changeDetectorRef;
|
314
|
-
}
|
315
|
-
return TdSearchInputBase;
|
316
|
-
}());
|
317
|
-
if (false) {
|
318
|
-
/** @type {?} */
|
319
|
-
TdSearchInputBase.prototype._changeDetectorRef;
|
320
|
-
}
|
321
|
-
/* tslint:disable-next-line */
|
322
|
-
/** @type {?} */
|
323
|
-
var _TdSearchInputMixinBase = common.mixinControlValueAccessor(TdSearchInputBase);
|
324
|
-
var TdSearchInputComponent = /** @class */ (function (_super) {
|
325
|
-
__extends(TdSearchInputComponent, _super);
|
326
|
-
/**
|
327
|
-
* @param {?} _dir
|
328
|
-
* @param {?} _changeDetectorRef
|
329
|
-
*/
|
330
|
-
function TdSearchInputComponent(_dir, _changeDetectorRef) {
|
331
|
-
var _this = _super.call(this, _changeDetectorRef) || this;
|
332
|
-
_this._dir = _dir;
|
333
|
-
/**
|
334
|
-
* showUnderline?: boolean
|
335
|
-
* Sets if the input underline should be visible. Defaults to 'false'.
|
336
|
-
*/
|
337
|
-
_this.showUnderline = false;
|
338
|
-
/**
|
339
|
-
* debounce?: number
|
340
|
-
* Debounce timeout between keypresses. Defaults to 400.
|
341
|
-
*/
|
342
|
-
_this.debounce = 400;
|
343
|
-
/**
|
344
|
-
* clearIcon?: string
|
345
|
-
* The icon used to clear the search input.
|
346
|
-
* Defaults to 'cancel' icon.
|
347
|
-
*/
|
348
|
-
_this.clearIcon = 'cancel';
|
349
|
-
/**
|
350
|
-
* searchDebounce: function($event)
|
351
|
-
* Event emitted after the [debounce] timeout.
|
352
|
-
*/
|
353
|
-
_this.searchDebounce = new core.EventEmitter();
|
354
|
-
/**
|
355
|
-
* search: function($event)
|
356
|
-
* Event emitted after the key enter has been pressed.
|
357
|
-
*/
|
358
|
-
_this.search = new core.EventEmitter();
|
359
|
-
/**
|
360
|
-
* clear: function()
|
361
|
-
* Event emitted after the clear icon has been clicked.
|
362
|
-
*/
|
363
|
-
_this.clear = new core.EventEmitter();
|
364
|
-
/**
|
365
|
-
* blur: function()
|
366
|
-
* Event emitted after the blur event has been called in underlying input.
|
367
|
-
*/
|
368
|
-
_this.blur = new core.EventEmitter();
|
369
|
-
return _this;
|
370
|
-
}
|
371
|
-
Object.defineProperty(TdSearchInputComponent.prototype, "isRTL", {
|
372
|
-
/**
|
373
|
-
* @return {?}
|
374
|
-
*/
|
375
|
-
get: function () {
|
376
|
-
if (this._dir) {
|
377
|
-
return this._dir.dir === 'rtl';
|
378
|
-
}
|
379
|
-
return false;
|
380
|
-
},
|
381
|
-
enumerable: false,
|
382
|
-
configurable: true
|
383
|
-
});
|
384
|
-
/**
|
385
|
-
* @return {?}
|
386
|
-
*/
|
387
|
-
TdSearchInputComponent.prototype.ngOnInit = function () {
|
388
|
-
var _this = this;
|
389
|
-
this._input.ngControl.valueChanges
|
390
|
-
.pipe(operators.debounceTime(this.debounce), operators.skip(1))
|
391
|
-
.subscribe(( /**
|
392
|
-
* @param {?} value
|
393
|
-
* @return {?}
|
394
|
-
*/function (value) {
|
395
|
-
_this._searchTermChanged(value);
|
396
|
-
}));
|
397
|
-
};
|
398
|
-
/**
|
399
|
-
* Method to focus to underlying input.
|
400
|
-
* @return {?}
|
401
|
-
*/
|
402
|
-
TdSearchInputComponent.prototype.focus = function () {
|
403
|
-
this._input.focus();
|
404
|
-
};
|
405
|
-
/**
|
406
|
-
* @return {?}
|
407
|
-
*/
|
408
|
-
TdSearchInputComponent.prototype.handleBlur = function () {
|
409
|
-
this.blur.emit();
|
410
|
-
};
|
411
|
-
/**
|
412
|
-
* @param {?} event
|
413
|
-
* @return {?}
|
414
|
-
*/
|
415
|
-
TdSearchInputComponent.prototype.stopPropagation = function (event) {
|
416
|
-
event.stopPropagation();
|
417
|
-
};
|
418
|
-
/**
|
419
|
-
* @param {?} event
|
420
|
-
* @return {?}
|
421
|
-
*/
|
422
|
-
TdSearchInputComponent.prototype.handleSearch = function (event) {
|
423
|
-
this.stopPropagation(event);
|
424
|
-
this.search.emit(this.value);
|
425
|
-
};
|
426
|
-
/**
|
427
|
-
* Method to clear the underlying input.
|
428
|
-
* @return {?}
|
429
|
-
*/
|
430
|
-
TdSearchInputComponent.prototype.clearSearch = function () {
|
431
|
-
this.value = '';
|
432
|
-
this._changeDetectorRef.markForCheck();
|
433
|
-
this.clear.emit();
|
434
|
-
};
|
435
|
-
/**
|
436
|
-
* @private
|
437
|
-
* @param {?} value
|
438
|
-
* @return {?}
|
439
|
-
*/
|
440
|
-
TdSearchInputComponent.prototype._searchTermChanged = function (value) {
|
441
|
-
this.searchDebounce.emit(value);
|
442
|
-
};
|
443
|
-
return TdSearchInputComponent;
|
444
|
-
}(_TdSearchInputMixinBase));
|
445
|
-
TdSearchInputComponent.decorators = [
|
446
|
-
{ type: core.Component, args: [{
|
447
|
-
providers: [
|
448
|
-
{
|
449
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
450
|
-
useExisting: core.forwardRef(( /**
|
451
|
-
* @return {?}
|
452
|
-
*/function () { return TdSearchInputComponent; })),
|
453
|
-
multi: true,
|
454
|
-
},
|
455
|
-
],
|
456
|
-
selector: 'td-search-input',
|
457
|
-
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 matSuffix *ngIf=\"appearance === 'fill' || appearance === 'outline' || appearance === 'standard'\">\n <ng-template [ngTemplateOutlet]=\"clearButton\"></ng-template>\n </span>\n </mat-form-field>\n <ng-template *ngIf=\"!appearance || appearance === 'legacy'\" [ngTemplateOutlet]=\"clearButton\"></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]=\"searchElement.value ? 'show' : isRTL ? 'hide-left' : 'hide-right'\"\n (click)=\"clearSearch()\"\n >\n <mat-icon>{{ clearIcon }}</mat-icon>\n </button>\n</ng-template>\n",
|
458
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
459
|
-
inputs: ['value'],
|
460
|
-
animations: [
|
461
|
-
animations.trigger('searchState', [
|
462
|
-
animations.state('hide-left', animations.style({
|
463
|
-
transform: 'translateX(-150%)',
|
464
|
-
display: 'none',
|
465
|
-
})),
|
466
|
-
animations.state('hide-right', animations.style({
|
467
|
-
transform: 'translateX(150%)',
|
468
|
-
display: 'none',
|
469
|
-
})),
|
470
|
-
animations.state('show', animations.style({
|
471
|
-
transform: 'translateX(0%)',
|
472
|
-
display: 'block',
|
473
|
-
})),
|
474
|
-
animations.transition('* => show', animations.animate('200ms ease-in')),
|
475
|
-
animations.transition('show => *', animations.animate('200ms ease-out')),
|
476
|
-
]),
|
477
|
-
],
|
478
|
-
styles: [":host .td-search-input{-ms-flex-align:baseline;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:end;align-content:center;align-items:baseline;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;justify-content:flex-end;max-width:100%;overflow-x:hidden}:host .td-search-input .td-search-input-field{-ms-flex:1;flex:1}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper,: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 .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{-ms-flex-item-align:center;-ms-grid-row-align:center;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{-ms-flex:0 0 auto;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;flex:0 0 auto}"]
|
479
|
-
}] }
|
480
|
-
];
|
481
|
-
/** @nocollapse */
|
482
|
-
TdSearchInputComponent.ctorParameters = function () { return [
|
483
|
-
{ type: bidi.Dir, decorators: [{ type: core.Optional }] },
|
484
|
-
{ type: core.ChangeDetectorRef }
|
485
|
-
]; };
|
486
|
-
TdSearchInputComponent.propDecorators = {
|
487
|
-
_input: [{ type: core.ViewChild, args: [input.MatInput, { static: true },] }],
|
488
|
-
appearance: [{ type: core.Input }],
|
489
|
-
showUnderline: [{ type: core.Input }],
|
490
|
-
debounce: [{ type: core.Input }],
|
491
|
-
placeholder: [{ type: core.Input }],
|
492
|
-
clearIcon: [{ type: core.Input }],
|
493
|
-
searchDebounce: [{ type: core.Output }],
|
494
|
-
search: [{ type: core.Output }],
|
495
|
-
clear: [{ type: core.Output }],
|
496
|
-
blur: [{ type: core.Output }]
|
497
|
-
};
|
498
|
-
if (false) {
|
499
|
-
/** @type {?} */
|
500
|
-
TdSearchInputComponent.prototype._input;
|
501
|
-
/**
|
502
|
-
* appearance?: MatFormFieldAppearance
|
503
|
-
* Appearance style for the underlying input component.
|
504
|
-
* @type {?}
|
505
|
-
*/
|
506
|
-
TdSearchInputComponent.prototype.appearance;
|
507
|
-
/**
|
508
|
-
* showUnderline?: boolean
|
509
|
-
* Sets if the input underline should be visible. Defaults to 'false'.
|
510
|
-
* @type {?}
|
511
|
-
*/
|
512
|
-
TdSearchInputComponent.prototype.showUnderline;
|
513
|
-
/**
|
514
|
-
* debounce?: number
|
515
|
-
* Debounce timeout between keypresses. Defaults to 400.
|
516
|
-
* @type {?}
|
517
|
-
*/
|
518
|
-
TdSearchInputComponent.prototype.debounce;
|
519
|
-
/**
|
520
|
-
* placeholder?: string
|
521
|
-
* Placeholder for the underlying input component.
|
522
|
-
* @type {?}
|
523
|
-
*/
|
524
|
-
TdSearchInputComponent.prototype.placeholder;
|
525
|
-
/**
|
526
|
-
* clearIcon?: string
|
527
|
-
* The icon used to clear the search input.
|
528
|
-
* Defaults to 'cancel' icon.
|
529
|
-
* @type {?}
|
530
|
-
*/
|
531
|
-
TdSearchInputComponent.prototype.clearIcon;
|
532
|
-
/**
|
533
|
-
* searchDebounce: function($event)
|
534
|
-
* Event emitted after the [debounce] timeout.
|
535
|
-
* @type {?}
|
536
|
-
*/
|
537
|
-
TdSearchInputComponent.prototype.searchDebounce;
|
538
|
-
/**
|
539
|
-
* search: function($event)
|
540
|
-
* Event emitted after the key enter has been pressed.
|
541
|
-
* @type {?}
|
542
|
-
*/
|
543
|
-
TdSearchInputComponent.prototype.search;
|
544
|
-
/**
|
545
|
-
* clear: function()
|
546
|
-
* Event emitted after the clear icon has been clicked.
|
547
|
-
* @type {?}
|
548
|
-
*/
|
549
|
-
TdSearchInputComponent.prototype.clear;
|
550
|
-
/**
|
551
|
-
* blur: function()
|
552
|
-
* Event emitted after the blur event has been called in underlying input.
|
553
|
-
* @type {?}
|
554
|
-
*/
|
555
|
-
TdSearchInputComponent.prototype.blur;
|
556
|
-
/**
|
557
|
-
* @type {?}
|
558
|
-
* @private
|
559
|
-
*/
|
560
|
-
TdSearchInputComponent.prototype._dir;
|
561
|
-
}
|
562
|
-
|
563
|
-
var TdSearchBoxBase = /** @class */ (function () {
|
564
|
-
/**
|
565
|
-
* @param {?} _changeDetectorRef
|
566
|
-
*/
|
567
|
-
function TdSearchBoxBase(_changeDetectorRef) {
|
568
|
-
this._changeDetectorRef = _changeDetectorRef;
|
569
|
-
}
|
570
|
-
return TdSearchBoxBase;
|
571
|
-
}());
|
572
|
-
if (false) {
|
573
|
-
/** @type {?} */
|
574
|
-
TdSearchBoxBase.prototype._changeDetectorRef;
|
575
|
-
}
|
576
|
-
/* tslint:disable-next-line */
|
577
|
-
/** @type {?} */
|
578
|
-
var _TdSearchBoxMixinBase = common.mixinControlValueAccessor(TdSearchBoxBase);
|
579
|
-
var TdSearchBoxComponent = /** @class */ (function (_super) {
|
580
|
-
__extends(TdSearchBoxComponent, _super);
|
581
|
-
/**
|
582
|
-
* @param {?} _changeDetectorRef
|
583
|
-
*/
|
584
|
-
function TdSearchBoxComponent(_changeDetectorRef) {
|
585
|
-
var _this = _super.call(this, _changeDetectorRef) || this;
|
586
|
-
_this._searchVisible = false;
|
587
|
-
/**
|
588
|
-
* backIcon?: string
|
589
|
-
* The icon used to close the search toggle, only shown when [alwaysVisible] is false.
|
590
|
-
* Defaults to 'search' icon.
|
591
|
-
*/
|
592
|
-
_this.backIcon = 'search';
|
593
|
-
/**
|
594
|
-
* searchIcon?: string
|
595
|
-
* The icon used to open/focus the search toggle.
|
596
|
-
* Defaults to 'search' icon.
|
597
|
-
*/
|
598
|
-
_this.searchIcon = 'search';
|
599
|
-
/**
|
600
|
-
* clearIcon?: string
|
601
|
-
* The icon used to clear the search input.
|
602
|
-
* Defaults to 'cancel' icon.
|
603
|
-
*/
|
604
|
-
_this.clearIcon = 'cancel';
|
605
|
-
/**
|
606
|
-
* showUnderline?: boolean
|
607
|
-
* Sets if the input underline should be visible. Defaults to 'false'.
|
608
|
-
*/
|
609
|
-
_this.showUnderline = false;
|
610
|
-
/**
|
611
|
-
* debounce?: number
|
612
|
-
* Debounce timeout between keypresses. Defaults to 400.
|
613
|
-
*/
|
614
|
-
_this.debounce = 400;
|
615
|
-
/**
|
616
|
-
* alwaysVisible?: boolean
|
617
|
-
* Sets if the input should always be visible. Defaults to 'false'.
|
618
|
-
*/
|
619
|
-
_this.alwaysVisible = false;
|
620
|
-
/**
|
621
|
-
* searchDebounce: function($event)
|
622
|
-
* Event emitted after the [debounce] timeout.
|
623
|
-
*/
|
624
|
-
_this.searchDebounce = new core.EventEmitter();
|
625
|
-
/**
|
626
|
-
* search: function($event)
|
627
|
-
* Event emitted after the key enter has been pressed.
|
628
|
-
*/
|
629
|
-
_this.search = new core.EventEmitter();
|
630
|
-
/**
|
631
|
-
* clear: function()
|
632
|
-
* Event emitted after the clear icon has been clicked.
|
633
|
-
*/
|
634
|
-
_this.clear = new core.EventEmitter();
|
635
|
-
/**
|
636
|
-
* blur: function()
|
637
|
-
* Event emitted after the blur event has been called in underlying input.
|
638
|
-
*/
|
639
|
-
_this.blur = new core.EventEmitter();
|
640
|
-
return _this;
|
641
|
-
}
|
642
|
-
Object.defineProperty(TdSearchBoxComponent.prototype, "searchVisible", {
|
643
|
-
/**
|
644
|
-
* @return {?}
|
645
|
-
*/
|
646
|
-
get: function () {
|
647
|
-
return this._searchVisible;
|
648
|
-
},
|
649
|
-
enumerable: false,
|
650
|
-
configurable: true
|
651
|
-
});
|
652
|
-
/**
|
653
|
-
* Method executed when the search icon is clicked.
|
654
|
-
* @return {?}
|
655
|
-
*/
|
656
|
-
TdSearchBoxComponent.prototype.searchClicked = function () {
|
657
|
-
if (!this.alwaysVisible && this._searchVisible) {
|
658
|
-
this.value = '';
|
659
|
-
this.handleClear();
|
660
|
-
}
|
661
|
-
else if (this.alwaysVisible || !this._searchVisible) {
|
662
|
-
this._searchInput.focus();
|
663
|
-
}
|
664
|
-
this.toggleVisibility();
|
665
|
-
};
|
666
|
-
/**
|
667
|
-
* @return {?}
|
668
|
-
*/
|
669
|
-
TdSearchBoxComponent.prototype.toggleVisibility = function () {
|
670
|
-
this._searchVisible = !this._searchVisible;
|
671
|
-
this._changeDetectorRef.markForCheck();
|
672
|
-
};
|
673
|
-
/**
|
674
|
-
* @param {?} value
|
675
|
-
* @return {?}
|
676
|
-
*/
|
677
|
-
TdSearchBoxComponent.prototype.handleSearchDebounce = function (value) {
|
678
|
-
this.searchDebounce.emit(value);
|
679
|
-
};
|
680
|
-
/**
|
681
|
-
* @param {?} value
|
682
|
-
* @return {?}
|
683
|
-
*/
|
684
|
-
TdSearchBoxComponent.prototype.handleSearch = function (value) {
|
685
|
-
this.search.emit(value);
|
686
|
-
};
|
687
|
-
/**
|
688
|
-
* @return {?}
|
689
|
-
*/
|
690
|
-
TdSearchBoxComponent.prototype.handleClear = function () {
|
691
|
-
this.clear.emit();
|
692
|
-
};
|
693
|
-
/**
|
694
|
-
* @return {?}
|
695
|
-
*/
|
696
|
-
TdSearchBoxComponent.prototype.handleBlur = function () {
|
697
|
-
this.blur.emit();
|
698
|
-
};
|
699
|
-
return TdSearchBoxComponent;
|
700
|
-
}(_TdSearchBoxMixinBase));
|
701
|
-
TdSearchBoxComponent.decorators = [
|
702
|
-
{ type: core.Component, args: [{
|
703
|
-
providers: [
|
704
|
-
{
|
705
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
706
|
-
useExisting: core.forwardRef(( /**
|
707
|
-
* @return {?}
|
708
|
-
*/function () { return TdSearchBoxComponent; })),
|
709
|
-
multi: true,
|
710
|
-
},
|
711
|
-
],
|
712
|
-
selector: 'td-search-box',
|
713
|
-
template: "<div class=\"td-search-box\">\n <button mat-icon-button type=\"button\" class=\"td-search-icon\" (click)=\"searchClicked()\">\n <mat-icon *ngIf=\"searchVisible && !alwaysVisible\">{{ backIcon }}</mat-icon>\n <mat-icon *ngIf=\"!searchVisible || alwaysVisible\">{{ searchIcon }}</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",
|
714
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
715
|
-
inputs: ['value'],
|
716
|
-
animations: [
|
717
|
-
animations.trigger('inputState', [
|
718
|
-
animations.state('0', animations.style({
|
719
|
-
width: '0%',
|
720
|
-
margin: '0px',
|
721
|
-
})),
|
722
|
-
animations.state('1', animations.style({
|
723
|
-
width: '100%',
|
724
|
-
margin: animations.AUTO_STYLE,
|
725
|
-
})),
|
726
|
-
animations.transition('0 => 1', animations.animate('200ms ease-in')),
|
727
|
-
animations.transition('1 => 0', animations.animate('200ms ease-out')),
|
728
|
-
]),
|
729
|
-
],
|
730
|
-
styles: [":host{display:block}.td-search-box{-ms-flex-align:baseline;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:end;align-content:center;align-items:baseline;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;justify-content:flex-end;max-width:100%}.td-search-box .td-search-icon{-ms-flex:0 0 auto;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;flex:0 0 auto}.td-search-box td-search-input{margin-left:12px}::ng-deep [dir=rtl] .td-search-box td-search-input{margin-left:0!important;margin-right:12px}.td-search-box td-search-input ::ng-deep .mat-form.field.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1em}"]
|
731
|
-
}] }
|
732
|
-
];
|
733
|
-
/** @nocollapse */
|
734
|
-
TdSearchBoxComponent.ctorParameters = function () { return [
|
735
|
-
{ type: core.ChangeDetectorRef }
|
736
|
-
]; };
|
737
|
-
TdSearchBoxComponent.propDecorators = {
|
738
|
-
_searchInput: [{ type: core.ViewChild, args: [TdSearchInputComponent, { static: true },] }],
|
739
|
-
backIcon: [{ type: core.Input }],
|
740
|
-
searchIcon: [{ type: core.Input }],
|
741
|
-
clearIcon: [{ type: core.Input }],
|
742
|
-
showUnderline: [{ type: core.Input }],
|
743
|
-
debounce: [{ type: core.Input }],
|
744
|
-
alwaysVisible: [{ type: core.Input }],
|
745
|
-
placeholder: [{ type: core.Input }],
|
746
|
-
searchDebounce: [{ type: core.Output }],
|
747
|
-
search: [{ type: core.Output }],
|
748
|
-
clear: [{ type: core.Output }],
|
749
|
-
blur: [{ type: core.Output }]
|
750
|
-
};
|
751
|
-
if (false) {
|
752
|
-
/**
|
753
|
-
* @type {?}
|
754
|
-
* @private
|
755
|
-
*/
|
756
|
-
TdSearchBoxComponent.prototype._searchVisible;
|
757
|
-
/** @type {?} */
|
758
|
-
TdSearchBoxComponent.prototype._searchInput;
|
759
|
-
/**
|
760
|
-
* backIcon?: string
|
761
|
-
* The icon used to close the search toggle, only shown when [alwaysVisible] is false.
|
762
|
-
* Defaults to 'search' icon.
|
763
|
-
* @type {?}
|
764
|
-
*/
|
765
|
-
TdSearchBoxComponent.prototype.backIcon;
|
766
|
-
/**
|
767
|
-
* searchIcon?: string
|
768
|
-
* The icon used to open/focus the search toggle.
|
769
|
-
* Defaults to 'search' icon.
|
770
|
-
* @type {?}
|
771
|
-
*/
|
772
|
-
TdSearchBoxComponent.prototype.searchIcon;
|
773
|
-
/**
|
774
|
-
* clearIcon?: string
|
775
|
-
* The icon used to clear the search input.
|
776
|
-
* Defaults to 'cancel' icon.
|
777
|
-
* @type {?}
|
778
|
-
*/
|
779
|
-
TdSearchBoxComponent.prototype.clearIcon;
|
780
|
-
/**
|
781
|
-
* showUnderline?: boolean
|
782
|
-
* Sets if the input underline should be visible. Defaults to 'false'.
|
783
|
-
* @type {?}
|
784
|
-
*/
|
785
|
-
TdSearchBoxComponent.prototype.showUnderline;
|
786
|
-
/**
|
787
|
-
* debounce?: number
|
788
|
-
* Debounce timeout between keypresses. Defaults to 400.
|
789
|
-
* @type {?}
|
790
|
-
*/
|
791
|
-
TdSearchBoxComponent.prototype.debounce;
|
792
|
-
/**
|
793
|
-
* alwaysVisible?: boolean
|
794
|
-
* Sets if the input should always be visible. Defaults to 'false'.
|
795
|
-
* @type {?}
|
796
|
-
*/
|
797
|
-
TdSearchBoxComponent.prototype.alwaysVisible;
|
798
|
-
/**
|
799
|
-
* placeholder?: string
|
800
|
-
* Placeholder for the underlying input component.
|
801
|
-
* @type {?}
|
802
|
-
*/
|
803
|
-
TdSearchBoxComponent.prototype.placeholder;
|
804
|
-
/**
|
805
|
-
* searchDebounce: function($event)
|
806
|
-
* Event emitted after the [debounce] timeout.
|
807
|
-
* @type {?}
|
808
|
-
*/
|
809
|
-
TdSearchBoxComponent.prototype.searchDebounce;
|
810
|
-
/**
|
811
|
-
* search: function($event)
|
812
|
-
* Event emitted after the key enter has been pressed.
|
813
|
-
* @type {?}
|
814
|
-
*/
|
815
|
-
TdSearchBoxComponent.prototype.search;
|
816
|
-
/**
|
817
|
-
* clear: function()
|
818
|
-
* Event emitted after the clear icon has been clicked.
|
819
|
-
* @type {?}
|
820
|
-
*/
|
821
|
-
TdSearchBoxComponent.prototype.clear;
|
822
|
-
/**
|
823
|
-
* blur: function()
|
824
|
-
* Event emitted after the blur event has been called in underlying input.
|
825
|
-
* @type {?}
|
826
|
-
*/
|
827
|
-
TdSearchBoxComponent.prototype.blur;
|
828
|
-
}
|
829
|
-
|
830
|
-
/**
|
831
|
-
* @fileoverview added by tsickle
|
832
|
-
* Generated from: search.module.ts
|
833
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
834
|
-
*/
|
835
|
-
var CovalentSearchModule = /** @class */ (function () {
|
836
|
-
function CovalentSearchModule() {
|
837
|
-
}
|
838
|
-
return CovalentSearchModule;
|
839
|
-
}());
|
840
|
-
CovalentSearchModule.decorators = [
|
841
|
-
{ type: core.NgModule, args: [{
|
842
|
-
imports: [forms.FormsModule, common$1.CommonModule, input.MatInputModule, icon.MatIconModule, button.MatButtonModule],
|
843
|
-
declarations: [TdSearchInputComponent, TdSearchBoxComponent],
|
844
|
-
exports: [TdSearchInputComponent, TdSearchBoxComponent],
|
845
|
-
},] }
|
846
|
-
];
|
847
|
-
|
848
|
-
/**
|
849
|
-
* @fileoverview added by tsickle
|
850
|
-
* Generated from: public-api.ts
|
851
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
852
|
-
*/
|
853
|
-
|
854
|
-
/**
|
855
|
-
* @fileoverview added by tsickle
|
856
|
-
* Generated from: index.ts
|
857
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
858
|
-
*/
|
859
|
-
|
860
|
-
/**
|
861
|
-
* @fileoverview added by tsickle
|
862
|
-
* Generated from: covalent-core-search.ts
|
863
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
864
|
-
*/
|
865
|
-
|
866
|
-
exports.CovalentSearchModule = CovalentSearchModule;
|
867
|
-
exports.TdSearchBoxBase = TdSearchBoxBase;
|
868
|
-
exports.TdSearchBoxComponent = TdSearchBoxComponent;
|
869
|
-
exports.TdSearchInputBase = TdSearchInputBase;
|
870
|
-
exports.TdSearchInputComponent = TdSearchInputComponent;
|
871
|
-
exports._TdSearchBoxMixinBase = _TdSearchBoxMixinBase;
|
872
|
-
exports._TdSearchInputMixinBase = _TdSearchInputMixinBase;
|
873
|
-
|
874
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
875
|
-
|
876
|
-
})));
|
877
|
-
//# sourceMappingURL=covalent-core-search.umd.js.map
|