@covalent/core 4.0.0 → 4.1.0-develop.2
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 +6 -1
- package/breadcrumbs/breadcrumbs.component.d.ts +4 -0
- package/breadcrumbs/breadcrumbs.module.d.ts +8 -0
- package/breadcrumbs/covalent-core-breadcrumbs.d.ts +2 -1
- package/breadcrumbs/package.json +6 -7
- package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/README.md +3 -0
- package/common/_common-theme.scss +3 -1
- package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
- package/common/behaviors/disabled.mixin.d.ts +1 -1
- package/common/common.module.d.ts +15 -0
- package/common/covalent-core-common.d.ts +2 -3
- package/common/directives/fullscreen/fullscreen.directive.d.ts +3 -0
- package/common/forms/auto-trim/auto-trim.directive.d.ts +3 -0
- package/common/package.json +6 -7
- package/common/pipes/bytes/bytes.pipe.d.ts +3 -0
- package/common/pipes/decimal-bytes/decimal-bytes.pipe.d.ts +3 -0
- package/common/pipes/digits/digits.pipe.d.ts +3 -0
- package/common/pipes/time-ago/time-ago.pipe.d.ts +3 -0
- package/common/pipes/time-difference/time-difference.pipe.d.ts +3 -0
- package/common/pipes/time-until/time-until.pipe.d.ts +3 -0
- package/common/pipes/truncate/truncate.pipe.d.ts +4 -1
- package/common/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/services/icon.service.d.ts +3 -0
- package/common/services/router-path.service.d.ts +3 -0
- package/common/styles/font/README.md +4 -2
- package/covalent-core.d.ts +2 -1
- package/dialogs/README.md +38 -30
- package/dialogs/_dialog-theme.scss +1 -0
- package/dialogs/alert-dialog/alert-dialog.component.d.ts +6 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +5 -2
- package/dialogs/covalent-core-dialogs.d.ts +2 -2
- package/dialogs/dialog.component.d.ts +9 -0
- package/dialogs/dialogs.module.d.ts +17 -0
- package/dialogs/package.json +6 -7
- package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +6 -3
- package/dialogs/{public-api.d.ts → public_api.d.ts} +1 -0
- package/dialogs/services/dialog.service.d.ts +3 -0
- package/dialogs/src/README.md +223 -0
- package/dialogs/window-dialog/window-dialog.component.d.ts +8 -5
- package/dynamic-menu/README.md +6 -6
- package/dynamic-menu/covalent-core-dynamic-menu.d.ts +2 -2
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +4 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +4 -1
- package/dynamic-menu/dynamic-menu.component.d.ts +4 -22
- package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
- package/dynamic-menu/dynamic-menu.module.d.ts +13 -0
- package/dynamic-menu/package.json +6 -7
- package/dynamic-menu/public_api.d.ts +2 -0
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +92 -0
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +134 -0
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +20 -0
- package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +5 -0
- package/esm2020/breadcrumbs/public_api.mjs +4 -0
- package/esm2020/common/animations/bounce/bounce.animation.mjs +70 -0
- package/esm2020/common/animations/collapse/collapse.animation.mjs +51 -0
- package/esm2020/common/animations/common/interfaces.mjs +2 -0
- package/esm2020/common/animations/fade/fadeInOut.animation.mjs +37 -0
- package/esm2020/common/animations/flash/flash.animation.mjs +34 -0
- package/esm2020/common/animations/headshake/headshake.animation.mjs +47 -0
- package/esm2020/common/animations/jello/jello.animation.mjs +59 -0
- package/esm2020/common/animations/pulse/pulse.animation.mjs +32 -0
- package/esm2020/common/animations/rotate/rotate.animation.mjs +30 -0
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +41 -0
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +24 -0
- package/esm2020/common/behaviors/disabled.mixin.mjs +24 -0
- package/esm2020/common/common.module.mjs +63 -0
- package/esm2020/common/covalent-core-common.mjs +5 -0
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +85 -0
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +36 -0
- package/esm2020/common/forms/validators/validators.mjs +29 -0
- package/esm2020/common/functions/clipboard.mjs +23 -0
- package/esm2020/common/functions/convert.mjs +84 -0
- package/esm2020/common/functions/download.mjs +75 -0
- package/esm2020/common/functions/file.mjs +16 -0
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +42 -0
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +42 -0
- package/esm2020/common/pipes/digits/digits.pipe.mjs +39 -0
- package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +72 -0
- package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +51 -0
- package/esm2020/common/pipes/time-until/time-until.pipe.mjs +72 -0
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +27 -0
- package/esm2020/common/public_api.mjs +39 -0
- package/esm2020/common/services/icon.service.mjs +1089 -0
- package/esm2020/common/services/router-path.service.mjs +29 -0
- package/esm2020/covalent-core.mjs +5 -0
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +23 -0
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +28 -0
- package/esm2020/dialogs/covalent-core-dialogs.mjs +5 -0
- package/esm2020/dialogs/dialog.component.mjs +56 -0
- package/esm2020/dialogs/dialogs.module.mjs +89 -0
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +46 -0
- package/esm2020/dialogs/public_api.mjs +9 -0
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +216 -0
- package/esm2020/dialogs/services/dialog.service.mjs +171 -0
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +38 -0
- package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +5 -0
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +30 -0
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +24 -0
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +28 -0
- package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
- package/esm2020/dynamic-menu/dynamic-menu.module.mjs +57 -0
- package/esm2020/dynamic-menu/public_api.mjs +6 -0
- package/esm2020/file/covalent-core-file.mjs +5 -0
- package/esm2020/file/directives/file-drop.directive.mjs +147 -0
- package/esm2020/file/directives/file-select.directive.mjs +77 -0
- package/esm2020/file/file-input/file-input.component.mjs +110 -0
- package/esm2020/file/file-upload/file-upload.component.mjs +174 -0
- package/esm2020/file/file.module.mjs +58 -0
- package/esm2020/file/public_api.mjs +7 -0
- package/esm2020/file/services/file.service.mjs +64 -0
- package/esm2020/json-formatter/collapse.animation.mjs +51 -0
- package/esm2020/json-formatter/covalent-core-json-formatter.mjs +5 -0
- package/esm2020/json-formatter/json-formatter.component.mjs +217 -0
- package/esm2020/json-formatter/json-formatter.module.mjs +20 -0
- package/esm2020/json-formatter/public_api.mjs +3 -0
- package/esm2020/layout/covalent-core-layout.mjs +5 -0
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +40 -0
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +33 -0
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +93 -0
- package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +84 -0
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +50 -0
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +128 -0
- package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +84 -0
- package/esm2020/layout/layout-toggle.class.mjs +92 -0
- package/esm2020/layout/layout.component.mjs +92 -0
- package/esm2020/layout/layout.directives.mjs +85 -0
- package/esm2020/layout/layout.module.mjs +117 -0
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +161 -0
- package/esm2020/layout/public_api.mjs +13 -0
- package/esm2020/menu/covalent-core-menu.mjs +5 -0
- package/esm2020/menu/menu.component.mjs +12 -0
- package/esm2020/menu/menu.module.mjs +21 -0
- package/esm2020/menu/public_api.mjs +3 -0
- package/esm2020/message/collapse.animation.mjs +51 -0
- package/esm2020/message/covalent-core-message.mjs +5 -0
- package/esm2020/message/message.component.mjs +203 -0
- package/esm2020/message/message.module.mjs +25 -0
- package/esm2020/message/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/search/covalent-core-search.mjs +5 -0
- package/esm2020/search/public_api.mjs +4 -0
- package/esm2020/search/search-box/search-box.component.mjs +194 -0
- package/esm2020/search/search-input/search-input.component.mjs +203 -0
- package/esm2020/search/search.module.mjs +39 -0
- package/esm2020/side-sheet/covalent-core-side-sheet.mjs +5 -0
- package/esm2020/side-sheet/public_api.mjs +6 -0
- package/esm2020/side-sheet/side-sheet-container.mjs +274 -0
- package/esm2020/side-sheet/side-sheet-ref.mjs +21 -0
- package/esm2020/side-sheet/side-sheet.animation.mjs +12 -0
- package/esm2020/side-sheet/side-sheet.config.mjs +4 -0
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +201 -0
- package/esm2020/side-sheet/side-sheet.mjs +221 -0
- package/esm2020/side-sheet/side-sheet.module.mjs +45 -0
- package/esm2020/user-profile/covalent-core-user-profile.mjs +5 -0
- package/esm2020/user-profile/public_api.mjs +4 -0
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +24 -0
- package/esm2020/user-profile/user-profile.component.mjs +19 -0
- package/esm2020/user-profile/user-profile.module.mjs +44 -0
- package/fesm2015/covalent-core-breadcrumbs.mjs +246 -0
- package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -0
- package/fesm2015/covalent-core-common.mjs +2281 -0
- package/fesm2015/covalent-core-common.mjs.map +1 -0
- package/fesm2015/covalent-core-dialogs.mjs +639 -0
- package/fesm2015/covalent-core-dialogs.mjs.map +1 -0
- package/fesm2015/covalent-core-dynamic-menu.mjs +128 -0
- package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -0
- package/fesm2015/covalent-core-file.mjs +613 -0
- package/fesm2015/covalent-core-file.mjs.map +1 -0
- package/fesm2015/covalent-core-json-formatter.mjs +298 -0
- package/fesm2015/covalent-core-json-formatter.mjs.map +1 -0
- package/fesm2015/covalent-core-layout.mjs +1024 -0
- package/fesm2015/covalent-core-layout.mjs.map +1 -0
- package/fesm2015/covalent-core-menu.mjs +37 -0
- package/fesm2015/covalent-core-menu.mjs.map +1 -0
- package/fesm2015/covalent-core-message.mjs +284 -0
- package/fesm2015/covalent-core-message.mjs.map +1 -0
- package/fesm2015/covalent-core-search.mjs +428 -0
- package/fesm2015/covalent-core-search.mjs.map +1 -0
- package/fesm2015/covalent-core-side-sheet.mjs +762 -0
- package/fesm2015/covalent-core-side-sheet.mjs.map +1 -0
- package/fesm2015/covalent-core-user-profile.mjs +86 -0
- package/fesm2015/covalent-core-user-profile.mjs.map +1 -0
- package/fesm2015/covalent-core.mjs +4 -0
- package/fesm2015/covalent-core.mjs.map +1 -0
- package/fesm2020/covalent-core-breadcrumbs.mjs +246 -0
- package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -0
- package/{fesm2015/covalent-core-common.js → fesm2020/covalent-core-common.mjs} +317 -813
- package/fesm2020/covalent-core-common.mjs.map +1 -0
- package/fesm2020/covalent-core-dialogs.mjs +634 -0
- package/fesm2020/covalent-core-dialogs.mjs.map +1 -0
- package/fesm2020/covalent-core-dynamic-menu.mjs +128 -0
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -0
- package/fesm2020/covalent-core-file.mjs +607 -0
- package/fesm2020/covalent-core-file.mjs.map +1 -0
- package/fesm2020/covalent-core-json-formatter.mjs +290 -0
- package/fesm2020/covalent-core-json-formatter.mjs.map +1 -0
- package/fesm2020/covalent-core-layout.mjs +1000 -0
- package/fesm2020/covalent-core-layout.mjs.map +1 -0
- package/fesm2020/covalent-core-menu.mjs +37 -0
- package/fesm2020/covalent-core-menu.mjs.map +1 -0
- package/fesm2020/covalent-core-message.mjs +282 -0
- package/fesm2020/covalent-core-message.mjs.map +1 -0
- package/fesm2020/covalent-core-search.mjs +425 -0
- package/fesm2020/covalent-core-search.mjs.map +1 -0
- package/fesm2020/covalent-core-side-sheet.mjs +757 -0
- package/fesm2020/covalent-core-side-sheet.mjs.map +1 -0
- package/fesm2020/covalent-core-user-profile.mjs +86 -0
- package/fesm2020/covalent-core-user-profile.mjs.map +1 -0
- package/fesm2020/covalent-core.mjs +4 -0
- package/fesm2020/covalent-core.mjs.map +1 -0
- package/file/_file-theme.scss +3 -1
- package/file/covalent-core-file.d.ts +2 -1
- package/file/directives/file-drop.directive.d.ts +8 -6
- package/file/directives/file-select.directive.d.ts +5 -2
- package/file/file-input/file-input.component.d.ts +10 -5
- package/file/file-upload/file-upload.component.d.ts +18 -8
- package/file/file.module.d.ts +13 -0
- package/file/package.json +6 -7
- package/file/{public-api.d.ts → public_api.d.ts} +0 -0
- package/file/services/file.service.d.ts +3 -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/_json-formatter-theme.scss +10 -0
- package/json-formatter/collapse.animation.d.ts +24 -0
- package/json-formatter/covalent-core-json-formatter.d.ts +2 -1
- package/json-formatter/json-formatter.component.d.ts +7 -4
- package/json-formatter/json-formatter.module.d.ts +8 -0
- package/json-formatter/package.json +6 -7
- package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/layout/README.md +48 -50
- package/layout/_layout-theme.scss +12 -0
- package/layout/covalent-core-layout.d.ts +2 -1
- package/layout/layout-card-over/layout-card-over.component.d.ts +6 -3
- package/layout/layout-footer/layout-footer.component.d.ts +6 -3
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +7 -4
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +9 -2
- package/layout/layout-nav/layout-nav.component.d.ts +8 -5
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +12 -9
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +9 -2
- package/layout/layout-toggle.class.d.ts +4 -1
- package/layout/layout.component.d.ts +7 -4
- package/layout/layout.directives.d.ts +9 -2
- package/layout/layout.module.d.ts +23 -0
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +17 -10
- package/layout/package.json +6 -7
- 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 +2 -1
- package/menu/menu.component.d.ts +3 -0
- package/menu/menu.module.d.ts +8 -0
- package/menu/package.json +6 -7
- package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
- package/message/README.md +26 -18
- package/message/_message-theme.scss +3 -0
- package/message/collapse.animation.d.ts +24 -0
- package/message/covalent-core-message.d.ts +2 -1
- package/message/message.component.d.ts +9 -4
- package/message/message.module.d.ts +7 -0
- package/message/package.json +6 -7
- package/message/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +129 -37
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/search/README.md +74 -73
- package/search/covalent-core-search.d.ts +2 -1
- package/search/package.json +6 -7
- package/search/{public-api.d.ts → public_api.d.ts} +0 -0
- package/search/search-box/search-box.component.d.ts +12 -5
- package/search/search-input/search-input.component.d.ts +12 -5
- package/search/search.module.d.ts +11 -0
- 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 +2 -3
- package/side-sheet/package.json +6 -7
- package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
- package/side-sheet/side-sheet-container.d.ts +21 -5
- package/side-sheet/side-sheet.content-directives.d.ts +23 -6
- package/side-sheet/side-sheet.d.ts +7 -2
- package/side-sheet/side-sheet.module.d.ts +9 -0
- package/user-profile/README.md +5 -5
- package/user-profile/covalent-core-user-profile.d.ts +2 -1
- package/user-profile/package.json +6 -7
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +5 -2
- package/user-profile/user-profile.component.d.ts +5 -2
- package/user-profile/user-profile.module.d.ts +12 -0
- package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -22
- package/breadcrumbs/breadcrumbs.component.scss +0 -7
- package/breadcrumbs/covalent-core-breadcrumbs.metadata.json +0 -1
- package/breadcrumbs/index.d.ts +0 -1
- package/bundles/covalent-core-breadcrumbs.umd.js +0 -490
- package/bundles/covalent-core-breadcrumbs.umd.js.map +0 -1
- package/bundles/covalent-core-breadcrumbs.umd.min.js +0 -2
- package/bundles/covalent-core-breadcrumbs.umd.min.js.map +0 -1
- package/bundles/covalent-core-common.umd.js +0 -3188
- package/bundles/covalent-core-common.umd.js.map +0 -1
- package/bundles/covalent-core-common.umd.min.js +0 -17
- package/bundles/covalent-core-common.umd.min.js.map +0 -1
- package/bundles/covalent-core-dialogs.umd.js +0 -1318
- package/bundles/covalent-core-dialogs.umd.js.map +0 -1
- package/bundles/covalent-core-dialogs.umd.min.js +0 -2
- package/bundles/covalent-core-dialogs.umd.min.js.map +0 -1
- package/bundles/covalent-core-dynamic-menu.umd.js +0 -215
- package/bundles/covalent-core-dynamic-menu.umd.js.map +0 -1
- package/bundles/covalent-core-dynamic-menu.umd.min.js +0 -2
- package/bundles/covalent-core-dynamic-menu.umd.min.js.map +0 -1
- package/bundles/covalent-core-file.umd.js +0 -1211
- package/bundles/covalent-core-file.umd.js.map +0 -1
- package/bundles/covalent-core-file.umd.min.js +0 -17
- package/bundles/covalent-core-file.umd.min.js.map +0 -1
- package/bundles/covalent-core-json-formatter.umd.js +0 -408
- package/bundles/covalent-core-json-formatter.umd.js.map +0 -1
- package/bundles/covalent-core-json-formatter.umd.min.js +0 -2
- package/bundles/covalent-core-json-formatter.umd.min.js.map +0 -1
- package/bundles/covalent-core-layout.umd.js +0 -2084
- package/bundles/covalent-core-layout.umd.js.map +0 -1
- package/bundles/covalent-core-layout.umd.min.js +0 -17
- package/bundles/covalent-core-layout.umd.min.js.map +0 -1
- package/bundles/covalent-core-menu.umd.js +0 -69
- package/bundles/covalent-core-menu.umd.js.map +0 -1
- package/bundles/covalent-core-menu.umd.min.js +0 -2
- package/bundles/covalent-core-menu.umd.min.js.map +0 -1
- package/bundles/covalent-core-message.umd.js +0 -375
- package/bundles/covalent-core-message.umd.js.map +0 -1
- package/bundles/covalent-core-message.umd.min.js +0 -2
- package/bundles/covalent-core-message.umd.min.js.map +0 -1
- package/bundles/covalent-core-search.umd.js +0 -877
- package/bundles/covalent-core-search.umd.js.map +0 -1
- package/bundles/covalent-core-search.umd.min.js +0 -16
- package/bundles/covalent-core-search.umd.min.js.map +0 -1
- package/bundles/covalent-core-side-sheet.umd.js +0 -1458
- package/bundles/covalent-core-side-sheet.umd.js.map +0 -1
- package/bundles/covalent-core-side-sheet.umd.min.js +0 -16
- package/bundles/covalent-core-side-sheet.umd.min.js.map +0 -1
- package/bundles/covalent-core-user-profile.umd.js +0 -116
- package/bundles/covalent-core-user-profile.umd.js.map +0 -1
- package/bundles/covalent-core-user-profile.umd.min.js +0 -2
- package/bundles/covalent-core-user-profile.umd.min.js.map +0 -1
- package/bundles/covalent-core.umd.js +0 -9
- package/bundles/covalent-core.umd.js.map +0 -1
- package/bundles/covalent-core.umd.min.js +0 -2
- package/bundles/covalent-core.umd.min.js.map +0 -1
- package/common/covalent-core-common.metadata.json +0 -1
- package/common/index.d.ts +0 -1
- package/common/material-icons.css +0 -98
- package/common/material-icons.css.map +0 -1
- package/common/material-icons.scss +0 -3
- package/common/platform.css +0 -15424
- package/common/platform.css.map +0 -1
- package/common/platform.scss +0 -7
- package/common/styles/_elevation.scss +0 -280
- package/common/styles/_layout.scss +0 -603
- package/common/styles/_palette-dark.scss +0 -326
- package/common/styles/_palette-light.scss +0 -637
- package/common/styles/_rtl.scss +0 -28
- package/common/styles/_styles.scss +0 -10
- package/common/styles/_theme-functions.scss +0 -25
- package/common/styles/_typography-functions.scss +0 -35
- package/common/styles/_variables.scss +0 -98
- package/common/styles/colors/_colors-dark.scss +0 -1072
- package/common/styles/colors/_colors-light.scss +0 -2487
- package/common/styles/colors/_colors.scss +0 -7
- package/common/styles/core/_button.scss +0 -59
- package/common/styles/core/_card.scss +0 -164
- package/common/styles/core/_content.scss +0 -42
- package/common/styles/core/_core.scss +0 -23
- package/common/styles/core/_divider.scss +0 -15
- package/common/styles/core/_icons.scss +0 -20
- package/common/styles/core/_list.scss +0 -8
- package/common/styles/core/_sidenav.scss +0 -20
- package/common/styles/core/_structure.scss +0 -128
- package/common/styles/core/_toolbar.scss +0 -46
- package/common/styles/core/_whiteframe.scss +0 -130
- package/common/styles/font/MaterialIcons-Regular-v48.woff2 +0 -0
- package/common/styles/font/_font.scss +0 -93
- package/common/styles/utilities/_general.scss +0 -51
- package/common/styles/utilities/_pad.scss +0 -36
- package/common/styles/utilities/_pull.scss +0 -36
- package/common/styles/utilities/_push.scss +0 -36
- package/common/styles/utilities/_size.scss +0 -24
- package/common/styles/utilities/_text.scss +0 -84
- package/common/styles/utilities/_utilities.scss +0 -15
- package/covalent-core.metadata.json +0 -1
- package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
- package/dialogs/covalent-core-dialogs.metadata.json +0 -1
- package/dialogs/dialog.component.scss +0 -44
- package/dialogs/index.d.ts +0 -1
- package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -15
- package/dialogs/window-dialog/window-dialog.component.scss +0 -31
- package/dynamic-menu/covalent-core-dynamic-menu.metadata.json +0 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -6
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -11
- package/dynamic-menu/dynamic-menu.component.scss +0 -0
- package/dynamic-menu/index.d.ts +0 -1
- package/esm2015/breadcrumbs/breadcrumb/breadcrumb.component.js +0 -171
- package/esm2015/breadcrumbs/breadcrumbs.component.js +0 -241
- package/esm2015/breadcrumbs/breadcrumbs.module.js +0 -20
- package/esm2015/breadcrumbs/covalent-core-breadcrumbs.js +0 -10
- package/esm2015/breadcrumbs/index.js +0 -7
- package/esm2015/breadcrumbs/public-api.js +0 -9
- package/esm2015/common/animations/bounce/bounce.animation.js +0 -76
- package/esm2015/common/animations/collapse/collapse.animation.js +0 -67
- package/esm2015/common/animations/common/interfaces.js +0 -18
- package/esm2015/common/animations/fade/fadeInOut.animation.js +0 -53
- package/esm2015/common/animations/flash/flash.animation.js +0 -40
- package/esm2015/common/animations/headshake/headshake.animation.js +0 -41
- package/esm2015/common/animations/jello/jello.animation.js +0 -44
- package/esm2015/common/animations/pulse/pulse.animation.js +0 -38
- package/esm2015/common/animations/rotate/rotate.animation.js +0 -41
- package/esm2015/common/behaviors/control-value-accesor.mixin.js +0 -107
- package/esm2015/common/behaviors/disable-ripple.mixin.js +0 -63
- package/esm2015/common/behaviors/disabled.mixin.js +0 -63
- package/esm2015/common/common.module.js +0 -54
- package/esm2015/common/covalent-core-common.js +0 -12
- package/esm2015/common/directives/fullscreen/fullscreen.directive.js +0 -180
- package/esm2015/common/forms/auto-trim/auto-trim.directive.js +0 -46
- package/esm2015/common/forms/validators/validators.js +0 -58
- package/esm2015/common/functions/clipboard.js +0 -30
- package/esm2015/common/functions/convert.js +0 -103
- package/esm2015/common/functions/download.js +0 -88
- package/esm2015/common/functions/file.js +0 -29
- package/esm2015/common/index.js +0 -7
- package/esm2015/common/pipes/bytes/bytes.pipe.js +0 -41
- package/esm2015/common/pipes/decimal-bytes/decimal-bytes.pipe.js +0 -41
- package/esm2015/common/pipes/digits/digits.pipe.js +0 -65
- package/esm2015/common/pipes/time-ago/time-ago.pipe.js +0 -81
- package/esm2015/common/pipes/time-difference/time-difference.pipe.js +0 -66
- package/esm2015/common/pipes/time-until/time-until.pipe.js +0 -81
- package/esm2015/common/pipes/truncate/truncate.pipe.js +0 -34
- package/esm2015/common/public-api.js +0 -44
- package/esm2015/common/services/icon.service.js +0 -1109
- package/esm2015/common/services/router-path.service.js +0 -60
- package/esm2015/covalent-core.js +0 -10
- package/esm2015/dialogs/alert-dialog/alert-dialog.component.js +0 -47
- package/esm2015/dialogs/confirm-dialog/confirm-dialog.component.js +0 -59
- package/esm2015/dialogs/covalent-core-dialogs.js +0 -11
- package/esm2015/dialogs/dialog.component.js +0 -58
- package/esm2015/dialogs/dialogs.module.js +0 -57
- package/esm2015/dialogs/index.js +0 -7
- package/esm2015/dialogs/prompt-dialog/prompt-dialog.component.js +0 -83
- package/esm2015/dialogs/public-api.js +0 -13
- package/esm2015/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.js +0 -325
- package/esm2015/dialogs/services/dialog.service.js +0 -316
- package/esm2015/dialogs/window-dialog/window-dialog.component.js +0 -56
- package/esm2015/dynamic-menu/covalent-core-dynamic-menu.js +0 -11
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.js +0 -40
- package/esm2015/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.js +0 -35
- package/esm2015/dynamic-menu/dynamic-menu.component.js +0 -89
- package/esm2015/dynamic-menu/dynamic-menu.module.js +0 -26
- package/esm2015/dynamic-menu/index.js +0 -7
- package/esm2015/dynamic-menu/public_api.js +0 -9
- package/esm2015/file/covalent-core-file.js +0 -10
- package/esm2015/file/directives/file-drop.directive.js +0 -191
- package/esm2015/file/directives/file-select.directive.js +0 -98
- package/esm2015/file/file-input/file-input.component.js +0 -186
- package/esm2015/file/file-upload/file-upload.component.js +0 -237
- package/esm2015/file/file.module.js +0 -35
- package/esm2015/file/index.js +0 -7
- package/esm2015/file/public-api.js +0 -12
- package/esm2015/file/services/file.service.js +0 -109
- package/esm2015/index.js +0 -7
- package/esm2015/json-formatter/covalent-core-json-formatter.js +0 -10
- package/esm2015/json-formatter/index.js +0 -7
- package/esm2015/json-formatter/json-formatter.component.js +0 -338
- package/esm2015/json-formatter/json-formatter.module.js +0 -20
- package/esm2015/json-formatter/public-api.js +0 -8
- package/esm2015/layout/covalent-core-layout.js +0 -10
- package/esm2015/layout/index.js +0 -7
- package/esm2015/layout/layout-card-over/layout-card-over.component.js +0 -71
- package/esm2015/layout/layout-footer/layout-footer.component.js +0 -71
- package/esm2015/layout/layout-manage-list/layout-manage-list.component.js +0 -145
- package/esm2015/layout/layout-manage-list/layout-manage-list.directives.js +0 -132
- package/esm2015/layout/layout-nav/layout-nav.component.js +0 -100
- package/esm2015/layout/layout-nav-list/layout-nav-list.component.js +0 -220
- package/esm2015/layout/layout-nav-list/layout-nav-list.directives.js +0 -132
- package/esm2015/layout/layout-toggle.class.js +0 -188
- package/esm2015/layout/layout.component.js +0 -145
- package/esm2015/layout/layout.directives.js +0 -129
- package/esm2015/layout/layout.module.js +0 -64
- package/esm2015/layout/navigation-drawer/navigation-drawer.component.js +0 -280
- package/esm2015/layout/public-api.js +0 -18
- package/esm2015/menu/covalent-core-menu.js +0 -10
- package/esm2015/menu/index.js +0 -7
- package/esm2015/menu/menu.component.js +0 -16
- package/esm2015/menu/menu.module.js +0 -22
- package/esm2015/menu/public-api.js +0 -8
- package/esm2015/message/covalent-core-message.js +0 -10
- package/esm2015/message/index.js +0 -7
- package/esm2015/message/message.component.js +0 -307
- package/esm2015/message/message.module.js +0 -21
- package/esm2015/message/public-api.js +0 -8
- package/esm2015/search/covalent-core-search.js +0 -10
- package/esm2015/search/index.js +0 -7
- package/esm2015/search/public-api.js +0 -9
- package/esm2015/search/search-box/search-box.component.js +0 -270
- package/esm2015/search/search-input/search-input.component.js +0 -260
- package/esm2015/search/search.module.js +0 -23
- package/esm2015/side-sheet/covalent-core-side-sheet.js +0 -12
- package/esm2015/side-sheet/index.js +0 -7
- package/esm2015/side-sheet/public-api.js +0 -11
- package/esm2015/side-sheet/side-sheet-container.js +0 -402
- package/esm2015/side-sheet/side-sheet-ref.js +0 -50
- package/esm2015/side-sheet/side-sheet.animation.js +0 -20
- package/esm2015/side-sheet/side-sheet.config.js +0 -12
- package/esm2015/side-sheet/side-sheet.content-directives.js +0 -255
- package/esm2015/side-sheet/side-sheet.js +0 -360
- package/esm2015/side-sheet/side-sheet.module.js +0 -36
- package/esm2015/user-profile/covalent-core-user-profile.js +0 -10
- package/esm2015/user-profile/index.js +0 -7
- package/esm2015/user-profile/public_api.js +0 -9
- package/esm2015/user-profile/user-profile-menu/user-profile-menu.component.js +0 -35
- package/esm2015/user-profile/user-profile.component.js +0 -26
- package/esm2015/user-profile/user-profile.module.js +0 -25
- package/fesm2015/covalent-core-breadcrumbs.js +0 -448
- package/fesm2015/covalent-core-breadcrumbs.js.map +0 -1
- package/fesm2015/covalent-core-common.js.map +0 -1
- package/fesm2015/covalent-core-dialogs.js +0 -1001
- package/fesm2015/covalent-core-dialogs.js.map +0 -1
- package/fesm2015/covalent-core-dynamic-menu.js +0 -204
- package/fesm2015/covalent-core-dynamic-menu.js.map +0 -1
- package/fesm2015/covalent-core-file.js +0 -855
- package/fesm2015/covalent-core-file.js.map +0 -1
- package/fesm2015/covalent-core-json-formatter.js +0 -377
- package/fesm2015/covalent-core-json-formatter.js.map +0 -1
- package/fesm2015/covalent-core-layout.js +0 -1663
- package/fesm2015/covalent-core-layout.js.map +0 -1
- package/fesm2015/covalent-core-menu.js +0 -57
- package/fesm2015/covalent-core-menu.js.map +0 -1
- package/fesm2015/covalent-core-message.js +0 -347
- package/fesm2015/covalent-core-message.js.map +0 -1
- package/fesm2015/covalent-core-search.js +0 -564
- package/fesm2015/covalent-core-search.js.map +0 -1
- package/fesm2015/covalent-core-side-sheet.js +0 -1134
- package/fesm2015/covalent-core-side-sheet.js.map +0 -1
- package/fesm2015/covalent-core-user-profile.js +0 -103
- package/fesm2015/covalent-core-user-profile.js.map +0 -1
- package/fesm2015/covalent-core.js +0 -12
- package/fesm2015/covalent-core.js.map +0 -1
- package/file/covalent-core-file.metadata.json +0 -1
- package/file/file-input/file-input.component.scss +0 -20
- package/file/file-upload/file-upload.component.scss +0 -30
- package/file/index.d.ts +0 -1
- package/json-formatter/covalent-core-json-formatter.metadata.json +0 -1
- package/json-formatter/index.d.ts +0 -1
- package/json-formatter/json-formatter.component.scss +0 -61
- package/layout/covalent-core-layout.metadata.json +0 -1
- package/layout/index.d.ts +0 -1
- package/layout/layout-card-over/layout-card-over.component.scss +0 -42
- package/layout/layout-footer/layout-footer.component.scss +0 -4
- package/layout/layout-manage-list/layout-manage-list.component.scss +0 -78
- package/layout/layout-nav/README.md +0 -46
- package/layout/layout-nav/layout-nav.component.scss +0 -50
- package/layout/layout-nav-list/layout-nav-list.component.scss +0 -110
- package/layout/layout.component.scss +0 -20
- package/layout/navigation-drawer/navigation-drawer.component.scss +0 -73
- package/menu/covalent-core-menu.metadata.json +0 -1
- package/menu/index.d.ts +0 -1
- package/menu/menu.component.scss +0 -43
- package/message/covalent-core-message.metadata.json +0 -1
- package/message/index.d.ts +0 -1
- package/message/message.component.scss +0 -29
- package/schematics/README.md +0 -66
- package/schematics/collection.json +0 -11
- package/schematics/components.js +0 -111
- package/schematics/components.js.map +0 -1
- package/schematics/migration.json +0 -10
- package/schematics/ng-add/files/theme.scss +0 -64
- package/schematics/ng-add/index.js +0 -58
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/schema.js +0 -3
- package/schematics/ng-add/schema.js.map +0 -1
- package/schematics/ng-add/schema.json +0 -81
- package/schematics/ng-update/index.js +0 -52
- package/schematics/ng-update/index.js.map +0 -1
- package/schematics/ng-update/target-version.js +0 -8
- package/schematics/ng-update/target-version.js.map +0 -1
- package/schematics/version-names.js +0 -6
- package/schematics/version-names.js.map +0 -1
- package/search/covalent-core-search.metadata.json +0 -1
- package/search/index.d.ts +0 -1
- package/search/search-box/README.md +0 -62
- package/search/search-box/search-box.component.scss +0 -32
- package/search/search-input/README.md +0 -65
- package/search/search-input/search-input.component.scss +0 -63
- package/side-sheet/covalent-core-side-sheet.metadata.json +0 -1
- package/side-sheet/index.d.ts +0 -1
- package/side-sheet/side-sheet.scss +0 -69
- package/theming/prebuilt/blue-grey-deep-orange.css +0 -2434
- package/theming/prebuilt/blue-grey-deep-orange.css.map +0 -1
- package/theming/prebuilt/blue-grey-deep-orange.scss +0 -13
- package/theming/prebuilt/blue-orange.css +0 -2434
- package/theming/prebuilt/blue-orange.css.map +0 -1
- package/theming/prebuilt/blue-orange.scss +0 -13
- package/theming/prebuilt/indigo-pink.css +0 -2434
- package/theming/prebuilt/indigo-pink.css.map +0 -1
- package/theming/prebuilt/indigo-pink.scss +0 -13
- package/theming/prebuilt/orange-light-blue.css +0 -2434
- package/theming/prebuilt/orange-light-blue.css.map +0 -1
- package/theming/prebuilt/orange-light-blue.scss +0 -13
- package/theming/prebuilt/teal-orange.css +0 -2434
- package/theming/prebuilt/teal-orange.css.map +0 -1
- package/theming/prebuilt/teal-orange.scss +0 -13
- package/user-profile/covalent-core-user-profile.metadata.json +0 -1
- package/user-profile/index.d.ts +0 -1
- package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -38
@@ -1,129 +1,67 @@
|
|
1
|
-
import
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Directive, Optional, Host, HostListener, Inject, Pipe, LOCALE_ID, Injectable, NgModule } from '@angular/core';
|
2
3
|
import { DOCUMENT, DecimalPipe, CommonModule } from '@angular/common';
|
3
|
-
import
|
4
|
-
import {
|
4
|
+
import * as i1 from '@angular/forms';
|
5
|
+
import { FormsModule, Validators } from '@angular/forms';
|
6
|
+
import * as i1$1 from '@angular/router';
|
7
|
+
import { RoutesRecognized } from '@angular/router';
|
5
8
|
import { filter, pairwise } from 'rxjs/operators';
|
6
9
|
import { trigger, state, style, transition, group, query, animateChild, animate, AUTO_STYLE, keyframes } from '@angular/animations';
|
7
10
|
import { Subject } from 'rxjs';
|
8
11
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
9
12
|
|
10
|
-
/**
|
11
|
-
* @fileoverview added by tsickle
|
12
|
-
* Generated from: forms/auto-trim/auto-trim.directive.ts
|
13
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
14
|
-
*/
|
15
13
|
class TdAutoTrimDirective {
|
16
|
-
/**
|
17
|
-
* @param {?} _model
|
18
|
-
*/
|
19
14
|
constructor(_model) {
|
20
15
|
this._model = _model;
|
21
16
|
}
|
22
17
|
/**
|
23
18
|
* Listens to host's (blur) event and trims value.
|
24
|
-
* @param {?} event
|
25
|
-
* @return {?}
|
26
19
|
*/
|
27
20
|
onBlur(event) {
|
28
|
-
if (this._model &&
|
21
|
+
if (this._model &&
|
22
|
+
this._model.value &&
|
23
|
+
typeof this._model.value === 'string') {
|
29
24
|
this._model.update.emit(this._model.value.trim());
|
30
25
|
}
|
31
26
|
}
|
32
27
|
}
|
33
|
-
TdAutoTrimDirective
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
};
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
* @private
|
49
|
-
*/
|
50
|
-
TdAutoTrimDirective.prototype._model;
|
51
|
-
}
|
28
|
+
TdAutoTrimDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdAutoTrimDirective, deps: [{ token: i1.NgModel, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
29
|
+
TdAutoTrimDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdAutoTrimDirective, selector: "[tdAutoTrim]", host: { listeners: { "blur": "onBlur($event)" } }, ngImport: i0 });
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdAutoTrimDirective, decorators: [{
|
31
|
+
type: Directive,
|
32
|
+
args: [{
|
33
|
+
selector: '[tdAutoTrim]',
|
34
|
+
}]
|
35
|
+
}], ctorParameters: function () { return [{ type: i1.NgModel, decorators: [{
|
36
|
+
type: Optional
|
37
|
+
}, {
|
38
|
+
type: Host
|
39
|
+
}] }]; }, propDecorators: { onBlur: [{
|
40
|
+
type: HostListener,
|
41
|
+
args: ['blur', ['$event']]
|
42
|
+
}] } });
|
52
43
|
|
53
|
-
/**
|
54
|
-
* @fileoverview added by tsickle
|
55
|
-
* Generated from: directives/fullscreen/fullscreen.directive.ts
|
56
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
57
|
-
*/
|
58
|
-
/**
|
59
|
-
* @record
|
60
|
-
*/
|
61
|
-
function IFsDocument() { }
|
62
|
-
if (false) {
|
63
|
-
/** @type {?} */
|
64
|
-
IFsDocument.prototype.fullscreenElement;
|
65
|
-
/** @type {?} */
|
66
|
-
IFsDocument.prototype.webkitFullscreenElement;
|
67
|
-
/** @type {?} */
|
68
|
-
IFsDocument.prototype.mozFullscreenElement;
|
69
|
-
/** @type {?} */
|
70
|
-
IFsDocument.prototype.msFullscreenElement;
|
71
|
-
/** @type {?} */
|
72
|
-
IFsDocument.prototype.webkitExitFullscreen;
|
73
|
-
/** @type {?} */
|
74
|
-
IFsDocument.prototype.mozCancelFullScreen;
|
75
|
-
/** @type {?} */
|
76
|
-
IFsDocument.prototype.msExitFullscreen;
|
77
|
-
}
|
78
44
|
class TdFullscreenDirective {
|
79
|
-
/**
|
80
|
-
* @param {?} _document
|
81
|
-
* @param {?} _el
|
82
|
-
*/
|
83
45
|
constructor(_document, _el) {
|
84
46
|
this._document = _document;
|
85
47
|
this._el = _el;
|
86
48
|
this.fullScreenIsActive = false;
|
87
49
|
}
|
88
|
-
/**
|
89
|
-
* @param {?} event
|
90
|
-
* @return {?}
|
91
|
-
*/
|
92
50
|
fsChangeHandler(event) {
|
93
51
|
this.fullScreenIsActive = event.srcElement === this._getFullScreenElement();
|
94
52
|
}
|
95
|
-
/**
|
96
|
-
* @return {?}
|
97
|
-
*/
|
98
53
|
toggleFullScreen() {
|
99
|
-
this._getFullScreenElement() === this._el.nativeElement
|
54
|
+
this._getFullScreenElement() === this._el.nativeElement
|
55
|
+
? this.exitFullScreen()
|
56
|
+
: this.enterFullScreen();
|
100
57
|
}
|
101
|
-
/**
|
102
|
-
* @return {?}
|
103
|
-
*/
|
104
58
|
enterFullScreen() {
|
105
59
|
const { _el: { nativeElement }, } = this;
|
106
|
-
/** @type {?} */
|
107
60
|
const enterFullScreenMap = {
|
108
|
-
requestFullscreen: (
|
109
|
-
|
110
|
-
|
111
|
-
() => nativeElement.
|
112
|
-
// Chrome
|
113
|
-
webkitRequestFullscreen: (/**
|
114
|
-
* @return {?}
|
115
|
-
*/
|
116
|
-
() => nativeElement.webkitRequestFullscreen()),
|
117
|
-
// Safari
|
118
|
-
mozRequestFullScreen: (/**
|
119
|
-
* @return {?}
|
120
|
-
*/
|
121
|
-
() => nativeElement.mozRequestFullScreen()),
|
122
|
-
// Firefox
|
123
|
-
msRequestFullscreen: (/**
|
124
|
-
* @return {?}
|
125
|
-
*/
|
126
|
-
() => nativeElement.msRequestFullscreen()),
|
61
|
+
requestFullscreen: () => nativeElement.requestFullscreen(),
|
62
|
+
webkitRequestFullscreen: () => nativeElement.webkitRequestFullscreen(),
|
63
|
+
mozRequestFullScreen: () => nativeElement.mozRequestFullScreen(),
|
64
|
+
msRequestFullscreen: () => nativeElement.msRequestFullscreen(), // IE
|
127
65
|
};
|
128
66
|
for (const handler of Object.keys(enterFullScreenMap)) {
|
129
67
|
if (nativeElement[handler]) {
|
@@ -131,118 +69,64 @@ class TdFullscreenDirective {
|
|
131
69
|
}
|
132
70
|
}
|
133
71
|
}
|
134
|
-
/**
|
135
|
-
* @return {?}
|
136
|
-
*/
|
137
72
|
exitFullScreen() {
|
138
|
-
const { _document, _el: { nativeElement }, } = this;
|
139
|
-
/** @type {?} */
|
140
73
|
const exitFullScreenMap = {
|
141
|
-
exitFullscreen: (
|
142
|
-
|
143
|
-
|
144
|
-
() => _document.
|
145
|
-
// Chrome
|
146
|
-
webkitExitFullscreen: (/**
|
147
|
-
* @return {?}
|
148
|
-
*/
|
149
|
-
() => _document.webkitExitFullscreen()),
|
150
|
-
// Safari
|
151
|
-
mozCancelFullScreen: (/**
|
152
|
-
* @return {?}
|
153
|
-
*/
|
154
|
-
() => _document.mozCancelFullScreen()),
|
155
|
-
// Firefox
|
156
|
-
msExitFullscreen: (/**
|
157
|
-
* @return {?}
|
158
|
-
*/
|
159
|
-
() => _document.msExitFullscreen()),
|
74
|
+
exitFullscreen: () => this._document.exitFullscreen(),
|
75
|
+
webkitExitFullscreen: () => this._document.webkitExitFullscreen(),
|
76
|
+
mozCancelFullScreen: () => this._document.mozCancelFullScreen(),
|
77
|
+
msExitFullscreen: () => this._document.msExitFullscreen(), // IE
|
160
78
|
};
|
161
79
|
for (const handler of Object.keys(exitFullScreenMap)) {
|
162
|
-
if (
|
80
|
+
if (exitFullScreenMap[handler] &&
|
81
|
+
this._getFullScreenElement() === this._el.nativeElement) {
|
163
82
|
exitFullScreenMap[handler]();
|
164
83
|
}
|
165
84
|
}
|
166
85
|
}
|
167
|
-
/**
|
168
|
-
* @private
|
169
|
-
* @return {?}
|
170
|
-
*/
|
171
86
|
_getFullScreenElement() {
|
172
|
-
const { _document } = this;
|
173
|
-
/** @type {?} */
|
174
87
|
const tdFullScreenElementMap = {
|
175
|
-
fullscreenElement: (
|
176
|
-
|
177
|
-
|
178
|
-
() => _document.
|
179
|
-
// Chrome, Opera
|
180
|
-
webkitFullscreenElement: (/**
|
181
|
-
* @return {?}
|
182
|
-
*/
|
183
|
-
() => _document.webkitFullscreenElement),
|
184
|
-
// Safari
|
185
|
-
mozFullscreenElement: (/**
|
186
|
-
* @return {?}
|
187
|
-
*/
|
188
|
-
() => _document.mozFullscreenElement),
|
189
|
-
// Firefox
|
190
|
-
msFullscreenElement: (/**
|
191
|
-
* @return {?}
|
192
|
-
*/
|
193
|
-
() => _document.msFullscreenElement),
|
88
|
+
fullscreenElement: () => this._document.fullscreenElement,
|
89
|
+
webkitFullscreenElement: () => this._document.webkitFullscreenElement,
|
90
|
+
mozFullscreenElement: () => this._document.mozFullscreenElement,
|
91
|
+
msFullscreenElement: () => this._document.msFullscreenElement, // IE, Edge
|
194
92
|
};
|
195
93
|
for (const props of Object.keys(tdFullScreenElementMap)) {
|
196
|
-
if (
|
197
|
-
return
|
94
|
+
if (tdFullScreenElementMap[props]) {
|
95
|
+
return tdFullScreenElementMap[props]();
|
198
96
|
}
|
199
97
|
}
|
98
|
+
return undefined;
|
200
99
|
}
|
201
100
|
}
|
202
|
-
TdFullscreenDirective
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
]
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
]
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
* @private
|
227
|
-
*/
|
228
|
-
TdFullscreenDirective.prototype._el;
|
229
|
-
}
|
101
|
+
TdFullscreenDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFullscreenDirective, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
102
|
+
TdFullscreenDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdFullscreenDirective, selector: "[tdFullScreen]", host: { listeners: { "document:fullscreenchange": "fsChangeHandler($event)", "document:webkitfullscreenchange": "fsChangeHandler($event)", "document:mozfullscreenchange": "fsChangeHandler($event)", "document:msfullscreenchange": "fsChangeHandler($event)" } }, exportAs: ["tdFullScreen"], ngImport: i0 });
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdFullscreenDirective, decorators: [{
|
104
|
+
type: Directive,
|
105
|
+
args: [{
|
106
|
+
selector: '[tdFullScreen]',
|
107
|
+
exportAs: 'tdFullScreen',
|
108
|
+
}]
|
109
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
110
|
+
type: Inject,
|
111
|
+
args: [DOCUMENT]
|
112
|
+
}] }, { type: i0.ElementRef }]; }, propDecorators: { fsChangeHandler: [{
|
113
|
+
type: HostListener,
|
114
|
+
args: ['document:fullscreenchange', ['$event']]
|
115
|
+
}, {
|
116
|
+
type: HostListener,
|
117
|
+
args: ['document:webkitfullscreenchange', ['$event']]
|
118
|
+
}, {
|
119
|
+
type: HostListener,
|
120
|
+
args: ['document:mozfullscreenchange', ['$event']]
|
121
|
+
}, {
|
122
|
+
type: HostListener,
|
123
|
+
args: ['document:msfullscreenchange', ['$event']]
|
124
|
+
}] } });
|
230
125
|
|
231
|
-
/**
|
232
|
-
* @fileoverview added by tsickle
|
233
|
-
* Generated from: pipes/time-ago/time-ago.pipe.ts
|
234
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
235
|
-
*/
|
236
126
|
class TdTimeAgoPipe {
|
237
|
-
/**
|
238
|
-
* @param {?} time
|
239
|
-
* @param {?=} reference
|
240
|
-
* @return {?}
|
241
|
-
*/
|
242
127
|
transform(time, reference) {
|
243
128
|
// Convert time to date object if not already
|
244
129
|
time = new Date(time);
|
245
|
-
/** @type {?} */
|
246
130
|
const ref = new Date(reference);
|
247
131
|
// If not a valid timestamp, return 'Invalid Date'
|
248
132
|
if (!time.getTime()) {
|
@@ -250,9 +134,7 @@ class TdTimeAgoPipe {
|
|
250
134
|
}
|
251
135
|
// For unit testing, we need to be able to declare a static start time
|
252
136
|
// for calculations, or else speed of tests can bork.
|
253
|
-
/** @type {?} */
|
254
137
|
const startTime = isNaN(ref.getTime()) ? Date.now() : ref.getTime();
|
255
|
-
/** @type {?} */
|
256
138
|
let diff = Math.floor((startTime - time.getTime()) / 1000);
|
257
139
|
if (diff < 2) {
|
258
140
|
return '1 second ago';
|
@@ -302,27 +184,18 @@ class TdTimeAgoPipe {
|
|
302
184
|
}
|
303
185
|
}
|
304
186
|
}
|
305
|
-
TdTimeAgoPipe
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
187
|
+
TdTimeAgoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeAgoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
188
|
+
TdTimeAgoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeAgoPipe, name: "timeAgo" });
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeAgoPipe, decorators: [{
|
190
|
+
type: Pipe,
|
191
|
+
args: [{
|
192
|
+
name: 'timeAgo',
|
193
|
+
}]
|
194
|
+
}] });
|
310
195
|
|
311
|
-
/**
|
312
|
-
* @fileoverview added by tsickle
|
313
|
-
* Generated from: pipes/time-difference/time-difference.pipe.ts
|
314
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
315
|
-
*/
|
316
196
|
class TdTimeDifferencePipe {
|
317
|
-
/**
|
318
|
-
* @param {?} start
|
319
|
-
* @param {?=} end
|
320
|
-
* @return {?}
|
321
|
-
*/
|
322
197
|
transform(start, end) {
|
323
|
-
/** @type {?} */
|
324
198
|
const startTime = new Date(start);
|
325
|
-
/** @type {?} */
|
326
199
|
let endTime;
|
327
200
|
if (end !== undefined) {
|
328
201
|
endTime = new Date(end);
|
@@ -333,22 +206,15 @@ class TdTimeDifferencePipe {
|
|
333
206
|
if (!startTime.getTime() || !endTime.getTime()) {
|
334
207
|
return 'Invalid Date';
|
335
208
|
}
|
336
|
-
/** @type {?} */
|
337
209
|
let diff = Math.floor((endTime.getTime() - startTime.getTime()) / 1000);
|
338
|
-
/** @type {?} */
|
339
210
|
const days = Math.floor(diff / (60 * 60 * 24));
|
340
211
|
diff = diff - days * (60 * 60 * 24);
|
341
|
-
/** @type {?} */
|
342
212
|
const hours = Math.floor(diff / (60 * 60));
|
343
213
|
diff = diff - hours * (60 * 60);
|
344
|
-
/** @type {?} */
|
345
214
|
const minutes = Math.floor(diff / 60);
|
346
215
|
diff -= minutes * 60;
|
347
|
-
/** @type {?} */
|
348
216
|
const seconds = diff;
|
349
|
-
/** @type {?} */
|
350
217
|
const pad = '00';
|
351
|
-
/** @type {?} */
|
352
218
|
let daysFormatted = '';
|
353
219
|
if (days > 0 && days < 2) {
|
354
220
|
daysFormatted = ' day - ';
|
@@ -367,27 +233,19 @@ class TdTimeDifferencePipe {
|
|
367
233
|
seconds);
|
368
234
|
}
|
369
235
|
}
|
370
|
-
TdTimeDifferencePipe
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
236
|
+
TdTimeDifferencePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeDifferencePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
237
|
+
TdTimeDifferencePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeDifferencePipe, name: "timeDifference" });
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeDifferencePipe, decorators: [{
|
239
|
+
type: Pipe,
|
240
|
+
args: [{
|
241
|
+
name: 'timeDifference',
|
242
|
+
}]
|
243
|
+
}] });
|
375
244
|
|
376
|
-
/**
|
377
|
-
* @fileoverview added by tsickle
|
378
|
-
* Generated from: pipes/time-until/time-until.pipe.ts
|
379
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
380
|
-
*/
|
381
245
|
class TdTimeUntilPipe {
|
382
|
-
/**
|
383
|
-
* @param {?} time
|
384
|
-
* @param {?=} reference
|
385
|
-
* @return {?}
|
386
|
-
*/
|
387
246
|
transform(time, reference) {
|
388
247
|
// Convert time to date object if not already
|
389
248
|
time = new Date(time);
|
390
|
-
/** @type {?} */
|
391
249
|
const ref = new Date(reference);
|
392
250
|
// If not a valid timestamp, return 'Invalid Date'
|
393
251
|
if (!time.getTime()) {
|
@@ -395,9 +253,7 @@ class TdTimeUntilPipe {
|
|
395
253
|
}
|
396
254
|
// For unit testing, we need to be able to declare a static start time
|
397
255
|
// for calculations, or else speed of tests can bork.
|
398
|
-
/** @type {?} */
|
399
256
|
const startTime = isNaN(ref.getTime()) ? Date.now() : ref.getTime();
|
400
|
-
/** @type {?} */
|
401
257
|
let diff = Math.floor((time.getTime() - startTime) / 1000);
|
402
258
|
if (diff < 2) {
|
403
259
|
return 'in 1 second';
|
@@ -447,25 +303,18 @@ class TdTimeUntilPipe {
|
|
447
303
|
}
|
448
304
|
}
|
449
305
|
}
|
450
|
-
TdTimeUntilPipe
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
306
|
+
TdTimeUntilPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeUntilPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
307
|
+
TdTimeUntilPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeUntilPipe, name: "timeUntil" });
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTimeUntilPipe, decorators: [{
|
309
|
+
type: Pipe,
|
310
|
+
args: [{
|
311
|
+
name: 'timeUntil',
|
312
|
+
}]
|
313
|
+
}] });
|
455
314
|
|
456
|
-
/**
|
457
|
-
* @fileoverview added by tsickle
|
458
|
-
* Generated from: pipes/bytes/bytes.pipe.ts
|
459
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
460
|
-
*/
|
461
315
|
class TdBytesPipe {
|
462
316
|
/* `bytes` needs to be `any` or TypeScript complains
|
463
|
-
|
464
|
-
/**
|
465
|
-
* @param {?} bytes
|
466
|
-
* @param {?=} precision
|
467
|
-
* @return {?}
|
468
|
-
*/
|
317
|
+
Tried both `number` and `number | string` */
|
469
318
|
transform(bytes, precision = 2) {
|
470
319
|
if (bytes === 0) {
|
471
320
|
return '0 B';
|
@@ -474,38 +323,38 @@ class TdBytesPipe {
|
|
474
323
|
/* If not a valid number, return 'Invalid Number' */
|
475
324
|
return 'Invalid Number';
|
476
325
|
}
|
477
|
-
/** @type {?} */
|
478
326
|
const k = 1024;
|
479
|
-
|
480
|
-
|
481
|
-
|
327
|
+
const sizes = [
|
328
|
+
'B',
|
329
|
+
'KiB',
|
330
|
+
'MiB',
|
331
|
+
'GiB',
|
332
|
+
'TiB',
|
333
|
+
'PiB',
|
334
|
+
'EiB',
|
335
|
+
'ZiB',
|
336
|
+
'YiB',
|
337
|
+
];
|
482
338
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
483
339
|
// if less than 1
|
484
340
|
if (i < 0) {
|
485
341
|
return 'Invalid Number';
|
486
342
|
}
|
487
|
-
return parseFloat((bytes / Math.pow(k, i)).toFixed(precision)) + ' ' + sizes[i];
|
343
|
+
return (parseFloat((bytes / Math.pow(k, i)).toFixed(precision)) + ' ' + sizes[i]);
|
488
344
|
}
|
489
345
|
}
|
490
|
-
TdBytesPipe
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
346
|
+
TdBytesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdBytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
347
|
+
TdBytesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdBytesPipe, name: "bytes" });
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdBytesPipe, decorators: [{
|
349
|
+
type: Pipe,
|
350
|
+
args: [{
|
351
|
+
name: 'bytes',
|
352
|
+
}]
|
353
|
+
}] });
|
495
354
|
|
496
|
-
/**
|
497
|
-
* @fileoverview added by tsickle
|
498
|
-
* Generated from: pipes/decimal-bytes/decimal-bytes.pipe.ts
|
499
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
500
|
-
*/
|
501
355
|
class TdDecimalBytesPipe {
|
502
356
|
/* `bytes` needs to be `any` or TypeScript complains
|
503
|
-
|
504
|
-
/**
|
505
|
-
* @param {?} bytes
|
506
|
-
* @param {?=} precision
|
507
|
-
* @return {?}
|
508
|
-
*/
|
357
|
+
Tried both `number` and `number | string` */
|
509
358
|
transform(bytes, precision = 2) {
|
510
359
|
if (bytes === 0) {
|
511
360
|
return '0 B';
|
@@ -514,44 +363,41 @@ class TdDecimalBytesPipe {
|
|
514
363
|
/* If not a valid number, return 'Invalid Number' */
|
515
364
|
return 'Invalid Number';
|
516
365
|
}
|
517
|
-
/** @type {?} */
|
518
366
|
const k = 1000;
|
519
|
-
|
520
|
-
|
521
|
-
|
367
|
+
const sizes = [
|
368
|
+
'B',
|
369
|
+
'KB',
|
370
|
+
'MB',
|
371
|
+
'GB',
|
372
|
+
'TB',
|
373
|
+
'PB',
|
374
|
+
'EB',
|
375
|
+
'ZB',
|
376
|
+
'YB',
|
377
|
+
];
|
522
378
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
523
379
|
// if less than 1
|
524
380
|
if (i < 0) {
|
525
381
|
return 'Invalid Number';
|
526
382
|
}
|
527
|
-
return parseFloat((bytes / Math.pow(k, i)).toFixed(precision)) + ' ' + sizes[i];
|
383
|
+
return (parseFloat((bytes / Math.pow(k, i)).toFixed(precision)) + ' ' + sizes[i]);
|
528
384
|
}
|
529
385
|
}
|
530
|
-
TdDecimalBytesPipe
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
386
|
+
TdDecimalBytesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDecimalBytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
387
|
+
TdDecimalBytesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDecimalBytesPipe, name: "decimalBytes" });
|
388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDecimalBytesPipe, decorators: [{
|
389
|
+
type: Pipe,
|
390
|
+
args: [{
|
391
|
+
name: 'decimalBytes',
|
392
|
+
}]
|
393
|
+
}] });
|
535
394
|
|
536
|
-
/**
|
537
|
-
* @fileoverview added by tsickle
|
538
|
-
* Generated from: pipes/digits/digits.pipe.ts
|
539
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
540
|
-
*/
|
541
395
|
class TdDigitsPipe {
|
542
|
-
/**
|
543
|
-
* @param {?=} _locale
|
544
|
-
*/
|
545
396
|
constructor(_locale = 'en') {
|
546
397
|
this._locale = _locale;
|
547
398
|
this._decimalPipe = new DecimalPipe(this._locale);
|
548
399
|
}
|
549
400
|
/* `digits` needs to be type `digits: any` or TypeScript complains */
|
550
|
-
/**
|
551
|
-
* @param {?} digits
|
552
|
-
* @param {?=} precision
|
553
|
-
* @return {?}
|
554
|
-
*/
|
555
401
|
transform(digits, precision = 1) {
|
556
402
|
if (digits === 0) {
|
557
403
|
return '0';
|
@@ -561,58 +407,33 @@ class TdDigitsPipe {
|
|
561
407
|
return digits;
|
562
408
|
}
|
563
409
|
else if (digits < 1) {
|
564
|
-
return this._decimalPipe.transform(digits.toFixed(precision));
|
410
|
+
return this._decimalPipe.transform(digits.toFixed(precision)) ?? '';
|
565
411
|
}
|
566
|
-
/** @type {?} */
|
567
412
|
const k = 1000;
|
568
|
-
/** @type {?} */
|
569
413
|
const sizes = ['', 'K', 'M', 'B', 'T', 'Q'];
|
570
|
-
/** @type {?} */
|
571
414
|
const i = Math.floor(Math.log(digits) / Math.log(k));
|
572
|
-
/** @type {?} */
|
573
415
|
const size = sizes[i];
|
574
416
|
return (this._decimalPipe.transform(parseFloat((digits / Math.pow(k, i)).toFixed(precision))) + (size ? ' ' + size : ''));
|
575
417
|
}
|
576
418
|
}
|
577
|
-
TdDigitsPipe
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
* @type {?}
|
589
|
-
* @private
|
590
|
-
*/
|
591
|
-
TdDigitsPipe.prototype._decimalPipe;
|
592
|
-
/**
|
593
|
-
* @type {?}
|
594
|
-
* @private
|
595
|
-
*/
|
596
|
-
TdDigitsPipe.prototype._locale;
|
597
|
-
}
|
419
|
+
TdDigitsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDigitsPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
420
|
+
TdDigitsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDigitsPipe, name: "digits" });
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDigitsPipe, decorators: [{
|
422
|
+
type: Pipe,
|
423
|
+
args: [{
|
424
|
+
name: 'digits',
|
425
|
+
}]
|
426
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
427
|
+
type: Inject,
|
428
|
+
args: [LOCALE_ID]
|
429
|
+
}] }]; } });
|
598
430
|
|
599
|
-
/**
|
600
|
-
* @fileoverview added by tsickle
|
601
|
-
* Generated from: pipes/truncate/truncate.pipe.ts
|
602
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
603
|
-
*/
|
604
431
|
class TdTruncatePipe {
|
605
|
-
|
606
|
-
* @param {?} text
|
607
|
-
* @param {?} length
|
608
|
-
* @return {?}
|
609
|
-
*/
|
610
|
-
transform(text, length) {
|
432
|
+
transform(text, length = 54) {
|
611
433
|
if (typeof text !== 'string') {
|
612
434
|
return '';
|
613
435
|
}
|
614
436
|
// Truncate
|
615
|
-
/** @type {?} */
|
616
437
|
let truncated = text.substr(0, length);
|
617
438
|
if (text.length > length) {
|
618
439
|
if (truncated.lastIndexOf(' ') > 0) {
|
@@ -623,73 +444,42 @@ class TdTruncatePipe {
|
|
623
444
|
return truncated;
|
624
445
|
}
|
625
446
|
}
|
626
|
-
TdTruncatePipe
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
447
|
+
TdTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
448
|
+
TdTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTruncatePipe, name: "truncate" });
|
449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdTruncatePipe, decorators: [{
|
450
|
+
type: Pipe,
|
451
|
+
args: [{
|
452
|
+
name: 'truncate',
|
453
|
+
}]
|
454
|
+
}] });
|
631
455
|
|
632
|
-
/**
|
633
|
-
* @fileoverview added by tsickle
|
634
|
-
* Generated from: services/router-path.service.ts
|
635
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
636
|
-
*/
|
637
456
|
class RouterPathService {
|
638
|
-
/**
|
639
|
-
* @param {?} _router
|
640
|
-
*/
|
641
457
|
constructor(_router) {
|
642
458
|
this._router = _router;
|
643
459
|
this._router.events
|
644
|
-
.pipe(filter((
|
645
|
-
|
646
|
-
* @return {?}
|
647
|
-
*/
|
648
|
-
(e) => e instanceof RoutesRecognized)), pairwise())
|
649
|
-
.subscribe((/**
|
650
|
-
* @param {?} e
|
651
|
-
* @return {?}
|
652
|
-
*/
|
653
|
-
(e) => {
|
460
|
+
.pipe(filter((e) => e instanceof RoutesRecognized), pairwise())
|
461
|
+
.subscribe((e) => {
|
654
462
|
RouterPathService._previousRoute = e[0].urlAfterRedirects;
|
655
|
-
})
|
463
|
+
});
|
656
464
|
}
|
657
465
|
/*
|
658
|
-
|
659
|
-
|
660
|
-
*/
|
661
|
-
/**
|
662
|
-
* @return {?}
|
466
|
+
* Utility function to get the route the user previously went to
|
467
|
+
* good for use in a "back button"
|
663
468
|
*/
|
664
469
|
getPreviousRoute() {
|
665
470
|
return RouterPathService._previousRoute;
|
666
471
|
}
|
667
472
|
}
|
668
473
|
RouterPathService._previousRoute = '/';
|
669
|
-
RouterPathService
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
{ type: Router }
|
675
|
-
];
|
676
|
-
if (false) {
|
677
|
-
/**
|
678
|
-
* @type {?}
|
679
|
-
* @private
|
680
|
-
*/
|
681
|
-
RouterPathService._previousRoute;
|
682
|
-
/**
|
683
|
-
* @type {?}
|
684
|
-
* @private
|
685
|
-
*/
|
686
|
-
RouterPathService.prototype._router;
|
687
|
-
}
|
474
|
+
RouterPathService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RouterPathService, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
475
|
+
RouterPathService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RouterPathService });
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RouterPathService, decorators: [{
|
477
|
+
type: Injectable
|
478
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }]; } });
|
688
479
|
|
689
|
-
|
690
|
-
*
|
691
|
-
*
|
692
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
480
|
+
/*
|
481
|
+
* Copyright (C) 2016-2017 by Teradata Corporation. All rights reserved.
|
482
|
+
* TERADATA CORPORATION CONFIDENTIAL AND TRADE SECRET
|
693
483
|
*/
|
694
484
|
class IconService {
|
695
485
|
constructor() {
|
@@ -1759,48 +1549,24 @@ class IconService {
|
|
1759
1549
|
'toggle_on',
|
1760
1550
|
];
|
1761
1551
|
}
|
1762
|
-
/**
|
1763
|
-
* @return {?}
|
1764
|
-
*/
|
1765
1552
|
get icons() {
|
1766
1553
|
return this._icons;
|
1767
1554
|
}
|
1768
|
-
/**
|
1769
|
-
* @param {?} query
|
1770
|
-
* @return {?}
|
1771
|
-
*/
|
1772
1555
|
filter(query) {
|
1773
|
-
return this.icons.filter((
|
1774
|
-
* @param {?} el
|
1775
|
-
* @return {?}
|
1776
|
-
*/
|
1777
|
-
(el) => {
|
1556
|
+
return this.icons.filter((el) => {
|
1778
1557
|
return el.toLowerCase().indexOf(query ? query.toLowerCase() : '') > -1;
|
1779
|
-
})
|
1558
|
+
});
|
1780
1559
|
}
|
1781
1560
|
}
|
1782
|
-
IconService
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
* @type {?}
|
1788
|
-
* @private
|
1789
|
-
*/
|
1790
|
-
IconService.prototype._icons;
|
1791
|
-
}
|
1561
|
+
IconService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: IconService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
1562
|
+
IconService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: IconService });
|
1563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: IconService, decorators: [{
|
1564
|
+
type: Injectable
|
1565
|
+
}] });
|
1792
1566
|
|
1793
|
-
/**
|
1794
|
-
* @fileoverview added by tsickle
|
1795
|
-
* Generated from: common.module.ts
|
1796
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1797
|
-
*/
|
1798
|
-
/** @type {?} */
|
1799
1567
|
const TD_DIRECTIVES = [TdAutoTrimDirective, TdFullscreenDirective];
|
1800
1568
|
// Validators
|
1801
|
-
/** @type {?} */
|
1802
1569
|
const TD_VALIDATORS = [];
|
1803
|
-
/** @type {?} */
|
1804
1570
|
const TD_PIPES = [
|
1805
1571
|
TdTimeAgoPipe,
|
1806
1572
|
TdTimeDifferencePipe,
|
@@ -1812,30 +1578,31 @@ const TD_PIPES = [
|
|
1812
1578
|
];
|
1813
1579
|
class CovalentCommonModule {
|
1814
1580
|
}
|
1815
|
-
CovalentCommonModule
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
]
|
1581
|
+
CovalentCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1582
|
+
CovalentCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentCommonModule, declarations: [TdAutoTrimDirective, TdFullscreenDirective, TdTimeAgoPipe,
|
1583
|
+
TdTimeDifferencePipe,
|
1584
|
+
TdTimeUntilPipe,
|
1585
|
+
TdBytesPipe,
|
1586
|
+
TdDecimalBytesPipe,
|
1587
|
+
TdDigitsPipe,
|
1588
|
+
TdTruncatePipe], imports: [FormsModule, CommonModule], exports: [FormsModule, CommonModule, TdAutoTrimDirective, TdFullscreenDirective, TdTimeAgoPipe,
|
1589
|
+
TdTimeDifferencePipe,
|
1590
|
+
TdTimeUntilPipe,
|
1591
|
+
TdBytesPipe,
|
1592
|
+
TdDecimalBytesPipe,
|
1593
|
+
TdDigitsPipe,
|
1594
|
+
TdTruncatePipe] });
|
1595
|
+
CovalentCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentCommonModule, providers: [RouterPathService, IconService], imports: [[FormsModule, CommonModule], FormsModule, CommonModule] });
|
1596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentCommonModule, decorators: [{
|
1597
|
+
type: NgModule,
|
1598
|
+
args: [{
|
1599
|
+
imports: [FormsModule, CommonModule],
|
1600
|
+
declarations: [TD_DIRECTIVES, TD_PIPES, TD_VALIDATORS],
|
1601
|
+
exports: [FormsModule, CommonModule, TD_DIRECTIVES, TD_PIPES, TD_VALIDATORS],
|
1602
|
+
providers: [RouterPathService, IconService],
|
1603
|
+
}]
|
1604
|
+
}] });
|
1823
1605
|
|
1824
|
-
/**
|
1825
|
-
* @fileoverview added by tsickle
|
1826
|
-
* Generated from: animations/rotate/rotate.animation.ts
|
1827
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1828
|
-
*/
|
1829
|
-
/**
|
1830
|
-
* @record
|
1831
|
-
*/
|
1832
|
-
function IRotateAnimation() { }
|
1833
|
-
if (false) {
|
1834
|
-
/** @type {?|undefined} */
|
1835
|
-
IRotateAnimation.prototype.degrees;
|
1836
|
-
/** @type {?|undefined} */
|
1837
|
-
IRotateAnimation.prototype.ease;
|
1838
|
-
}
|
1839
1606
|
/**
|
1840
1607
|
* const tdRotateAnimation
|
1841
1608
|
*
|
@@ -1848,8 +1615,7 @@ if (false) {
|
|
1848
1615
|
*
|
1849
1616
|
* Returns an [AnimationTriggerMetadata] object with boolean states for a rotation animation.
|
1850
1617
|
*
|
1851
|
-
* usage: [
|
1852
|
-
* @type {?}
|
1618
|
+
* usage: [@tdRotate]="{ value: true | false, params: { degreesEnd: 90 }}"
|
1853
1619
|
*/
|
1854
1620
|
const tdRotateAnimation = trigger('tdRotate', [
|
1855
1621
|
state('0', style({
|
@@ -1858,24 +1624,14 @@ const tdRotateAnimation = trigger('tdRotate', [
|
|
1858
1624
|
state('1', style({
|
1859
1625
|
transform: 'rotate({{ degreesEnd }}deg)',
|
1860
1626
|
}), { params: { degreesEnd: 180 } }),
|
1861
|
-
transition('0 <=> 1', [
|
1627
|
+
transition('0 <=> 1', [
|
1628
|
+
group([
|
1629
|
+
query('@*', animateChild(), { optional: true }),
|
1630
|
+
animate('{{ duration }}ms {{ delay }}ms {{ ease }}'),
|
1631
|
+
]),
|
1632
|
+
], { params: { duration: 250, delay: '0', ease: 'ease-in' } }),
|
1862
1633
|
]);
|
1863
1634
|
|
1864
|
-
/**
|
1865
|
-
* @fileoverview added by tsickle
|
1866
|
-
* Generated from: animations/collapse/collapse.animation.ts
|
1867
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1868
|
-
*/
|
1869
|
-
/**
|
1870
|
-
* @record
|
1871
|
-
*/
|
1872
|
-
function ICollapseAnimation() { }
|
1873
|
-
if (false) {
|
1874
|
-
/** @type {?|undefined} */
|
1875
|
-
ICollapseAnimation.prototype.easeOnClose;
|
1876
|
-
/** @type {?|undefined} */
|
1877
|
-
ICollapseAnimation.prototype.easeOnOpen;
|
1878
|
-
}
|
1879
1635
|
/**
|
1880
1636
|
* const tdCollapseAnimation
|
1881
1637
|
*
|
@@ -1887,8 +1643,7 @@ if (false) {
|
|
1887
1643
|
*
|
1888
1644
|
* Returns an [AnimationTriggerMetadata] object with boolean states for a collapse/expand animation.
|
1889
1645
|
*
|
1890
|
-
* usage: [
|
1891
|
-
* @type {?}
|
1646
|
+
* usage: [@tdCollapse]="{ value: true | false, params: { duration: 500 }}"
|
1892
1647
|
*/
|
1893
1648
|
const tdCollapseAnimation = trigger('tdCollapse', [
|
1894
1649
|
state('1', style({
|
@@ -1927,21 +1682,6 @@ const tdCollapseAnimation = trigger('tdCollapse', [
|
|
1927
1682
|
], { params: { duration: 150, delay: '0', ease: 'ease-out' } }),
|
1928
1683
|
]);
|
1929
1684
|
|
1930
|
-
/**
|
1931
|
-
* @fileoverview added by tsickle
|
1932
|
-
* Generated from: animations/fade/fadeInOut.animation.ts
|
1933
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1934
|
-
*/
|
1935
|
-
/**
|
1936
|
-
* @record
|
1937
|
-
*/
|
1938
|
-
function IFadeInOutAnimation() { }
|
1939
|
-
if (false) {
|
1940
|
-
/** @type {?|undefined} */
|
1941
|
-
IFadeInOutAnimation.prototype.easeOnIn;
|
1942
|
-
/** @type {?|undefined} */
|
1943
|
-
IFadeInOutAnimation.prototype.easeOnOut;
|
1944
|
-
}
|
1945
1685
|
/**
|
1946
1686
|
* const tdFadeInOutAnimation
|
1947
1687
|
*
|
@@ -1953,8 +1693,7 @@ if (false) {
|
|
1953
1693
|
*
|
1954
1694
|
* Returns an [AnimationTriggerMetadata] object with boolean states for a fade animation.
|
1955
1695
|
*
|
1956
|
-
* usage: [
|
1957
|
-
* @type {?}
|
1696
|
+
* usage: [@tdFadeInOut]="{ value: true | false, params: { duration: 200 }}"
|
1958
1697
|
*/
|
1959
1698
|
const tdFadeInOutAnimation = trigger('tdFadeInOut', [
|
1960
1699
|
state('0', style({
|
@@ -1979,11 +1718,6 @@ const tdFadeInOutAnimation = trigger('tdFadeInOut', [
|
|
1979
1718
|
], { params: { duration: 150, delay: '0', easeOnOut: 'ease-out' } }),
|
1980
1719
|
]);
|
1981
1720
|
|
1982
|
-
/**
|
1983
|
-
* @fileoverview added by tsickle
|
1984
|
-
* Generated from: animations/bounce/bounce.animation.ts
|
1985
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
1986
|
-
*/
|
1987
1721
|
/**
|
1988
1722
|
* const tdBounceAnimation
|
1989
1723
|
*
|
@@ -1994,8 +1728,7 @@ const tdFadeInOutAnimation = trigger('tdFadeInOut', [
|
|
1994
1728
|
*
|
1995
1729
|
* Returns an [AnimationTriggerMetadata] object with boolean states for a bounce animation.
|
1996
1730
|
*
|
1997
|
-
* usage: [
|
1998
|
-
* @type {?}
|
1731
|
+
* usage: [@tdBounce]="{ value: true | false, params: { duration: 200 }}"
|
1999
1732
|
*/
|
2000
1733
|
const tdBounceAnimation = trigger('tdBounce', [
|
2001
1734
|
state('0', style({
|
@@ -2054,11 +1787,6 @@ const tdBounceAnimation = trigger('tdBounce', [
|
|
2054
1787
|
], { params: { duration: 500, delay: '0', ease: 'ease-out' } }),
|
2055
1788
|
]);
|
2056
1789
|
|
2057
|
-
/**
|
2058
|
-
* @fileoverview added by tsickle
|
2059
|
-
* Generated from: animations/flash/flash.animation.ts
|
2060
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2061
|
-
*/
|
2062
1790
|
/**
|
2063
1791
|
* const tdFlashAnimation
|
2064
1792
|
*
|
@@ -2069,8 +1797,7 @@ const tdBounceAnimation = trigger('tdBounce', [
|
|
2069
1797
|
*
|
2070
1798
|
* Returns an [AnimationTriggerMetadata] object with boolean states for a flash animation.
|
2071
1799
|
*
|
2072
|
-
* usage: [
|
2073
|
-
* @type {?}
|
1800
|
+
* usage: [@tdFlash]="{ value: true | false, params: { duration: 200 }}"
|
2074
1801
|
*/
|
2075
1802
|
const tdFlashAnimation = trigger('tdFlash', [
|
2076
1803
|
state('0', style({
|
@@ -2093,11 +1820,6 @@ const tdFlashAnimation = trigger('tdFlash', [
|
|
2093
1820
|
], { params: { duration: 500, delay: '0', ease: 'ease-out' } }),
|
2094
1821
|
]);
|
2095
1822
|
|
2096
|
-
/**
|
2097
|
-
* @fileoverview added by tsickle
|
2098
|
-
* Generated from: animations/headshake/headshake.animation.ts
|
2099
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2100
|
-
*/
|
2101
1823
|
/**
|
2102
1824
|
* const tdHeadshakeAnimation
|
2103
1825
|
*
|
@@ -2108,8 +1830,7 @@ const tdFlashAnimation = trigger('tdFlash', [
|
|
2108
1830
|
*
|
2109
1831
|
* Returns an [AnimationTriggerMetadata] object with boolean states for a headshake animation.
|
2110
1832
|
*
|
2111
|
-
* usage: [
|
2112
|
-
* @type {?}
|
1833
|
+
* usage: [@tdHeadshake]="{ value: true | false, params: { duration: 200 }}"
|
2113
1834
|
*/
|
2114
1835
|
const tdHeadshakeAnimation = trigger('tdHeadshake', [
|
2115
1836
|
state('0', style({
|
@@ -2123,21 +1844,28 @@ const tdHeadshakeAnimation = trigger('tdHeadshake', [
|
|
2123
1844
|
query('@*', animateChild(), { optional: true }),
|
2124
1845
|
animate('{{ duration }}ms {{ delay }}ms {{ ease }}', keyframes([
|
2125
1846
|
style({ transform: 'translateX(0)', offset: 0 }),
|
2126
|
-
style({
|
2127
|
-
|
2128
|
-
|
2129
|
-
|
1847
|
+
style({
|
1848
|
+
transform: 'translateX(-6px) rotateY(-9deg)',
|
1849
|
+
offset: 0.065,
|
1850
|
+
}),
|
1851
|
+
style({
|
1852
|
+
transform: 'translateX(5px) rotateY(7deg)',
|
1853
|
+
offset: 0.185,
|
1854
|
+
}),
|
1855
|
+
style({
|
1856
|
+
transform: 'translateX(-3px) rotateY(-5deg)',
|
1857
|
+
offset: 0.315,
|
1858
|
+
}),
|
1859
|
+
style({
|
1860
|
+
transform: 'translateX(2px) rotateY(3deg)',
|
1861
|
+
offset: 0.435,
|
1862
|
+
}),
|
2130
1863
|
style({ transform: 'translateX(0)', offset: 0.5 }),
|
2131
1864
|
])),
|
2132
1865
|
]),
|
2133
1866
|
], { params: { duration: 500, delay: '0', ease: 'ease-out' } }),
|
2134
1867
|
]);
|
2135
1868
|
|
2136
|
-
/**
|
2137
|
-
* @fileoverview added by tsickle
|
2138
|
-
* Generated from: animations/jello/jello.animation.ts
|
2139
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2140
|
-
*/
|
2141
1869
|
/**
|
2142
1870
|
* const tdJelloAnimation
|
2143
1871
|
*
|
@@ -2148,8 +1876,7 @@ const tdHeadshakeAnimation = trigger('tdHeadshake', [
|
|
2148
1876
|
*
|
2149
1877
|
* Returns an [AnimationTriggerMetadata] object with boolean states for a jello animation.
|
2150
1878
|
*
|
2151
|
-
* usage: [
|
2152
|
-
* @type {?}
|
1879
|
+
* usage: [@tdJello]="{ value: true | false, params: { duration: 200 }}"
|
2153
1880
|
*/
|
2154
1881
|
const tdJelloAnimation = trigger('tdJello', [
|
2155
1882
|
state('0', style({
|
@@ -2164,23 +1891,39 @@ const tdJelloAnimation = trigger('tdJello', [
|
|
2164
1891
|
animate('{{ duration }}ms {{ delay }}ms {{ ease }}', keyframes([
|
2165
1892
|
style({ transform: 'none', offset: 0 }),
|
2166
1893
|
style({ transform: 'none', offset: 0.011 }),
|
2167
|
-
style({
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
style({
|
2172
|
-
|
2173
|
-
|
1894
|
+
style({
|
1895
|
+
transform: 'skewX(-12.5deg) skewY(-12.5deg)',
|
1896
|
+
offset: 0.222,
|
1897
|
+
}),
|
1898
|
+
style({
|
1899
|
+
transform: 'skewX(6.25deg) skewY(6.25deg)',
|
1900
|
+
offset: 0.333,
|
1901
|
+
}),
|
1902
|
+
style({
|
1903
|
+
transform: 'skewX(-3.125deg) skewY(-3.125deg)',
|
1904
|
+
offset: 0.444,
|
1905
|
+
}),
|
1906
|
+
style({
|
1907
|
+
transform: 'skewX(1.5625deg) skewY(1.5625deg)',
|
1908
|
+
offset: 0.555,
|
1909
|
+
}),
|
1910
|
+
style({
|
1911
|
+
transform: 'skewX(-0.78125deg) skewY(-0.78125deg)',
|
1912
|
+
offset: 0.666,
|
1913
|
+
}),
|
1914
|
+
style({
|
1915
|
+
transform: 'skewX(0.390625deg) skewY(0.390625deg)',
|
1916
|
+
offset: 0.777,
|
1917
|
+
}),
|
1918
|
+
style({
|
1919
|
+
transform: 'skewX(-0.1953125deg) skewY(-0.1953125deg)',
|
1920
|
+
offset: 0.888,
|
1921
|
+
}),
|
2174
1922
|
])),
|
2175
1923
|
]),
|
2176
1924
|
], { params: { duration: 500, delay: '0', ease: 'ease-out' } }),
|
2177
1925
|
]);
|
2178
1926
|
|
2179
|
-
/**
|
2180
|
-
* @fileoverview added by tsickle
|
2181
|
-
* Generated from: animations/pulse/pulse.animation.ts
|
2182
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2183
|
-
*/
|
2184
1927
|
/**
|
2185
1928
|
* const tdPulseAnimation
|
2186
1929
|
*
|
@@ -2191,8 +1934,7 @@ const tdJelloAnimation = trigger('tdJello', [
|
|
2191
1934
|
*
|
2192
1935
|
* Returns an [AnimationTriggerMetadata] object with boolean states for a pulse animation.
|
2193
1936
|
*
|
2194
|
-
* usage: [
|
2195
|
-
* @type {?}
|
1937
|
+
* usage: [@tdPulse]="{ value: true | false, params: { duration: 200 }}"
|
2196
1938
|
*/
|
2197
1939
|
const tdPulseAnimation = trigger('tdPulse', [
|
2198
1940
|
state('0', style({
|
@@ -2213,72 +1955,22 @@ const tdPulseAnimation = trigger('tdPulse', [
|
|
2213
1955
|
], { params: { duration: 500, delay: '0', ease: 'ease-out' } }),
|
2214
1956
|
]);
|
2215
1957
|
|
2216
|
-
|
2217
|
-
* @fileoverview added by tsickle
|
2218
|
-
* Generated from: behaviors/control-value-accesor.mixin.ts
|
2219
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2220
|
-
*/
|
2221
|
-
/** @type {?} */
|
2222
|
-
const noop = (/**
|
2223
|
-
* @return {?}
|
2224
|
-
*/
|
2225
|
-
() => {
|
1958
|
+
const noop = () => {
|
2226
1959
|
// empty method
|
2227
|
-
}
|
2228
|
-
|
2229
|
-
/**
|
2230
|
-
* @record
|
2231
|
-
*/
|
2232
|
-
function IControlValueAccessor() { }
|
2233
|
-
if (false) {
|
2234
|
-
/** @type {?} */
|
2235
|
-
IControlValueAccessor.prototype.value;
|
2236
|
-
/** @type {?} */
|
2237
|
-
IControlValueAccessor.prototype.valueChanges;
|
2238
|
-
/** @type {?} */
|
2239
|
-
IControlValueAccessor.prototype.onChange;
|
2240
|
-
/** @type {?} */
|
2241
|
-
IControlValueAccessor.prototype.onTouched;
|
2242
|
-
}
|
2243
|
-
/**
|
2244
|
-
* @record
|
2245
|
-
*/
|
2246
|
-
function IHasChangeDetectorRef() { }
|
2247
|
-
if (false) {
|
2248
|
-
/** @type {?} */
|
2249
|
-
IHasChangeDetectorRef.prototype._changeDetectorRef;
|
2250
|
-
}
|
2251
|
-
/**
|
2252
|
-
* Mixin to augment a component with ngModel support.
|
2253
|
-
* @template T
|
2254
|
-
* @param {?} base
|
2255
|
-
* @param {?=} initialValue
|
2256
|
-
* @return {?}
|
2257
|
-
*/
|
1960
|
+
};
|
1961
|
+
/** Mixin to augment a component with ngModel support. */
|
2258
1962
|
function mixinControlValueAccessor(base, initialValue) {
|
2259
1963
|
return class extends base {
|
2260
|
-
/**
|
2261
|
-
* @param {...?} args
|
2262
|
-
*/
|
2263
1964
|
constructor(...args) {
|
2264
1965
|
super(...args);
|
2265
|
-
this._value = initialValue instanceof Array
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
(_) => noop);
|
2271
|
-
this.onTouched = (/**
|
2272
|
-
* @return {?}
|
2273
|
-
*/
|
2274
|
-
() => noop);
|
1966
|
+
this._value = initialValue instanceof Array
|
1967
|
+
? Object.assign([], initialValue)
|
1968
|
+
: initialValue;
|
1969
|
+
this.onChange = (_) => noop;
|
1970
|
+
this.onTouched = () => noop;
|
2275
1971
|
this._subjectValueChanges = new Subject();
|
2276
1972
|
this.valueChanges = this._subjectValueChanges.asObservable();
|
2277
1973
|
}
|
2278
|
-
/**
|
2279
|
-
* @param {?} v
|
2280
|
-
* @return {?}
|
2281
|
-
*/
|
2282
1974
|
set value(v) {
|
2283
1975
|
if (v !== this._value) {
|
2284
1976
|
this._value = v;
|
@@ -2287,241 +1979,112 @@ function mixinControlValueAccessor(base, initialValue) {
|
|
2287
1979
|
this._subjectValueChanges.next(v);
|
2288
1980
|
}
|
2289
1981
|
}
|
2290
|
-
/**
|
2291
|
-
* @return {?}
|
2292
|
-
*/
|
2293
1982
|
get value() {
|
2294
1983
|
return this._value;
|
2295
1984
|
}
|
2296
|
-
/**
|
2297
|
-
* @param {?} value
|
2298
|
-
* @return {?}
|
2299
|
-
*/
|
2300
1985
|
writeValue(value) {
|
2301
1986
|
this.value = value;
|
2302
1987
|
this._changeDetectorRef.markForCheck();
|
2303
1988
|
}
|
2304
|
-
/**
|
2305
|
-
* @param {?} fn
|
2306
|
-
* @return {?}
|
2307
|
-
*/
|
2308
1989
|
registerOnChange(fn) {
|
2309
1990
|
this.onChange = fn;
|
2310
1991
|
}
|
2311
|
-
/**
|
2312
|
-
* @param {?} fn
|
2313
|
-
* @return {?}
|
2314
|
-
*/
|
2315
1992
|
registerOnTouched(fn) {
|
2316
1993
|
this.onTouched = fn;
|
2317
1994
|
}
|
2318
1995
|
};
|
2319
1996
|
}
|
2320
1997
|
|
2321
|
-
/**
|
2322
|
-
* @fileoverview added by tsickle
|
2323
|
-
* Generated from: behaviors/disabled.mixin.ts
|
2324
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2325
|
-
*/
|
2326
|
-
/**
|
2327
|
-
* Interface to implement when applying the disabled mixin
|
2328
|
-
* @record
|
2329
|
-
*/
|
2330
|
-
function ICanDisable() { }
|
2331
|
-
if (false) {
|
2332
|
-
/** @type {?} */
|
2333
|
-
ICanDisable.prototype.disabled;
|
2334
|
-
/**
|
2335
|
-
* @param {?} v
|
2336
|
-
* @return {?}
|
2337
|
-
*/
|
2338
|
-
ICanDisable.prototype.onDisabledChange = function (v) { };
|
2339
|
-
}
|
2340
|
-
/**
|
2341
|
-
* Mixin to augment a component or directive with a `disabled` property.
|
2342
|
-
* @template T
|
2343
|
-
* @param {?} base
|
2344
|
-
* @return {?}
|
2345
|
-
*/
|
1998
|
+
/** Mixin to augment a component or directive with a `disabled` property. */
|
2346
1999
|
function mixinDisabled(base) {
|
2347
2000
|
return class extends base {
|
2348
|
-
/**
|
2349
|
-
* @param {...?} args
|
2350
|
-
*/
|
2351
2001
|
constructor(...args) {
|
2352
2002
|
super(...args);
|
2353
2003
|
this._disabled = false;
|
2354
2004
|
}
|
2355
|
-
/**
|
2356
|
-
* @return {?}
|
2357
|
-
*/
|
2358
2005
|
get disabled() {
|
2359
2006
|
return this._disabled;
|
2360
2007
|
}
|
2361
|
-
/**
|
2362
|
-
* @param {?} value
|
2363
|
-
* @return {?}
|
2364
|
-
*/
|
2365
2008
|
set disabled(value) {
|
2366
|
-
/** @type {?} */
|
2367
2009
|
const newValue = coerceBooleanProperty(value);
|
2368
2010
|
if (this._disabled !== newValue) {
|
2369
2011
|
this._disabled = newValue;
|
2370
2012
|
this.onDisabledChange(this._disabled);
|
2371
2013
|
}
|
2372
2014
|
}
|
2373
|
-
/**
|
2374
|
-
* @param {?} v
|
2375
|
-
* @return {?}
|
2376
|
-
*/
|
2377
2015
|
onDisabledChange(v) {
|
2378
2016
|
/** NOT IMPLEMENTED, this needs to be overriden by subclasses if needed */
|
2379
2017
|
}
|
2380
2018
|
};
|
2381
2019
|
}
|
2382
2020
|
|
2383
|
-
/**
|
2384
|
-
* @fileoverview added by tsickle
|
2385
|
-
* Generated from: behaviors/disable-ripple.mixin.ts
|
2386
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2387
|
-
*/
|
2388
|
-
/**
|
2389
|
-
* Interface to implement when applying the disabled mixin
|
2390
|
-
* @record
|
2391
|
-
*/
|
2392
|
-
function ICanDisableRipple() { }
|
2393
|
-
if (false) {
|
2394
|
-
/** @type {?} */
|
2395
|
-
ICanDisableRipple.prototype.disableRipple;
|
2396
|
-
/**
|
2397
|
-
* @param {?} v
|
2398
|
-
* @return {?}
|
2399
|
-
*/
|
2400
|
-
ICanDisableRipple.prototype.onDisableRippleChange = function (v) { };
|
2401
|
-
}
|
2402
|
-
/**
|
2403
|
-
* Mixin to augment a component or directive with a `disabled` property.
|
2404
|
-
* @template T
|
2405
|
-
* @param {?} base
|
2406
|
-
* @return {?}
|
2407
|
-
*/
|
2021
|
+
/** Mixin to augment a component or directive with a `disabled` property. */
|
2408
2022
|
function mixinDisableRipple(base) {
|
2409
2023
|
return class extends base {
|
2410
|
-
/**
|
2411
|
-
* @param {...?} args
|
2412
|
-
*/
|
2413
2024
|
constructor(...args) {
|
2414
2025
|
super(...args);
|
2415
2026
|
this._disableRipple = false;
|
2416
2027
|
}
|
2417
|
-
/**
|
2418
|
-
* @return {?}
|
2419
|
-
*/
|
2420
2028
|
get disableRipple() {
|
2421
2029
|
return this._disableRipple;
|
2422
2030
|
}
|
2423
|
-
/**
|
2424
|
-
* @param {?} value
|
2425
|
-
* @return {?}
|
2426
|
-
*/
|
2427
2031
|
set disableRipple(value) {
|
2428
|
-
/** @type {?} */
|
2429
2032
|
const newValue = coerceBooleanProperty(value);
|
2430
2033
|
if (this._disableRipple !== newValue) {
|
2431
2034
|
this._disableRipple = newValue;
|
2432
2035
|
this.onDisableRippleChange(this._disableRipple);
|
2433
2036
|
}
|
2434
2037
|
}
|
2435
|
-
/**
|
2436
|
-
* @param {?} v
|
2437
|
-
* @return {?}
|
2438
|
-
*/
|
2439
2038
|
onDisableRippleChange(v) {
|
2440
2039
|
/** NOT IMPLEMENTED, this needs to be overriden by subclasses if needed */
|
2441
2040
|
}
|
2442
2041
|
};
|
2443
2042
|
}
|
2444
2043
|
|
2445
|
-
/**
|
2446
|
-
* @fileoverview added by tsickle
|
2447
|
-
* Generated from: forms/validators/validators.ts
|
2448
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2449
|
-
*/
|
2450
2044
|
class CovalentValidators {
|
2451
|
-
/**
|
2452
|
-
* @param {?} minValue
|
2453
|
-
* @return {?}
|
2454
|
-
*/
|
2455
2045
|
static min(minValue) {
|
2456
2046
|
// tslint:disable-next-line:prefer-immediate-return
|
2457
|
-
|
2458
|
-
const func = (/**
|
2459
|
-
* @param {?} c
|
2460
|
-
* @return {?}
|
2461
|
-
*/
|
2462
|
-
(c) => {
|
2047
|
+
const func = (c) => {
|
2463
2048
|
if (!!Validators.required(c) || (!minValue && minValue !== 0)) {
|
2464
|
-
return
|
2049
|
+
return {};
|
2465
2050
|
}
|
2466
|
-
/** @type {?} */
|
2467
2051
|
const v = c.value;
|
2468
|
-
return v < minValue ? { min: { minValue, actualValue: v } } :
|
2469
|
-
}
|
2052
|
+
return v < minValue ? { min: { minValue, actualValue: v } } : {};
|
2053
|
+
};
|
2470
2054
|
return func;
|
2471
2055
|
}
|
2472
|
-
/**
|
2473
|
-
* @param {?} maxValue
|
2474
|
-
* @return {?}
|
2475
|
-
*/
|
2476
2056
|
static max(maxValue) {
|
2477
2057
|
// tslint:disable-next-line:prefer-immediate-return
|
2478
|
-
|
2479
|
-
const func = (/**
|
2480
|
-
* @param {?} c
|
2481
|
-
* @return {?}
|
2482
|
-
*/
|
2483
|
-
(c) => {
|
2058
|
+
const func = (c) => {
|
2484
2059
|
if (!!Validators.required(c) || (!maxValue && maxValue !== 0)) {
|
2485
|
-
return
|
2060
|
+
return {};
|
2486
2061
|
}
|
2487
|
-
/** @type {?} */
|
2488
2062
|
const v = c.value;
|
2489
|
-
return v > maxValue ? { max: { maxValue, actualValue: v } } :
|
2490
|
-
}
|
2063
|
+
return v > maxValue ? { max: { maxValue, actualValue: v } } : {};
|
2064
|
+
};
|
2491
2065
|
return func;
|
2492
2066
|
}
|
2493
|
-
/**
|
2494
|
-
* @param {?} c
|
2495
|
-
* @return {?}
|
2496
|
-
*/
|
2497
2067
|
static numberRequired(c) {
|
2498
|
-
return Number.isNaN(c.value) ? { required: true } :
|
2068
|
+
return Number.isNaN(c.value) ? { required: true } : {};
|
2499
2069
|
}
|
2500
2070
|
}
|
2501
2071
|
|
2502
|
-
/**
|
2503
|
-
* @fileoverview added by tsickle
|
2504
|
-
* Generated from: functions/clipboard.ts
|
2505
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2506
|
-
*/
|
2507
2072
|
/**
|
2508
2073
|
* Assign a text value to the system clipboard. Note: Due to browser
|
2509
2074
|
* security restrictions, the copy will only succeed if this method
|
2510
2075
|
* is invoked as a result of a user action (eg. user button click).
|
2511
2076
|
*
|
2512
|
-
* @param
|
2513
|
-
* @
|
2077
|
+
* @param value text value to be assigned to clipboard.
|
2078
|
+
* @returns boolean indicating success/failure of copy operation.
|
2514
2079
|
*/
|
2515
2080
|
function copyToClipboard(value) {
|
2516
2081
|
// Create a temporary textarea element and append to DOM
|
2517
|
-
/** @type {?} */
|
2518
2082
|
const fakeTextArea = document.createElement('textarea');
|
2519
2083
|
document.body.appendChild(fakeTextArea);
|
2520
2084
|
// Assign value to be copied to clipboard
|
2521
2085
|
fakeTextArea.value = value;
|
2522
2086
|
fakeTextArea.select();
|
2523
2087
|
// Copy to clipboard
|
2524
|
-
/** @type {?} */
|
2525
2088
|
const success = document.execCommand('copy');
|
2526
2089
|
// Remove temporary textarea
|
2527
2090
|
document.body.removeChild(fakeTextArea);
|
@@ -2529,34 +2092,22 @@ function copyToClipboard(value) {
|
|
2529
2092
|
return success;
|
2530
2093
|
}
|
2531
2094
|
|
2532
|
-
/**
|
2533
|
-
* @fileoverview added by tsickle
|
2534
|
-
* Generated from: functions/convert.ts
|
2535
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2536
|
-
*/
|
2537
2095
|
/**
|
2538
2096
|
* Conversion function that takes an array of objects and converts
|
2539
2097
|
* them to CSV format. Custom key and line separators can be specified.
|
2540
2098
|
*
|
2541
|
-
* @param
|
2542
|
-
* @param
|
2543
|
-
* @param
|
2544
|
-
* @
|
2099
|
+
* @param objects list of strings in JSON format or actual objects
|
2100
|
+
* @param keySeparator optional parameter to specify custom value separator
|
2101
|
+
* @param lineSeparator optional parameter to specify custom end of line separator
|
2102
|
+
* @returns CSV formatted string
|
2545
2103
|
*/
|
2546
2104
|
function convertObjectsToCSV(objects, keySeparator = ',', lineSeparator = '\r\n') {
|
2547
2105
|
if (!objects) {
|
2548
2106
|
return '';
|
2549
2107
|
}
|
2550
|
-
/** @type {?} */
|
2551
2108
|
let outputString = '';
|
2552
2109
|
// Iterate through array, creating one output line per object
|
2553
|
-
objects.forEach((
|
2554
|
-
* @param {?} value
|
2555
|
-
* @param {?} key
|
2556
|
-
* @return {?}
|
2557
|
-
*/
|
2558
|
-
(value, key) => {
|
2559
|
-
/** @type {?} */
|
2110
|
+
objects.forEach((value, key) => {
|
2560
2111
|
let line = '';
|
2561
2112
|
for (const index of Object.keys(objects[key])) {
|
2562
2113
|
if (line !== '') {
|
@@ -2568,10 +2119,9 @@ function convertObjectsToCSV(objects, keySeparator = ',', lineSeparator = '\r\n'
|
|
2568
2119
|
line += objects[key][index];
|
2569
2120
|
}
|
2570
2121
|
outputString += `${line}${lineSeparator}`;
|
2571
|
-
})
|
2122
|
+
});
|
2572
2123
|
// Append header row identifying keys into output
|
2573
2124
|
if (objects[0]) {
|
2574
|
-
/** @type {?} */
|
2575
2125
|
const headers = Object.keys(objects[0]).join(keySeparator);
|
2576
2126
|
outputString = `${headers}${lineSeparator}${outputString}`;
|
2577
2127
|
}
|
@@ -2584,32 +2134,27 @@ function convertObjectsToCSV(objects, keySeparator = ',', lineSeparator = '\r\n'
|
|
2584
2134
|
* Custom key separator and line separator can be specified.
|
2585
2135
|
* Indentation size for output JSON can be specified.
|
2586
2136
|
*
|
2587
|
-
* @param
|
2588
|
-
* @param
|
2589
|
-
* @param
|
2590
|
-
* @param
|
2591
|
-
* @
|
2137
|
+
* @param csv list of strings in JSON format or actual objects
|
2138
|
+
* @param keySeparator optional parameter to specify custom value separator
|
2139
|
+
* @param lineSeparator optional parameter to specify custom end of line separator
|
2140
|
+
* @param indent optional parameter indicating space indentation for pretty output. Default is 2.
|
2141
|
+
* @returns JSON formatted string
|
2592
2142
|
*/
|
2593
2143
|
function convertCSVToJSON(csv, keySeparator = ',', lineSeparator = '\r\n', indent = 2) {
|
2594
2144
|
if (!csv) {
|
2595
2145
|
return '';
|
2596
2146
|
}
|
2597
|
-
/** @type {?} */
|
2598
2147
|
const csvArray = csv.split(lineSeparator);
|
2599
2148
|
// Input CSV must have a minimum of two rows
|
2600
2149
|
if (csvArray.length < 2) {
|
2601
2150
|
return '';
|
2602
2151
|
}
|
2603
|
-
/** @type {?} */
|
2604
2152
|
const newObjects = [];
|
2605
2153
|
// Extract object keys from header row
|
2606
|
-
/** @type {?} */
|
2607
2154
|
const keys = csvArray[0].split(keySeparator);
|
2608
2155
|
// Iterate through array, creating one output line per object
|
2609
2156
|
for (let i = 1; i < csvArray.length; i++) {
|
2610
|
-
/** @type {?} */
|
2611
2157
|
const newObject = {};
|
2612
|
-
/** @type {?} */
|
2613
2158
|
const values = csvArray[i].split(keySeparator);
|
2614
2159
|
if (values.length !== keys.length) {
|
2615
2160
|
continue;
|
@@ -2624,26 +2169,19 @@ function convertCSVToJSON(csv, keySeparator = ',', lineSeparator = '\r\n', inden
|
|
2624
2169
|
/**
|
2625
2170
|
* Convert object to JSON using stringify. Indentation size for output JSON can be specified.
|
2626
2171
|
*
|
2627
|
-
* @param
|
2628
|
-
* @param
|
2629
|
-
* @return {?}
|
2172
|
+
* @param json object to be converted
|
2173
|
+
* @param indent optional parameter indicating space indentation for pretty output. Default is 2.
|
2630
2174
|
*/
|
2631
2175
|
function formatJSON(json, indent = 2) {
|
2632
2176
|
return JSON.stringify(json, undefined, indent);
|
2633
2177
|
}
|
2634
2178
|
|
2635
|
-
/**
|
2636
|
-
* @fileoverview added by tsickle
|
2637
|
-
* Generated from: functions/download.ts
|
2638
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2639
|
-
*/
|
2640
2179
|
/**
|
2641
2180
|
* Download CSV content to the specified file with .csv extension
|
2642
2181
|
* appended to the provided base file name.
|
2643
2182
|
*
|
2644
|
-
* @param
|
2645
|
-
* @param
|
2646
|
-
* @return {?}
|
2183
|
+
* @param fileBaseName base name of destination file
|
2184
|
+
* @param csv CSV contents
|
2647
2185
|
*/
|
2648
2186
|
function downloadCSV(fileBaseName, csv) {
|
2649
2187
|
downloadFile(`${fileBaseName}.csv`, csv, 'text/csv');
|
@@ -2652,11 +2190,10 @@ function downloadCSV(fileBaseName, csv) {
|
|
2652
2190
|
* Download JSON content to the specified file with .json extension
|
2653
2191
|
* appended to the provided base file name.
|
2654
2192
|
*
|
2655
|
-
* @param
|
2656
|
-
* @param
|
2657
|
-
* @param
|
2658
|
-
* @param
|
2659
|
-
* @return {?}
|
2193
|
+
* @param fileBaseName base name of destination file
|
2194
|
+
* @param json JSON contents
|
2195
|
+
* @param format indicates if JSON should be prettied
|
2196
|
+
* @param indent optional parameter indicating space indentation for pretty output. Default is 2
|
2660
2197
|
*/
|
2661
2198
|
function downloadJSON(fileBaseName, json, format = false, indent = 2) {
|
2662
2199
|
downloadFile(`${fileBaseName}.json`, format ? formatJSON(JSON.parse(json), indent) : json, 'application/json');
|
@@ -2666,12 +2203,11 @@ function downloadJSON(fileBaseName, json, format = false, indent = 2) {
|
|
2666
2203
|
* extension appended to the provided base file name. Custom key
|
2667
2204
|
* separator and line separator can be specified.
|
2668
2205
|
*
|
2669
|
-
* @param
|
2670
|
-
* @param
|
2206
|
+
* @param fileBaseName base name of destination file
|
2207
|
+
* @param objects object array to be converted to CSV format
|
2671
2208
|
* prior to writing to download destination
|
2672
|
-
* @param
|
2673
|
-
* @param
|
2674
|
-
* @return {?}
|
2209
|
+
* @param keySeparator optional parameter to specify custom value separator
|
2210
|
+
* @param lineSeparator optional parameter to specify custom end of line separator
|
2675
2211
|
*/
|
2676
2212
|
function downloadObjectsToCSV(fileBaseName, objects, keySeparator = ',', lineSeparator = '\r\n') {
|
2677
2213
|
downloadFile(`${fileBaseName}.csv`, convertObjectsToCSV(objects, keySeparator, lineSeparator), 'text/csv');
|
@@ -2680,11 +2216,10 @@ function downloadObjectsToCSV(fileBaseName, objects, keySeparator = ',', lineSep
|
|
2680
2216
|
* Convert objects to JSON format and download to file with .json
|
2681
2217
|
* extension appended to the provided base file name.
|
2682
2218
|
*
|
2683
|
-
* @param
|
2684
|
-
* @param
|
2219
|
+
* @param fileBaseName base name of destination file
|
2220
|
+
* @param objects object array to be converted to JSON format
|
2685
2221
|
* prior to writing to download destination
|
2686
|
-
* @param
|
2687
|
-
* @return {?}
|
2222
|
+
* @param indent optional parameter indicating space indentation for pretty output. Default is 2
|
2688
2223
|
*/
|
2689
2224
|
function downloadObjectsToJSON(fileBaseName, objects, indent = 2) {
|
2690
2225
|
downloadFile(`${fileBaseName}.json`, formatJSON(objects, indent), 'application/json');
|
@@ -2692,22 +2227,18 @@ function downloadObjectsToJSON(fileBaseName, objects, indent = 2) {
|
|
2692
2227
|
/**
|
2693
2228
|
* Download string content to the specified file with desired mime type.
|
2694
2229
|
*
|
2695
|
-
* @param
|
2696
|
-
* @param
|
2697
|
-
* @param
|
2698
|
-
* @return {?}
|
2230
|
+
* @param fileName full filename (including appropriate extension) of destination file
|
2231
|
+
* @param contents string contents to be written to download destination
|
2232
|
+
* @param mimeType mime type appropriate to file content to support consumption of destination file
|
2699
2233
|
*/
|
2700
2234
|
function downloadFile(fileName, contents, mimeType = 'text/plain') {
|
2701
2235
|
if (!fileName || !contents) {
|
2702
2236
|
return;
|
2703
2237
|
}
|
2704
2238
|
// Create blob object and assign URL
|
2705
|
-
/** @type {?} */
|
2706
2239
|
const blob = new Blob([contents], { type: mimeType });
|
2707
|
-
/** @type {?} */
|
2708
2240
|
const url = window.URL.createObjectURL(blob);
|
2709
2241
|
// Construct anchor for URL, append to DOM, click and cleanup.
|
2710
|
-
/** @type {?} */
|
2711
2242
|
const a = document.createElement('a');
|
2712
2243
|
a.setAttribute('style', 'display: none');
|
2713
2244
|
a.setAttribute('download', fileName);
|
@@ -2719,52 +2250,25 @@ function downloadFile(fileName, contents, mimeType = 'text/plain') {
|
|
2719
2250
|
window.URL.revokeObjectURL(url);
|
2720
2251
|
}
|
2721
2252
|
|
2722
|
-
/**
|
2723
|
-
* @fileoverview added by tsickle
|
2724
|
-
* Generated from: functions/file.ts
|
2725
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2726
|
-
*/
|
2727
2253
|
/**
|
2728
2254
|
* Read file as UTF-8 text. Return string contents on read completion.
|
2729
2255
|
*
|
2730
|
-
* @param
|
2731
|
-
* @
|
2256
|
+
* @param file filename or File object
|
2257
|
+
* @returns promise that resolves to file content string
|
2732
2258
|
*/
|
2733
2259
|
function readFile(file) {
|
2734
|
-
return new Promise((
|
2735
|
-
* @param {?} resolve
|
2736
|
-
* @return {?}
|
2737
|
-
*/
|
2738
|
-
(resolve) => {
|
2739
|
-
/** @type {?} */
|
2260
|
+
return new Promise((resolve) => {
|
2740
2261
|
const reader = new FileReader();
|
2741
2262
|
reader.readAsText(file, 'UTF-8');
|
2742
|
-
reader.onload = (
|
2743
|
-
|
2744
|
-
|
2745
|
-
|
2746
|
-
resolve((/** @type {?} */ (reader.result)));
|
2747
|
-
});
|
2748
|
-
}));
|
2263
|
+
reader.onload = () => {
|
2264
|
+
resolve(reader.result);
|
2265
|
+
};
|
2266
|
+
});
|
2749
2267
|
}
|
2750
2268
|
|
2751
2269
|
/**
|
2752
|
-
*
|
2753
|
-
* Generated from: public-api.ts
|
2754
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2755
|
-
*/
|
2756
|
-
|
2757
|
-
/**
|
2758
|
-
* @fileoverview added by tsickle
|
2759
|
-
* Generated from: index.ts
|
2760
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2761
|
-
*/
|
2762
|
-
|
2763
|
-
/**
|
2764
|
-
* @fileoverview added by tsickle
|
2765
|
-
* Generated from: covalent-core-common.ts
|
2766
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
2270
|
+
* Generated bundle index. Do not edit.
|
2767
2271
|
*/
|
2768
2272
|
|
2769
|
-
export { CovalentCommonModule, CovalentValidators, TdAutoTrimDirective, TdBytesPipe, TdDecimalBytesPipe, TdDigitsPipe, TdFullscreenDirective, TdTimeAgoPipe, TdTimeDifferencePipe, TdTimeUntilPipe, TdTruncatePipe, convertCSVToJSON, convertObjectsToCSV, copyToClipboard, downloadCSV, downloadFile, downloadJSON, downloadObjectsToCSV, downloadObjectsToJSON, formatJSON, mixinControlValueAccessor, mixinDisableRipple, mixinDisabled, readFile, tdBounceAnimation, tdCollapseAnimation, tdFadeInOutAnimation, tdFlashAnimation, tdHeadshakeAnimation, tdJelloAnimation, tdPulseAnimation, tdRotateAnimation
|
2770
|
-
//# sourceMappingURL=covalent-core-common.
|
2273
|
+
export { CovalentCommonModule, CovalentValidators, TdAutoTrimDirective, TdBytesPipe, TdDecimalBytesPipe, TdDigitsPipe, TdFullscreenDirective, TdTimeAgoPipe, TdTimeDifferencePipe, TdTimeUntilPipe, TdTruncatePipe, convertCSVToJSON, convertObjectsToCSV, copyToClipboard, downloadCSV, downloadFile, downloadJSON, downloadObjectsToCSV, downloadObjectsToJSON, formatJSON, mixinControlValueAccessor, mixinDisableRipple, mixinDisabled, readFile, tdBounceAnimation, tdCollapseAnimation, tdFadeInOutAnimation, tdFlashAnimation, tdHeadshakeAnimation, tdJelloAnimation, tdPulseAnimation, tdRotateAnimation };
|
2274
|
+
//# sourceMappingURL=covalent-core-common.mjs.map
|