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