@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,261 +1,45 @@
|
|
1
1
|
(function (global, factory) {
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/dialog'), require('@angular/material/input'), require('@angular/material/button'), require('@angular/cdk/drag-drop'), require('rxjs'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('@angular/material/icon')) :
|
3
3
|
typeof define === 'function' && define.amd ? define('@covalent/core/dialogs', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/dialog', '@angular/material/input', '@angular/material/button', '@angular/cdk/drag-drop', 'rxjs', '@angular/material/toolbar', '@angular/material/tooltip', '@angular/material/icon'], factory) :
|
4
|
-
(global = global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.dialogs = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.dialog, global.ng.material.input, global.ng.material.button, global.ng.cdk.dragDrop, global.rxjs, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.icon));
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.dialogs = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.dialog, global.ng.material.input, global.ng.material.button, global.ng.cdk.dragDrop, global.rxjs, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.icon));
|
5
5
|
}(this, (function (exports, core, common, forms, dialog, input, button, dragDrop, rxjs, toolbar, tooltip, icon) { 'use strict';
|
6
6
|
|
7
|
-
/*! *****************************************************************************
|
8
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
10
|
-
this file except in compliance with the License. You may obtain a copy of the
|
11
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
|
13
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
15
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
16
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
17
|
-
|
18
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
19
|
-
and limitations under the License.
|
20
|
-
***************************************************************************** */
|
21
|
-
/* global Reflect, Promise */
|
22
|
-
|
23
|
-
var extendStatics = function(d, b) {
|
24
|
-
extendStatics = Object.setPrototypeOf ||
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
26
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
27
|
-
return extendStatics(d, b);
|
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
|
-
var __assign = function() {
|
37
|
-
__assign = Object.assign || function __assign(t) {
|
38
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
39
|
-
s = arguments[i];
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
41
|
-
}
|
42
|
-
return t;
|
43
|
-
};
|
44
|
-
return __assign.apply(this, arguments);
|
45
|
-
};
|
46
|
-
|
47
|
-
function __rest(s, e) {
|
48
|
-
var t = {};
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
50
|
-
t[p] = s[p];
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
54
|
-
t[p[i]] = s[p[i]];
|
55
|
-
}
|
56
|
-
return t;
|
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") r = Reflect.decorate(decorators, target, key, desc);
|
62
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
63
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
64
|
-
}
|
65
|
-
|
66
|
-
function __param(paramIndex, decorator) {
|
67
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
68
|
-
}
|
69
|
-
|
70
|
-
function __metadata(metadataKey, metadataValue) {
|
71
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
72
|
-
}
|
73
|
-
|
74
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
75
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
76
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
77
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
78
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
79
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
80
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
81
|
-
});
|
82
|
-
}
|
83
|
-
|
84
|
-
function __generator(thisArg, body) {
|
85
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
86
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
87
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
88
|
-
function step(op) {
|
89
|
-
if (f) throw new TypeError("Generator is already executing.");
|
90
|
-
while (_) try {
|
91
|
-
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) return t;
|
92
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
93
|
-
switch (op[0]) {
|
94
|
-
case 0: case 1: t = op; break;
|
95
|
-
case 4: _.label++; return { value: op[1], done: false };
|
96
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
97
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
98
|
-
default:
|
99
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
100
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
101
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
102
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
103
|
-
if (t[2]) _.ops.pop();
|
104
|
-
_.trys.pop(); continue;
|
105
|
-
}
|
106
|
-
op = body.call(thisArg, _);
|
107
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
108
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
109
|
-
}
|
110
|
-
}
|
111
|
-
|
112
|
-
function __exportStar(m, exports) {
|
113
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
114
|
-
}
|
115
|
-
|
116
|
-
function __values(o) {
|
117
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
118
|
-
if (m) return m.call(o);
|
119
|
-
if (o && typeof o.length === "number") return {
|
120
|
-
next: function () {
|
121
|
-
if (o && i >= o.length) o = void 0;
|
122
|
-
return { value: o && o[i++], done: !o };
|
123
|
-
}
|
124
|
-
};
|
125
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
126
|
-
}
|
127
|
-
|
128
|
-
function __read(o, n) {
|
129
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
130
|
-
if (!m) return o;
|
131
|
-
var i = m.call(o), r, ar = [], e;
|
132
|
-
try {
|
133
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
134
|
-
}
|
135
|
-
catch (error) { e = { error: error }; }
|
136
|
-
finally {
|
137
|
-
try {
|
138
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
139
|
-
}
|
140
|
-
finally { if (e) throw e.error; }
|
141
|
-
}
|
142
|
-
return ar;
|
143
|
-
}
|
144
|
-
|
145
|
-
function __spread() {
|
146
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
147
|
-
ar = ar.concat(__read(arguments[i]));
|
148
|
-
return ar;
|
149
|
-
}
|
150
|
-
|
151
|
-
function __spreadArrays() {
|
152
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
153
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
154
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
155
|
-
r[k] = a[j];
|
156
|
-
return r;
|
157
|
-
};
|
158
|
-
|
159
|
-
function __await(v) {
|
160
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
161
|
-
}
|
162
|
-
|
163
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
164
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
165
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
166
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
167
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
168
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
169
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
170
|
-
function fulfill(value) { resume("next", value); }
|
171
|
-
function reject(value) { resume("throw", value); }
|
172
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
173
|
-
}
|
174
|
-
|
175
|
-
function __asyncDelegator(o) {
|
176
|
-
var i, p;
|
177
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
178
|
-
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; }
|
179
|
-
}
|
180
|
-
|
181
|
-
function __asyncValues(o) {
|
182
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
183
|
-
var m = o[Symbol.asyncIterator], i;
|
184
|
-
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);
|
185
|
-
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); }); }; }
|
186
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
187
|
-
}
|
188
|
-
|
189
|
-
function __makeTemplateObject(cooked, raw) {
|
190
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
191
|
-
return cooked;
|
192
|
-
};
|
193
|
-
|
194
|
-
function __importStar(mod) {
|
195
|
-
if (mod && mod.__esModule) return mod;
|
196
|
-
var result = {};
|
197
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
198
|
-
result.default = mod;
|
199
|
-
return result;
|
200
|
-
}
|
201
|
-
|
202
|
-
function __importDefault(mod) {
|
203
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
204
|
-
}
|
205
|
-
|
206
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
207
|
-
if (!privateMap.has(receiver)) {
|
208
|
-
throw new TypeError("attempted to get private field on non-instance");
|
209
|
-
}
|
210
|
-
return privateMap.get(receiver);
|
211
|
-
}
|
212
|
-
|
213
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
214
|
-
if (!privateMap.has(receiver)) {
|
215
|
-
throw new TypeError("attempted to set private field on non-instance");
|
216
|
-
}
|
217
|
-
privateMap.set(receiver, value);
|
218
|
-
return value;
|
219
|
-
}
|
220
|
-
|
221
7
|
/**
|
222
8
|
* @fileoverview added by tsickle
|
223
|
-
*
|
9
|
+
* Generated from: dialog.component.ts
|
10
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
224
11
|
*/
|
225
12
|
var TdDialogTitleDirective = /** @class */ (function () {
|
226
13
|
function TdDialogTitleDirective() {
|
227
14
|
}
|
228
|
-
TdDialogTitleDirective.decorators = [
|
229
|
-
{ type: core.Directive, args: [{ selector: 'td-dialog-title' },] }
|
230
|
-
];
|
231
15
|
return TdDialogTitleDirective;
|
232
16
|
}());
|
17
|
+
TdDialogTitleDirective.decorators = [
|
18
|
+
{ type: core.Directive, args: [{ selector: 'td-dialog-title' },] }
|
19
|
+
];
|
233
20
|
var TdDialogContentDirective = /** @class */ (function () {
|
234
21
|
function TdDialogContentDirective() {
|
235
22
|
}
|
236
|
-
TdDialogContentDirective.decorators = [
|
237
|
-
{ type: core.Directive, args: [{ selector: 'td-dialog-content' },] }
|
238
|
-
];
|
239
23
|
return TdDialogContentDirective;
|
240
24
|
}());
|
25
|
+
TdDialogContentDirective.decorators = [
|
26
|
+
{ type: core.Directive, args: [{ selector: 'td-dialog-content' },] }
|
27
|
+
];
|
241
28
|
var TdDialogActionsDirective = /** @class */ (function () {
|
242
29
|
function TdDialogActionsDirective() {
|
243
30
|
}
|
244
|
-
TdDialogActionsDirective.decorators = [
|
245
|
-
{ type: core.Directive, args: [{ selector: 'td-dialog-actions' },] }
|
246
|
-
];
|
247
31
|
return TdDialogActionsDirective;
|
248
32
|
}());
|
33
|
+
TdDialogActionsDirective.decorators = [
|
34
|
+
{ type: core.Directive, args: [{ selector: 'td-dialog-actions' },] }
|
35
|
+
];
|
249
36
|
var TdDialogComponent = /** @class */ (function () {
|
250
37
|
function TdDialogComponent() {
|
251
38
|
}
|
252
39
|
/**
|
253
40
|
* @return {?}
|
254
41
|
*/
|
255
|
-
TdDialogComponent.prototype.ngAfterContentInit =
|
256
|
-
* @return {?}
|
257
|
-
*/
|
258
|
-
function () {
|
42
|
+
TdDialogComponent.prototype.ngAfterContentInit = function () {
|
259
43
|
if (this.dialogTitle.length > 1) {
|
260
44
|
throw new Error('Duplicate td-dialog-title component at in td-dialog.');
|
261
45
|
}
|
@@ -266,20 +50,20 @@
|
|
266
50
|
throw new Error('Duplicate td-dialog-actions component at in td-dialog.');
|
267
51
|
}
|
268
52
|
};
|
269
|
-
TdDialogComponent.decorators = [
|
270
|
-
{ type: core.Component, args: [{
|
271
|
-
selector: 'td-dialog',
|
272
|
-
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",
|
273
|
-
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}"]
|
274
|
-
}] }
|
275
|
-
];
|
276
|
-
TdDialogComponent.propDecorators = {
|
277
|
-
dialogTitle: [{ type: core.ContentChildren, args: [TdDialogTitleDirective, { descendants: true },] }],
|
278
|
-
dialogContent: [{ type: core.ContentChildren, args: [TdDialogContentDirective, { descendants: true },] }],
|
279
|
-
dialogActions: [{ type: core.ContentChildren, args: [TdDialogActionsDirective, { descendants: true },] }]
|
280
|
-
};
|
281
53
|
return TdDialogComponent;
|
282
54
|
}());
|
55
|
+
TdDialogComponent.decorators = [
|
56
|
+
{ type: core.Component, args: [{
|
57
|
+
selector: 'td-dialog',
|
58
|
+
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",
|
59
|
+
styles: [".td-dialog-title{margin-bottom:20px;margin-top:0}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{left:16px;position:relative;top:16px}::ng-deep [dir=rtl] .td-dialog-actions{left:auto;right:16px}:host{display:block}:host .td-dialog-actions{-ms-flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row}:host .td-dialog-actions .td-dialog-spacer{-ms-flex:1;flex:1}:host .td-dialog-actions ::ng-deep button{margin-left:8px;min-width:64px;padding-left:8px;padding-right:8px;text-transform:uppercase}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-left:inherit;margin-right:8px}"]
|
60
|
+
}] }
|
61
|
+
];
|
62
|
+
TdDialogComponent.propDecorators = {
|
63
|
+
dialogTitle: [{ type: core.ContentChildren, args: [TdDialogTitleDirective, { descendants: true },] }],
|
64
|
+
dialogContent: [{ type: core.ContentChildren, args: [TdDialogContentDirective, { descendants: true },] }],
|
65
|
+
dialogActions: [{ type: core.ContentChildren, args: [TdDialogActionsDirective, { descendants: true },] }]
|
66
|
+
};
|
283
67
|
if (false) {
|
284
68
|
/** @type {?} */
|
285
69
|
TdDialogComponent.prototype.dialogTitle;
|
@@ -291,9 +75,13 @@
|
|
291
75
|
|
292
76
|
/**
|
293
77
|
* @fileoverview added by tsickle
|
294
|
-
*
|
78
|
+
* Generated from: alert-dialog/alert-dialog.component.ts
|
79
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
295
80
|
*/
|
296
81
|
var TdAlertDialogComponent = /** @class */ (function () {
|
82
|
+
/**
|
83
|
+
* @param {?} _dialogRef
|
84
|
+
*/
|
297
85
|
function TdAlertDialogComponent(_dialogRef) {
|
298
86
|
this._dialogRef = _dialogRef;
|
299
87
|
this.closeButton = 'CLOSE';
|
@@ -301,25 +89,22 @@
|
|
301
89
|
/**
|
302
90
|
* @return {?}
|
303
91
|
*/
|
304
|
-
TdAlertDialogComponent.prototype.close =
|
305
|
-
* @return {?}
|
306
|
-
*/
|
307
|
-
function () {
|
92
|
+
TdAlertDialogComponent.prototype.close = function () {
|
308
93
|
this._dialogRef.close();
|
309
94
|
};
|
310
|
-
TdAlertDialogComponent.decorators = [
|
311
|
-
{ type: core.Component, args: [{
|
312
|
-
selector: 'td-alert-dialog',
|
313
|
-
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",
|
314
|
-
styles: [".td-dialog-message{word-break:break-word}"]
|
315
|
-
}] }
|
316
|
-
];
|
317
|
-
/** @nocollapse */
|
318
|
-
TdAlertDialogComponent.ctorParameters = function () { return [
|
319
|
-
{ type: dialog.MatDialogRef }
|
320
|
-
]; };
|
321
95
|
return TdAlertDialogComponent;
|
322
96
|
}());
|
97
|
+
TdAlertDialogComponent.decorators = [
|
98
|
+
{ type: core.Component, args: [{
|
99
|
+
selector: 'td-alert-dialog',
|
100
|
+
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",
|
101
|
+
styles: [".td-dialog-message{word-break:break-word}"]
|
102
|
+
}] }
|
103
|
+
];
|
104
|
+
/** @nocollapse */
|
105
|
+
TdAlertDialogComponent.ctorParameters = function () { return [
|
106
|
+
{ type: dialog.MatDialogRef }
|
107
|
+
]; };
|
323
108
|
if (false) {
|
324
109
|
/** @type {?} */
|
325
110
|
TdAlertDialogComponent.prototype.title;
|
@@ -336,9 +121,13 @@
|
|
336
121
|
|
337
122
|
/**
|
338
123
|
* @fileoverview added by tsickle
|
339
|
-
*
|
124
|
+
* Generated from: confirm-dialog/confirm-dialog.component.ts
|
125
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
340
126
|
*/
|
341
127
|
var TdConfirmDialogComponent = /** @class */ (function () {
|
128
|
+
/**
|
129
|
+
* @param {?} _dialogRef
|
130
|
+
*/
|
342
131
|
function TdConfirmDialogComponent(_dialogRef) {
|
343
132
|
this._dialogRef = _dialogRef;
|
344
133
|
this.cancelButton = 'CANCEL';
|
@@ -348,34 +137,28 @@
|
|
348
137
|
/**
|
349
138
|
* @return {?}
|
350
139
|
*/
|
351
|
-
TdConfirmDialogComponent.prototype.cancel =
|
352
|
-
* @return {?}
|
353
|
-
*/
|
354
|
-
function () {
|
140
|
+
TdConfirmDialogComponent.prototype.cancel = function () {
|
355
141
|
this._dialogRef.close(false);
|
356
142
|
};
|
357
143
|
/**
|
358
144
|
* @return {?}
|
359
145
|
*/
|
360
|
-
TdConfirmDialogComponent.prototype.accept =
|
361
|
-
* @return {?}
|
362
|
-
*/
|
363
|
-
function () {
|
146
|
+
TdConfirmDialogComponent.prototype.accept = function () {
|
364
147
|
this._dialogRef.close(true);
|
365
148
|
};
|
366
|
-
TdConfirmDialogComponent.decorators = [
|
367
|
-
{ type: core.Component, args: [{
|
368
|
-
selector: 'td-confirm-dialog',
|
369
|
-
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",
|
370
|
-
styles: [".td-dialog-message{word-break:break-word}"]
|
371
|
-
}] }
|
372
|
-
];
|
373
|
-
/** @nocollapse */
|
374
|
-
TdConfirmDialogComponent.ctorParameters = function () { return [
|
375
|
-
{ type: dialog.MatDialogRef }
|
376
|
-
]; };
|
377
149
|
return TdConfirmDialogComponent;
|
378
150
|
}());
|
151
|
+
TdConfirmDialogComponent.decorators = [
|
152
|
+
{ type: core.Component, args: [{
|
153
|
+
selector: 'td-confirm-dialog',
|
154
|
+
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",
|
155
|
+
styles: [".td-dialog-message{word-break:break-word}"]
|
156
|
+
}] }
|
157
|
+
];
|
158
|
+
/** @nocollapse */
|
159
|
+
TdConfirmDialogComponent.ctorParameters = function () { return [
|
160
|
+
{ type: dialog.MatDialogRef }
|
161
|
+
]; };
|
379
162
|
if (false) {
|
380
163
|
/** @type {?} */
|
381
164
|
TdConfirmDialogComponent.prototype.title;
|
@@ -396,9 +179,13 @@
|
|
396
179
|
|
397
180
|
/**
|
398
181
|
* @fileoverview added by tsickle
|
399
|
-
*
|
182
|
+
* Generated from: prompt-dialog/prompt-dialog.component.ts
|
183
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
400
184
|
*/
|
401
185
|
var TdPromptDialogComponent = /** @class */ (function () {
|
186
|
+
/**
|
187
|
+
* @param {?} _dialogRef
|
188
|
+
*/
|
402
189
|
function TdPromptDialogComponent(_dialogRef) {
|
403
190
|
this._dialogRef = _dialogRef;
|
404
191
|
this.cancelButton = 'CANCEL';
|
@@ -407,70 +194,51 @@
|
|
407
194
|
/**
|
408
195
|
* @return {?}
|
409
196
|
*/
|
410
|
-
TdPromptDialogComponent.prototype.ngAfterViewInit =
|
411
|
-
* @return {?}
|
412
|
-
*/
|
413
|
-
function () {
|
197
|
+
TdPromptDialogComponent.prototype.ngAfterViewInit = function () {
|
414
198
|
var _this = this;
|
415
199
|
// focus input once everything is rendered and good to go
|
416
|
-
Promise.resolve().then((/**
|
200
|
+
Promise.resolve().then(( /**
|
417
201
|
* @return {?}
|
418
|
-
*/
|
419
|
-
|
420
|
-
((/** @type {?} */ (_this._input.nativeElement))).focus();
|
202
|
+
*/function () {
|
203
|
+
(( /** @type {?} */(_this._input.nativeElement))).focus();
|
421
204
|
}));
|
422
205
|
};
|
423
206
|
/**
|
424
|
-
* Method executed when input is focused
|
425
|
-
* Selects all text
|
426
|
-
*/
|
427
|
-
/**
|
428
|
-
* Method executed when input is focused
|
429
|
-
* Selects all text
|
430
|
-
* @return {?}
|
431
|
-
*/
|
432
|
-
TdPromptDialogComponent.prototype.handleInputFocus = /**
|
433
207
|
* Method executed when input is focused
|
434
208
|
* Selects all text
|
435
209
|
* @return {?}
|
436
210
|
*/
|
437
|
-
function () {
|
438
|
-
((/** @type {?} */
|
211
|
+
TdPromptDialogComponent.prototype.handleInputFocus = function () {
|
212
|
+
(( /** @type {?} */(this._input.nativeElement))).select();
|
439
213
|
};
|
440
214
|
/**
|
441
215
|
* @return {?}
|
442
216
|
*/
|
443
|
-
TdPromptDialogComponent.prototype.cancel =
|
444
|
-
* @return {?}
|
445
|
-
*/
|
446
|
-
function () {
|
217
|
+
TdPromptDialogComponent.prototype.cancel = function () {
|
447
218
|
this._dialogRef.close();
|
448
219
|
};
|
449
220
|
/**
|
450
221
|
* @return {?}
|
451
222
|
*/
|
452
|
-
TdPromptDialogComponent.prototype.accept =
|
453
|
-
* @return {?}
|
454
|
-
*/
|
455
|
-
function () {
|
223
|
+
TdPromptDialogComponent.prototype.accept = function () {
|
456
224
|
this._dialogRef.close(this.value);
|
457
225
|
};
|
458
|
-
TdPromptDialogComponent.decorators = [
|
459
|
-
{ type: core.Component, args: [{
|
460
|
-
selector: 'td-prompt-dialog',
|
461
|
-
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",
|
462
|
-
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}"]
|
463
|
-
}] }
|
464
|
-
];
|
465
|
-
/** @nocollapse */
|
466
|
-
TdPromptDialogComponent.ctorParameters = function () { return [
|
467
|
-
{ type: dialog.MatDialogRef }
|
468
|
-
]; };
|
469
|
-
TdPromptDialogComponent.propDecorators = {
|
470
|
-
_input: [{ type: core.ViewChild, args: ['input', { static: true },] }]
|
471
|
-
};
|
472
226
|
return TdPromptDialogComponent;
|
473
227
|
}());
|
228
|
+
TdPromptDialogComponent.decorators = [
|
229
|
+
{ type: core.Component, args: [{
|
230
|
+
selector: 'td-prompt-dialog',
|
231
|
+
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",
|
232
|
+
styles: [".td-dialog-input-wrapper{-ms-flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex;flex-direction:row}.td-dialog-input-wrapper .td-dialog-input{-ms-flex:1;box-sizing:border-box;flex:1}.td-dialog-message{word-break:break-word}"]
|
233
|
+
}] }
|
234
|
+
];
|
235
|
+
/** @nocollapse */
|
236
|
+
TdPromptDialogComponent.ctorParameters = function () { return [
|
237
|
+
{ type: dialog.MatDialogRef }
|
238
|
+
]; };
|
239
|
+
TdPromptDialogComponent.propDecorators = {
|
240
|
+
_input: [{ type: core.ViewChild, args: ['input', { static: true },] }]
|
241
|
+
};
|
474
242
|
if (false) {
|
475
243
|
/** @type {?} */
|
476
244
|
TdPromptDialogComponent.prototype.title;
|
@@ -491,10 +259,307 @@
|
|
491
259
|
TdPromptDialogComponent.prototype._dialogRef;
|
492
260
|
}
|
493
261
|
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
262
|
+
/*! *****************************************************************************
|
263
|
+
Copyright (c) Microsoft Corporation.
|
264
|
+
|
265
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
266
|
+
purpose with or without fee is hereby granted.
|
267
|
+
|
268
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
269
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
270
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
271
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
272
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
273
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
274
|
+
PERFORMANCE OF THIS SOFTWARE.
|
275
|
+
***************************************************************************** */
|
276
|
+
/* global Reflect, Promise */
|
277
|
+
var extendStatics = function (d, b) {
|
278
|
+
extendStatics = Object.setPrototypeOf ||
|
279
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
280
|
+
function (d, b) { for (var p in b)
|
281
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
282
|
+
d[p] = b[p]; };
|
283
|
+
return extendStatics(d, b);
|
284
|
+
};
|
285
|
+
function __extends(d, b) {
|
286
|
+
extendStatics(d, b);
|
287
|
+
function __() { this.constructor = d; }
|
288
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
289
|
+
}
|
290
|
+
var __assign = function () {
|
291
|
+
__assign = Object.assign || function __assign(t) {
|
292
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
293
|
+
s = arguments[i];
|
294
|
+
for (var p in s)
|
295
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
296
|
+
t[p] = s[p];
|
297
|
+
}
|
298
|
+
return t;
|
299
|
+
};
|
300
|
+
return __assign.apply(this, arguments);
|
301
|
+
};
|
302
|
+
function __rest(s, e) {
|
303
|
+
var t = {};
|
304
|
+
for (var p in s)
|
305
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
306
|
+
t[p] = s[p];
|
307
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
308
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
309
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
310
|
+
t[p[i]] = s[p[i]];
|
311
|
+
}
|
312
|
+
return t;
|
313
|
+
}
|
314
|
+
function __decorate(decorators, target, key, desc) {
|
315
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
316
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
317
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
318
|
+
else
|
319
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
320
|
+
if (d = decorators[i])
|
321
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
322
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
323
|
+
}
|
324
|
+
function __param(paramIndex, decorator) {
|
325
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
326
|
+
}
|
327
|
+
function __metadata(metadataKey, metadataValue) {
|
328
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
329
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
330
|
+
}
|
331
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
332
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
333
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
334
|
+
function fulfilled(value) { try {
|
335
|
+
step(generator.next(value));
|
336
|
+
}
|
337
|
+
catch (e) {
|
338
|
+
reject(e);
|
339
|
+
} }
|
340
|
+
function rejected(value) { try {
|
341
|
+
step(generator["throw"](value));
|
342
|
+
}
|
343
|
+
catch (e) {
|
344
|
+
reject(e);
|
345
|
+
} }
|
346
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
347
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
348
|
+
});
|
349
|
+
}
|
350
|
+
function __generator(thisArg, body) {
|
351
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
352
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
353
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
354
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
355
|
+
function step(op) {
|
356
|
+
if (f)
|
357
|
+
throw new TypeError("Generator is already executing.");
|
358
|
+
while (_)
|
359
|
+
try {
|
360
|
+
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)
|
361
|
+
return t;
|
362
|
+
if (y = 0, t)
|
363
|
+
op = [op[0] & 2, t.value];
|
364
|
+
switch (op[0]) {
|
365
|
+
case 0:
|
366
|
+
case 1:
|
367
|
+
t = op;
|
368
|
+
break;
|
369
|
+
case 4:
|
370
|
+
_.label++;
|
371
|
+
return { value: op[1], done: false };
|
372
|
+
case 5:
|
373
|
+
_.label++;
|
374
|
+
y = op[1];
|
375
|
+
op = [0];
|
376
|
+
continue;
|
377
|
+
case 7:
|
378
|
+
op = _.ops.pop();
|
379
|
+
_.trys.pop();
|
380
|
+
continue;
|
381
|
+
default:
|
382
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
383
|
+
_ = 0;
|
384
|
+
continue;
|
385
|
+
}
|
386
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
387
|
+
_.label = op[1];
|
388
|
+
break;
|
389
|
+
}
|
390
|
+
if (op[0] === 6 && _.label < t[1]) {
|
391
|
+
_.label = t[1];
|
392
|
+
t = op;
|
393
|
+
break;
|
394
|
+
}
|
395
|
+
if (t && _.label < t[2]) {
|
396
|
+
_.label = t[2];
|
397
|
+
_.ops.push(op);
|
398
|
+
break;
|
399
|
+
}
|
400
|
+
if (t[2])
|
401
|
+
_.ops.pop();
|
402
|
+
_.trys.pop();
|
403
|
+
continue;
|
404
|
+
}
|
405
|
+
op = body.call(thisArg, _);
|
406
|
+
}
|
407
|
+
catch (e) {
|
408
|
+
op = [6, e];
|
409
|
+
y = 0;
|
410
|
+
}
|
411
|
+
finally {
|
412
|
+
f = t = 0;
|
413
|
+
}
|
414
|
+
if (op[0] & 5)
|
415
|
+
throw op[1];
|
416
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
417
|
+
}
|
418
|
+
}
|
419
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
420
|
+
if (k2 === undefined)
|
421
|
+
k2 = k;
|
422
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
423
|
+
}) : (function (o, m, k, k2) {
|
424
|
+
if (k2 === undefined)
|
425
|
+
k2 = k;
|
426
|
+
o[k2] = m[k];
|
427
|
+
});
|
428
|
+
function __exportStar(m, o) {
|
429
|
+
for (var p in m)
|
430
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
431
|
+
__createBinding(o, m, p);
|
432
|
+
}
|
433
|
+
function __values(o) {
|
434
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
435
|
+
if (m)
|
436
|
+
return m.call(o);
|
437
|
+
if (o && typeof o.length === "number")
|
438
|
+
return {
|
439
|
+
next: function () {
|
440
|
+
if (o && i >= o.length)
|
441
|
+
o = void 0;
|
442
|
+
return { value: o && o[i++], done: !o };
|
443
|
+
}
|
444
|
+
};
|
445
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
446
|
+
}
|
447
|
+
function __read(o, n) {
|
448
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
449
|
+
if (!m)
|
450
|
+
return o;
|
451
|
+
var i = m.call(o), r, ar = [], e;
|
452
|
+
try {
|
453
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
454
|
+
ar.push(r.value);
|
455
|
+
}
|
456
|
+
catch (error) {
|
457
|
+
e = { error: error };
|
458
|
+
}
|
459
|
+
finally {
|
460
|
+
try {
|
461
|
+
if (r && !r.done && (m = i["return"]))
|
462
|
+
m.call(i);
|
463
|
+
}
|
464
|
+
finally {
|
465
|
+
if (e)
|
466
|
+
throw e.error;
|
467
|
+
}
|
468
|
+
}
|
469
|
+
return ar;
|
470
|
+
}
|
471
|
+
function __spread() {
|
472
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
473
|
+
ar = ar.concat(__read(arguments[i]));
|
474
|
+
return ar;
|
475
|
+
}
|
476
|
+
function __spreadArrays() {
|
477
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
478
|
+
s += arguments[i].length;
|
479
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
480
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
481
|
+
r[k] = a[j];
|
482
|
+
return r;
|
483
|
+
}
|
484
|
+
;
|
485
|
+
function __await(v) {
|
486
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
487
|
+
}
|
488
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
489
|
+
if (!Symbol.asyncIterator)
|
490
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
491
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
492
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
493
|
+
function verb(n) { if (g[n])
|
494
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
495
|
+
function resume(n, v) { try {
|
496
|
+
step(g[n](v));
|
497
|
+
}
|
498
|
+
catch (e) {
|
499
|
+
settle(q[0][3], e);
|
500
|
+
} }
|
501
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
502
|
+
function fulfill(value) { resume("next", value); }
|
503
|
+
function reject(value) { resume("throw", value); }
|
504
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
505
|
+
resume(q[0][0], q[0][1]); }
|
506
|
+
}
|
507
|
+
function __asyncDelegator(o) {
|
508
|
+
var i, p;
|
509
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
510
|
+
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; }
|
511
|
+
}
|
512
|
+
function __asyncValues(o) {
|
513
|
+
if (!Symbol.asyncIterator)
|
514
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
515
|
+
var m = o[Symbol.asyncIterator], i;
|
516
|
+
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);
|
517
|
+
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); }); }; }
|
518
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
519
|
+
}
|
520
|
+
function __makeTemplateObject(cooked, raw) {
|
521
|
+
if (Object.defineProperty) {
|
522
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
523
|
+
}
|
524
|
+
else {
|
525
|
+
cooked.raw = raw;
|
526
|
+
}
|
527
|
+
return cooked;
|
528
|
+
}
|
529
|
+
;
|
530
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
531
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
532
|
+
}) : function (o, v) {
|
533
|
+
o["default"] = v;
|
534
|
+
};
|
535
|
+
function __importStar(mod) {
|
536
|
+
if (mod && mod.__esModule)
|
537
|
+
return mod;
|
538
|
+
var result = {};
|
539
|
+
if (mod != null)
|
540
|
+
for (var k in mod)
|
541
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
542
|
+
__createBinding(result, mod, k);
|
543
|
+
__setModuleDefault(result, mod);
|
544
|
+
return result;
|
545
|
+
}
|
546
|
+
function __importDefault(mod) {
|
547
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
548
|
+
}
|
549
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
550
|
+
if (!privateMap.has(receiver)) {
|
551
|
+
throw new TypeError("attempted to get private field on non-instance");
|
552
|
+
}
|
553
|
+
return privateMap.get(receiver);
|
554
|
+
}
|
555
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
556
|
+
if (!privateMap.has(receiver)) {
|
557
|
+
throw new TypeError("attempted to set private field on non-instance");
|
558
|
+
}
|
559
|
+
privateMap.set(receiver, value);
|
560
|
+
return value;
|
561
|
+
}
|
562
|
+
|
498
563
|
/**
|
499
564
|
* @record
|
500
565
|
*/
|
@@ -560,6 +625,12 @@
|
|
560
625
|
IDraggableRefs.prototype.dragRefSubject;
|
561
626
|
}
|
562
627
|
var TdDialogService = /** @class */ (function () {
|
628
|
+
/**
|
629
|
+
* @param {?} _document
|
630
|
+
* @param {?} _dialogService
|
631
|
+
* @param {?} _dragDrop
|
632
|
+
* @param {?} rendererFactory
|
633
|
+
*/
|
563
634
|
function TdDialogService(_document, _dialogService, _dragDrop, rendererFactory) {
|
564
635
|
this._document = _document;
|
565
636
|
this._dialogService = _dialogService;
|
@@ -567,13 +638,6 @@
|
|
567
638
|
this.rendererFactory = rendererFactory;
|
568
639
|
this._renderer2 = rendererFactory.createRenderer(undefined, undefined);
|
569
640
|
}
|
570
|
-
/**
|
571
|
-
* params:
|
572
|
-
* - component: ComponentType<T>
|
573
|
-
* - config: MatDialogConfig
|
574
|
-
* Wrapper function over the open() method in MatDialog.
|
575
|
-
* Opens a modal dialog containing the given component.
|
576
|
-
*/
|
577
641
|
/**
|
578
642
|
* params:
|
579
643
|
* - component: ComponentType<T>
|
@@ -585,49 +649,17 @@
|
|
585
649
|
* @param {?=} config
|
586
650
|
* @return {?}
|
587
651
|
*/
|
588
|
-
TdDialogService.prototype.open =
|
589
|
-
* params:
|
590
|
-
* - component: ComponentType<T>
|
591
|
-
* - config: MatDialogConfig
|
592
|
-
* Wrapper function over the open() method in MatDialog.
|
593
|
-
* Opens a modal dialog containing the given component.
|
594
|
-
* @template T
|
595
|
-
* @param {?} component
|
596
|
-
* @param {?=} config
|
597
|
-
* @return {?}
|
598
|
-
*/
|
599
|
-
function (component, config) {
|
652
|
+
TdDialogService.prototype.open = function (component, config) {
|
600
653
|
return this._dialogService.open(component, config);
|
601
654
|
};
|
602
655
|
/**
|
603
|
-
* Wrapper function over the closeAll() method in MatDialog.
|
604
|
-
* Closes all of the currently-open dialogs.
|
605
|
-
*/
|
606
|
-
/**
|
607
|
-
* Wrapper function over the closeAll() method in MatDialog.
|
608
|
-
* Closes all of the currently-open dialogs.
|
609
|
-
* @return {?}
|
610
|
-
*/
|
611
|
-
TdDialogService.prototype.closeAll = /**
|
612
656
|
* Wrapper function over the closeAll() method in MatDialog.
|
613
657
|
* Closes all of the currently-open dialogs.
|
614
658
|
* @return {?}
|
615
659
|
*/
|
616
|
-
function () {
|
660
|
+
TdDialogService.prototype.closeAll = function () {
|
617
661
|
this._dialogService.closeAll();
|
618
662
|
};
|
619
|
-
/**
|
620
|
-
* params:
|
621
|
-
* - config: IAlertConfig {
|
622
|
-
* message: string;
|
623
|
-
* title?: string;
|
624
|
-
* viewContainerRef?: ViewContainerRef;
|
625
|
-
* closeButton?: string;
|
626
|
-
* }
|
627
|
-
*
|
628
|
-
* Opens an alert dialog with the provided config.
|
629
|
-
* Returns an MatDialogRef<TdAlertDialogComponent> object.
|
630
|
-
*/
|
631
663
|
/**
|
632
664
|
* params:
|
633
665
|
* - config: IAlertConfig {
|
@@ -642,21 +674,7 @@
|
|
642
674
|
* @param {?} config
|
643
675
|
* @return {?}
|
644
676
|
*/
|
645
|
-
TdDialogService.prototype.openAlert =
|
646
|
-
* params:
|
647
|
-
* - config: IAlertConfig {
|
648
|
-
* message: string;
|
649
|
-
* title?: string;
|
650
|
-
* viewContainerRef?: ViewContainerRef;
|
651
|
-
* closeButton?: string;
|
652
|
-
* }
|
653
|
-
*
|
654
|
-
* Opens an alert dialog with the provided config.
|
655
|
-
* Returns an MatDialogRef<TdAlertDialogComponent> object.
|
656
|
-
* @param {?} config
|
657
|
-
* @return {?}
|
658
|
-
*/
|
659
|
-
function (config) {
|
677
|
+
TdDialogService.prototype.openAlert = function (config) {
|
660
678
|
/** @type {?} */
|
661
679
|
var dialogConfig = this._createConfig(config);
|
662
680
|
/** @type {?} */
|
@@ -671,36 +689,6 @@
|
|
671
689
|
return dialogRef;
|
672
690
|
};
|
673
691
|
/**
|
674
|
-
* params:
|
675
|
-
* - config: IConfirmConfig {
|
676
|
-
* message: string;
|
677
|
-
* title?: string;
|
678
|
-
* viewContainerRef?: ViewContainerRef;
|
679
|
-
* acceptButton?: string;
|
680
|
-
* cancelButton?: string;
|
681
|
-
* isDestructive?: boolean;
|
682
|
-
* }
|
683
|
-
*
|
684
|
-
* Opens a confirm dialog with the provided config.
|
685
|
-
* Returns an MatDialogRef<TdConfirmDialogComponent> object.
|
686
|
-
*/
|
687
|
-
/**
|
688
|
-
* params:
|
689
|
-
* - config: IConfirmConfig {
|
690
|
-
* message: string;
|
691
|
-
* title?: string;
|
692
|
-
* viewContainerRef?: ViewContainerRef;
|
693
|
-
* acceptButton?: string;
|
694
|
-
* cancelButton?: string;
|
695
|
-
* isDestructive?: boolean;
|
696
|
-
* }
|
697
|
-
*
|
698
|
-
* Opens a confirm dialog with the provided config.
|
699
|
-
* Returns an MatDialogRef<TdConfirmDialogComponent> object.
|
700
|
-
* @param {?} config
|
701
|
-
* @return {?}
|
702
|
-
*/
|
703
|
-
TdDialogService.prototype.openConfirm = /**
|
704
692
|
* params:
|
705
693
|
* - config: IConfirmConfig {
|
706
694
|
* message: string;
|
@@ -716,7 +704,7 @@
|
|
716
704
|
* @param {?} config
|
717
705
|
* @return {?}
|
718
706
|
*/
|
719
|
-
function (config) {
|
707
|
+
TdDialogService.prototype.openConfirm = function (config) {
|
720
708
|
/** @type {?} */
|
721
709
|
var dialogConfig = this._createConfig(config);
|
722
710
|
/** @type {?} */
|
@@ -737,36 +725,6 @@
|
|
737
725
|
return dialogRef;
|
738
726
|
};
|
739
727
|
/**
|
740
|
-
* params:
|
741
|
-
* - config: IPromptConfig {
|
742
|
-
* message: string;
|
743
|
-
* title?: string;
|
744
|
-
* value?: string;
|
745
|
-
* viewContainerRef?: ViewContainerRef;
|
746
|
-
* acceptButton?: string;
|
747
|
-
* cancelButton?: string;
|
748
|
-
* }
|
749
|
-
*
|
750
|
-
* Opens a prompt dialog with the provided config.
|
751
|
-
* Returns an MatDialogRef<TdPromptDialogComponent> object.
|
752
|
-
*/
|
753
|
-
/**
|
754
|
-
* params:
|
755
|
-
* - config: IPromptConfig {
|
756
|
-
* message: string;
|
757
|
-
* title?: string;
|
758
|
-
* value?: string;
|
759
|
-
* viewContainerRef?: ViewContainerRef;
|
760
|
-
* acceptButton?: string;
|
761
|
-
* cancelButton?: string;
|
762
|
-
* }
|
763
|
-
*
|
764
|
-
* Opens a prompt dialog with the provided config.
|
765
|
-
* Returns an MatDialogRef<TdPromptDialogComponent> object.
|
766
|
-
* @param {?} config
|
767
|
-
* @return {?}
|
768
|
-
*/
|
769
|
-
TdDialogService.prototype.openPrompt = /**
|
770
728
|
* params:
|
771
729
|
* - config: IPromptConfig {
|
772
730
|
* message: string;
|
@@ -782,7 +740,7 @@
|
|
782
740
|
* @param {?} config
|
783
741
|
* @return {?}
|
784
742
|
*/
|
785
|
-
function (config) {
|
743
|
+
TdDialogService.prototype.openPrompt = function (config) {
|
786
744
|
/** @type {?} */
|
787
745
|
var dialogConfig = this._createConfig(config);
|
788
746
|
/** @type {?} */
|
@@ -800,22 +758,13 @@
|
|
800
758
|
}
|
801
759
|
return dialogRef;
|
802
760
|
};
|
803
|
-
/**
|
804
|
-
* Opens a draggable dialog containing the given component.
|
805
|
-
*/
|
806
761
|
/**
|
807
762
|
* Opens a draggable dialog containing the given component.
|
808
763
|
* @template T
|
809
764
|
* @param {?} __0
|
810
765
|
* @return {?}
|
811
766
|
*/
|
812
|
-
TdDialogService.prototype.openDraggable =
|
813
|
-
* Opens a draggable dialog containing the given component.
|
814
|
-
* @template T
|
815
|
-
* @param {?} __0
|
816
|
-
* @return {?}
|
817
|
-
*/
|
818
|
-
function (_a) {
|
767
|
+
TdDialogService.prototype.openDraggable = function (_a) {
|
819
768
|
var _this = this;
|
820
769
|
var component = _a.component, config = _a.config, dragHandleSelectors = _a.dragHandleSelectors, draggableClass = _a.draggableClass;
|
821
770
|
/** @type {?} */
|
@@ -826,12 +775,11 @@
|
|
826
775
|
var CDK_OVERLAY_PANE_SELECTOR = '.cdk-overlay-pane';
|
827
776
|
/** @type {?} */
|
828
777
|
var CDK_OVERLAY_CONTAINER_SELECTOR = '.cdk-overlay-container';
|
829
|
-
matDialogRef.afterOpened().subscribe((/**
|
778
|
+
matDialogRef.afterOpened().subscribe(( /**
|
830
779
|
* @return {?}
|
831
|
-
*/
|
832
|
-
function () {
|
780
|
+
*/function () {
|
833
781
|
/** @type {?} */
|
834
|
-
var dialogElement = (/** @type {?} */
|
782
|
+
var dialogElement = ( /** @type {?} */(_this._document.getElementById(matDialogRef.id)));
|
835
783
|
/** @type {?} */
|
836
784
|
var draggableElement = _this._dragDrop.createDrag(dialogElement);
|
837
785
|
if (draggableClass) {
|
@@ -841,25 +789,24 @@
|
|
841
789
|
}
|
842
790
|
if (dragHandleSelectors && dragHandleSelectors.length) {
|
843
791
|
/** @type {?} */
|
844
|
-
var dragHandles = dragHandleSelectors.reduce((/**
|
792
|
+
var dragHandles = dragHandleSelectors.reduce(( /**
|
845
793
|
* @param {?} acc
|
846
794
|
* @param {?} curr
|
847
795
|
* @return {?}
|
848
|
-
*/
|
849
|
-
function (acc, curr) { return __spread(acc, Array.from(dialogElement.querySelectorAll(curr))); }), []);
|
796
|
+
*/function (acc, curr) { return __spread(acc, Array.from(dialogElement.querySelectorAll(curr))); }), []);
|
850
797
|
if (dragHandles.length > 0) {
|
851
|
-
draggableElement.withHandles((/** @type {?} */
|
798
|
+
draggableElement.withHandles(( /** @type {?} */(dragHandles)));
|
852
799
|
}
|
853
800
|
}
|
854
801
|
/** @type {?} */
|
855
802
|
var rootElement = dialogElement.closest(CDK_OVERLAY_PANE_SELECTOR);
|
856
803
|
if (rootElement) {
|
857
|
-
draggableElement.withRootElement((/** @type {?} */
|
804
|
+
draggableElement.withRootElement(( /** @type {?} */(rootElement)));
|
858
805
|
}
|
859
806
|
/** @type {?} */
|
860
807
|
var boundaryElement = dialogElement.closest(CDK_OVERLAY_CONTAINER_SELECTOR);
|
861
808
|
if (boundaryElement) {
|
862
|
-
draggableElement.withBoundaryElement((/** @type {?} */
|
809
|
+
draggableElement.withBoundaryElement(( /** @type {?} */(boundaryElement)));
|
863
810
|
}
|
864
811
|
dragRefSubject.next(draggableElement);
|
865
812
|
}));
|
@@ -870,30 +817,25 @@
|
|
870
817
|
* @param {?} config
|
871
818
|
* @return {?}
|
872
819
|
*/
|
873
|
-
TdDialogService.prototype._createConfig =
|
874
|
-
* @private
|
875
|
-
* @param {?} config
|
876
|
-
* @return {?}
|
877
|
-
*/
|
878
|
-
function (config) {
|
820
|
+
TdDialogService.prototype._createConfig = function (config) {
|
879
821
|
/** @type {?} */
|
880
822
|
var dialogConfig = new dialog.MatDialogConfig();
|
881
823
|
dialogConfig.width = '400px';
|
882
824
|
Object.assign(dialogConfig, config);
|
883
825
|
return dialogConfig;
|
884
826
|
};
|
885
|
-
TdDialogService.decorators = [
|
886
|
-
{ type: core.Injectable }
|
887
|
-
];
|
888
|
-
/** @nocollapse */
|
889
|
-
TdDialogService.ctorParameters = function () { return [
|
890
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
|
891
|
-
{ type: dialog.MatDialog },
|
892
|
-
{ type: dragDrop.DragDrop },
|
893
|
-
{ type: core.RendererFactory2 }
|
894
|
-
]; };
|
895
827
|
return TdDialogService;
|
896
828
|
}());
|
829
|
+
TdDialogService.decorators = [
|
830
|
+
{ type: core.Injectable }
|
831
|
+
];
|
832
|
+
/** @nocollapse */
|
833
|
+
TdDialogService.ctorParameters = function () { return [
|
834
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
|
835
|
+
{ type: dialog.MatDialog },
|
836
|
+
{ type: dragDrop.DragDrop },
|
837
|
+
{ type: core.RendererFactory2 }
|
838
|
+
]; };
|
897
839
|
if (false) {
|
898
840
|
/**
|
899
841
|
* @type {?}
|
@@ -924,7 +866,8 @@
|
|
924
866
|
|
925
867
|
/**
|
926
868
|
* @fileoverview added by tsickle
|
927
|
-
*
|
869
|
+
* Generated from: window-dialog/window-dialog.component.ts
|
870
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
928
871
|
*/
|
929
872
|
var TdWindowDialogComponent = /** @class */ (function () {
|
930
873
|
function TdWindowDialogComponent() {
|
@@ -936,31 +879,28 @@
|
|
936
879
|
/**
|
937
880
|
* @return {?}
|
938
881
|
*/
|
939
|
-
TdWindowDialogComponent.prototype.toggleDockedState =
|
940
|
-
* @return {?}
|
941
|
-
*/
|
942
|
-
function () {
|
882
|
+
TdWindowDialogComponent.prototype.toggleDockedState = function () {
|
943
883
|
this.dockToggled.emit(this.docked);
|
944
884
|
};
|
945
|
-
TdWindowDialogComponent.decorators = [
|
946
|
-
{ type: core.Component, args: [{
|
947
|
-
selector: 'td-window-dialog',
|
948
|
-
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",
|
949
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
950
|
-
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}"]
|
951
|
-
}] }
|
952
|
-
];
|
953
|
-
TdWindowDialogComponent.propDecorators = {
|
954
|
-
toolbarColor: [{ type: core.Input }],
|
955
|
-
docked: [{ type: core.Input }],
|
956
|
-
title: [{ type: core.Input }],
|
957
|
-
toggleDockedStateLabel: [{ type: core.Input }],
|
958
|
-
closeLabel: [{ type: core.Input }],
|
959
|
-
dockToggled: [{ type: core.Output }],
|
960
|
-
closed: [{ type: core.Output }]
|
961
|
-
};
|
962
885
|
return TdWindowDialogComponent;
|
963
886
|
}());
|
887
|
+
TdWindowDialogComponent.decorators = [
|
888
|
+
{ type: core.Component, args: [{
|
889
|
+
selector: 'td-window-dialog',
|
890
|
+
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",
|
891
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
892
|
+
styles: [":host{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;height:100%}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.td-window-dialog-toolbar{background:none}.td-window-dialog-title{margin-bottom:0}.td-window-dialog-close{margin-right:-8px}::ng-deep .td-window-dialog .mat-dialog-container{padding:0}"]
|
893
|
+
}] }
|
894
|
+
];
|
895
|
+
TdWindowDialogComponent.propDecorators = {
|
896
|
+
toolbarColor: [{ type: core.Input }],
|
897
|
+
docked: [{ type: core.Input }],
|
898
|
+
title: [{ type: core.Input }],
|
899
|
+
toggleDockedStateLabel: [{ type: core.Input }],
|
900
|
+
closeLabel: [{ type: core.Input }],
|
901
|
+
dockToggled: [{ type: core.Output }],
|
902
|
+
closed: [{ type: core.Output }]
|
903
|
+
};
|
964
904
|
if (false) {
|
965
905
|
/** @type {?} */
|
966
906
|
TdWindowDialogComponent.prototype.toolbarColor;
|
@@ -982,7 +922,8 @@
|
|
982
922
|
|
983
923
|
/**
|
984
924
|
* @fileoverview added by tsickle
|
985
|
-
*
|
925
|
+
* Generated from: dialogs.module.ts
|
926
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
986
927
|
*/
|
987
928
|
/** @type {?} */
|
988
929
|
var TD_DIALOGS = [
|
@@ -1004,51 +945,47 @@
|
|
1004
945
|
var CovalentDialogsModule = /** @class */ (function () {
|
1005
946
|
function CovalentDialogsModule() {
|
1006
947
|
}
|
1007
|
-
CovalentDialogsModule.decorators = [
|
1008
|
-
{ type: core.NgModule, args: [{
|
1009
|
-
imports: [
|
1010
|
-
forms.FormsModule,
|
1011
|
-
common.CommonModule,
|
1012
|
-
dialog.MatDialogModule,
|
1013
|
-
input.MatInputModule,
|
1014
|
-
button.MatButtonModule,
|
1015
|
-
toolbar.MatToolbarModule,
|
1016
|
-
tooltip.MatTooltipModule,
|
1017
|
-
icon.MatIconModule,
|
1018
|
-
],
|
1019
|
-
declarations: [TD_DIALOGS],
|
1020
|
-
exports: [TD_DIALOGS],
|
1021
|
-
providers: [TdDialogService],
|
1022
|
-
},] }
|
1023
|
-
];
|
1024
948
|
return CovalentDialogsModule;
|
1025
949
|
}());
|
950
|
+
CovalentDialogsModule.decorators = [
|
951
|
+
{ type: core.NgModule, args: [{
|
952
|
+
imports: [
|
953
|
+
forms.FormsModule,
|
954
|
+
common.CommonModule,
|
955
|
+
dialog.MatDialogModule,
|
956
|
+
input.MatInputModule,
|
957
|
+
button.MatButtonModule,
|
958
|
+
toolbar.MatToolbarModule,
|
959
|
+
tooltip.MatTooltipModule,
|
960
|
+
icon.MatIconModule,
|
961
|
+
],
|
962
|
+
declarations: [TD_DIALOGS],
|
963
|
+
exports: [TD_DIALOGS],
|
964
|
+
providers: [TdDialogService],
|
965
|
+
},] }
|
966
|
+
];
|
1026
967
|
|
1027
|
-
/**
|
1028
|
-
* @fileoverview added by tsickle
|
1029
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1030
|
-
*/
|
1031
968
|
/** @enum {string} */
|
1032
969
|
var corners = {
|
1033
|
-
topRight:
|
1034
|
-
bottomRight:
|
1035
|
-
bottomLeft:
|
1036
|
-
topLeft:
|
970
|
+
topRight: "topRight",
|
971
|
+
bottomRight: "bottomRight",
|
972
|
+
bottomLeft: "bottomLeft",
|
973
|
+
topLeft: "topLeft",
|
1037
974
|
};
|
1038
975
|
/** @enum {string} */
|
1039
976
|
var cursors = {
|
1040
|
-
nesw:
|
1041
|
-
nwse:
|
977
|
+
nesw: "nesw-resize",
|
978
|
+
nwse: "nwse-resize",
|
1042
979
|
};
|
1043
980
|
/** @enum {string} */
|
1044
981
|
var verticalAlignment = {
|
1045
|
-
top:
|
1046
|
-
bottom:
|
982
|
+
top: "top",
|
983
|
+
bottom: "bottom",
|
1047
984
|
};
|
1048
985
|
/** @enum {string} */
|
1049
986
|
var horizontalAlignment = {
|
1050
|
-
right:
|
1051
|
-
left:
|
987
|
+
right: "right",
|
988
|
+
left: "left",
|
1052
989
|
};
|
1053
990
|
/** @type {?} */
|
1054
991
|
var cornerWidth = '16px';
|
@@ -1075,6 +1012,12 @@
|
|
1075
1012
|
return Math.min(Math.max(num, min), max);
|
1076
1013
|
}
|
1077
1014
|
var ResizableDraggableDialog = /** @class */ (function () {
|
1015
|
+
/**
|
1016
|
+
* @param {?} _document
|
1017
|
+
* @param {?} _renderer2
|
1018
|
+
* @param {?} _dialogRef
|
1019
|
+
* @param {?} _dragRef
|
1020
|
+
*/
|
1078
1021
|
function ResizableDraggableDialog(_document, _renderer2, _dialogRef, _dragRef) {
|
1079
1022
|
this._document = _document;
|
1080
1023
|
this._renderer2 = _renderer2;
|
@@ -1088,65 +1031,45 @@
|
|
1088
1031
|
/**
|
1089
1032
|
* @return {?}
|
1090
1033
|
*/
|
1091
|
-
ResizableDraggableDialog.prototype.attach =
|
1092
|
-
* @return {?}
|
1093
|
-
*/
|
1094
|
-
function () {
|
1034
|
+
ResizableDraggableDialog.prototype.attach = function () {
|
1095
1035
|
this.detach();
|
1096
1036
|
this._attachCorners();
|
1097
1037
|
};
|
1098
1038
|
/**
|
1099
1039
|
* @return {?}
|
1100
1040
|
*/
|
1101
|
-
ResizableDraggableDialog.prototype.detach =
|
1102
|
-
* @return {?}
|
1103
|
-
*/
|
1104
|
-
function () {
|
1041
|
+
ResizableDraggableDialog.prototype.detach = function () {
|
1105
1042
|
var _this = this;
|
1106
|
-
this.pointerDownSubs.forEach((/**
|
1043
|
+
this.pointerDownSubs.forEach(( /**
|
1107
1044
|
* @param {?} sub
|
1108
1045
|
* @return {?}
|
1109
|
-
*/
|
1110
|
-
function (sub) { return sub.unsubscribe(); }));
|
1046
|
+
*/function (sub) { return sub.unsubscribe(); }));
|
1111
1047
|
this.pointerDownSubs = [];
|
1112
|
-
this.cornerElements.forEach((/**
|
1048
|
+
this.cornerElements.forEach(( /**
|
1113
1049
|
* @param {?} elem
|
1114
1050
|
* @return {?}
|
1115
|
-
*/
|
1116
|
-
function (elem) { return _this._renderer2.removeChild(_this._getDialogWrapper(), elem); }));
|
1051
|
+
*/function (elem) { return _this._renderer2.removeChild(_this._getDialogWrapper(), elem); }));
|
1117
1052
|
this.cornerElements = [];
|
1118
1053
|
};
|
1119
1054
|
/**
|
1120
1055
|
* @private
|
1121
1056
|
* @return {?}
|
1122
1057
|
*/
|
1123
|
-
ResizableDraggableDialog.prototype._getDialogWrapper =
|
1124
|
-
|
1125
|
-
* @return {?}
|
1126
|
-
*/
|
1127
|
-
function () {
|
1128
|
-
return ((/** @type {?} */ (this._document.getElementById(this._dialogRef.id))) || {}).parentElement;
|
1058
|
+
ResizableDraggableDialog.prototype._getDialogWrapper = function () {
|
1059
|
+
return (( /** @type {?} */(this._document.getElementById(this._dialogRef.id))) || {}).parentElement;
|
1129
1060
|
};
|
1130
1061
|
/**
|
1131
1062
|
* @private
|
1132
1063
|
* @return {?}
|
1133
1064
|
*/
|
1134
|
-
ResizableDraggableDialog.prototype._getViewportDimensions =
|
1135
|
-
* @private
|
1136
|
-
* @return {?}
|
1137
|
-
*/
|
1138
|
-
function () {
|
1065
|
+
ResizableDraggableDialog.prototype._getViewportDimensions = function () {
|
1139
1066
|
return this._getDialogWrapper().parentElement.getBoundingClientRect();
|
1140
1067
|
};
|
1141
1068
|
/**
|
1142
1069
|
* @private
|
1143
1070
|
* @return {?}
|
1144
1071
|
*/
|
1145
|
-
ResizableDraggableDialog.prototype._getDialogWrapperDimensions =
|
1146
|
-
* @private
|
1147
|
-
* @return {?}
|
1148
|
-
*/
|
1149
|
-
function () {
|
1072
|
+
ResizableDraggableDialog.prototype._getDialogWrapperDimensions = function () {
|
1150
1073
|
/** @type {?} */
|
1151
1074
|
var dimensions = getComputedStyle(this._getDialogWrapper());
|
1152
1075
|
return {
|
@@ -1158,11 +1081,7 @@
|
|
1158
1081
|
* @private
|
1159
1082
|
* @return {?}
|
1160
1083
|
*/
|
1161
|
-
ResizableDraggableDialog.prototype._initialPositionReset =
|
1162
|
-
* @private
|
1163
|
-
* @return {?}
|
1164
|
-
*/
|
1165
|
-
function () {
|
1084
|
+
ResizableDraggableDialog.prototype._initialPositionReset = function () {
|
1166
1085
|
var _a = this._getViewportDimensions(), viewportWidth = _a.right, viewportHeight = _a.bottom;
|
1167
1086
|
var _b = this._getDialogWrapperDimensions(), width = _b.width, height = _b.height;
|
1168
1087
|
var _c = this._getDialogWrapper().style, originalDialogRight = _c.marginRight, originalDialogLeft = _c.marginLeft, originalDialogBottom = _c.marginBottom, originalDialogTop = _c.marginTop;
|
@@ -1196,17 +1115,12 @@
|
|
1196
1115
|
* @private
|
1197
1116
|
* @return {?}
|
1198
1117
|
*/
|
1199
|
-
ResizableDraggableDialog.prototype._attachCorners =
|
1200
|
-
* @private
|
1201
|
-
* @return {?}
|
1202
|
-
*/
|
1203
|
-
function () {
|
1118
|
+
ResizableDraggableDialog.prototype._attachCorners = function () {
|
1204
1119
|
var _this = this;
|
1205
|
-
Object.values(corners).forEach((/**
|
1120
|
+
Object.values(corners).forEach(( /**
|
1206
1121
|
* @param {?} corner
|
1207
1122
|
* @return {?}
|
1208
|
-
*/
|
1209
|
-
function (corner) {
|
1123
|
+
*/function (corner) {
|
1210
1124
|
/** @type {?} */
|
1211
1125
|
var element = _this._renderer2.createElement('div');
|
1212
1126
|
_this.cornerElements = __spread(_this.cornerElements, [element]);
|
@@ -1251,11 +1165,10 @@
|
|
1251
1165
|
_this._renderer2.setStyle(element, rightLeft, offset);
|
1252
1166
|
_this._renderer2.setStyle(element, 'cursor', cursor);
|
1253
1167
|
/** @type {?} */
|
1254
|
-
var pointerDownSub = rxjs.fromEvent(element, 'pointerdown').subscribe((/**
|
1168
|
+
var pointerDownSub = rxjs.fromEvent(element, 'pointerdown').subscribe(( /**
|
1255
1169
|
* @param {?} event
|
1256
1170
|
* @return {?}
|
1257
|
-
*/
|
1258
|
-
function (event) {
|
1171
|
+
*/function (event) {
|
1259
1172
|
_this._handleMouseDown(event, corner);
|
1260
1173
|
}));
|
1261
1174
|
_this.pointerDownSubs = __spread(_this.pointerDownSubs, [pointerDownSub]);
|
@@ -1267,15 +1180,9 @@
|
|
1267
1180
|
* @param {?} corner
|
1268
1181
|
* @return {?}
|
1269
1182
|
*/
|
1270
|
-
ResizableDraggableDialog.prototype._handleMouseDown =
|
1271
|
-
* @private
|
1272
|
-
* @param {?} event
|
1273
|
-
* @param {?} corner
|
1274
|
-
* @return {?}
|
1275
|
-
*/
|
1276
|
-
function (event, corner) {
|
1183
|
+
ResizableDraggableDialog.prototype._handleMouseDown = function (event, corner) {
|
1277
1184
|
var _this = this;
|
1278
|
-
this._renderer2.setStyle((/** @type {?} */
|
1185
|
+
this._renderer2.setStyle(( /** @type {?} */(this._document.body)), 'user-select', 'none');
|
1279
1186
|
var _a = this._getDialogWrapperDimensions(), originalWidth = _a.width, originalHeight = _a.height;
|
1280
1187
|
/** @type {?} */
|
1281
1188
|
var originalMouseX = event.pageX;
|
@@ -1285,11 +1192,10 @@
|
|
1285
1192
|
var _c = this._getDialogWrapper().getBoundingClientRect(), distanceFromBottom = _c.bottom, distanceFromRight = _c.right;
|
1286
1193
|
var _d = this._getViewportDimensions(), viewportWidth = _d.right, viewportHeight = _d.bottom;
|
1287
1194
|
/** @type {?} */
|
1288
|
-
var mouseMoveSub = rxjs.fromEvent(window, 'pointermove').subscribe((/**
|
1195
|
+
var mouseMoveSub = rxjs.fromEvent(window, 'pointermove').subscribe(( /**
|
1289
1196
|
* @param {?} e
|
1290
1197
|
* @return {?}
|
1291
|
-
*/
|
1292
|
-
function (e) {
|
1198
|
+
*/function (e) {
|
1293
1199
|
e.preventDefault(); // prevent highlighting of text when dragging
|
1294
1200
|
// prevent highlighting of text when dragging
|
1295
1201
|
/** @type {?} */
|
@@ -1339,11 +1245,10 @@
|
|
1339
1245
|
});
|
1340
1246
|
}));
|
1341
1247
|
/** @type {?} */
|
1342
|
-
var mouseUpSub = rxjs.merge(rxjs.fromEvent(window, 'pointerup'), rxjs.fromEvent(window, 'pointercancel')).subscribe((/**
|
1248
|
+
var mouseUpSub = rxjs.merge(rxjs.fromEvent(window, 'pointerup'), rxjs.fromEvent(window, 'pointercancel')).subscribe(( /**
|
1343
1249
|
* @return {?}
|
1344
|
-
*/
|
1345
|
-
|
1346
|
-
_this._renderer2.removeStyle((/** @type {?} */ (_this._document.body)), 'user-select');
|
1250
|
+
*/function () {
|
1251
|
+
_this._renderer2.removeStyle(( /** @type {?} */(_this._document.body)), 'user-select');
|
1347
1252
|
mouseMoveSub.unsubscribe();
|
1348
1253
|
mouseUpSub.unsubscribe();
|
1349
1254
|
}));
|
@@ -1377,6 +1282,24 @@
|
|
1377
1282
|
ResizableDraggableDialog.prototype._dragRef;
|
1378
1283
|
}
|
1379
1284
|
|
1285
|
+
/**
|
1286
|
+
* @fileoverview added by tsickle
|
1287
|
+
* Generated from: public-api.ts
|
1288
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1289
|
+
*/
|
1290
|
+
|
1291
|
+
/**
|
1292
|
+
* @fileoverview added by tsickle
|
1293
|
+
* Generated from: index.ts
|
1294
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1295
|
+
*/
|
1296
|
+
|
1297
|
+
/**
|
1298
|
+
* @fileoverview added by tsickle
|
1299
|
+
* Generated from: covalent-core-dialogs.ts
|
1300
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1301
|
+
*/
|
1302
|
+
|
1380
1303
|
exports.CovalentDialogsModule = CovalentDialogsModule;
|
1381
1304
|
exports.ResizableDraggableDialog = ResizableDraggableDialog;
|
1382
1305
|
exports.TdAlertDialogComponent = TdAlertDialogComponent;
|