@covalent/core 3.1.0 → 3.1.2-beta.6
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/breadcrumbs/covalent-core-breadcrumbs.metadata.json +1 -1
- package/breadcrumbs/package.json +1 -3
- package/bundles/covalent-core-breadcrumbs.umd.js +131 -167
- package/bundles/covalent-core-breadcrumbs.umd.js.map +1 -1
- package/bundles/covalent-core-breadcrumbs.umd.min.js +1 -1
- package/bundles/covalent-core-breadcrumbs.umd.min.js.map +1 -1
- package/bundles/covalent-core-chips.umd.js +533 -708
- package/bundles/covalent-core-chips.umd.js.map +1 -1
- package/bundles/covalent-core-chips.umd.min.js +12 -12
- package/bundles/covalent-core-chips.umd.min.js.map +1 -1
- package/bundles/covalent-core-common.umd.js +566 -571
- package/bundles/covalent-core-common.umd.js.map +1 -1
- package/bundles/covalent-core-common.umd.min.js +13 -12
- package/bundles/covalent-core-common.umd.min.js.map +1 -1
- package/bundles/covalent-core-data-table.umd.js +727 -1038
- package/bundles/covalent-core-data-table.umd.js.map +1 -1
- package/bundles/covalent-core-data-table.umd.min.js +12 -12
- package/bundles/covalent-core-data-table.umd.min.js.map +1 -1
- package/bundles/covalent-core-dialogs.umd.js +515 -592
- package/bundles/covalent-core-dialogs.umd.js.map +1 -1
- package/bundles/covalent-core-dialogs.umd.min.js +1 -15
- package/bundles/covalent-core-dialogs.umd.min.js.map +1 -1
- package/bundles/covalent-core-dynamic-menu.umd.js +73 -62
- package/bundles/covalent-core-dynamic-menu.umd.js.map +1 -1
- package/bundles/covalent-core-dynamic-menu.umd.min.js +1 -1
- package/bundles/covalent-core-dynamic-menu.umd.min.js.map +1 -1
- package/bundles/covalent-core-expansion-panel.umd.js +465 -449
- package/bundles/covalent-core-expansion-panel.umd.js.map +1 -1
- package/bundles/covalent-core-expansion-panel.umd.min.js +12 -12
- package/bundles/covalent-core-expansion-panel.umd.min.js.map +1 -1
- package/bundles/covalent-core-file.umd.js +533 -598
- package/bundles/covalent-core-file.umd.js.map +1 -1
- package/bundles/covalent-core-file.umd.min.js +13 -12
- package/bundles/covalent-core-file.umd.min.js.map +1 -1
- package/bundles/covalent-core-json-formatter.umd.js +101 -152
- package/bundles/covalent-core-json-formatter.umd.js.map +1 -1
- package/bundles/covalent-core-json-formatter.umd.min.js +1 -1
- package/bundles/covalent-core-json-formatter.umd.min.js.map +1 -1
- package/bundles/covalent-core-layout.umd.js +845 -883
- package/bundles/covalent-core-layout.umd.js.map +1 -1
- package/bundles/covalent-core-layout.umd.min.js +13 -12
- package/bundles/covalent-core-layout.umd.min.js.map +1 -1
- package/bundles/covalent-core-loading.umd.js +481 -723
- package/bundles/covalent-core-loading.umd.js.map +1 -1
- package/bundles/covalent-core-loading.umd.min.js +12 -12
- package/bundles/covalent-core-loading.umd.min.js.map +1 -1
- package/bundles/covalent-core-media.umd.js +395 -375
- package/bundles/covalent-core-media.umd.js.map +1 -1
- package/bundles/covalent-core-media.umd.min.js +12 -12
- package/bundles/covalent-core-media.umd.min.js.map +1 -1
- package/bundles/covalent-core-menu.umd.js +37 -17
- package/bundles/covalent-core-menu.umd.js.map +1 -1
- package/bundles/covalent-core-menu.umd.min.js +1 -1
- package/bundles/covalent-core-menu.umd.min.js.map +1 -1
- package/bundles/covalent-core-message.umd.js +96 -152
- package/bundles/covalent-core-message.umd.js.map +1 -1
- package/bundles/covalent-core-message.umd.min.js +1 -1
- package/bundles/covalent-core-message.umd.min.js.map +1 -1
- package/bundles/covalent-core-nav-links.umd.js +63 -75
- package/bundles/covalent-core-nav-links.umd.js.map +1 -1
- package/bundles/covalent-core-nav-links.umd.min.js +1 -1
- package/bundles/covalent-core-nav-links.umd.min.js.map +1 -1
- package/bundles/covalent-core-notifications.umd.js +77 -101
- package/bundles/covalent-core-notifications.umd.js.map +1 -1
- package/bundles/covalent-core-notifications.umd.min.js +1 -1
- package/bundles/covalent-core-notifications.umd.min.js.map +1 -1
- package/bundles/covalent-core-paging.umd.js +89 -166
- package/bundles/covalent-core-paging.umd.js.map +1 -1
- package/bundles/covalent-core-paging.umd.min.js +1 -1
- package/bundles/covalent-core-paging.umd.min.js.map +1 -1
- package/bundles/covalent-core-search.umd.js +469 -418
- package/bundles/covalent-core-search.umd.js.map +1 -1
- package/bundles/covalent-core-search.umd.min.js +12 -12
- package/bundles/covalent-core-search.umd.min.js.map +1 -1
- package/bundles/covalent-core-sidesheet.umd.js +72 -52
- package/bundles/covalent-core-sidesheet.umd.js.map +1 -1
- package/bundles/covalent-core-sidesheet.umd.min.js +1 -1
- package/bundles/covalent-core-sidesheet.umd.min.js.map +1 -1
- package/bundles/covalent-core-steps.umd.js +663 -822
- package/bundles/covalent-core-steps.umd.js.map +1 -1
- package/bundles/covalent-core-steps.umd.min.js +12 -12
- package/bundles/covalent-core-steps.umd.min.js.map +1 -1
- package/bundles/covalent-core-tab-select.umd.js +446 -385
- package/bundles/covalent-core-tab-select.umd.js.map +1 -1
- package/bundles/covalent-core-tab-select.umd.min.js +12 -12
- package/bundles/covalent-core-tab-select.umd.min.js.map +1 -1
- package/bundles/covalent-core-user-profile.umd.js +65 -48
- package/bundles/covalent-core-user-profile.umd.js.map +1 -1
- package/bundles/covalent-core-user-profile.umd.min.js +1 -1
- package/bundles/covalent-core-user-profile.umd.min.js.map +1 -1
- package/bundles/covalent-core-virtual-scroll.umd.js +412 -356
- package/bundles/covalent-core-virtual-scroll.umd.js.map +1 -1
- package/bundles/covalent-core-virtual-scroll.umd.min.js +12 -12
- package/bundles/covalent-core-virtual-scroll.umd.min.js.map +1 -1
- package/bundles/covalent-core.umd.js +0 -8
- package/bundles/covalent-core.umd.js.map +1 -1
- package/chips/covalent-core-chips.metadata.json +1 -1
- package/chips/package.json +1 -3
- package/common/_common-theme.scss +11 -0
- package/common/package.json +1 -3
- package/data-table/covalent-core-data-table.metadata.json +1 -1
- package/data-table/package.json +1 -3
- package/dialogs/_dialog-theme.scss +6 -0
- package/dialogs/covalent-core-dialogs.metadata.json +1 -1
- package/dialogs/package.json +1 -3
- package/dialogs/window-dialog/window-dialog.component.scss +4 -0
- package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -4
- package/dynamic-menu/package.json +1 -3
- package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +4 -3
- package/esm2015/breadcrumbs/breadcrumbs.component.js +3 -2
- package/esm2015/breadcrumbs/breadcrumbs.module.js +3 -2
- package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +3 -2
- package/esm2015/breadcrumbs/index.js +3 -2
- package/esm2015/breadcrumbs/public-api.js +3 -2
- package/esm2015/chips/chips.component.js +4 -3
- package/esm2015/chips/chips.module.js +3 -2
- package/esm2015/chips/covalent-core-chips.js +3 -2
- package/esm2015/chips/index.js +3 -2
- package/esm2015/chips/public-api.js +3 -2
- package/esm2015/common/animations/bounce/bounce.animation.js +3 -2
- package/esm2015/common/animations/collapse/collapse.animation.js +3 -2
- package/esm2015/common/animations/common/interfaces.js +3 -2
- package/esm2015/common/animations/fade/fadeInOut.animation.js +3 -2
- package/esm2015/common/animations/flash/flash.animation.js +3 -2
- package/esm2015/common/animations/headshake/headshake.animation.js +3 -2
- package/esm2015/common/animations/jello/jello.animation.js +3 -2
- package/esm2015/common/animations/pulse/pulse.animation.js +3 -2
- package/esm2015/common/animations/rotate/rotate.animation.js +3 -2
- package/esm2015/common/behaviors/control-value-accesor.mixin.js +3 -2
- package/esm2015/common/behaviors/disable-ripple.mixin.js +3 -2
- package/esm2015/common/behaviors/disabled.mixin.js +3 -2
- package/esm2015/common/common.module.js +3 -2
- package/esm2015/common/covalent-core-common.js +3 -2
- package/esm2015/common/directives/fullscreen/fullscreen.directive.js +3 -2
- package/esm2015/common/forms/auto-trim/auto-trim.directive.js +3 -2
- package/esm2015/common/forms/validators/validators.js +3 -2
- package/esm2015/common/functions/clipboard.js +3 -2
- package/esm2015/common/functions/convert.js +3 -2
- package/esm2015/common/functions/download.js +3 -2
- package/esm2015/common/functions/file.js +3 -2
- package/esm2015/common/index.js +3 -2
- package/esm2015/common/pipes/bytes/bytes.pipe.js +3 -2
- package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +3 -2
- package/esm2015/common/pipes/digits/digits.pipe.js +3 -2
- package/esm2015/common/pipes/time-ago/time-ago.pipe.js +3 -2
- package/esm2015/common/pipes/time-difference/time-difference.pipe.js +3 -2
- package/esm2015/common/pipes/time-until/time-until.pipe.js +3 -2
- package/esm2015/common/pipes/truncate/truncate.pipe.js +3 -2
- package/esm2015/common/public-api.js +3 -2
- package/esm2015/common/services/icon.service.js +3 -2
- package/esm2015/common/services/router-path.service.js +3 -2
- package/esm2015/covalent-core.js +3 -2
- package/esm2015/data-table/covalent-core-data-table.js +3 -2
- package/esm2015/data-table/data-table-cell/data-table-cell.component.js +4 -3
- package/esm2015/data-table/data-table-column/data-table-column.component.js +4 -3
- package/esm2015/data-table/data-table-row/data-table-row.component.js +3 -2
- package/esm2015/data-table/data-table-table/data-table-table.component.js +4 -3
- package/esm2015/data-table/data-table.component.js +6 -5
- package/esm2015/data-table/data-table.module.js +3 -2
- package/esm2015/data-table/directives/data-table-template.directive.js +3 -2
- package/esm2015/data-table/index.js +3 -2
- package/esm2015/data-table/public-api.js +3 -2
- package/esm2015/data-table/services/data-table.service.js +3 -2
- package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +3 -2
- package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +3 -2
- package/esm2015/dialogs/covalent-core-dialogs.js +3 -2
- package/esm2015/dialogs/dialog.component.js +4 -3
- package/esm2015/dialogs/dialogs.module.js +3 -2
- package/esm2015/dialogs/index.js +3 -2
- package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +4 -3
- package/esm2015/dialogs/public-api.js +3 -2
- package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +14 -13
- package/esm2015/dialogs/services/dialog.service.js +3 -2
- package/esm2015/dialogs/window-dialog/window-dialog.component.js +4 -3
- package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +3 -2
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +5 -4
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +4 -3
- package/esm2015/dynamic-menu/dynamic-menu.component.js +3 -2
- package/esm2015/dynamic-menu/dynamic-menu.module.js +3 -2
- package/esm2015/dynamic-menu/index.js +3 -2
- package/esm2015/dynamic-menu/public_api.js +3 -2
- package/esm2015/expansion-panel/covalent-core-expansion-panel.js +3 -2
- package/esm2015/expansion-panel/expansion-panel-group.component.js +3 -2
- package/esm2015/expansion-panel/expansion-panel.component.js +4 -3
- package/esm2015/expansion-panel/expansion-panel.module.js +3 -2
- package/esm2015/expansion-panel/index.js +3 -2
- package/esm2015/expansion-panel/public-api.js +3 -2
- package/esm2015/file/covalent-core-file.js +3 -2
- package/esm2015/file/directives/file-drop.directive.js +3 -2
- package/esm2015/file/directives/file-select.directive.js +3 -2
- package/esm2015/file/file-input/file-input.component.js +3 -2
- package/esm2015/file/file-upload/file-upload.component.js +4 -3
- package/esm2015/file/file.module.js +3 -2
- package/esm2015/file/index.js +3 -2
- package/esm2015/file/public-api.js +3 -2
- package/esm2015/file/services/file.service.js +3 -2
- package/esm2015/index.js +4 -2
- package/esm2015/json-formatter/covalent-core-json-formatter.js +3 -2
- package/esm2015/json-formatter/index.js +3 -2
- package/esm2015/json-formatter/json-formatter.component.js +4 -3
- package/esm2015/json-formatter/json-formatter.module.js +3 -2
- package/esm2015/json-formatter/public-api.js +3 -2
- package/esm2015/layout/covalent-core-layout.js +4 -3
- package/esm2015/layout/index.js +4 -3
- package/esm2015/layout/layout-card-over/layout-card-over.component.js +4 -3
- package/esm2015/layout/layout-footer/layout-footer.component.js +3 -2
- package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +4 -3
- package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +7 -6
- package/esm2015/layout/layout-nav/layout-nav.component.js +4 -3
- package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +4 -3
- package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +7 -6
- package/esm2015/layout/layout-toggle.class.js +22 -12
- package/esm2015/layout/layout.component.js +4 -3
- package/esm2015/layout/layout.directives.js +7 -6
- package/esm2015/layout/layout.module.js +3 -2
- package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +4 -3
- package/esm2015/layout/public-api.js +4 -3
- package/esm2015/loading/covalent-core-loading.js +3 -2
- package/esm2015/loading/directives/loading.directive.js +3 -2
- package/esm2015/loading/index.js +3 -2
- package/esm2015/loading/loading.component.js +13 -12
- package/esm2015/loading/loading.module.js +3 -2
- package/esm2015/loading/public-api.js +3 -2
- package/esm2015/loading/services/loading.factory.js +3 -2
- package/esm2015/loading/services/loading.service.js +3 -2
- package/esm2015/media/covalent-core-media.js +3 -2
- package/esm2015/media/directives/media-toggle.directive.js +3 -2
- package/esm2015/media/index.js +3 -2
- package/esm2015/media/media.module.js +3 -2
- package/esm2015/media/public-api.js +3 -2
- package/esm2015/media/services/media.service.js +3 -2
- package/esm2015/menu/covalent-core-menu.js +3 -2
- package/esm2015/menu/index.js +3 -2
- package/esm2015/menu/menu.component.js +4 -3
- package/esm2015/menu/menu.module.js +3 -2
- package/esm2015/menu/public-api.js +3 -2
- package/esm2015/message/covalent-core-message.js +3 -2
- package/esm2015/message/index.js +3 -2
- package/esm2015/message/message.component.js +4 -3
- package/esm2015/message/message.module.js +3 -2
- package/esm2015/message/public-api.js +3 -2
- package/esm2015/nav-links/covalent-core-nav-links.js +3 -2
- package/esm2015/nav-links/index.js +3 -2
- package/esm2015/nav-links/nav-links.component.js +3 -2
- package/esm2015/nav-links/nav-links.module.js +3 -2
- package/esm2015/nav-links/public-api.js +3 -2
- package/esm2015/notifications/covalent-core-notifications.js +3 -2
- package/esm2015/notifications/index.js +3 -2
- package/esm2015/notifications/notification-count.component.js +10 -9
- package/esm2015/notifications/notifications.module.js +3 -2
- package/esm2015/notifications/public-api.js +3 -2
- package/esm2015/paging/covalent-core-paging.js +3 -2
- package/esm2015/paging/index.js +3 -2
- package/esm2015/paging/paging-bar.component.js +4 -3
- package/esm2015/paging/paging.module.js +3 -2
- package/esm2015/paging/public-api.js +3 -2
- package/esm2015/search/covalent-core-search.js +3 -2
- package/esm2015/search/index.js +3 -2
- package/esm2015/search/public-api.js +3 -2
- package/esm2015/search/search-box/search-box.component.js +4 -3
- package/esm2015/search/search-input/search-input.component.js +4 -3
- package/esm2015/search/search.module.js +3 -2
- package/esm2015/sidesheet/covalent-core-sidesheet.js +3 -2
- package/esm2015/sidesheet/index.js +3 -2
- package/esm2015/sidesheet/public-api.js +3 -2
- package/esm2015/sidesheet/sidesheet.component.js +4 -3
- package/esm2015/sidesheet/sidesheet.module.js +3 -2
- package/esm2015/steps/covalent-core-steps.js +3 -2
- package/esm2015/steps/index.js +3 -2
- package/esm2015/steps/nav/nav-step-link/nav-step-link.component.js +4 -3
- package/esm2015/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +4 -3
- package/esm2015/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +4 -3
- package/esm2015/steps/public-api.js +3 -2
- package/esm2015/steps/step-body/step-body.component.js +4 -3
- package/esm2015/steps/step-header/step-header.component.js +4 -3
- package/esm2015/steps/step.component.js +6 -5
- package/esm2015/steps/steps.component.js +6 -5
- package/esm2015/steps/steps.module.js +3 -2
- package/esm2015/tab-select/covalent-core-tab-select.js +3 -2
- package/esm2015/tab-select/index.js +3 -2
- package/esm2015/tab-select/public-api.js +3 -2
- package/esm2015/tab-select/tab-option.component.js +3 -2
- package/esm2015/tab-select/tab-select.component.js +3 -2
- package/esm2015/tab-select/tab-select.module.js +3 -2
- package/esm2015/user-profile/covalent-core-user-profile.js +3 -2
- package/esm2015/user-profile/index.js +3 -2
- package/esm2015/user-profile/public_api.js +3 -2
- package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +4 -3
- package/esm2015/user-profile/user-profile.component.js +3 -2
- package/esm2015/user-profile/user-profile.module.js +3 -2
- package/esm2015/virtual-scroll/covalent-core-virtual-scroll.js +3 -2
- package/esm2015/virtual-scroll/index.js +3 -2
- package/esm2015/virtual-scroll/public-api.js +3 -2
- package/esm2015/virtual-scroll/virtual-scroll-container.component.js +4 -3
- package/esm2015/virtual-scroll/virtual-scroll-row.directive.js +3 -2
- package/esm2015/virtual-scroll/virtual-scroll.module.js +3 -2
- package/expansion-panel/covalent-core-expansion-panel.metadata.json +1 -1
- package/expansion-panel/package.json +1 -3
- package/fesm2015/covalent-core-breadcrumbs.js +13 -7
- package/fesm2015/covalent-core-breadcrumbs.js.map +1 -1
- package/fesm2015/covalent-core-chips.js +11 -6
- package/fesm2015/covalent-core-chips.js.map +1 -1
- package/fesm2015/covalent-core-common.js +62 -31
- package/fesm2015/covalent-core-common.js.map +1 -1
- package/fesm2015/covalent-core-data-table.js +28 -17
- package/fesm2015/covalent-core-data-table.js.map +1 -1
- package/fesm2015/covalent-core-dialogs.js +36 -25
- package/fesm2015/covalent-core-dialogs.js.map +1 -1
- package/fesm2015/covalent-core-dynamic-menu.js +17 -10
- package/fesm2015/covalent-core-dynamic-menu.js.map +1 -1
- package/fesm2015/covalent-core-expansion-panel.js +13 -7
- package/fesm2015/covalent-core-expansion-panel.js.map +1 -1
- package/fesm2015/covalent-core-file.js +19 -10
- package/fesm2015/covalent-core-file.js.map +1 -1
- package/fesm2015/covalent-core-json-formatter.js +11 -6
- package/fesm2015/covalent-core-json-formatter.js.map +1 -1
- package/fesm2015/covalent-core-layout.js +65 -41
- package/fesm2015/covalent-core-layout.js.map +1 -1
- package/fesm2015/covalent-core-loading.js +26 -18
- package/fesm2015/covalent-core-loading.js.map +1 -1
- package/fesm2015/covalent-core-media.js +12 -6
- package/fesm2015/covalent-core-media.js.map +1 -1
- package/fesm2015/covalent-core-menu.js +11 -6
- package/fesm2015/covalent-core-menu.js.map +1 -1
- package/fesm2015/covalent-core-message.js +11 -6
- package/fesm2015/covalent-core-message.js.map +1 -1
- package/fesm2015/covalent-core-nav-links.js +10 -5
- package/fesm2015/covalent-core-nav-links.js.map +1 -1
- package/fesm2015/covalent-core-notifications.js +17 -12
- package/fesm2015/covalent-core-notifications.js.map +1 -1
- package/fesm2015/covalent-core-paging.js +11 -6
- package/fesm2015/covalent-core-paging.js.map +1 -1
- package/fesm2015/covalent-core-search.js +14 -8
- package/fesm2015/covalent-core-search.js.map +1 -1
- package/fesm2015/covalent-core-sidesheet.js +11 -6
- package/fesm2015/covalent-core-sidesheet.js.map +1 -1
- package/fesm2015/covalent-core-steps.js +33 -22
- package/fesm2015/covalent-core-steps.js.map +1 -1
- package/fesm2015/covalent-core-tab-select.js +12 -6
- package/fesm2015/covalent-core-tab-select.js.map +1 -1
- package/fesm2015/covalent-core-user-profile.js +13 -7
- package/fesm2015/covalent-core-user-profile.js.map +1 -1
- package/fesm2015/covalent-core-virtual-scroll.js +13 -7
- package/fesm2015/covalent-core-virtual-scroll.js.map +1 -1
- package/fesm2015/covalent-core.js +4 -2
- package/fesm2015/covalent-core.js.map +1 -1
- package/file/covalent-core-file.metadata.json +1 -1
- package/file/package.json +1 -3
- package/json-formatter/covalent-core-json-formatter.metadata.json +1 -1
- package/json-formatter/package.json +1 -3
- package/layout/covalent-core-layout.metadata.json +1 -1
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +4 -4
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +4 -4
- package/layout/layout-toggle.class.d.ts +1 -1
- package/layout/layout.directives.d.ts +4 -4
- package/layout/package.json +1 -3
- package/loading/covalent-core-loading.metadata.json +1 -1
- package/loading/package.json +1 -3
- package/media/package.json +1 -3
- package/menu/covalent-core-menu.metadata.json +1 -1
- package/menu/package.json +1 -3
- package/message/covalent-core-message.metadata.json +1 -1
- package/message/package.json +1 -3
- package/nav-links/package.json +1 -3
- package/notifications/covalent-core-notifications.metadata.json +1 -1
- package/notifications/package.json +1 -3
- package/package.json +12 -12
- package/paging/covalent-core-paging.metadata.json +1 -1
- package/paging/package.json +1 -3
- package/schematics/components.js +1 -0
- package/schematics/components.js.map +1 -1
- package/schematics/ng-add/files/theme.scss +1 -1
- package/schematics/ng-add/index.js +4 -6
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-update/index.js +1 -0
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/target-version.js +1 -0
- package/schematics/ng-update/target-version.js.map +1 -1
- package/schematics/version-names.js +1 -0
- package/schematics/version-names.js.map +1 -1
- package/search/covalent-core-search.metadata.json +1 -1
- package/search/package.json +1 -3
- package/sidesheet/covalent-core-sidesheet.metadata.json +1 -1
- package/sidesheet/package.json +1 -3
- package/steps/covalent-core-steps.metadata.json +1 -1
- package/steps/package.json +1 -3
- package/tab-select/covalent-core-tab-select.metadata.json +1 -1
- package/tab-select/package.json +1 -3
- package/theming/prebuilt/blue-grey-deep-orange.css +193 -28
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.css +193 -28
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/indigo-pink.css +193 -28
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.css +193 -28
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/teal-orange.css +193 -28
- package/theming/prebuilt/teal-orange.css.map +1 -1
- package/user-profile/covalent-core-user-profile.metadata.json +1 -1
- package/user-profile/package.json +1 -3
- package/virtual-scroll/covalent-core-virtual-scroll.metadata.json +1 -1
- package/virtual-scroll/package.json +1 -3
- package/esm5/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -216
- package/esm5/breadcrumbs/breadcrumbs.component.js +0 -286
- package/esm5/breadcrumbs/breadcrumbs.module.js +0 -23
- package/esm5/breadcrumbs/covalent-core-breadcrumbs.js +0 -9
- package/esm5/breadcrumbs/index.js +0 -6
- package/esm5/breadcrumbs/public-api.js +0 -8
- package/esm5/chips/chips.component.js +0 -1453
- package/esm5/chips/chips.module.js +0 -26
- package/esm5/chips/covalent-core-chips.js +0 -9
- package/esm5/chips/index.js +0 -6
- package/esm5/chips/public-api.js +0 -7
- package/esm5/common/animations/bounce/bounce.animation.js +0 -75
- package/esm5/common/animations/collapse/collapse.animation.js +0 -66
- package/esm5/common/animations/common/interfaces.js +0 -17
- package/esm5/common/animations/fade/fadeInOut.animation.js +0 -52
- package/esm5/common/animations/flash/flash.animation.js +0 -39
- package/esm5/common/animations/headshake/headshake.animation.js +0 -40
- package/esm5/common/animations/jello/jello.animation.js +0 -43
- package/esm5/common/animations/pulse/pulse.animation.js +0 -37
- package/esm5/common/animations/rotate/rotate.animation.js +0 -40
- package/esm5/common/behaviors/control-value-accesor.mixin.js +0 -127
- package/esm5/common/behaviors/disable-ripple.mixin.js +0 -75
- package/esm5/common/behaviors/disabled.mixin.js +0 -75
- package/esm5/common/common.module.js +0 -57
- package/esm5/common/covalent-core-common.js +0 -11
- package/esm5/common/directives/fullscreen/fullscreen.directive.js +0 -228
- package/esm5/common/forms/auto-trim/auto-trim.directive.js +0 -52
- package/esm5/common/forms/validators/validators.js +0 -73
- package/esm5/common/functions/clipboard.js +0 -29
- package/esm5/common/functions/convert.js +0 -120
- package/esm5/common/functions/download.js +0 -93
- package/esm5/common/functions/file.js +0 -28
- package/esm5/common/index.js +0 -6
- package/esm5/common/pipes/bytes/bytes.pipe.js +0 -54
- package/esm5/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -54
- package/esm5/common/pipes/digits/digits.pipe.js +0 -72
- package/esm5/common/pipes/time-ago/time-ago.pipe.js +0 -89
- package/esm5/common/pipes/time-difference/time-difference.pipe.js +0 -74
- package/esm5/common/pipes/time-until/time-until.pipe.js +0 -89
- package/esm5/common/pipes/truncate/truncate.pipe.js +0 -42
- package/esm5/common/public-api.js +0 -43
- package/esm5/common/services/icon.service.js +0 -1118
- package/esm5/common/services/router-path.service.js +0 -69
- package/esm5/covalent-core.js +0 -9
- package/esm5/data-table/covalent-core-data-table.js +0 -9
- package/esm5/data-table/data-table-cell/data-table-cell.component.js +0 -98
- package/esm5/data-table/data-table-column/data-table-column.component.js +0 -257
- package/esm5/data-table/data-table-row/data-table-row.component.js +0 -145
- package/esm5/data-table/data-table-table/data-table-table.component.js +0 -40
- package/esm5/data-table/data-table.component.js +0 -2079
- package/esm5/data-table/data-table.module.js +0 -42
- package/esm5/data-table/directives/data-table-template.directive.js +0 -31
- package/esm5/data-table/index.js +0 -6
- package/esm5/data-table/public-api.js +0 -13
- package/esm5/data-table/services/data-table.service.js +0 -184
- package/esm5/dialogs/alert-dialog/alert-dialog.component.js +0 -48
- package/esm5/dialogs/confirm-dialog/confirm-dialog.component.js +0 -63
- package/esm5/dialogs/covalent-core-dialogs.js +0 -10
- package/esm5/dialogs/dialog.component.js +0 -76
- package/esm5/dialogs/dialogs.module.js +0 -60
- package/esm5/dialogs/index.js +0 -6
- package/esm5/dialogs/prompt-dialog/prompt-dialog.component.js +0 -100
- package/esm5/dialogs/public-api.js +0 -12
- package/esm5/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -356
- package/esm5/dialogs/services/dialog.service.js +0 -441
- package/esm5/dialogs/window-dialog/window-dialog.component.js +0 -60
- package/esm5/dynamic-menu/covalent-core-dynamic-menu.js +0 -10
- package/esm5/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -45
- package/esm5/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -39
- package/esm5/dynamic-menu/dynamic-menu.component.js +0 -94
- package/esm5/dynamic-menu/dynamic-menu.module.js +0 -29
- package/esm5/dynamic-menu/index.js +0 -6
- package/esm5/dynamic-menu/public_api.js +0 -8
- package/esm5/expansion-panel/covalent-core-expansion-panel.js +0 -9
- package/esm5/expansion-panel/expansion-panel-group.component.js +0 -251
- package/esm5/expansion-panel/expansion-panel.component.js +0 -344
- package/esm5/expansion-panel/expansion-panel.module.js +0 -34
- package/esm5/expansion-panel/index.js +0 -6
- package/esm5/expansion-panel/public-api.js +0 -8
- package/esm5/file/covalent-core-file.js +0 -9
- package/esm5/file/directives/file-drop.directive.js +0 -276
- package/esm5/file/directives/file-select.directive.js +0 -124
- package/esm5/file/file-input/file-input.component.js +0 -225
- package/esm5/file/file-upload/file-upload.component.js +0 -284
- package/esm5/file/file.module.js +0 -38
- package/esm5/file/index.js +0 -6
- package/esm5/file/public-api.js +0 -11
- package/esm5/file/services/file.service.js +0 -137
- package/esm5/index.js +0 -5
- package/esm5/json-formatter/covalent-core-json-formatter.js +0 -9
- package/esm5/json-formatter/index.js +0 -6
- package/esm5/json-formatter/json-formatter.component.js +0 -433
- package/esm5/json-formatter/json-formatter.module.js +0 -23
- package/esm5/json-formatter/public-api.js +0 -7
- package/esm5/layout/covalent-core-layout.js +0 -9
- package/esm5/layout/index.js +0 -6
- package/esm5/layout/layout-card-over/layout-card-over.component.js +0 -72
- package/esm5/layout/layout-footer/layout-footer.component.js +0 -77
- package/esm5/layout/layout-manage-list/layout-manage-list.component.js +0 -175
- package/esm5/layout/layout-manage-list/layout-manage-list.directives.js +0 -147
- package/esm5/layout/layout-nav/layout-nav.component.js +0 -108
- package/esm5/layout/layout-nav-list/layout-nav-list.component.js +0 -257
- package/esm5/layout/layout-nav-list/layout-nav-list.directives.js +0 -147
- package/esm5/layout/layout-toggle.class.js +0 -214
- package/esm5/layout/layout.component.js +0 -175
- package/esm5/layout/layout.directives.js +0 -144
- package/esm5/layout/layout.module.js +0 -67
- package/esm5/layout/navigation-drawer/navigation-drawer.component.js +0 -364
- package/esm5/layout/public-api.js +0 -17
- package/esm5/loading/covalent-core-loading.js +0 -9
- package/esm5/loading/directives/loading.directive.js +0 -304
- package/esm5/loading/index.js +0 -6
- package/esm5/loading/loading.component.js +0 -367
- package/esm5/loading/loading.module.js +0 -33
- package/esm5/loading/public-api.js +0 -10
- package/esm5/loading/services/loading.factory.js +0 -378
- package/esm5/loading/services/loading.service.js +0 -494
- package/esm5/media/covalent-core-media.js +0 -9
- package/esm5/media/directives/media-toggle.directive.js +0 -261
- package/esm5/media/index.js +0 -6
- package/esm5/media/media.module.js +0 -23
- package/esm5/media/public-api.js +0 -8
- package/esm5/media/services/media.service.js +0 -229
- package/esm5/menu/covalent-core-menu.js +0 -9
- package/esm5/menu/index.js +0 -6
- package/esm5/menu/menu.component.js +0 -19
- package/esm5/menu/menu.module.js +0 -25
- package/esm5/menu/public-api.js +0 -7
- package/esm5/message/covalent-core-message.js +0 -9
- package/esm5/message/index.js +0 -6
- package/esm5/message/message.component.js +0 -402
- package/esm5/message/message.module.js +0 -24
- package/esm5/message/public-api.js +0 -7
- package/esm5/nav-links/covalent-core-nav-links.js +0 -9
- package/esm5/nav-links/index.js +0 -6
- package/esm5/nav-links/nav-links.component.js +0 -171
- package/esm5/nav-links/nav-links.module.js +0 -40
- package/esm5/nav-links/public-api.js +0 -7
- package/esm5/notifications/covalent-core-notifications.js +0 -9
- package/esm5/notifications/index.js +0 -6
- package/esm5/notifications/notification-count.component.js +0 -268
- package/esm5/notifications/notifications.module.js +0 -23
- package/esm5/notifications/public-api.js +0 -7
- package/esm5/paging/covalent-core-paging.js +0 -9
- package/esm5/paging/index.js +0 -6
- package/esm5/paging/paging-bar.component.js +0 -542
- package/esm5/paging/paging.module.js +0 -23
- package/esm5/paging/public-api.js +0 -7
- package/esm5/search/covalent-core-search.js +0 -9
- package/esm5/search/index.js +0 -6
- package/esm5/search/public-api.js +0 -8
- package/esm5/search/search-box/search-box.component.js +0 -298
- package/esm5/search/search-input/search-input.component.js +0 -297
- package/esm5/search/search.module.js +0 -26
- package/esm5/sidesheet/covalent-core-sidesheet.js +0 -9
- package/esm5/sidesheet/index.js +0 -6
- package/esm5/sidesheet/public-api.js +0 -7
- package/esm5/sidesheet/sidesheet.component.js +0 -89
- package/esm5/sidesheet/sidesheet.module.js +0 -30
- package/esm5/steps/covalent-core-steps.js +0 -9
- package/esm5/steps/index.js +0 -6
- package/esm5/steps/nav/nav-step-link/nav-step-link.component.js +0 -165
- package/esm5/steps/nav/nav-steps-horizontal/nav-steps-horizontal.component.js +0 -464
- package/esm5/steps/nav/nav-steps-vertical/nav-steps-vertical.component.js +0 -143
- package/esm5/steps/public-api.js +0 -13
- package/esm5/steps/step-body/step-body.component.js +0 -103
- package/esm5/steps/step-header/step-header.component.js +0 -101
- package/esm5/steps/step.component.js +0 -399
- package/esm5/steps/steps.component.js +0 -313
- package/esm5/steps/steps.module.js +0 -47
- package/esm5/tab-select/covalent-core-tab-select.js +0 -9
- package/esm5/tab-select/index.js +0 -6
- package/esm5/tab-select/public-api.js +0 -8
- package/esm5/tab-select/tab-option.component.js +0 -86
- package/esm5/tab-select/tab-select.component.js +0 -344
- package/esm5/tab-select/tab-select.module.js +0 -34
- package/esm5/user-profile/covalent-core-user-profile.js +0 -9
- package/esm5/user-profile/index.js +0 -6
- package/esm5/user-profile/public_api.js +0 -8
- package/esm5/user-profile/user-profile-menu/user-profile-menu.component.js +0 -42
- package/esm5/user-profile/user-profile.component.js +0 -29
- package/esm5/user-profile/user-profile.module.js +0 -36
- package/esm5/virtual-scroll/covalent-core-virtual-scroll.js +0 -9
- package/esm5/virtual-scroll/index.js +0 -6
- package/esm5/virtual-scroll/public-api.js +0 -8
- package/esm5/virtual-scroll/virtual-scroll-container.component.js +0 -468
- package/esm5/virtual-scroll/virtual-scroll-row.directive.js +0 -24
- package/esm5/virtual-scroll/virtual-scroll.module.js +0 -24
- package/fesm5/covalent-core-breadcrumbs.js +0 -535
- package/fesm5/covalent-core-breadcrumbs.js.map +0 -1
- package/fesm5/covalent-core-chips.js +0 -1484
- package/fesm5/covalent-core-chips.js.map +0 -1
- package/fesm5/covalent-core-common.js +0 -2961
- package/fesm5/covalent-core-common.js.map +0 -1
- package/fesm5/covalent-core-data-table.js +0 -2863
- package/fesm5/covalent-core-data-table.js.map +0 -1
- package/fesm5/covalent-core-dialogs.js +0 -1189
- package/fesm5/covalent-core-dialogs.js.map +0 -1
- package/fesm5/covalent-core-dynamic-menu.js +0 -214
- package/fesm5/covalent-core-dynamic-menu.js.map +0 -1
- package/fesm5/covalent-core-expansion-panel.js +0 -631
- package/fesm5/covalent-core-expansion-panel.js.map +0 -1
- package/fesm5/covalent-core-file.js +0 -1068
- package/fesm5/covalent-core-file.js.map +0 -1
- package/fesm5/covalent-core-json-formatter.js +0 -470
- package/fesm5/covalent-core-json-formatter.js.map +0 -1
- package/fesm5/covalent-core-layout.js +0 -1906
- package/fesm5/covalent-core-layout.js.map +0 -1
- package/fesm5/covalent-core-loading.js +0 -1562
- package/fesm5/covalent-core-loading.js.map +0 -1
- package/fesm5/covalent-core-media.js +0 -522
- package/fesm5/covalent-core-media.js.map +0 -1
- package/fesm5/covalent-core-menu.js +0 -58
- package/fesm5/covalent-core-menu.js.map +0 -1
- package/fesm5/covalent-core-message.js +0 -439
- package/fesm5/covalent-core-message.js.map +0 -1
- package/fesm5/covalent-core-nav-links.js +0 -224
- package/fesm5/covalent-core-nav-links.js.map +0 -1
- package/fesm5/covalent-core-notifications.js +0 -303
- package/fesm5/covalent-core-notifications.js.map +0 -1
- package/fesm5/covalent-core-paging.js +0 -579
- package/fesm5/covalent-core-paging.js.map +0 -1
- package/fesm5/covalent-core-search.js +0 -623
- package/fesm5/covalent-core-search.js.map +0 -1
- package/fesm5/covalent-core-sidesheet.js +0 -129
- package/fesm5/covalent-core-sidesheet.js.map +0 -1
- package/fesm5/covalent-core-steps.js +0 -1704
- package/fesm5/covalent-core-steps.js.map +0 -1
- package/fesm5/covalent-core-tab-select.js +0 -467
- package/fesm5/covalent-core-tab-select.js.map +0 -1
- package/fesm5/covalent-core-user-profile.js +0 -118
- package/fesm5/covalent-core-user-profile.js.map +0 -1
- package/fesm5/covalent-core-virtual-scroll.js +0 -526
- package/fesm5/covalent-core-virtual-scroll.js.map +0 -1
- package/fesm5/covalent-core.js +0 -10
- package/fesm5/covalent-core.js.map +0 -1
@@ -1,623 +0,0 @@
|
|
1
|
-
import { EventEmitter, Component, forwardRef, ChangeDetectionStrategy, Optional, ChangeDetectorRef, ViewChild, Input, Output, NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
4
|
-
import { MatInput, MatInputModule } from '@angular/material/input';
|
5
|
-
import { MatIconModule } from '@angular/material/icon';
|
6
|
-
import { MatButtonModule } from '@angular/material/button';
|
7
|
-
import { __extends } from 'tslib';
|
8
|
-
import { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';
|
9
|
-
import { Dir } from '@angular/cdk/bidi';
|
10
|
-
import { debounceTime, skip } from 'rxjs/operators';
|
11
|
-
import { mixinControlValueAccessor } from '@covalent/core/common';
|
12
|
-
|
13
|
-
/**
|
14
|
-
* @fileoverview added by tsickle
|
15
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
16
|
-
*/
|
17
|
-
var TdSearchInputBase = /** @class */ (function () {
|
18
|
-
function TdSearchInputBase(_changeDetectorRef) {
|
19
|
-
this._changeDetectorRef = _changeDetectorRef;
|
20
|
-
}
|
21
|
-
return TdSearchInputBase;
|
22
|
-
}());
|
23
|
-
if (false) {
|
24
|
-
/** @type {?} */
|
25
|
-
TdSearchInputBase.prototype._changeDetectorRef;
|
26
|
-
}
|
27
|
-
/* tslint:disable-next-line */
|
28
|
-
/** @type {?} */
|
29
|
-
var _TdSearchInputMixinBase = mixinControlValueAccessor(TdSearchInputBase);
|
30
|
-
var TdSearchInputComponent = /** @class */ (function (_super) {
|
31
|
-
__extends(TdSearchInputComponent, _super);
|
32
|
-
function TdSearchInputComponent(_dir, _changeDetectorRef) {
|
33
|
-
var _this = _super.call(this, _changeDetectorRef) || this;
|
34
|
-
_this._dir = _dir;
|
35
|
-
/**
|
36
|
-
* showUnderline?: boolean
|
37
|
-
* Sets if the input underline should be visible. Defaults to 'false'.
|
38
|
-
*/
|
39
|
-
_this.showUnderline = false;
|
40
|
-
/**
|
41
|
-
* debounce?: number
|
42
|
-
* Debounce timeout between keypresses. Defaults to 400.
|
43
|
-
*/
|
44
|
-
_this.debounce = 400;
|
45
|
-
/**
|
46
|
-
* clearIcon?: string
|
47
|
-
* The icon used to clear the search input.
|
48
|
-
* Defaults to 'cancel' icon.
|
49
|
-
*/
|
50
|
-
_this.clearIcon = 'cancel';
|
51
|
-
/**
|
52
|
-
* searchDebounce: function($event)
|
53
|
-
* Event emitted after the [debounce] timeout.
|
54
|
-
*/
|
55
|
-
_this.searchDebounce = new EventEmitter();
|
56
|
-
/**
|
57
|
-
* search: function($event)
|
58
|
-
* Event emitted after the key enter has been pressed.
|
59
|
-
*/
|
60
|
-
_this.search = new EventEmitter();
|
61
|
-
/**
|
62
|
-
* clear: function()
|
63
|
-
* Event emitted after the clear icon has been clicked.
|
64
|
-
*/
|
65
|
-
_this.clear = new EventEmitter();
|
66
|
-
/**
|
67
|
-
* blur: function()
|
68
|
-
* Event emitted after the blur event has been called in underlying input.
|
69
|
-
*/
|
70
|
-
_this.blur = new EventEmitter();
|
71
|
-
return _this;
|
72
|
-
}
|
73
|
-
Object.defineProperty(TdSearchInputComponent.prototype, "isRTL", {
|
74
|
-
get: /**
|
75
|
-
* @return {?}
|
76
|
-
*/
|
77
|
-
function () {
|
78
|
-
if (this._dir) {
|
79
|
-
return this._dir.dir === 'rtl';
|
80
|
-
}
|
81
|
-
return false;
|
82
|
-
},
|
83
|
-
enumerable: true,
|
84
|
-
configurable: true
|
85
|
-
});
|
86
|
-
/**
|
87
|
-
* @return {?}
|
88
|
-
*/
|
89
|
-
TdSearchInputComponent.prototype.ngOnInit = /**
|
90
|
-
* @return {?}
|
91
|
-
*/
|
92
|
-
function () {
|
93
|
-
var _this = this;
|
94
|
-
this._input.ngControl.valueChanges
|
95
|
-
.pipe(debounceTime(this.debounce), skip(1))
|
96
|
-
.subscribe((/**
|
97
|
-
* @param {?} value
|
98
|
-
* @return {?}
|
99
|
-
*/
|
100
|
-
function (value) {
|
101
|
-
_this._searchTermChanged(value);
|
102
|
-
}));
|
103
|
-
};
|
104
|
-
/**
|
105
|
-
* Method to focus to underlying input.
|
106
|
-
*/
|
107
|
-
/**
|
108
|
-
* Method to focus to underlying input.
|
109
|
-
* @return {?}
|
110
|
-
*/
|
111
|
-
TdSearchInputComponent.prototype.focus = /**
|
112
|
-
* Method to focus to underlying input.
|
113
|
-
* @return {?}
|
114
|
-
*/
|
115
|
-
function () {
|
116
|
-
this._input.focus();
|
117
|
-
};
|
118
|
-
/**
|
119
|
-
* @return {?}
|
120
|
-
*/
|
121
|
-
TdSearchInputComponent.prototype.handleBlur = /**
|
122
|
-
* @return {?}
|
123
|
-
*/
|
124
|
-
function () {
|
125
|
-
this.blur.emit();
|
126
|
-
};
|
127
|
-
/**
|
128
|
-
* @param {?} event
|
129
|
-
* @return {?}
|
130
|
-
*/
|
131
|
-
TdSearchInputComponent.prototype.stopPropagation = /**
|
132
|
-
* @param {?} event
|
133
|
-
* @return {?}
|
134
|
-
*/
|
135
|
-
function (event) {
|
136
|
-
event.stopPropagation();
|
137
|
-
};
|
138
|
-
/**
|
139
|
-
* @param {?} event
|
140
|
-
* @return {?}
|
141
|
-
*/
|
142
|
-
TdSearchInputComponent.prototype.handleSearch = /**
|
143
|
-
* @param {?} event
|
144
|
-
* @return {?}
|
145
|
-
*/
|
146
|
-
function (event) {
|
147
|
-
this.stopPropagation(event);
|
148
|
-
this.search.emit(this.value);
|
149
|
-
};
|
150
|
-
/**
|
151
|
-
* Method to clear the underlying input.
|
152
|
-
*/
|
153
|
-
/**
|
154
|
-
* Method to clear the underlying input.
|
155
|
-
* @return {?}
|
156
|
-
*/
|
157
|
-
TdSearchInputComponent.prototype.clearSearch = /**
|
158
|
-
* Method to clear the underlying input.
|
159
|
-
* @return {?}
|
160
|
-
*/
|
161
|
-
function () {
|
162
|
-
this.value = '';
|
163
|
-
this._changeDetectorRef.markForCheck();
|
164
|
-
this.clear.emit();
|
165
|
-
};
|
166
|
-
/**
|
167
|
-
* @private
|
168
|
-
* @param {?} value
|
169
|
-
* @return {?}
|
170
|
-
*/
|
171
|
-
TdSearchInputComponent.prototype._searchTermChanged = /**
|
172
|
-
* @private
|
173
|
-
* @param {?} value
|
174
|
-
* @return {?}
|
175
|
-
*/
|
176
|
-
function (value) {
|
177
|
-
this.searchDebounce.emit(value);
|
178
|
-
};
|
179
|
-
TdSearchInputComponent.decorators = [
|
180
|
-
{ type: Component, args: [{
|
181
|
-
providers: [
|
182
|
-
{
|
183
|
-
provide: NG_VALUE_ACCESSOR,
|
184
|
-
useExisting: forwardRef((/**
|
185
|
-
* @return {?}
|
186
|
-
*/
|
187
|
-
function () { return TdSearchInputComponent; })),
|
188
|
-
multi: true,
|
189
|
-
},
|
190
|
-
],
|
191
|
-
selector: 'td-search-input',
|
192
|
-
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",
|
193
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
194
|
-
inputs: ['value'],
|
195
|
-
animations: [
|
196
|
-
trigger('searchState', [
|
197
|
-
state('hide-left', style({
|
198
|
-
transform: 'translateX(-150%)',
|
199
|
-
display: 'none',
|
200
|
-
})),
|
201
|
-
state('hide-right', style({
|
202
|
-
transform: 'translateX(150%)',
|
203
|
-
display: 'none',
|
204
|
-
})),
|
205
|
-
state('show', style({
|
206
|
-
transform: 'translateX(0%)',
|
207
|
-
display: 'block',
|
208
|
-
})),
|
209
|
-
transition('* => show', animate('200ms ease-in')),
|
210
|
-
transition('show => *', animate('200ms ease-out')),
|
211
|
-
]),
|
212
|
-
],
|
213
|
-
styles: [":host .td-search-input{overflow-x:hidden;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:baseline;align-items:baseline;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:end;justify-content:flex-end}: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-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{-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;flex:0 0 auto;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}"]
|
214
|
-
}] }
|
215
|
-
];
|
216
|
-
/** @nocollapse */
|
217
|
-
TdSearchInputComponent.ctorParameters = function () { return [
|
218
|
-
{ type: Dir, decorators: [{ type: Optional }] },
|
219
|
-
{ type: ChangeDetectorRef }
|
220
|
-
]; };
|
221
|
-
TdSearchInputComponent.propDecorators = {
|
222
|
-
_input: [{ type: ViewChild, args: [MatInput, { static: true },] }],
|
223
|
-
appearance: [{ type: Input }],
|
224
|
-
showUnderline: [{ type: Input }],
|
225
|
-
debounce: [{ type: Input }],
|
226
|
-
placeholder: [{ type: Input }],
|
227
|
-
clearIcon: [{ type: Input }],
|
228
|
-
searchDebounce: [{ type: Output }],
|
229
|
-
search: [{ type: Output }],
|
230
|
-
clear: [{ type: Output }],
|
231
|
-
blur: [{ type: Output }]
|
232
|
-
};
|
233
|
-
return TdSearchInputComponent;
|
234
|
-
}(_TdSearchInputMixinBase));
|
235
|
-
if (false) {
|
236
|
-
/** @type {?} */
|
237
|
-
TdSearchInputComponent.prototype._input;
|
238
|
-
/**
|
239
|
-
* appearance?: MatFormFieldAppearance
|
240
|
-
* Appearance style for the underlying input component.
|
241
|
-
* @type {?}
|
242
|
-
*/
|
243
|
-
TdSearchInputComponent.prototype.appearance;
|
244
|
-
/**
|
245
|
-
* showUnderline?: boolean
|
246
|
-
* Sets if the input underline should be visible. Defaults to 'false'.
|
247
|
-
* @type {?}
|
248
|
-
*/
|
249
|
-
TdSearchInputComponent.prototype.showUnderline;
|
250
|
-
/**
|
251
|
-
* debounce?: number
|
252
|
-
* Debounce timeout between keypresses. Defaults to 400.
|
253
|
-
* @type {?}
|
254
|
-
*/
|
255
|
-
TdSearchInputComponent.prototype.debounce;
|
256
|
-
/**
|
257
|
-
* placeholder?: string
|
258
|
-
* Placeholder for the underlying input component.
|
259
|
-
* @type {?}
|
260
|
-
*/
|
261
|
-
TdSearchInputComponent.prototype.placeholder;
|
262
|
-
/**
|
263
|
-
* clearIcon?: string
|
264
|
-
* The icon used to clear the search input.
|
265
|
-
* Defaults to 'cancel' icon.
|
266
|
-
* @type {?}
|
267
|
-
*/
|
268
|
-
TdSearchInputComponent.prototype.clearIcon;
|
269
|
-
/**
|
270
|
-
* searchDebounce: function($event)
|
271
|
-
* Event emitted after the [debounce] timeout.
|
272
|
-
* @type {?}
|
273
|
-
*/
|
274
|
-
TdSearchInputComponent.prototype.searchDebounce;
|
275
|
-
/**
|
276
|
-
* search: function($event)
|
277
|
-
* Event emitted after the key enter has been pressed.
|
278
|
-
* @type {?}
|
279
|
-
*/
|
280
|
-
TdSearchInputComponent.prototype.search;
|
281
|
-
/**
|
282
|
-
* clear: function()
|
283
|
-
* Event emitted after the clear icon has been clicked.
|
284
|
-
* @type {?}
|
285
|
-
*/
|
286
|
-
TdSearchInputComponent.prototype.clear;
|
287
|
-
/**
|
288
|
-
* blur: function()
|
289
|
-
* Event emitted after the blur event has been called in underlying input.
|
290
|
-
* @type {?}
|
291
|
-
*/
|
292
|
-
TdSearchInputComponent.prototype.blur;
|
293
|
-
/**
|
294
|
-
* @type {?}
|
295
|
-
* @private
|
296
|
-
*/
|
297
|
-
TdSearchInputComponent.prototype._dir;
|
298
|
-
}
|
299
|
-
|
300
|
-
/**
|
301
|
-
* @fileoverview added by tsickle
|
302
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
303
|
-
*/
|
304
|
-
var TdSearchBoxBase = /** @class */ (function () {
|
305
|
-
function TdSearchBoxBase(_changeDetectorRef) {
|
306
|
-
this._changeDetectorRef = _changeDetectorRef;
|
307
|
-
}
|
308
|
-
return TdSearchBoxBase;
|
309
|
-
}());
|
310
|
-
if (false) {
|
311
|
-
/** @type {?} */
|
312
|
-
TdSearchBoxBase.prototype._changeDetectorRef;
|
313
|
-
}
|
314
|
-
/* tslint:disable-next-line */
|
315
|
-
/** @type {?} */
|
316
|
-
var _TdSearchBoxMixinBase = mixinControlValueAccessor(TdSearchBoxBase);
|
317
|
-
var TdSearchBoxComponent = /** @class */ (function (_super) {
|
318
|
-
__extends(TdSearchBoxComponent, _super);
|
319
|
-
function TdSearchBoxComponent(_changeDetectorRef) {
|
320
|
-
var _this = _super.call(this, _changeDetectorRef) || this;
|
321
|
-
_this._searchVisible = false;
|
322
|
-
/**
|
323
|
-
* backIcon?: string
|
324
|
-
* The icon used to close the search toggle, only shown when [alwaysVisible] is false.
|
325
|
-
* Defaults to 'search' icon.
|
326
|
-
*/
|
327
|
-
_this.backIcon = 'search';
|
328
|
-
/**
|
329
|
-
* searchIcon?: string
|
330
|
-
* The icon used to open/focus the search toggle.
|
331
|
-
* Defaults to 'search' icon.
|
332
|
-
*/
|
333
|
-
_this.searchIcon = 'search';
|
334
|
-
/**
|
335
|
-
* clearIcon?: string
|
336
|
-
* The icon used to clear the search input.
|
337
|
-
* Defaults to 'cancel' icon.
|
338
|
-
*/
|
339
|
-
_this.clearIcon = 'cancel';
|
340
|
-
/**
|
341
|
-
* showUnderline?: boolean
|
342
|
-
* Sets if the input underline should be visible. Defaults to 'false'.
|
343
|
-
*/
|
344
|
-
_this.showUnderline = false;
|
345
|
-
/**
|
346
|
-
* debounce?: number
|
347
|
-
* Debounce timeout between keypresses. Defaults to 400.
|
348
|
-
*/
|
349
|
-
_this.debounce = 400;
|
350
|
-
/**
|
351
|
-
* alwaysVisible?: boolean
|
352
|
-
* Sets if the input should always be visible. Defaults to 'false'.
|
353
|
-
*/
|
354
|
-
_this.alwaysVisible = false;
|
355
|
-
/**
|
356
|
-
* searchDebounce: function($event)
|
357
|
-
* Event emitted after the [debounce] timeout.
|
358
|
-
*/
|
359
|
-
_this.searchDebounce = new EventEmitter();
|
360
|
-
/**
|
361
|
-
* search: function($event)
|
362
|
-
* Event emitted after the key enter has been pressed.
|
363
|
-
*/
|
364
|
-
_this.search = new EventEmitter();
|
365
|
-
/**
|
366
|
-
* clear: function()
|
367
|
-
* Event emitted after the clear icon has been clicked.
|
368
|
-
*/
|
369
|
-
_this.clear = new EventEmitter();
|
370
|
-
/**
|
371
|
-
* blur: function()
|
372
|
-
* Event emitted after the blur event has been called in underlying input.
|
373
|
-
*/
|
374
|
-
_this.blur = new EventEmitter();
|
375
|
-
return _this;
|
376
|
-
}
|
377
|
-
Object.defineProperty(TdSearchBoxComponent.prototype, "searchVisible", {
|
378
|
-
get: /**
|
379
|
-
* @return {?}
|
380
|
-
*/
|
381
|
-
function () {
|
382
|
-
return this._searchVisible;
|
383
|
-
},
|
384
|
-
enumerable: true,
|
385
|
-
configurable: true
|
386
|
-
});
|
387
|
-
/**
|
388
|
-
* Method executed when the search icon is clicked.
|
389
|
-
*/
|
390
|
-
/**
|
391
|
-
* Method executed when the search icon is clicked.
|
392
|
-
* @return {?}
|
393
|
-
*/
|
394
|
-
TdSearchBoxComponent.prototype.searchClicked = /**
|
395
|
-
* Method executed when the search icon is clicked.
|
396
|
-
* @return {?}
|
397
|
-
*/
|
398
|
-
function () {
|
399
|
-
if (!this.alwaysVisible && this._searchVisible) {
|
400
|
-
this.value = '';
|
401
|
-
this.handleClear();
|
402
|
-
}
|
403
|
-
else if (this.alwaysVisible || !this._searchVisible) {
|
404
|
-
this._searchInput.focus();
|
405
|
-
}
|
406
|
-
this.toggleVisibility();
|
407
|
-
};
|
408
|
-
/**
|
409
|
-
* @return {?}
|
410
|
-
*/
|
411
|
-
TdSearchBoxComponent.prototype.toggleVisibility = /**
|
412
|
-
* @return {?}
|
413
|
-
*/
|
414
|
-
function () {
|
415
|
-
this._searchVisible = !this._searchVisible;
|
416
|
-
this._changeDetectorRef.markForCheck();
|
417
|
-
};
|
418
|
-
/**
|
419
|
-
* @param {?} value
|
420
|
-
* @return {?}
|
421
|
-
*/
|
422
|
-
TdSearchBoxComponent.prototype.handleSearchDebounce = /**
|
423
|
-
* @param {?} value
|
424
|
-
* @return {?}
|
425
|
-
*/
|
426
|
-
function (value) {
|
427
|
-
this.searchDebounce.emit(value);
|
428
|
-
};
|
429
|
-
/**
|
430
|
-
* @param {?} value
|
431
|
-
* @return {?}
|
432
|
-
*/
|
433
|
-
TdSearchBoxComponent.prototype.handleSearch = /**
|
434
|
-
* @param {?} value
|
435
|
-
* @return {?}
|
436
|
-
*/
|
437
|
-
function (value) {
|
438
|
-
this.search.emit(value);
|
439
|
-
};
|
440
|
-
/**
|
441
|
-
* @return {?}
|
442
|
-
*/
|
443
|
-
TdSearchBoxComponent.prototype.handleClear = /**
|
444
|
-
* @return {?}
|
445
|
-
*/
|
446
|
-
function () {
|
447
|
-
this.clear.emit();
|
448
|
-
};
|
449
|
-
/**
|
450
|
-
* @return {?}
|
451
|
-
*/
|
452
|
-
TdSearchBoxComponent.prototype.handleBlur = /**
|
453
|
-
* @return {?}
|
454
|
-
*/
|
455
|
-
function () {
|
456
|
-
this.blur.emit();
|
457
|
-
};
|
458
|
-
TdSearchBoxComponent.decorators = [
|
459
|
-
{ type: Component, args: [{
|
460
|
-
providers: [
|
461
|
-
{
|
462
|
-
provide: NG_VALUE_ACCESSOR,
|
463
|
-
useExisting: forwardRef((/**
|
464
|
-
* @return {?}
|
465
|
-
*/
|
466
|
-
function () { return TdSearchBoxComponent; })),
|
467
|
-
multi: true,
|
468
|
-
},
|
469
|
-
],
|
470
|
-
selector: 'td-search-box',
|
471
|
-
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",
|
472
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
473
|
-
inputs: ['value'],
|
474
|
-
animations: [
|
475
|
-
trigger('inputState', [
|
476
|
-
state('0', style({
|
477
|
-
width: '0%',
|
478
|
-
margin: '0px',
|
479
|
-
})),
|
480
|
-
state('1', style({
|
481
|
-
width: '100%',
|
482
|
-
margin: AUTO_STYLE,
|
483
|
-
})),
|
484
|
-
transition('0 => 1', animate('200ms ease-in')),
|
485
|
-
transition('1 => 0', animate('200ms ease-out')),
|
486
|
-
]),
|
487
|
-
],
|
488
|
-
styles: [":host{display:block}.td-search-box{box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:baseline;align-items:baseline;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:end;justify-content:flex-end}.td-search-box .td-search-icon{-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-item-align:center;-ms-grid-row-align:center;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}"]
|
489
|
-
}] }
|
490
|
-
];
|
491
|
-
/** @nocollapse */
|
492
|
-
TdSearchBoxComponent.ctorParameters = function () { return [
|
493
|
-
{ type: ChangeDetectorRef }
|
494
|
-
]; };
|
495
|
-
TdSearchBoxComponent.propDecorators = {
|
496
|
-
_searchInput: [{ type: ViewChild, args: [TdSearchInputComponent, { static: true },] }],
|
497
|
-
backIcon: [{ type: Input }],
|
498
|
-
searchIcon: [{ type: Input }],
|
499
|
-
clearIcon: [{ type: Input }],
|
500
|
-
showUnderline: [{ type: Input }],
|
501
|
-
debounce: [{ type: Input }],
|
502
|
-
alwaysVisible: [{ type: Input }],
|
503
|
-
placeholder: [{ type: Input }],
|
504
|
-
searchDebounce: [{ type: Output }],
|
505
|
-
search: [{ type: Output }],
|
506
|
-
clear: [{ type: Output }],
|
507
|
-
blur: [{ type: Output }]
|
508
|
-
};
|
509
|
-
return TdSearchBoxComponent;
|
510
|
-
}(_TdSearchBoxMixinBase));
|
511
|
-
if (false) {
|
512
|
-
/**
|
513
|
-
* @type {?}
|
514
|
-
* @private
|
515
|
-
*/
|
516
|
-
TdSearchBoxComponent.prototype._searchVisible;
|
517
|
-
/** @type {?} */
|
518
|
-
TdSearchBoxComponent.prototype._searchInput;
|
519
|
-
/**
|
520
|
-
* backIcon?: string
|
521
|
-
* The icon used to close the search toggle, only shown when [alwaysVisible] is false.
|
522
|
-
* Defaults to 'search' icon.
|
523
|
-
* @type {?}
|
524
|
-
*/
|
525
|
-
TdSearchBoxComponent.prototype.backIcon;
|
526
|
-
/**
|
527
|
-
* searchIcon?: string
|
528
|
-
* The icon used to open/focus the search toggle.
|
529
|
-
* Defaults to 'search' icon.
|
530
|
-
* @type {?}
|
531
|
-
*/
|
532
|
-
TdSearchBoxComponent.prototype.searchIcon;
|
533
|
-
/**
|
534
|
-
* clearIcon?: string
|
535
|
-
* The icon used to clear the search input.
|
536
|
-
* Defaults to 'cancel' icon.
|
537
|
-
* @type {?}
|
538
|
-
*/
|
539
|
-
TdSearchBoxComponent.prototype.clearIcon;
|
540
|
-
/**
|
541
|
-
* showUnderline?: boolean
|
542
|
-
* Sets if the input underline should be visible. Defaults to 'false'.
|
543
|
-
* @type {?}
|
544
|
-
*/
|
545
|
-
TdSearchBoxComponent.prototype.showUnderline;
|
546
|
-
/**
|
547
|
-
* debounce?: number
|
548
|
-
* Debounce timeout between keypresses. Defaults to 400.
|
549
|
-
* @type {?}
|
550
|
-
*/
|
551
|
-
TdSearchBoxComponent.prototype.debounce;
|
552
|
-
/**
|
553
|
-
* alwaysVisible?: boolean
|
554
|
-
* Sets if the input should always be visible. Defaults to 'false'.
|
555
|
-
* @type {?}
|
556
|
-
*/
|
557
|
-
TdSearchBoxComponent.prototype.alwaysVisible;
|
558
|
-
/**
|
559
|
-
* placeholder?: string
|
560
|
-
* Placeholder for the underlying input component.
|
561
|
-
* @type {?}
|
562
|
-
*/
|
563
|
-
TdSearchBoxComponent.prototype.placeholder;
|
564
|
-
/**
|
565
|
-
* searchDebounce: function($event)
|
566
|
-
* Event emitted after the [debounce] timeout.
|
567
|
-
* @type {?}
|
568
|
-
*/
|
569
|
-
TdSearchBoxComponent.prototype.searchDebounce;
|
570
|
-
/**
|
571
|
-
* search: function($event)
|
572
|
-
* Event emitted after the key enter has been pressed.
|
573
|
-
* @type {?}
|
574
|
-
*/
|
575
|
-
TdSearchBoxComponent.prototype.search;
|
576
|
-
/**
|
577
|
-
* clear: function()
|
578
|
-
* Event emitted after the clear icon has been clicked.
|
579
|
-
* @type {?}
|
580
|
-
*/
|
581
|
-
TdSearchBoxComponent.prototype.clear;
|
582
|
-
/**
|
583
|
-
* blur: function()
|
584
|
-
* Event emitted after the blur event has been called in underlying input.
|
585
|
-
* @type {?}
|
586
|
-
*/
|
587
|
-
TdSearchBoxComponent.prototype.blur;
|
588
|
-
}
|
589
|
-
|
590
|
-
/**
|
591
|
-
* @fileoverview added by tsickle
|
592
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
593
|
-
*/
|
594
|
-
var CovalentSearchModule = /** @class */ (function () {
|
595
|
-
function CovalentSearchModule() {
|
596
|
-
}
|
597
|
-
CovalentSearchModule.decorators = [
|
598
|
-
{ type: NgModule, args: [{
|
599
|
-
imports: [FormsModule, CommonModule, MatInputModule, MatIconModule, MatButtonModule],
|
600
|
-
declarations: [TdSearchInputComponent, TdSearchBoxComponent],
|
601
|
-
exports: [TdSearchInputComponent, TdSearchBoxComponent],
|
602
|
-
},] }
|
603
|
-
];
|
604
|
-
return CovalentSearchModule;
|
605
|
-
}());
|
606
|
-
|
607
|
-
/**
|
608
|
-
* @fileoverview added by tsickle
|
609
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
610
|
-
*/
|
611
|
-
|
612
|
-
/**
|
613
|
-
* @fileoverview added by tsickle
|
614
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
615
|
-
*/
|
616
|
-
|
617
|
-
/**
|
618
|
-
* @fileoverview added by tsickle
|
619
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
620
|
-
*/
|
621
|
-
|
622
|
-
export { CovalentSearchModule, TdSearchBoxBase, TdSearchBoxComponent, TdSearchInputBase, TdSearchInputComponent, _TdSearchBoxMixinBase, _TdSearchInputMixinBase };
|
623
|
-
//# sourceMappingURL=covalent-core-search.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"covalent-core-search.js","sources":["ng://@covalent/core/search/search-input/search-input.component.ts","ng://@covalent/core/search/search-box/search-box.component.ts","ng://@covalent/core/search/search.module.ts"],"sourcesContent":["import {\n Component,\n ViewChild,\n OnInit,\n Input,\n Output,\n EventEmitter,\n Optional,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n forwardRef,\n} from '@angular/core';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Dir } from '@angular/cdk/bidi';\nimport { MatInput } from '@angular/material/input';\nimport { MatFormFieldAppearance } from '@angular/material/form-field';\n\nimport { debounceTime, skip } from 'rxjs/operators';\n\nimport { IControlValueAccessor, mixinControlValueAccessor } from '@covalent/core/common';\n\nexport class TdSearchInputBase {\n constructor(public _changeDetectorRef: ChangeDetectorRef) {}\n}\n\n/* tslint:disable-next-line */\nexport const _TdSearchInputMixinBase = mixinControlValueAccessor(TdSearchInputBase);\n\n@Component({\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TdSearchInputComponent),\n multi: true,\n },\n ],\n selector: 'td-search-input',\n templateUrl: './search-input.component.html',\n styleUrls: ['./search-input.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['value'],\n animations: [\n trigger('searchState', [\n state(\n 'hide-left',\n style({\n transform: 'translateX(-150%)',\n display: 'none',\n }),\n ),\n state(\n 'hide-right',\n style({\n transform: 'translateX(150%)',\n display: 'none',\n }),\n ),\n state(\n 'show',\n style({\n transform: 'translateX(0%)',\n display: 'block',\n }),\n ),\n transition('* => show', animate('200ms ease-in')),\n transition('show => *', animate('200ms ease-out')),\n ]),\n ],\n})\nexport class TdSearchInputComponent extends _TdSearchInputMixinBase implements IControlValueAccessor, OnInit {\n @ViewChild(MatInput, { static: true }) _input: MatInput;\n\n /**\n * appearance?: MatFormFieldAppearance\n * Appearance style for the underlying input component.\n */\n @Input() appearance: MatFormFieldAppearance;\n\n /**\n * showUnderline?: boolean\n * Sets if the input underline should be visible. Defaults to 'false'.\n */\n @Input() showUnderline: boolean = false;\n\n /**\n * debounce?: number\n * Debounce timeout between keypresses. Defaults to 400.\n */\n @Input() debounce: number = 400;\n\n /**\n * placeholder?: string\n * Placeholder for the underlying input component.\n */\n @Input() placeholder: string;\n\n /**\n * clearIcon?: string\n * The icon used to clear the search input.\n * Defaults to 'cancel' icon.\n */\n @Input() clearIcon: string = 'cancel';\n\n /**\n * searchDebounce: function($event)\n * Event emitted after the [debounce] timeout.\n */\n @Output() searchDebounce: EventEmitter<string> = new EventEmitter<string>();\n\n /**\n * search: function($event)\n * Event emitted after the key enter has been pressed.\n */\n @Output() search: EventEmitter<string> = new EventEmitter<string>();\n\n /**\n * clear: function()\n * Event emitted after the clear icon has been clicked.\n */\n @Output() clear: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * blur: function()\n * Event emitted after the blur event has been called in underlying input.\n */\n @Output() blur: EventEmitter<void> = new EventEmitter<void>();\n\n get isRTL(): boolean {\n if (this._dir) {\n return this._dir.dir === 'rtl';\n }\n return false;\n }\n\n constructor(@Optional() private _dir: Dir, _changeDetectorRef: ChangeDetectorRef) {\n super(_changeDetectorRef);\n }\n\n ngOnInit(): void {\n this._input.ngControl.valueChanges\n .pipe(\n debounceTime(this.debounce),\n skip(1), // skip first change when value is set to undefined\n )\n .subscribe((value: string) => {\n this._searchTermChanged(value);\n });\n }\n\n /**\n * Method to focus to underlying input.\n */\n focus(): void {\n this._input.focus();\n }\n\n handleBlur(): void {\n this.blur.emit();\n }\n\n stopPropagation(event: Event): void {\n event.stopPropagation();\n }\n\n handleSearch(event: Event): void {\n this.stopPropagation(event);\n this.search.emit(this.value);\n }\n\n /**\n * Method to clear the underlying input.\n */\n clearSearch(): void {\n this.value = '';\n this._changeDetectorRef.markForCheck();\n this.clear.emit();\n }\n\n private _searchTermChanged(value: string): void {\n this.searchDebounce.emit(value);\n }\n}\n","import {\n Component,\n ViewChild,\n Input,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { trigger, state, style, transition, animate, AUTO_STYLE } from '@angular/animations';\n\nimport { TdSearchInputComponent } from '../search-input/search-input.component';\nimport { IControlValueAccessor, mixinControlValueAccessor } from '@covalent/core/common';\n\nexport class TdSearchBoxBase {\n constructor(public _changeDetectorRef: ChangeDetectorRef) {}\n}\n\n/* tslint:disable-next-line */\nexport const _TdSearchBoxMixinBase = mixinControlValueAccessor(TdSearchBoxBase);\n\n@Component({\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TdSearchBoxComponent),\n multi: true,\n },\n ],\n selector: 'td-search-box',\n templateUrl: './search-box.component.html',\n styleUrls: ['./search-box.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['value'],\n animations: [\n trigger('inputState', [\n state(\n '0',\n style({\n width: '0%',\n margin: '0px',\n }),\n ),\n state(\n '1',\n style({\n width: '100%',\n margin: AUTO_STYLE,\n }),\n ),\n transition('0 => 1', animate('200ms ease-in')),\n transition('1 => 0', animate('200ms ease-out')),\n ]),\n ],\n})\nexport class TdSearchBoxComponent extends _TdSearchBoxMixinBase implements IControlValueAccessor {\n private _searchVisible: boolean = false;\n @ViewChild(TdSearchInputComponent, { static: true }) _searchInput: TdSearchInputComponent;\n\n get searchVisible(): boolean {\n return this._searchVisible;\n }\n\n /**\n * backIcon?: string\n * The icon used to close the search toggle, only shown when [alwaysVisible] is false.\n * Defaults to 'search' icon.\n */\n @Input() backIcon: string = 'search';\n\n /**\n * searchIcon?: string\n * The icon used to open/focus the search toggle.\n * Defaults to 'search' icon.\n */\n @Input() searchIcon: string = 'search';\n\n /**\n * clearIcon?: string\n * The icon used to clear the search input.\n * Defaults to 'cancel' icon.\n */\n @Input() clearIcon: string = 'cancel';\n\n /**\n * showUnderline?: boolean\n * Sets if the input underline should be visible. Defaults to 'false'.\n */\n @Input() showUnderline: boolean = false;\n\n /**\n * debounce?: number\n * Debounce timeout between keypresses. Defaults to 400.\n */\n @Input() debounce: number = 400;\n\n /**\n * alwaysVisible?: boolean\n * Sets if the input should always be visible. Defaults to 'false'.\n */\n @Input() alwaysVisible: boolean = false;\n\n /**\n * placeholder?: string\n * Placeholder for the underlying input component.\n */\n @Input() placeholder: string;\n\n /**\n * searchDebounce: function($event)\n * Event emitted after the [debounce] timeout.\n */\n @Output() searchDebounce: EventEmitter<string> = new EventEmitter<string>();\n\n /**\n * search: function($event)\n * Event emitted after the key enter has been pressed.\n */\n @Output() search: EventEmitter<string> = new EventEmitter<string>();\n\n /**\n * clear: function()\n * Event emitted after the clear icon has been clicked.\n */\n @Output() clear: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * blur: function()\n * Event emitted after the blur event has been called in underlying input.\n */\n @Output() blur: EventEmitter<void> = new EventEmitter<void>();\n\n constructor(_changeDetectorRef: ChangeDetectorRef) {\n super(_changeDetectorRef);\n }\n\n /**\n * Method executed when the search icon is clicked.\n */\n searchClicked(): void {\n if (!this.alwaysVisible && this._searchVisible) {\n this.value = '';\n this.handleClear();\n } else if (this.alwaysVisible || !this._searchVisible) {\n this._searchInput.focus();\n }\n this.toggleVisibility();\n }\n\n toggleVisibility(): void {\n this._searchVisible = !this._searchVisible;\n this._changeDetectorRef.markForCheck();\n }\n\n handleSearchDebounce(value: string): void {\n this.searchDebounce.emit(value);\n }\n\n handleSearch(value: string): void {\n this.search.emit(value);\n }\n\n handleClear(): void {\n this.clear.emit();\n }\n\n handleBlur(): void {\n this.blur.emit();\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { MatInputModule } from '@angular/material/input';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\n\nimport { TdSearchInputComponent } from './search-input/search-input.component';\nimport { TdSearchBoxComponent } from './search-box/search-box.component';\n\n@NgModule({\n imports: [FormsModule, CommonModule, MatInputModule, MatIconModule, MatButtonModule],\n declarations: [TdSearchInputComponent, TdSearchBoxComponent],\n exports: [TdSearchInputComponent, TdSearchBoxComponent],\n})\nexport class CovalentSearchModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAuBE,2BAAmB,kBAAqC;QAArC,uBAAkB,GAAlB,kBAAkB,CAAmB;KAAI;IAC9D,wBAAC;AAAD,CAAC,IAAA;;;IADa,+CAA4C;;;;IAI7C,uBAAuB,GAAG,yBAAyB,CAAC,iBAAiB;;IA2CtC,0CAAuB;IAiEjE,gCAAgC,IAAS,EAAE,kBAAqC;QAAhF,YACE,kBAAM,kBAAkB,CAAC,SAC1B;QAF+B,UAAI,GAAJ,IAAI,CAAK;;;;;QApDhC,mBAAa,GAAY,KAAK,CAAC;;;;;QAM/B,cAAQ,GAAW,GAAG,CAAC;;;;;;Q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