@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,248 +1,340 @@
|
|
1
1
|
(function (global, factory) {
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/checkbox'), require('@angular/material/tooltip'), require('@angular/material/icon'), require('@angular/material/core'), require('@angular/platform-browser'), require('@angular/forms'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/portal'), require('@covalent/core/common')) :
|
3
3
|
typeof define === 'function' && define.amd ? define('@covalent/core/data-table', ['exports', '@angular/core', '@angular/common', '@angular/material/checkbox', '@angular/material/tooltip', '@angular/material/icon', '@angular/material/core', '@angular/platform-browser', '@angular/forms', '@angular/cdk/coercion', '@angular/cdk/keycodes', 'rxjs', 'rxjs/operators', '@angular/cdk/portal', '@covalent/core/common'], factory) :
|
4
|
-
(global = global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core['data-table'] = {}), global.ng.core, global.ng.common, global.ng.material.checkbox, global.ng.material.tooltip, global.ng.material.icon, global.ng.material.core, global.ng.platformBrowser, global.ng.forms, global.ng.cdk.coercion, global.ng.cdk.keycodes, global.rxjs, global.rxjs.operators, global.ng.cdk.portal, global.covalent.core.common));
|
5
|
-
}(this, (function (exports, core, common, checkbox, tooltip, icon, core$1, platformBrowser, forms, coercion, keycodes, rxjs, operators, portal, common
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core['data-table'] = {}), global.ng.core, global.ng.common, global.ng.material.checkbox, global.ng.material.tooltip, global.ng.material.icon, global.ng.material.core, global.ng.platformBrowser, global.ng.forms, global.ng.cdk.coercion, global.ng.cdk.keycodes, global.rxjs, global.rxjs.operators, global.ng.cdk.portal, global.covalent.core.common));
|
5
|
+
}(this, (function (exports, core, common$1, checkbox, tooltip, icon, core$1, platformBrowser, forms, coercion, keycodes, rxjs, operators, portal, common) { 'use strict';
|
6
6
|
|
7
|
-
/*! *****************************************************************************
|
8
|
-
Copyright (c) Microsoft Corporation.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
***************************************************************************** */
|
21
|
-
/* global Reflect, Promise */
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
function __rest(s, e) {
|
48
|
-
var t = {};
|
49
|
-
for (var p in s)
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
return
|
68
|
-
}
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
function
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
if (
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
var
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
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;
|
219
306
|
}
|
220
307
|
|
221
308
|
/**
|
222
309
|
* @fileoverview added by tsickle
|
223
|
-
*
|
310
|
+
* Generated from: data-table-row/data-table-row.component.ts
|
311
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
224
312
|
*/
|
225
313
|
var TdDataTableColumnRowComponent = /** @class */ (function () {
|
314
|
+
/**
|
315
|
+
* @param {?} _elementRef
|
316
|
+
* @param {?} _renderer
|
317
|
+
*/
|
226
318
|
function TdDataTableColumnRowComponent(_elementRef, _renderer) {
|
227
319
|
this._elementRef = _elementRef;
|
228
320
|
this._renderer = _renderer;
|
229
321
|
this._renderer.addClass(this._elementRef.nativeElement, 'td-data-table-column-row');
|
230
322
|
}
|
231
|
-
TdDataTableColumnRowComponent.decorators = [
|
232
|
-
{ type: core.Component, args: [{
|
233
|
-
/* tslint:disable-next-line */
|
234
|
-
selector: 'tr[td-data-table-column-row]',
|
235
|
-
template: "<ng-content></ng-content>\n",
|
236
|
-
styles: [":host{border-bottom-style:solid;border-bottom-width:1px}:host.td-data-table-row{height:48px}:host.td-data-table-column-row{height:56px}"]
|
237
|
-
}] }
|
238
|
-
];
|
239
|
-
/** @nocollapse */
|
240
|
-
TdDataTableColumnRowComponent.ctorParameters = function () { return [
|
241
|
-
{ type: core.ElementRef },
|
242
|
-
{ type: core.Renderer2 }
|
243
|
-
]; };
|
244
323
|
return TdDataTableColumnRowComponent;
|
245
324
|
}());
|
325
|
+
TdDataTableColumnRowComponent.decorators = [
|
326
|
+
{ type: core.Component, args: [{
|
327
|
+
/* tslint:disable-next-line */
|
328
|
+
selector: 'tr[td-data-table-column-row]',
|
329
|
+
template: "<ng-content></ng-content>\n",
|
330
|
+
styles: [":host{border-bottom-style:solid;border-bottom-width:1px}:host.td-data-table-row{height:48px}:host.td-data-table-column-row{height:56px}"]
|
331
|
+
}] }
|
332
|
+
];
|
333
|
+
/** @nocollapse */
|
334
|
+
TdDataTableColumnRowComponent.ctorParameters = function () { return [
|
335
|
+
{ type: core.ElementRef },
|
336
|
+
{ type: core.Renderer2 }
|
337
|
+
]; };
|
246
338
|
if (false) {
|
247
339
|
/**
|
248
340
|
* @type {?}
|
@@ -256,6 +348,10 @@
|
|
256
348
|
TdDataTableColumnRowComponent.prototype._renderer;
|
257
349
|
}
|
258
350
|
var TdDataTableRowComponent = /** @class */ (function () {
|
351
|
+
/**
|
352
|
+
* @param {?} _elementRef
|
353
|
+
* @param {?} _renderer
|
354
|
+
*/
|
259
355
|
function TdDataTableRowComponent(_elementRef, _renderer) {
|
260
356
|
this._elementRef = _elementRef;
|
261
357
|
this._renderer = _renderer;
|
@@ -263,17 +359,17 @@
|
|
263
359
|
this._renderer.addClass(this._elementRef.nativeElement, 'td-data-table-row');
|
264
360
|
}
|
265
361
|
Object.defineProperty(TdDataTableRowComponent.prototype, "selected", {
|
266
|
-
|
362
|
+
/**
|
267
363
|
* @return {?}
|
268
364
|
*/
|
269
|
-
function () {
|
365
|
+
get: function () {
|
270
366
|
return this._selected;
|
271
367
|
},
|
272
|
-
|
368
|
+
/**
|
273
369
|
* @param {?} selected
|
274
370
|
* @return {?}
|
275
371
|
*/
|
276
|
-
function (selected) {
|
372
|
+
set: function (selected) {
|
277
373
|
if (selected) {
|
278
374
|
this._renderer.addClass(this._elementRef.nativeElement, 'td-selected');
|
279
375
|
}
|
@@ -282,66 +378,56 @@
|
|
282
378
|
}
|
283
379
|
this._selected = selected;
|
284
380
|
},
|
285
|
-
enumerable:
|
381
|
+
enumerable: false,
|
286
382
|
configurable: true
|
287
383
|
});
|
288
384
|
Object.defineProperty(TdDataTableRowComponent.prototype, "height", {
|
289
|
-
|
385
|
+
/**
|
290
386
|
* @return {?}
|
291
387
|
*/
|
292
|
-
function () {
|
388
|
+
get: function () {
|
293
389
|
/** @type {?} */
|
294
390
|
var height = 48;
|
295
391
|
if (this._elementRef.nativeElement) {
|
296
|
-
height = ((/** @type {?} */
|
392
|
+
height = (( /** @type {?} */(this._elementRef.nativeElement))).getBoundingClientRect().height;
|
297
393
|
}
|
298
394
|
return height;
|
299
395
|
},
|
300
|
-
enumerable:
|
396
|
+
enumerable: false,
|
301
397
|
configurable: true
|
302
398
|
});
|
303
399
|
/**
|
304
|
-
* Listening to click event to explicitly focus the row element.
|
305
|
-
*/
|
306
|
-
/**
|
307
|
-
* Listening to click event to explicitly focus the row element.
|
308
|
-
* @return {?}
|
309
|
-
*/
|
310
|
-
TdDataTableRowComponent.prototype.clickListener = /**
|
311
400
|
* Listening to click event to explicitly focus the row element.
|
312
401
|
* @return {?}
|
313
402
|
*/
|
314
|
-
function () {
|
403
|
+
TdDataTableRowComponent.prototype.clickListener = function () {
|
315
404
|
this.focus();
|
316
405
|
};
|
317
406
|
/**
|
318
407
|
* @return {?}
|
319
408
|
*/
|
320
|
-
TdDataTableRowComponent.prototype.focus =
|
321
|
-
* @return {?}
|
322
|
-
*/
|
323
|
-
function () {
|
409
|
+
TdDataTableRowComponent.prototype.focus = function () {
|
324
410
|
this._elementRef.nativeElement.focus();
|
325
411
|
};
|
326
|
-
TdDataTableRowComponent.decorators = [
|
327
|
-
{ type: core.Component, args: [{
|
328
|
-
/* tslint:disable-next-line */
|
329
|
-
selector: 'tr[td-data-table-row]',
|
330
|
-
template: "<ng-content></ng-content>\n",
|
331
|
-
styles: [":host{border-bottom-style:solid;border-bottom-width:1px}:host.td-data-table-row{height:48px}:host.td-data-table-column-row{height:56px}"]
|
332
|
-
}] }
|
333
|
-
];
|
334
|
-
/** @nocollapse */
|
335
|
-
TdDataTableRowComponent.ctorParameters = function () { return [
|
336
|
-
{ type: core.ElementRef },
|
337
|
-
{ type: core.Renderer2 }
|
338
|
-
]; };
|
339
|
-
TdDataTableRowComponent.propDecorators = {
|
340
|
-
selected: [{ type: core.Input, args: ['selected',] }],
|
341
|
-
clickListener: [{ type: core.HostListener, args: ['click',] }]
|
342
|
-
};
|
343
412
|
return TdDataTableRowComponent;
|
344
413
|
}());
|
414
|
+
TdDataTableRowComponent.decorators = [
|
415
|
+
{ type: core.Component, args: [{
|
416
|
+
/* tslint:disable-next-line */
|
417
|
+
selector: 'tr[td-data-table-row]',
|
418
|
+
template: "<ng-content></ng-content>\n",
|
419
|
+
styles: [":host{border-bottom-style:solid;border-bottom-width:1px}:host.td-data-table-row{height:48px}:host.td-data-table-column-row{height:56px}"]
|
420
|
+
}] }
|
421
|
+
];
|
422
|
+
/** @nocollapse */
|
423
|
+
TdDataTableRowComponent.ctorParameters = function () { return [
|
424
|
+
{ type: core.ElementRef },
|
425
|
+
{ type: core.Renderer2 }
|
426
|
+
]; };
|
427
|
+
TdDataTableRowComponent.propDecorators = {
|
428
|
+
selected: [{ type: core.Input, args: ['selected',] }],
|
429
|
+
clickListener: [{ type: core.HostListener, args: ['click',] }]
|
430
|
+
};
|
345
431
|
if (false) {
|
346
432
|
/**
|
347
433
|
* @type {?}
|
@@ -360,41 +446,37 @@
|
|
360
446
|
TdDataTableRowComponent.prototype._renderer;
|
361
447
|
}
|
362
448
|
|
363
|
-
/**
|
364
|
-
* @fileoverview added by tsickle
|
365
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
366
|
-
*/
|
367
449
|
var TdDataTableTemplateDirective = /** @class */ (function (_super) {
|
368
450
|
__extends(TdDataTableTemplateDirective, _super);
|
451
|
+
/**
|
452
|
+
* @param {?} templateRef
|
453
|
+
* @param {?} viewContainerRef
|
454
|
+
*/
|
369
455
|
function TdDataTableTemplateDirective(templateRef, viewContainerRef) {
|
370
456
|
return _super.call(this, templateRef, viewContainerRef) || this;
|
371
457
|
}
|
372
|
-
TdDataTableTemplateDirective.decorators = [
|
373
|
-
{ type: core.Directive, args: [{ selector: '[tdDataTableTemplate]ng-template' },] }
|
374
|
-
];
|
375
|
-
/** @nocollapse */
|
376
|
-
TdDataTableTemplateDirective.ctorParameters = function () { return [
|
377
|
-
{ type: core.TemplateRef },
|
378
|
-
{ type: core.ViewContainerRef }
|
379
|
-
]; };
|
380
|
-
TdDataTableTemplateDirective.propDecorators = {
|
381
|
-
tdDataTableTemplate: [{ type: core.Input }]
|
382
|
-
};
|
383
458
|
return TdDataTableTemplateDirective;
|
384
459
|
}(portal.TemplatePortalDirective));
|
460
|
+
TdDataTableTemplateDirective.decorators = [
|
461
|
+
{ type: core.Directive, args: [{ selector: '[tdDataTableTemplate]ng-template' },] }
|
462
|
+
];
|
463
|
+
/** @nocollapse */
|
464
|
+
TdDataTableTemplateDirective.ctorParameters = function () { return [
|
465
|
+
{ type: core.TemplateRef },
|
466
|
+
{ type: core.ViewContainerRef }
|
467
|
+
]; };
|
468
|
+
TdDataTableTemplateDirective.propDecorators = {
|
469
|
+
tdDataTableTemplate: [{ type: core.Input }]
|
470
|
+
};
|
385
471
|
if (false) {
|
386
472
|
/** @type {?} */
|
387
473
|
TdDataTableTemplateDirective.prototype.tdDataTableTemplate;
|
388
474
|
}
|
389
475
|
|
390
|
-
/**
|
391
|
-
* @fileoverview added by tsickle
|
392
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
393
|
-
*/
|
394
476
|
/** @enum {string} */
|
395
477
|
var TdDataTableSortingOrder = {
|
396
|
-
Ascending:
|
397
|
-
Descending:
|
478
|
+
Ascending: "ASC",
|
479
|
+
Descending: "DESC",
|
398
480
|
};
|
399
481
|
/**
|
400
482
|
* @record
|
@@ -493,6 +575,9 @@
|
|
493
575
|
*/
|
494
576
|
var TD_VIRTUAL_DEFAULT_ROW_HEIGHT = 48;
|
495
577
|
var TdDataTableBase = /** @class */ (function () {
|
578
|
+
/**
|
579
|
+
* @param {?} _changeDetectorRef
|
580
|
+
*/
|
496
581
|
function TdDataTableBase(_changeDetectorRef) {
|
497
582
|
this._changeDetectorRef = _changeDetectorRef;
|
498
583
|
}
|
@@ -504,9 +589,15 @@
|
|
504
589
|
}
|
505
590
|
/* tslint:disable-next-line */
|
506
591
|
/** @type {?} */
|
507
|
-
var _TdDataTableMixinBase = common
|
592
|
+
var _TdDataTableMixinBase = common.mixinControlValueAccessor(TdDataTableBase, []);
|
508
593
|
var TdDataTableComponent = /** @class */ (function (_super) {
|
509
594
|
__extends(TdDataTableComponent, _super);
|
595
|
+
/**
|
596
|
+
* @param {?} _document
|
597
|
+
* @param {?} _elementRef
|
598
|
+
* @param {?} _domSanitizer
|
599
|
+
* @param {?} _changeDetectorRef
|
600
|
+
*/
|
510
601
|
function TdDataTableComponent(_document, _elementRef, _domSanitizer, _changeDetectorRef) {
|
511
602
|
var _this = _super.call(this, _changeDetectorRef) || this;
|
512
603
|
_this._document = _document;
|
@@ -585,31 +676,30 @@
|
|
585
676
|
* Allows custom comparison between row and model to see if row is selected or not
|
586
677
|
* Default comparation is by reference
|
587
678
|
*/
|
588
|
-
_this.compareWith = (/**
|
679
|
+
_this.compareWith = ( /**
|
589
680
|
* @param {?} row
|
590
681
|
* @param {?} model
|
591
682
|
* @return {?}
|
592
|
-
*/
|
593
|
-
function (row, model) {
|
683
|
+
*/function (row, model) {
|
594
684
|
return row === model;
|
595
685
|
});
|
596
686
|
return _this;
|
597
687
|
}
|
598
688
|
Object.defineProperty(TdDataTableComponent.prototype, "resizingColumn", {
|
599
|
-
|
689
|
+
/**
|
600
690
|
* @return {?}
|
601
691
|
*/
|
602
|
-
function () {
|
692
|
+
get: function () {
|
603
693
|
return this._resizingColumn;
|
604
694
|
},
|
605
|
-
enumerable:
|
695
|
+
enumerable: false,
|
606
696
|
configurable: true
|
607
697
|
});
|
608
698
|
Object.defineProperty(TdDataTableComponent.prototype, "hostWidth", {
|
609
|
-
|
699
|
+
/**
|
610
700
|
* @return {?}
|
611
701
|
*/
|
612
|
-
function () {
|
702
|
+
get: function () {
|
613
703
|
// if the checkboxes are rendered, we need to remove their width
|
614
704
|
// from the total width to calculate properly
|
615
705
|
if (this.selectable) {
|
@@ -617,159 +707,131 @@
|
|
617
707
|
}
|
618
708
|
return this._hostWidth;
|
619
709
|
},
|
620
|
-
enumerable:
|
710
|
+
enumerable: false,
|
621
711
|
configurable: true
|
622
712
|
});
|
623
713
|
Object.defineProperty(TdDataTableComponent.prototype, "offsetTransform", {
|
624
714
|
/**
|
625
|
-
* Returns the offset style with a proper calculation on how much it should move
|
626
|
-
* over the y axis of the total height
|
627
|
-
*/
|
628
|
-
get: /**
|
629
715
|
* Returns the offset style with a proper calculation on how much it should move
|
630
716
|
* over the y axis of the total height
|
631
717
|
* @return {?}
|
632
718
|
*/
|
633
|
-
function () {
|
719
|
+
get: function () {
|
634
720
|
return this._offsetTransform;
|
635
721
|
},
|
636
|
-
enumerable:
|
722
|
+
enumerable: false,
|
637
723
|
configurable: true
|
638
724
|
});
|
639
725
|
Object.defineProperty(TdDataTableComponent.prototype, "totalHeight", {
|
640
726
|
/**
|
641
|
-
* Returns the assumed total height of the rows
|
642
|
-
*/
|
643
|
-
get: /**
|
644
727
|
* Returns the assumed total height of the rows
|
645
728
|
* @return {?}
|
646
729
|
*/
|
647
|
-
function () {
|
730
|
+
get: function () {
|
648
731
|
return this._totalHeight;
|
649
732
|
},
|
650
|
-
enumerable:
|
733
|
+
enumerable: false,
|
651
734
|
configurable: true
|
652
735
|
});
|
653
736
|
Object.defineProperty(TdDataTableComponent.prototype, "fromRow", {
|
654
737
|
/**
|
655
|
-
* Returns the initial row to render in the viewport
|
656
|
-
*/
|
657
|
-
get: /**
|
658
738
|
* Returns the initial row to render in the viewport
|
659
739
|
* @return {?}
|
660
740
|
*/
|
661
|
-
function () {
|
741
|
+
get: function () {
|
662
742
|
return this._fromRow;
|
663
743
|
},
|
664
|
-
enumerable:
|
744
|
+
enumerable: false,
|
665
745
|
configurable: true
|
666
746
|
});
|
667
747
|
Object.defineProperty(TdDataTableComponent.prototype, "toRow", {
|
668
748
|
/**
|
669
|
-
* Returns the last row to render in the viewport
|
670
|
-
*/
|
671
|
-
get: /**
|
672
749
|
* Returns the last row to render in the viewport
|
673
750
|
* @return {?}
|
674
751
|
*/
|
675
|
-
function () {
|
752
|
+
get: function () {
|
676
753
|
return this._toRow;
|
677
754
|
},
|
678
|
-
enumerable:
|
755
|
+
enumerable: false,
|
679
756
|
configurable: true
|
680
757
|
});
|
681
758
|
Object.defineProperty(TdDataTableComponent.prototype, "columnsLeftScroll", {
|
682
759
|
/**
|
683
|
-
* Returns scroll position to reposition column headers
|
684
|
-
*/
|
685
|
-
get: /**
|
686
760
|
* Returns scroll position to reposition column headers
|
687
761
|
* @return {?}
|
688
762
|
*/
|
689
|
-
function () {
|
763
|
+
get: function () {
|
690
764
|
return this._scrollHorizontalOffset * -1;
|
691
765
|
},
|
692
|
-
enumerable:
|
766
|
+
enumerable: false,
|
693
767
|
configurable: true
|
694
768
|
});
|
695
769
|
Object.defineProperty(TdDataTableComponent.prototype, "allSelected", {
|
696
770
|
/**
|
697
|
-
* Returns true if all values are selected.
|
698
|
-
*/
|
699
|
-
get: /**
|
700
771
|
* Returns true if all values are selected.
|
701
772
|
* @return {?}
|
702
773
|
*/
|
703
|
-
function () {
|
774
|
+
get: function () {
|
704
775
|
return this._allSelected;
|
705
776
|
},
|
706
|
-
enumerable:
|
777
|
+
enumerable: false,
|
707
778
|
configurable: true
|
708
779
|
});
|
709
780
|
Object.defineProperty(TdDataTableComponent.prototype, "indeterminate", {
|
710
781
|
/**
|
711
|
-
* Returns true if all values are not deselected
|
712
|
-
* and at least one is.
|
713
|
-
*/
|
714
|
-
get: /**
|
715
782
|
* Returns true if all values are not deselected
|
716
783
|
* and at least one is.
|
717
784
|
* @return {?}
|
718
785
|
*/
|
719
|
-
function () {
|
786
|
+
get: function () {
|
720
787
|
return this._indeterminate;
|
721
788
|
},
|
722
|
-
enumerable:
|
789
|
+
enumerable: false,
|
723
790
|
configurable: true
|
724
791
|
});
|
725
792
|
Object.defineProperty(TdDataTableComponent.prototype, "data", {
|
726
|
-
|
793
|
+
/**
|
727
794
|
* @return {?}
|
728
795
|
*/
|
729
|
-
function () {
|
796
|
+
get: function () {
|
730
797
|
return this._data;
|
731
798
|
},
|
732
799
|
/**
|
733
|
-
* data?: {[key: string]: any}[]
|
734
|
-
* Sets the data to be rendered as rows.
|
735
|
-
*/
|
736
|
-
set: /**
|
737
800
|
* data?: {[key: string]: any}[]
|
738
801
|
* Sets the data to be rendered as rows.
|
739
802
|
* @param {?} data
|
740
803
|
* @return {?}
|
741
804
|
*/
|
742
|
-
function (data) {
|
805
|
+
set: function (data) {
|
743
806
|
var _this = this;
|
744
807
|
this._data = data;
|
745
808
|
this._rowHeightCache = [];
|
746
|
-
Promise.resolve().then((/**
|
809
|
+
Promise.resolve().then(( /**
|
747
810
|
* @return {?}
|
748
|
-
*/
|
749
|
-
function () {
|
811
|
+
*/function () {
|
750
812
|
_this.refresh();
|
751
813
|
// scroll back to the top if the data has changed
|
752
814
|
_this._scrollableDiv.nativeElement.scrollTop = 0;
|
753
815
|
}));
|
754
816
|
},
|
755
|
-
enumerable:
|
817
|
+
enumerable: false,
|
756
818
|
configurable: true
|
757
819
|
});
|
758
820
|
Object.defineProperty(TdDataTableComponent.prototype, "virtualData", {
|
759
|
-
|
821
|
+
/**
|
760
822
|
* @return {?}
|
761
823
|
*/
|
762
|
-
function () {
|
824
|
+
get: function () {
|
763
825
|
return this._virtualData;
|
764
826
|
},
|
765
|
-
enumerable:
|
827
|
+
enumerable: false,
|
766
828
|
configurable: true
|
767
829
|
});
|
768
830
|
Object.defineProperty(TdDataTableComponent.prototype, "columns", {
|
769
|
-
|
831
|
+
/**
|
770
832
|
* @return {?}
|
771
833
|
*/
|
772
|
-
function () {
|
834
|
+
get: function () {
|
773
835
|
var _this = this;
|
774
836
|
if (this._columns) {
|
775
837
|
return this._columns;
|
@@ -779,16 +841,14 @@
|
|
779
841
|
// if columns is undefined, use key in [data] rows as name and label for column headers.
|
780
842
|
/** @type {?} */
|
781
843
|
var row = this._data[0];
|
782
|
-
Object.keys(row).forEach((/**
|
844
|
+
Object.keys(row).forEach(( /**
|
783
845
|
* @param {?} k
|
784
846
|
* @return {?}
|
785
|
-
*/
|
786
|
-
|
787
|
-
if (!_this._columns.find((/**
|
847
|
+
*/function (k) {
|
848
|
+
if (!_this._columns.find(( /**
|
788
849
|
* @param {?} c
|
789
850
|
* @return {?}
|
790
|
-
*/
|
791
|
-
function (c) { return c.name === k; }))) {
|
851
|
+
*/function (c) { return c.name === k; }))) {
|
792
852
|
_this._columns.push({ name: k, label: k });
|
793
853
|
}
|
794
854
|
}));
|
@@ -799,201 +859,161 @@
|
|
799
859
|
}
|
800
860
|
},
|
801
861
|
/**
|
802
|
-
* columns?: ITdDataTableColumn[]
|
803
|
-
* Sets additional column configuration. [ITdDataTableColumn.name] has to exist in [data] as key.
|
804
|
-
* Defaults to [data] keys.
|
805
|
-
*/
|
806
|
-
set: /**
|
807
862
|
* columns?: ITdDataTableColumn[]
|
808
863
|
* Sets additional column configuration. [ITdDataTableColumn.name] has to exist in [data] as key.
|
809
864
|
* Defaults to [data] keys.
|
810
865
|
* @param {?} cols
|
811
866
|
* @return {?}
|
812
867
|
*/
|
813
|
-
function (cols) {
|
868
|
+
set: function (cols) {
|
814
869
|
this._columns = cols;
|
815
870
|
},
|
816
|
-
enumerable:
|
871
|
+
enumerable: false,
|
817
872
|
configurable: true
|
818
873
|
});
|
819
874
|
Object.defineProperty(TdDataTableComponent.prototype, "resizableColumns", {
|
820
|
-
|
875
|
+
/**
|
821
876
|
* @return {?}
|
822
877
|
*/
|
823
|
-
function () {
|
878
|
+
get: function () {
|
824
879
|
return this._resizableColumns;
|
825
880
|
},
|
826
881
|
/**
|
827
|
-
* resizableColumns?: boolean
|
828
|
-
* Enables manual column resize.
|
829
|
-
* Defaults to 'false'
|
830
|
-
*/
|
831
|
-
set: /**
|
832
882
|
* resizableColumns?: boolean
|
833
883
|
* Enables manual column resize.
|
834
884
|
* Defaults to 'false'
|
835
885
|
* @param {?} resizableColumns
|
836
886
|
* @return {?}
|
837
887
|
*/
|
838
|
-
function (resizableColumns) {
|
888
|
+
set: function (resizableColumns) {
|
839
889
|
this._resizableColumns = coercion.coerceBooleanProperty(resizableColumns);
|
840
890
|
},
|
841
|
-
enumerable:
|
891
|
+
enumerable: false,
|
842
892
|
configurable: true
|
843
893
|
});
|
844
894
|
Object.defineProperty(TdDataTableComponent.prototype, "selectable", {
|
845
|
-
|
895
|
+
/**
|
846
896
|
* @return {?}
|
847
897
|
*/
|
848
|
-
function () {
|
898
|
+
get: function () {
|
849
899
|
return this._selectable;
|
850
900
|
},
|
851
901
|
/**
|
852
|
-
* selectable?: boolean
|
853
|
-
* Enables row selection events, hover and selected row states.
|
854
|
-
* Defaults to 'false'
|
855
|
-
*/
|
856
|
-
set: /**
|
857
902
|
* selectable?: boolean
|
858
903
|
* Enables row selection events, hover and selected row states.
|
859
904
|
* Defaults to 'false'
|
860
905
|
* @param {?} selectable
|
861
906
|
* @return {?}
|
862
907
|
*/
|
863
|
-
function (selectable) {
|
908
|
+
set: function (selectable) {
|
864
909
|
this._selectable = coercion.coerceBooleanProperty(selectable);
|
865
910
|
},
|
866
|
-
enumerable:
|
911
|
+
enumerable: false,
|
867
912
|
configurable: true
|
868
913
|
});
|
869
914
|
Object.defineProperty(TdDataTableComponent.prototype, "clickable", {
|
870
|
-
|
915
|
+
/**
|
871
916
|
* @return {?}
|
872
917
|
*/
|
873
|
-
function () {
|
918
|
+
get: function () {
|
874
919
|
return this._clickable;
|
875
920
|
},
|
876
921
|
/**
|
877
|
-
* clickable?: boolean
|
878
|
-
* Enables row click events, hover.
|
879
|
-
* Defaults to 'false'
|
880
|
-
*/
|
881
|
-
set: /**
|
882
922
|
* clickable?: boolean
|
883
923
|
* Enables row click events, hover.
|
884
924
|
* Defaults to 'false'
|
885
925
|
* @param {?} clickable
|
886
926
|
* @return {?}
|
887
927
|
*/
|
888
|
-
function (clickable) {
|
928
|
+
set: function (clickable) {
|
889
929
|
this._clickable = coercion.coerceBooleanProperty(clickable);
|
890
930
|
},
|
891
|
-
enumerable:
|
931
|
+
enumerable: false,
|
892
932
|
configurable: true
|
893
933
|
});
|
894
934
|
Object.defineProperty(TdDataTableComponent.prototype, "multiple", {
|
895
|
-
|
935
|
+
/**
|
896
936
|
* @return {?}
|
897
937
|
*/
|
898
|
-
function () {
|
938
|
+
get: function () {
|
899
939
|
return this._multiple;
|
900
940
|
},
|
901
941
|
/**
|
902
|
-
* multiple?: boolean
|
903
|
-
* Enables multiple row selection. [selectable] needs to be enabled.
|
904
|
-
* Defaults to 'false'
|
905
|
-
*/
|
906
|
-
set: /**
|
907
942
|
* multiple?: boolean
|
908
943
|
* Enables multiple row selection. [selectable] needs to be enabled.
|
909
944
|
* Defaults to 'false'
|
910
945
|
* @param {?} multiple
|
911
946
|
* @return {?}
|
912
947
|
*/
|
913
|
-
function (multiple) {
|
948
|
+
set: function (multiple) {
|
914
949
|
this._multiple = coercion.coerceBooleanProperty(multiple);
|
915
950
|
},
|
916
|
-
enumerable:
|
951
|
+
enumerable: false,
|
917
952
|
configurable: true
|
918
953
|
});
|
919
954
|
Object.defineProperty(TdDataTableComponent.prototype, "sortable", {
|
920
|
-
|
955
|
+
/**
|
921
956
|
* @return {?}
|
922
957
|
*/
|
923
|
-
function () {
|
958
|
+
get: function () {
|
924
959
|
return this._sortable;
|
925
960
|
},
|
926
961
|
/**
|
927
|
-
* sortable?: boolean
|
928
|
-
* Enables sorting events, sort icons and active column states.
|
929
|
-
* Defaults to 'false'
|
930
|
-
*/
|
931
|
-
set: /**
|
932
962
|
* sortable?: boolean
|
933
963
|
* Enables sorting events, sort icons and active column states.
|
934
964
|
* Defaults to 'false'
|
935
965
|
* @param {?} sortable
|
936
966
|
* @return {?}
|
937
967
|
*/
|
938
|
-
function (sortable) {
|
968
|
+
set: function (sortable) {
|
939
969
|
this._sortable = coercion.coerceBooleanProperty(sortable);
|
940
970
|
},
|
941
|
-
enumerable:
|
971
|
+
enumerable: false,
|
942
972
|
configurable: true
|
943
973
|
});
|
944
974
|
Object.defineProperty(TdDataTableComponent.prototype, "sortBy", {
|
945
975
|
/**
|
946
|
-
* sortBy?: string
|
947
|
-
* Sets the active sort column. [sortable] needs to be enabled.
|
948
|
-
*/
|
949
|
-
set: /**
|
950
976
|
* sortBy?: string
|
951
977
|
* Sets the active sort column. [sortable] needs to be enabled.
|
952
978
|
* @param {?} columnName
|
953
979
|
* @return {?}
|
954
980
|
*/
|
955
|
-
function (columnName) {
|
981
|
+
set: function (columnName) {
|
956
982
|
if (!columnName) {
|
957
983
|
return;
|
958
984
|
}
|
959
985
|
/** @type {?} */
|
960
|
-
var column = this.columns.find((/**
|
986
|
+
var column = this.columns.find(( /**
|
961
987
|
* @param {?} c
|
962
988
|
* @return {?}
|
963
|
-
*/
|
964
|
-
function (c) { return c.name === columnName; }));
|
989
|
+
*/function (c) { return c.name === columnName; }));
|
965
990
|
if (!column) {
|
966
991
|
throw new Error('[sortBy] must be a valid column name');
|
967
992
|
}
|
968
993
|
this._sortBy = column;
|
969
994
|
},
|
970
|
-
enumerable:
|
995
|
+
enumerable: false,
|
971
996
|
configurable: true
|
972
997
|
});
|
973
998
|
Object.defineProperty(TdDataTableComponent.prototype, "sortByColumn", {
|
974
|
-
|
999
|
+
/**
|
975
1000
|
* @return {?}
|
976
1001
|
*/
|
977
|
-
function () {
|
1002
|
+
get: function () {
|
978
1003
|
return this._sortBy;
|
979
1004
|
},
|
980
|
-
enumerable:
|
1005
|
+
enumerable: false,
|
981
1006
|
configurable: true
|
982
1007
|
});
|
983
1008
|
Object.defineProperty(TdDataTableComponent.prototype, "sortOrder", {
|
984
1009
|
/**
|
985
|
-
* sortOrder?: ['ASC' | 'DESC'] or TdDataTableSortingOrder
|
986
|
-
* Sets the sort order of the [sortBy] column. [sortable] needs to be enabled.
|
987
|
-
* Defaults to 'ASC' or TdDataTableSortingOrder.Ascending
|
988
|
-
*/
|
989
|
-
set: /**
|
990
1010
|
* sortOrder?: ['ASC' | 'DESC'] or TdDataTableSortingOrder
|
991
1011
|
* Sets the sort order of the [sortBy] column. [sortable] needs to be enabled.
|
992
1012
|
* Defaults to 'ASC' or TdDataTableSortingOrder.Ascending
|
993
1013
|
* @param {?} order
|
994
1014
|
* @return {?}
|
995
1015
|
*/
|
996
|
-
function (order) {
|
1016
|
+
set: function (order) {
|
997
1017
|
/** @type {?} */
|
998
1018
|
var sortOrder = order ? order.toUpperCase() : 'ASC';
|
999
1019
|
if (sortOrder !== 'DESC' && sortOrder !== 'ASC') {
|
@@ -1001,54 +1021,45 @@
|
|
1001
1021
|
}
|
1002
1022
|
this._sortOrder = sortOrder === 'ASC' ? TdDataTableSortingOrder.Ascending : TdDataTableSortingOrder.Descending;
|
1003
1023
|
},
|
1004
|
-
enumerable:
|
1024
|
+
enumerable: false,
|
1005
1025
|
configurable: true
|
1006
1026
|
});
|
1007
1027
|
Object.defineProperty(TdDataTableComponent.prototype, "sortOrderEnum", {
|
1008
|
-
|
1028
|
+
/**
|
1009
1029
|
* @return {?}
|
1010
1030
|
*/
|
1011
|
-
function () {
|
1031
|
+
get: function () {
|
1012
1032
|
return this._sortOrder;
|
1013
1033
|
},
|
1014
|
-
enumerable:
|
1034
|
+
enumerable: false,
|
1015
1035
|
configurable: true
|
1016
1036
|
});
|
1017
1037
|
Object.defineProperty(TdDataTableComponent.prototype, "hasData", {
|
1018
|
-
|
1038
|
+
/**
|
1019
1039
|
* @return {?}
|
1020
1040
|
*/
|
1021
|
-
function () {
|
1041
|
+
get: function () {
|
1022
1042
|
return this._data && this._data.length > 0;
|
1023
1043
|
},
|
1024
|
-
enumerable:
|
1044
|
+
enumerable: false,
|
1025
1045
|
configurable: true
|
1026
1046
|
});
|
1027
1047
|
/**
|
1028
|
-
* Initialize observable for resize and scroll events
|
1029
|
-
*/
|
1030
|
-
/**
|
1031
|
-
* Initialize observable for resize and scroll events
|
1032
|
-
* @return {?}
|
1033
|
-
*/
|
1034
|
-
TdDataTableComponent.prototype.ngOnInit = /**
|
1035
1048
|
* Initialize observable for resize and scroll events
|
1036
1049
|
* @return {?}
|
1037
1050
|
*/
|
1038
|
-
function () {
|
1051
|
+
TdDataTableComponent.prototype.ngOnInit = function () {
|
1039
1052
|
var _this = this;
|
1040
1053
|
// initialize observable for resize calculations
|
1041
|
-
this._resizeSubs = this._onResize.asObservable().subscribe((/**
|
1054
|
+
this._resizeSubs = this._onResize.asObservable().subscribe(( /**
|
1042
1055
|
* @return {?}
|
1043
|
-
*/
|
1044
|
-
function () {
|
1056
|
+
*/function () {
|
1045
1057
|
if (_this._rows) {
|
1046
|
-
_this._rows.toArray().forEach((/**
|
1058
|
+
_this._rows.toArray().forEach(( /**
|
1047
1059
|
* @param {?} row
|
1048
1060
|
* @param {?} index
|
1049
1061
|
* @return {?}
|
1050
|
-
*/
|
1051
|
-
function (row, index) {
|
1062
|
+
*/function (row, index) {
|
1052
1063
|
_this._rowHeightCache[_this.fromRow + index] = row.height + 1;
|
1053
1064
|
}));
|
1054
1065
|
}
|
@@ -1059,54 +1070,43 @@
|
|
1059
1070
|
this._columnResizeSubs = this._onColumnResize
|
1060
1071
|
.asObservable()
|
1061
1072
|
.pipe(operators.debounceTime(0))
|
1062
|
-
.subscribe((/**
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
function (clientX) {
|
1073
|
+
.subscribe(( /**
|
1074
|
+
* @param {?} clientX
|
1075
|
+
* @return {?}
|
1076
|
+
*/function (clientX) {
|
1067
1077
|
_this._columnClientX = clientX;
|
1068
1078
|
_this._calculateWidths();
|
1069
1079
|
_this._changeDetectorRef.markForCheck();
|
1070
1080
|
}));
|
1071
1081
|
// initialize observable for scroll column header reposition
|
1072
|
-
this._horizontalScrollSubs = this._onHorizontalScroll.asObservable().subscribe((/**
|
1082
|
+
this._horizontalScrollSubs = this._onHorizontalScroll.asObservable().subscribe(( /**
|
1073
1083
|
* @param {?} horizontalScroll
|
1074
1084
|
* @return {?}
|
1075
|
-
*/
|
1076
|
-
function (horizontalScroll) {
|
1085
|
+
*/function (horizontalScroll) {
|
1077
1086
|
_this._scrollHorizontalOffset = horizontalScroll;
|
1078
1087
|
_this._changeDetectorRef.markForCheck();
|
1079
1088
|
}));
|
1080
1089
|
// initialize observable for virtual scroll rendering
|
1081
|
-
this._verticalScrollSubs = this._onVerticalScroll.asObservable().subscribe((/**
|
1090
|
+
this._verticalScrollSubs = this._onVerticalScroll.asObservable().subscribe(( /**
|
1082
1091
|
* @param {?} verticalScroll
|
1083
1092
|
* @return {?}
|
1084
|
-
*/
|
1085
|
-
function (verticalScroll) {
|
1093
|
+
*/function (verticalScroll) {
|
1086
1094
|
_this._scrollVerticalOffset = verticalScroll;
|
1087
1095
|
_this._calculateVirtualRows();
|
1088
1096
|
_this._changeDetectorRef.markForCheck();
|
1089
1097
|
}));
|
1090
|
-
this._valueChangesSubs = this.valueChanges.subscribe((/**
|
1098
|
+
this._valueChangesSubs = this.valueChanges.subscribe(( /**
|
1091
1099
|
* @param {?} value
|
1092
1100
|
* @return {?}
|
1093
|
-
*/
|
1094
|
-
function (value) {
|
1101
|
+
*/function (value) {
|
1095
1102
|
_this.refresh();
|
1096
1103
|
}));
|
1097
1104
|
};
|
1098
1105
|
/**
|
1099
|
-
* Loads templates and sets them in a map for faster access.
|
1100
|
-
*/
|
1101
|
-
/**
|
1102
|
-
* Loads templates and sets them in a map for faster access.
|
1103
|
-
* @return {?}
|
1104
|
-
*/
|
1105
|
-
TdDataTableComponent.prototype.ngAfterContentInit = /**
|
1106
1106
|
* Loads templates and sets them in a map for faster access.
|
1107
1107
|
* @return {?}
|
1108
1108
|
*/
|
1109
|
-
function () {
|
1109
|
+
TdDataTableComponent.prototype.ngAfterContentInit = function () {
|
1110
1110
|
var e_1, _a;
|
1111
1111
|
try {
|
1112
1112
|
for (var _b = __values(this._templates.toArray()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
@@ -1123,17 +1123,10 @@
|
|
1123
1123
|
}
|
1124
1124
|
};
|
1125
1125
|
/**
|
1126
|
-
* Checks hosts native elements widths to see if it has changed (resize check)
|
1127
|
-
*/
|
1128
|
-
/**
|
1129
|
-
* Checks hosts native elements widths to see if it has changed (resize check)
|
1130
|
-
* @return {?}
|
1131
|
-
*/
|
1132
|
-
TdDataTableComponent.prototype.ngAfterContentChecked = /**
|
1133
1126
|
* Checks hosts native elements widths to see if it has changed (resize check)
|
1134
1127
|
* @return {?}
|
1135
1128
|
*/
|
1136
|
-
function () {
|
1129
|
+
TdDataTableComponent.prototype.ngAfterContentChecked = function () {
|
1137
1130
|
var _this = this;
|
1138
1131
|
// check if the scroll has been reset when element is hidden
|
1139
1132
|
if (this._scrollVerticalOffset - this._scrollableDiv.nativeElement.scrollTop > 5) {
|
@@ -1145,10 +1138,9 @@
|
|
1145
1138
|
var newHostWidth_1 = this._elementRef.nativeElement.getBoundingClientRect().width;
|
1146
1139
|
// if the width has changed then we throw a resize event.
|
1147
1140
|
if (this._hostWidth !== newHostWidth_1) {
|
1148
|
-
setTimeout((/**
|
1141
|
+
setTimeout(( /**
|
1149
1142
|
* @return {?}
|
1150
|
-
*/
|
1151
|
-
function () {
|
1143
|
+
*/function () {
|
1152
1144
|
_this._hostWidth = newHostWidth_1;
|
1153
1145
|
_this._onResize.next();
|
1154
1146
|
}), 0);
|
@@ -1165,42 +1157,25 @@
|
|
1165
1157
|
}
|
1166
1158
|
}
|
1167
1159
|
};
|
1168
|
-
/**
|
1169
|
-
* Registers to an observable that checks if all rows have been rendered
|
1170
|
-
* so we can start calculating the widths
|
1171
|
-
*/
|
1172
1160
|
/**
|
1173
1161
|
* Registers to an observable that checks if all rows have been rendered
|
1174
1162
|
* so we can start calculating the widths
|
1175
1163
|
* @return {?}
|
1176
1164
|
*/
|
1177
|
-
TdDataTableComponent.prototype.ngAfterViewInit =
|
1178
|
-
* Registers to an observable that checks if all rows have been rendered
|
1179
|
-
* so we can start calculating the widths
|
1180
|
-
* @return {?}
|
1181
|
-
*/
|
1182
|
-
function () {
|
1165
|
+
TdDataTableComponent.prototype.ngAfterViewInit = function () {
|
1183
1166
|
var _this = this;
|
1184
|
-
this._rowsChangedSubs = this._rows.changes.pipe(operators.debounceTime(0)).subscribe((/**
|
1167
|
+
this._rowsChangedSubs = this._rows.changes.pipe(operators.debounceTime(0)).subscribe(( /**
|
1185
1168
|
* @return {?}
|
1186
|
-
*/
|
1187
|
-
function () {
|
1169
|
+
*/function () {
|
1188
1170
|
_this._onResize.next();
|
1189
1171
|
}));
|
1190
1172
|
this._calculateVirtualRows();
|
1191
1173
|
};
|
1192
1174
|
/**
|
1193
|
-
* Unsubscribes observables when data table is destroyed
|
1194
|
-
*/
|
1195
|
-
/**
|
1196
|
-
* Unsubscribes observables when data table is destroyed
|
1197
|
-
* @return {?}
|
1198
|
-
*/
|
1199
|
-
TdDataTableComponent.prototype.ngOnDestroy = /**
|
1200
1175
|
* Unsubscribes observables when data table is destroyed
|
1201
1176
|
* @return {?}
|
1202
1177
|
*/
|
1203
|
-
function () {
|
1178
|
+
TdDataTableComponent.prototype.ngOnDestroy = function () {
|
1204
1179
|
if (this._resizeSubs) {
|
1205
1180
|
this._resizeSubs.unsubscribe();
|
1206
1181
|
}
|
@@ -1221,24 +1196,14 @@
|
|
1221
1196
|
}
|
1222
1197
|
};
|
1223
1198
|
/**
|
1224
|
-
* Method that gets executed every time there is a scroll event
|
1225
|
-
* Calls the scroll observable
|
1226
|
-
*/
|
1227
|
-
/**
|
1228
|
-
* Method that gets executed every time there is a scroll event
|
1229
|
-
* Calls the scroll observable
|
1230
|
-
* @param {?} event
|
1231
|
-
* @return {?}
|
1232
|
-
*/
|
1233
|
-
TdDataTableComponent.prototype.handleScroll = /**
|
1234
1199
|
* Method that gets executed every time there is a scroll event
|
1235
1200
|
* Calls the scroll observable
|
1236
1201
|
* @param {?} event
|
1237
1202
|
* @return {?}
|
1238
1203
|
*/
|
1239
|
-
function (event) {
|
1204
|
+
TdDataTableComponent.prototype.handleScroll = function (event) {
|
1240
1205
|
/** @type {?} */
|
1241
|
-
var element = (/** @type {?} */
|
1206
|
+
var element = ( /** @type {?} */(event.target));
|
1242
1207
|
if (element) {
|
1243
1208
|
/** @type {?} */
|
1244
1209
|
var horizontalScroll = element.scrollLeft;
|
@@ -1253,19 +1218,11 @@
|
|
1253
1218
|
}
|
1254
1219
|
};
|
1255
1220
|
/**
|
1256
|
-
* Returns the width needed for the columns via index
|
1257
|
-
*/
|
1258
|
-
/**
|
1259
|
-
* Returns the width needed for the columns via index
|
1260
|
-
* @param {?} index
|
1261
|
-
* @return {?}
|
1262
|
-
*/
|
1263
|
-
TdDataTableComponent.prototype.getColumnWidth = /**
|
1264
1221
|
* Returns the width needed for the columns via index
|
1265
1222
|
* @param {?} index
|
1266
1223
|
* @return {?}
|
1267
1224
|
*/
|
1268
|
-
function (index) {
|
1225
|
+
TdDataTableComponent.prototype.getColumnWidth = function (index) {
|
1269
1226
|
if (this._widths[index]) {
|
1270
1227
|
return this._widths[index].value;
|
1271
1228
|
}
|
@@ -1276,87 +1233,51 @@
|
|
1276
1233
|
* @param {?} value
|
1277
1234
|
* @return {?}
|
1278
1235
|
*/
|
1279
|
-
TdDataTableComponent.prototype.getCellValue =
|
1280
|
-
* @param {?} column
|
1281
|
-
* @param {?} value
|
1282
|
-
* @return {?}
|
1283
|
-
*/
|
1284
|
-
function (column, value) {
|
1236
|
+
TdDataTableComponent.prototype.getCellValue = function (column, value) {
|
1285
1237
|
if (column.nested === undefined || column.nested) {
|
1286
1238
|
return this._getNestedValue(column.name, value);
|
1287
1239
|
}
|
1288
1240
|
return value[column.name];
|
1289
1241
|
};
|
1290
|
-
/**
|
1291
|
-
* Getter method for template references
|
1292
|
-
*/
|
1293
1242
|
/**
|
1294
1243
|
* Getter method for template references
|
1295
1244
|
* @param {?} name
|
1296
1245
|
* @return {?}
|
1297
1246
|
*/
|
1298
|
-
TdDataTableComponent.prototype.getTemplateRef =
|
1299
|
-
* Getter method for template references
|
1300
|
-
* @param {?} name
|
1301
|
-
* @return {?}
|
1302
|
-
*/
|
1303
|
-
function (name) {
|
1247
|
+
TdDataTableComponent.prototype.getTemplateRef = function (name) {
|
1304
1248
|
return this._templateMap.get(name);
|
1305
1249
|
};
|
1306
1250
|
/**
|
1307
|
-
* Clears model (ngModel) of component by removing all values in array.
|
1308
|
-
*/
|
1309
|
-
/**
|
1310
|
-
* Clears model (ngModel) of component by removing all values in array.
|
1311
|
-
* @return {?}
|
1312
|
-
*/
|
1313
|
-
TdDataTableComponent.prototype.clearModel = /**
|
1314
1251
|
* Clears model (ngModel) of component by removing all values in array.
|
1315
1252
|
* @return {?}
|
1316
1253
|
*/
|
1317
|
-
function () {
|
1254
|
+
TdDataTableComponent.prototype.clearModel = function () {
|
1318
1255
|
this.value.splice(0, this.value.length);
|
1319
1256
|
};
|
1320
|
-
/**
|
1321
|
-
* Refreshes data table and rerenders [data] and [columns]
|
1322
|
-
*/
|
1323
1257
|
/**
|
1324
1258
|
* Refreshes data table and rerenders [data] and [columns]
|
1325
1259
|
* @return {?}
|
1326
1260
|
*/
|
1327
|
-
TdDataTableComponent.prototype.refresh =
|
1328
|
-
* Refreshes data table and rerenders [data] and [columns]
|
1329
|
-
* @return {?}
|
1330
|
-
*/
|
1331
|
-
function () {
|
1261
|
+
TdDataTableComponent.prototype.refresh = function () {
|
1332
1262
|
this._calculateVirtualRows();
|
1333
1263
|
this._calculateWidths();
|
1334
1264
|
this._calculateCheckboxState();
|
1335
1265
|
this._changeDetectorRef.markForCheck();
|
1336
1266
|
};
|
1337
1267
|
/**
|
1338
|
-
* Selects or clears all rows depending on 'checked' value.
|
1339
|
-
*/
|
1340
|
-
/**
|
1341
|
-
* Selects or clears all rows depending on 'checked' value.
|
1342
|
-
* @param {?} checked
|
1343
|
-
* @return {?}
|
1344
|
-
*/
|
1345
|
-
TdDataTableComponent.prototype._selectAll = /**
|
1346
1268
|
* Selects or clears all rows depending on 'checked' value.
|
1347
1269
|
* @param {?} checked
|
1348
1270
|
* @return {?}
|
1349
1271
|
*/
|
1350
|
-
function (checked) {
|
1272
|
+
TdDataTableComponent.prototype._selectAll = function (checked) {
|
1351
1273
|
var _this = this;
|
1352
1274
|
/** @type {?} */
|
1353
1275
|
var toggledRows = [];
|
1354
1276
|
if (checked) {
|
1355
|
-
this._data.forEach((/**
|
1277
|
+
this._data.forEach(( /**
|
1356
1278
|
* @param {?} row
|
1357
1279
|
* @return {?}
|
1358
|
-
*/
|
1359
|
-
function (row) {
|
1280
|
+
*/function (row) {
|
1360
1281
|
// skiping already selected rows
|
1361
1282
|
if (!_this.isRowSelected(row)) {
|
1362
1283
|
_this.value.push(row);
|
@@ -1368,20 +1289,18 @@
|
|
1368
1289
|
this._indeterminate = true;
|
1369
1290
|
}
|
1370
1291
|
else {
|
1371
|
-
this._data.forEach((/**
|
1292
|
+
this._data.forEach(( /**
|
1372
1293
|
* @param {?} row
|
1373
1294
|
* @return {?}
|
1374
|
-
*/
|
1375
|
-
function (row) {
|
1295
|
+
*/function (row) {
|
1376
1296
|
// checking which ones are being toggled
|
1377
1297
|
if (_this.isRowSelected(row)) {
|
1378
1298
|
toggledRows.push(row);
|
1379
1299
|
/** @type {?} */
|
1380
|
-
var modelRow = _this.value.filter((/**
|
1300
|
+
var modelRow = _this.value.filter(( /**
|
1381
1301
|
* @param {?} val
|
1382
1302
|
* @return {?}
|
1383
|
-
*/
|
1384
|
-
function (val) {
|
1303
|
+
*/function (val) {
|
1385
1304
|
return _this.compareWith(row, val);
|
1386
1305
|
}))[0];
|
1387
1306
|
/** @type {?} */
|
@@ -1397,45 +1316,24 @@
|
|
1397
1316
|
this.selectAll.emit({ rows: toggledRows, selected: checked });
|
1398
1317
|
this.onChange(this.value);
|
1399
1318
|
};
|
1400
|
-
/**
|
1401
|
-
* Checks if row is selected
|
1402
|
-
*/
|
1403
1319
|
/**
|
1404
1320
|
* Checks if row is selected
|
1405
1321
|
* @param {?} row
|
1406
1322
|
* @return {?}
|
1407
1323
|
*/
|
1408
|
-
TdDataTableComponent.prototype.isRowSelected =
|
1409
|
-
* Checks if row is selected
|
1410
|
-
* @param {?} row
|
1411
|
-
* @return {?}
|
1412
|
-
*/
|
1413
|
-
function (row) {
|
1324
|
+
TdDataTableComponent.prototype.isRowSelected = function (row) {
|
1414
1325
|
var _this = this;
|
1415
1326
|
// compare items by [compareWith] function
|
1416
1327
|
return this.value
|
1417
|
-
? this.value.filter((/**
|
1328
|
+
? this.value.filter(( /**
|
1418
1329
|
* @param {?} val
|
1419
1330
|
* @return {?}
|
1420
|
-
*/
|
1421
|
-
function (val) {
|
1331
|
+
*/function (val) {
|
1422
1332
|
return _this.compareWith(row, val);
|
1423
1333
|
})).length > 0
|
1424
1334
|
: false;
|
1425
1335
|
};
|
1426
1336
|
/**
|
1427
|
-
* Selects or clears a row depending on 'checked' value if the row 'isSelectable'
|
1428
|
-
* handles cntrl clicks and shift clicks for multi-select
|
1429
|
-
*/
|
1430
|
-
/**
|
1431
|
-
* Selects or clears a row depending on 'checked' value if the row 'isSelectable'
|
1432
|
-
* handles cntrl clicks and shift clicks for multi-select
|
1433
|
-
* @param {?} row
|
1434
|
-
* @param {?} event
|
1435
|
-
* @param {?} currentSelected
|
1436
|
-
* @return {?}
|
1437
|
-
*/
|
1438
|
-
TdDataTableComponent.prototype.select = /**
|
1439
1337
|
* Selects or clears a row depending on 'checked' value if the row 'isSelectable'
|
1440
1338
|
* handles cntrl clicks and shift clicks for multi-select
|
1441
1339
|
* @param {?} row
|
@@ -1443,12 +1341,12 @@
|
|
1443
1341
|
* @param {?} currentSelected
|
1444
1342
|
* @return {?}
|
1445
1343
|
*/
|
1446
|
-
function (row, event, currentSelected) {
|
1344
|
+
TdDataTableComponent.prototype.select = function (row, event, currentSelected) {
|
1447
1345
|
if (this.selectable) {
|
1448
1346
|
this.blockEvent(event);
|
1449
1347
|
// Check to see if Shift key is selected and need to select everything in between
|
1450
1348
|
/** @type {?} */
|
1451
|
-
var mouseEvent = (/** @type {?} */
|
1349
|
+
var mouseEvent = ( /** @type {?} */(event));
|
1452
1350
|
if (this.multiple && mouseEvent && mouseEvent.shiftKey && this._lastSelectedIndex > -1) {
|
1453
1351
|
/** @type {?} */
|
1454
1352
|
var firstIndex = currentSelected;
|
@@ -1507,58 +1405,29 @@
|
|
1507
1405
|
}
|
1508
1406
|
};
|
1509
1407
|
/**
|
1510
|
-
* Overrides the onselectstart method of the document so other text on the page
|
1511
|
-
* doesn't get selected when doing shift selections.
|
1512
|
-
*/
|
1513
|
-
/**
|
1514
|
-
* Overrides the onselectstart method of the document so other text on the page
|
1515
|
-
* doesn't get selected when doing shift selections.
|
1516
|
-
* @return {?}
|
1517
|
-
*/
|
1518
|
-
TdDataTableComponent.prototype.disableTextSelection = /**
|
1519
1408
|
* Overrides the onselectstart method of the document so other text on the page
|
1520
1409
|
* doesn't get selected when doing shift selections.
|
1521
1410
|
* @return {?}
|
1522
1411
|
*/
|
1523
|
-
function () {
|
1412
|
+
TdDataTableComponent.prototype.disableTextSelection = function () {
|
1524
1413
|
if (this._document) {
|
1525
|
-
this._document.onselectstart = (/**
|
1414
|
+
this._document.onselectstart = ( /**
|
1526
1415
|
* @return {?}
|
1527
|
-
*/
|
1528
|
-
function () {
|
1416
|
+
*/function () {
|
1529
1417
|
return false;
|
1530
1418
|
});
|
1531
1419
|
}
|
1532
1420
|
};
|
1533
|
-
/**
|
1534
|
-
* Resets the original onselectstart method.
|
1535
|
-
*/
|
1536
1421
|
/**
|
1537
1422
|
* Resets the original onselectstart method.
|
1538
1423
|
* @return {?}
|
1539
1424
|
*/
|
1540
|
-
TdDataTableComponent.prototype.enableTextSelection =
|
1541
|
-
* Resets the original onselectstart method.
|
1542
|
-
* @return {?}
|
1543
|
-
*/
|
1544
|
-
function () {
|
1425
|
+
TdDataTableComponent.prototype.enableTextSelection = function () {
|
1545
1426
|
if (this._document) {
|
1546
1427
|
this._document.onselectstart = undefined;
|
1547
1428
|
}
|
1548
1429
|
};
|
1549
1430
|
/**
|
1550
|
-
* emits the onRowClickEvent when a row is clicked
|
1551
|
-
* if clickable is true and selectable is false then select the row
|
1552
|
-
*/
|
1553
|
-
/**
|
1554
|
-
* emits the onRowClickEvent when a row is clicked
|
1555
|
-
* if clickable is true and selectable is false then select the row
|
1556
|
-
* @param {?} row
|
1557
|
-
* @param {?} index
|
1558
|
-
* @param {?} event
|
1559
|
-
* @return {?}
|
1560
|
-
*/
|
1561
|
-
TdDataTableComponent.prototype.handleRowClick = /**
|
1562
1431
|
* emits the onRowClickEvent when a row is clicked
|
1563
1432
|
* if clickable is true and selectable is false then select the row
|
1564
1433
|
* @param {?} row
|
@@ -1566,14 +1435,14 @@
|
|
1566
1435
|
* @param {?} event
|
1567
1436
|
* @return {?}
|
1568
1437
|
*/
|
1569
|
-
function (row, index, event) {
|
1438
|
+
TdDataTableComponent.prototype.handleRowClick = function (row, index, event) {
|
1570
1439
|
if (this.clickable) {
|
1571
1440
|
// ignoring linting rules here because attribute it actually null or not there
|
1572
1441
|
// can't check for undefined
|
1573
1442
|
/** @type {?} */
|
1574
1443
|
var srcElement = event.srcElement || event.currentTarget;
|
1575
1444
|
/** @type {?} */
|
1576
|
-
var element = (/** @type {?} */
|
1445
|
+
var element = ( /** @type {?} */(event.target));
|
1577
1446
|
/* tslint:disable-next-line */
|
1578
1447
|
if (srcElement.getAttribute('stopRowClick') === null && element.tagName.toLowerCase() !== 'mat-pseudo-checkbox') {
|
1579
1448
|
this.rowClick.emit({
|
@@ -1584,19 +1453,11 @@
|
|
1584
1453
|
}
|
1585
1454
|
};
|
1586
1455
|
/**
|
1587
|
-
* Method handle for sort click event in column headers.
|
1588
|
-
*/
|
1589
|
-
/**
|
1590
|
-
* Method handle for sort click event in column headers.
|
1591
|
-
* @param {?} column
|
1592
|
-
* @return {?}
|
1593
|
-
*/
|
1594
|
-
TdDataTableComponent.prototype.handleSort = /**
|
1595
1456
|
* Method handle for sort click event in column headers.
|
1596
1457
|
* @param {?} column
|
1597
1458
|
* @return {?}
|
1598
1459
|
*/
|
1599
|
-
function (column) {
|
1460
|
+
TdDataTableComponent.prototype.handleSort = function (column) {
|
1600
1461
|
if (this._sortBy === column) {
|
1601
1462
|
this._sortOrder =
|
1602
1463
|
this._sortOrder === TdDataTableSortingOrder.Ascending
|
@@ -1610,23 +1471,13 @@
|
|
1610
1471
|
this.sortChange.next({ name: this._sortBy.name, order: this._sortOrder });
|
1611
1472
|
};
|
1612
1473
|
/**
|
1613
|
-
* Handle all keyup events when focusing a data table row
|
1614
|
-
*/
|
1615
|
-
/**
|
1616
|
-
* Handle all keyup events when focusing a data table row
|
1617
|
-
* @param {?} event
|
1618
|
-
* @param {?} row
|
1619
|
-
* @param {?} index
|
1620
|
-
* @return {?}
|
1621
|
-
*/
|
1622
|
-
TdDataTableComponent.prototype._rowKeyup = /**
|
1623
1474
|
* Handle all keyup events when focusing a data table row
|
1624
1475
|
* @param {?} event
|
1625
1476
|
* @param {?} row
|
1626
1477
|
* @param {?} index
|
1627
1478
|
* @return {?}
|
1628
1479
|
*/
|
1629
|
-
function (event, row, index) {
|
1480
|
+
TdDataTableComponent.prototype._rowKeyup = function (event, row, index) {
|
1630
1481
|
switch (event.keyCode) {
|
1631
1482
|
case keycodes.ENTER:
|
1632
1483
|
case keycodes.SPACE:
|
@@ -1666,38 +1517,21 @@
|
|
1666
1517
|
}
|
1667
1518
|
};
|
1668
1519
|
/**
|
1669
|
-
* Sets column index of the dragged column and initial clientX of column
|
1670
|
-
*/
|
1671
|
-
/**
|
1672
|
-
* Sets column index of the dragged column and initial clientX of column
|
1673
|
-
* @param {?} index
|
1674
|
-
* @param {?} event
|
1675
|
-
* @return {?}
|
1676
|
-
*/
|
1677
|
-
TdDataTableComponent.prototype._handleStartColumnDrag = /**
|
1678
1520
|
* Sets column index of the dragged column and initial clientX of column
|
1679
1521
|
* @param {?} index
|
1680
1522
|
* @param {?} event
|
1681
1523
|
* @return {?}
|
1682
1524
|
*/
|
1683
|
-
function (index, event) {
|
1525
|
+
TdDataTableComponent.prototype._handleStartColumnDrag = function (index, event) {
|
1684
1526
|
this._columnClientX = event.clientX;
|
1685
1527
|
this._resizingColumn = index;
|
1686
1528
|
};
|
1687
1529
|
/**
|
1688
|
-
* Calculates new width depending on new clientX of dragger column
|
1689
|
-
*/
|
1690
|
-
/**
|
1691
|
-
* Calculates new width depending on new clientX of dragger column
|
1692
|
-
* @param {?} event
|
1693
|
-
* @return {?}
|
1694
|
-
*/
|
1695
|
-
TdDataTableComponent.prototype._handleColumnDrag = /**
|
1696
1530
|
* Calculates new width depending on new clientX of dragger column
|
1697
1531
|
* @param {?} event
|
1698
1532
|
* @return {?}
|
1699
1533
|
*/
|
1700
|
-
function (event) {
|
1534
|
+
TdDataTableComponent.prototype._handleColumnDrag = function (event) {
|
1701
1535
|
// check if there was been a separator clicked for resize
|
1702
1536
|
if (this._resizingColumn !== undefined && event.clientX > 0) {
|
1703
1537
|
/** @type {?} */
|
@@ -1717,35 +1551,20 @@
|
|
1717
1551
|
}
|
1718
1552
|
}
|
1719
1553
|
};
|
1720
|
-
/**
|
1721
|
-
* Ends dragged flags
|
1722
|
-
*/
|
1723
1554
|
/**
|
1724
1555
|
* Ends dragged flags
|
1725
1556
|
* @return {?}
|
1726
1557
|
*/
|
1727
|
-
TdDataTableComponent.prototype._handleEndColumnDrag =
|
1728
|
-
* Ends dragged flags
|
1729
|
-
* @return {?}
|
1730
|
-
*/
|
1731
|
-
function () {
|
1558
|
+
TdDataTableComponent.prototype._handleEndColumnDrag = function () {
|
1732
1559
|
this._columnClientX = undefined;
|
1733
1560
|
this._resizingColumn = undefined;
|
1734
1561
|
};
|
1735
1562
|
/**
|
1736
|
-
* Method to prevent the default events
|
1737
|
-
*/
|
1738
|
-
/**
|
1739
|
-
* Method to prevent the default events
|
1740
|
-
* @param {?} event
|
1741
|
-
* @return {?}
|
1742
|
-
*/
|
1743
|
-
TdDataTableComponent.prototype.blockEvent = /**
|
1744
1563
|
* Method to prevent the default events
|
1745
1564
|
* @param {?} event
|
1746
1565
|
* @return {?}
|
1747
1566
|
*/
|
1748
|
-
function (event) {
|
1567
|
+
TdDataTableComponent.prototype.blockEvent = function (event) {
|
1749
1568
|
event.preventDefault();
|
1750
1569
|
};
|
1751
1570
|
/**
|
@@ -1754,13 +1573,7 @@
|
|
1754
1573
|
* @param {?} value
|
1755
1574
|
* @return {?}
|
1756
1575
|
*/
|
1757
|
-
TdDataTableComponent.prototype._getNestedValue =
|
1758
|
-
* @private
|
1759
|
-
* @param {?} name
|
1760
|
-
* @param {?} value
|
1761
|
-
* @return {?}
|
1762
|
-
*/
|
1763
|
-
function (name, value) {
|
1576
|
+
TdDataTableComponent.prototype._getNestedValue = function (name, value) {
|
1764
1577
|
if (!(value instanceof Object) || !name) {
|
1765
1578
|
return value;
|
1766
1579
|
}
|
@@ -1774,23 +1587,13 @@
|
|
1774
1587
|
}
|
1775
1588
|
};
|
1776
1589
|
/**
|
1777
|
-
* Does the actual Row Selection
|
1778
|
-
*/
|
1779
|
-
/**
|
1780
|
-
* Does the actual Row Selection
|
1781
|
-
* @private
|
1782
|
-
* @param {?} row
|
1783
|
-
* @param {?} rowIndex
|
1784
|
-
* @return {?}
|
1785
|
-
*/
|
1786
|
-
TdDataTableComponent.prototype._doSelection = /**
|
1787
1590
|
* Does the actual Row Selection
|
1788
1591
|
* @private
|
1789
1592
|
* @param {?} row
|
1790
1593
|
* @param {?} rowIndex
|
1791
1594
|
* @return {?}
|
1792
1595
|
*/
|
1793
|
-
function (row, rowIndex) {
|
1596
|
+
TdDataTableComponent.prototype._doSelection = function (row, rowIndex) {
|
1794
1597
|
var _this = this;
|
1795
1598
|
/** @type {?} */
|
1796
1599
|
var wasSelected = this.isRowSelected(row);
|
@@ -1802,11 +1605,10 @@
|
|
1802
1605
|
}
|
1803
1606
|
else {
|
1804
1607
|
// compare items by [compareWith] function
|
1805
|
-
row = this.value.filter((/**
|
1608
|
+
row = this.value.filter(( /**
|
1806
1609
|
* @param {?} val
|
1807
1610
|
* @return {?}
|
1808
|
-
*/
|
1809
|
-
function (val) {
|
1611
|
+
*/function (val) {
|
1810
1612
|
return _this.compareWith(row, val);
|
1811
1613
|
}))[0];
|
1812
1614
|
/** @type {?} */
|
@@ -1821,27 +1623,18 @@
|
|
1821
1623
|
return !wasSelected;
|
1822
1624
|
};
|
1823
1625
|
/**
|
1824
|
-
* Calculate all the state of all checkboxes
|
1825
|
-
*/
|
1826
|
-
/**
|
1827
|
-
* Calculate all the state of all checkboxes
|
1828
|
-
* @private
|
1829
|
-
* @return {?}
|
1830
|
-
*/
|
1831
|
-
TdDataTableComponent.prototype._calculateCheckboxState = /**
|
1832
1626
|
* Calculate all the state of all checkboxes
|
1833
1627
|
* @private
|
1834
1628
|
* @return {?}
|
1835
1629
|
*/
|
1836
|
-
function () {
|
1630
|
+
TdDataTableComponent.prototype._calculateCheckboxState = function () {
|
1837
1631
|
var e_2, _a;
|
1838
1632
|
var _this = this;
|
1839
1633
|
if (this._data) {
|
1840
|
-
this._allSelected = typeof this._data.find((/**
|
1634
|
+
this._allSelected = typeof this._data.find(( /**
|
1841
1635
|
* @param {?} d
|
1842
1636
|
* @return {?}
|
1843
|
-
*/
|
1844
|
-
function (d) { return !_this.isRowSelected(d); })) === 'undefined';
|
1637
|
+
*/function (d) { return !_this.isRowSelected(d); })) === 'undefined';
|
1845
1638
|
this._indeterminate = false;
|
1846
1639
|
try {
|
1847
1640
|
for (var _b = __values(this._data), _c = _b.next(); !_c.done; _c = _b.next()) {
|
@@ -1863,28 +1656,19 @@
|
|
1863
1656
|
}
|
1864
1657
|
};
|
1865
1658
|
/**
|
1866
|
-
* Calculates the widths for columns and cells depending on content
|
1867
|
-
*/
|
1868
|
-
/**
|
1869
|
-
* Calculates the widths for columns and cells depending on content
|
1870
|
-
* @private
|
1871
|
-
* @return {?}
|
1872
|
-
*/
|
1873
|
-
TdDataTableComponent.prototype._calculateWidths = /**
|
1874
1659
|
* Calculates the widths for columns and cells depending on content
|
1875
1660
|
* @private
|
1876
1661
|
* @return {?}
|
1877
1662
|
*/
|
1878
|
-
function () {
|
1663
|
+
TdDataTableComponent.prototype._calculateWidths = function () {
|
1879
1664
|
var _this = this;
|
1880
1665
|
if (this._colElements && this._colElements.length) {
|
1881
1666
|
this._widths = [];
|
1882
|
-
this._colElements.forEach((/**
|
1667
|
+
this._colElements.forEach(( /**
|
1883
1668
|
* @param {?} col
|
1884
1669
|
* @param {?} index
|
1885
1670
|
* @return {?}
|
1886
|
-
*/
|
1887
|
-
function (col, index) {
|
1671
|
+
*/function (col, index) {
|
1888
1672
|
_this._adjustColumnWidth(index, _this._calculateWidth());
|
1889
1673
|
}));
|
1890
1674
|
this._adjustColumnWidhts();
|
@@ -1892,30 +1676,21 @@
|
|
1892
1676
|
}
|
1893
1677
|
};
|
1894
1678
|
/**
|
1895
|
-
* Adjusts columns after calculation to see if they need to be recalculated.
|
1896
|
-
*/
|
1897
|
-
/**
|
1898
|
-
* Adjusts columns after calculation to see if they need to be recalculated.
|
1899
|
-
* @private
|
1900
|
-
* @return {?}
|
1901
|
-
*/
|
1902
|
-
TdDataTableComponent.prototype._adjustColumnWidhts = /**
|
1903
1679
|
* Adjusts columns after calculation to see if they need to be recalculated.
|
1904
1680
|
* @private
|
1905
1681
|
* @return {?}
|
1906
1682
|
*/
|
1907
|
-
function () {
|
1683
|
+
TdDataTableComponent.prototype._adjustColumnWidhts = function () {
|
1908
1684
|
var _this = this;
|
1909
1685
|
/** @type {?} */
|
1910
1686
|
var fixedTotalWidth = 0;
|
1911
1687
|
// get the number of total columns that have flexible widths (not fixed or hidden)
|
1912
1688
|
/** @type {?} */
|
1913
|
-
var flexibleWidths = this._widths.filter((/**
|
1689
|
+
var flexibleWidths = this._widths.filter(( /**
|
1914
1690
|
* @param {?} width
|
1915
1691
|
* @param {?} index
|
1916
1692
|
* @return {?}
|
1917
|
-
*/
|
1918
|
-
function (width, index) {
|
1693
|
+
*/function (width, index) {
|
1919
1694
|
if (_this.columns[index].hidden) {
|
1920
1695
|
return false;
|
1921
1696
|
}
|
@@ -1939,11 +1714,10 @@
|
|
1939
1714
|
/** @type {?} */
|
1940
1715
|
var adjustedNumber_1 = 0;
|
1941
1716
|
// adjust the column widths with the spread pixels
|
1942
|
-
this._widths.forEach((/**
|
1717
|
+
this._widths.forEach(( /**
|
1943
1718
|
* @param {?} colWidth
|
1944
1719
|
* @return {?}
|
1945
|
-
*/
|
1946
|
-
function (colWidth) {
|
1720
|
+
*/function (colWidth) {
|
1947
1721
|
if ((_this._widths[colWidth.index].max && _this._widths[colWidth.index].value > newValue_1) ||
|
1948
1722
|
(_this._widths[colWidth.index].min && _this._widths[colWidth.index].value < newValue_1) ||
|
1949
1723
|
!_this._widths[colWidth.index].limit) {
|
@@ -1953,11 +1727,10 @@
|
|
1953
1727
|
}));
|
1954
1728
|
// if there are still columns that need to be recalculated, we start over
|
1955
1729
|
/** @type {?} */
|
1956
|
-
var newFlexibleWidths = this._widths.filter((/**
|
1730
|
+
var newFlexibleWidths = this._widths.filter(( /**
|
1957
1731
|
* @param {?} width
|
1958
1732
|
* @return {?}
|
1959
|
-
*/
|
1960
|
-
function (width) {
|
1733
|
+
*/function (width) {
|
1961
1734
|
return !width.limit && !width.max;
|
1962
1735
|
})).length;
|
1963
1736
|
if (newFlexibleWidths !== adjustedNumber_1 && newFlexibleWidths !== flexibleWidths) {
|
@@ -1966,23 +1739,13 @@
|
|
1966
1739
|
}
|
1967
1740
|
};
|
1968
1741
|
/**
|
1969
|
-
* Adjusts a single column to see if it can be recalculated
|
1970
|
-
*/
|
1971
|
-
/**
|
1972
|
-
* Adjusts a single column to see if it can be recalculated
|
1973
|
-
* @private
|
1974
|
-
* @param {?} index
|
1975
|
-
* @param {?} value
|
1976
|
-
* @return {?}
|
1977
|
-
*/
|
1978
|
-
TdDataTableComponent.prototype._adjustColumnWidth = /**
|
1979
1742
|
* Adjusts a single column to see if it can be recalculated
|
1980
1743
|
* @private
|
1981
1744
|
* @param {?} index
|
1982
1745
|
* @param {?} value
|
1983
1746
|
* @return {?}
|
1984
1747
|
*/
|
1985
|
-
function (index, value) {
|
1748
|
+
TdDataTableComponent.prototype._adjustColumnWidth = function (index, value) {
|
1986
1749
|
this._widths[index] = {
|
1987
1750
|
value: value,
|
1988
1751
|
index: index,
|
@@ -1998,7 +1761,7 @@
|
|
1998
1761
|
// if the provided width has min/max, then we check to see if we need to set it
|
1999
1762
|
if (typeof this.columns[index].width === 'object') {
|
2000
1763
|
/** @type {?} */
|
2001
|
-
var widthOpts = (/** @type {?} */
|
1764
|
+
var widthOpts = ( /** @type {?} */(this.columns[index].width));
|
2002
1765
|
// if the column width is less than the configured min, we override it
|
2003
1766
|
skipMinWidthProjection = widthOpts && !!widthOpts.min;
|
2004
1767
|
if (widthOpts && widthOpts.min >= this._widths[index].value) {
|
@@ -2013,7 +1776,7 @@
|
|
2013
1776
|
// if it has a fixed width, then we just set it
|
2014
1777
|
}
|
2015
1778
|
else if (typeof this.columns[index].width === 'number') {
|
2016
|
-
this._widths[index].value = (/** @type {?} */
|
1779
|
+
this._widths[index].value = ( /** @type {?} */(this.columns[index].width));
|
2017
1780
|
skipMinWidthProjection = this._widths[index].limit = true;
|
2018
1781
|
}
|
2019
1782
|
}
|
@@ -2024,42 +1787,25 @@
|
|
2024
1787
|
this._widths[index].limit = false;
|
2025
1788
|
}
|
2026
1789
|
};
|
2027
|
-
/**
|
2028
|
-
* Generic method to calculate column width
|
2029
|
-
*/
|
2030
1790
|
/**
|
2031
1791
|
* Generic method to calculate column width
|
2032
1792
|
* @private
|
2033
1793
|
* @return {?}
|
2034
1794
|
*/
|
2035
|
-
TdDataTableComponent.prototype._calculateWidth =
|
2036
|
-
* Generic method to calculate column width
|
2037
|
-
* @private
|
2038
|
-
* @return {?}
|
2039
|
-
*/
|
2040
|
-
function () {
|
1795
|
+
TdDataTableComponent.prototype._calculateWidth = function () {
|
2041
1796
|
/** @type {?} */
|
2042
|
-
var renderedColumns = this.columns.filter((/**
|
1797
|
+
var renderedColumns = this.columns.filter(( /**
|
2043
1798
|
* @param {?} col
|
2044
1799
|
* @return {?}
|
2045
|
-
*/
|
2046
|
-
function (col) { return !col.hidden; }));
|
1800
|
+
*/function (col) { return !col.hidden; }));
|
2047
1801
|
return Math.floor(this.hostWidth / renderedColumns.length);
|
2048
1802
|
};
|
2049
1803
|
/**
|
2050
|
-
* Method to calculate the rows to be rendered in the viewport
|
2051
|
-
*/
|
2052
|
-
/**
|
2053
|
-
* Method to calculate the rows to be rendered in the viewport
|
2054
|
-
* @private
|
2055
|
-
* @return {?}
|
2056
|
-
*/
|
2057
|
-
TdDataTableComponent.prototype._calculateVirtualRows = /**
|
2058
1804
|
* Method to calculate the rows to be rendered in the viewport
|
2059
1805
|
* @private
|
2060
1806
|
* @return {?}
|
2061
1807
|
*/
|
2062
|
-
function () {
|
1808
|
+
TdDataTableComponent.prototype._calculateVirtualRows = function () {
|
2063
1809
|
var _this = this;
|
2064
1810
|
/** @type {?} */
|
2065
1811
|
var scrolledRows = 0;
|
@@ -2069,12 +1815,11 @@
|
|
2069
1815
|
var rowHeightSum_1 = 0;
|
2070
1816
|
// loop through all rows to see if we have their height cached
|
2071
1817
|
// and sum them all to calculate the total height
|
2072
|
-
this._data.forEach((/**
|
1818
|
+
this._data.forEach(( /**
|
2073
1819
|
* @param {?} d
|
2074
1820
|
* @param {?} i
|
2075
1821
|
* @return {?}
|
2076
|
-
*/
|
2077
|
-
function (d, i) {
|
1822
|
+
*/function (d, i) {
|
2078
1823
|
// iterate through all rows at first and assume all
|
2079
1824
|
// rows are the same height as the first one
|
2080
1825
|
if (!_this._rowHeightCache[i]) {
|
@@ -2133,61 +1878,59 @@
|
|
2133
1878
|
}
|
2134
1879
|
// mark for check at the end of the queue so we are sure
|
2135
1880
|
// that the changes will be marked
|
2136
|
-
Promise.resolve().then((/**
|
1881
|
+
Promise.resolve().then(( /**
|
2137
1882
|
* @return {?}
|
2138
|
-
*/
|
2139
|
-
function () {
|
1883
|
+
*/function () {
|
2140
1884
|
_this._changeDetectorRef.markForCheck();
|
2141
1885
|
}));
|
2142
1886
|
};
|
2143
|
-
TdDataTableComponent.decorators = [
|
2144
|
-
{ type: core.Component, args: [{
|
2145
|
-
providers: [
|
2146
|
-
{
|
2147
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
2148
|
-
useExisting: core.forwardRef((/**
|
2149
|
-
* @return {?}
|
2150
|
-
*/
|
2151
|
-
function () { return TdDataTableComponent; })),
|
2152
|
-
multi: true,
|
2153
|
-
},
|
2154
|
-
],
|
2155
|
-
selector: 'td-data-table',
|
2156
|
-
template: "<table td-data-table [style.left.px]=\"columnsLeftScroll\" [class.mat-selectable]=\"selectable\">\n <thead class=\"td-data-table-head\" (dragover)=\"_handleColumnDrag($event)\">\n <tr td-data-table-column-row>\n <th td-data-table-column class=\"mat-checkbox-column\" *ngIf=\"selectable\">\n <mat-checkbox\n #checkBoxAll\n *ngIf=\"multiple\"\n [disabled]=\"!hasData\"\n [indeterminate]=\"indeterminate && !allSelected && hasData\"\n [checked]=\"allSelected && hasData\"\n (click)=\"blockEvent($event); _selectAll(!checkBoxAll.checked)\"\n (keyup.enter)=\"_selectAll(!checkBoxAll.checked)\"\n (keyup.space)=\"_selectAll(!checkBoxAll.checked)\"\n (keydown.space)=\"blockEvent($event)\"\n ></mat-checkbox>\n </th>\n <th\n td-data-table-column\n #columnElement\n *ngFor=\"let column of columns; let i = index; let last = last\"\n [style.min-width.px]=\"getColumnWidth(i)\"\n [style.max-width.px]=\"getColumnWidth(i)\"\n [name]=\"column.name\"\n [numeric]=\"column.numeric\"\n [active]=\"(column.sortable || sortable) && column === sortByColumn\"\n [sortable]=\"column.sortable || (sortable && column.sortable !== false)\"\n [sortOrder]=\"sortOrderEnum\"\n [hidden]=\"column.hidden\"\n [isColumnSortOrder]=\"!!column.columnSortOrder\"\n (sortChange)=\"handleSort(column)\"\n >\n <span [matTooltip]=\"column.tooltip\" [class]=\"column.columnSortOrder ? 'td-table-header-label' : ''\">\n {{ column.label }}\n <span *ngIf=\"column.columnSortOrder\" class=\"td-data-table-sort-badge\">\n {{ column.columnSortOrder || '' }}\n\n <span\n td-column-resizer\n *ngIf=\"resizableColumns\"\n draggable=\"true\"\n class=\"td-data-table-column-resizer\"\n [class.td-resizing]=\"i === resizingColumn\"\n (mousedown)=\"_handleStartColumnDrag(i, $event)\"\n (dragstart)=\"$event?.dataTransfer?.setData('text', '')\"\n (drag)=\"_handleColumnDrag($event)\"\n (dragend)=\"_handleEndColumnDrag()\"\n (mouseup)=\"_handleEndColumnDrag()\"\n >\n <span class=\"td-data-table-column-separator\"></span>\n </span>\n </span>\n </span>\n </th>\n </tr>\n </thead>\n</table>\n<div #scrollableDiv class=\"td-data-table-scrollable\" (scroll)=\"handleScroll($event)\">\n <div [style.height.px]=\"totalHeight\"></div>\n <table\n td-data-table\n [style.transform]=\"offsetTransform\"\n [style.position]=\"'absolute'\"\n [class.mat-selectable]=\"selectable\"\n [class.mat-clickable]=\"clickable\"\n >\n <tbody class=\"td-data-table-body\">\n <tr\n td-data-table-row\n #dtRow\n [tabIndex]=\"selectable ? 0 : -1\"\n [selected]=\"(clickable || selectable) && isRowSelected(row)\"\n *ngFor=\"let row of virtualData; let rowIndex = index\"\n (click)=\"handleRowClick(row, fromRow + rowIndex, $event)\"\n (keyup)=\"selectable && _rowKeyup($event, row, rowIndex)\"\n (keydown.space)=\"blockEvent($event)\"\n (keydown.shift.space)=\"blockEvent($event)\"\n (keydown.shift)=\"disableTextSelection()\"\n (keyup.shift)=\"enableTextSelection()\"\n >\n <td td-data-table-cell class=\"mat-checkbox-cell\" *ngIf=\"selectable\">\n <mat-pseudo-checkbox\n [state]=\"dtRow.selected ? 'checked' : 'unchecked'\"\n (mousedown)=\"disableTextSelection()\"\n (mouseup)=\"enableTextSelection()\"\n stopRowClick\n (click)=\"select(row, $event, fromRow + rowIndex)\"\n ></mat-pseudo-checkbox>\n </td>\n <td\n td-data-table-cell\n [numeric]=\"column.numeric\"\n [hidden]=\"column.hidden\"\n *ngFor=\"let column of columns; let i = index\"\n [style.min-width.px]=\"getColumnWidth(i)\"\n [style.max-width.px]=\"getColumnWidth(i)\"\n >\n <span *ngIf=\"!getTemplateRef(column.name)\">\n {{ column.format ? column.format(getCellValue(column, row)) : getCellValue(column, row) }}\n </span>\n <ng-template\n *ngIf=\"getTemplateRef(column.name)\"\n [ngTemplateOutlet]=\"getTemplateRef(column.name)\"\n [ngTemplateOutletContext]=\"{\n value: getCellValue(column, row),\n row: row,\n column: column.name,\n index: rowIndex\n }\"\n ></ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n<ng-content></ng-content>\n",
|
2157
|
-
inputs: ['value'],
|
2158
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
2159
|
-
styles: [".td-data-table-sort-badge{height:16px;width:16px;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-left:4px}:host{display:block;overflow:hidden}:host .td-data-table-scrollable{position:relative;overflow:auto;height:calc(100% - 56px)}.td-table-header-label{display:-ms-flexbox;display:flex}.td-data-table-column-resizer{right:0;width:6px;cursor:col-resize}.td-data-table-column-resizer,.td-data-table-column-resizer .td-data-table-column-separator{position:absolute;height:100%;top:0}.td-data-table-column-resizer .td-data-table-column-separator{left:2px}.td-data-table-column-resizer.td-resizing{cursor:-webkit-grabbing}table.td-data-table{width:auto!important}table.td-data-table.mat-selectable tbody>tr.td-data-table-row{transition:background-color .2s}table.td-data-table.mat-selectable .td-data-table-column:first-child>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable td.td-data-table-cell:first-child>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable th.td-data-table-column:first-child>.td-data-table-column-content-wrapper{width:18px;min-width:18px;padding:0 24px}table.td-data-table.mat-selectable .td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable td.td-data-table-cell:nth-child(2)>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable th.td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper{padding-left:0}[dir=rtl] table.td-data-table.mat-selectable .td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper,[dir=rtl] table.td-data-table.mat-selectable td.td-data-table-cell:nth-child(2)>.td-data-table-column-content-wrapper,[dir=rtl] table.td-data-table.mat-selectable th.td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper{padding-right:0;padding-left:28px}table.td-data-table td.mat-checkbox-cell,table.td-data-table th.mat-checkbox-column{min-width:42px;width:42px;font-size:0!important}table.td-data-table td.mat-checkbox-cell mat-pseudo-checkbox,table.td-data-table th.mat-checkbox-column mat-pseudo-checkbox{width:18px;height:18px}::ng-deep table.td-data-table td.mat-checkbox-cell mat-pseudo-checkbox.mat-pseudo-checkbox-checked::after,::ng-deep table.td-data-table th.mat-checkbox-column mat-pseudo-checkbox.mat-pseudo-checkbox-checked::after{width:11px!important;height:4px!important}table.td-data-table td.mat-checkbox-cell mat-checkbox ::ng-deep .mat-checkbox-inner-container,table.td-data-table th.mat-checkbox-column mat-checkbox ::ng-deep .mat-checkbox-inner-container{width:18px;height:18px;margin:0}"]
|
2160
|
-
}] }
|
2161
|
-
];
|
2162
|
-
/** @nocollapse */
|
2163
|
-
TdDataTableComponent.ctorParameters = function () { return [
|
2164
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [common.DOCUMENT,] }] },
|
2165
|
-
{ type: core.ElementRef },
|
2166
|
-
{ type: platformBrowser.DomSanitizer },
|
2167
|
-
{ type: core.ChangeDetectorRef }
|
2168
|
-
]; };
|
2169
|
-
TdDataTableComponent.propDecorators = {
|
2170
|
-
_templates: [{ type: core.ContentChildren, args: [TdDataTableTemplateDirective, { descendants: true },] }],
|
2171
|
-
_scrollableDiv: [{ type: core.ViewChild, args: ['scrollableDiv', { static: true },] }],
|
2172
|
-
_colElements: [{ type: core.ViewChildren, args: ['columnElement',] }],
|
2173
|
-
_rows: [{ type: core.ViewChildren, args: [TdDataTableRowComponent,] }],
|
2174
|
-
data: [{ type: core.Input, args: ['data',] }],
|
2175
|
-
columns: [{ type: core.Input, args: ['columns',] }],
|
2176
|
-
resizableColumns: [{ type: core.Input, args: ['resizableColumns',] }],
|
2177
|
-
selectable: [{ type: core.Input, args: ['selectable',] }],
|
2178
|
-
clickable: [{ type: core.Input, args: ['clickable',] }],
|
2179
|
-
multiple: [{ type: core.Input, args: ['multiple',] }],
|
2180
|
-
sortable: [{ type: core.Input, args: ['sortable',] }],
|
2181
|
-
sortBy: [{ type: core.Input, args: ['sortBy',] }],
|
2182
|
-
sortOrder: [{ type: core.Input, args: ['sortOrder',] }],
|
2183
|
-
sortChange: [{ type: core.Output }],
|
2184
|
-
rowSelect: [{ type: core.Output }],
|
2185
|
-
rowClick: [{ type: core.Output }],
|
2186
|
-
selectAll: [{ type: core.Output }],
|
2187
|
-
compareWith: [{ type: core.Input }]
|
2188
|
-
};
|
2189
1887
|
return TdDataTableComponent;
|
2190
1888
|
}(_TdDataTableMixinBase));
|
1889
|
+
TdDataTableComponent.decorators = [
|
1890
|
+
{ type: core.Component, args: [{
|
1891
|
+
providers: [
|
1892
|
+
{
|
1893
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
1894
|
+
useExisting: core.forwardRef(( /**
|
1895
|
+
* @return {?}
|
1896
|
+
*/function () { return TdDataTableComponent; })),
|
1897
|
+
multi: true,
|
1898
|
+
},
|
1899
|
+
],
|
1900
|
+
selector: 'td-data-table',
|
1901
|
+
template: "<table td-data-table [style.left.px]=\"columnsLeftScroll\" [class.mat-selectable]=\"selectable\">\n <thead class=\"td-data-table-head\" (dragover)=\"_handleColumnDrag($event)\">\n <tr td-data-table-column-row>\n <th td-data-table-column class=\"mat-checkbox-column\" *ngIf=\"selectable\">\n <mat-checkbox\n #checkBoxAll\n *ngIf=\"multiple\"\n [disabled]=\"!hasData\"\n [indeterminate]=\"indeterminate && !allSelected && hasData\"\n [checked]=\"allSelected && hasData\"\n (click)=\"blockEvent($event); _selectAll(!checkBoxAll.checked)\"\n (keyup.enter)=\"_selectAll(!checkBoxAll.checked)\"\n (keyup.space)=\"_selectAll(!checkBoxAll.checked)\"\n (keydown.space)=\"blockEvent($event)\"\n ></mat-checkbox>\n </th>\n <th\n td-data-table-column\n #columnElement\n *ngFor=\"let column of columns; let i = index; let last = last\"\n [style.min-width.px]=\"getColumnWidth(i)\"\n [style.max-width.px]=\"getColumnWidth(i)\"\n [name]=\"column.name\"\n [numeric]=\"column.numeric\"\n [active]=\"(column.sortable || sortable) && column === sortByColumn\"\n [sortable]=\"column.sortable || (sortable && column.sortable !== false)\"\n [sortOrder]=\"sortOrderEnum\"\n [hidden]=\"column.hidden\"\n [isColumnSortOrder]=\"!!column.columnSortOrder\"\n (sortChange)=\"handleSort(column)\"\n >\n <span [matTooltip]=\"column.tooltip\" [class]=\"column.columnSortOrder ? 'td-table-header-label' : ''\">\n {{ column.label }}\n <span *ngIf=\"column.columnSortOrder\" class=\"td-data-table-sort-badge\">\n {{ column.columnSortOrder || '' }}\n\n <span\n td-column-resizer\n *ngIf=\"resizableColumns\"\n draggable=\"true\"\n class=\"td-data-table-column-resizer\"\n [class.td-resizing]=\"i === resizingColumn\"\n (mousedown)=\"_handleStartColumnDrag(i, $event)\"\n (dragstart)=\"$event?.dataTransfer?.setData('text', '')\"\n (drag)=\"_handleColumnDrag($event)\"\n (dragend)=\"_handleEndColumnDrag()\"\n (mouseup)=\"_handleEndColumnDrag()\"\n >\n <span class=\"td-data-table-column-separator\"></span>\n </span>\n </span>\n </span>\n </th>\n </tr>\n </thead>\n</table>\n<div #scrollableDiv class=\"td-data-table-scrollable\" (scroll)=\"handleScroll($event)\">\n <div [style.height.px]=\"totalHeight\"></div>\n <table\n td-data-table\n [style.transform]=\"offsetTransform\"\n [style.position]=\"'absolute'\"\n [class.mat-selectable]=\"selectable\"\n [class.mat-clickable]=\"clickable\"\n >\n <tbody class=\"td-data-table-body\">\n <tr\n td-data-table-row\n #dtRow\n [tabIndex]=\"selectable ? 0 : -1\"\n [selected]=\"(clickable || selectable) && isRowSelected(row)\"\n *ngFor=\"let row of virtualData; let rowIndex = index\"\n (click)=\"handleRowClick(row, fromRow + rowIndex, $event)\"\n (keyup)=\"selectable && _rowKeyup($event, row, rowIndex)\"\n (keydown.space)=\"blockEvent($event)\"\n (keydown.shift.space)=\"blockEvent($event)\"\n (keydown.shift)=\"disableTextSelection()\"\n (keyup.shift)=\"enableTextSelection()\"\n >\n <td td-data-table-cell class=\"mat-checkbox-cell\" *ngIf=\"selectable\">\n <mat-pseudo-checkbox\n [state]=\"dtRow.selected ? 'checked' : 'unchecked'\"\n (mousedown)=\"disableTextSelection()\"\n (mouseup)=\"enableTextSelection()\"\n stopRowClick\n (click)=\"select(row, $event, fromRow + rowIndex)\"\n ></mat-pseudo-checkbox>\n </td>\n <td\n td-data-table-cell\n [numeric]=\"column.numeric\"\n [hidden]=\"column.hidden\"\n *ngFor=\"let column of columns; let i = index\"\n [style.min-width.px]=\"getColumnWidth(i)\"\n [style.max-width.px]=\"getColumnWidth(i)\"\n >\n <span *ngIf=\"!getTemplateRef(column.name)\">\n {{ column.format ? column.format(getCellValue(column, row)) : getCellValue(column, row) }}\n </span>\n <ng-template\n *ngIf=\"getTemplateRef(column.name)\"\n [ngTemplateOutlet]=\"getTemplateRef(column.name)\"\n [ngTemplateOutletContext]=\"{\n value: getCellValue(column, row),\n row: row,\n column: column.name,\n index: rowIndex\n }\"\n ></ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n<ng-content></ng-content>\n",
|
1902
|
+
inputs: ['value'],
|
1903
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
1904
|
+
styles: [".td-data-table-sort-badge{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;border-radius:50%;display:-ms-flexbox;display:flex;height:16px;justify-content:center;margin-left:4px;width:16px}:host{display:block;overflow:hidden}:host .td-data-table-scrollable{height:calc(100% - 56px);overflow:auto;position:relative}.td-table-header-label{display:-ms-flexbox;display:flex}.td-data-table-column-resizer{cursor:col-resize;right:0;width:6px}.td-data-table-column-resizer,.td-data-table-column-resizer .td-data-table-column-separator{height:100%;position:absolute;top:0}.td-data-table-column-resizer .td-data-table-column-separator{left:2px}.td-data-table-column-resizer.td-resizing{cursor:-webkit-grabbing}table.td-data-table{width:auto!important}table.td-data-table.mat-selectable tbody>tr.td-data-table-row{transition:background-color .2s}table.td-data-table.mat-selectable .td-data-table-column:first-child>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable td.td-data-table-cell:first-child>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable th.td-data-table-column:first-child>.td-data-table-column-content-wrapper{min-width:18px;padding:0 24px;width:18px}table.td-data-table.mat-selectable .td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable td.td-data-table-cell:nth-child(2)>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable th.td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper{padding-left:0}[dir=rtl] table.td-data-table.mat-selectable .td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper,[dir=rtl] table.td-data-table.mat-selectable td.td-data-table-cell:nth-child(2)>.td-data-table-column-content-wrapper,[dir=rtl] table.td-data-table.mat-selectable th.td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper{padding-left:28px;padding-right:0}table.td-data-table td.mat-checkbox-cell,table.td-data-table th.mat-checkbox-column{font-size:0!important;min-width:42px;width:42px}table.td-data-table td.mat-checkbox-cell mat-pseudo-checkbox,table.td-data-table th.mat-checkbox-column mat-pseudo-checkbox{height:18px;width:18px}::ng-deep table.td-data-table td.mat-checkbox-cell mat-pseudo-checkbox.mat-pseudo-checkbox-checked:after,::ng-deep table.td-data-table th.mat-checkbox-column mat-pseudo-checkbox.mat-pseudo-checkbox-checked:after{height:4px!important;width:11px!important}table.td-data-table td.mat-checkbox-cell mat-checkbox ::ng-deep .mat-checkbox-inner-container,table.td-data-table th.mat-checkbox-column mat-checkbox ::ng-deep .mat-checkbox-inner-container{height:18px;margin:0;width:18px}"]
|
1905
|
+
}] }
|
1906
|
+
];
|
1907
|
+
/** @nocollapse */
|
1908
|
+
TdDataTableComponent.ctorParameters = function () { return [
|
1909
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [common$1.DOCUMENT,] }] },
|
1910
|
+
{ type: core.ElementRef },
|
1911
|
+
{ type: platformBrowser.DomSanitizer },
|
1912
|
+
{ type: core.ChangeDetectorRef }
|
1913
|
+
]; };
|
1914
|
+
TdDataTableComponent.propDecorators = {
|
1915
|
+
_templates: [{ type: core.ContentChildren, args: [TdDataTableTemplateDirective, { descendants: true },] }],
|
1916
|
+
_scrollableDiv: [{ type: core.ViewChild, args: ['scrollableDiv', { static: true },] }],
|
1917
|
+
_colElements: [{ type: core.ViewChildren, args: ['columnElement',] }],
|
1918
|
+
_rows: [{ type: core.ViewChildren, args: [TdDataTableRowComponent,] }],
|
1919
|
+
data: [{ type: core.Input, args: ['data',] }],
|
1920
|
+
columns: [{ type: core.Input, args: ['columns',] }],
|
1921
|
+
resizableColumns: [{ type: core.Input, args: ['resizableColumns',] }],
|
1922
|
+
selectable: [{ type: core.Input, args: ['selectable',] }],
|
1923
|
+
clickable: [{ type: core.Input, args: ['clickable',] }],
|
1924
|
+
multiple: [{ type: core.Input, args: ['multiple',] }],
|
1925
|
+
sortable: [{ type: core.Input, args: ['sortable',] }],
|
1926
|
+
sortBy: [{ type: core.Input, args: ['sortBy',] }],
|
1927
|
+
sortOrder: [{ type: core.Input, args: ['sortOrder',] }],
|
1928
|
+
sortChange: [{ type: core.Output }],
|
1929
|
+
rowSelect: [{ type: core.Output }],
|
1930
|
+
rowClick: [{ type: core.Output }],
|
1931
|
+
selectAll: [{ type: core.Output }],
|
1932
|
+
compareWith: [{ type: core.Input }]
|
1933
|
+
};
|
2191
1934
|
if (false) {
|
2192
1935
|
/**
|
2193
1936
|
* responsive width calculations
|
@@ -2453,7 +2196,8 @@
|
|
2453
2196
|
|
2454
2197
|
/**
|
2455
2198
|
* @fileoverview added by tsickle
|
2456
|
-
*
|
2199
|
+
* Generated from: data-table-column/data-table-column.component.ts
|
2200
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2457
2201
|
*/
|
2458
2202
|
/**
|
2459
2203
|
* @record
|
@@ -2466,6 +2210,10 @@
|
|
2466
2210
|
ITdDataTableSortChangeEvent.prototype.name;
|
2467
2211
|
}
|
2468
2212
|
var TdDataTableColumnComponent = /** @class */ (function () {
|
2213
|
+
/**
|
2214
|
+
* @param {?} _elementRef
|
2215
|
+
* @param {?} _renderer
|
2216
|
+
*/
|
2469
2217
|
function TdDataTableColumnComponent(_elementRef, _renderer) {
|
2470
2218
|
this._elementRef = _elementRef;
|
2471
2219
|
this._renderer = _renderer;
|
@@ -2506,32 +2254,27 @@
|
|
2506
2254
|
this._renderer.addClass(this._elementRef.nativeElement, 'td-data-table-column');
|
2507
2255
|
}
|
2508
2256
|
Object.defineProperty(TdDataTableColumnComponent.prototype, "projectedWidth", {
|
2509
|
-
|
2257
|
+
/**
|
2510
2258
|
* @return {?}
|
2511
2259
|
*/
|
2512
|
-
function () {
|
2260
|
+
get: function () {
|
2513
2261
|
if (this._columnContent && this._columnContent.nativeElement) {
|
2514
|
-
return ((/** @type {?} */
|
2262
|
+
return (( /** @type {?} */(this._columnContent.nativeElement))).getBoundingClientRect().width;
|
2515
2263
|
}
|
2516
2264
|
return 100;
|
2517
2265
|
},
|
2518
|
-
enumerable:
|
2266
|
+
enumerable: false,
|
2519
2267
|
configurable: true
|
2520
2268
|
});
|
2521
2269
|
Object.defineProperty(TdDataTableColumnComponent.prototype, "sortOrder", {
|
2522
2270
|
/**
|
2523
|
-
* sortOrder?: ['ASC' | 'DESC'] or TdDataTableSortingOrder
|
2524
|
-
* Sets the sort order of column.
|
2525
|
-
* Defaults to 'ASC' or TdDataTableSortingOrder.Ascending
|
2526
|
-
*/
|
2527
|
-
set: /**
|
2528
2271
|
* sortOrder?: ['ASC' | 'DESC'] or TdDataTableSortingOrder
|
2529
2272
|
* Sets the sort order of column.
|
2530
2273
|
* Defaults to 'ASC' or TdDataTableSortingOrder.Ascending
|
2531
2274
|
* @param {?} order
|
2532
2275
|
* @return {?}
|
2533
2276
|
*/
|
2534
|
-
function (order) {
|
2277
|
+
set: function (order) {
|
2535
2278
|
/** @type {?} */
|
2536
2279
|
var sortOrder = order ? order.toUpperCase() : 'ASC';
|
2537
2280
|
if (sortOrder !== 'DESC' && sortOrder !== 'ASC') {
|
@@ -2539,61 +2282,54 @@
|
|
2539
2282
|
}
|
2540
2283
|
this._sortOrder = sortOrder === 'ASC' ? TdDataTableSortingOrder.Ascending : TdDataTableSortingOrder.Descending;
|
2541
2284
|
},
|
2542
|
-
enumerable:
|
2285
|
+
enumerable: false,
|
2543
2286
|
configurable: true
|
2544
2287
|
});
|
2545
2288
|
Object.defineProperty(TdDataTableColumnComponent.prototype, "bindClickable", {
|
2546
|
-
|
2289
|
+
/**
|
2547
2290
|
* @return {?}
|
2548
2291
|
*/
|
2549
|
-
function () {
|
2292
|
+
get: function () {
|
2550
2293
|
return this.sortable;
|
2551
2294
|
},
|
2552
|
-
enumerable:
|
2295
|
+
enumerable: false,
|
2553
2296
|
configurable: true
|
2554
2297
|
});
|
2555
2298
|
Object.defineProperty(TdDataTableColumnComponent.prototype, "bingSortable", {
|
2556
|
-
|
2299
|
+
/**
|
2557
2300
|
* @return {?}
|
2558
2301
|
*/
|
2559
|
-
function () {
|
2302
|
+
get: function () {
|
2560
2303
|
return this.sortable;
|
2561
2304
|
},
|
2562
|
-
enumerable:
|
2305
|
+
enumerable: false,
|
2563
2306
|
configurable: true
|
2564
2307
|
});
|
2565
2308
|
Object.defineProperty(TdDataTableColumnComponent.prototype, "bindActive", {
|
2566
|
-
|
2309
|
+
/**
|
2567
2310
|
* @return {?}
|
2568
2311
|
*/
|
2569
|
-
function () {
|
2312
|
+
get: function () {
|
2570
2313
|
return this.active;
|
2571
2314
|
},
|
2572
|
-
enumerable:
|
2315
|
+
enumerable: false,
|
2573
2316
|
configurable: true
|
2574
2317
|
});
|
2575
2318
|
Object.defineProperty(TdDataTableColumnComponent.prototype, "bindNumeric", {
|
2576
|
-
|
2319
|
+
/**
|
2577
2320
|
* @return {?}
|
2578
2321
|
*/
|
2579
|
-
function () {
|
2322
|
+
get: function () {
|
2580
2323
|
return this.numeric;
|
2581
2324
|
},
|
2582
|
-
enumerable:
|
2325
|
+
enumerable: false,
|
2583
2326
|
configurable: true
|
2584
2327
|
});
|
2585
|
-
/**
|
2586
|
-
* Listening to click event on host to throw a sort event
|
2587
|
-
*/
|
2588
2328
|
/**
|
2589
2329
|
* Listening to click event on host to throw a sort event
|
2590
2330
|
* @return {?}
|
2591
2331
|
*/
|
2592
|
-
TdDataTableColumnComponent.prototype.handleClick =
|
2593
|
-
* Listening to click event on host to throw a sort event
|
2594
|
-
* @return {?}
|
2595
|
-
*/
|
2596
|
-
function () {
|
2332
|
+
TdDataTableColumnComponent.prototype.handleClick = function () {
|
2597
2333
|
if (this.sortable) {
|
2598
2334
|
this.sortChange.emit({ name: this.name, order: this._sortOrder });
|
2599
2335
|
}
|
@@ -2601,51 +2337,45 @@
|
|
2601
2337
|
/**
|
2602
2338
|
* @return {?}
|
2603
2339
|
*/
|
2604
|
-
TdDataTableColumnComponent.prototype.isAscending =
|
2605
|
-
* @return {?}
|
2606
|
-
*/
|
2607
|
-
function () {
|
2340
|
+
TdDataTableColumnComponent.prototype.isAscending = function () {
|
2608
2341
|
return this._sortOrder === TdDataTableSortingOrder.Ascending;
|
2609
2342
|
};
|
2610
2343
|
/**
|
2611
2344
|
* @return {?}
|
2612
2345
|
*/
|
2613
|
-
TdDataTableColumnComponent.prototype.isDescending =
|
2614
|
-
* @return {?}
|
2615
|
-
*/
|
2616
|
-
function () {
|
2346
|
+
TdDataTableColumnComponent.prototype.isDescending = function () {
|
2617
2347
|
return this._sortOrder === TdDataTableSortingOrder.Descending;
|
2618
2348
|
};
|
2619
|
-
TdDataTableColumnComponent.decorators = [
|
2620
|
-
{ type: core.Component, args: [{
|
2621
|
-
/* tslint:disable-next-line */
|
2622
|
-
selector: 'th[td-data-table-column]',
|
2623
|
-
template: "<span #columnContent class=\"td-data-table-heading\">\n <mat-icon\n class=\"td-data-table-sort-icon\"\n *ngIf=\"sortable && numeric\"\n [class.mat-asc]=\"isAscending()\"\n [class.mat-desc]=\"isDescending()\"\n >\n arrow_upward\n </mat-icon>\n <span>\n <ng-content></ng-content>\n </span>\n <mat-icon\n class=\"td-data-table-sort-icon\"\n *ngIf=\"sortable && !numeric\"\n [class.mat-asc]=\"isAscending()\"\n [class.mat-desc]=\"isDescending()\"\n [class.display-numeric]=\"isColumnSortOrder\"\n >\n arrow_upward\n </mat-icon>\n</span>\n<ng-content select=\"[td-column-resizer]\"></ng-content>\n",
|
2624
|
-
styles: [":host{white-space:nowrap;position:relative;padding:0;vertical-align:middle;text-align:left}:host>.td-data-table-heading{padding:0 28px}:host:first-child>.td-data-table-heading{padding-left:24px;padding-right:initial}html[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}body[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}:host:first-child>.td-data-table-heading bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:first-child>.td-data-table-heading bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:last-child>.td-data-table-heading{padding-left:28px;padding-right:24px}html[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}body[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}:host:last-child>.td-data-table-heading bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:last-child>.td-data-table-heading bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host mat-icon{height:16px;width:16px;font-size:16px!important;line-height:16px!important}:host mat-icon.td-data-table-sort-icon{opacity:0;transition:transform .25s;position:absolute;top:0}:host mat-icon.td-data-table-sort-icon.display-numeric{right:0}:host mat-icon.td-data-table-sort-icon.mat-asc{-ms-transform:rotate(0);transform:rotate(0)}:host mat-icon.td-data-table-sort-icon.mat-desc{-ms-transform:rotate(180deg);transform:rotate(180deg)}:host.mat-active.mat-sortable mat-icon.td-data-table-sort-icon,:host:hover.mat-sortable mat-icon.td-data-table-sort-icon{opacity:1}html[dir=rtl] :host{text-align:right;unicode-bidi:embed}body[dir=rtl] :host{text-align:right;unicode-bidi:embed}[dir=rtl] :host{text-align:right;unicode-bidi:embed}:host bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>*{vertical-align:middle}:host.mat-clickable{cursor:pointer}:host.mat-clickable:focus{outline:0}:host .td-data-table-heading{display:inline-block;position:relative}:host.mat-numeric{text-align:right}html[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}:host.mat-numeric bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:-22px;margin-right:initial}html[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:-22px;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:-22px;unicode-bidi:embed}[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:-22px;unicode-bidi:embed}:host.mat-numeric mat-icon.td-data-table-sort-icon bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric mat-icon.td-data-table-sort-icon bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:6px;margin-right:initial}html[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:6px;unicode-bidi:embed}body[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:6px;unicode-bidi:embed}[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:6px;unicode-bidi:embed}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}"]
|
2625
|
-
}] }
|
2626
|
-
];
|
2627
|
-
/** @nocollapse */
|
2628
|
-
TdDataTableColumnComponent.ctorParameters = function () { return [
|
2629
|
-
{ type: core.ElementRef },
|
2630
|
-
{ type: core.Renderer2 }
|
2631
|
-
]; };
|
2632
|
-
TdDataTableColumnComponent.propDecorators = {
|
2633
|
-
_columnContent: [{ type: core.ViewChild, args: ['columnContent', { read: core.ElementRef, static: true },] }],
|
2634
|
-
name: [{ type: core.Input }],
|
2635
|
-
sortable: [{ type: core.Input }],
|
2636
|
-
active: [{ type: core.Input }],
|
2637
|
-
numeric: [{ type: core.Input }],
|
2638
|
-
isColumnSortOrder: [{ type: core.Input }],
|
2639
|
-
sortOrder: [{ type: core.Input, args: ['sortOrder',] }],
|
2640
|
-
sortChange: [{ type: core.Output }],
|
2641
|
-
bindClickable: [{ type: core.HostBinding, args: ['class.mat-clickable',] }],
|
2642
|
-
bingSortable: [{ type: core.HostBinding, args: ['class.mat-sortable',] }],
|
2643
|
-
bindActive: [{ type: core.HostBinding, args: ['class.mat-active',] }],
|
2644
|
-
bindNumeric: [{ type: core.HostBinding, args: ['class.mat-numeric',] }],
|
2645
|
-
handleClick: [{ type: core.HostListener, args: ['click',] }]
|
2646
|
-
};
|
2647
2349
|
return TdDataTableColumnComponent;
|
2648
2350
|
}());
|
2351
|
+
TdDataTableColumnComponent.decorators = [
|
2352
|
+
{ type: core.Component, args: [{
|
2353
|
+
/* tslint:disable-next-line */
|
2354
|
+
selector: 'th[td-data-table-column]',
|
2355
|
+
template: "<span #columnContent class=\"td-data-table-heading\">\n <mat-icon\n class=\"td-data-table-sort-icon\"\n *ngIf=\"sortable && numeric\"\n [class.mat-asc]=\"isAscending()\"\n [class.mat-desc]=\"isDescending()\"\n >\n arrow_upward\n </mat-icon>\n <span>\n <ng-content></ng-content>\n </span>\n <mat-icon\n class=\"td-data-table-sort-icon\"\n *ngIf=\"sortable && !numeric\"\n [class.mat-asc]=\"isAscending()\"\n [class.mat-desc]=\"isDescending()\"\n [class.display-numeric]=\"isColumnSortOrder\"\n >\n arrow_upward\n </mat-icon>\n</span>\n<ng-content select=\"[td-column-resizer]\"></ng-content>\n",
|
2356
|
+
styles: [":host{padding:0;position:relative;text-align:left;vertical-align:middle;white-space:nowrap}:host>.td-data-table-heading{padding:0 28px}:host:first-child>.td-data-table-heading{padding-left:24px;padding-right:0}html[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:0}body[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:0}[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:0}html[dir=rtl] :host:first-child>.td-data-table-heading{padding-right:24px;unicode-bidi:embed}body[dir=rtl] :host:first-child>.td-data-table-heading{padding-right:24px;unicode-bidi:embed}[dir=rtl] :host:first-child>.td-data-table-heading{padding-right:24px;unicode-bidi:embed}:host:first-child>.td-data-table-heading bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:first-child>.td-data-table-heading bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:last-child>.td-data-table-heading{padding-left:28px;padding-right:24px}html[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px}body[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px}[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px}html[dir=rtl] :host:last-child>.td-data-table-heading{padding-right:28px;unicode-bidi:embed}body[dir=rtl] :host:last-child>.td-data-table-heading{padding-right:28px;unicode-bidi:embed}[dir=rtl] :host:last-child>.td-data-table-heading{padding-right:28px;unicode-bidi:embed}:host:last-child>.td-data-table-heading bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:last-child>.td-data-table-heading bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host mat-icon{font-size:16px!important;height:16px;line-height:16px!important;width:16px}:host mat-icon.td-data-table-sort-icon{opacity:0;position:absolute;top:0;transition:transform .25s}:host mat-icon.td-data-table-sort-icon.display-numeric{right:0}:host mat-icon.td-data-table-sort-icon.mat-asc{-ms-transform:rotate(0deg);transform:rotate(0deg)}:host mat-icon.td-data-table-sort-icon.mat-desc{-ms-transform:rotate(180deg);transform:rotate(180deg)}:host.mat-active.mat-sortable mat-icon.td-data-table-sort-icon,:host:hover.mat-sortable mat-icon.td-data-table-sort-icon{opacity:1}html[dir=rtl] :host{text-align:right;unicode-bidi:embed}body[dir=rtl] :host{text-align:right;unicode-bidi:embed}[dir=rtl] :host{text-align:right;unicode-bidi:embed}:host bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>*{vertical-align:middle}:host.mat-clickable{cursor:pointer}:host.mat-clickable:focus{outline:none}:host .td-data-table-heading{display:inline-block;position:relative}:host.mat-numeric{text-align:right}html[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}:host.mat-numeric bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:-22px;margin-right:0}html[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:0}body[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:0}[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:0}html[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-right:-22px;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-right:-22px;unicode-bidi:embed}[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-right:-22px;unicode-bidi:embed}:host.mat-numeric mat-icon.td-data-table-sort-icon bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric mat-icon.td-data-table-sort-icon bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:6px;margin-right:0}html[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:0}body[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:0}[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:0}html[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-right:6px;unicode-bidi:embed}body[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-right:6px;unicode-bidi:embed}[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-right:6px;unicode-bidi:embed}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}"]
|
2357
|
+
}] }
|
2358
|
+
];
|
2359
|
+
/** @nocollapse */
|
2360
|
+
TdDataTableColumnComponent.ctorParameters = function () { return [
|
2361
|
+
{ type: core.ElementRef },
|
2362
|
+
{ type: core.Renderer2 }
|
2363
|
+
]; };
|
2364
|
+
TdDataTableColumnComponent.propDecorators = {
|
2365
|
+
_columnContent: [{ type: core.ViewChild, args: ['columnContent', { read: core.ElementRef, static: true },] }],
|
2366
|
+
name: [{ type: core.Input }],
|
2367
|
+
sortable: [{ type: core.Input }],
|
2368
|
+
active: [{ type: core.Input }],
|
2369
|
+
numeric: [{ type: core.Input }],
|
2370
|
+
isColumnSortOrder: [{ type: core.Input }],
|
2371
|
+
sortOrder: [{ type: core.Input, args: ['sortOrder',] }],
|
2372
|
+
sortChange: [{ type: core.Output }],
|
2373
|
+
bindClickable: [{ type: core.HostBinding, args: ['class.mat-clickable',] }],
|
2374
|
+
bingSortable: [{ type: core.HostBinding, args: ['class.mat-sortable',] }],
|
2375
|
+
bindActive: [{ type: core.HostBinding, args: ['class.mat-active',] }],
|
2376
|
+
bindNumeric: [{ type: core.HostBinding, args: ['class.mat-numeric',] }],
|
2377
|
+
handleClick: [{ type: core.HostListener, args: ['click',] }]
|
2378
|
+
};
|
2649
2379
|
if (false) {
|
2650
2380
|
/**
|
2651
2381
|
* @type {?}
|
@@ -2707,9 +2437,14 @@
|
|
2707
2437
|
|
2708
2438
|
/**
|
2709
2439
|
* @fileoverview added by tsickle
|
2710
|
-
*
|
2440
|
+
* Generated from: data-table-cell/data-table-cell.component.ts
|
2441
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2711
2442
|
*/
|
2712
2443
|
var TdDataTableCellComponent = /** @class */ (function () {
|
2444
|
+
/**
|
2445
|
+
* @param {?} _elementRef
|
2446
|
+
* @param {?} _renderer
|
2447
|
+
*/
|
2713
2448
|
function TdDataTableCellComponent(_elementRef, _renderer) {
|
2714
2449
|
this._elementRef = _elementRef;
|
2715
2450
|
this._renderer = _renderer;
|
@@ -2722,60 +2457,55 @@
|
|
2722
2457
|
this._renderer.addClass(this._elementRef.nativeElement, 'td-data-table-cell');
|
2723
2458
|
}
|
2724
2459
|
Object.defineProperty(TdDataTableCellComponent.prototype, "align", {
|
2725
|
-
|
2460
|
+
/**
|
2726
2461
|
* @return {?}
|
2727
2462
|
*/
|
2728
|
-
function () {
|
2463
|
+
get: function () {
|
2729
2464
|
return this._align;
|
2730
2465
|
},
|
2731
2466
|
/**
|
2732
|
-
* align?: 'start' | 'center' | 'end'
|
2733
|
-
* Makes cell content align on demand
|
2734
|
-
* Defaults to 'left', overrides numeric
|
2735
|
-
*/
|
2736
|
-
set: /**
|
2737
2467
|
* align?: 'start' | 'center' | 'end'
|
2738
2468
|
* Makes cell content align on demand
|
2739
2469
|
* Defaults to 'left', overrides numeric
|
2740
2470
|
* @param {?} align
|
2741
2471
|
* @return {?}
|
2742
2472
|
*/
|
2743
|
-
function (align) {
|
2473
|
+
set: function (align) {
|
2744
2474
|
this._align = align;
|
2745
2475
|
},
|
2746
|
-
enumerable:
|
2476
|
+
enumerable: false,
|
2747
2477
|
configurable: true
|
2748
2478
|
});
|
2749
2479
|
Object.defineProperty(TdDataTableCellComponent.prototype, "bindNumeric", {
|
2750
|
-
|
2480
|
+
/**
|
2751
2481
|
* @return {?}
|
2752
2482
|
*/
|
2753
|
-
function () {
|
2483
|
+
get: function () {
|
2754
2484
|
return this.numeric;
|
2755
2485
|
},
|
2756
|
-
enumerable:
|
2486
|
+
enumerable: false,
|
2757
2487
|
configurable: true
|
2758
2488
|
});
|
2759
|
-
TdDataTableCellComponent.decorators = [
|
2760
|
-
{ type: core.Component, args: [{
|
2761
|
-
/* tslint:disable-next-line */
|
2762
|
-
selector: 'td[td-data-table-cell]',
|
2763
|
-
template: "<div\n class=\"td-data-table-cell-content-wrapper\"\n [class.td-data-table-cell-numeric]=\"numeric\"\n [class.td-data-table-cell-align-center]=\"align === 'center'\"\n [class.td-data-table-cell-align-end]=\"align === 'end'\"\n [class.td-data-table-cell-align-start]=\"align === 'start'\"\n>\n <ng-content></ng-content>\n</div>\n",
|
2764
|
-
styles: [":host{vertical-align:middle;text-align:left;padding:0}html[dir=rtl] :host{text-align:right;unicode-bidi:embed}body[dir=rtl] :host{text-align:right;unicode-bidi:embed}[dir=rtl] :host{text-align:right;unicode-bidi:embed}:host bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>.td-data-table-cell-content-wrapper{padding:0 28px;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-ms-flex-pack:start;justify-content:flex-start}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-numeric{-ms-flex-pack:end;justify-content:flex-end}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-start{-ms-flex-pack:start;justify-content:flex-start}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-end{-ms-flex-pack:end;justify-content:flex-end}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-center{-ms-flex-pack:center;justify-content:center}:host:first-child>.td-data-table-cell-content-wrapper{padding-left:24px;padding-right:initial}html[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}body[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}:host:first-child>.td-data-table-cell-content-wrapper bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:first-child>.td-data-table-cell-content-wrapper bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:last-child>.td-data-table-cell-content-wrapper{padding-left:28px;padding-right:24px}html[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}body[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}:host:last-child>.td-data-table-cell-content-wrapper bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:last-child>.td-data-table-cell-content-wrapper bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>*{vertical-align:middle}:host.mat-clickable{cursor:pointer}:host.mat-clickable:focus{outline:0}:host.mat-numeric{text-align:right}html[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}:host.mat-numeric bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}"]
|
2765
|
-
}] }
|
2766
|
-
];
|
2767
|
-
/** @nocollapse */
|
2768
|
-
TdDataTableCellComponent.ctorParameters = function () { return [
|
2769
|
-
{ type: core.ElementRef },
|
2770
|
-
{ type: core.Renderer2 }
|
2771
|
-
]; };
|
2772
|
-
TdDataTableCellComponent.propDecorators = {
|
2773
|
-
numeric: [{ type: core.Input }],
|
2774
|
-
align: [{ type: core.Input }],
|
2775
|
-
bindNumeric: [{ type: core.HostBinding, args: ['class.mat-numeric',] }]
|
2776
|
-
};
|
2777
2489
|
return TdDataTableCellComponent;
|
2778
2490
|
}());
|
2491
|
+
TdDataTableCellComponent.decorators = [
|
2492
|
+
{ type: core.Component, args: [{
|
2493
|
+
/* tslint:disable-next-line */
|
2494
|
+
selector: 'td[td-data-table-cell]',
|
2495
|
+
template: "<div\n class=\"td-data-table-cell-content-wrapper\"\n [class.td-data-table-cell-numeric]=\"numeric\"\n [class.td-data-table-cell-align-center]=\"align === 'center'\"\n [class.td-data-table-cell-align-end]=\"align === 'end'\"\n [class.td-data-table-cell-align-start]=\"align === 'start'\"\n>\n <ng-content></ng-content>\n</div>\n",
|
2496
|
+
styles: [":host{padding:0;text-align:left;vertical-align:middle}html[dir=rtl] :host{text-align:right;unicode-bidi:embed}body[dir=rtl] :host{text-align:right;unicode-bidi:embed}[dir=rtl] :host{text-align:right;unicode-bidi:embed}:host bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>.td-data-table-cell-content-wrapper{-ms-flex-align:center;-ms-flex-direction:row;-ms-flex-line-pack:center;-ms-flex-pack:start;align-content:center;align-items:center;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row;justify-content:flex-start;max-width:100%;padding:0 28px}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-numeric{-ms-flex-pack:end;justify-content:flex-end}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-start{-ms-flex-pack:start;justify-content:flex-start}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-end{-ms-flex-pack:end;justify-content:flex-end}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-center{-ms-flex-pack:center;justify-content:center}:host:first-child>.td-data-table-cell-content-wrapper{padding-left:24px;padding-right:0}html[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:0}body[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:0}[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:0}html[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-right:24px;unicode-bidi:embed}body[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-right:24px;unicode-bidi:embed}[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-right:24px;unicode-bidi:embed}:host:first-child>.td-data-table-cell-content-wrapper bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:first-child>.td-data-table-cell-content-wrapper bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:last-child>.td-data-table-cell-content-wrapper{padding-left:28px;padding-right:24px}html[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px}body[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px}[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px}html[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-right:28px;unicode-bidi:embed}body[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-right:28px;unicode-bidi:embed}[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-right:28px;unicode-bidi:embed}:host:last-child>.td-data-table-cell-content-wrapper bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:last-child>.td-data-table-cell-content-wrapper bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>*{vertical-align:middle}:host.mat-clickable{cursor:pointer}:host.mat-clickable:focus{outline:none}:host.mat-numeric{text-align:right}html[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}:host.mat-numeric bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}"]
|
2497
|
+
}] }
|
2498
|
+
];
|
2499
|
+
/** @nocollapse */
|
2500
|
+
TdDataTableCellComponent.ctorParameters = function () { return [
|
2501
|
+
{ type: core.ElementRef },
|
2502
|
+
{ type: core.Renderer2 }
|
2503
|
+
]; };
|
2504
|
+
TdDataTableCellComponent.propDecorators = {
|
2505
|
+
numeric: [{ type: core.Input }],
|
2506
|
+
align: [{ type: core.Input }],
|
2507
|
+
bindNumeric: [{ type: core.HostBinding, args: ['class.mat-numeric',] }]
|
2508
|
+
};
|
2779
2509
|
if (false) {
|
2780
2510
|
/**
|
2781
2511
|
* @type {?}
|
@@ -2803,29 +2533,34 @@
|
|
2803
2533
|
|
2804
2534
|
/**
|
2805
2535
|
* @fileoverview added by tsickle
|
2806
|
-
*
|
2536
|
+
* Generated from: data-table-table/data-table-table.component.ts
|
2537
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2807
2538
|
*/
|
2808
2539
|
var TdDataTableTableComponent = /** @class */ (function () {
|
2540
|
+
/**
|
2541
|
+
* @param {?} _elementRef
|
2542
|
+
* @param {?} _renderer
|
2543
|
+
*/
|
2809
2544
|
function TdDataTableTableComponent(_elementRef, _renderer) {
|
2810
2545
|
this._elementRef = _elementRef;
|
2811
2546
|
this._renderer = _renderer;
|
2812
2547
|
this._renderer.addClass(this._elementRef.nativeElement, 'td-data-table');
|
2813
2548
|
}
|
2814
|
-
TdDataTableTableComponent.decorators = [
|
2815
|
-
{ type: core.Component, args: [{
|
2816
|
-
/* tslint:disable-next-line */
|
2817
|
-
selector: 'table[td-data-table]',
|
2818
|
-
template: "<ng-content></ng-content>\n",
|
2819
|
-
styles: [":host{width:100%;position:relative;border-spacing:0;overflow:hidden;border-collapse:collapse}"]
|
2820
|
-
}] }
|
2821
|
-
];
|
2822
|
-
/** @nocollapse */
|
2823
|
-
TdDataTableTableComponent.ctorParameters = function () { return [
|
2824
|
-
{ type: core.ElementRef },
|
2825
|
-
{ type: core.Renderer2 }
|
2826
|
-
]; };
|
2827
2549
|
return TdDataTableTableComponent;
|
2828
2550
|
}());
|
2551
|
+
TdDataTableTableComponent.decorators = [
|
2552
|
+
{ type: core.Component, args: [{
|
2553
|
+
/* tslint:disable-next-line */
|
2554
|
+
selector: 'table[td-data-table]',
|
2555
|
+
template: "<ng-content></ng-content>\n",
|
2556
|
+
styles: [":host{border-collapse:collapse;border-spacing:0;overflow:hidden;position:relative;width:100%}"]
|
2557
|
+
}] }
|
2558
|
+
];
|
2559
|
+
/** @nocollapse */
|
2560
|
+
TdDataTableTableComponent.ctorParameters = function () { return [
|
2561
|
+
{ type: core.ElementRef },
|
2562
|
+
{ type: core.Renderer2 }
|
2563
|
+
]; };
|
2829
2564
|
if (false) {
|
2830
2565
|
/**
|
2831
2566
|
* @type {?}
|
@@ -2841,20 +2576,12 @@
|
|
2841
2576
|
|
2842
2577
|
/**
|
2843
2578
|
* @fileoverview added by tsickle
|
2844
|
-
*
|
2579
|
+
* Generated from: services/data-table.service.ts
|
2580
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2845
2581
|
*/
|
2846
2582
|
var TdDataTableService = /** @class */ (function () {
|
2847
2583
|
function TdDataTableService() {
|
2848
2584
|
}
|
2849
|
-
/**
|
2850
|
-
* params:
|
2851
|
-
* - data: any[]
|
2852
|
-
* - searchTerm: string
|
2853
|
-
* - ignoreCase: boolean = false
|
2854
|
-
* - excludedColumns: string[] = []
|
2855
|
-
*
|
2856
|
-
* Searches [data] parameter for [searchTerm] matches and returns a new array with them.
|
2857
|
-
*/
|
2858
2585
|
/**
|
2859
2586
|
* params:
|
2860
2587
|
* - data: any[]
|
@@ -2869,36 +2596,20 @@
|
|
2869
2596
|
* @param {?=} excludedColumns
|
2870
2597
|
* @return {?}
|
2871
2598
|
*/
|
2872
|
-
TdDataTableService.prototype.filterData =
|
2873
|
-
* params:
|
2874
|
-
* - data: any[]
|
2875
|
-
* - searchTerm: string
|
2876
|
-
* - ignoreCase: boolean = false
|
2877
|
-
* - excludedColumns: string[] = []
|
2878
|
-
*
|
2879
|
-
* Searches [data] parameter for [searchTerm] matches and returns a new array with them.
|
2880
|
-
* @param {?} data
|
2881
|
-
* @param {?} searchTerm
|
2882
|
-
* @param {?=} ignoreCase
|
2883
|
-
* @param {?=} excludedColumns
|
2884
|
-
* @return {?}
|
2885
|
-
*/
|
2886
|
-
function (data, searchTerm, ignoreCase, excludedColumns) {
|
2599
|
+
TdDataTableService.prototype.filterData = function (data, searchTerm, ignoreCase, excludedColumns) {
|
2887
2600
|
if (ignoreCase === void 0) { ignoreCase = false; }
|
2888
2601
|
/** @type {?} */
|
2889
2602
|
var filter = searchTerm ? (ignoreCase ? searchTerm.toLowerCase() : searchTerm) : '';
|
2890
2603
|
if (filter) {
|
2891
|
-
data = data.filter((/**
|
2604
|
+
data = data.filter(( /**
|
2892
2605
|
* @param {?} item
|
2893
2606
|
* @return {?}
|
2894
|
-
*/
|
2895
|
-
function (item) {
|
2607
|
+
*/function (item) {
|
2896
2608
|
/** @type {?} */
|
2897
|
-
var res = Object.keys(item).find((/**
|
2609
|
+
var res = Object.keys(item).find(( /**
|
2898
2610
|
* @param {?} key
|
2899
2611
|
* @return {?}
|
2900
|
-
*/
|
2901
|
-
function (key) {
|
2612
|
+
*/function (key) {
|
2902
2613
|
if (!excludedColumns || excludedColumns.indexOf(key) === -1) {
|
2903
2614
|
/** @type {?} */
|
2904
2615
|
var preItemValue = '' + item[key];
|
@@ -2913,26 +2624,6 @@
|
|
2913
2624
|
return data;
|
2914
2625
|
};
|
2915
2626
|
/**
|
2916
|
-
* params:
|
2917
|
-
* - data: any[]
|
2918
|
-
* - sortBy: string
|
2919
|
-
* - sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending
|
2920
|
-
*
|
2921
|
-
* Sorts [data] parameter by [sortBy] and [sortOrder] and returns the sorted data.
|
2922
|
-
*/
|
2923
|
-
/**
|
2924
|
-
* params:
|
2925
|
-
* - data: any[]
|
2926
|
-
* - sortBy: string
|
2927
|
-
* - sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Ascending
|
2928
|
-
*
|
2929
|
-
* Sorts [data] parameter by [sortBy] and [sortOrder] and returns the sorted data.
|
2930
|
-
* @param {?} data
|
2931
|
-
* @param {?} sortBy
|
2932
|
-
* @param {?=} sortOrder
|
2933
|
-
* @return {?}
|
2934
|
-
*/
|
2935
|
-
TdDataTableService.prototype.sortData = /**
|
2936
2627
|
* params:
|
2937
2628
|
* - data: any[]
|
2938
2629
|
* - sortBy: string
|
@@ -2944,16 +2635,15 @@
|
|
2944
2635
|
* @param {?=} sortOrder
|
2945
2636
|
* @return {?}
|
2946
2637
|
*/
|
2947
|
-
function (data, sortBy, sortOrder) {
|
2638
|
+
TdDataTableService.prototype.sortData = function (data, sortBy, sortOrder) {
|
2948
2639
|
if (sortOrder === void 0) { sortOrder = TdDataTableSortingOrder.Ascending; }
|
2949
2640
|
if (sortBy) {
|
2950
2641
|
data = Array.from(data); // Change the array reference to trigger OnPush and not mutate original array
|
2951
|
-
data.sort((/**
|
2642
|
+
data.sort(( /**
|
2952
2643
|
* @param {?} a
|
2953
2644
|
* @param {?} b
|
2954
2645
|
* @return {?}
|
2955
|
-
*/
|
2956
|
-
function (a, b) {
|
2646
|
+
*/function (a, b) {
|
2957
2647
|
/** @type {?} */
|
2958
2648
|
var compA = a[sortBy];
|
2959
2649
|
/** @type {?} */
|
@@ -2976,14 +2666,6 @@
|
|
2976
2666
|
}
|
2977
2667
|
return data;
|
2978
2668
|
};
|
2979
|
-
/**
|
2980
|
-
* params:
|
2981
|
-
* - data: any[]
|
2982
|
-
* - fromRow: number
|
2983
|
-
* - toRow: : number
|
2984
|
-
*
|
2985
|
-
* Returns a section of the [data] parameter starting from [fromRow] and ending in [toRow].
|
2986
|
-
*/
|
2987
2669
|
/**
|
2988
2670
|
* params:
|
2989
2671
|
* - data: any[]
|
@@ -2996,33 +2678,22 @@
|
|
2996
2678
|
* @param {?} toRow
|
2997
2679
|
* @return {?}
|
2998
2680
|
*/
|
2999
|
-
TdDataTableService.prototype.pageData =
|
3000
|
-
* params:
|
3001
|
-
* - data: any[]
|
3002
|
-
* - fromRow: number
|
3003
|
-
* - toRow: : number
|
3004
|
-
*
|
3005
|
-
* Returns a section of the [data] parameter starting from [fromRow] and ending in [toRow].
|
3006
|
-
* @param {?} data
|
3007
|
-
* @param {?} fromRow
|
3008
|
-
* @param {?} toRow
|
3009
|
-
* @return {?}
|
3010
|
-
*/
|
3011
|
-
function (data, fromRow, toRow) {
|
2681
|
+
TdDataTableService.prototype.pageData = function (data, fromRow, toRow) {
|
3012
2682
|
if (fromRow >= 1) {
|
3013
2683
|
data = data.slice(fromRow - 1, toRow);
|
3014
2684
|
}
|
3015
2685
|
return data;
|
3016
2686
|
};
|
3017
|
-
TdDataTableService.decorators = [
|
3018
|
-
{ type: core.Injectable }
|
3019
|
-
];
|
3020
2687
|
return TdDataTableService;
|
3021
2688
|
}());
|
2689
|
+
TdDataTableService.decorators = [
|
2690
|
+
{ type: core.Injectable }
|
2691
|
+
];
|
3022
2692
|
|
3023
2693
|
/**
|
3024
2694
|
* @fileoverview added by tsickle
|
3025
|
-
*
|
2695
|
+
* Generated from: data-table.module.ts
|
2696
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
3026
2697
|
*/
|
3027
2698
|
/** @type {?} */
|
3028
2699
|
var TD_DATA_TABLE = [
|
@@ -3037,16 +2708,34 @@
|
|
3037
2708
|
var CovalentDataTableModule = /** @class */ (function () {
|
3038
2709
|
function CovalentDataTableModule() {
|
3039
2710
|
}
|
3040
|
-
CovalentDataTableModule.decorators = [
|
3041
|
-
{ type: core.NgModule, args: [{
|
3042
|
-
imports: [common.CommonModule, checkbox.MatCheckboxModule, tooltip.MatTooltipModule, icon.MatIconModule, core$1.MatPseudoCheckboxModule],
|
3043
|
-
declarations: [TD_DATA_TABLE],
|
3044
|
-
exports: [TD_DATA_TABLE],
|
3045
|
-
providers: [TdDataTableService],
|
3046
|
-
},] }
|
3047
|
-
];
|
3048
2711
|
return CovalentDataTableModule;
|
3049
2712
|
}());
|
2713
|
+
CovalentDataTableModule.decorators = [
|
2714
|
+
{ type: core.NgModule, args: [{
|
2715
|
+
imports: [common$1.CommonModule, checkbox.MatCheckboxModule, tooltip.MatTooltipModule, icon.MatIconModule, core$1.MatPseudoCheckboxModule],
|
2716
|
+
declarations: [TD_DATA_TABLE],
|
2717
|
+
exports: [TD_DATA_TABLE],
|
2718
|
+
providers: [TdDataTableService],
|
2719
|
+
},] }
|
2720
|
+
];
|
2721
|
+
|
2722
|
+
/**
|
2723
|
+
* @fileoverview added by tsickle
|
2724
|
+
* Generated from: public-api.ts
|
2725
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2726
|
+
*/
|
2727
|
+
|
2728
|
+
/**
|
2729
|
+
* @fileoverview added by tsickle
|
2730
|
+
* Generated from: index.ts
|
2731
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2732
|
+
*/
|
2733
|
+
|
2734
|
+
/**
|
2735
|
+
* @fileoverview added by tsickle
|
2736
|
+
* Generated from: covalent-core-data-table.ts
|
2737
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2738
|
+
*/
|
3050
2739
|
|
3051
2740
|
exports.CovalentDataTableModule = CovalentDataTableModule;
|
3052
2741
|
exports.TdDataTableBase = TdDataTableBase;
|