@covalent/core 4.0.0-beta.4 → 4.1.0-develop.11
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/README.md +5 -4
- package/breadcrumbs/README.md +21 -17
- package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -1
- package/breadcrumbs/breadcrumbs.component.d.ts +3 -4
- package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -1
- package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/README.md +3 -0
- package/common/_common-theme.scss +1 -1
- package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
- package/common/behaviors/disabled.mixin.d.ts +1 -1
- package/common/covalent-core-common.d.ts +1 -1
- package/common/material-icons.css +1 -111
- package/common/material-icons.css.map +1 -1
- package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
- package/common/platform.css +1 -16819
- package/common/platform.css.map +1 -1
- package/common/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/styles/_elevation.scss +7 -2
- package/common/styles/_typography-functions.scss +10 -2
- package/common/styles/_variables.scss +2 -1
- package/common/styles/core/_button.scss +35 -5
- package/common/styles/core/_card.scss +11 -6
- package/common/styles/core/_whiteframe.scss +16 -8
- package/common/styles/font/README.md +4 -2
- package/covalent-core.d.ts +1 -1
- package/dialogs/README.md +38 -30
- package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -2
- package/dialogs/covalent-core-dialogs.d.ts +1 -1
- package/dialogs/dialog.component.d.ts +4 -4
- package/dialogs/dialogs.module.d.ts +1 -1
- package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +7 -6
- package/dialogs/{public-api.d.ts → public_api.d.ts} +0 -0
- package/dialogs/src/README.md +223 -0
- package/dialogs/window-dialog/window-dialog.component.d.ts +5 -5
- package/dynamic-menu/README.md +6 -6
- package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu.component.d.ts +1 -22
- package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
- package/dynamic-menu/public_api.d.ts +1 -0
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +21 -37
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +25 -34
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +12 -13
- package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +2 -2
- package/esm2020/breadcrumbs/public_api.mjs +4 -0
- package/esm2020/common/animations/bounce/bounce.animation.mjs +1 -1
- package/esm2020/common/animations/collapse/collapse.animation.mjs +1 -1
- package/esm2020/common/animations/common/interfaces.mjs +1 -1
- package/esm2020/common/animations/fade/fadeInOut.animation.mjs +1 -1
- package/esm2020/common/animations/flash/flash.animation.mjs +1 -1
- package/esm2020/common/animations/headshake/headshake.animation.mjs +17 -5
- package/esm2020/common/animations/jello/jello.animation.mjs +29 -8
- package/esm2020/common/animations/pulse/pulse.animation.mjs +1 -1
- package/esm2020/common/animations/rotate/rotate.animation.mjs +7 -2
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +4 -2
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +1 -1
- package/esm2020/common/behaviors/disabled.mixin.mjs +1 -1
- package/esm2020/common/common.module.mjs +14 -15
- package/esm2020/common/covalent-core-common.mjs +2 -2
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +41 -41
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +19 -19
- package/esm2020/common/forms/validators/validators.mjs +6 -6
- package/esm2020/common/functions/clipboard.mjs +1 -1
- package/esm2020/common/functions/convert.mjs +1 -1
- package/esm2020/common/functions/download.mjs +1 -1
- package/esm2020/common/functions/file.mjs +1 -1
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +21 -11
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +21 -11
- package/esm2020/common/pipes/digits/digits.pipe.mjs +13 -13
- package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +9 -9
- package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +9 -9
- package/esm2020/common/pipes/time-until/time-until.pipe.mjs +9 -9
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +10 -10
- package/esm2020/common/public_api.mjs +39 -0
- package/esm2020/common/services/icon.service.mjs +6 -6
- package/esm2020/common/services/router-path.service.mjs +6 -6
- package/esm2020/covalent-core.mjs +2 -2
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +9 -40
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +9 -49
- package/esm2020/dialogs/covalent-core-dialogs.mjs +2 -2
- package/esm2020/dialogs/dialog.component.mjs +35 -76
- package/esm2020/dialogs/dialogs.module.mjs +39 -36
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +24 -79
- package/esm2020/dialogs/public_api.mjs +9 -0
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +27 -10
- package/esm2020/dialogs/services/dialog.service.mjs +16 -13
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +24 -55
- package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +2 -2
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +19 -136
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +14 -103
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +18 -101
- package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
- package/esm2020/dynamic-menu/dynamic-menu.module.mjs +44 -19
- package/esm2020/dynamic-menu/public_api.mjs +2 -1
- package/esm2020/file/covalent-core-file.mjs +2 -2
- package/esm2020/file/directives/file-drop.directive.mjs +62 -67
- package/esm2020/file/directives/file-select.directive.mjs +32 -31
- package/esm2020/file/file-input/file-input.component.mjs +41 -68
- package/esm2020/file/file-upload/file-upload.component.mjs +76 -112
- package/esm2020/file/file.module.mjs +32 -17
- package/esm2020/file/public_api.mjs +7 -0
- package/esm2020/file/services/file.service.mjs +13 -11
- package/esm2020/json-formatter/collapse.animation.mjs +51 -0
- package/esm2020/json-formatter/covalent-core-json-formatter.mjs +2 -2
- package/esm2020/json-formatter/json-formatter.component.mjs +38 -123
- package/esm2020/json-formatter/json-formatter.module.mjs +12 -13
- package/esm2020/json-formatter/public_api.mjs +3 -0
- package/esm2020/layout/covalent-core-layout.mjs +2 -2
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +17 -64
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +9 -14
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +22 -51
- package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +47 -53
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +22 -84
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +37 -124
- package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +47 -53
- package/esm2020/layout/layout-toggle.class.mjs +12 -15
- package/esm2020/layout/layout.component.mjs +22 -43
- package/esm2020/layout/layout.directives.mjs +48 -50
- package/esm2020/layout/layout.module.mjs +34 -35
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +56 -201
- package/esm2020/layout/public_api.mjs +13 -0
- package/esm2020/menu/covalent-core-menu.mjs +2 -2
- package/esm2020/menu/menu.component.mjs +7 -18
- package/esm2020/menu/menu.module.mjs +12 -13
- package/esm2020/menu/public_api.mjs +3 -0
- package/esm2020/message/collapse.animation.mjs +51 -0
- package/esm2020/message/covalent-core-message.mjs +2 -2
- package/esm2020/message/message.component.mjs +44 -102
- package/esm2020/message/message.module.mjs +19 -15
- package/esm2020/message/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/search/covalent-core-search.mjs +2 -2
- package/esm2020/search/public_api.mjs +4 -0
- package/esm2020/search/search-box/search-box.component.mjs +97 -123
- package/esm2020/search/search-input/search-input.component.mjs +116 -153
- package/esm2020/search/search.module.mjs +28 -13
- package/esm2020/side-sheet/covalent-core-side-sheet.mjs +2 -2
- package/esm2020/side-sheet/public_api.mjs +6 -0
- package/esm2020/side-sheet/side-sheet-container.mjs +89 -57
- package/esm2020/side-sheet/side-sheet-ref.mjs +2 -2
- package/esm2020/side-sheet/side-sheet.animation.mjs +2 -2
- package/esm2020/side-sheet/side-sheet.config.mjs +1 -1
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +109 -86
- package/esm2020/side-sheet/side-sheet.mjs +44 -31
- package/esm2020/side-sheet/side-sheet.module.mjs +37 -38
- package/esm2020/user-profile/covalent-core-user-profile.mjs +2 -2
- package/esm2020/user-profile/public_api.mjs +1 -1
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +13 -64
- package/esm2020/user-profile/user-profile.component.mjs +13 -35
- package/esm2020/user-profile/user-profile.module.mjs +32 -14
- package/fesm2015/covalent-core-breadcrumbs.mjs +40 -85
- package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -1
- package/fesm2015/covalent-core-common.mjs +170 -140
- package/fesm2015/covalent-core-common.mjs.map +1 -1
- package/fesm2015/covalent-core-dialogs.mjs +133 -363
- package/fesm2015/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2015/covalent-core-dynamic-menu.mjs +73 -425
- package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -1
- package/fesm2015/covalent-core-file.mjs +174 -261
- package/fesm2015/covalent-core-file.mjs.map +1 -1
- package/fesm2015/covalent-core-json-formatter.mjs +93 -148
- package/fesm2015/covalent-core-json-formatter.mjs.map +1 -1
- package/fesm2015/covalent-core-layout.mjs +194 -747
- package/fesm2015/covalent-core-layout.mjs.map +1 -1
- package/fesm2015/covalent-core-menu.mjs +10 -28
- package/fesm2015/covalent-core-menu.mjs.map +1 -1
- package/fesm2015/covalent-core-message.mjs +79 -104
- package/fesm2015/covalent-core-message.mjs.map +1 -1
- package/fesm2015/covalent-core-search.mjs +147 -227
- package/fesm2015/covalent-core-search.mjs.map +1 -1
- package/fesm2015/covalent-core-side-sheet.mjs +202 -173
- package/fesm2015/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2015/covalent-core-user-profile.mjs +38 -114
- package/fesm2015/covalent-core-user-profile.mjs.map +1 -1
- package/fesm2015/covalent-core.mjs.map +1 -1
- package/fesm2020/covalent-core-breadcrumbs.mjs +54 -80
- package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -1
- package/fesm2020/covalent-core-common.mjs +224 -165
- package/fesm2020/covalent-core-common.mjs.map +1 -1
- package/fesm2020/covalent-core-dialogs.mjs +168 -343
- package/fesm2020/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2020/covalent-core-dynamic-menu.mjs +89 -354
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -1
- package/fesm2020/covalent-core-file.mjs +245 -292
- package/fesm2020/covalent-core-file.mjs.map +1 -1
- package/fesm2020/covalent-core-json-formatter.mjs +97 -133
- package/fesm2020/covalent-core-json-formatter.mjs.map +1 -1
- package/fesm2020/covalent-core-layout.mjs +353 -767
- package/fesm2020/covalent-core-layout.mjs.map +1 -1
- package/fesm2020/covalent-core-menu.mjs +17 -29
- package/fesm2020/covalent-core-menu.mjs.map +1 -1
- package/fesm2020/covalent-core-message.mjs +110 -114
- package/fesm2020/covalent-core-message.mjs.map +1 -1
- package/fesm2020/covalent-core-search.mjs +233 -281
- package/fesm2020/covalent-core-search.mjs.map +1 -1
- package/fesm2020/covalent-core-side-sheet.mjs +267 -200
- package/fesm2020/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2020/covalent-core-user-profile.mjs +54 -109
- package/fesm2020/covalent-core-user-profile.mjs.map +1 -1
- package/fesm2020/covalent-core.mjs.map +1 -1
- package/file/_file-theme.scss +2 -1
- package/file/covalent-core-file.d.ts +1 -1
- package/file/directives/file-drop.directive.d.ts +13 -20
- package/file/directives/file-select.directive.d.ts +2 -2
- package/file/file-input/file-input.component.d.ts +7 -7
- package/file/file-upload/file-upload.component.d.ts +16 -9
- package/file/{public-api.d.ts → public_api.d.ts} +0 -0
- package/file/{file-input → src/file-input}/README.md +46 -37
- package/file/{file-upload → src/file-upload}/README.md +36 -27
- package/json-formatter/README.md +8 -8
- package/json-formatter/collapse.animation.d.ts +24 -0
- package/json-formatter/covalent-core-json-formatter.d.ts +1 -1
- package/json-formatter/json-formatter.component.d.ts +4 -4
- package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/layout/README.md +48 -50
- package/layout/covalent-core-layout.d.ts +1 -1
- package/layout/layout-card-over/layout-card-over.component.d.ts +3 -3
- package/layout/layout-footer/layout-footer.component.d.ts +3 -3
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +4 -4
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +5 -5
- package/layout/layout-nav/layout-nav.component.d.ts +5 -5
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +9 -9
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +5 -5
- package/layout/layout-toggle.class.d.ts +1 -1
- package/layout/layout.component.d.ts +4 -4
- package/layout/layout.directives.d.ts +2 -2
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +12 -12
- package/layout/{public-api.d.ts → public_api.d.ts} +0 -0
- package/layout/{layout-card-over → src/layout-card-over}/README.md +19 -17
- package/layout/{layout-manage-list → src/layout-manage-list}/README.md +24 -28
- package/layout/src/layout-nav/README.md +50 -0
- package/layout/{layout-nav-list → src/layout-nav-list}/README.md +44 -40
- package/menu/covalent-core-menu.d.ts +1 -1
- package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
- package/message/README.md +26 -18
- package/message/collapse.animation.d.ts +24 -0
- package/message/covalent-core-message.d.ts +1 -1
- package/message/message.component.d.ts +4 -4
- package/message/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +36 -55
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/search/README.md +74 -73
- package/search/covalent-core-search.d.ts +1 -1
- package/search/{public-api.d.ts → public_api.d.ts} +0 -0
- package/search/search-box/search-box.component.d.ts +10 -6
- package/search/search-input/search-input.component.d.ts +10 -6
- package/search/src/search-box/README.md +73 -0
- package/search/src/search-input/README.md +74 -0
- package/side-sheet/README.md +3 -5
- package/side-sheet/{side-sheet.theme.scss → _side-sheet.theme.scss} +0 -0
- package/side-sheet/covalent-core-side-sheet.d.ts +1 -1
- package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
- package/side-sheet/side-sheet-container.d.ts +18 -7
- package/side-sheet/side-sheet.content-directives.d.ts +22 -16
- package/side-sheet/side-sheet.d.ts +2 -2
- package/side-sheet/side-sheet.module.d.ts +1 -1
- package/theming/prebuilt/blue-grey-deep-orange.css +1 -2815
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.css +1 -2815
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/indigo-pink.css +1 -2815
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.css +1 -2815
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/teal-orange.css +1 -2815
- package/theming/prebuilt/teal-orange.css.map +1 -1
- package/user-profile/README.md +5 -5
- package/user-profile/covalent-core-user-profile.d.ts +1 -1
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +2 -2
- package/user-profile/user-profile.component.d.ts +2 -2
- package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -25
- package/breadcrumbs/breadcrumbs.component.scss +0 -8
- package/breadcrumbs/index.d.ts +0 -1
- package/common/index.d.ts +0 -1
- package/common/material-icons.scss +0 -3
- package/common/platform.scss +0 -7
- package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
- package/dialogs/dialog.component.scss +0 -49
- package/dialogs/index.d.ts +0 -1
- package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -16
- package/dialogs/window-dialog/window-dialog.component.scss +0 -31
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -7
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -13
- package/dynamic-menu/dynamic-menu.component.scss +0 -0
- package/dynamic-menu/index.d.ts +0 -1
- package/esm2020/breadcrumbs/index.mjs +0 -2
- package/esm2020/breadcrumbs/public-api.mjs +0 -4
- package/esm2020/common/index.mjs +0 -2
- package/esm2020/common/public-api.mjs +0 -39
- package/esm2020/dialogs/index.mjs +0 -2
- package/esm2020/dialogs/public-api.mjs +0 -9
- package/esm2020/dynamic-menu/index.mjs +0 -2
- package/esm2020/file/index.mjs +0 -2
- package/esm2020/file/public-api.mjs +0 -7
- package/esm2020/index.mjs +0 -2
- package/esm2020/json-formatter/index.mjs +0 -2
- package/esm2020/json-formatter/public-api.mjs +0 -3
- package/esm2020/layout/index.mjs +0 -2
- package/esm2020/layout/public-api.mjs +0 -13
- package/esm2020/menu/index.mjs +0 -2
- package/esm2020/menu/public-api.mjs +0 -3
- package/esm2020/message/index.mjs +0 -2
- package/esm2020/message/public-api.mjs +0 -3
- package/esm2020/search/index.mjs +0 -2
- package/esm2020/search/public-api.mjs +0 -4
- package/esm2020/side-sheet/index.mjs +0 -2
- package/esm2020/side-sheet/public-api.mjs +0 -6
- package/esm2020/user-profile/index.mjs +0 -2
- package/file/file-input/file-input.component.scss +0 -22
- package/file/file-upload/file-upload.component.scss +0 -34
- package/file/index.d.ts +0 -1
- package/json-formatter/index.d.ts +0 -1
- package/json-formatter/json-formatter.component.scss +0 -74
- package/layout/index.d.ts +0 -1
- package/layout/layout-card-over/layout-card-over.component.scss +0 -45
- package/layout/layout-footer/layout-footer.component.scss +0 -4
- package/layout/layout-manage-list/layout-manage-list.component.scss +0 -82
- package/layout/layout-nav/README.md +0 -46
- package/layout/layout-nav/layout-nav.component.scss +0 -54
- package/layout/layout-nav-list/layout-nav-list.component.scss +0 -115
- package/layout/layout.component.scss +0 -16
- package/layout/navigation-drawer/navigation-drawer.component.scss +0 -81
- package/menu/index.d.ts +0 -1
- package/menu/menu.component.scss +0 -51
- package/message/index.d.ts +0 -1
- package/message/message.component.scss +0 -32
- package/schematics/README.md +0 -66
- package/schematics/ng-add/files/theme.scss +0 -64
- package/search/index.d.ts +0 -1
- package/search/search-box/README.md +0 -62
- package/search/search-box/search-box.component.scss +0 -37
- package/search/search-input/README.md +0 -65
- package/search/search-input/search-input.component.scss +0 -75
- package/side-sheet/index.d.ts +0 -1
- package/side-sheet/side-sheet.scss +0 -68
- package/theming/prebuilt/blue-grey-deep-orange.scss +0 -20
- package/theming/prebuilt/blue-orange.scss +0 -20
- package/theming/prebuilt/indigo-pink.scss +0 -20
- package/theming/prebuilt/orange-light-blue.scss +0 -20
- package/theming/prebuilt/teal-orange.scss +0 -20
- package/user-profile/index.d.ts +0 -1
- package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -41
@@ -1,18 +1,18 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { EventEmitter, Directive, Optional, Host, Input, Output, HostBinding, HostListener, forwardRef, Component, ChangeDetectionStrategy, ViewChild, ContentChild, Injectable, NgModule } from '@angular/core';
|
3
|
-
import * as
|
3
|
+
import * as i4 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
import * as i1 from '@angular/forms';
|
6
6
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
7
|
-
import * as
|
7
|
+
import * as i6 from '@angular/cdk/portal';
|
8
8
|
import { TemplatePortalDirective, PortalModule } from '@angular/cdk/portal';
|
9
|
-
import * as
|
9
|
+
import * as i3 from '@angular/material/icon';
|
10
10
|
import { MatIconModule } from '@angular/material/icon';
|
11
11
|
import * as i1$1 from '@angular/material/button';
|
12
12
|
import { MatButtonModule } from '@angular/material/button';
|
13
13
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
14
|
-
import {
|
15
|
-
import * as i1$
|
14
|
+
import { mixinControlValueAccessor, mixinDisabled } from '@covalent/core/common';
|
15
|
+
import * as i1$2 from '@angular/common/http';
|
16
16
|
import { HttpRequest, HttpHeaders, HttpParams, HttpEventType } from '@angular/common/http';
|
17
17
|
import { Subject } from 'rxjs';
|
18
18
|
import { tap } from 'rxjs/operators';
|
@@ -51,38 +51,35 @@ class TdFileSelectDirective {
|
|
51
51
|
onChange(event) {
|
52
52
|
if (event.target instanceof HTMLInputElement) {
|
53
53
|
const fileInputEl = event.target;
|
54
|
-
const files = fileInputEl.files;
|
54
|
+
const files = fileInputEl.files || new FileList();
|
55
55
|
if (files.length) {
|
56
|
-
const value = this._multiple
|
57
|
-
|
56
|
+
const value = this._multiple
|
57
|
+
? files.length > 1
|
58
|
+
? files
|
59
|
+
: files[0]
|
60
|
+
: files[0];
|
61
|
+
this.model
|
62
|
+
? this.model.update.emit(value)
|
63
|
+
: this.fileSelect.emit(value);
|
58
64
|
}
|
59
65
|
}
|
60
66
|
}
|
61
67
|
}
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
i0.ɵɵlistener("change", function TdFileSelectDirective_change_HostBindingHandler($event) { return ctx.onChange($event); });
|
66
|
-
}
|
67
|
-
if (rf & 2) {
|
68
|
-
i0.ɵɵattribute("multiple", ctx.multipleBinding);
|
69
|
-
}
|
70
|
-
}, inputs: { multiple: "multiple" }, outputs: { fileSelect: "fileSelect" } });
|
71
|
-
(function () {
|
72
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileSelectDirective, [{
|
68
|
+
TdFileSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileSelectDirective, deps: [{ token: i1.NgModel, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
69
|
+
TdFileSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdFileSelectDirective, selector: "[tdFileSelect]", inputs: { multiple: "multiple" }, outputs: { fileSelect: "fileSelect" }, host: { listeners: { "change": "onChange($event)" }, properties: { "attr.multiple": "this.multipleBinding" } }, ngImport: i0 });
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileSelectDirective, decorators: [{
|
73
71
|
type: Directive,
|
74
72
|
args: [{
|
75
73
|
selector: '[tdFileSelect]',
|
76
74
|
}]
|
77
|
-
}], function () {
|
75
|
+
}], ctorParameters: function () {
|
78
76
|
return [{ type: i1.NgModel, decorators: [{
|
79
77
|
type: Optional
|
80
78
|
}, {
|
81
79
|
type: Host
|
82
80
|
}] }];
|
83
|
-
}, { multiple: [{
|
84
|
-
type: Input
|
85
|
-
args: ['multiple']
|
81
|
+
}, propDecorators: { multiple: [{
|
82
|
+
type: Input
|
86
83
|
}], fileSelect: [{
|
87
84
|
type: Output
|
88
85
|
}], multipleBinding: [{
|
@@ -91,19 +88,17 @@ class TdFileSelectDirective {
|
|
91
88
|
}], onChange: [{
|
92
89
|
type: HostListener,
|
93
90
|
args: ['change', ['$event']]
|
94
|
-
}] });
|
95
|
-
})();
|
91
|
+
}] } });
|
96
92
|
|
97
93
|
class TdFileDropBase {
|
98
94
|
}
|
99
|
-
|
100
|
-
|
101
|
-
class TdFileDropDirective extends _TdFileDropMixinBase {
|
102
|
-
constructor(_renderer, _element) {
|
103
|
-
super();
|
95
|
+
class TdFileDropDirective {
|
96
|
+
constructor(_renderer, _element, _ngZone) {
|
104
97
|
this._renderer = _renderer;
|
105
98
|
this._element = _element;
|
99
|
+
this._ngZone = _ngZone;
|
106
100
|
this._multiple = false;
|
101
|
+
this.disabled = false;
|
107
102
|
/**
|
108
103
|
* fileDrop?: function
|
109
104
|
* Event emitted when a file or files are dropped in host element after being validated.
|
@@ -131,17 +126,45 @@ class TdFileDropDirective extends _TdFileDropMixinBase {
|
|
131
126
|
get disabledBinding() {
|
132
127
|
return this.disabled ? '' : undefined;
|
133
128
|
}
|
129
|
+
ngOnInit() {
|
130
|
+
this._ngZone.runOutsideAngular(() => {
|
131
|
+
// Listens to 'dragenter' host event to add animation class 'drop-zone' which can be overriden in host.
|
132
|
+
// Stops event propagation and default action from browser for 'dragenter' event.
|
133
|
+
this._dragenterListener = this._renderer.listen(this._element.nativeElement, 'dragenter', (event) => {
|
134
|
+
if (!this.disabled) {
|
135
|
+
this._renderer.addClass(this._element.nativeElement, 'drop-zone');
|
136
|
+
}
|
137
|
+
this._stopEvent(event);
|
138
|
+
});
|
139
|
+
// Listens to 'dragleave' host event to remove animation class 'drop-zone'.
|
140
|
+
// Stops event propagation and default action from browser for 'dragleave' event.
|
141
|
+
this._dragleaveListener = this._renderer.listen(this._element.nativeElement, 'dragleave', (event) => {
|
142
|
+
this._renderer.removeClass(this._element.nativeElement, 'drop-zone');
|
143
|
+
this._stopEvent(event);
|
144
|
+
});
|
145
|
+
});
|
146
|
+
}
|
147
|
+
ngOnDestroy() {
|
148
|
+
var _a, _b;
|
149
|
+
(_a = this._dragenterListener) === null || _a === void 0 ? void 0 : _a.call(this);
|
150
|
+
(_b = this._dragleaveListener) === null || _b === void 0 ? void 0 : _b.call(this);
|
151
|
+
}
|
134
152
|
/**
|
135
153
|
* Listens to 'drop' host event to get validated transfer items.
|
136
154
|
* Emits the 'fileDrop' event with a [FileList] or [File] depending if 'multiple' attr exists in host.
|
137
155
|
* Stops event propagation and default action from browser for 'drop' event.
|
138
156
|
*/
|
139
157
|
onDrop(event) {
|
158
|
+
var _a;
|
140
159
|
if (!this.disabled) {
|
141
|
-
const transfer = event.dataTransfer;
|
160
|
+
const transfer = (_a = event.dataTransfer) !== null && _a !== void 0 ? _a : new DataTransfer();
|
142
161
|
const files = transfer.files;
|
143
162
|
if (files.length) {
|
144
|
-
const value = this._multiple
|
163
|
+
const value = this._multiple
|
164
|
+
? files.length > 1
|
165
|
+
? files
|
166
|
+
: files[0]
|
167
|
+
: files[0];
|
145
168
|
this.fileDrop.emit(value);
|
146
169
|
}
|
147
170
|
}
|
@@ -154,10 +177,12 @@ class TdFileDropDirective extends _TdFileDropMixinBase {
|
|
154
177
|
* Stops event propagation and default action from browser for 'dragover' event.
|
155
178
|
*/
|
156
179
|
onDragOver(event) {
|
157
|
-
const transfer = event.dataTransfer;
|
180
|
+
const transfer = event.dataTransfer || new DataTransfer();
|
158
181
|
transfer.dropEffect = this._typeCheck(transfer.types);
|
159
182
|
if (this.disabled ||
|
160
|
-
(!this._multiple &&
|
183
|
+
(!this._multiple &&
|
184
|
+
((transfer.items && transfer.items.length > 1) ||
|
185
|
+
transfer.mozItemCount > 1))) {
|
161
186
|
transfer.dropEffect = 'none';
|
162
187
|
}
|
163
188
|
else {
|
@@ -165,24 +190,6 @@ class TdFileDropDirective extends _TdFileDropMixinBase {
|
|
165
190
|
}
|
166
191
|
this._stopEvent(event);
|
167
192
|
}
|
168
|
-
/**
|
169
|
-
* Listens to 'dragenter' host event to add animation class 'drop-zone' which can be overriden in host.
|
170
|
-
* Stops event propagation and default action from browser for 'dragenter' event.
|
171
|
-
*/
|
172
|
-
onDragEnter(event) {
|
173
|
-
if (!this.disabled) {
|
174
|
-
this._renderer.addClass(this._element.nativeElement, 'drop-zone');
|
175
|
-
}
|
176
|
-
this._stopEvent(event);
|
177
|
-
}
|
178
|
-
/**
|
179
|
-
* Listens to 'dragleave' host event to remove animation class 'drop-zone'.
|
180
|
-
* Stops event propagation and default action from browser for 'dragleave' event.
|
181
|
-
*/
|
182
|
-
onDragLeave(event) {
|
183
|
-
this._renderer.removeClass(this._element.nativeElement, 'drop-zone');
|
184
|
-
this._stopEvent(event);
|
185
|
-
}
|
186
193
|
/**
|
187
194
|
* Validates if the transfer item types are 'Files'.
|
188
195
|
*/
|
@@ -200,25 +207,15 @@ class TdFileDropDirective extends _TdFileDropMixinBase {
|
|
200
207
|
event.stopPropagation();
|
201
208
|
}
|
202
209
|
}
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
i0.ɵɵlistener("drop", function TdFileDropDirective_drop_HostBindingHandler($event) { return ctx.onDrop($event); })("dragover", function TdFileDropDirective_dragover_HostBindingHandler($event) { return ctx.onDragOver($event); })("dragenter", function TdFileDropDirective_dragenter_HostBindingHandler($event) { return ctx.onDragEnter($event); })("dragleave", function TdFileDropDirective_dragleave_HostBindingHandler($event) { return ctx.onDragLeave($event); });
|
207
|
-
}
|
208
|
-
if (rf & 2) {
|
209
|
-
i0.ɵɵattribute("multiple", ctx.multipleBinding)("disabled", ctx.disabledBinding);
|
210
|
-
}
|
211
|
-
}, inputs: { disabled: "disabled", multiple: "multiple" }, outputs: { fileDrop: "fileDrop" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
212
|
-
(function () {
|
213
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileDropDirective, [{
|
210
|
+
TdFileDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileDropDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
211
|
+
TdFileDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdFileDropDirective, selector: "[tdFileDrop]", inputs: { multiple: "multiple", disabled: "disabled" }, outputs: { fileDrop: "fileDrop" }, host: { listeners: { "drop": "onDrop($event)", "dragover": "onDragOver($event)" }, properties: { "attr.multiple": "this.multipleBinding", "attr.disabled": "this.disabledBinding" } }, ngImport: i0 });
|
212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileDropDirective, decorators: [{
|
214
213
|
type: Directive,
|
215
|
-
args: [{
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
type: Input,
|
221
|
-
args: ['multiple']
|
214
|
+
args: [{ selector: '[tdFileDrop]' }]
|
215
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { multiple: [{
|
216
|
+
type: Input
|
217
|
+
}], disabled: [{
|
218
|
+
type: Input
|
222
219
|
}], fileDrop: [{
|
223
220
|
type: Output
|
224
221
|
}], multipleBinding: [{
|
@@ -233,38 +230,26 @@ class TdFileDropDirective extends _TdFileDropMixinBase {
|
|
233
230
|
}], onDragOver: [{
|
234
231
|
type: HostListener,
|
235
232
|
args: ['dragover', ['$event']]
|
236
|
-
}]
|
237
|
-
type: HostListener,
|
238
|
-
args: ['dragenter', ['$event']]
|
239
|
-
}], onDragLeave: [{
|
240
|
-
type: HostListener,
|
241
|
-
args: ['dragleave', ['$event']]
|
242
|
-
}] });
|
243
|
-
})();
|
233
|
+
}] } });
|
244
234
|
|
245
|
-
const _c0$1 = ["fileInput"];
|
246
|
-
const _c1 = ["*"];
|
247
235
|
class TdFileInputLabelDirective extends TemplatePortalDirective {
|
248
236
|
constructor(templateRef, viewContainerRef) {
|
249
237
|
super(templateRef, viewContainerRef);
|
250
238
|
}
|
251
239
|
}
|
252
|
-
|
253
|
-
|
254
|
-
(
|
255
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileInputLabelDirective, [{
|
240
|
+
TdFileInputLabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileInputLabelDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
241
|
+
TdFileInputLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdFileInputLabelDirective, selector: "[tdFileInputLabel]ng-template", usesInheritance: true, ngImport: i0 });
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileInputLabelDirective, decorators: [{
|
256
243
|
type: Directive,
|
257
244
|
args: [{
|
258
|
-
selector: '[
|
245
|
+
selector: '[tdFileInputLabel]ng-template',
|
259
246
|
}]
|
260
|
-
}], function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }
|
261
|
-
})();
|
247
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; } });
|
262
248
|
class TdFileInputBase {
|
263
249
|
constructor(_changeDetectorRef) {
|
264
250
|
this._changeDetectorRef = _changeDetectorRef;
|
265
251
|
}
|
266
252
|
}
|
267
|
-
/* tslint:disable-next-line */
|
268
253
|
const _TdFileInputMixinBase = mixinControlValueAccessor(mixinDisabled(TdFileInputBase));
|
269
254
|
class TdFileInputComponent extends _TdFileInputMixinBase {
|
270
255
|
constructor(_renderer, _changeDetectorRef) {
|
@@ -276,7 +261,7 @@ class TdFileInputComponent extends _TdFileInputMixinBase {
|
|
276
261
|
* Event emitted a file is selected
|
277
262
|
* Emits a [File | FileList] object.
|
278
263
|
*/
|
279
|
-
this.
|
264
|
+
this.selectFile = new EventEmitter();
|
280
265
|
}
|
281
266
|
get inputElement() {
|
282
267
|
return this._inputElement.nativeElement;
|
@@ -296,7 +281,7 @@ class TdFileInputComponent extends _TdFileInputMixinBase {
|
|
296
281
|
*/
|
297
282
|
handleSelect(files) {
|
298
283
|
this.writeValue(files);
|
299
|
-
this.
|
284
|
+
this.selectFile.emit(files);
|
300
285
|
}
|
301
286
|
/**
|
302
287
|
* Used to clear the selected files from the [TdFileInputComponent].
|
@@ -318,121 +303,47 @@ class TdFileInputComponent extends _TdFileInputMixinBase {
|
|
318
303
|
this.disabled = isDisabled;
|
319
304
|
}
|
320
305
|
}
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
}, inputs: { disabled: "disabled", value: "value", color: "color", multiple: "multiple", accept: "accept" }, outputs: { select: "select" }, features: [i0.ɵɵProvidersFeature([
|
331
|
-
{
|
332
|
-
provide: NG_VALUE_ACCESSOR,
|
333
|
-
useExisting: forwardRef((() => TdFileInputComponent)),
|
334
|
-
multi: true,
|
335
|
-
},
|
336
|
-
]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 5, vars: 6, consts: [["mat-raised-button", "", "type", "button", "tdFileDrop", "", 1, "td-file-input", 3, "color", "multiple", "disabled", "keyup.enter", "click", "fileDrop"], ["type", "file", "tdFileSelect", "", 1, "td-file-input-hidden", 3, "multiple", "disabled", "fileSelect"], ["fileInput", ""]], template: function TdFileInputComponent_Template(rf, ctx) {
|
337
|
-
if (rf & 1) {
|
338
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
339
|
-
i0.ɵɵprojectionDef();
|
340
|
-
i0.ɵɵelementStart(0, "div");
|
341
|
-
i0.ɵɵelementStart(1, "button", 0);
|
342
|
-
i0.ɵɵlistener("keyup.enter", function TdFileInputComponent_Template_button_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r1); const _r0 = i0.ɵɵreference(4); return _r0.click(); })("click", function TdFileInputComponent_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r1); const _r0 = i0.ɵɵreference(4); return _r0.click(); })("fileDrop", function TdFileInputComponent_Template_button_fileDrop_1_listener($event) { return ctx.handleSelect($event); });
|
343
|
-
i0.ɵɵprojection(2);
|
344
|
-
i0.ɵɵelementEnd();
|
345
|
-
i0.ɵɵelementStart(3, "input", 1, 2);
|
346
|
-
i0.ɵɵlistener("fileSelect", function TdFileInputComponent_Template_input_fileSelect_3_listener($event) { return ctx.handleSelect($event); });
|
347
|
-
i0.ɵɵelementEnd();
|
348
|
-
i0.ɵɵelementEnd();
|
349
|
-
}
|
350
|
-
if (rf & 2) {
|
351
|
-
i0.ɵɵadvance(1);
|
352
|
-
i0.ɵɵproperty("color", ctx.color)("multiple", ctx.multiple)("disabled", ctx.disabled);
|
353
|
-
i0.ɵɵadvance(2);
|
354
|
-
i0.ɵɵproperty("multiple", ctx.multiple)("disabled", ctx.disabled);
|
355
|
-
i0.ɵɵattribute("accept", ctx.accept);
|
356
|
-
}
|
357
|
-
}, directives: [i1$1.MatButton, TdFileDropDirective, TdFileSelectDirective], styles: ["[_nghost-%COMP%] .td-file-input[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px}[_nghost-%COMP%] input.td-file-input-hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .drop-zone[_ngcontent-%COMP%]{border-radius:3px}[_nghost-%COMP%] .drop-zone[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:none}"], changeDetection: 0 });
|
358
|
-
(function () {
|
359
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileInputComponent, [{
|
306
|
+
TdFileInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileInputComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
307
|
+
TdFileInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdFileInputComponent, selector: "td-file-input", inputs: { disabled: "disabled", value: "value", color: "color", multiple: "multiple", accept: "accept" }, outputs: { selectFile: "selectFile" }, providers: [
|
308
|
+
{
|
309
|
+
provide: NG_VALUE_ACCESSOR,
|
310
|
+
useExisting: forwardRef(() => TdFileInputComponent),
|
311
|
+
multi: true,
|
312
|
+
},
|
313
|
+
], viewQueries: [{ propertyName: "_inputElement", first: true, predicate: ["fileInput"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<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", 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}\n"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: TdFileDropDirective, selector: "[tdFileDrop]", inputs: ["multiple", "disabled"], outputs: ["fileDrop"] }, { type: TdFileSelectDirective, selector: "[tdFileSelect]", inputs: ["multiple"], outputs: ["fileSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileInputComponent, decorators: [{
|
360
315
|
type: Component,
|
361
316
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
362
317
|
{
|
363
318
|
provide: NG_VALUE_ACCESSOR,
|
364
|
-
useExisting: forwardRef((
|
319
|
+
useExisting: forwardRef(() => TdFileInputComponent),
|
365
320
|
multi: true,
|
366
321
|
},
|
367
|
-
], selector: 'td-file-input', inputs: ['disabled', 'value'], template: "<
|
368
|
-
}], function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, { _inputElement: [{
|
322
|
+
], selector: 'td-file-input', inputs: ['disabled', 'value'], template: "<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", 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}\n"] }]
|
323
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _inputElement: [{
|
369
324
|
type: ViewChild,
|
370
325
|
args: ['fileInput', { static: true }]
|
371
326
|
}], color: [{
|
372
327
|
type: Input
|
373
328
|
}], multiple: [{
|
374
|
-
type: Input
|
375
|
-
args: ['multiple']
|
329
|
+
type: Input
|
376
330
|
}], accept: [{
|
377
331
|
type: Input
|
378
|
-
}],
|
332
|
+
}], selectFile: [{
|
379
333
|
type: Output
|
380
|
-
}] });
|
381
|
-
})();
|
334
|
+
}] } });
|
382
335
|
|
383
|
-
function TdFileUploadComponent_td_file_input_0_ng_template_1_Template(rf, ctx) { }
|
384
|
-
function TdFileUploadComponent_td_file_input_0_Template(rf, ctx) {
|
385
|
-
if (rf & 1) {
|
386
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
387
|
-
i0.ɵɵelementStart(0, "td-file-input", 2);
|
388
|
-
i0.ɵɵlistener("ngModelChange", function TdFileUploadComponent_td_file_input_0_Template_td_file_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.value = $event; })("select", function TdFileUploadComponent_td_file_input_0_Template_td_file_input_select_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.handleSelect($event); });
|
389
|
-
i0.ɵɵtemplate(1, TdFileUploadComponent_td_file_input_0_ng_template_1_Template, 0, 0, "ng-template", 3);
|
390
|
-
i0.ɵɵelementEnd();
|
391
|
-
}
|
392
|
-
if (rf & 2) {
|
393
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
394
|
-
i0.ɵɵproperty("ngModel", ctx_r0.value)("multiple", ctx_r0.multiple)("disabled", ctx_r0.disabled)("accept", ctx_r0.accept)("color", ctx_r0.defaultColor);
|
395
|
-
i0.ɵɵadvance(1);
|
396
|
-
i0.ɵɵproperty("cdkPortalOutlet", ctx_r0.inputLabel)("ngIf", true);
|
397
|
-
}
|
398
|
-
}
|
399
|
-
function TdFileUploadComponent_div_1_Template(rf, ctx) {
|
400
|
-
if (rf & 1) {
|
401
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
402
|
-
i0.ɵɵelementStart(0, "div");
|
403
|
-
i0.ɵɵelementStart(1, "button", 4, 5);
|
404
|
-
i0.ɵɵlistener("keyup.delete", function TdFileUploadComponent_div_1_Template_button_keyup_delete_1_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7._cancel(); })("keyup.backspace", function TdFileUploadComponent_div_1_Template_button_keyup_backspace_1_listener() { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9._cancel(); })("keyup.escape", function TdFileUploadComponent_div_1_Template_button_keyup_escape_1_listener() { i0.ɵɵrestoreView(_r8); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10._cancel(); })("click", function TdFileUploadComponent_div_1_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r8); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.uploadPressed(); });
|
405
|
-
i0.ɵɵprojection(3);
|
406
|
-
i0.ɵɵelementEnd();
|
407
|
-
i0.ɵɵelementStart(4, "button", 6);
|
408
|
-
i0.ɵɵlistener("click", function TdFileUploadComponent_div_1_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r8); const ctx_r12 = i0.ɵɵnextContext(); return ctx_r12._cancel(); });
|
409
|
-
i0.ɵɵelementStart(5, "mat-icon");
|
410
|
-
i0.ɵɵtext(6, "cancel");
|
411
|
-
i0.ɵɵelementEnd();
|
412
|
-
i0.ɵɵelementEnd();
|
413
|
-
i0.ɵɵelementEnd();
|
414
|
-
}
|
415
|
-
if (rf & 2) {
|
416
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
417
|
-
i0.ɵɵadvance(1);
|
418
|
-
i0.ɵɵproperty("color", ctx_r1.activeColor);
|
419
|
-
i0.ɵɵadvance(3);
|
420
|
-
i0.ɵɵproperty("color", ctx_r1.cancelColor);
|
421
|
-
}
|
422
|
-
}
|
423
|
-
const _c0 = ["*"];
|
424
336
|
class TdFileUploadBase {
|
425
337
|
constructor(_changeDetectorRef) {
|
426
338
|
this._changeDetectorRef = _changeDetectorRef;
|
427
339
|
}
|
428
340
|
}
|
429
|
-
|
430
|
-
const _TdFileUploadMixinBase = mixinControlValueAccessor(mixinDisabled(TdFileUploadBase));
|
431
|
-
class TdFileUploadComponent extends _TdFileUploadMixinBase {
|
341
|
+
class TdFileUploadComponent {
|
432
342
|
constructor(_changeDetectorRef) {
|
433
|
-
|
343
|
+
this._changeDetectorRef = _changeDetectorRef;
|
434
344
|
this._multiple = false;
|
435
345
|
this._required = false;
|
346
|
+
this._disabled = false;
|
436
347
|
/**
|
437
348
|
* defaultColor?: 'accent' | 'primary' | 'warn'
|
438
349
|
* Sets browse button color. Uses same color palette accepted as [MatButton] and defaults to 'primary'.
|
@@ -453,7 +364,7 @@ class TdFileUploadComponent extends _TdFileUploadMixinBase {
|
|
453
364
|
* Event emitted when a file is selected.
|
454
365
|
* Emits a [File | FileList] object.
|
455
366
|
*/
|
456
|
-
this.
|
367
|
+
this.selectFile = new EventEmitter();
|
457
368
|
/**
|
458
369
|
* upload?: function
|
459
370
|
* Event emitted when upload button is clicked.
|
@@ -487,6 +398,23 @@ class TdFileUploadComponent extends _TdFileUploadMixinBase {
|
|
487
398
|
get required() {
|
488
399
|
return this._required;
|
489
400
|
}
|
401
|
+
set disabled(disabled) {
|
402
|
+
this._disabled = disabled;
|
403
|
+
this.onDisabledChange(disabled);
|
404
|
+
}
|
405
|
+
get disabled() {
|
406
|
+
return this._disabled;
|
407
|
+
}
|
408
|
+
writeValue(value) {
|
409
|
+
this.value = value;
|
410
|
+
this._changeDetectorRef.markForCheck();
|
411
|
+
}
|
412
|
+
registerOnChange() {
|
413
|
+
//
|
414
|
+
}
|
415
|
+
registerOnTouched() {
|
416
|
+
//
|
417
|
+
}
|
490
418
|
/**
|
491
419
|
* Method executed when upload button is clicked.
|
492
420
|
*/
|
@@ -500,7 +428,7 @@ class TdFileUploadComponent extends _TdFileUploadMixinBase {
|
|
500
428
|
*/
|
501
429
|
handleSelect(value) {
|
502
430
|
this.value = value;
|
503
|
-
this.
|
431
|
+
this.selectFile.emit(value);
|
504
432
|
}
|
505
433
|
/**
|
506
434
|
* Methods executed when cancel button is clicked.
|
@@ -521,52 +449,24 @@ class TdFileUploadComponent extends _TdFileUploadMixinBase {
|
|
521
449
|
}
|
522
450
|
}
|
523
451
|
}
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
}, viewQuery: function TdFileUploadComponent_Query(rf, ctx) {
|
534
|
-
if (rf & 1) {
|
535
|
-
i0.ɵɵviewQuery(TdFileInputComponent, 5);
|
536
|
-
}
|
537
|
-
if (rf & 2) {
|
538
|
-
let _t;
|
539
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
540
|
-
}
|
541
|
-
}, inputs: { disabled: "disabled", value: "value", defaultColor: "defaultColor", activeColor: "activeColor", cancelColor: "cancelColor", multiple: "multiple", required: "required", accept: "accept" }, outputs: { select: "select", upload: "upload", cancel: "cancel" }, features: [i0.ɵɵProvidersFeature([
|
542
|
-
{
|
543
|
-
provide: NG_VALUE_ACCESSOR,
|
544
|
-
useExisting: forwardRef((() => TdFileUploadComponent)),
|
545
|
-
multi: true,
|
546
|
-
},
|
547
|
-
]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 2, vars: 2, consts: [[3, "ngModel", "multiple", "disabled", "accept", "color", "ngModelChange", "select", 4, "ngIf"], [4, "ngIf"], [3, "ngModel", "multiple", "disabled", "accept", "color", "ngModelChange", "select"], [3, "cdkPortalOutlet", "ngIf"], ["mat-raised-button", "", "type", "button", 1, "td-file-upload", 3, "color", "keyup.delete", "keyup.backspace", "keyup.escape", "click"], ["fileUpload", ""], ["mat-icon-button", "", "type", "button", 1, "td-file-upload-cancel", 3, "color", "click"]], template: function TdFileUploadComponent_Template(rf, ctx) {
|
548
|
-
if (rf & 1) {
|
549
|
-
i0.ɵɵprojectionDef();
|
550
|
-
i0.ɵɵtemplate(0, TdFileUploadComponent_td_file_input_0_Template, 2, 7, "td-file-input", 0);
|
551
|
-
i0.ɵɵtemplate(1, TdFileUploadComponent_div_1_Template, 7, 2, "div", 1);
|
552
|
-
}
|
553
|
-
if (rf & 2) {
|
554
|
-
i0.ɵɵproperty("ngIf", !ctx.value);
|
555
|
-
i0.ɵɵadvance(1);
|
556
|
-
i0.ɵɵproperty("ngIf", ctx.value);
|
557
|
-
}
|
558
|
-
}, directives: [i1$2.NgIf, TdFileInputComponent, i1.NgControlStatus, i1.NgModel, i4.CdkPortalOutlet, i1$1.MatButton, i6.MatIcon], styles: [".td-file-upload[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px}.td-file-upload-cancel[_ngcontent-%COMP%]{height:24px;width:24px;position:relative;top:24px;left:-12px} [dir=rtl] .td-file-upload-cancel{right:-12px;left:0}.td-file-upload-cancel[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{border-radius:12px;vertical-align:baseline}.drop-zone[_ngcontent-%COMP%]{border-radius:3px}.drop-zone[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:none}"], changeDetection: 0 });
|
559
|
-
(function () {
|
560
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileUploadComponent, [{
|
452
|
+
TdFileUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileUploadComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
453
|
+
TdFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdFileUploadComponent, selector: "td-file-upload", inputs: { defaultColor: "defaultColor", activeColor: "activeColor", cancelColor: "cancelColor", multiple: "multiple", required: "required", accept: "accept", disabled: "disabled", value: "value" }, outputs: { selectFile: "selectFile", upload: "upload", cancel: "cancel" }, providers: [
|
454
|
+
{
|
455
|
+
provide: NG_VALUE_ACCESSOR,
|
456
|
+
useExisting: forwardRef(() => TdFileUploadComponent),
|
457
|
+
multi: true,
|
458
|
+
},
|
459
|
+
], queries: [{ propertyName: "inputLabel", first: true, predicate: TdFileInputLabelDirective, descendants: true }], viewQueries: [{ propertyName: "fileInput", first: true, predicate: TdFileInputComponent, descendants: true }], ngImport: i0, template: "<td-file-input\n *ngIf=\"!value\"\n [(ngModel)]=\"value\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n [accept]=\"accept\"\n [color]=\"defaultColor\"\n (selectFile)=\"(handleSelect)\"\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\n mat-icon-button\n type=\"button\"\n class=\"td-file-upload-cancel\"\n [color]=\"cancelColor\"\n (click)=\"_cancel()\"\n >\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n", 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}\n"], components: [{ type: TdFileInputComponent, selector: "td-file-input", inputs: ["disabled", "value", "color", "multiple", "accept"], outputs: ["selectFile"] }, { type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileUploadComponent, decorators: [{
|
561
461
|
type: Component,
|
562
462
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
563
463
|
{
|
564
464
|
provide: NG_VALUE_ACCESSOR,
|
565
|
-
useExisting: forwardRef((
|
465
|
+
useExisting: forwardRef(() => TdFileUploadComponent),
|
566
466
|
multi: true,
|
567
467
|
},
|
568
|
-
], selector: 'td-file-upload',
|
569
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { fileInput: [{
|
468
|
+
], selector: 'td-file-upload', template: "<td-file-input\n *ngIf=\"!value\"\n [(ngModel)]=\"value\"\n [multiple]=\"multiple\"\n [disabled]=\"disabled\"\n [accept]=\"accept\"\n [color]=\"defaultColor\"\n (selectFile)=\"(handleSelect)\"\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\n mat-icon-button\n type=\"button\"\n class=\"td-file-upload-cancel\"\n [color]=\"cancelColor\"\n (click)=\"_cancel()\"\n >\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n", 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}\n"] }]
|
469
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fileInput: [{
|
570
470
|
type: ViewChild,
|
571
471
|
args: [TdFileInputComponent]
|
572
472
|
}], inputLabel: [{
|
@@ -579,21 +479,22 @@ class TdFileUploadComponent extends _TdFileUploadMixinBase {
|
|
579
479
|
}], cancelColor: [{
|
580
480
|
type: Input
|
581
481
|
}], multiple: [{
|
582
|
-
type: Input
|
583
|
-
args: ['multiple']
|
482
|
+
type: Input
|
584
483
|
}], required: [{
|
585
|
-
type: Input
|
586
|
-
args: ['required']
|
484
|
+
type: Input
|
587
485
|
}], accept: [{
|
588
486
|
type: Input
|
589
|
-
}],
|
487
|
+
}], disabled: [{
|
488
|
+
type: Input
|
489
|
+
}], value: [{
|
490
|
+
type: Input
|
491
|
+
}], selectFile: [{
|
590
492
|
type: Output
|
591
493
|
}], upload: [{
|
592
494
|
type: Output
|
593
495
|
}], cancel: [{
|
594
496
|
type: Output
|
595
|
-
}] });
|
596
|
-
})();
|
497
|
+
}] } });
|
597
498
|
|
598
499
|
class TdFileService {
|
599
500
|
/**
|
@@ -625,15 +526,18 @@ class TdFileService {
|
|
625
526
|
headers: new HttpHeaders(headers || {}),
|
626
527
|
params: new HttpParams({ fromObject: params || {} }),
|
627
528
|
});
|
628
|
-
return this._http
|
529
|
+
return this._http
|
530
|
+
.request(req)
|
531
|
+
.pipe(tap((event) => this.handleEvent(event)));
|
629
532
|
}
|
630
533
|
handleEvent(event) {
|
534
|
+
var _a;
|
631
535
|
switch (event.type) {
|
632
536
|
case HttpEventType.Sent:
|
633
537
|
this._progressSubject.next(0);
|
634
538
|
break;
|
635
539
|
case HttpEventType.UploadProgress:
|
636
|
-
this._progressSubject.next(Math.round((100 * event.loaded) / event.total));
|
540
|
+
this._progressSubject.next(Math.round((100 * event.loaded) / ((_a = event.total) !== null && _a !== void 0 ? _a : 0)));
|
637
541
|
break;
|
638
542
|
case HttpEventType.Response:
|
639
543
|
this._progressSubject.next(100);
|
@@ -643,17 +547,15 @@ class TdFileService {
|
|
643
547
|
}
|
644
548
|
}
|
645
549
|
}
|
646
|
-
|
647
|
-
|
648
|
-
(
|
649
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdFileService, [{
|
550
|
+
TdFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileService, deps: [{ token: i1$2.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
551
|
+
TdFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileService });
|
552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFileService, decorators: [{
|
650
553
|
type: Injectable
|
651
|
-
}], function () {
|
652
|
-
return [{ type: i1$
|
554
|
+
}], ctorParameters: function () {
|
555
|
+
return [{ type: i1$2.HttpClient, decorators: [{
|
653
556
|
type: Optional
|
654
557
|
}] }];
|
655
|
-
}
|
656
|
-
})();
|
558
|
+
} });
|
657
559
|
|
658
560
|
const TD_FILE = [
|
659
561
|
TdFileSelectDirective,
|
@@ -664,35 +566,46 @@ const TD_FILE = [
|
|
664
566
|
];
|
665
567
|
class CovalentFileModule {
|
666
568
|
}
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
569
|
+
CovalentFileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
570
|
+
CovalentFileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentFileModule, declarations: [TdFileSelectDirective,
|
571
|
+
TdFileDropDirective,
|
572
|
+
TdFileUploadComponent,
|
573
|
+
TdFileInputComponent,
|
574
|
+
TdFileInputLabelDirective], imports: [FormsModule,
|
575
|
+
CommonModule,
|
576
|
+
MatIconModule,
|
577
|
+
MatButtonModule,
|
578
|
+
PortalModule], exports: [TdFileSelectDirective,
|
579
|
+
TdFileDropDirective,
|
580
|
+
TdFileUploadComponent,
|
581
|
+
TdFileInputComponent,
|
582
|
+
TdFileInputLabelDirective] });
|
583
|
+
CovalentFileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentFileModule, providers: [TdFileService], imports: [[
|
584
|
+
FormsModule,
|
585
|
+
CommonModule,
|
586
|
+
MatIconModule,
|
587
|
+
MatButtonModule,
|
588
|
+
PortalModule,
|
589
|
+
]] });
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentFileModule, decorators: [{
|
672
591
|
type: NgModule,
|
673
592
|
args: [{
|
674
|
-
imports: [
|
593
|
+
imports: [
|
594
|
+
FormsModule,
|
595
|
+
CommonModule,
|
596
|
+
MatIconModule,
|
597
|
+
MatButtonModule,
|
598
|
+
PortalModule,
|
599
|
+
],
|
675
600
|
declarations: [TD_FILE],
|
676
601
|
exports: [TD_FILE],
|
677
602
|
providers: [TdFileService],
|
678
603
|
}]
|
679
|
-
}]
|
680
|
-
})();
|
681
|
-
(function () {
|
682
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentFileModule, { declarations: [TdFileSelectDirective,
|
683
|
-
TdFileDropDirective,
|
684
|
-
TdFileUploadComponent,
|
685
|
-
TdFileInputComponent,
|
686
|
-
TdFileInputLabelDirective], imports: [FormsModule, CommonModule, MatIconModule, MatButtonModule, PortalModule], exports: [TdFileSelectDirective,
|
687
|
-
TdFileDropDirective,
|
688
|
-
TdFileUploadComponent,
|
689
|
-
TdFileInputComponent,
|
690
|
-
TdFileInputLabelDirective] });
|
691
|
-
})();
|
604
|
+
}] });
|
692
605
|
|
693
606
|
/**
|
694
607
|
* Generated bundle index. Do not edit.
|
695
608
|
*/
|
696
609
|
|
697
|
-
export { CovalentFileModule, TdFileDropBase, TdFileDropDirective, TdFileInputBase, TdFileInputComponent, TdFileInputLabelDirective, TdFileSelectDirective, TdFileService, TdFileUploadBase, TdFileUploadComponent,
|
610
|
+
export { CovalentFileModule, TdFileDropBase, TdFileDropDirective, TdFileInputBase, TdFileInputComponent, TdFileInputLabelDirective, TdFileSelectDirective, TdFileService, TdFileUploadBase, TdFileUploadComponent, _TdFileInputMixinBase };
|
698
611
|
//# sourceMappingURL=covalent-core-file.mjs.map
|