@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,228 +1,18 @@
|
|
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/cdk/portal'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/cdk/coercion'), require('@covalent/core/common'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators')) :
|
3
3
|
typeof define === 'function' && define.amd ? define('@covalent/core/file', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/cdk/portal', '@angular/material/icon', '@angular/material/button', '@angular/cdk/coercion', '@covalent/core/common', '@angular/common/http', 'rxjs', 'rxjs/operators'], factory) :
|
4
|
-
(global = global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.file = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.cdk.portal, global.ng.material.icon, global.ng.material.button, global.ng.cdk.coercion, global.covalent.core.common, global.ng.common.http, global.rxjs, global.rxjs.operators));
|
5
|
-
}(this, (function (exports, core, common, forms, portal, icon, button, coercion, common
|
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
|
-
}
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.covalent = global.covalent || {}, global.covalent.core = global.covalent.core || {}, global.covalent.core.file = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.cdk.portal, global.ng.material.icon, global.ng.material.button, global.ng.cdk.coercion, global.covalent.core.common, global.ng.common.http, global.rxjs, global.rxjs.operators));
|
5
|
+
}(this, (function (exports, core, common$1, forms, portal, icon, button, coercion, common, http, rxjs, operators) { 'use strict';
|
220
6
|
|
221
7
|
/**
|
222
8
|
* @fileoverview added by tsickle
|
223
|
-
*
|
9
|
+
* Generated from: directives/file-select.directive.ts
|
10
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
224
11
|
*/
|
225
12
|
var TdFileSelectDirective = /** @class */ (function () {
|
13
|
+
/**
|
14
|
+
* @param {?} model
|
15
|
+
*/
|
226
16
|
function TdFileSelectDirective(model) {
|
227
17
|
this.model = model;
|
228
18
|
this._multiple = false;
|
@@ -236,57 +26,37 @@
|
|
236
26
|
}
|
237
27
|
Object.defineProperty(TdFileSelectDirective.prototype, "multiple", {
|
238
28
|
/**
|
239
|
-
* multiple?: boolean
|
240
|
-
* Sets whether multiple files can be selected at once in host element, or just a single file.
|
241
|
-
* Can also be 'multiple' native attribute.
|
242
|
-
*/
|
243
|
-
set: /**
|
244
29
|
* multiple?: boolean
|
245
30
|
* Sets whether multiple files can be selected at once in host element, or just a single file.
|
246
31
|
* Can also be 'multiple' native attribute.
|
247
32
|
* @param {?} multiple
|
248
33
|
* @return {?}
|
249
34
|
*/
|
250
|
-
function (multiple) {
|
35
|
+
set: function (multiple) {
|
251
36
|
this._multiple = coercion.coerceBooleanProperty(multiple);
|
252
37
|
},
|
253
|
-
enumerable:
|
38
|
+
enumerable: false,
|
254
39
|
configurable: true
|
255
40
|
});
|
256
41
|
Object.defineProperty(TdFileSelectDirective.prototype, "multipleBinding", {
|
257
42
|
/**
|
258
|
-
* Binds native 'multiple' attribute if [multiple] property is 'true'.
|
259
|
-
*/
|
260
|
-
get: /**
|
261
43
|
* Binds native 'multiple' attribute if [multiple] property is 'true'.
|
262
44
|
* @return {?}
|
263
45
|
*/
|
264
|
-
function () {
|
46
|
+
get: function () {
|
265
47
|
return this._multiple ? '' : undefined;
|
266
48
|
},
|
267
|
-
enumerable:
|
49
|
+
enumerable: false,
|
268
50
|
configurable: true
|
269
51
|
});
|
270
52
|
/**
|
271
|
-
* Listens to 'change' host event to get [HTMLInputElement] files.
|
272
|
-
* Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
273
|
-
* Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event.
|
274
|
-
*/
|
275
|
-
/**
|
276
|
-
* Listens to 'change' host event to get [HTMLInputElement] files.
|
277
|
-
* Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
278
|
-
* Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event.
|
279
|
-
* @param {?} event
|
280
|
-
* @return {?}
|
281
|
-
*/
|
282
|
-
TdFileSelectDirective.prototype.onChange = /**
|
283
53
|
* Listens to 'change' host event to get [HTMLInputElement] files.
|
284
54
|
* Emits the 'fileSelect' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
285
55
|
* Uses [(ngModel)] if declared, instead of emitting 'fileSelect' event.
|
286
56
|
* @param {?} event
|
287
57
|
* @return {?}
|
288
58
|
*/
|
289
|
-
function (event) {
|
59
|
+
TdFileSelectDirective.prototype.onChange = function (event) {
|
290
60
|
if (event.target instanceof HTMLInputElement) {
|
291
61
|
/** @type {?} */
|
292
62
|
var fileInputEl = event.target;
|
@@ -299,23 +69,23 @@
|
|
299
69
|
}
|
300
70
|
}
|
301
71
|
};
|
302
|
-
TdFileSelectDirective.decorators = [
|
303
|
-
{ type: core.Directive, args: [{
|
304
|
-
selector: '[tdFileSelect]',
|
305
|
-
},] }
|
306
|
-
];
|
307
|
-
/** @nocollapse */
|
308
|
-
TdFileSelectDirective.ctorParameters = function () { return [
|
309
|
-
{ type: forms.NgModel, decorators: [{ type: core.Optional }, { type: core.Host }] }
|
310
|
-
]; };
|
311
|
-
TdFileSelectDirective.propDecorators = {
|
312
|
-
multiple: [{ type: core.Input, args: ['multiple',] }],
|
313
|
-
fileSelect: [{ type: core.Output }],
|
314
|
-
multipleBinding: [{ type: core.HostBinding, args: ['attr.multiple',] }],
|
315
|
-
onChange: [{ type: core.HostListener, args: ['change', ['$event'],] }]
|
316
|
-
};
|
317
72
|
return TdFileSelectDirective;
|
318
73
|
}());
|
74
|
+
TdFileSelectDirective.decorators = [
|
75
|
+
{ type: core.Directive, args: [{
|
76
|
+
selector: '[tdFileSelect]',
|
77
|
+
},] }
|
78
|
+
];
|
79
|
+
/** @nocollapse */
|
80
|
+
TdFileSelectDirective.ctorParameters = function () { return [
|
81
|
+
{ type: forms.NgModel, decorators: [{ type: core.Optional }, { type: core.Host }] }
|
82
|
+
]; };
|
83
|
+
TdFileSelectDirective.propDecorators = {
|
84
|
+
multiple: [{ type: core.Input, args: ['multiple',] }],
|
85
|
+
fileSelect: [{ type: core.Output }],
|
86
|
+
multipleBinding: [{ type: core.HostBinding, args: ['attr.multiple',] }],
|
87
|
+
onChange: [{ type: core.HostListener, args: ['change', ['$event'],] }]
|
88
|
+
};
|
319
89
|
if (false) {
|
320
90
|
/**
|
321
91
|
* @type {?}
|
@@ -337,10 +107,307 @@
|
|
337
107
|
TdFileSelectDirective.prototype.model;
|
338
108
|
}
|
339
109
|
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
110
|
+
/*! *****************************************************************************
|
111
|
+
Copyright (c) Microsoft Corporation.
|
112
|
+
|
113
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
114
|
+
purpose with or without fee is hereby granted.
|
115
|
+
|
116
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
117
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
118
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
119
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
120
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
121
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
122
|
+
PERFORMANCE OF THIS SOFTWARE.
|
123
|
+
***************************************************************************** */
|
124
|
+
/* global Reflect, Promise */
|
125
|
+
var extendStatics = function (d, b) {
|
126
|
+
extendStatics = Object.setPrototypeOf ||
|
127
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
128
|
+
function (d, b) { for (var p in b)
|
129
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
130
|
+
d[p] = b[p]; };
|
131
|
+
return extendStatics(d, b);
|
132
|
+
};
|
133
|
+
function __extends(d, b) {
|
134
|
+
extendStatics(d, b);
|
135
|
+
function __() { this.constructor = d; }
|
136
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
137
|
+
}
|
138
|
+
var __assign = function () {
|
139
|
+
__assign = Object.assign || function __assign(t) {
|
140
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
141
|
+
s = arguments[i];
|
142
|
+
for (var p in s)
|
143
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
144
|
+
t[p] = s[p];
|
145
|
+
}
|
146
|
+
return t;
|
147
|
+
};
|
148
|
+
return __assign.apply(this, arguments);
|
149
|
+
};
|
150
|
+
function __rest(s, e) {
|
151
|
+
var t = {};
|
152
|
+
for (var p in s)
|
153
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
154
|
+
t[p] = s[p];
|
155
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
156
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
157
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
158
|
+
t[p[i]] = s[p[i]];
|
159
|
+
}
|
160
|
+
return t;
|
161
|
+
}
|
162
|
+
function __decorate(decorators, target, key, desc) {
|
163
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
164
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
165
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
166
|
+
else
|
167
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
168
|
+
if (d = decorators[i])
|
169
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
170
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
171
|
+
}
|
172
|
+
function __param(paramIndex, decorator) {
|
173
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
174
|
+
}
|
175
|
+
function __metadata(metadataKey, metadataValue) {
|
176
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
177
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
178
|
+
}
|
179
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
180
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
181
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
182
|
+
function fulfilled(value) { try {
|
183
|
+
step(generator.next(value));
|
184
|
+
}
|
185
|
+
catch (e) {
|
186
|
+
reject(e);
|
187
|
+
} }
|
188
|
+
function rejected(value) { try {
|
189
|
+
step(generator["throw"](value));
|
190
|
+
}
|
191
|
+
catch (e) {
|
192
|
+
reject(e);
|
193
|
+
} }
|
194
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
195
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
196
|
+
});
|
197
|
+
}
|
198
|
+
function __generator(thisArg, body) {
|
199
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
200
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
201
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
202
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
203
|
+
function step(op) {
|
204
|
+
if (f)
|
205
|
+
throw new TypeError("Generator is already executing.");
|
206
|
+
while (_)
|
207
|
+
try {
|
208
|
+
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)
|
209
|
+
return t;
|
210
|
+
if (y = 0, t)
|
211
|
+
op = [op[0] & 2, t.value];
|
212
|
+
switch (op[0]) {
|
213
|
+
case 0:
|
214
|
+
case 1:
|
215
|
+
t = op;
|
216
|
+
break;
|
217
|
+
case 4:
|
218
|
+
_.label++;
|
219
|
+
return { value: op[1], done: false };
|
220
|
+
case 5:
|
221
|
+
_.label++;
|
222
|
+
y = op[1];
|
223
|
+
op = [0];
|
224
|
+
continue;
|
225
|
+
case 7:
|
226
|
+
op = _.ops.pop();
|
227
|
+
_.trys.pop();
|
228
|
+
continue;
|
229
|
+
default:
|
230
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
231
|
+
_ = 0;
|
232
|
+
continue;
|
233
|
+
}
|
234
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
235
|
+
_.label = op[1];
|
236
|
+
break;
|
237
|
+
}
|
238
|
+
if (op[0] === 6 && _.label < t[1]) {
|
239
|
+
_.label = t[1];
|
240
|
+
t = op;
|
241
|
+
break;
|
242
|
+
}
|
243
|
+
if (t && _.label < t[2]) {
|
244
|
+
_.label = t[2];
|
245
|
+
_.ops.push(op);
|
246
|
+
break;
|
247
|
+
}
|
248
|
+
if (t[2])
|
249
|
+
_.ops.pop();
|
250
|
+
_.trys.pop();
|
251
|
+
continue;
|
252
|
+
}
|
253
|
+
op = body.call(thisArg, _);
|
254
|
+
}
|
255
|
+
catch (e) {
|
256
|
+
op = [6, e];
|
257
|
+
y = 0;
|
258
|
+
}
|
259
|
+
finally {
|
260
|
+
f = t = 0;
|
261
|
+
}
|
262
|
+
if (op[0] & 5)
|
263
|
+
throw op[1];
|
264
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
265
|
+
}
|
266
|
+
}
|
267
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
268
|
+
if (k2 === undefined)
|
269
|
+
k2 = k;
|
270
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
271
|
+
}) : (function (o, m, k, k2) {
|
272
|
+
if (k2 === undefined)
|
273
|
+
k2 = k;
|
274
|
+
o[k2] = m[k];
|
275
|
+
});
|
276
|
+
function __exportStar(m, o) {
|
277
|
+
for (var p in m)
|
278
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
279
|
+
__createBinding(o, m, p);
|
280
|
+
}
|
281
|
+
function __values(o) {
|
282
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
283
|
+
if (m)
|
284
|
+
return m.call(o);
|
285
|
+
if (o && typeof o.length === "number")
|
286
|
+
return {
|
287
|
+
next: function () {
|
288
|
+
if (o && i >= o.length)
|
289
|
+
o = void 0;
|
290
|
+
return { value: o && o[i++], done: !o };
|
291
|
+
}
|
292
|
+
};
|
293
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
294
|
+
}
|
295
|
+
function __read(o, n) {
|
296
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
297
|
+
if (!m)
|
298
|
+
return o;
|
299
|
+
var i = m.call(o), r, ar = [], e;
|
300
|
+
try {
|
301
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
302
|
+
ar.push(r.value);
|
303
|
+
}
|
304
|
+
catch (error) {
|
305
|
+
e = { error: error };
|
306
|
+
}
|
307
|
+
finally {
|
308
|
+
try {
|
309
|
+
if (r && !r.done && (m = i["return"]))
|
310
|
+
m.call(i);
|
311
|
+
}
|
312
|
+
finally {
|
313
|
+
if (e)
|
314
|
+
throw e.error;
|
315
|
+
}
|
316
|
+
}
|
317
|
+
return ar;
|
318
|
+
}
|
319
|
+
function __spread() {
|
320
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
321
|
+
ar = ar.concat(__read(arguments[i]));
|
322
|
+
return ar;
|
323
|
+
}
|
324
|
+
function __spreadArrays() {
|
325
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
326
|
+
s += arguments[i].length;
|
327
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
328
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
329
|
+
r[k] = a[j];
|
330
|
+
return r;
|
331
|
+
}
|
332
|
+
;
|
333
|
+
function __await(v) {
|
334
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
335
|
+
}
|
336
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
337
|
+
if (!Symbol.asyncIterator)
|
338
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
339
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
340
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
341
|
+
function verb(n) { if (g[n])
|
342
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
343
|
+
function resume(n, v) { try {
|
344
|
+
step(g[n](v));
|
345
|
+
}
|
346
|
+
catch (e) {
|
347
|
+
settle(q[0][3], e);
|
348
|
+
} }
|
349
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
350
|
+
function fulfill(value) { resume("next", value); }
|
351
|
+
function reject(value) { resume("throw", value); }
|
352
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
353
|
+
resume(q[0][0], q[0][1]); }
|
354
|
+
}
|
355
|
+
function __asyncDelegator(o) {
|
356
|
+
var i, p;
|
357
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
358
|
+
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; }
|
359
|
+
}
|
360
|
+
function __asyncValues(o) {
|
361
|
+
if (!Symbol.asyncIterator)
|
362
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
363
|
+
var m = o[Symbol.asyncIterator], i;
|
364
|
+
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);
|
365
|
+
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); }); }; }
|
366
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
367
|
+
}
|
368
|
+
function __makeTemplateObject(cooked, raw) {
|
369
|
+
if (Object.defineProperty) {
|
370
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
371
|
+
}
|
372
|
+
else {
|
373
|
+
cooked.raw = raw;
|
374
|
+
}
|
375
|
+
return cooked;
|
376
|
+
}
|
377
|
+
;
|
378
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
379
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
380
|
+
}) : function (o, v) {
|
381
|
+
o["default"] = v;
|
382
|
+
};
|
383
|
+
function __importStar(mod) {
|
384
|
+
if (mod && mod.__esModule)
|
385
|
+
return mod;
|
386
|
+
var result = {};
|
387
|
+
if (mod != null)
|
388
|
+
for (var k in mod)
|
389
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
390
|
+
__createBinding(result, mod, k);
|
391
|
+
__setModuleDefault(result, mod);
|
392
|
+
return result;
|
393
|
+
}
|
394
|
+
function __importDefault(mod) {
|
395
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
396
|
+
}
|
397
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
398
|
+
if (!privateMap.has(receiver)) {
|
399
|
+
throw new TypeError("attempted to get private field on non-instance");
|
400
|
+
}
|
401
|
+
return privateMap.get(receiver);
|
402
|
+
}
|
403
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
404
|
+
if (!privateMap.has(receiver)) {
|
405
|
+
throw new TypeError("attempted to set private field on non-instance");
|
406
|
+
}
|
407
|
+
privateMap.set(receiver, value);
|
408
|
+
return value;
|
409
|
+
}
|
410
|
+
|
344
411
|
var TdFileDropBase = /** @class */ (function () {
|
345
412
|
function TdFileDropBase() {
|
346
413
|
}
|
@@ -348,9 +415,13 @@
|
|
348
415
|
}());
|
349
416
|
/* tslint:disable-next-line */
|
350
417
|
/** @type {?} */
|
351
|
-
var _TdFileDropMixinBase = common
|
418
|
+
var _TdFileDropMixinBase = common.mixinDisabled(TdFileDropBase);
|
352
419
|
var TdFileDropDirective = /** @class */ (function (_super) {
|
353
420
|
__extends(TdFileDropDirective, _super);
|
421
|
+
/**
|
422
|
+
* @param {?} _renderer
|
423
|
+
* @param {?} _element
|
424
|
+
*/
|
354
425
|
function TdFileDropDirective(_renderer, _element) {
|
355
426
|
var _this = _super.call(this) || this;
|
356
427
|
_this._renderer = _renderer;
|
@@ -366,74 +437,51 @@
|
|
366
437
|
}
|
367
438
|
Object.defineProperty(TdFileDropDirective.prototype, "multiple", {
|
368
439
|
/**
|
369
|
-
* multiple?: boolean
|
370
|
-
* Sets whether multiple files can be dropped at once in host element, or just a single file.
|
371
|
-
* Can also be 'multiple' native attribute.
|
372
|
-
*/
|
373
|
-
set: /**
|
374
440
|
* multiple?: boolean
|
375
441
|
* Sets whether multiple files can be dropped at once in host element, or just a single file.
|
376
442
|
* Can also be 'multiple' native attribute.
|
377
443
|
* @param {?} multiple
|
378
444
|
* @return {?}
|
379
445
|
*/
|
380
|
-
function (multiple) {
|
446
|
+
set: function (multiple) {
|
381
447
|
this._multiple = coercion.coerceBooleanProperty(multiple);
|
382
448
|
},
|
383
|
-
enumerable:
|
449
|
+
enumerable: false,
|
384
450
|
configurable: true
|
385
451
|
});
|
386
452
|
Object.defineProperty(TdFileDropDirective.prototype, "multipleBinding", {
|
387
453
|
/**
|
388
|
-
* Binds native 'multiple' attribute if [multiple] property is 'true'.
|
389
|
-
*/
|
390
|
-
get: /**
|
391
454
|
* Binds native 'multiple' attribute if [multiple] property is 'true'.
|
392
455
|
* @return {?}
|
393
456
|
*/
|
394
|
-
function () {
|
457
|
+
get: function () {
|
395
458
|
return this._multiple ? '' : undefined;
|
396
459
|
},
|
397
|
-
enumerable:
|
460
|
+
enumerable: false,
|
398
461
|
configurable: true
|
399
462
|
});
|
400
463
|
Object.defineProperty(TdFileDropDirective.prototype, "disabledBinding", {
|
401
464
|
/**
|
402
|
-
* Binds native 'disabled' attribute if [disabled] property is 'true'.
|
403
|
-
*/
|
404
|
-
get: /**
|
405
465
|
* Binds native 'disabled' attribute if [disabled] property is 'true'.
|
406
466
|
* @return {?}
|
407
467
|
*/
|
408
|
-
function () {
|
468
|
+
get: function () {
|
409
469
|
return this.disabled ? '' : undefined;
|
410
470
|
},
|
411
|
-
enumerable:
|
471
|
+
enumerable: false,
|
412
472
|
configurable: true
|
413
473
|
});
|
414
474
|
/**
|
415
|
-
* Listens to 'drop' host event to get validated transfer items.
|
416
|
-
* Emits the 'fileDrop' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
417
|
-
* Stops event propagation and default action from browser for 'drop' event.
|
418
|
-
*/
|
419
|
-
/**
|
420
|
-
* Listens to 'drop' host event to get validated transfer items.
|
421
|
-
* Emits the 'fileDrop' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
422
|
-
* Stops event propagation and default action from browser for 'drop' event.
|
423
|
-
* @param {?} event
|
424
|
-
* @return {?}
|
425
|
-
*/
|
426
|
-
TdFileDropDirective.prototype.onDrop = /**
|
427
475
|
* Listens to 'drop' host event to get validated transfer items.
|
428
476
|
* Emits the 'fileDrop' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
429
477
|
* Stops event propagation and default action from browser for 'drop' event.
|
430
478
|
* @param {?} event
|
431
479
|
* @return {?}
|
432
480
|
*/
|
433
|
-
function (event) {
|
481
|
+
TdFileDropDirective.prototype.onDrop = function (event) {
|
434
482
|
if (!this.disabled) {
|
435
483
|
/** @type {?} */
|
436
|
-
var transfer = ((/** @type {?} */
|
484
|
+
var transfer = (( /** @type {?} */(event))).dataTransfer;
|
437
485
|
/** @type {?} */
|
438
486
|
var files = transfer.files;
|
439
487
|
if (files.length) {
|
@@ -446,30 +494,18 @@
|
|
446
494
|
this._stopEvent(event);
|
447
495
|
};
|
448
496
|
/**
|
449
|
-
* Listens to 'dragover' host event to validate transfer items.
|
450
|
-
* Checks if 'multiple' attr exists in host to allow multiple file drops.
|
451
|
-
* Stops event propagation and default action from browser for 'dragover' event.
|
452
|
-
*/
|
453
|
-
/**
|
454
|
-
* Listens to 'dragover' host event to validate transfer items.
|
455
|
-
* Checks if 'multiple' attr exists in host to allow multiple file drops.
|
456
|
-
* Stops event propagation and default action from browser for 'dragover' event.
|
457
|
-
* @param {?} event
|
458
|
-
* @return {?}
|
459
|
-
*/
|
460
|
-
TdFileDropDirective.prototype.onDragOver = /**
|
461
497
|
* Listens to 'dragover' host event to validate transfer items.
|
462
498
|
* Checks if 'multiple' attr exists in host to allow multiple file drops.
|
463
499
|
* Stops event propagation and default action from browser for 'dragover' event.
|
464
500
|
* @param {?} event
|
465
501
|
* @return {?}
|
466
502
|
*/
|
467
|
-
function (event) {
|
503
|
+
TdFileDropDirective.prototype.onDragOver = function (event) {
|
468
504
|
/** @type {?} */
|
469
|
-
var transfer = ((/** @type {?} */
|
505
|
+
var transfer = (( /** @type {?} */(event))).dataTransfer;
|
470
506
|
transfer.dropEffect = this._typeCheck(transfer.types);
|
471
507
|
if (this.disabled ||
|
472
|
-
(!this._multiple && ((transfer.items && transfer.items.length > 1) || ((/** @type {?} */
|
508
|
+
(!this._multiple && ((transfer.items && transfer.items.length > 1) || (( /** @type {?} */(transfer))).mozItemCount > 1))) {
|
473
509
|
transfer.dropEffect = 'none';
|
474
510
|
}
|
475
511
|
else {
|
@@ -477,69 +513,40 @@
|
|
477
513
|
}
|
478
514
|
this._stopEvent(event);
|
479
515
|
};
|
480
|
-
/**
|
481
|
-
* Listens to 'dragenter' host event to add animation class 'drop-zone' which can be overriden in host.
|
482
|
-
* Stops event propagation and default action from browser for 'dragenter' event.
|
483
|
-
*/
|
484
516
|
/**
|
485
517
|
* Listens to 'dragenter' host event to add animation class 'drop-zone' which can be overriden in host.
|
486
518
|
* Stops event propagation and default action from browser for 'dragenter' event.
|
487
519
|
* @param {?} event
|
488
520
|
* @return {?}
|
489
521
|
*/
|
490
|
-
TdFileDropDirective.prototype.onDragEnter =
|
491
|
-
* Listens to 'dragenter' host event to add animation class 'drop-zone' which can be overriden in host.
|
492
|
-
* Stops event propagation and default action from browser for 'dragenter' event.
|
493
|
-
* @param {?} event
|
494
|
-
* @return {?}
|
495
|
-
*/
|
496
|
-
function (event) {
|
522
|
+
TdFileDropDirective.prototype.onDragEnter = function (event) {
|
497
523
|
if (!this.disabled) {
|
498
524
|
this._renderer.addClass(this._element.nativeElement, 'drop-zone');
|
499
525
|
}
|
500
526
|
this._stopEvent(event);
|
501
527
|
};
|
502
|
-
/**
|
503
|
-
* Listens to 'dragleave' host event to remove animation class 'drop-zone'.
|
504
|
-
* Stops event propagation and default action from browser for 'dragleave' event.
|
505
|
-
*/
|
506
528
|
/**
|
507
529
|
* Listens to 'dragleave' host event to remove animation class 'drop-zone'.
|
508
530
|
* Stops event propagation and default action from browser for 'dragleave' event.
|
509
531
|
* @param {?} event
|
510
532
|
* @return {?}
|
511
533
|
*/
|
512
|
-
TdFileDropDirective.prototype.onDragLeave =
|
513
|
-
* Listens to 'dragleave' host event to remove animation class 'drop-zone'.
|
514
|
-
* Stops event propagation and default action from browser for 'dragleave' event.
|
515
|
-
* @param {?} event
|
516
|
-
* @return {?}
|
517
|
-
*/
|
518
|
-
function (event) {
|
534
|
+
TdFileDropDirective.prototype.onDragLeave = function (event) {
|
519
535
|
this._renderer.removeClass(this._element.nativeElement, 'drop-zone');
|
520
536
|
this._stopEvent(event);
|
521
537
|
};
|
522
538
|
/**
|
523
|
-
* Validates if the transfer item types are 'Files'.
|
524
|
-
*/
|
525
|
-
/**
|
526
|
-
* Validates if the transfer item types are 'Files'.
|
527
|
-
* @private
|
528
|
-
* @param {?} types
|
529
|
-
* @return {?}
|
530
|
-
*/
|
531
|
-
TdFileDropDirective.prototype._typeCheck = /**
|
532
539
|
* Validates if the transfer item types are 'Files'.
|
533
540
|
* @private
|
534
541
|
* @param {?} types
|
535
542
|
* @return {?}
|
536
543
|
*/
|
537
|
-
function (types) {
|
544
|
+
TdFileDropDirective.prototype._typeCheck = function (types) {
|
538
545
|
/** @type {?} */
|
539
546
|
var dropEffect = 'none';
|
540
547
|
if (types &&
|
541
|
-
((((/** @type {?} */
|
542
|
-
(((/** @type {?} */
|
548
|
+
(((( /** @type {?} */(types))).contains && (( /** @type {?} */(types))).contains('Files')) ||
|
549
|
+
((( /** @type {?} */(types))).indexOf && (( /** @type {?} */(types))).indexOf('Files') !== -1))) {
|
543
550
|
dropEffect = 'copy';
|
544
551
|
}
|
545
552
|
return dropEffect;
|
@@ -549,38 +556,33 @@
|
|
549
556
|
* @param {?} event
|
550
557
|
* @return {?}
|
551
558
|
*/
|
552
|
-
TdFileDropDirective.prototype._stopEvent =
|
553
|
-
* @private
|
554
|
-
* @param {?} event
|
555
|
-
* @return {?}
|
556
|
-
*/
|
557
|
-
function (event) {
|
559
|
+
TdFileDropDirective.prototype._stopEvent = function (event) {
|
558
560
|
event.preventDefault();
|
559
561
|
event.stopPropagation();
|
560
562
|
};
|
561
|
-
TdFileDropDirective.decorators = [
|
562
|
-
{ type: core.Directive, args: [{
|
563
|
-
selector: '[tdFileDrop]',
|
564
|
-
inputs: ['disabled'],
|
565
|
-
},] }
|
566
|
-
];
|
567
|
-
/** @nocollapse */
|
568
|
-
TdFileDropDirective.ctorParameters = function () { return [
|
569
|
-
{ type: core.Renderer2 },
|
570
|
-
{ type: core.ElementRef }
|
571
|
-
]; };
|
572
|
-
TdFileDropDirective.propDecorators = {
|
573
|
-
multiple: [{ type: core.Input, args: ['multiple',] }],
|
574
|
-
fileDrop: [{ type: core.Output }],
|
575
|
-
multipleBinding: [{ type: core.HostBinding, args: ['attr.multiple',] }],
|
576
|
-
disabledBinding: [{ type: core.HostBinding, args: ['attr.disabled',] }],
|
577
|
-
onDrop: [{ type: core.HostListener, args: ['drop', ['$event'],] }],
|
578
|
-
onDragOver: [{ type: core.HostListener, args: ['dragover', ['$event'],] }],
|
579
|
-
onDragEnter: [{ type: core.HostListener, args: ['dragenter', ['$event'],] }],
|
580
|
-
onDragLeave: [{ type: core.HostListener, args: ['dragleave', ['$event'],] }]
|
581
|
-
};
|
582
563
|
return TdFileDropDirective;
|
583
564
|
}(_TdFileDropMixinBase));
|
565
|
+
TdFileDropDirective.decorators = [
|
566
|
+
{ type: core.Directive, args: [{
|
567
|
+
selector: '[tdFileDrop]',
|
568
|
+
inputs: ['disabled'],
|
569
|
+
},] }
|
570
|
+
];
|
571
|
+
/** @nocollapse */
|
572
|
+
TdFileDropDirective.ctorParameters = function () { return [
|
573
|
+
{ type: core.Renderer2 },
|
574
|
+
{ type: core.ElementRef }
|
575
|
+
]; };
|
576
|
+
TdFileDropDirective.propDecorators = {
|
577
|
+
multiple: [{ type: core.Input, args: ['multiple',] }],
|
578
|
+
fileDrop: [{ type: core.Output }],
|
579
|
+
multipleBinding: [{ type: core.HostBinding, args: ['attr.multiple',] }],
|
580
|
+
disabledBinding: [{ type: core.HostBinding, args: ['attr.disabled',] }],
|
581
|
+
onDrop: [{ type: core.HostListener, args: ['drop', ['$event'],] }],
|
582
|
+
onDragOver: [{ type: core.HostListener, args: ['dragover', ['$event'],] }],
|
583
|
+
onDragEnter: [{ type: core.HostListener, args: ['dragenter', ['$event'],] }],
|
584
|
+
onDragLeave: [{ type: core.HostListener, args: ['dragleave', ['$event'],] }]
|
585
|
+
};
|
584
586
|
if (false) {
|
585
587
|
/**
|
586
588
|
* @type {?}
|
@@ -606,28 +608,31 @@
|
|
606
608
|
TdFileDropDirective.prototype._element;
|
607
609
|
}
|
608
610
|
|
609
|
-
/**
|
610
|
-
* @fileoverview added by tsickle
|
611
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
612
|
-
*/
|
613
611
|
var TdFileInputLabelDirective = /** @class */ (function (_super) {
|
614
612
|
__extends(TdFileInputLabelDirective, _super);
|
613
|
+
/**
|
614
|
+
* @param {?} templateRef
|
615
|
+
* @param {?} viewContainerRef
|
616
|
+
*/
|
615
617
|
function TdFileInputLabelDirective(templateRef, viewContainerRef) {
|
616
618
|
return _super.call(this, templateRef, viewContainerRef) || this;
|
617
619
|
}
|
618
|
-
TdFileInputLabelDirective.decorators = [
|
619
|
-
{ type: core.Directive, args: [{
|
620
|
-
selector: '[td-file-input-label]ng-template',
|
621
|
-
},] }
|
622
|
-
];
|
623
|
-
/** @nocollapse */
|
624
|
-
TdFileInputLabelDirective.ctorParameters = function () { return [
|
625
|
-
{ type: core.TemplateRef },
|
626
|
-
{ type: core.ViewContainerRef }
|
627
|
-
]; };
|
628
620
|
return TdFileInputLabelDirective;
|
629
621
|
}(portal.TemplatePortalDirective));
|
622
|
+
TdFileInputLabelDirective.decorators = [
|
623
|
+
{ type: core.Directive, args: [{
|
624
|
+
selector: '[td-file-input-label]ng-template',
|
625
|
+
},] }
|
626
|
+
];
|
627
|
+
/** @nocollapse */
|
628
|
+
TdFileInputLabelDirective.ctorParameters = function () { return [
|
629
|
+
{ type: core.TemplateRef },
|
630
|
+
{ type: core.ViewContainerRef }
|
631
|
+
]; };
|
630
632
|
var TdFileInputBase = /** @class */ (function () {
|
633
|
+
/**
|
634
|
+
* @param {?} _changeDetectorRef
|
635
|
+
*/
|
631
636
|
function TdFileInputBase(_changeDetectorRef) {
|
632
637
|
this._changeDetectorRef = _changeDetectorRef;
|
633
638
|
}
|
@@ -639,9 +644,13 @@
|
|
639
644
|
}
|
640
645
|
/* tslint:disable-next-line */
|
641
646
|
/** @type {?} */
|
642
|
-
var _TdFileInputMixinBase = common
|
647
|
+
var _TdFileInputMixinBase = common.mixinControlValueAccessor(common.mixinDisabled(TdFileInputBase));
|
643
648
|
var TdFileInputComponent = /** @class */ (function (_super) {
|
644
649
|
__extends(TdFileInputComponent, _super);
|
650
|
+
/**
|
651
|
+
* @param {?} _renderer
|
652
|
+
* @param {?} _changeDetectorRef
|
653
|
+
*/
|
645
654
|
function TdFileInputComponent(_renderer, _changeDetectorRef) {
|
646
655
|
var _this = _super.call(this, _changeDetectorRef) || this;
|
647
656
|
_this._renderer = _renderer;
|
@@ -655,135 +664,101 @@
|
|
655
664
|
return _this;
|
656
665
|
}
|
657
666
|
Object.defineProperty(TdFileInputComponent.prototype, "inputElement", {
|
658
|
-
|
667
|
+
/**
|
659
668
|
* @return {?}
|
660
669
|
*/
|
661
|
-
function () {
|
670
|
+
get: function () {
|
662
671
|
return this._inputElement.nativeElement;
|
663
672
|
},
|
664
|
-
enumerable:
|
673
|
+
enumerable: false,
|
665
674
|
configurable: true
|
666
675
|
});
|
667
676
|
Object.defineProperty(TdFileInputComponent.prototype, "multiple", {
|
668
|
-
|
677
|
+
/**
|
669
678
|
* @return {?}
|
670
679
|
*/
|
671
|
-
function () {
|
680
|
+
get: function () {
|
672
681
|
return this._multiple;
|
673
682
|
},
|
674
683
|
/**
|
675
|
-
* multiple?: boolean
|
676
|
-
* Sets if multiple files can be dropped/selected at once in [TdFileInputComponent].
|
677
|
-
*/
|
678
|
-
set: /**
|
679
684
|
* multiple?: boolean
|
680
685
|
* Sets if multiple files can be dropped/selected at once in [TdFileInputComponent].
|
681
686
|
* @param {?} multiple
|
682
687
|
* @return {?}
|
683
688
|
*/
|
684
|
-
function (multiple) {
|
689
|
+
set: function (multiple) {
|
685
690
|
this._multiple = coercion.coerceBooleanProperty(multiple);
|
686
691
|
},
|
687
|
-
enumerable:
|
692
|
+
enumerable: false,
|
688
693
|
configurable: true
|
689
694
|
});
|
690
695
|
/**
|
691
|
-
* Method executed when a file is selected.
|
692
|
-
*/
|
693
|
-
/**
|
694
|
-
* Method executed when a file is selected.
|
695
|
-
* @param {?} files
|
696
|
-
* @return {?}
|
697
|
-
*/
|
698
|
-
TdFileInputComponent.prototype.handleSelect = /**
|
699
696
|
* Method executed when a file is selected.
|
700
697
|
* @param {?} files
|
701
698
|
* @return {?}
|
702
699
|
*/
|
703
|
-
function (files) {
|
700
|
+
TdFileInputComponent.prototype.handleSelect = function (files) {
|
704
701
|
this.writeValue(files);
|
705
702
|
this.select.emit(files);
|
706
703
|
};
|
707
704
|
/**
|
708
|
-
* Used to clear the selected files from the [TdFileInputComponent].
|
709
|
-
*/
|
710
|
-
/**
|
711
|
-
* Used to clear the selected files from the [TdFileInputComponent].
|
712
|
-
* @return {?}
|
713
|
-
*/
|
714
|
-
TdFileInputComponent.prototype.clear = /**
|
715
705
|
* Used to clear the selected files from the [TdFileInputComponent].
|
716
706
|
* @return {?}
|
717
707
|
*/
|
718
|
-
function () {
|
708
|
+
TdFileInputComponent.prototype.clear = function () {
|
719
709
|
this.writeValue(undefined);
|
720
710
|
this._renderer.setProperty(this.inputElement, 'value', '');
|
721
711
|
};
|
722
|
-
/** Method executed when the disabled value changes */
|
723
712
|
/**
|
724
713
|
* Method executed when the disabled value changes
|
725
714
|
* @param {?} v
|
726
715
|
* @return {?}
|
727
716
|
*/
|
728
|
-
TdFileInputComponent.prototype.onDisabledChange =
|
729
|
-
* Method executed when the disabled value changes
|
730
|
-
* @param {?} v
|
731
|
-
* @return {?}
|
732
|
-
*/
|
733
|
-
function (v) {
|
717
|
+
TdFileInputComponent.prototype.onDisabledChange = function (v) {
|
734
718
|
if (v) {
|
735
719
|
this.clear();
|
736
720
|
}
|
737
721
|
};
|
738
722
|
/**
|
739
|
-
* Sets disable to the component. Implemented as part of ControlValueAccessor.
|
740
|
-
*/
|
741
|
-
/**
|
742
|
-
* Sets disable to the component. Implemented as part of ControlValueAccessor.
|
743
|
-
* @param {?} isDisabled
|
744
|
-
* @return {?}
|
745
|
-
*/
|
746
|
-
TdFileInputComponent.prototype.setDisabledState = /**
|
747
723
|
* Sets disable to the component. Implemented as part of ControlValueAccessor.
|
748
724
|
* @param {?} isDisabled
|
749
725
|
* @return {?}
|
750
726
|
*/
|
751
|
-
function (isDisabled) {
|
727
|
+
TdFileInputComponent.prototype.setDisabledState = function (isDisabled) {
|
752
728
|
this.disabled = isDisabled;
|
753
729
|
};
|
754
|
-
TdFileInputComponent.decorators = [
|
755
|
-
{ type: core.Component, args: [{
|
756
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
757
|
-
providers: [
|
758
|
-
{
|
759
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
760
|
-
useExisting: core.forwardRef((/**
|
761
|
-
* @return {?}
|
762
|
-
*/
|
763
|
-
function () { return TdFileInputComponent; })),
|
764
|
-
multi: true,
|
765
|
-
},
|
766
|
-
],
|
767
|
-
selector: 'td-file-input',
|
768
|
-
inputs: ['disabled', 'value'],
|
769
|
-
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",
|
770
|
-
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}"]
|
771
|
-
}] }
|
772
|
-
];
|
773
|
-
/** @nocollapse */
|
774
|
-
TdFileInputComponent.ctorParameters = function () { return [
|
775
|
-
{ type: core.Renderer2 },
|
776
|
-
{ type: core.ChangeDetectorRef }
|
777
|
-
]; };
|
778
|
-
TdFileInputComponent.propDecorators = {
|
779
|
-
_inputElement: [{ type: core.ViewChild, args: ['fileInput', { static: true },] }],
|
780
|
-
color: [{ type: core.Input }],
|
781
|
-
multiple: [{ type: core.Input, args: ['multiple',] }],
|
782
|
-
accept: [{ type: core.Input }],
|
783
|
-
select: [{ type: core.Output }]
|
784
|
-
};
|
785
730
|
return TdFileInputComponent;
|
786
731
|
}(_TdFileInputMixinBase));
|
732
|
+
TdFileInputComponent.decorators = [
|
733
|
+
{ type: core.Component, args: [{
|
734
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
735
|
+
providers: [
|
736
|
+
{
|
737
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
738
|
+
useExisting: core.forwardRef(( /**
|
739
|
+
* @return {?}
|
740
|
+
*/function () { return TdFileInputComponent; })),
|
741
|
+
multi: true,
|
742
|
+
},
|
743
|
+
],
|
744
|
+
selector: 'td-file-input',
|
745
|
+
inputs: ['disabled', 'value'],
|
746
|
+
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",
|
747
|
+
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}"]
|
748
|
+
}] }
|
749
|
+
];
|
750
|
+
/** @nocollapse */
|
751
|
+
TdFileInputComponent.ctorParameters = function () { return [
|
752
|
+
{ type: core.Renderer2 },
|
753
|
+
{ type: core.ChangeDetectorRef }
|
754
|
+
]; };
|
755
|
+
TdFileInputComponent.propDecorators = {
|
756
|
+
_inputElement: [{ type: core.ViewChild, args: ['fileInput', { static: true },] }],
|
757
|
+
color: [{ type: core.Input }],
|
758
|
+
multiple: [{ type: core.Input, args: ['multiple',] }],
|
759
|
+
accept: [{ type: core.Input }],
|
760
|
+
select: [{ type: core.Output }]
|
761
|
+
};
|
787
762
|
if (false) {
|
788
763
|
/**
|
789
764
|
* @type {?}
|
@@ -822,11 +797,10 @@
|
|
822
797
|
TdFileInputComponent.prototype._renderer;
|
823
798
|
}
|
824
799
|
|
825
|
-
/**
|
826
|
-
* @fileoverview added by tsickle
|
827
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
828
|
-
*/
|
829
800
|
var TdFileUploadBase = /** @class */ (function () {
|
801
|
+
/**
|
802
|
+
* @param {?} _changeDetectorRef
|
803
|
+
*/
|
830
804
|
function TdFileUploadBase(_changeDetectorRef) {
|
831
805
|
this._changeDetectorRef = _changeDetectorRef;
|
832
806
|
}
|
@@ -838,9 +812,12 @@
|
|
838
812
|
}
|
839
813
|
/* tslint:disable-next-line */
|
840
814
|
/** @type {?} */
|
841
|
-
var _TdFileUploadMixinBase = common
|
815
|
+
var _TdFileUploadMixinBase = common.mixinControlValueAccessor(common.mixinDisabled(TdFileUploadBase));
|
842
816
|
var TdFileUploadComponent = /** @class */ (function (_super) {
|
843
817
|
__extends(TdFileUploadComponent, _super);
|
818
|
+
/**
|
819
|
+
* @param {?} _changeDetectorRef
|
820
|
+
*/
|
844
821
|
function TdFileUploadComponent(_changeDetectorRef) {
|
845
822
|
var _this = _super.call(this, _changeDetectorRef) || this;
|
846
823
|
_this._multiple = false;
|
@@ -880,101 +857,68 @@
|
|
880
857
|
return _this;
|
881
858
|
}
|
882
859
|
Object.defineProperty(TdFileUploadComponent.prototype, "multiple", {
|
883
|
-
|
860
|
+
/**
|
884
861
|
* @return {?}
|
885
862
|
*/
|
886
|
-
function () {
|
863
|
+
get: function () {
|
887
864
|
return this._multiple;
|
888
865
|
},
|
889
866
|
/**
|
890
|
-
* multiple?: boolean
|
891
|
-
* Sets if multiple files can be dropped/selected at once in [TdFileUploadComponent].
|
892
|
-
*/
|
893
|
-
set: /**
|
894
867
|
* multiple?: boolean
|
895
868
|
* Sets if multiple files can be dropped/selected at once in [TdFileUploadComponent].
|
896
869
|
* @param {?} multiple
|
897
870
|
* @return {?}
|
898
871
|
*/
|
899
|
-
function (multiple) {
|
872
|
+
set: function (multiple) {
|
900
873
|
this._multiple = coercion.coerceBooleanProperty(multiple);
|
901
874
|
},
|
902
|
-
enumerable:
|
875
|
+
enumerable: false,
|
903
876
|
configurable: true
|
904
877
|
});
|
905
878
|
Object.defineProperty(TdFileUploadComponent.prototype, "required", {
|
906
|
-
|
879
|
+
/**
|
907
880
|
* @return {?}
|
908
881
|
*/
|
909
|
-
function () {
|
882
|
+
get: function () {
|
910
883
|
return this._required;
|
911
884
|
},
|
912
885
|
/**
|
913
|
-
* required?: boolean
|
914
|
-
* Forces at least one file upload.
|
915
|
-
* Defaults to 'false'
|
916
|
-
*/
|
917
|
-
set: /**
|
918
886
|
* required?: boolean
|
919
887
|
* Forces at least one file upload.
|
920
888
|
* Defaults to 'false'
|
921
889
|
* @param {?} required
|
922
890
|
* @return {?}
|
923
891
|
*/
|
924
|
-
function (required) {
|
892
|
+
set: function (required) {
|
925
893
|
this._required = coercion.coerceBooleanProperty(required);
|
926
894
|
},
|
927
|
-
enumerable:
|
895
|
+
enumerable: false,
|
928
896
|
configurable: true
|
929
897
|
});
|
930
898
|
/**
|
931
|
-
* Method executed when upload button is clicked.
|
932
|
-
*/
|
933
|
-
/**
|
934
|
-
* Method executed when upload button is clicked.
|
935
|
-
* @return {?}
|
936
|
-
*/
|
937
|
-
TdFileUploadComponent.prototype.uploadPressed = /**
|
938
899
|
* Method executed when upload button is clicked.
|
939
900
|
* @return {?}
|
940
901
|
*/
|
941
|
-
function () {
|
902
|
+
TdFileUploadComponent.prototype.uploadPressed = function () {
|
942
903
|
if (this.value) {
|
943
904
|
this.upload.emit(this.value);
|
944
905
|
}
|
945
906
|
};
|
946
907
|
/**
|
947
|
-
* Method executed when a file is selected.
|
948
|
-
*/
|
949
|
-
/**
|
950
|
-
* Method executed when a file is selected.
|
951
|
-
* @param {?} value
|
952
|
-
* @return {?}
|
953
|
-
*/
|
954
|
-
TdFileUploadComponent.prototype.handleSelect = /**
|
955
908
|
* Method executed when a file is selected.
|
956
909
|
* @param {?} value
|
957
910
|
* @return {?}
|
958
911
|
*/
|
959
|
-
function (value) {
|
912
|
+
TdFileUploadComponent.prototype.handleSelect = function (value) {
|
960
913
|
this.value = value;
|
961
914
|
this.select.emit(value);
|
962
915
|
};
|
963
916
|
/**
|
964
|
-
* Methods executed when cancel button is clicked.
|
965
|
-
* Clears files.
|
966
|
-
*/
|
967
|
-
/**
|
968
|
-
* Methods executed when cancel button is clicked.
|
969
|
-
* Clears files.
|
970
|
-
* @return {?}
|
971
|
-
*/
|
972
|
-
TdFileUploadComponent.prototype._cancel = /**
|
973
917
|
* Methods executed when cancel button is clicked.
|
974
918
|
* Clears files.
|
975
919
|
* @return {?}
|
976
920
|
*/
|
977
|
-
function () {
|
921
|
+
TdFileUploadComponent.prototype._cancel = function () {
|
978
922
|
this.value = undefined;
|
979
923
|
this.cancel.emit();
|
980
924
|
// check if the file input is rendered before clearing it
|
@@ -982,60 +926,53 @@
|
|
982
926
|
this.fileInput.clear();
|
983
927
|
}
|
984
928
|
};
|
985
|
-
/** Method executed when the disabled value changes */
|
986
929
|
/**
|
987
930
|
* Method executed when the disabled value changes
|
988
931
|
* @param {?} v
|
989
932
|
* @return {?}
|
990
933
|
*/
|
991
|
-
TdFileUploadComponent.prototype.onDisabledChange =
|
992
|
-
* Method executed when the disabled value changes
|
993
|
-
* @param {?} v
|
994
|
-
* @return {?}
|
995
|
-
*/
|
996
|
-
function (v) {
|
934
|
+
TdFileUploadComponent.prototype.onDisabledChange = function (v) {
|
997
935
|
if (v) {
|
998
936
|
this._cancel();
|
999
937
|
}
|
1000
938
|
};
|
1001
|
-
TdFileUploadComponent.decorators = [
|
1002
|
-
{ type: core.Component, args: [{
|
1003
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
1004
|
-
providers: [
|
1005
|
-
{
|
1006
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
1007
|
-
useExisting: core.forwardRef((/**
|
1008
|
-
* @return {?}
|
1009
|
-
*/
|
1010
|
-
function () { return TdFileUploadComponent; })),
|
1011
|
-
multi: true,
|
1012
|
-
},
|
1013
|
-
],
|
1014
|
-
selector: 'td-file-upload',
|
1015
|
-
inputs: ['disabled', 'value'],
|
1016
|
-
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",
|
1017
|
-
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}"]
|
1018
|
-
}] }
|
1019
|
-
];
|
1020
|
-
/** @nocollapse */
|
1021
|
-
TdFileUploadComponent.ctorParameters = function () { return [
|
1022
|
-
{ type: core.ChangeDetectorRef }
|
1023
|
-
]; };
|
1024
|
-
TdFileUploadComponent.propDecorators = {
|
1025
|
-
fileInput: [{ type: core.ViewChild, args: [TdFileInputComponent,] }],
|
1026
|
-
inputLabel: [{ type: core.ContentChild, args: [TdFileInputLabelDirective,] }],
|
1027
|
-
defaultColor: [{ type: core.Input }],
|
1028
|
-
activeColor: [{ type: core.Input }],
|
1029
|
-
cancelColor: [{ type: core.Input }],
|
1030
|
-
multiple: [{ type: core.Input, args: ['multiple',] }],
|
1031
|
-
required: [{ type: core.Input, args: ['required',] }],
|
1032
|
-
accept: [{ type: core.Input }],
|
1033
|
-
select: [{ type: core.Output }],
|
1034
|
-
upload: [{ type: core.Output }],
|
1035
|
-
cancel: [{ type: core.Output }]
|
1036
|
-
};
|
1037
939
|
return TdFileUploadComponent;
|
1038
940
|
}(_TdFileUploadMixinBase));
|
941
|
+
TdFileUploadComponent.decorators = [
|
942
|
+
{ type: core.Component, args: [{
|
943
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
944
|
+
providers: [
|
945
|
+
{
|
946
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
947
|
+
useExisting: core.forwardRef(( /**
|
948
|
+
* @return {?}
|
949
|
+
*/function () { return TdFileUploadComponent; })),
|
950
|
+
multi: true,
|
951
|
+
},
|
952
|
+
],
|
953
|
+
selector: 'td-file-upload',
|
954
|
+
inputs: ['disabled', 'value'],
|
955
|
+
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",
|
956
|
+
styles: [".td-file-upload{padding-left:8px;padding-right:8px}.td-file-upload-cancel{height:24px;left:-12px;position:relative;top:24px;width:24px}::ng-deep [dir=rtl] .td-file-upload-cancel{left:0;right:-12px}.td-file-upload-cancel mat-icon{border-radius:12px;vertical-align:baseline}.drop-zone{border-radius:3px}.drop-zone *{pointer-events:none}"]
|
957
|
+
}] }
|
958
|
+
];
|
959
|
+
/** @nocollapse */
|
960
|
+
TdFileUploadComponent.ctorParameters = function () { return [
|
961
|
+
{ type: core.ChangeDetectorRef }
|
962
|
+
]; };
|
963
|
+
TdFileUploadComponent.propDecorators = {
|
964
|
+
fileInput: [{ type: core.ViewChild, args: [TdFileInputComponent,] }],
|
965
|
+
inputLabel: [{ type: core.ContentChild, args: [TdFileInputLabelDirective,] }],
|
966
|
+
defaultColor: [{ type: core.Input }],
|
967
|
+
activeColor: [{ type: core.Input }],
|
968
|
+
cancelColor: [{ type: core.Input }],
|
969
|
+
multiple: [{ type: core.Input, args: ['multiple',] }],
|
970
|
+
required: [{ type: core.Input, args: ['required',] }],
|
971
|
+
accept: [{ type: core.Input }],
|
972
|
+
select: [{ type: core.Output }],
|
973
|
+
upload: [{ type: core.Output }],
|
974
|
+
cancel: [{ type: core.Output }]
|
975
|
+
};
|
1039
976
|
if (false) {
|
1040
977
|
/**
|
1041
978
|
* @type {?}
|
@@ -1100,7 +1037,8 @@
|
|
1100
1037
|
|
1101
1038
|
/**
|
1102
1039
|
* @fileoverview added by tsickle
|
1103
|
-
*
|
1040
|
+
* Generated from: services/file.service.ts
|
1041
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1104
1042
|
*/
|
1105
1043
|
/**
|
1106
1044
|
* @record
|
@@ -1115,8 +1053,8 @@
|
|
1115
1053
|
var TdFileService = /** @class */ (function () {
|
1116
1054
|
/**
|
1117
1055
|
* Creates a new instance
|
1118
|
-
*
|
1119
|
-
* @
|
1056
|
+
* \@breaking-change 3.0.0 remove 'Optional' decorator once the legay upload method is removed
|
1057
|
+
* @param {?} _http the http client instance
|
1120
1058
|
*/
|
1121
1059
|
function TdFileService(_http) {
|
1122
1060
|
this._http = _http;
|
@@ -1125,32 +1063,17 @@
|
|
1125
1063
|
}
|
1126
1064
|
Object.defineProperty(TdFileService.prototype, "progress", {
|
1127
1065
|
/**
|
1128
|
-
* Gets progress observable to keep track of the files being uploaded.
|
1129
|
-
* Needs to be supported by backend.
|
1130
|
-
*/
|
1131
|
-
get: /**
|
1132
1066
|
* Gets progress observable to keep track of the files being uploaded.
|
1133
1067
|
* Needs to be supported by backend.
|
1134
1068
|
* @return {?}
|
1135
1069
|
*/
|
1136
|
-
function () {
|
1070
|
+
get: function () {
|
1137
1071
|
return this._progressObservable;
|
1138
1072
|
},
|
1139
|
-
enumerable:
|
1073
|
+
enumerable: false,
|
1140
1074
|
configurable: true
|
1141
1075
|
});
|
1142
1076
|
/**
|
1143
|
-
* Uploads a file to a URL.
|
1144
|
-
*/
|
1145
|
-
/**
|
1146
|
-
* Uploads a file to a URL.
|
1147
|
-
* @param {?} url
|
1148
|
-
* @param {?} method
|
1149
|
-
* @param {?} body
|
1150
|
-
* @param {?=} __3
|
1151
|
-
* @return {?}
|
1152
|
-
*/
|
1153
|
-
TdFileService.prototype.send = /**
|
1154
1077
|
* Uploads a file to a URL.
|
1155
1078
|
* @param {?} url
|
1156
1079
|
* @param {?} method
|
@@ -1158,7 +1081,7 @@
|
|
1158
1081
|
* @param {?=} __3
|
1159
1082
|
* @return {?}
|
1160
1083
|
*/
|
1161
|
-
function (url, method, body, _a) {
|
1084
|
+
TdFileService.prototype.send = function (url, method, body, _a) {
|
1162
1085
|
var _this = this;
|
1163
1086
|
var _b = _a === void 0 ? {} : _a, headers = _b.headers, params = _b.params;
|
1164
1087
|
if (!this._http) {
|
@@ -1170,11 +1093,10 @@
|
|
1170
1093
|
headers: new http.HttpHeaders(headers || {}),
|
1171
1094
|
params: new http.HttpParams({ fromObject: params || {} }),
|
1172
1095
|
});
|
1173
|
-
return this._http.request(req).pipe(operators.tap((/**
|
1096
|
+
return this._http.request(req).pipe(operators.tap(( /**
|
1174
1097
|
* @param {?} event
|
1175
1098
|
* @return {?}
|
1176
|
-
*/
|
1177
|
-
function (event) { return _this.handleEvent(event); })));
|
1099
|
+
*/function (event) { return _this.handleEvent(event); })));
|
1178
1100
|
};
|
1179
1101
|
/**
|
1180
1102
|
* @private
|
@@ -1182,13 +1104,7 @@
|
|
1182
1104
|
* @param {?} event
|
1183
1105
|
* @return {?}
|
1184
1106
|
*/
|
1185
|
-
TdFileService.prototype.handleEvent =
|
1186
|
-
* @private
|
1187
|
-
* @template T
|
1188
|
-
* @param {?} event
|
1189
|
-
* @return {?}
|
1190
|
-
*/
|
1191
|
-
function (event) {
|
1107
|
+
TdFileService.prototype.handleEvent = function (event) {
|
1192
1108
|
switch (event.type) {
|
1193
1109
|
case http.HttpEventType.Sent:
|
1194
1110
|
this._progressSubject.next(0);
|
@@ -1203,15 +1119,15 @@
|
|
1203
1119
|
break;
|
1204
1120
|
}
|
1205
1121
|
};
|
1206
|
-
TdFileService.decorators = [
|
1207
|
-
{ type: core.Injectable }
|
1208
|
-
];
|
1209
|
-
/** @nocollapse */
|
1210
|
-
TdFileService.ctorParameters = function () { return [
|
1211
|
-
{ type: http.HttpClient, decorators: [{ type: core.Optional }] }
|
1212
|
-
]; };
|
1213
1122
|
return TdFileService;
|
1214
1123
|
}());
|
1124
|
+
TdFileService.decorators = [
|
1125
|
+
{ type: core.Injectable }
|
1126
|
+
];
|
1127
|
+
/** @nocollapse */
|
1128
|
+
TdFileService.ctorParameters = function () { return [
|
1129
|
+
{ type: http.HttpClient, decorators: [{ type: core.Optional }] }
|
1130
|
+
]; };
|
1215
1131
|
if (false) {
|
1216
1132
|
/**
|
1217
1133
|
* @type {?}
|
@@ -1232,7 +1148,8 @@
|
|
1232
1148
|
|
1233
1149
|
/**
|
1234
1150
|
* @fileoverview added by tsickle
|
1235
|
-
*
|
1151
|
+
* Generated from: file.module.ts
|
1152
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1236
1153
|
*/
|
1237
1154
|
/** @type {?} */
|
1238
1155
|
var TD_FILE = [
|
@@ -1245,16 +1162,34 @@
|
|
1245
1162
|
var CovalentFileModule = /** @class */ (function () {
|
1246
1163
|
function CovalentFileModule() {
|
1247
1164
|
}
|
1248
|
-
CovalentFileModule.decorators = [
|
1249
|
-
{ type: core.NgModule, args: [{
|
1250
|
-
imports: [forms.FormsModule, common.CommonModule, icon.MatIconModule, button.MatButtonModule, portal.PortalModule],
|
1251
|
-
declarations: [TD_FILE],
|
1252
|
-
exports: [TD_FILE],
|
1253
|
-
providers: [TdFileService],
|
1254
|
-
},] }
|
1255
|
-
];
|
1256
1165
|
return CovalentFileModule;
|
1257
1166
|
}());
|
1167
|
+
CovalentFileModule.decorators = [
|
1168
|
+
{ type: core.NgModule, args: [{
|
1169
|
+
imports: [forms.FormsModule, common$1.CommonModule, icon.MatIconModule, button.MatButtonModule, portal.PortalModule],
|
1170
|
+
declarations: [TD_FILE],
|
1171
|
+
exports: [TD_FILE],
|
1172
|
+
providers: [TdFileService],
|
1173
|
+
},] }
|
1174
|
+
];
|
1175
|
+
|
1176
|
+
/**
|
1177
|
+
* @fileoverview added by tsickle
|
1178
|
+
* Generated from: public-api.ts
|
1179
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1180
|
+
*/
|
1181
|
+
|
1182
|
+
/**
|
1183
|
+
* @fileoverview added by tsickle
|
1184
|
+
* Generated from: index.ts
|
1185
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1186
|
+
*/
|
1187
|
+
|
1188
|
+
/**
|
1189
|
+
* @fileoverview added by tsickle
|
1190
|
+
* Generated from: covalent-core-file.ts
|
1191
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1192
|
+
*/
|
1258
1193
|
|
1259
1194
|
exports.CovalentFileModule = CovalentFileModule;
|
1260
1195
|
exports.TdFileDropBase = TdFileDropBase;
|