@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,1068 +0,0 @@
|
|
1
|
-
import { EventEmitter, Directive, Optional, Host, Input, Output, HostBinding, HostListener, Renderer2, ElementRef, TemplateRef, ViewContainerRef, Component, ChangeDetectionStrategy, forwardRef, ChangeDetectorRef, ViewChild, ContentChild, Injectable, NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { NgModel, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
4
|
-
import { TemplatePortalDirective, PortalModule } from '@angular/cdk/portal';
|
5
|
-
import { MatIconModule } from '@angular/material/icon';
|
6
|
-
import { MatButtonModule } from '@angular/material/button';
|
7
|
-
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
8
|
-
import { __extends } from 'tslib';
|
9
|
-
import { mixinDisabled, mixinControlValueAccessor } from '@covalent/core/common';
|
10
|
-
import { HttpRequest, HttpHeaders, HttpParams, HttpEventType, HttpClient } from '@angular/common/http';
|
11
|
-
import { Subject } from 'rxjs';
|
12
|
-
import { tap } from 'rxjs/operators';
|
13
|
-
|
14
|
-
/**
|
15
|
-
* @fileoverview added by tsickle
|
16
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
17
|
-
*/
|
18
|
-
var TdFileSelectDirective = /** @class */ (function () {
|
19
|
-
function TdFileSelectDirective(model) {
|
20
|
-
this.model = model;
|
21
|
-
this._multiple = false;
|
22
|
-
/**
|
23
|
-
* fileSelect?: function
|
24
|
-
* Event emitted when a file or files are selected in host [HTMLInputElement].
|
25
|
-
* Emits a [FileList | File] object.
|
26
|
-
* Alternative to not use [(ngModel)].
|
27
|
-
*/
|
28
|
-
this.fileSelect = new EventEmitter();
|
29
|
-
}
|
30
|
-
Object.defineProperty(TdFileSelectDirective.prototype, "multiple", {
|
31
|
-
/**
|
32
|
-
* multiple?: boolean
|
33
|
-
* Sets whether multiple files can be selected at once in host element, or just a single file.
|
34
|
-
* Can also be 'multiple' native attribute.
|
35
|
-
*/
|
36
|
-
set: /**
|
37
|
-
* multiple?: boolean
|
38
|
-
* Sets whether multiple files can be selected at once in host element, or just a single file.
|
39
|
-
* Can also be 'multiple' native attribute.
|
40
|
-
* @param {?} multiple
|
41
|
-
* @return {?}
|
42
|
-
*/
|
43
|
-
function (multiple) {
|
44
|
-
this._multiple = coerceBooleanProperty(multiple);
|
45
|
-
},
|
46
|
-
enumerable: true,
|
47
|
-
configurable: true
|
48
|
-
});
|
49
|
-
Object.defineProperty(TdFileSelectDirective.prototype, "multipleBinding", {
|
50
|
-
/**
|
51
|
-
* Binds native 'multiple' attribute if [multiple] property is 'true'.
|
52
|
-
*/
|
53
|
-
get: /**
|
54
|
-
* Binds native 'multiple' attribute if [multiple] property is 'true'.
|
55
|
-
* @return {?}
|
56
|
-
*/
|
57
|
-
function () {
|
58
|
-
return this._multiple ? '' : undefined;
|
59
|
-
},
|
60
|
-
enumerable: true,
|
61
|
-
configurable: true
|
62
|
-
});
|
63
|
-
/**
|
64
|
-
* Listens to 'change' host event to get [HTMLInputElement] files.
|
65
|
-
* Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
66
|
-
* Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event.
|
67
|
-
*/
|
68
|
-
/**
|
69
|
-
* Listens to 'change' host event to get [HTMLInputElement] files.
|
70
|
-
* Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
71
|
-
* Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event.
|
72
|
-
* @param {?} event
|
73
|
-
* @return {?}
|
74
|
-
*/
|
75
|
-
TdFileSelectDirective.prototype.onChange = /**
|
76
|
-
* Listens to 'change' host event to get [HTMLInputElement] files.
|
77
|
-
* Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
78
|
-
* Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event.
|
79
|
-
* @param {?} event
|
80
|
-
* @return {?}
|
81
|
-
*/
|
82
|
-
function (event) {
|
83
|
-
if (event.target instanceof HTMLInputElement) {
|
84
|
-
/** @type {?} */
|
85
|
-
var fileInputEl = event.target;
|
86
|
-
/** @type {?} */
|
87
|
-
var files = fileInputEl.files;
|
88
|
-
if (files.length) {
|
89
|
-
/** @type {?} */
|
90
|
-
var value = this._multiple ? (files.length > 1 ? files : files[0]) : files[0];
|
91
|
-
this.model ? this.model.update.emit(value) : this.fileSelect.emit(value);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
};
|
95
|
-
TdFileSelectDirective.decorators = [
|
96
|
-
{ type: Directive, args: [{
|
97
|
-
selector: '[tdFileSelect]',
|
98
|
-
},] }
|
99
|
-
];
|
100
|
-
/** @nocollapse */
|
101
|
-
TdFileSelectDirective.ctorParameters = function () { return [
|
102
|
-
{ type: NgModel, decorators: [{ type: Optional }, { type: Host }] }
|
103
|
-
]; };
|
104
|
-
TdFileSelectDirective.propDecorators = {
|
105
|
-
multiple: [{ type: Input, args: ['multiple',] }],
|
106
|
-
fileSelect: [{ type: Output }],
|
107
|
-
multipleBinding: [{ type: HostBinding, args: ['attr.multiple',] }],
|
108
|
-
onChange: [{ type: HostListener, args: ['change', ['$event'],] }]
|
109
|
-
};
|
110
|
-
return TdFileSelectDirective;
|
111
|
-
}());
|
112
|
-
if (false) {
|
113
|
-
/**
|
114
|
-
* @type {?}
|
115
|
-
* @private
|
116
|
-
*/
|
117
|
-
TdFileSelectDirective.prototype._multiple;
|
118
|
-
/**
|
119
|
-
* fileSelect?: function
|
120
|
-
* Event emitted when a file or files are selected in host [HTMLInputElement].
|
121
|
-
* Emits a [FileList | File] object.
|
122
|
-
* Alternative to not use [(ngModel)].
|
123
|
-
* @type {?}
|
124
|
-
*/
|
125
|
-
TdFileSelectDirective.prototype.fileSelect;
|
126
|
-
/**
|
127
|
-
* @type {?}
|
128
|
-
* @private
|
129
|
-
*/
|
130
|
-
TdFileSelectDirective.prototype.model;
|
131
|
-
}
|
132
|
-
|
133
|
-
/**
|
134
|
-
* @fileoverview added by tsickle
|
135
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
136
|
-
*/
|
137
|
-
var TdFileDropBase = /** @class */ (function () {
|
138
|
-
function TdFileDropBase() {
|
139
|
-
}
|
140
|
-
return TdFileDropBase;
|
141
|
-
}());
|
142
|
-
/* tslint:disable-next-line */
|
143
|
-
/** @type {?} */
|
144
|
-
var _TdFileDropMixinBase = mixinDisabled(TdFileDropBase);
|
145
|
-
var TdFileDropDirective = /** @class */ (function (_super) {
|
146
|
-
__extends(TdFileDropDirective, _super);
|
147
|
-
function TdFileDropDirective(_renderer, _element) {
|
148
|
-
var _this = _super.call(this) || this;
|
149
|
-
_this._renderer = _renderer;
|
150
|
-
_this._element = _element;
|
151
|
-
_this._multiple = false;
|
152
|
-
/**
|
153
|
-
* fileDrop?: function
|
154
|
-
* Event emitted when a file or files are dropped in host element after being validated.
|
155
|
-
* Emits a [FileList | File] object.
|
156
|
-
*/
|
157
|
-
_this.fileDrop = new EventEmitter();
|
158
|
-
return _this;
|
159
|
-
}
|
160
|
-
Object.defineProperty(TdFileDropDirective.prototype, "multiple", {
|
161
|
-
/**
|
162
|
-
* multiple?: boolean
|
163
|
-
* Sets whether multiple files can be dropped at once in host element, or just a single file.
|
164
|
-
* Can also be 'multiple' native attribute.
|
165
|
-
*/
|
166
|
-
set: /**
|
167
|
-
* multiple?: boolean
|
168
|
-
* Sets whether multiple files can be dropped at once in host element, or just a single file.
|
169
|
-
* Can also be 'multiple' native attribute.
|
170
|
-
* @param {?} multiple
|
171
|
-
* @return {?}
|
172
|
-
*/
|
173
|
-
function (multiple) {
|
174
|
-
this._multiple = coerceBooleanProperty(multiple);
|
175
|
-
},
|
176
|
-
enumerable: true,
|
177
|
-
configurable: true
|
178
|
-
});
|
179
|
-
Object.defineProperty(TdFileDropDirective.prototype, "multipleBinding", {
|
180
|
-
/**
|
181
|
-
* Binds native 'multiple' attribute if [multiple] property is 'true'.
|
182
|
-
*/
|
183
|
-
get: /**
|
184
|
-
* Binds native 'multiple' attribute if [multiple] property is 'true'.
|
185
|
-
* @return {?}
|
186
|
-
*/
|
187
|
-
function () {
|
188
|
-
return this._multiple ? '' : undefined;
|
189
|
-
},
|
190
|
-
enumerable: true,
|
191
|
-
configurable: true
|
192
|
-
});
|
193
|
-
Object.defineProperty(TdFileDropDirective.prototype, "disabledBinding", {
|
194
|
-
/**
|
195
|
-
* Binds native 'disabled' attribute if [disabled] property is 'true'.
|
196
|
-
*/
|
197
|
-
get: /**
|
198
|
-
* Binds native 'disabled' attribute if [disabled] property is 'true'.
|
199
|
-
* @return {?}
|
200
|
-
*/
|
201
|
-
function () {
|
202
|
-
return this.disabled ? '' : undefined;
|
203
|
-
},
|
204
|
-
enumerable: true,
|
205
|
-
configurable: true
|
206
|
-
});
|
207
|
-
/**
|
208
|
-
* Listens to 'drop' host event to get validated transfer items.
|
209
|
-
* Emits the 'fileDrop' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
210
|
-
* Stops event propagation and default action from browser for 'drop' event.
|
211
|
-
*/
|
212
|
-
/**
|
213
|
-
* Listens to 'drop' host event to get validated transfer items.
|
214
|
-
* Emits the 'fileDrop' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
215
|
-
* Stops event propagation and default action from browser for 'drop' event.
|
216
|
-
* @param {?} event
|
217
|
-
* @return {?}
|
218
|
-
*/
|
219
|
-
TdFileDropDirective.prototype.onDrop = /**
|
220
|
-
* Listens to 'drop' host event to get validated transfer items.
|
221
|
-
* Emits the 'fileDrop' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
222
|
-
* Stops event propagation and default action from browser for 'drop' event.
|
223
|
-
* @param {?} event
|
224
|
-
* @return {?}
|
225
|
-
*/
|
226
|
-
function (event) {
|
227
|
-
if (!this.disabled) {
|
228
|
-
/** @type {?} */
|
229
|
-
var transfer = ((/** @type {?} */ (event))).dataTransfer;
|
230
|
-
/** @type {?} */
|
231
|
-
var files = transfer.files;
|
232
|
-
if (files.length) {
|
233
|
-
/** @type {?} */
|
234
|
-
var value = this._multiple ? (files.length > 1 ? files : files[0]) : files[0];
|
235
|
-
this.fileDrop.emit(value);
|
236
|
-
}
|
237
|
-
}
|
238
|
-
this._renderer.removeClass(this._element.nativeElement, 'drop-zone');
|
239
|
-
this._stopEvent(event);
|
240
|
-
};
|
241
|
-
/**
|
242
|
-
* Listens to 'dragover' host event to validate transfer items.
|
243
|
-
* Checks if 'multiple' attr exists in host to allow multiple file drops.
|
244
|
-
* Stops event propagation and default action from browser for 'dragover' event.
|
245
|
-
*/
|
246
|
-
/**
|
247
|
-
* Listens to 'dragover' host event to validate transfer items.
|
248
|
-
* Checks if 'multiple' attr exists in host to allow multiple file drops.
|
249
|
-
* Stops event propagation and default action from browser for 'dragover' event.
|
250
|
-
* @param {?} event
|
251
|
-
* @return {?}
|
252
|
-
*/
|
253
|
-
TdFileDropDirective.prototype.onDragOver = /**
|
254
|
-
* Listens to 'dragover' host event to validate transfer items.
|
255
|
-
* Checks if 'multiple' attr exists in host to allow multiple file drops.
|
256
|
-
* Stops event propagation and default action from browser for 'dragover' event.
|
257
|
-
* @param {?} event
|
258
|
-
* @return {?}
|
259
|
-
*/
|
260
|
-
function (event) {
|
261
|
-
/** @type {?} */
|
262
|
-
var transfer = ((/** @type {?} */ (event))).dataTransfer;
|
263
|
-
transfer.dropEffect = this._typeCheck(transfer.types);
|
264
|
-
if (this.disabled ||
|
265
|
-
(!this._multiple && ((transfer.items && transfer.items.length > 1) || ((/** @type {?} */ (transfer))).mozItemCount > 1))) {
|
266
|
-
transfer.dropEffect = 'none';
|
267
|
-
}
|
268
|
-
else {
|
269
|
-
transfer.dropEffect = 'copy';
|
270
|
-
}
|
271
|
-
this._stopEvent(event);
|
272
|
-
};
|
273
|
-
/**
|
274
|
-
* Listens to 'dragenter' host event to add animation class 'drop-zone' which can be overriden in host.
|
275
|
-
* Stops event propagation and default action from browser for 'dragenter' event.
|
276
|
-
*/
|
277
|
-
/**
|
278
|
-
* Listens to 'dragenter' host event to add animation class 'drop-zone' which can be overriden in host.
|
279
|
-
* Stops event propagation and default action from browser for 'dragenter' event.
|
280
|
-
* @param {?} event
|
281
|
-
* @return {?}
|
282
|
-
*/
|
283
|
-
TdFileDropDirective.prototype.onDragEnter = /**
|
284
|
-
* Listens to 'dragenter' host event to add animation class 'drop-zone' which can be overriden in host.
|
285
|
-
* Stops event propagation and default action from browser for 'dragenter' event.
|
286
|
-
* @param {?} event
|
287
|
-
* @return {?}
|
288
|
-
*/
|
289
|
-
function (event) {
|
290
|
-
if (!this.disabled) {
|
291
|
-
this._renderer.addClass(this._element.nativeElement, 'drop-zone');
|
292
|
-
}
|
293
|
-
this._stopEvent(event);
|
294
|
-
};
|
295
|
-
/**
|
296
|
-
* Listens to 'dragleave' host event to remove animation class 'drop-zone'.
|
297
|
-
* Stops event propagation and default action from browser for 'dragleave' event.
|
298
|
-
*/
|
299
|
-
/**
|
300
|
-
* Listens to 'dragleave' host event to remove animation class 'drop-zone'.
|
301
|
-
* Stops event propagation and default action from browser for 'dragleave' event.
|
302
|
-
* @param {?} event
|
303
|
-
* @return {?}
|
304
|
-
*/
|
305
|
-
TdFileDropDirective.prototype.onDragLeave = /**
|
306
|
-
* Listens to 'dragleave' host event to remove animation class 'drop-zone'.
|
307
|
-
* Stops event propagation and default action from browser for 'dragleave' event.
|
308
|
-
* @param {?} event
|
309
|
-
* @return {?}
|
310
|
-
*/
|
311
|
-
function (event) {
|
312
|
-
this._renderer.removeClass(this._element.nativeElement, 'drop-zone');
|
313
|
-
this._stopEvent(event);
|
314
|
-
};
|
315
|
-
/**
|
316
|
-
* Validates if the transfer item types are 'Files'.
|
317
|
-
*/
|
318
|
-
/**
|
319
|
-
* Validates if the transfer item types are 'Files'.
|
320
|
-
* @private
|
321
|
-
* @param {?} types
|
322
|
-
* @return {?}
|
323
|
-
*/
|
324
|
-
TdFileDropDirective.prototype._typeCheck = /**
|
325
|
-
* Validates if the transfer item types are 'Files'.
|
326
|
-
* @private
|
327
|
-
* @param {?} types
|
328
|
-
* @return {?}
|
329
|
-
*/
|
330
|
-
function (types) {
|
331
|
-
/** @type {?} */
|
332
|
-
var dropEffect = 'none';
|
333
|
-
if (types &&
|
334
|
-
((((/** @type {?} */ (types))).contains && ((/** @type {?} */ (types))).contains('Files')) ||
|
335
|
-
(((/** @type {?} */ (types))).indexOf && ((/** @type {?} */ (types))).indexOf('Files') !== -1))) {
|
336
|
-
dropEffect = 'copy';
|
337
|
-
}
|
338
|
-
return dropEffect;
|
339
|
-
};
|
340
|
-
/**
|
341
|
-
* @private
|
342
|
-
* @param {?} event
|
343
|
-
* @return {?}
|
344
|
-
*/
|
345
|
-
TdFileDropDirective.prototype._stopEvent = /**
|
346
|
-
* @private
|
347
|
-
* @param {?} event
|
348
|
-
* @return {?}
|
349
|
-
*/
|
350
|
-
function (event) {
|
351
|
-
event.preventDefault();
|
352
|
-
event.stopPropagation();
|
353
|
-
};
|
354
|
-
TdFileDropDirective.decorators = [
|
355
|
-
{ type: Directive, args: [{
|
356
|
-
selector: '[tdFileDrop]',
|
357
|
-
inputs: ['disabled'],
|
358
|
-
},] }
|
359
|
-
];
|
360
|
-
/** @nocollapse */
|
361
|
-
TdFileDropDirective.ctorParameters = function () { return [
|
362
|
-
{ type: Renderer2 },
|
363
|
-
{ type: ElementRef }
|
364
|
-
]; };
|
365
|
-
TdFileDropDirective.propDecorators = {
|
366
|
-
multiple: [{ type: Input, args: ['multiple',] }],
|
367
|
-
fileDrop: [{ type: Output }],
|
368
|
-
multipleBinding: [{ type: HostBinding, args: ['attr.multiple',] }],
|
369
|
-
disabledBinding: [{ type: HostBinding, args: ['attr.disabled',] }],
|
370
|
-
onDrop: [{ type: HostListener, args: ['drop', ['$event'],] }],
|
371
|
-
onDragOver: [{ type: HostListener, args: ['dragover', ['$event'],] }],
|
372
|
-
onDragEnter: [{ type: HostListener, args: ['dragenter', ['$event'],] }],
|
373
|
-
onDragLeave: [{ type: HostListener, args: ['dragleave', ['$event'],] }]
|
374
|
-
};
|
375
|
-
return TdFileDropDirective;
|
376
|
-
}(_TdFileDropMixinBase));
|
377
|
-
if (false) {
|
378
|
-
/**
|
379
|
-
* @type {?}
|
380
|
-
* @private
|
381
|
-
*/
|
382
|
-
TdFileDropDirective.prototype._multiple;
|
383
|
-
/**
|
384
|
-
* fileDrop?: function
|
385
|
-
* Event emitted when a file or files are dropped in host element after being validated.
|
386
|
-
* Emits a [FileList | File] object.
|
387
|
-
* @type {?}
|
388
|
-
*/
|
389
|
-
TdFileDropDirective.prototype.fileDrop;
|
390
|
-
/**
|
391
|
-
* @type {?}
|
392
|
-
* @private
|
393
|
-
*/
|
394
|
-
TdFileDropDirective.prototype._renderer;
|
395
|
-
/**
|
396
|
-
* @type {?}
|
397
|
-
* @private
|
398
|
-
*/
|
399
|
-
TdFileDropDirective.prototype._element;
|
400
|
-
}
|
401
|
-
|
402
|
-
/**
|
403
|
-
* @fileoverview added by tsickle
|
404
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
405
|
-
*/
|
406
|
-
var TdFileInputLabelDirective = /** @class */ (function (_super) {
|
407
|
-
__extends(TdFileInputLabelDirective, _super);
|
408
|
-
function TdFileInputLabelDirective(templateRef, viewContainerRef) {
|
409
|
-
return _super.call(this, templateRef, viewContainerRef) || this;
|
410
|
-
}
|
411
|
-
TdFileInputLabelDirective.decorators = [
|
412
|
-
{ type: Directive, args: [{
|
413
|
-
selector: '[td-file-input-label]ng-template',
|
414
|
-
},] }
|
415
|
-
];
|
416
|
-
/** @nocollapse */
|
417
|
-
TdFileInputLabelDirective.ctorParameters = function () { return [
|
418
|
-
{ type: TemplateRef },
|
419
|
-
{ type: ViewContainerRef }
|
420
|
-
]; };
|
421
|
-
return TdFileInputLabelDirective;
|
422
|
-
}(TemplatePortalDirective));
|
423
|
-
var TdFileInputBase = /** @class */ (function () {
|
424
|
-
function TdFileInputBase(_changeDetectorRef) {
|
425
|
-
this._changeDetectorRef = _changeDetectorRef;
|
426
|
-
}
|
427
|
-
return TdFileInputBase;
|
428
|
-
}());
|
429
|
-
if (false) {
|
430
|
-
/** @type {?} */
|
431
|
-
TdFileInputBase.prototype._changeDetectorRef;
|
432
|
-
}
|
433
|
-
/* tslint:disable-next-line */
|
434
|
-
/** @type {?} */
|
435
|
-
var _TdFileInputMixinBase = mixinControlValueAccessor(mixinDisabled(TdFileInputBase));
|
436
|
-
var TdFileInputComponent = /** @class */ (function (_super) {
|
437
|
-
__extends(TdFileInputComponent, _super);
|
438
|
-
function TdFileInputComponent(_renderer, _changeDetectorRef) {
|
439
|
-
var _this = _super.call(this, _changeDetectorRef) || this;
|
440
|
-
_this._renderer = _renderer;
|
441
|
-
_this._multiple = false;
|
442
|
-
/**
|
443
|
-
* select?: function
|
444
|
-
* Event emitted a file is selected
|
445
|
-
* Emits a [File | FileList] object.
|
446
|
-
*/
|
447
|
-
_this.select = new EventEmitter();
|
448
|
-
return _this;
|
449
|
-
}
|
450
|
-
Object.defineProperty(TdFileInputComponent.prototype, "inputElement", {
|
451
|
-
get: /**
|
452
|
-
* @return {?}
|
453
|
-
*/
|
454
|
-
function () {
|
455
|
-
return this._inputElement.nativeElement;
|
456
|
-
},
|
457
|
-
enumerable: true,
|
458
|
-
configurable: true
|
459
|
-
});
|
460
|
-
Object.defineProperty(TdFileInputComponent.prototype, "multiple", {
|
461
|
-
get: /**
|
462
|
-
* @return {?}
|
463
|
-
*/
|
464
|
-
function () {
|
465
|
-
return this._multiple;
|
466
|
-
},
|
467
|
-
/**
|
468
|
-
* multiple?: boolean
|
469
|
-
* Sets if multiple files can be dropped/selected at once in [TdFileInputComponent].
|
470
|
-
*/
|
471
|
-
set: /**
|
472
|
-
* multiple?: boolean
|
473
|
-
* Sets if multiple files can be dropped/selected at once in [TdFileInputComponent].
|
474
|
-
* @param {?} multiple
|
475
|
-
* @return {?}
|
476
|
-
*/
|
477
|
-
function (multiple) {
|
478
|
-
this._multiple = coerceBooleanProperty(multiple);
|
479
|
-
},
|
480
|
-
enumerable: true,
|
481
|
-
configurable: true
|
482
|
-
});
|
483
|
-
/**
|
484
|
-
* Method executed when a file is selected.
|
485
|
-
*/
|
486
|
-
/**
|
487
|
-
* Method executed when a file is selected.
|
488
|
-
* @param {?} files
|
489
|
-
* @return {?}
|
490
|
-
*/
|
491
|
-
TdFileInputComponent.prototype.handleSelect = /**
|
492
|
-
* Method executed when a file is selected.
|
493
|
-
* @param {?} files
|
494
|
-
* @return {?}
|
495
|
-
*/
|
496
|
-
function (files) {
|
497
|
-
this.writeValue(files);
|
498
|
-
this.select.emit(files);
|
499
|
-
};
|
500
|
-
/**
|
501
|
-
* Used to clear the selected files from the [TdFileInputComponent].
|
502
|
-
*/
|
503
|
-
/**
|
504
|
-
* Used to clear the selected files from the [TdFileInputComponent].
|
505
|
-
* @return {?}
|
506
|
-
*/
|
507
|
-
TdFileInputComponent.prototype.clear = /**
|
508
|
-
* Used to clear the selected files from the [TdFileInputComponent].
|
509
|
-
* @return {?}
|
510
|
-
*/
|
511
|
-
function () {
|
512
|
-
this.writeValue(undefined);
|
513
|
-
this._renderer.setProperty(this.inputElement, 'value', '');
|
514
|
-
};
|
515
|
-
/** Method executed when the disabled value changes */
|
516
|
-
/**
|
517
|
-
* Method executed when the disabled value changes
|
518
|
-
* @param {?} v
|
519
|
-
* @return {?}
|
520
|
-
*/
|
521
|
-
TdFileInputComponent.prototype.onDisabledChange = /**
|
522
|
-
* Method executed when the disabled value changes
|
523
|
-
* @param {?} v
|
524
|
-
* @return {?}
|
525
|
-
*/
|
526
|
-
function (v) {
|
527
|
-
if (v) {
|
528
|
-
this.clear();
|
529
|
-
}
|
530
|
-
};
|
531
|
-
/**
|
532
|
-
* Sets disable to the component. Implemented as part of ControlValueAccessor.
|
533
|
-
*/
|
534
|
-
/**
|
535
|
-
* Sets disable to the component. Implemented as part of ControlValueAccessor.
|
536
|
-
* @param {?} isDisabled
|
537
|
-
* @return {?}
|
538
|
-
*/
|
539
|
-
TdFileInputComponent.prototype.setDisabledState = /**
|
540
|
-
* Sets disable to the component. Implemented as part of ControlValueAccessor.
|
541
|
-
* @param {?} isDisabled
|
542
|
-
* @return {?}
|
543
|
-
*/
|
544
|
-
function (isDisabled) {
|
545
|
-
this.disabled = isDisabled;
|
546
|
-
};
|
547
|
-
TdFileInputComponent.decorators = [
|
548
|
-
{ type: Component, args: [{
|
549
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
550
|
-
providers: [
|
551
|
-
{
|
552
|
-
provide: NG_VALUE_ACCESSOR,
|
553
|
-
useExisting: forwardRef((/**
|
554
|
-
* @return {?}
|
555
|
-
*/
|
556
|
-
function () { return TdFileInputComponent; })),
|
557
|
-
multi: true,
|
558
|
-
},
|
559
|
-
],
|
560
|
-
selector: 'td-file-input',
|
561
|
-
inputs: ['disabled', 'value'],
|
562
|
-
template: "<div>\n <button\n mat-raised-button\n class=\"td-file-input\"\n type=\"button\"\n [color]=\"color\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n (keyup.enter)=\"fileInput.click()\"\n (click)=\"fileInput.click()\"\n (fileDrop)=\"handleSelect($event)\"\n tdFileDrop\n >\n <ng-content></ng-content>\n </button>\n <input\n #fileInput\n class=\"td-file-input-hidden\"\n type=\"file\"\n [attr.accept]=\"accept\"\n (fileSelect)=\"handleSelect($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n tdFileSelect\n />\n</div>\n",
|
563
|
-
styles: [":host .td-file-input{padding-left:8px;padding-right:8px}:host input.td-file-input-hidden{display:none}:host .drop-zone{border-radius:3px}:host .drop-zone *{pointer-events:none}"]
|
564
|
-
}] }
|
565
|
-
];
|
566
|
-
/** @nocollapse */
|
567
|
-
TdFileInputComponent.ctorParameters = function () { return [
|
568
|
-
{ type: Renderer2 },
|
569
|
-
{ type: ChangeDetectorRef }
|
570
|
-
]; };
|
571
|
-
TdFileInputComponent.propDecorators = {
|
572
|
-
_inputElement: [{ type: ViewChild, args: ['fileInput', { static: true },] }],
|
573
|
-
color: [{ type: Input }],
|
574
|
-
multiple: [{ type: Input, args: ['multiple',] }],
|
575
|
-
accept: [{ type: Input }],
|
576
|
-
select: [{ type: Output }]
|
577
|
-
};
|
578
|
-
return TdFileInputComponent;
|
579
|
-
}(_TdFileInputMixinBase));
|
580
|
-
if (false) {
|
581
|
-
/**
|
582
|
-
* @type {?}
|
583
|
-
* @private
|
584
|
-
*/
|
585
|
-
TdFileInputComponent.prototype._multiple;
|
586
|
-
/**
|
587
|
-
* The native `<input type="file"> element
|
588
|
-
* @type {?}
|
589
|
-
*/
|
590
|
-
TdFileInputComponent.prototype._inputElement;
|
591
|
-
/**
|
592
|
-
* color?: 'accent' | 'primary' | 'warn'
|
593
|
-
* Sets button color. Uses same color palette accepted as [MatButton].
|
594
|
-
* @type {?}
|
595
|
-
*/
|
596
|
-
TdFileInputComponent.prototype.color;
|
597
|
-
/**
|
598
|
-
* accept?: string
|
599
|
-
* Sets files accepted when opening the file browser dialog.
|
600
|
-
* Same as 'accept' attribute in <input/> element.
|
601
|
-
* @type {?}
|
602
|
-
*/
|
603
|
-
TdFileInputComponent.prototype.accept;
|
604
|
-
/**
|
605
|
-
* select?: function
|
606
|
-
* Event emitted a file is selected
|
607
|
-
* Emits a [File | FileList] object.
|
608
|
-
* @type {?}
|
609
|
-
*/
|
610
|
-
TdFileInputComponent.prototype.select;
|
611
|
-
/**
|
612
|
-
* @type {?}
|
613
|
-
* @private
|
614
|
-
*/
|
615
|
-
TdFileInputComponent.prototype._renderer;
|
616
|
-
}
|
617
|
-
|
618
|
-
/**
|
619
|
-
* @fileoverview added by tsickle
|
620
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
621
|
-
*/
|
622
|
-
var TdFileUploadBase = /** @class */ (function () {
|
623
|
-
function TdFileUploadBase(_changeDetectorRef) {
|
624
|
-
this._changeDetectorRef = _changeDetectorRef;
|
625
|
-
}
|
626
|
-
return TdFileUploadBase;
|
627
|
-
}());
|
628
|
-
if (false) {
|
629
|
-
/** @type {?} */
|
630
|
-
TdFileUploadBase.prototype._changeDetectorRef;
|
631
|
-
}
|
632
|
-
/* tslint:disable-next-line */
|
633
|
-
/** @type {?} */
|
634
|
-
var _TdFileUploadMixinBase = mixinControlValueAccessor(mixinDisabled(TdFileUploadBase));
|
635
|
-
var TdFileUploadComponent = /** @class */ (function (_super) {
|
636
|
-
__extends(TdFileUploadComponent, _super);
|
637
|
-
function TdFileUploadComponent(_changeDetectorRef) {
|
638
|
-
var _this = _super.call(this, _changeDetectorRef) || this;
|
639
|
-
_this._multiple = false;
|
640
|
-
_this._required = false;
|
641
|
-
/**
|
642
|
-
* defaultColor?: 'accent' | 'primary' | 'warn'
|
643
|
-
* Sets browse button color. Uses same color palette accepted as [MatButton] and defaults to 'primary'.
|
644
|
-
*/
|
645
|
-
_this.defaultColor = 'primary';
|
646
|
-
/**
|
647
|
-
* activeColor?: 'accent' | 'primary' | 'warn'
|
648
|
-
* Sets upload button color. Uses same color palette accepted as [MatButton] and defaults to 'accent'.
|
649
|
-
*/
|
650
|
-
_this.activeColor = 'accent';
|
651
|
-
/**
|
652
|
-
* cancelColor?: 'accent' | 'primary' | 'warn'
|
653
|
-
* Sets cancel button color. Uses same color palette accepted as [MatButton] and defaults to 'warn'.
|
654
|
-
*/
|
655
|
-
_this.cancelColor = 'warn';
|
656
|
-
/**
|
657
|
-
* select?: function
|
658
|
-
* Event emitted when a file is selected.
|
659
|
-
* Emits a [File | FileList] object.
|
660
|
-
*/
|
661
|
-
_this.select = new EventEmitter();
|
662
|
-
/**
|
663
|
-
* upload?: function
|
664
|
-
* Event emitted when upload button is clicked.
|
665
|
-
* Emits a [File | FileList] object.
|
666
|
-
*/
|
667
|
-
_this.upload = new EventEmitter();
|
668
|
-
/**
|
669
|
-
* cancel?: function
|
670
|
-
* Event emitted when cancel button is clicked.
|
671
|
-
*/
|
672
|
-
_this.cancel = new EventEmitter();
|
673
|
-
return _this;
|
674
|
-
}
|
675
|
-
Object.defineProperty(TdFileUploadComponent.prototype, "multiple", {
|
676
|
-
get: /**
|
677
|
-
* @return {?}
|
678
|
-
*/
|
679
|
-
function () {
|
680
|
-
return this._multiple;
|
681
|
-
},
|
682
|
-
/**
|
683
|
-
* multiple?: boolean
|
684
|
-
* Sets if multiple files can be dropped/selected at once in [TdFileUploadComponent].
|
685
|
-
*/
|
686
|
-
set: /**
|
687
|
-
* multiple?: boolean
|
688
|
-
* Sets if multiple files can be dropped/selected at once in [TdFileUploadComponent].
|
689
|
-
* @param {?} multiple
|
690
|
-
* @return {?}
|
691
|
-
*/
|
692
|
-
function (multiple) {
|
693
|
-
this._multiple = coerceBooleanProperty(multiple);
|
694
|
-
},
|
695
|
-
enumerable: true,
|
696
|
-
configurable: true
|
697
|
-
});
|
698
|
-
Object.defineProperty(TdFileUploadComponent.prototype, "required", {
|
699
|
-
get: /**
|
700
|
-
* @return {?}
|
701
|
-
*/
|
702
|
-
function () {
|
703
|
-
return this._required;
|
704
|
-
},
|
705
|
-
/**
|
706
|
-
* required?: boolean
|
707
|
-
* Forces at least one file upload.
|
708
|
-
* Defaults to 'false'
|
709
|
-
*/
|
710
|
-
set: /**
|
711
|
-
* required?: boolean
|
712
|
-
* Forces at least one file upload.
|
713
|
-
* Defaults to 'false'
|
714
|
-
* @param {?} required
|
715
|
-
* @return {?}
|
716
|
-
*/
|
717
|
-
function (required) {
|
718
|
-
this._required = coerceBooleanProperty(required);
|
719
|
-
},
|
720
|
-
enumerable: true,
|
721
|
-
configurable: true
|
722
|
-
});
|
723
|
-
/**
|
724
|
-
* Method executed when upload button is clicked.
|
725
|
-
*/
|
726
|
-
/**
|
727
|
-
* Method executed when upload button is clicked.
|
728
|
-
* @return {?}
|
729
|
-
*/
|
730
|
-
TdFileUploadComponent.prototype.uploadPressed = /**
|
731
|
-
* Method executed when upload button is clicked.
|
732
|
-
* @return {?}
|
733
|
-
*/
|
734
|
-
function () {
|
735
|
-
if (this.value) {
|
736
|
-
this.upload.emit(this.value);
|
737
|
-
}
|
738
|
-
};
|
739
|
-
/**
|
740
|
-
* Method executed when a file is selected.
|
741
|
-
*/
|
742
|
-
/**
|
743
|
-
* Method executed when a file is selected.
|
744
|
-
* @param {?} value
|
745
|
-
* @return {?}
|
746
|
-
*/
|
747
|
-
TdFileUploadComponent.prototype.handleSelect = /**
|
748
|
-
* Method executed when a file is selected.
|
749
|
-
* @param {?} value
|
750
|
-
* @return {?}
|
751
|
-
*/
|
752
|
-
function (value) {
|
753
|
-
this.value = value;
|
754
|
-
this.select.emit(value);
|
755
|
-
};
|
756
|
-
/**
|
757
|
-
* Methods executed when cancel button is clicked.
|
758
|
-
* Clears files.
|
759
|
-
*/
|
760
|
-
/**
|
761
|
-
* Methods executed when cancel button is clicked.
|
762
|
-
* Clears files.
|
763
|
-
* @return {?}
|
764
|
-
*/
|
765
|
-
TdFileUploadComponent.prototype._cancel = /**
|
766
|
-
* Methods executed when cancel button is clicked.
|
767
|
-
* Clears files.
|
768
|
-
* @return {?}
|
769
|
-
*/
|
770
|
-
function () {
|
771
|
-
this.value = undefined;
|
772
|
-
this.cancel.emit();
|
773
|
-
// check if the file input is rendered before clearing it
|
774
|
-
if (this.fileInput) {
|
775
|
-
this.fileInput.clear();
|
776
|
-
}
|
777
|
-
};
|
778
|
-
/** Method executed when the disabled value changes */
|
779
|
-
/**
|
780
|
-
* Method executed when the disabled value changes
|
781
|
-
* @param {?} v
|
782
|
-
* @return {?}
|
783
|
-
*/
|
784
|
-
TdFileUploadComponent.prototype.onDisabledChange = /**
|
785
|
-
* Method executed when the disabled value changes
|
786
|
-
* @param {?} v
|
787
|
-
* @return {?}
|
788
|
-
*/
|
789
|
-
function (v) {
|
790
|
-
if (v) {
|
791
|
-
this._cancel();
|
792
|
-
}
|
793
|
-
};
|
794
|
-
TdFileUploadComponent.decorators = [
|
795
|
-
{ type: Component, args: [{
|
796
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
797
|
-
providers: [
|
798
|
-
{
|
799
|
-
provide: NG_VALUE_ACCESSOR,
|
800
|
-
useExisting: forwardRef((/**
|
801
|
-
* @return {?}
|
802
|
-
*/
|
803
|
-
function () { return TdFileUploadComponent; })),
|
804
|
-
multi: true,
|
805
|
-
},
|
806
|
-
],
|
807
|
-
selector: 'td-file-upload',
|
808
|
-
inputs: ['disabled', 'value'],
|
809
|
-
template: "<td-file-input\n *ngIf=\"!value\"\n [(ngModel)]=\"value\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n [accept]=\"accept\"\n [color]=\"defaultColor\"\n (select)=\"handleSelect($event)\"\n>\n <ng-template [cdkPortalOutlet]=\"inputLabel\" [ngIf]=\"true\"></ng-template>\n</td-file-input>\n<div *ngIf=\"value\">\n <button\n #fileUpload\n class=\"td-file-upload\"\n mat-raised-button\n type=\"button\"\n [color]=\"activeColor\"\n (keyup.delete)=\"_cancel()\"\n (keyup.backspace)=\"_cancel()\"\n (keyup.escape)=\"_cancel()\"\n (click)=\"uploadPressed()\"\n >\n <ng-content></ng-content>\n </button>\n <button mat-icon-button type=\"button\" class=\"td-file-upload-cancel\" [color]=\"cancelColor\" (click)=\"_cancel()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n",
|
810
|
-
styles: [".td-file-upload{padding-left:8px;padding-right:8px}.td-file-upload-cancel{height:24px;width:24px;position:relative;top:24px;left:-12px}::ng-deep [dir=rtl] .td-file-upload-cancel{right:-12px;left:0}.td-file-upload-cancel mat-icon{border-radius:12px;vertical-align:baseline}.drop-zone{border-radius:3px}.drop-zone *{pointer-events:none}"]
|
811
|
-
}] }
|
812
|
-
];
|
813
|
-
/** @nocollapse */
|
814
|
-
TdFileUploadComponent.ctorParameters = function () { return [
|
815
|
-
{ type: ChangeDetectorRef }
|
816
|
-
]; };
|
817
|
-
TdFileUploadComponent.propDecorators = {
|
818
|
-
fileInput: [{ type: ViewChild, args: [TdFileInputComponent,] }],
|
819
|
-
inputLabel: [{ type: ContentChild, args: [TdFileInputLabelDirective,] }],
|
820
|
-
defaultColor: [{ type: Input }],
|
821
|
-
activeColor: [{ type: Input }],
|
822
|
-
cancelColor: [{ type: Input }],
|
823
|
-
multiple: [{ type: Input, args: ['multiple',] }],
|
824
|
-
required: [{ type: Input, args: ['required',] }],
|
825
|
-
accept: [{ type: Input }],
|
826
|
-
select: [{ type: Output }],
|
827
|
-
upload: [{ type: Output }],
|
828
|
-
cancel: [{ type: Output }]
|
829
|
-
};
|
830
|
-
return TdFileUploadComponent;
|
831
|
-
}(_TdFileUploadMixinBase));
|
832
|
-
if (false) {
|
833
|
-
/**
|
834
|
-
* @type {?}
|
835
|
-
* @private
|
836
|
-
*/
|
837
|
-
TdFileUploadComponent.prototype._multiple;
|
838
|
-
/**
|
839
|
-
* @type {?}
|
840
|
-
* @private
|
841
|
-
*/
|
842
|
-
TdFileUploadComponent.prototype._required;
|
843
|
-
/** @type {?} */
|
844
|
-
TdFileUploadComponent.prototype.fileInput;
|
845
|
-
/** @type {?} */
|
846
|
-
TdFileUploadComponent.prototype.inputLabel;
|
847
|
-
/**
|
848
|
-
* defaultColor?: 'accent' | 'primary' | 'warn'
|
849
|
-
* Sets browse button color. Uses same color palette accepted as [MatButton] and defaults to 'primary'.
|
850
|
-
* @type {?}
|
851
|
-
*/
|
852
|
-
TdFileUploadComponent.prototype.defaultColor;
|
853
|
-
/**
|
854
|
-
* activeColor?: 'accent' | 'primary' | 'warn'
|
855
|
-
* Sets upload button color. Uses same color palette accepted as [MatButton] and defaults to 'accent'.
|
856
|
-
* @type {?}
|
857
|
-
*/
|
858
|
-
TdFileUploadComponent.prototype.activeColor;
|
859
|
-
/**
|
860
|
-
* cancelColor?: 'accent' | 'primary' | 'warn'
|
861
|
-
* Sets cancel button color. Uses same color palette accepted as [MatButton] and defaults to 'warn'.
|
862
|
-
* @type {?}
|
863
|
-
*/
|
864
|
-
TdFileUploadComponent.prototype.cancelColor;
|
865
|
-
/**
|
866
|
-
* accept?: string
|
867
|
-
* Sets files accepted when opening the file browser dialog.
|
868
|
-
* Same as 'accept' attribute in <input/> element.
|
869
|
-
* @type {?}
|
870
|
-
*/
|
871
|
-
TdFileUploadComponent.prototype.accept;
|
872
|
-
/**
|
873
|
-
* select?: function
|
874
|
-
* Event emitted when a file is selected.
|
875
|
-
* Emits a [File | FileList] object.
|
876
|
-
* @type {?}
|
877
|
-
*/
|
878
|
-
TdFileUploadComponent.prototype.select;
|
879
|
-
/**
|
880
|
-
* upload?: function
|
881
|
-
* Event emitted when upload button is clicked.
|
882
|
-
* Emits a [File | FileList] object.
|
883
|
-
* @type {?}
|
884
|
-
*/
|
885
|
-
TdFileUploadComponent.prototype.upload;
|
886
|
-
/**
|
887
|
-
* cancel?: function
|
888
|
-
* Event emitted when cancel button is clicked.
|
889
|
-
* @type {?}
|
890
|
-
*/
|
891
|
-
TdFileUploadComponent.prototype.cancel;
|
892
|
-
}
|
893
|
-
|
894
|
-
/**
|
895
|
-
* @fileoverview added by tsickle
|
896
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
897
|
-
*/
|
898
|
-
/**
|
899
|
-
* @record
|
900
|
-
*/
|
901
|
-
function IUploadExtras() { }
|
902
|
-
if (false) {
|
903
|
-
/** @type {?|undefined} */
|
904
|
-
IUploadExtras.prototype.headers;
|
905
|
-
/** @type {?|undefined} */
|
906
|
-
IUploadExtras.prototype.params;
|
907
|
-
}
|
908
|
-
var TdFileService = /** @class */ (function () {
|
909
|
-
/**
|
910
|
-
* Creates a new instance
|
911
|
-
* @param _http the http client instance
|
912
|
-
* @breaking-change 3.0.0 remove 'Optional' decorator once the legay upload method is removed
|
913
|
-
*/
|
914
|
-
function TdFileService(_http) {
|
915
|
-
this._http = _http;
|
916
|
-
this._progressSubject = new Subject();
|
917
|
-
this._progressObservable = this._progressSubject.asObservable();
|
918
|
-
}
|
919
|
-
Object.defineProperty(TdFileService.prototype, "progress", {
|
920
|
-
/**
|
921
|
-
* Gets progress observable to keep track of the files being uploaded.
|
922
|
-
* Needs to be supported by backend.
|
923
|
-
*/
|
924
|
-
get: /**
|
925
|
-
* Gets progress observable to keep track of the files being uploaded.
|
926
|
-
* Needs to be supported by backend.
|
927
|
-
* @return {?}
|
928
|
-
*/
|
929
|
-
function () {
|
930
|
-
return this._progressObservable;
|
931
|
-
},
|
932
|
-
enumerable: true,
|
933
|
-
configurable: true
|
934
|
-
});
|
935
|
-
/**
|
936
|
-
* Uploads a file to a URL.
|
937
|
-
*/
|
938
|
-
/**
|
939
|
-
* Uploads a file to a URL.
|
940
|
-
* @param {?} url
|
941
|
-
* @param {?} method
|
942
|
-
* @param {?} body
|
943
|
-
* @param {?=} __3
|
944
|
-
* @return {?}
|
945
|
-
*/
|
946
|
-
TdFileService.prototype.send = /**
|
947
|
-
* Uploads a file to a URL.
|
948
|
-
* @param {?} url
|
949
|
-
* @param {?} method
|
950
|
-
* @param {?} body
|
951
|
-
* @param {?=} __3
|
952
|
-
* @return {?}
|
953
|
-
*/
|
954
|
-
function (url, method, body, _a) {
|
955
|
-
var _this = this;
|
956
|
-
var _b = _a === void 0 ? {} : _a, headers = _b.headers, params = _b.params;
|
957
|
-
if (!this._http) {
|
958
|
-
throw new Error('The HttpClient module needs to be imported at root module level');
|
959
|
-
}
|
960
|
-
/** @type {?} */
|
961
|
-
var req = new HttpRequest(method.toUpperCase(), url, body, {
|
962
|
-
reportProgress: true,
|
963
|
-
headers: new HttpHeaders(headers || {}),
|
964
|
-
params: new HttpParams({ fromObject: params || {} }),
|
965
|
-
});
|
966
|
-
return this._http.request(req).pipe(tap((/**
|
967
|
-
* @param {?} event
|
968
|
-
* @return {?}
|
969
|
-
*/
|
970
|
-
function (event) { return _this.handleEvent(event); })));
|
971
|
-
};
|
972
|
-
/**
|
973
|
-
* @private
|
974
|
-
* @template T
|
975
|
-
* @param {?} event
|
976
|
-
* @return {?}
|
977
|
-
*/
|
978
|
-
TdFileService.prototype.handleEvent = /**
|
979
|
-
* @private
|
980
|
-
* @template T
|
981
|
-
* @param {?} event
|
982
|
-
* @return {?}
|
983
|
-
*/
|
984
|
-
function (event) {
|
985
|
-
switch (event.type) {
|
986
|
-
case HttpEventType.Sent:
|
987
|
-
this._progressSubject.next(0);
|
988
|
-
break;
|
989
|
-
case HttpEventType.UploadProgress:
|
990
|
-
this._progressSubject.next(Math.round((100 * event.loaded) / event.total));
|
991
|
-
break;
|
992
|
-
case HttpEventType.Response:
|
993
|
-
this._progressSubject.next(100);
|
994
|
-
break;
|
995
|
-
default:
|
996
|
-
break;
|
997
|
-
}
|
998
|
-
};
|
999
|
-
TdFileService.decorators = [
|
1000
|
-
{ type: Injectable }
|
1001
|
-
];
|
1002
|
-
/** @nocollapse */
|
1003
|
-
TdFileService.ctorParameters = function () { return [
|
1004
|
-
{ type: HttpClient, decorators: [{ type: Optional }] }
|
1005
|
-
]; };
|
1006
|
-
return TdFileService;
|
1007
|
-
}());
|
1008
|
-
if (false) {
|
1009
|
-
/**
|
1010
|
-
* @type {?}
|
1011
|
-
* @private
|
1012
|
-
*/
|
1013
|
-
TdFileService.prototype._progressSubject;
|
1014
|
-
/**
|
1015
|
-
* @type {?}
|
1016
|
-
* @private
|
1017
|
-
*/
|
1018
|
-
TdFileService.prototype._progressObservable;
|
1019
|
-
/**
|
1020
|
-
* @type {?}
|
1021
|
-
* @private
|
1022
|
-
*/
|
1023
|
-
TdFileService.prototype._http;
|
1024
|
-
}
|
1025
|
-
|
1026
|
-
/**
|
1027
|
-
* @fileoverview added by tsickle
|
1028
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1029
|
-
*/
|
1030
|
-
/** @type {?} */
|
1031
|
-
var TD_FILE = [
|
1032
|
-
TdFileSelectDirective,
|
1033
|
-
TdFileDropDirective,
|
1034
|
-
TdFileUploadComponent,
|
1035
|
-
TdFileInputComponent,
|
1036
|
-
TdFileInputLabelDirective,
|
1037
|
-
];
|
1038
|
-
var CovalentFileModule = /** @class */ (function () {
|
1039
|
-
function CovalentFileModule() {
|
1040
|
-
}
|
1041
|
-
CovalentFileModule.decorators = [
|
1042
|
-
{ type: NgModule, args: [{
|
1043
|
-
imports: [FormsModule, CommonModule, MatIconModule, MatButtonModule, PortalModule],
|
1044
|
-
declarations: [TD_FILE],
|
1045
|
-
exports: [TD_FILE],
|
1046
|
-
providers: [TdFileService],
|
1047
|
-
},] }
|
1048
|
-
];
|
1049
|
-
return CovalentFileModule;
|
1050
|
-
}());
|
1051
|
-
|
1052
|
-
/**
|
1053
|
-
* @fileoverview added by tsickle
|
1054
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1055
|
-
*/
|
1056
|
-
|
1057
|
-
/**
|
1058
|
-
* @fileoverview added by tsickle
|
1059
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1060
|
-
*/
|
1061
|
-
|
1062
|
-
/**
|
1063
|
-
* @fileoverview added by tsickle
|
1064
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1065
|
-
*/
|
1066
|
-
|
1067
|
-
export { CovalentFileModule, TdFileDropBase, TdFileDropDirective, TdFileInputBase, TdFileInputComponent, TdFileInputLabelDirective, TdFileSelectDirective, TdFileService, TdFileUploadBase, TdFileUploadComponent, _TdFileDropMixinBase, _TdFileInputMixinBase, _TdFileUploadMixinBase };
|
1068
|
-
//# sourceMappingURL=covalent-core-file.js.map
|