@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,1189 +0,0 @@
|
|
1
|
-
import { Directive, Component, ContentChildren, ViewChild, Injectable, Inject, RendererFactory2, EventEmitter, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
|
2
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
3
|
-
import { FormsModule } from '@angular/forms';
|
4
|
-
import { MatDialogRef, MatDialogConfig, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
5
|
-
import { MatInputModule } from '@angular/material/input';
|
6
|
-
import { MatButtonModule } from '@angular/material/button';
|
7
|
-
import { __spread } from 'tslib';
|
8
|
-
import { DragDrop } from '@angular/cdk/drag-drop';
|
9
|
-
import { Subject, fromEvent, merge } from 'rxjs';
|
10
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
11
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
12
|
-
import { MatIconModule } from '@angular/material/icon';
|
13
|
-
|
14
|
-
/**
|
15
|
-
* @fileoverview added by tsickle
|
16
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
17
|
-
*/
|
18
|
-
var TdDialogTitleDirective = /** @class */ (function () {
|
19
|
-
function TdDialogTitleDirective() {
|
20
|
-
}
|
21
|
-
TdDialogTitleDirective.decorators = [
|
22
|
-
{ type: Directive, args: [{ selector: 'td-dialog-title' },] }
|
23
|
-
];
|
24
|
-
return TdDialogTitleDirective;
|
25
|
-
}());
|
26
|
-
var TdDialogContentDirective = /** @class */ (function () {
|
27
|
-
function TdDialogContentDirective() {
|
28
|
-
}
|
29
|
-
TdDialogContentDirective.decorators = [
|
30
|
-
{ type: Directive, args: [{ selector: 'td-dialog-content' },] }
|
31
|
-
];
|
32
|
-
return TdDialogContentDirective;
|
33
|
-
}());
|
34
|
-
var TdDialogActionsDirective = /** @class */ (function () {
|
35
|
-
function TdDialogActionsDirective() {
|
36
|
-
}
|
37
|
-
TdDialogActionsDirective.decorators = [
|
38
|
-
{ type: Directive, args: [{ selector: 'td-dialog-actions' },] }
|
39
|
-
];
|
40
|
-
return TdDialogActionsDirective;
|
41
|
-
}());
|
42
|
-
var TdDialogComponent = /** @class */ (function () {
|
43
|
-
function TdDialogComponent() {
|
44
|
-
}
|
45
|
-
/**
|
46
|
-
* @return {?}
|
47
|
-
*/
|
48
|
-
TdDialogComponent.prototype.ngAfterContentInit = /**
|
49
|
-
* @return {?}
|
50
|
-
*/
|
51
|
-
function () {
|
52
|
-
if (this.dialogTitle.length > 1) {
|
53
|
-
throw new Error('Duplicate td-dialog-title component at in td-dialog.');
|
54
|
-
}
|
55
|
-
if (this.dialogContent.length > 1) {
|
56
|
-
throw new Error('Duplicate td-dialog-content component at in td-dialog.');
|
57
|
-
}
|
58
|
-
if (this.dialogActions.length > 1) {
|
59
|
-
throw new Error('Duplicate td-dialog-actions component at in td-dialog.');
|
60
|
-
}
|
61
|
-
};
|
62
|
-
TdDialogComponent.decorators = [
|
63
|
-
{ type: Component, args: [{
|
64
|
-
selector: 'td-dialog',
|
65
|
-
template: "<div class=\"td-dialog-wrapper\">\n <h3 class=\"td-dialog-title\" *ngIf=\"dialogTitle.length > 0\">\n <ng-content select=\"td-dialog-title\"></ng-content>\n </h3>\n <div class=\"td-dialog-content\" *ngIf=\"dialogContent.length > 0\">\n <ng-content select=\"td-dialog-content\"></ng-content>\n </div>\n <div class=\"td-dialog-actions\" *ngIf=\"dialogActions.length > 0\">\n <span class=\"td-dialog-spacer\"></span>\n <ng-content select=\"td-dialog-actions\"></ng-content>\n </div>\n</div>\n",
|
66
|
-
styles: [".td-dialog-title{margin-top:0;margin-bottom:20px}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{position:relative;top:16px;left:16px}::ng-deep [dir=rtl] .td-dialog-actions{right:16px;left:auto}:host{display:block}:host .td-dialog-actions{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}:host .td-dialog-actions .td-dialog-spacer{-ms-flex:1;flex:1}:host .td-dialog-actions ::ng-deep button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-right:8px;margin-left:inherit}"]
|
67
|
-
}] }
|
68
|
-
];
|
69
|
-
TdDialogComponent.propDecorators = {
|
70
|
-
dialogTitle: [{ type: ContentChildren, args: [TdDialogTitleDirective, { descendants: true },] }],
|
71
|
-
dialogContent: [{ type: ContentChildren, args: [TdDialogContentDirective, { descendants: true },] }],
|
72
|
-
dialogActions: [{ type: ContentChildren, args: [TdDialogActionsDirective, { descendants: true },] }]
|
73
|
-
};
|
74
|
-
return TdDialogComponent;
|
75
|
-
}());
|
76
|
-
if (false) {
|
77
|
-
/** @type {?} */
|
78
|
-
TdDialogComponent.prototype.dialogTitle;
|
79
|
-
/** @type {?} */
|
80
|
-
TdDialogComponent.prototype.dialogContent;
|
81
|
-
/** @type {?} */
|
82
|
-
TdDialogComponent.prototype.dialogActions;
|
83
|
-
}
|
84
|
-
|
85
|
-
/**
|
86
|
-
* @fileoverview added by tsickle
|
87
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
88
|
-
*/
|
89
|
-
var TdAlertDialogComponent = /** @class */ (function () {
|
90
|
-
function TdAlertDialogComponent(_dialogRef) {
|
91
|
-
this._dialogRef = _dialogRef;
|
92
|
-
this.closeButton = 'CLOSE';
|
93
|
-
}
|
94
|
-
/**
|
95
|
-
* @return {?}
|
96
|
-
*/
|
97
|
-
TdAlertDialogComponent.prototype.close = /**
|
98
|
-
* @return {?}
|
99
|
-
*/
|
100
|
-
function () {
|
101
|
-
this._dialogRef.close();
|
102
|
-
};
|
103
|
-
TdAlertDialogComponent.decorators = [
|
104
|
-
{ type: Component, args: [{
|
105
|
-
selector: 'td-alert-dialog',
|
106
|
-
template: "<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button color=\"accent\" (click)=\"close()\">{{ closeButton }}</button>\n </td-dialog-actions>\n</td-dialog>\n",
|
107
|
-
styles: [".td-dialog-message{word-break:break-word}"]
|
108
|
-
}] }
|
109
|
-
];
|
110
|
-
/** @nocollapse */
|
111
|
-
TdAlertDialogComponent.ctorParameters = function () { return [
|
112
|
-
{ type: MatDialogRef }
|
113
|
-
]; };
|
114
|
-
return TdAlertDialogComponent;
|
115
|
-
}());
|
116
|
-
if (false) {
|
117
|
-
/** @type {?} */
|
118
|
-
TdAlertDialogComponent.prototype.title;
|
119
|
-
/** @type {?} */
|
120
|
-
TdAlertDialogComponent.prototype.message;
|
121
|
-
/** @type {?} */
|
122
|
-
TdAlertDialogComponent.prototype.closeButton;
|
123
|
-
/**
|
124
|
-
* @type {?}
|
125
|
-
* @private
|
126
|
-
*/
|
127
|
-
TdAlertDialogComponent.prototype._dialogRef;
|
128
|
-
}
|
129
|
-
|
130
|
-
/**
|
131
|
-
* @fileoverview added by tsickle
|
132
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
133
|
-
*/
|
134
|
-
var TdConfirmDialogComponent = /** @class */ (function () {
|
135
|
-
function TdConfirmDialogComponent(_dialogRef) {
|
136
|
-
this._dialogRef = _dialogRef;
|
137
|
-
this.cancelButton = 'CANCEL';
|
138
|
-
this.acceptButton = 'ACCEPT';
|
139
|
-
this.isDestructive = false;
|
140
|
-
}
|
141
|
-
/**
|
142
|
-
* @return {?}
|
143
|
-
*/
|
144
|
-
TdConfirmDialogComponent.prototype.cancel = /**
|
145
|
-
* @return {?}
|
146
|
-
*/
|
147
|
-
function () {
|
148
|
-
this._dialogRef.close(false);
|
149
|
-
};
|
150
|
-
/**
|
151
|
-
* @return {?}
|
152
|
-
*/
|
153
|
-
TdConfirmDialogComponent.prototype.accept = /**
|
154
|
-
* @return {?}
|
155
|
-
*/
|
156
|
-
function () {
|
157
|
-
this._dialogRef.close(true);
|
158
|
-
};
|
159
|
-
TdConfirmDialogComponent.decorators = [
|
160
|
-
{ type: Component, args: [{
|
161
|
-
selector: 'td-confirm-dialog',
|
162
|
-
template: "<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button #closeBtn (keydown.arrowright)=\"acceptBtn.focus()\" (click)=\"cancel()\">{{ cancelButton }}</button>\n <button\n mat-button\n [color]=\"isDestructive ? 'warn' : 'accent'\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </td-dialog-actions>\n</td-dialog>\n",
|
163
|
-
styles: [".td-dialog-message{word-break:break-word}"]
|
164
|
-
}] }
|
165
|
-
];
|
166
|
-
/** @nocollapse */
|
167
|
-
TdConfirmDialogComponent.ctorParameters = function () { return [
|
168
|
-
{ type: MatDialogRef }
|
169
|
-
]; };
|
170
|
-
return TdConfirmDialogComponent;
|
171
|
-
}());
|
172
|
-
if (false) {
|
173
|
-
/** @type {?} */
|
174
|
-
TdConfirmDialogComponent.prototype.title;
|
175
|
-
/** @type {?} */
|
176
|
-
TdConfirmDialogComponent.prototype.message;
|
177
|
-
/** @type {?} */
|
178
|
-
TdConfirmDialogComponent.prototype.cancelButton;
|
179
|
-
/** @type {?} */
|
180
|
-
TdConfirmDialogComponent.prototype.acceptButton;
|
181
|
-
/** @type {?} */
|
182
|
-
TdConfirmDialogComponent.prototype.isDestructive;
|
183
|
-
/**
|
184
|
-
* @type {?}
|
185
|
-
* @private
|
186
|
-
*/
|
187
|
-
TdConfirmDialogComponent.prototype._dialogRef;
|
188
|
-
}
|
189
|
-
|
190
|
-
/**
|
191
|
-
* @fileoverview added by tsickle
|
192
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
193
|
-
*/
|
194
|
-
var TdPromptDialogComponent = /** @class */ (function () {
|
195
|
-
function TdPromptDialogComponent(_dialogRef) {
|
196
|
-
this._dialogRef = _dialogRef;
|
197
|
-
this.cancelButton = 'CANCEL';
|
198
|
-
this.acceptButton = 'ACCEPT';
|
199
|
-
}
|
200
|
-
/**
|
201
|
-
* @return {?}
|
202
|
-
*/
|
203
|
-
TdPromptDialogComponent.prototype.ngAfterViewInit = /**
|
204
|
-
* @return {?}
|
205
|
-
*/
|
206
|
-
function () {
|
207
|
-
var _this = this;
|
208
|
-
// focus input once everything is rendered and good to go
|
209
|
-
Promise.resolve().then((/**
|
210
|
-
* @return {?}
|
211
|
-
*/
|
212
|
-
function () {
|
213
|
-
((/** @type {?} */ (_this._input.nativeElement))).focus();
|
214
|
-
}));
|
215
|
-
};
|
216
|
-
/**
|
217
|
-
* Method executed when input is focused
|
218
|
-
* Selects all text
|
219
|
-
*/
|
220
|
-
/**
|
221
|
-
* Method executed when input is focused
|
222
|
-
* Selects all text
|
223
|
-
* @return {?}
|
224
|
-
*/
|
225
|
-
TdPromptDialogComponent.prototype.handleInputFocus = /**
|
226
|
-
* Method executed when input is focused
|
227
|
-
* Selects all text
|
228
|
-
* @return {?}
|
229
|
-
*/
|
230
|
-
function () {
|
231
|
-
((/** @type {?} */ (this._input.nativeElement))).select();
|
232
|
-
};
|
233
|
-
/**
|
234
|
-
* @return {?}
|
235
|
-
*/
|
236
|
-
TdPromptDialogComponent.prototype.cancel = /**
|
237
|
-
* @return {?}
|
238
|
-
*/
|
239
|
-
function () {
|
240
|
-
this._dialogRef.close();
|
241
|
-
};
|
242
|
-
/**
|
243
|
-
* @return {?}
|
244
|
-
*/
|
245
|
-
TdPromptDialogComponent.prototype.accept = /**
|
246
|
-
* @return {?}
|
247
|
-
*/
|
248
|
-
function () {
|
249
|
-
this._dialogRef.close(this.value);
|
250
|
-
};
|
251
|
-
TdPromptDialogComponent.decorators = [
|
252
|
-
{ type: Component, args: [{
|
253
|
-
selector: 'td-prompt-dialog',
|
254
|
-
template: "<td-dialog>\n <td-dialog-title *ngIf=\"title\">\n {{ title }}\n </td-dialog-title>\n <td-dialog-content>\n <span class=\"td-dialog-message\">{{ message }}</span>\n <form #form=\"ngForm\" novalidate>\n <div class=\"td-dialog-input-wrapper\">\n <mat-form-field class=\"td-dialog-input\">\n <input\n matInput\n #input\n (focus)=\"handleInputFocus()\"\n (keydown.enter)=\"$event.preventDefault(); form.valid && accept()\"\n [(ngModel)]=\"value\"\n name=\"value\"\n required\n />\n </mat-form-field>\n </div>\n </form>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button #closeBtn (keydown.arrowright)=\"acceptBtn.focus()\" (click)=\"cancel()\">{{ cancelButton }}</button>\n <button\n mat-button\n color=\"accent\"\n #acceptBtn\n (keydown.arrowleft)=\"closeBtn.focus()\"\n [disabled]=\"!form.valid\"\n (click)=\"accept()\"\n >\n {{ acceptButton }}\n </button>\n </td-dialog-actions>\n</td-dialog>\n",
|
255
|
-
styles: [".td-dialog-input-wrapper{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}.td-dialog-input-wrapper .td-dialog-input{-ms-flex:1;flex:1;box-sizing:border-box}.td-dialog-message{word-break:break-word}"]
|
256
|
-
}] }
|
257
|
-
];
|
258
|
-
/** @nocollapse */
|
259
|
-
TdPromptDialogComponent.ctorParameters = function () { return [
|
260
|
-
{ type: MatDialogRef }
|
261
|
-
]; };
|
262
|
-
TdPromptDialogComponent.propDecorators = {
|
263
|
-
_input: [{ type: ViewChild, args: ['input', { static: true },] }]
|
264
|
-
};
|
265
|
-
return TdPromptDialogComponent;
|
266
|
-
}());
|
267
|
-
if (false) {
|
268
|
-
/** @type {?} */
|
269
|
-
TdPromptDialogComponent.prototype.title;
|
270
|
-
/** @type {?} */
|
271
|
-
TdPromptDialogComponent.prototype.message;
|
272
|
-
/** @type {?} */
|
273
|
-
TdPromptDialogComponent.prototype.value;
|
274
|
-
/** @type {?} */
|
275
|
-
TdPromptDialogComponent.prototype.cancelButton;
|
276
|
-
/** @type {?} */
|
277
|
-
TdPromptDialogComponent.prototype.acceptButton;
|
278
|
-
/** @type {?} */
|
279
|
-
TdPromptDialogComponent.prototype._input;
|
280
|
-
/**
|
281
|
-
* @type {?}
|
282
|
-
* @private
|
283
|
-
*/
|
284
|
-
TdPromptDialogComponent.prototype._dialogRef;
|
285
|
-
}
|
286
|
-
|
287
|
-
/**
|
288
|
-
* @fileoverview added by tsickle
|
289
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
290
|
-
*/
|
291
|
-
/**
|
292
|
-
* @record
|
293
|
-
*/
|
294
|
-
function IDialogConfig() { }
|
295
|
-
if (false) {
|
296
|
-
/** @type {?|undefined} */
|
297
|
-
IDialogConfig.prototype.title;
|
298
|
-
/** @type {?} */
|
299
|
-
IDialogConfig.prototype.message;
|
300
|
-
}
|
301
|
-
/**
|
302
|
-
* @record
|
303
|
-
*/
|
304
|
-
function IAlertConfig() { }
|
305
|
-
if (false) {
|
306
|
-
/** @type {?|undefined} */
|
307
|
-
IAlertConfig.prototype.closeButton;
|
308
|
-
}
|
309
|
-
/**
|
310
|
-
* @record
|
311
|
-
*/
|
312
|
-
function IConfirmConfig() { }
|
313
|
-
if (false) {
|
314
|
-
/** @type {?|undefined} */
|
315
|
-
IConfirmConfig.prototype.acceptButton;
|
316
|
-
/** @type {?|undefined} */
|
317
|
-
IConfirmConfig.prototype.cancelButton;
|
318
|
-
/** @type {?|undefined} */
|
319
|
-
IConfirmConfig.prototype.isDestructive;
|
320
|
-
}
|
321
|
-
/**
|
322
|
-
* @record
|
323
|
-
*/
|
324
|
-
function IPromptConfig() { }
|
325
|
-
if (false) {
|
326
|
-
/** @type {?|undefined} */
|
327
|
-
IPromptConfig.prototype.value;
|
328
|
-
}
|
329
|
-
/**
|
330
|
-
* @record
|
331
|
-
* @template T
|
332
|
-
*/
|
333
|
-
function IDraggableConfig() { }
|
334
|
-
if (false) {
|
335
|
-
/** @type {?} */
|
336
|
-
IDraggableConfig.prototype.component;
|
337
|
-
/** @type {?|undefined} */
|
338
|
-
IDraggableConfig.prototype.config;
|
339
|
-
/** @type {?|undefined} */
|
340
|
-
IDraggableConfig.prototype.dragHandleSelectors;
|
341
|
-
/** @type {?|undefined} */
|
342
|
-
IDraggableConfig.prototype.draggableClass;
|
343
|
-
}
|
344
|
-
/**
|
345
|
-
* @record
|
346
|
-
* @template T
|
347
|
-
*/
|
348
|
-
function IDraggableRefs() { }
|
349
|
-
if (false) {
|
350
|
-
/** @type {?} */
|
351
|
-
IDraggableRefs.prototype.matDialogRef;
|
352
|
-
/** @type {?} */
|
353
|
-
IDraggableRefs.prototype.dragRefSubject;
|
354
|
-
}
|
355
|
-
var TdDialogService = /** @class */ (function () {
|
356
|
-
function TdDialogService(_document, _dialogService, _dragDrop, rendererFactory) {
|
357
|
-
this._document = _document;
|
358
|
-
this._dialogService = _dialogService;
|
359
|
-
this._dragDrop = _dragDrop;
|
360
|
-
this.rendererFactory = rendererFactory;
|
361
|
-
this._renderer2 = rendererFactory.createRenderer(undefined, undefined);
|
362
|
-
}
|
363
|
-
/**
|
364
|
-
* params:
|
365
|
-
* - component: ComponentType<T>
|
366
|
-
* - config: MatDialogConfig
|
367
|
-
* Wrapper function over the open() method in MatDialog.
|
368
|
-
* Opens a modal dialog containing the given component.
|
369
|
-
*/
|
370
|
-
/**
|
371
|
-
* params:
|
372
|
-
* - component: ComponentType<T>
|
373
|
-
* - config: MatDialogConfig
|
374
|
-
* Wrapper function over the open() method in MatDialog.
|
375
|
-
* Opens a modal dialog containing the given component.
|
376
|
-
* @template T
|
377
|
-
* @param {?} component
|
378
|
-
* @param {?=} config
|
379
|
-
* @return {?}
|
380
|
-
*/
|
381
|
-
TdDialogService.prototype.open = /**
|
382
|
-
* params:
|
383
|
-
* - component: ComponentType<T>
|
384
|
-
* - config: MatDialogConfig
|
385
|
-
* Wrapper function over the open() method in MatDialog.
|
386
|
-
* Opens a modal dialog containing the given component.
|
387
|
-
* @template T
|
388
|
-
* @param {?} component
|
389
|
-
* @param {?=} config
|
390
|
-
* @return {?}
|
391
|
-
*/
|
392
|
-
function (component, config) {
|
393
|
-
return this._dialogService.open(component, config);
|
394
|
-
};
|
395
|
-
/**
|
396
|
-
* Wrapper function over the closeAll() method in MatDialog.
|
397
|
-
* Closes all of the currently-open dialogs.
|
398
|
-
*/
|
399
|
-
/**
|
400
|
-
* Wrapper function over the closeAll() method in MatDialog.
|
401
|
-
* Closes all of the currently-open dialogs.
|
402
|
-
* @return {?}
|
403
|
-
*/
|
404
|
-
TdDialogService.prototype.closeAll = /**
|
405
|
-
* Wrapper function over the closeAll() method in MatDialog.
|
406
|
-
* Closes all of the currently-open dialogs.
|
407
|
-
* @return {?}
|
408
|
-
*/
|
409
|
-
function () {
|
410
|
-
this._dialogService.closeAll();
|
411
|
-
};
|
412
|
-
/**
|
413
|
-
* params:
|
414
|
-
* - config: IAlertConfig {
|
415
|
-
* message: string;
|
416
|
-
* title?: string;
|
417
|
-
* viewContainerRef?: ViewContainerRef;
|
418
|
-
* closeButton?: string;
|
419
|
-
* }
|
420
|
-
*
|
421
|
-
* Opens an alert dialog with the provided config.
|
422
|
-
* Returns an MatDialogRef<TdAlertDialogComponent> object.
|
423
|
-
*/
|
424
|
-
/**
|
425
|
-
* params:
|
426
|
-
* - config: IAlertConfig {
|
427
|
-
* message: string;
|
428
|
-
* title?: string;
|
429
|
-
* viewContainerRef?: ViewContainerRef;
|
430
|
-
* closeButton?: string;
|
431
|
-
* }
|
432
|
-
*
|
433
|
-
* Opens an alert dialog with the provided config.
|
434
|
-
* Returns an MatDialogRef<TdAlertDialogComponent> object.
|
435
|
-
* @param {?} config
|
436
|
-
* @return {?}
|
437
|
-
*/
|
438
|
-
TdDialogService.prototype.openAlert = /**
|
439
|
-
* params:
|
440
|
-
* - config: IAlertConfig {
|
441
|
-
* message: string;
|
442
|
-
* title?: string;
|
443
|
-
* viewContainerRef?: ViewContainerRef;
|
444
|
-
* closeButton?: string;
|
445
|
-
* }
|
446
|
-
*
|
447
|
-
* Opens an alert dialog with the provided config.
|
448
|
-
* Returns an MatDialogRef<TdAlertDialogComponent> object.
|
449
|
-
* @param {?} config
|
450
|
-
* @return {?}
|
451
|
-
*/
|
452
|
-
function (config) {
|
453
|
-
/** @type {?} */
|
454
|
-
var dialogConfig = this._createConfig(config);
|
455
|
-
/** @type {?} */
|
456
|
-
var dialogRef = this._dialogService.open(TdAlertDialogComponent, dialogConfig);
|
457
|
-
/** @type {?} */
|
458
|
-
var alertDialogComponent = dialogRef.componentInstance;
|
459
|
-
alertDialogComponent.title = config.title;
|
460
|
-
alertDialogComponent.message = config.message;
|
461
|
-
if (config.closeButton) {
|
462
|
-
alertDialogComponent.closeButton = config.closeButton;
|
463
|
-
}
|
464
|
-
return dialogRef;
|
465
|
-
};
|
466
|
-
/**
|
467
|
-
* params:
|
468
|
-
* - config: IConfirmConfig {
|
469
|
-
* message: string;
|
470
|
-
* title?: string;
|
471
|
-
* viewContainerRef?: ViewContainerRef;
|
472
|
-
* acceptButton?: string;
|
473
|
-
* cancelButton?: string;
|
474
|
-
* isDestructive?: boolean;
|
475
|
-
* }
|
476
|
-
*
|
477
|
-
* Opens a confirm dialog with the provided config.
|
478
|
-
* Returns an MatDialogRef<TdConfirmDialogComponent> object.
|
479
|
-
*/
|
480
|
-
/**
|
481
|
-
* params:
|
482
|
-
* - config: IConfirmConfig {
|
483
|
-
* message: string;
|
484
|
-
* title?: string;
|
485
|
-
* viewContainerRef?: ViewContainerRef;
|
486
|
-
* acceptButton?: string;
|
487
|
-
* cancelButton?: string;
|
488
|
-
* isDestructive?: boolean;
|
489
|
-
* }
|
490
|
-
*
|
491
|
-
* Opens a confirm dialog with the provided config.
|
492
|
-
* Returns an MatDialogRef<TdConfirmDialogComponent> object.
|
493
|
-
* @param {?} config
|
494
|
-
* @return {?}
|
495
|
-
*/
|
496
|
-
TdDialogService.prototype.openConfirm = /**
|
497
|
-
* params:
|
498
|
-
* - config: IConfirmConfig {
|
499
|
-
* message: string;
|
500
|
-
* title?: string;
|
501
|
-
* viewContainerRef?: ViewContainerRef;
|
502
|
-
* acceptButton?: string;
|
503
|
-
* cancelButton?: string;
|
504
|
-
* isDestructive?: boolean;
|
505
|
-
* }
|
506
|
-
*
|
507
|
-
* Opens a confirm dialog with the provided config.
|
508
|
-
* Returns an MatDialogRef<TdConfirmDialogComponent> object.
|
509
|
-
* @param {?} config
|
510
|
-
* @return {?}
|
511
|
-
*/
|
512
|
-
function (config) {
|
513
|
-
/** @type {?} */
|
514
|
-
var dialogConfig = this._createConfig(config);
|
515
|
-
/** @type {?} */
|
516
|
-
var dialogRef = this._dialogService.open(TdConfirmDialogComponent, dialogConfig);
|
517
|
-
/** @type {?} */
|
518
|
-
var confirmDialogComponent = dialogRef.componentInstance;
|
519
|
-
confirmDialogComponent.title = config.title;
|
520
|
-
confirmDialogComponent.message = config.message;
|
521
|
-
if (config.acceptButton) {
|
522
|
-
confirmDialogComponent.acceptButton = config.acceptButton;
|
523
|
-
}
|
524
|
-
if (config.isDestructive) {
|
525
|
-
confirmDialogComponent.isDestructive = config.isDestructive;
|
526
|
-
}
|
527
|
-
if (config.cancelButton) {
|
528
|
-
confirmDialogComponent.cancelButton = config.cancelButton;
|
529
|
-
}
|
530
|
-
return dialogRef;
|
531
|
-
};
|
532
|
-
/**
|
533
|
-
* params:
|
534
|
-
* - config: IPromptConfig {
|
535
|
-
* message: string;
|
536
|
-
* title?: string;
|
537
|
-
* value?: string;
|
538
|
-
* viewContainerRef?: ViewContainerRef;
|
539
|
-
* acceptButton?: string;
|
540
|
-
* cancelButton?: string;
|
541
|
-
* }
|
542
|
-
*
|
543
|
-
* Opens a prompt dialog with the provided config.
|
544
|
-
* Returns an MatDialogRef<TdPromptDialogComponent> object.
|
545
|
-
*/
|
546
|
-
/**
|
547
|
-
* params:
|
548
|
-
* - config: IPromptConfig {
|
549
|
-
* message: string;
|
550
|
-
* title?: string;
|
551
|
-
* value?: string;
|
552
|
-
* viewContainerRef?: ViewContainerRef;
|
553
|
-
* acceptButton?: string;
|
554
|
-
* cancelButton?: string;
|
555
|
-
* }
|
556
|
-
*
|
557
|
-
* Opens a prompt dialog with the provided config.
|
558
|
-
* Returns an MatDialogRef<TdPromptDialogComponent> object.
|
559
|
-
* @param {?} config
|
560
|
-
* @return {?}
|
561
|
-
*/
|
562
|
-
TdDialogService.prototype.openPrompt = /**
|
563
|
-
* params:
|
564
|
-
* - config: IPromptConfig {
|
565
|
-
* message: string;
|
566
|
-
* title?: string;
|
567
|
-
* value?: string;
|
568
|
-
* viewContainerRef?: ViewContainerRef;
|
569
|
-
* acceptButton?: string;
|
570
|
-
* cancelButton?: string;
|
571
|
-
* }
|
572
|
-
*
|
573
|
-
* Opens a prompt dialog with the provided config.
|
574
|
-
* Returns an MatDialogRef<TdPromptDialogComponent> object.
|
575
|
-
* @param {?} config
|
576
|
-
* @return {?}
|
577
|
-
*/
|
578
|
-
function (config) {
|
579
|
-
/** @type {?} */
|
580
|
-
var dialogConfig = this._createConfig(config);
|
581
|
-
/** @type {?} */
|
582
|
-
var dialogRef = this._dialogService.open(TdPromptDialogComponent, dialogConfig);
|
583
|
-
/** @type {?} */
|
584
|
-
var promptDialogComponent = dialogRef.componentInstance;
|
585
|
-
promptDialogComponent.title = config.title;
|
586
|
-
promptDialogComponent.message = config.message;
|
587
|
-
promptDialogComponent.value = config.value;
|
588
|
-
if (config.acceptButton) {
|
589
|
-
promptDialogComponent.acceptButton = config.acceptButton;
|
590
|
-
}
|
591
|
-
if (config.cancelButton) {
|
592
|
-
promptDialogComponent.cancelButton = config.cancelButton;
|
593
|
-
}
|
594
|
-
return dialogRef;
|
595
|
-
};
|
596
|
-
/**
|
597
|
-
* Opens a draggable dialog containing the given component.
|
598
|
-
*/
|
599
|
-
/**
|
600
|
-
* Opens a draggable dialog containing the given component.
|
601
|
-
* @template T
|
602
|
-
* @param {?} __0
|
603
|
-
* @return {?}
|
604
|
-
*/
|
605
|
-
TdDialogService.prototype.openDraggable = /**
|
606
|
-
* Opens a draggable dialog containing the given component.
|
607
|
-
* @template T
|
608
|
-
* @param {?} __0
|
609
|
-
* @return {?}
|
610
|
-
*/
|
611
|
-
function (_a) {
|
612
|
-
var _this = this;
|
613
|
-
var component = _a.component, config = _a.config, dragHandleSelectors = _a.dragHandleSelectors, draggableClass = _a.draggableClass;
|
614
|
-
/** @type {?} */
|
615
|
-
var matDialogRef = this._dialogService.open(component, config);
|
616
|
-
/** @type {?} */
|
617
|
-
var dragRefSubject = new Subject();
|
618
|
-
/** @type {?} */
|
619
|
-
var CDK_OVERLAY_PANE_SELECTOR = '.cdk-overlay-pane';
|
620
|
-
/** @type {?} */
|
621
|
-
var CDK_OVERLAY_CONTAINER_SELECTOR = '.cdk-overlay-container';
|
622
|
-
matDialogRef.afterOpened().subscribe((/**
|
623
|
-
* @return {?}
|
624
|
-
*/
|
625
|
-
function () {
|
626
|
-
/** @type {?} */
|
627
|
-
var dialogElement = (/** @type {?} */ (_this._document.getElementById(matDialogRef.id)));
|
628
|
-
/** @type {?} */
|
629
|
-
var draggableElement = _this._dragDrop.createDrag(dialogElement);
|
630
|
-
if (draggableClass) {
|
631
|
-
/** @type {?} */
|
632
|
-
var childComponent = dialogElement.firstElementChild;
|
633
|
-
_this._renderer2.addClass(childComponent, draggableClass);
|
634
|
-
}
|
635
|
-
if (dragHandleSelectors && dragHandleSelectors.length) {
|
636
|
-
/** @type {?} */
|
637
|
-
var dragHandles = dragHandleSelectors.reduce((/**
|
638
|
-
* @param {?} acc
|
639
|
-
* @param {?} curr
|
640
|
-
* @return {?}
|
641
|
-
*/
|
642
|
-
function (acc, curr) { return __spread(acc, Array.from(dialogElement.querySelectorAll(curr))); }), []);
|
643
|
-
if (dragHandles.length > 0) {
|
644
|
-
draggableElement.withHandles((/** @type {?} */ (dragHandles)));
|
645
|
-
}
|
646
|
-
}
|
647
|
-
/** @type {?} */
|
648
|
-
var rootElement = dialogElement.closest(CDK_OVERLAY_PANE_SELECTOR);
|
649
|
-
if (rootElement) {
|
650
|
-
draggableElement.withRootElement((/** @type {?} */ (rootElement)));
|
651
|
-
}
|
652
|
-
/** @type {?} */
|
653
|
-
var boundaryElement = dialogElement.closest(CDK_OVERLAY_CONTAINER_SELECTOR);
|
654
|
-
if (boundaryElement) {
|
655
|
-
draggableElement.withBoundaryElement((/** @type {?} */ (boundaryElement)));
|
656
|
-
}
|
657
|
-
dragRefSubject.next(draggableElement);
|
658
|
-
}));
|
659
|
-
return { matDialogRef: matDialogRef, dragRefSubject: dragRefSubject };
|
660
|
-
};
|
661
|
-
/**
|
662
|
-
* @private
|
663
|
-
* @param {?} config
|
664
|
-
* @return {?}
|
665
|
-
*/
|
666
|
-
TdDialogService.prototype._createConfig = /**
|
667
|
-
* @private
|
668
|
-
* @param {?} config
|
669
|
-
* @return {?}
|
670
|
-
*/
|
671
|
-
function (config) {
|
672
|
-
/** @type {?} */
|
673
|
-
var dialogConfig = new MatDialogConfig();
|
674
|
-
dialogConfig.width = '400px';
|
675
|
-
Object.assign(dialogConfig, config);
|
676
|
-
return dialogConfig;
|
677
|
-
};
|
678
|
-
TdDialogService.decorators = [
|
679
|
-
{ type: Injectable }
|
680
|
-
];
|
681
|
-
/** @nocollapse */
|
682
|
-
TdDialogService.ctorParameters = function () { return [
|
683
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
684
|
-
{ type: MatDialog },
|
685
|
-
{ type: DragDrop },
|
686
|
-
{ type: RendererFactory2 }
|
687
|
-
]; };
|
688
|
-
return TdDialogService;
|
689
|
-
}());
|
690
|
-
if (false) {
|
691
|
-
/**
|
692
|
-
* @type {?}
|
693
|
-
* @private
|
694
|
-
*/
|
695
|
-
TdDialogService.prototype._renderer2;
|
696
|
-
/**
|
697
|
-
* @type {?}
|
698
|
-
* @private
|
699
|
-
*/
|
700
|
-
TdDialogService.prototype._document;
|
701
|
-
/**
|
702
|
-
* @type {?}
|
703
|
-
* @private
|
704
|
-
*/
|
705
|
-
TdDialogService.prototype._dialogService;
|
706
|
-
/**
|
707
|
-
* @type {?}
|
708
|
-
* @private
|
709
|
-
*/
|
710
|
-
TdDialogService.prototype._dragDrop;
|
711
|
-
/**
|
712
|
-
* @type {?}
|
713
|
-
* @private
|
714
|
-
*/
|
715
|
-
TdDialogService.prototype.rendererFactory;
|
716
|
-
}
|
717
|
-
|
718
|
-
/**
|
719
|
-
* @fileoverview added by tsickle
|
720
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
721
|
-
*/
|
722
|
-
var TdWindowDialogComponent = /** @class */ (function () {
|
723
|
-
function TdWindowDialogComponent() {
|
724
|
-
this.docked = false;
|
725
|
-
this.dockToggled = new EventEmitter();
|
726
|
-
this.closed = new EventEmitter();
|
727
|
-
this.toolbarHeight = 56;
|
728
|
-
}
|
729
|
-
/**
|
730
|
-
* @return {?}
|
731
|
-
*/
|
732
|
-
TdWindowDialogComponent.prototype.toggleDockedState = /**
|
733
|
-
* @return {?}
|
734
|
-
*/
|
735
|
-
function () {
|
736
|
-
this.dockToggled.emit(this.docked);
|
737
|
-
};
|
738
|
-
TdWindowDialogComponent.decorators = [
|
739
|
-
{ type: Component, args: [{
|
740
|
-
selector: 'td-window-dialog',
|
741
|
-
template: "<mat-toolbar\n [color]=\"toolbarColor\"\n class=\"td-window-dialog-toolbar\"\n [style.min-height.px]=\"toolbarHeight\"\n [style.cursor]=\"docked ? 'inherit' : 'move'\"\n>\n <mat-toolbar-row [style.height.px]=\"toolbarHeight\">\n <div layout=\"row\" layout-align=\"start center\" flex>\n <span class=\"mat-title td-window-dialog-title truncate\" flex>\n {{ title }}\n </span>\n <!-- TODO: Resizing a drag-and-drop element was not working so removed docking/undocking for now-->\n <!-- <button mat-icon-button [matTooltip]=\"toggleDockedStateLabel\" (click)=\"toggleDockedState()\">\n <mat-icon [attr.aria-label]=\"toggleDockedStateLabel\">\n {{ docked ? 'unfold_more' : 'unfold_less' }}\n </mat-icon>\n </button> -->\n\n <button\n mat-icon-button\n [matTooltip]=\"closeLabel\"\n (click)=\"closed.emit()\"\n class=\"td-window-dialog-close\"\n [attr.data-test]=\"'close-button'\"\n >\n <mat-icon [attr.aria-label]=\"closeLabel\">close</mat-icon>\n </button>\n </div>\n </mat-toolbar-row>\n</mat-toolbar>\n<ng-content></ng-content>\n",
|
742
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
743
|
-
styles: [":host{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.td-window-dialog-title{margin-bottom:0}.td-window-dialog-close{margin-right:-8px}::ng-deep .td-window-dialog .mat-dialog-container{padding:0}"]
|
744
|
-
}] }
|
745
|
-
];
|
746
|
-
TdWindowDialogComponent.propDecorators = {
|
747
|
-
toolbarColor: [{ type: Input }],
|
748
|
-
docked: [{ type: Input }],
|
749
|
-
title: [{ type: Input }],
|
750
|
-
toggleDockedStateLabel: [{ type: Input }],
|
751
|
-
closeLabel: [{ type: Input }],
|
752
|
-
dockToggled: [{ type: Output }],
|
753
|
-
closed: [{ type: Output }]
|
754
|
-
};
|
755
|
-
return TdWindowDialogComponent;
|
756
|
-
}());
|
757
|
-
if (false) {
|
758
|
-
/** @type {?} */
|
759
|
-
TdWindowDialogComponent.prototype.toolbarColor;
|
760
|
-
/** @type {?} */
|
761
|
-
TdWindowDialogComponent.prototype.docked;
|
762
|
-
/** @type {?} */
|
763
|
-
TdWindowDialogComponent.prototype.title;
|
764
|
-
/** @type {?} */
|
765
|
-
TdWindowDialogComponent.prototype.toggleDockedStateLabel;
|
766
|
-
/** @type {?} */
|
767
|
-
TdWindowDialogComponent.prototype.closeLabel;
|
768
|
-
/** @type {?} */
|
769
|
-
TdWindowDialogComponent.prototype.dockToggled;
|
770
|
-
/** @type {?} */
|
771
|
-
TdWindowDialogComponent.prototype.closed;
|
772
|
-
/** @type {?} */
|
773
|
-
TdWindowDialogComponent.prototype.toolbarHeight;
|
774
|
-
}
|
775
|
-
|
776
|
-
/**
|
777
|
-
* @fileoverview added by tsickle
|
778
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
779
|
-
*/
|
780
|
-
/** @type {?} */
|
781
|
-
var TD_DIALOGS = [
|
782
|
-
TdAlertDialogComponent,
|
783
|
-
TdConfirmDialogComponent,
|
784
|
-
TdPromptDialogComponent,
|
785
|
-
TdDialogComponent,
|
786
|
-
TdDialogTitleDirective,
|
787
|
-
TdDialogActionsDirective,
|
788
|
-
TdDialogContentDirective,
|
789
|
-
TdWindowDialogComponent,
|
790
|
-
];
|
791
|
-
/** @type {?} */
|
792
|
-
var TD_DIALOGS_ENTRY_COMPONENTS = [
|
793
|
-
TdAlertDialogComponent,
|
794
|
-
TdConfirmDialogComponent,
|
795
|
-
TdPromptDialogComponent,
|
796
|
-
];
|
797
|
-
var CovalentDialogsModule = /** @class */ (function () {
|
798
|
-
function CovalentDialogsModule() {
|
799
|
-
}
|
800
|
-
CovalentDialogsModule.decorators = [
|
801
|
-
{ type: NgModule, args: [{
|
802
|
-
imports: [
|
803
|
-
FormsModule,
|
804
|
-
CommonModule,
|
805
|
-
MatDialogModule,
|
806
|
-
MatInputModule,
|
807
|
-
MatButtonModule,
|
808
|
-
MatToolbarModule,
|
809
|
-
MatTooltipModule,
|
810
|
-
MatIconModule,
|
811
|
-
],
|
812
|
-
declarations: [TD_DIALOGS],
|
813
|
-
exports: [TD_DIALOGS],
|
814
|
-
providers: [TdDialogService],
|
815
|
-
},] }
|
816
|
-
];
|
817
|
-
return CovalentDialogsModule;
|
818
|
-
}());
|
819
|
-
|
820
|
-
/**
|
821
|
-
* @fileoverview added by tsickle
|
822
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
823
|
-
*/
|
824
|
-
/** @enum {string} */
|
825
|
-
var corners = {
|
826
|
-
topRight: 'topRight',
|
827
|
-
bottomRight: 'bottomRight',
|
828
|
-
bottomLeft: 'bottomLeft',
|
829
|
-
topLeft: 'topLeft',
|
830
|
-
};
|
831
|
-
/** @enum {string} */
|
832
|
-
var cursors = {
|
833
|
-
nesw: 'nesw-resize',
|
834
|
-
nwse: 'nwse-resize',
|
835
|
-
};
|
836
|
-
/** @enum {string} */
|
837
|
-
var verticalAlignment = {
|
838
|
-
top: 'top',
|
839
|
-
bottom: 'bottom',
|
840
|
-
};
|
841
|
-
/** @enum {string} */
|
842
|
-
var horizontalAlignment = {
|
843
|
-
right: 'right',
|
844
|
-
left: 'left',
|
845
|
-
};
|
846
|
-
/** @type {?} */
|
847
|
-
var cornerWidth = '16px';
|
848
|
-
/** @type {?} */
|
849
|
-
var offset = '0px';
|
850
|
-
/** @type {?} */
|
851
|
-
var minWidth = 200;
|
852
|
-
/** @type {?} */
|
853
|
-
var minHeight = 200;
|
854
|
-
/**
|
855
|
-
* @param {?} sizeString
|
856
|
-
* @return {?}
|
857
|
-
*/
|
858
|
-
function getPixels(sizeString) {
|
859
|
-
return parseFloat((sizeString || '').replace('px', ''));
|
860
|
-
}
|
861
|
-
/**
|
862
|
-
* @param {?} min
|
863
|
-
* @param {?} num
|
864
|
-
* @param {?} max
|
865
|
-
* @return {?}
|
866
|
-
*/
|
867
|
-
function clamp(min, num, max) {
|
868
|
-
return Math.min(Math.max(num, min), max);
|
869
|
-
}
|
870
|
-
var ResizableDraggableDialog = /** @class */ (function () {
|
871
|
-
function ResizableDraggableDialog(_document, _renderer2, _dialogRef, _dragRef) {
|
872
|
-
this._document = _document;
|
873
|
-
this._renderer2 = _renderer2;
|
874
|
-
this._dialogRef = _dialogRef;
|
875
|
-
this._dragRef = _dragRef;
|
876
|
-
this.cornerElements = [];
|
877
|
-
this.pointerDownSubs = [];
|
878
|
-
this._initialPositionReset();
|
879
|
-
this._attachCorners();
|
880
|
-
}
|
881
|
-
/**
|
882
|
-
* @return {?}
|
883
|
-
*/
|
884
|
-
ResizableDraggableDialog.prototype.attach = /**
|
885
|
-
* @return {?}
|
886
|
-
*/
|
887
|
-
function () {
|
888
|
-
this.detach();
|
889
|
-
this._attachCorners();
|
890
|
-
};
|
891
|
-
/**
|
892
|
-
* @return {?}
|
893
|
-
*/
|
894
|
-
ResizableDraggableDialog.prototype.detach = /**
|
895
|
-
* @return {?}
|
896
|
-
*/
|
897
|
-
function () {
|
898
|
-
var _this = this;
|
899
|
-
this.pointerDownSubs.forEach((/**
|
900
|
-
* @param {?} sub
|
901
|
-
* @return {?}
|
902
|
-
*/
|
903
|
-
function (sub) { return sub.unsubscribe(); }));
|
904
|
-
this.pointerDownSubs = [];
|
905
|
-
this.cornerElements.forEach((/**
|
906
|
-
* @param {?} elem
|
907
|
-
* @return {?}
|
908
|
-
*/
|
909
|
-
function (elem) { return _this._renderer2.removeChild(_this._getDialogWrapper(), elem); }));
|
910
|
-
this.cornerElements = [];
|
911
|
-
};
|
912
|
-
/**
|
913
|
-
* @private
|
914
|
-
* @return {?}
|
915
|
-
*/
|
916
|
-
ResizableDraggableDialog.prototype._getDialogWrapper = /**
|
917
|
-
* @private
|
918
|
-
* @return {?}
|
919
|
-
*/
|
920
|
-
function () {
|
921
|
-
return ((/** @type {?} */ (this._document.getElementById(this._dialogRef.id))) || {}).parentElement;
|
922
|
-
};
|
923
|
-
/**
|
924
|
-
* @private
|
925
|
-
* @return {?}
|
926
|
-
*/
|
927
|
-
ResizableDraggableDialog.prototype._getViewportDimensions = /**
|
928
|
-
* @private
|
929
|
-
* @return {?}
|
930
|
-
*/
|
931
|
-
function () {
|
932
|
-
return this._getDialogWrapper().parentElement.getBoundingClientRect();
|
933
|
-
};
|
934
|
-
/**
|
935
|
-
* @private
|
936
|
-
* @return {?}
|
937
|
-
*/
|
938
|
-
ResizableDraggableDialog.prototype._getDialogWrapperDimensions = /**
|
939
|
-
* @private
|
940
|
-
* @return {?}
|
941
|
-
*/
|
942
|
-
function () {
|
943
|
-
/** @type {?} */
|
944
|
-
var dimensions = getComputedStyle(this._getDialogWrapper());
|
945
|
-
return {
|
946
|
-
width: getPixels(dimensions.width),
|
947
|
-
height: getPixels(dimensions.height),
|
948
|
-
};
|
949
|
-
};
|
950
|
-
/**
|
951
|
-
* @private
|
952
|
-
* @return {?}
|
953
|
-
*/
|
954
|
-
ResizableDraggableDialog.prototype._initialPositionReset = /**
|
955
|
-
* @private
|
956
|
-
* @return {?}
|
957
|
-
*/
|
958
|
-
function () {
|
959
|
-
var _a = this._getViewportDimensions(), viewportWidth = _a.right, viewportHeight = _a.bottom;
|
960
|
-
var _b = this._getDialogWrapperDimensions(), width = _b.width, height = _b.height;
|
961
|
-
var _c = this._getDialogWrapper().style, originalDialogRight = _c.marginRight, originalDialogLeft = _c.marginLeft, originalDialogBottom = _c.marginBottom, originalDialogTop = _c.marginTop;
|
962
|
-
/** @type {?} */
|
963
|
-
var x;
|
964
|
-
if (originalDialogLeft) {
|
965
|
-
x = getPixels(originalDialogLeft);
|
966
|
-
}
|
967
|
-
else if (originalDialogRight) {
|
968
|
-
x = viewportWidth - getPixels(originalDialogRight) - width;
|
969
|
-
}
|
970
|
-
else {
|
971
|
-
x = (viewportWidth - width) / 2;
|
972
|
-
}
|
973
|
-
/** @type {?} */
|
974
|
-
var y;
|
975
|
-
if (originalDialogTop) {
|
976
|
-
y = getPixels(originalDialogTop);
|
977
|
-
}
|
978
|
-
else if (originalDialogBottom) {
|
979
|
-
y = viewportHeight - getPixels(originalDialogBottom) - height;
|
980
|
-
}
|
981
|
-
else {
|
982
|
-
y = (viewportHeight - height) / 2;
|
983
|
-
}
|
984
|
-
// use drag ref's mechanisms for positioning instead of the dialog's
|
985
|
-
this._dialogRef.updatePosition({ top: '0px', right: '0px', bottom: '0px', left: '0px' });
|
986
|
-
this._dragRef.setFreeDragPosition({ x: x, y: y });
|
987
|
-
};
|
988
|
-
/**
|
989
|
-
* @private
|
990
|
-
* @return {?}
|
991
|
-
*/
|
992
|
-
ResizableDraggableDialog.prototype._attachCorners = /**
|
993
|
-
* @private
|
994
|
-
* @return {?}
|
995
|
-
*/
|
996
|
-
function () {
|
997
|
-
var _this = this;
|
998
|
-
Object.values(corners).forEach((/**
|
999
|
-
* @param {?} corner
|
1000
|
-
* @return {?}
|
1001
|
-
*/
|
1002
|
-
function (corner) {
|
1003
|
-
/** @type {?} */
|
1004
|
-
var element = _this._renderer2.createElement('div');
|
1005
|
-
_this.cornerElements = __spread(_this.cornerElements, [element]);
|
1006
|
-
_this._renderer2.setStyle(element, 'position', 'absolute');
|
1007
|
-
_this._renderer2.setStyle(element, 'width', cornerWidth);
|
1008
|
-
_this._renderer2.setStyle(element, 'height', cornerWidth);
|
1009
|
-
_this._renderer2.appendChild(_this._getDialogWrapper(), element);
|
1010
|
-
/** @type {?} */
|
1011
|
-
var cursor;
|
1012
|
-
/** @type {?} */
|
1013
|
-
var topBottom;
|
1014
|
-
/** @type {?} */
|
1015
|
-
var rightLeft;
|
1016
|
-
if (corner === corners.topRight) {
|
1017
|
-
cursor = cursors.nesw;
|
1018
|
-
topBottom = verticalAlignment.top;
|
1019
|
-
rightLeft = horizontalAlignment.right;
|
1020
|
-
}
|
1021
|
-
else if (corner === corners.bottomRight) {
|
1022
|
-
cursor = cursors.nwse;
|
1023
|
-
topBottom = verticalAlignment.bottom;
|
1024
|
-
rightLeft = horizontalAlignment.right;
|
1025
|
-
/** @type {?} */
|
1026
|
-
var icon = _this._renderer2.createElement('i');
|
1027
|
-
_this._renderer2.addClass(icon, 'material-icons');
|
1028
|
-
_this._renderer2.appendChild(icon, _this._renderer2.createText('filter_list'));
|
1029
|
-
_this._renderer2.appendChild(element, icon);
|
1030
|
-
_this._renderer2.setStyle(icon, 'transform', "rotate(" + 315 + "deg) translate(0px, " + offset + ")");
|
1031
|
-
_this._renderer2.setStyle(icon, 'font-size', cornerWidth);
|
1032
|
-
}
|
1033
|
-
else if (corner === corners.bottomLeft) {
|
1034
|
-
cursor = cursors.nesw;
|
1035
|
-
topBottom = verticalAlignment.bottom;
|
1036
|
-
rightLeft = horizontalAlignment.left;
|
1037
|
-
}
|
1038
|
-
else if (corner === corners.topLeft) {
|
1039
|
-
cursor = cursors.nwse;
|
1040
|
-
topBottom = verticalAlignment.top;
|
1041
|
-
rightLeft = horizontalAlignment.left;
|
1042
|
-
}
|
1043
|
-
_this._renderer2.setStyle(element, topBottom, offset);
|
1044
|
-
_this._renderer2.setStyle(element, rightLeft, offset);
|
1045
|
-
_this._renderer2.setStyle(element, 'cursor', cursor);
|
1046
|
-
/** @type {?} */
|
1047
|
-
var pointerDownSub = fromEvent(element, 'pointerdown').subscribe((/**
|
1048
|
-
* @param {?} event
|
1049
|
-
* @return {?}
|
1050
|
-
*/
|
1051
|
-
function (event) {
|
1052
|
-
_this._handleMouseDown(event, corner);
|
1053
|
-
}));
|
1054
|
-
_this.pointerDownSubs = __spread(_this.pointerDownSubs, [pointerDownSub]);
|
1055
|
-
}));
|
1056
|
-
};
|
1057
|
-
/**
|
1058
|
-
* @private
|
1059
|
-
* @param {?} event
|
1060
|
-
* @param {?} corner
|
1061
|
-
* @return {?}
|
1062
|
-
*/
|
1063
|
-
ResizableDraggableDialog.prototype._handleMouseDown = /**
|
1064
|
-
* @private
|
1065
|
-
* @param {?} event
|
1066
|
-
* @param {?} corner
|
1067
|
-
* @return {?}
|
1068
|
-
*/
|
1069
|
-
function (event, corner) {
|
1070
|
-
var _this = this;
|
1071
|
-
this._renderer2.setStyle((/** @type {?} */ (this._document.body)), 'user-select', 'none');
|
1072
|
-
var _a = this._getDialogWrapperDimensions(), originalWidth = _a.width, originalHeight = _a.height;
|
1073
|
-
/** @type {?} */
|
1074
|
-
var originalMouseX = event.pageX;
|
1075
|
-
/** @type {?} */
|
1076
|
-
var originalMouseY = event.pageY;
|
1077
|
-
var _b = this._dragRef.getFreeDragPosition(), currentTransformX = _b.x, currentTransformY = _b.y;
|
1078
|
-
var _c = this._getDialogWrapper().getBoundingClientRect(), distanceFromBottom = _c.bottom, distanceFromRight = _c.right;
|
1079
|
-
var _d = this._getViewportDimensions(), viewportWidth = _d.right, viewportHeight = _d.bottom;
|
1080
|
-
/** @type {?} */
|
1081
|
-
var mouseMoveSub = fromEvent(window, 'pointermove').subscribe((/**
|
1082
|
-
* @param {?} e
|
1083
|
-
* @return {?}
|
1084
|
-
*/
|
1085
|
-
function (e) {
|
1086
|
-
e.preventDefault(); // prevent highlighting of text when dragging
|
1087
|
-
// prevent highlighting of text when dragging
|
1088
|
-
/** @type {?} */
|
1089
|
-
var yDelta = clamp(0, e.pageY, viewportHeight) - originalMouseY;
|
1090
|
-
/** @type {?} */
|
1091
|
-
var xDelta = clamp(0, e.pageX, viewportWidth) - originalMouseX;
|
1092
|
-
/** @type {?} */
|
1093
|
-
var newHeight;
|
1094
|
-
/** @type {?} */
|
1095
|
-
var newWidth;
|
1096
|
-
/** @type {?} */
|
1097
|
-
var newTransformY = 0;
|
1098
|
-
/** @type {?} */
|
1099
|
-
var newTransformX = 0;
|
1100
|
-
// top right
|
1101
|
-
if (corner === corners.topRight) {
|
1102
|
-
newHeight = clamp(minHeight, originalHeight - yDelta, viewportHeight);
|
1103
|
-
newWidth = clamp(minWidth, originalWidth + xDelta, viewportWidth);
|
1104
|
-
newTransformY = clamp(0, currentTransformY + yDelta, distanceFromBottom - newHeight);
|
1105
|
-
newTransformX = currentTransformX;
|
1106
|
-
}
|
1107
|
-
// bottom right
|
1108
|
-
else if (corner === corners.bottomRight) {
|
1109
|
-
newHeight = clamp(minHeight, originalHeight + yDelta, viewportHeight);
|
1110
|
-
newWidth = clamp(minWidth, originalWidth + xDelta, viewportWidth);
|
1111
|
-
newTransformY = currentTransformY;
|
1112
|
-
newTransformX = currentTransformX;
|
1113
|
-
}
|
1114
|
-
// bottom left
|
1115
|
-
else if (corner === corners.bottomLeft) {
|
1116
|
-
newHeight = clamp(minHeight, originalHeight + yDelta, viewportHeight);
|
1117
|
-
newWidth = clamp(minWidth, originalWidth - xDelta, viewportWidth);
|
1118
|
-
newTransformY = currentTransformY;
|
1119
|
-
newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);
|
1120
|
-
}
|
1121
|
-
// top left
|
1122
|
-
else if (corner === corners.topLeft) {
|
1123
|
-
newHeight = clamp(minHeight, originalHeight - yDelta, viewportHeight);
|
1124
|
-
newWidth = clamp(minWidth, originalWidth - xDelta, viewportWidth);
|
1125
|
-
newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);
|
1126
|
-
newTransformY = clamp(0, currentTransformY + yDelta, distanceFromBottom - newHeight);
|
1127
|
-
}
|
1128
|
-
_this._dialogRef.updateSize(newWidth + "px", newHeight + "px");
|
1129
|
-
_this._dragRef.setFreeDragPosition({
|
1130
|
-
x: newTransformX,
|
1131
|
-
y: newTransformY,
|
1132
|
-
});
|
1133
|
-
}));
|
1134
|
-
/** @type {?} */
|
1135
|
-
var mouseUpSub = merge(fromEvent(window, 'pointerup'), fromEvent(window, 'pointercancel')).subscribe((/**
|
1136
|
-
* @return {?}
|
1137
|
-
*/
|
1138
|
-
function () {
|
1139
|
-
_this._renderer2.removeStyle((/** @type {?} */ (_this._document.body)), 'user-select');
|
1140
|
-
mouseMoveSub.unsubscribe();
|
1141
|
-
mouseUpSub.unsubscribe();
|
1142
|
-
}));
|
1143
|
-
};
|
1144
|
-
return ResizableDraggableDialog;
|
1145
|
-
}());
|
1146
|
-
if (false) {
|
1147
|
-
/** @type {?} */
|
1148
|
-
ResizableDraggableDialog.prototype.cornerElements;
|
1149
|
-
/** @type {?} */
|
1150
|
-
ResizableDraggableDialog.prototype.pointerDownSubs;
|
1151
|
-
/**
|
1152
|
-
* @type {?}
|
1153
|
-
* @private
|
1154
|
-
*/
|
1155
|
-
ResizableDraggableDialog.prototype._document;
|
1156
|
-
/**
|
1157
|
-
* @type {?}
|
1158
|
-
* @private
|
1159
|
-
*/
|
1160
|
-
ResizableDraggableDialog.prototype._renderer2;
|
1161
|
-
/**
|
1162
|
-
* @type {?}
|
1163
|
-
* @private
|
1164
|
-
*/
|
1165
|
-
ResizableDraggableDialog.prototype._dialogRef;
|
1166
|
-
/**
|
1167
|
-
* @type {?}
|
1168
|
-
* @private
|
1169
|
-
*/
|
1170
|
-
ResizableDraggableDialog.prototype._dragRef;
|
1171
|
-
}
|
1172
|
-
|
1173
|
-
/**
|
1174
|
-
* @fileoverview added by tsickle
|
1175
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1176
|
-
*/
|
1177
|
-
|
1178
|
-
/**
|
1179
|
-
* @fileoverview added by tsickle
|
1180
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1181
|
-
*/
|
1182
|
-
|
1183
|
-
/**
|
1184
|
-
* @fileoverview added by tsickle
|
1185
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1186
|
-
*/
|
1187
|
-
|
1188
|
-
export { CovalentDialogsModule, ResizableDraggableDialog, TdAlertDialogComponent, TdConfirmDialogComponent, TdDialogActionsDirective, TdDialogComponent, TdDialogContentDirective, TdDialogService, TdDialogTitleDirective, TdPromptDialogComponent, TdWindowDialogComponent as ɵa };
|
1189
|
-
//# sourceMappingURL=covalent-core-dialogs.js.map
|