@covalent/core 4.0.0-beta.4 → 4.1.0-develop.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/breadcrumbs/README.md +21 -17
- package/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +3 -1
- package/breadcrumbs/breadcrumbs.component.d.ts +3 -4
- package/breadcrumbs/covalent-core-breadcrumbs.d.ts +1 -1
- package/breadcrumbs/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/README.md +3 -0
- package/common/_common-theme.scss +1 -1
- package/common/behaviors/disable-ripple.mixin.d.ts +1 -1
- package/common/behaviors/disabled.mixin.d.ts +1 -1
- package/common/covalent-core-common.d.ts +1 -1
- package/common/material-icons.css +1 -111
- package/common/material-icons.css.map +1 -1
- package/common/pipes/truncate/truncate.pipe.d.ts +1 -1
- package/common/platform.css +1 -16819
- package/common/platform.css.map +1 -1
- package/common/{public-api.d.ts → public_api.d.ts} +0 -0
- package/common/styles/_elevation.scss +7 -2
- package/common/styles/_typography-functions.scss +10 -2
- package/common/styles/_variables.scss +2 -1
- package/common/styles/core/_button.scss +35 -5
- package/common/styles/core/_card.scss +11 -6
- package/common/styles/core/_whiteframe.scss +16 -8
- package/common/styles/font/README.md +4 -2
- package/covalent-core.d.ts +1 -1
- package/dialogs/README.md +38 -30
- package/dialogs/alert-dialog/alert-dialog.component.d.ts +3 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -2
- package/dialogs/covalent-core-dialogs.d.ts +1 -1
- package/dialogs/dialog.component.d.ts +4 -4
- package/dialogs/dialogs.module.d.ts +1 -1
- package/dialogs/prompt-dialog/prompt-dialog.component.d.ts +7 -6
- package/dialogs/{public-api.d.ts → public_api.d.ts} +0 -0
- package/dialogs/src/README.md +223 -0
- package/dialogs/window-dialog/window-dialog.component.d.ts +5 -5
- package/dynamic-menu/README.md +6 -6
- package/dynamic-menu/covalent-core-dynamic-menu.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.d.ts +1 -1
- package/dynamic-menu/dynamic-menu.component.d.ts +1 -22
- package/dynamic-menu/dynamic-menu.menu.d.ts +22 -0
- package/dynamic-menu/public_api.d.ts +1 -0
- package/esm2020/breadcrumbs/breadcrumb/breadcrumb.component.mjs +21 -37
- package/esm2020/breadcrumbs/breadcrumbs.component.mjs +25 -34
- package/esm2020/breadcrumbs/breadcrumbs.module.mjs +12 -13
- package/esm2020/breadcrumbs/covalent-core-breadcrumbs.mjs +2 -2
- package/esm2020/breadcrumbs/public_api.mjs +4 -0
- package/esm2020/common/animations/bounce/bounce.animation.mjs +1 -1
- package/esm2020/common/animations/collapse/collapse.animation.mjs +1 -1
- package/esm2020/common/animations/common/interfaces.mjs +1 -1
- package/esm2020/common/animations/fade/fadeInOut.animation.mjs +1 -1
- package/esm2020/common/animations/flash/flash.animation.mjs +1 -1
- package/esm2020/common/animations/headshake/headshake.animation.mjs +17 -5
- package/esm2020/common/animations/jello/jello.animation.mjs +29 -8
- package/esm2020/common/animations/pulse/pulse.animation.mjs +1 -1
- package/esm2020/common/animations/rotate/rotate.animation.mjs +7 -2
- package/esm2020/common/behaviors/control-value-accesor.mixin.mjs +4 -2
- package/esm2020/common/behaviors/disable-ripple.mixin.mjs +1 -1
- package/esm2020/common/behaviors/disabled.mixin.mjs +1 -1
- package/esm2020/common/common.module.mjs +14 -15
- package/esm2020/common/covalent-core-common.mjs +2 -2
- package/esm2020/common/directives/fullscreen/fullscreen.directive.mjs +41 -41
- package/esm2020/common/forms/auto-trim/auto-trim.directive.mjs +19 -19
- package/esm2020/common/forms/validators/validators.mjs +6 -6
- package/esm2020/common/functions/clipboard.mjs +1 -1
- package/esm2020/common/functions/convert.mjs +1 -1
- package/esm2020/common/functions/download.mjs +1 -1
- package/esm2020/common/functions/file.mjs +1 -1
- package/esm2020/common/pipes/bytes/bytes.pipe.mjs +21 -11
- package/esm2020/common/pipes/decimal-bytes/decimal-bytes.pipe.mjs +21 -11
- package/esm2020/common/pipes/digits/digits.pipe.mjs +13 -13
- package/esm2020/common/pipes/time-ago/time-ago.pipe.mjs +9 -9
- package/esm2020/common/pipes/time-difference/time-difference.pipe.mjs +9 -9
- package/esm2020/common/pipes/time-until/time-until.pipe.mjs +9 -9
- package/esm2020/common/pipes/truncate/truncate.pipe.mjs +10 -10
- package/esm2020/common/public_api.mjs +39 -0
- package/esm2020/common/services/icon.service.mjs +6 -6
- package/esm2020/common/services/router-path.service.mjs +6 -6
- package/esm2020/covalent-core.mjs +2 -2
- package/esm2020/dialogs/alert-dialog/alert-dialog.component.mjs +9 -40
- package/esm2020/dialogs/confirm-dialog/confirm-dialog.component.mjs +9 -49
- package/esm2020/dialogs/covalent-core-dialogs.mjs +2 -2
- package/esm2020/dialogs/dialog.component.mjs +35 -76
- package/esm2020/dialogs/dialogs.module.mjs +39 -36
- package/esm2020/dialogs/prompt-dialog/prompt-dialog.component.mjs +24 -79
- package/esm2020/dialogs/public_api.mjs +9 -0
- package/esm2020/dialogs/resizable-draggable-dialog/resizable-draggable-dialog.mjs +27 -10
- package/esm2020/dialogs/services/dialog.service.mjs +16 -13
- package/esm2020/dialogs/window-dialog/window-dialog.component.mjs +24 -55
- package/esm2020/dynamic-menu/covalent-core-dynamic-menu.mjs +2 -2
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.mjs +19 -136
- package/esm2020/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.mjs +14 -103
- package/esm2020/dynamic-menu/dynamic-menu.component.mjs +18 -101
- package/esm2020/dynamic-menu/dynamic-menu.menu.mjs +2 -0
- package/esm2020/dynamic-menu/dynamic-menu.module.mjs +44 -19
- package/esm2020/dynamic-menu/public_api.mjs +2 -1
- package/esm2020/file/covalent-core-file.mjs +2 -2
- package/esm2020/file/directives/file-drop.directive.mjs +62 -67
- package/esm2020/file/directives/file-select.directive.mjs +32 -31
- package/esm2020/file/file-input/file-input.component.mjs +41 -68
- package/esm2020/file/file-upload/file-upload.component.mjs +76 -112
- package/esm2020/file/file.module.mjs +32 -17
- package/esm2020/file/public_api.mjs +7 -0
- package/esm2020/file/services/file.service.mjs +13 -11
- package/esm2020/json-formatter/collapse.animation.mjs +51 -0
- package/esm2020/json-formatter/covalent-core-json-formatter.mjs +2 -2
- package/esm2020/json-formatter/json-formatter.component.mjs +38 -123
- package/esm2020/json-formatter/json-formatter.module.mjs +12 -13
- package/esm2020/json-formatter/public_api.mjs +3 -0
- package/esm2020/layout/covalent-core-layout.mjs +2 -2
- package/esm2020/layout/layout-card-over/layout-card-over.component.mjs +17 -64
- package/esm2020/layout/layout-footer/layout-footer.component.mjs +9 -14
- package/esm2020/layout/layout-manage-list/layout-manage-list.component.mjs +22 -51
- package/esm2020/layout/layout-manage-list/layout-manage-list.directives.mjs +47 -53
- package/esm2020/layout/layout-nav/layout-nav.component.mjs +22 -84
- package/esm2020/layout/layout-nav-list/layout-nav-list.component.mjs +37 -124
- package/esm2020/layout/layout-nav-list/layout-nav-list.directives.mjs +47 -53
- package/esm2020/layout/layout-toggle.class.mjs +12 -15
- package/esm2020/layout/layout.component.mjs +22 -43
- package/esm2020/layout/layout.directives.mjs +48 -50
- package/esm2020/layout/layout.module.mjs +34 -35
- package/esm2020/layout/navigation-drawer/navigation-drawer.component.mjs +56 -201
- package/esm2020/layout/public_api.mjs +13 -0
- package/esm2020/menu/covalent-core-menu.mjs +2 -2
- package/esm2020/menu/menu.component.mjs +7 -18
- package/esm2020/menu/menu.module.mjs +12 -13
- package/esm2020/menu/public_api.mjs +3 -0
- package/esm2020/message/collapse.animation.mjs +51 -0
- package/esm2020/message/covalent-core-message.mjs +2 -2
- package/esm2020/message/message.component.mjs +44 -102
- package/esm2020/message/message.module.mjs +19 -15
- package/esm2020/message/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/search/covalent-core-search.mjs +2 -2
- package/esm2020/search/public_api.mjs +4 -0
- package/esm2020/search/search-box/search-box.component.mjs +97 -123
- package/esm2020/search/search-input/search-input.component.mjs +116 -153
- package/esm2020/search/search.module.mjs +28 -13
- package/esm2020/side-sheet/covalent-core-side-sheet.mjs +2 -2
- package/esm2020/side-sheet/public_api.mjs +6 -0
- package/esm2020/side-sheet/side-sheet-container.mjs +89 -57
- package/esm2020/side-sheet/side-sheet-ref.mjs +2 -2
- package/esm2020/side-sheet/side-sheet.animation.mjs +2 -2
- package/esm2020/side-sheet/side-sheet.config.mjs +1 -1
- package/esm2020/side-sheet/side-sheet.content-directives.mjs +109 -86
- package/esm2020/side-sheet/side-sheet.mjs +44 -31
- package/esm2020/side-sheet/side-sheet.module.mjs +37 -38
- package/esm2020/user-profile/covalent-core-user-profile.mjs +2 -2
- package/esm2020/user-profile/public_api.mjs +1 -1
- package/esm2020/user-profile/user-profile-menu/user-profile-menu.component.mjs +13 -64
- package/esm2020/user-profile/user-profile.component.mjs +13 -35
- package/esm2020/user-profile/user-profile.module.mjs +32 -14
- package/fesm2015/covalent-core-breadcrumbs.mjs +40 -85
- package/fesm2015/covalent-core-breadcrumbs.mjs.map +1 -1
- package/fesm2015/covalent-core-common.mjs +170 -140
- package/fesm2015/covalent-core-common.mjs.map +1 -1
- package/fesm2015/covalent-core-dialogs.mjs +133 -363
- package/fesm2015/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2015/covalent-core-dynamic-menu.mjs +73 -425
- package/fesm2015/covalent-core-dynamic-menu.mjs.map +1 -1
- package/fesm2015/covalent-core-file.mjs +174 -261
- package/fesm2015/covalent-core-file.mjs.map +1 -1
- package/fesm2015/covalent-core-json-formatter.mjs +93 -148
- package/fesm2015/covalent-core-json-formatter.mjs.map +1 -1
- package/fesm2015/covalent-core-layout.mjs +194 -747
- package/fesm2015/covalent-core-layout.mjs.map +1 -1
- package/fesm2015/covalent-core-menu.mjs +10 -28
- package/fesm2015/covalent-core-menu.mjs.map +1 -1
- package/fesm2015/covalent-core-message.mjs +79 -104
- package/fesm2015/covalent-core-message.mjs.map +1 -1
- package/fesm2015/covalent-core-search.mjs +147 -227
- package/fesm2015/covalent-core-search.mjs.map +1 -1
- package/fesm2015/covalent-core-side-sheet.mjs +202 -173
- package/fesm2015/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2015/covalent-core-user-profile.mjs +38 -114
- package/fesm2015/covalent-core-user-profile.mjs.map +1 -1
- package/fesm2015/covalent-core.mjs.map +1 -1
- package/fesm2020/covalent-core-breadcrumbs.mjs +54 -80
- package/fesm2020/covalent-core-breadcrumbs.mjs.map +1 -1
- package/fesm2020/covalent-core-common.mjs +224 -165
- package/fesm2020/covalent-core-common.mjs.map +1 -1
- package/fesm2020/covalent-core-dialogs.mjs +168 -343
- package/fesm2020/covalent-core-dialogs.mjs.map +1 -1
- package/fesm2020/covalent-core-dynamic-menu.mjs +89 -354
- package/fesm2020/covalent-core-dynamic-menu.mjs.map +1 -1
- package/fesm2020/covalent-core-file.mjs +245 -292
- package/fesm2020/covalent-core-file.mjs.map +1 -1
- package/fesm2020/covalent-core-json-formatter.mjs +97 -133
- package/fesm2020/covalent-core-json-formatter.mjs.map +1 -1
- package/fesm2020/covalent-core-layout.mjs +353 -767
- package/fesm2020/covalent-core-layout.mjs.map +1 -1
- package/fesm2020/covalent-core-menu.mjs +17 -29
- package/fesm2020/covalent-core-menu.mjs.map +1 -1
- package/fesm2020/covalent-core-message.mjs +110 -114
- package/fesm2020/covalent-core-message.mjs.map +1 -1
- package/fesm2020/covalent-core-search.mjs +233 -281
- package/fesm2020/covalent-core-search.mjs.map +1 -1
- package/fesm2020/covalent-core-side-sheet.mjs +267 -200
- package/fesm2020/covalent-core-side-sheet.mjs.map +1 -1
- package/fesm2020/covalent-core-user-profile.mjs +54 -109
- package/fesm2020/covalent-core-user-profile.mjs.map +1 -1
- package/fesm2020/covalent-core.mjs.map +1 -1
- package/file/_file-theme.scss +2 -1
- package/file/covalent-core-file.d.ts +1 -1
- package/file/directives/file-drop.directive.d.ts +13 -20
- package/file/directives/file-select.directive.d.ts +2 -2
- package/file/file-input/file-input.component.d.ts +7 -7
- package/file/file-upload/file-upload.component.d.ts +16 -9
- package/file/{public-api.d.ts → public_api.d.ts} +0 -0
- package/file/{file-input → src/file-input}/README.md +46 -37
- package/file/{file-upload → src/file-upload}/README.md +36 -27
- package/json-formatter/README.md +8 -8
- package/json-formatter/collapse.animation.d.ts +24 -0
- package/json-formatter/covalent-core-json-formatter.d.ts +1 -1
- package/json-formatter/json-formatter.component.d.ts +4 -4
- package/json-formatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/layout/README.md +48 -50
- package/layout/covalent-core-layout.d.ts +1 -1
- package/layout/layout-card-over/layout-card-over.component.d.ts +3 -3
- package/layout/layout-footer/layout-footer.component.d.ts +3 -3
- package/layout/layout-manage-list/layout-manage-list.component.d.ts +4 -4
- package/layout/layout-manage-list/layout-manage-list.directives.d.ts +5 -5
- package/layout/layout-nav/layout-nav.component.d.ts +5 -5
- package/layout/layout-nav-list/layout-nav-list.component.d.ts +9 -9
- package/layout/layout-nav-list/layout-nav-list.directives.d.ts +5 -5
- package/layout/layout-toggle.class.d.ts +1 -1
- package/layout/layout.component.d.ts +4 -4
- package/layout/layout.directives.d.ts +2 -2
- package/layout/navigation-drawer/navigation-drawer.component.d.ts +12 -12
- package/layout/{public-api.d.ts → public_api.d.ts} +0 -0
- package/layout/{layout-card-over → src/layout-card-over}/README.md +19 -17
- package/layout/{layout-manage-list → src/layout-manage-list}/README.md +24 -28
- package/layout/src/layout-nav/README.md +50 -0
- package/layout/{layout-nav-list → src/layout-nav-list}/README.md +44 -40
- package/menu/covalent-core-menu.d.ts +1 -1
- package/menu/{public-api.d.ts → public_api.d.ts} +0 -0
- package/message/README.md +26 -18
- package/message/collapse.animation.d.ts +24 -0
- package/message/covalent-core-message.d.ts +1 -1
- package/message/message.component.d.ts +4 -4
- package/message/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +36 -55
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/search/README.md +74 -73
- package/search/covalent-core-search.d.ts +1 -1
- package/search/{public-api.d.ts → public_api.d.ts} +0 -0
- package/search/search-box/search-box.component.d.ts +10 -6
- package/search/search-input/search-input.component.d.ts +10 -6
- package/search/src/search-box/README.md +73 -0
- package/search/src/search-input/README.md +74 -0
- package/side-sheet/README.md +3 -5
- package/side-sheet/{side-sheet.theme.scss → _side-sheet.theme.scss} +0 -0
- package/side-sheet/covalent-core-side-sheet.d.ts +1 -1
- package/side-sheet/{public-api.d.ts → public_api.d.ts} +0 -0
- package/side-sheet/side-sheet-container.d.ts +18 -7
- package/side-sheet/side-sheet.content-directives.d.ts +22 -16
- package/side-sheet/side-sheet.d.ts +2 -2
- package/side-sheet/side-sheet.module.d.ts +1 -1
- package/theming/prebuilt/blue-grey-deep-orange.css +1 -2815
- package/theming/prebuilt/blue-grey-deep-orange.css.map +1 -1
- package/theming/prebuilt/blue-orange.css +1 -2815
- package/theming/prebuilt/blue-orange.css.map +1 -1
- package/theming/prebuilt/indigo-pink.css +1 -2815
- package/theming/prebuilt/indigo-pink.css.map +1 -1
- package/theming/prebuilt/orange-light-blue.css +1 -2815
- package/theming/prebuilt/orange-light-blue.css.map +1 -1
- package/theming/prebuilt/teal-orange.css +1 -2815
- package/theming/prebuilt/teal-orange.css.map +1 -1
- package/user-profile/README.md +5 -5
- package/user-profile/covalent-core-user-profile.d.ts +1 -1
- package/user-profile/user-profile-menu/user-profile-menu.component.d.ts +2 -2
- package/user-profile/user-profile.component.d.ts +2 -2
- package/breadcrumbs/breadcrumb/breadcrumb.component.scss +0 -25
- package/breadcrumbs/breadcrumbs.component.scss +0 -8
- package/breadcrumbs/index.d.ts +0 -1
- package/common/index.d.ts +0 -1
- package/common/material-icons.scss +0 -3
- package/common/platform.scss +0 -7
- package/dialogs/alert-dialog/alert-dialog.component.scss +0 -3
- package/dialogs/confirm-dialog/confirm-dialog.component.scss +0 -3
- package/dialogs/dialog.component.scss +0 -49
- package/dialogs/index.d.ts +0 -1
- package/dialogs/prompt-dialog/prompt-dialog.component.scss +0 -16
- package/dialogs/window-dialog/window-dialog.component.scss +0 -31
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-item.component.scss +0 -7
- package/dynamic-menu/dynamic-menu-item/dynamic-menu-link/dynamic-menu-link.component.scss +0 -13
- package/dynamic-menu/dynamic-menu.component.scss +0 -0
- package/dynamic-menu/index.d.ts +0 -1
- package/esm2020/breadcrumbs/index.mjs +0 -2
- package/esm2020/breadcrumbs/public-api.mjs +0 -4
- package/esm2020/common/index.mjs +0 -2
- package/esm2020/common/public-api.mjs +0 -39
- package/esm2020/dialogs/index.mjs +0 -2
- package/esm2020/dialogs/public-api.mjs +0 -9
- package/esm2020/dynamic-menu/index.mjs +0 -2
- package/esm2020/file/index.mjs +0 -2
- package/esm2020/file/public-api.mjs +0 -7
- package/esm2020/index.mjs +0 -2
- package/esm2020/json-formatter/index.mjs +0 -2
- package/esm2020/json-formatter/public-api.mjs +0 -3
- package/esm2020/layout/index.mjs +0 -2
- package/esm2020/layout/public-api.mjs +0 -13
- package/esm2020/menu/index.mjs +0 -2
- package/esm2020/menu/public-api.mjs +0 -3
- package/esm2020/message/index.mjs +0 -2
- package/esm2020/message/public-api.mjs +0 -3
- package/esm2020/search/index.mjs +0 -2
- package/esm2020/search/public-api.mjs +0 -4
- package/esm2020/side-sheet/index.mjs +0 -2
- package/esm2020/side-sheet/public-api.mjs +0 -6
- package/esm2020/user-profile/index.mjs +0 -2
- package/file/file-input/file-input.component.scss +0 -22
- package/file/file-upload/file-upload.component.scss +0 -34
- package/file/index.d.ts +0 -1
- package/json-formatter/index.d.ts +0 -1
- package/json-formatter/json-formatter.component.scss +0 -74
- package/layout/index.d.ts +0 -1
- package/layout/layout-card-over/layout-card-over.component.scss +0 -45
- package/layout/layout-footer/layout-footer.component.scss +0 -4
- package/layout/layout-manage-list/layout-manage-list.component.scss +0 -82
- package/layout/layout-nav/README.md +0 -46
- package/layout/layout-nav/layout-nav.component.scss +0 -54
- package/layout/layout-nav-list/layout-nav-list.component.scss +0 -115
- package/layout/layout.component.scss +0 -16
- package/layout/navigation-drawer/navigation-drawer.component.scss +0 -81
- package/menu/index.d.ts +0 -1
- package/menu/menu.component.scss +0 -51
- package/message/index.d.ts +0 -1
- package/message/message.component.scss +0 -32
- package/schematics/README.md +0 -66
- package/schematics/ng-add/files/theme.scss +0 -64
- package/search/index.d.ts +0 -1
- package/search/search-box/README.md +0 -62
- package/search/search-box/search-box.component.scss +0 -37
- package/search/search-input/README.md +0 -65
- package/search/search-input/search-input.component.scss +0 -75
- package/side-sheet/index.d.ts +0 -1
- package/side-sheet/side-sheet.scss +0 -68
- package/theming/prebuilt/blue-grey-deep-orange.scss +0 -20
- package/theming/prebuilt/blue-orange.scss +0 -20
- package/theming/prebuilt/indigo-pink.scss +0 -20
- package/theming/prebuilt/orange-light-blue.scss +0 -20
- package/theming/prebuilt/teal-orange.scss +0 -20
- package/user-profile/index.d.ts +0 -1
- package/user-profile/user-profile-menu/user-profile-menu.component.scss +0 -41
@@ -1,67 +1,49 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { Directive, Component, ContentChildren, ViewChild, Injectable, Inject, EventEmitter, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
|
3
|
-
import * as
|
3
|
+
import * as i4 from '@angular/common';
|
4
4
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
5
|
-
import * as
|
5
|
+
import * as i6 from '@angular/forms';
|
6
6
|
import { FormsModule } from '@angular/forms';
|
7
7
|
import * as i1 from '@angular/material/dialog';
|
8
8
|
import { MatDialogConfig, MatDialogModule } from '@angular/material/dialog';
|
9
|
-
import * as
|
9
|
+
import * as i7 from '@angular/material/input';
|
10
10
|
import { MatInputModule } from '@angular/material/input';
|
11
|
-
import * as
|
11
|
+
import * as i3 from '@angular/material/button';
|
12
12
|
import { MatButtonModule } from '@angular/material/button';
|
13
|
-
import * as
|
13
|
+
import * as i3$1 from '@angular/material/form-field';
|
14
14
|
import * as i2 from '@angular/cdk/drag-drop';
|
15
15
|
import { Subject, fromEvent, merge } from 'rxjs';
|
16
16
|
import * as i1$1 from '@angular/material/toolbar';
|
17
17
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
18
|
-
import * as i3$
|
19
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
20
|
-
import * as i4$2 from '@angular/material/icon';
|
18
|
+
import * as i3$2 from '@angular/material/icon';
|
21
19
|
import { MatIconModule } from '@angular/material/icon';
|
20
|
+
import * as i4$1 from '@angular/material/tooltip';
|
21
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
22
22
|
|
23
|
-
function TdDialogComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
|
24
|
-
i0.ɵɵelementStart(0, "h3", 4);
|
25
|
-
i0.ɵɵprojection(1);
|
26
|
-
i0.ɵɵelementEnd();
|
27
|
-
} }
|
28
|
-
function TdDialogComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
29
|
-
i0.ɵɵelementStart(0, "div", 5);
|
30
|
-
i0.ɵɵprojection(1, 1);
|
31
|
-
i0.ɵɵelementEnd();
|
32
|
-
} }
|
33
|
-
function TdDialogComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
34
|
-
i0.ɵɵelementStart(0, "div", 6);
|
35
|
-
i0.ɵɵelement(1, "span", 7);
|
36
|
-
i0.ɵɵprojection(2, 2);
|
37
|
-
i0.ɵɵelementEnd();
|
38
|
-
} }
|
39
|
-
const _c0$2 = [[["td-dialog-title"]], [["td-dialog-content"]], [["td-dialog-actions"]]];
|
40
|
-
const _c1 = ["td-dialog-title", "td-dialog-content", "td-dialog-actions"];
|
41
23
|
class TdDialogTitleDirective {
|
42
24
|
}
|
43
|
-
|
44
|
-
|
45
|
-
(
|
46
|
-
|
47
|
-
|
48
|
-
|
25
|
+
TdDialogTitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
26
|
+
TdDialogTitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdDialogTitleDirective, selector: "[tdDialogTitle]", ngImport: i0 });
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogTitleDirective, decorators: [{
|
28
|
+
type: Directive,
|
29
|
+
args: [{ selector: '[tdDialogTitle]' }]
|
30
|
+
}] });
|
49
31
|
class TdDialogContentDirective {
|
50
32
|
}
|
51
|
-
|
52
|
-
|
53
|
-
(
|
54
|
-
|
55
|
-
|
56
|
-
|
33
|
+
TdDialogContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
34
|
+
TdDialogContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdDialogContentDirective, selector: "[tdDialogContent]", ngImport: i0 });
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogContentDirective, decorators: [{
|
36
|
+
type: Directive,
|
37
|
+
args: [{ selector: '[tdDialogContent]' }]
|
38
|
+
}] });
|
57
39
|
class TdDialogActionsDirective {
|
58
40
|
}
|
59
|
-
|
60
|
-
|
61
|
-
(
|
62
|
-
|
63
|
-
|
64
|
-
|
41
|
+
TdDialogActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
42
|
+
TdDialogActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdDialogActionsDirective, selector: "[tdDialogActions]", ngImport: i0 });
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogActionsDirective, decorators: [{
|
44
|
+
type: Directive,
|
45
|
+
args: [{ selector: '[tdDialogActions]' }]
|
46
|
+
}] });
|
65
47
|
class TdDialogComponent {
|
66
48
|
ngAfterContentInit() {
|
67
49
|
if (this.dialogTitle.length > 1) {
|
@@ -75,54 +57,22 @@ class TdDialogComponent {
|
|
75
57
|
}
|
76
58
|
}
|
77
59
|
}
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
i0.ɵɵtemplate(3, TdDialogComponent_div_3_Template, 3, 0, "div", 3);
|
94
|
-
i0.ɵɵelementEnd();
|
95
|
-
} if (rf & 2) {
|
96
|
-
i0.ɵɵadvance(1);
|
97
|
-
i0.ɵɵproperty("ngIf", ctx.dialogTitle.length > 0);
|
98
|
-
i0.ɵɵadvance(1);
|
99
|
-
i0.ɵɵproperty("ngIf", ctx.dialogContent.length > 0);
|
100
|
-
i0.ɵɵadvance(1);
|
101
|
-
i0.ɵɵproperty("ngIf", ctx.dialogActions.length > 0);
|
102
|
-
} }, directives: [i3.NgIf], styles: [".td-dialog-title[_ngcontent-%COMP%]{margin-top:0;margin-bottom:20px}.td-dialog-content[_ngcontent-%COMP%]{margin-bottom:16px}.td-dialog-actions[_ngcontent-%COMP%]{position:relative;top:16px;left:16px} [dir=rtl] .td-dialog-actions{right:16px;left:auto}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .td-dialog-actions[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .td-dialog-actions[_ngcontent-%COMP%] .td-dialog-spacer[_ngcontent-%COMP%]{-ms-flex:1;flex:1}[_nghost-%COMP%] .td-dialog-actions[_ngcontent-%COMP%] button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] [_nghost-%COMP%] .td-dialog-actions[_ngcontent-%COMP%] button{margin-right:8px;margin-left:inherit}"] });
|
103
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdDialogComponent, [{
|
104
|
-
type: Component,
|
105
|
-
args: [{ selector: 'td-dialog', 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", styles: [".td-dialog-title{margin-top:0;margin-bottom:20px}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{position:relative;top:16px;left:16px}::ng-deep [dir=rtl] .td-dialog-actions{right:16px;left:auto}:host{display:block}:host .td-dialog-actions{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}:host .td-dialog-actions .td-dialog-spacer{-ms-flex:1;flex:1}:host .td-dialog-actions ::ng-deep button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-right:8px;margin-left:inherit}\n"] }]
|
106
|
-
}], null, { dialogTitle: [{
|
107
|
-
type: ContentChildren,
|
108
|
-
args: [TdDialogTitleDirective, { descendants: true }]
|
109
|
-
}], dialogContent: [{
|
110
|
-
type: ContentChildren,
|
111
|
-
args: [TdDialogContentDirective, { descendants: true }]
|
112
|
-
}], dialogActions: [{
|
113
|
-
type: ContentChildren,
|
114
|
-
args: [TdDialogActionsDirective, { descendants: true }]
|
115
|
-
}] }); })();
|
60
|
+
TdDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
61
|
+
TdDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdDialogComponent, selector: "td-dialog", queries: [{ propertyName: "dialogTitle", predicate: TdDialogTitleDirective, descendants: true }, { propertyName: "dialogContent", predicate: TdDialogContentDirective, descendants: true }, { propertyName: "dialogActions", predicate: TdDialogActionsDirective, descendants: true }], ngImport: i0, template: "<div class=\"td-dialog-wrapper\">\n <h3 class=\"td-dialog-title\" *ngIf=\"dialogTitle.length > 0\">\n <ng-content select=\"[tdDialogTitle]\"></ng-content>\n </h3>\n <div class=\"td-dialog-content\" *ngIf=\"dialogContent.length > 0\">\n <ng-content select=\"[tdDialogContent]\"></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=\"[tdDialogActions]\"></ng-content>\n </div>\n</div>\n", styles: [".td-dialog-title{margin-top:0;margin-bottom:20px}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{position:relative;top:16px;left:16px}::ng-deep [dir=rtl] .td-dialog-actions{right:16px;left:auto}:host{display:block}:host .td-dialog-actions{flex-direction:row;box-sizing:border-box;display:flex}:host .td-dialog-actions .td-dialog-spacer{flex:1}:host .td-dialog-actions ::ng-deep button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-right:8px;margin-left:inherit}\n"], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogComponent, decorators: [{
|
63
|
+
type: Component,
|
64
|
+
args: [{ selector: 'td-dialog', template: "<div class=\"td-dialog-wrapper\">\n <h3 class=\"td-dialog-title\" *ngIf=\"dialogTitle.length > 0\">\n <ng-content select=\"[tdDialogTitle]\"></ng-content>\n </h3>\n <div class=\"td-dialog-content\" *ngIf=\"dialogContent.length > 0\">\n <ng-content select=\"[tdDialogContent]\"></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=\"[tdDialogActions]\"></ng-content>\n </div>\n</div>\n", styles: [".td-dialog-title{margin-top:0;margin-bottom:20px}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{position:relative;top:16px;left:16px}::ng-deep [dir=rtl] .td-dialog-actions{right:16px;left:auto}:host{display:block}:host .td-dialog-actions{flex-direction:row;box-sizing:border-box;display:flex}:host .td-dialog-actions .td-dialog-spacer{flex:1}:host .td-dialog-actions ::ng-deep button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-right:8px;margin-left:inherit}\n"] }]
|
65
|
+
}], propDecorators: { dialogTitle: [{
|
66
|
+
type: ContentChildren,
|
67
|
+
args: [TdDialogTitleDirective, { descendants: true }]
|
68
|
+
}], dialogContent: [{
|
69
|
+
type: ContentChildren,
|
70
|
+
args: [TdDialogContentDirective, { descendants: true }]
|
71
|
+
}], dialogActions: [{
|
72
|
+
type: ContentChildren,
|
73
|
+
args: [TdDialogActionsDirective, { descendants: true }]
|
74
|
+
}] } });
|
116
75
|
|
117
|
-
function TdAlertDialogComponent_td_dialog_title_1_Template(rf, ctx) { if (rf & 1) {
|
118
|
-
i0.ɵɵelementStart(0, "td-dialog-title");
|
119
|
-
i0.ɵɵtext(1);
|
120
|
-
i0.ɵɵelementEnd();
|
121
|
-
} if (rf & 2) {
|
122
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
123
|
-
i0.ɵɵadvance(1);
|
124
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
|
125
|
-
} }
|
126
76
|
class TdAlertDialogComponent {
|
127
77
|
constructor(_dialogRef) {
|
128
78
|
this._dialogRef = _dialogRef;
|
@@ -132,44 +82,13 @@ class TdAlertDialogComponent {
|
|
132
82
|
this._dialogRef.close();
|
133
83
|
}
|
134
84
|
}
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
i0.ɵɵtext(4);
|
142
|
-
i0.ɵɵelementEnd();
|
143
|
-
i0.ɵɵelementEnd();
|
144
|
-
i0.ɵɵelementStart(5, "td-dialog-actions");
|
145
|
-
i0.ɵɵelementStart(6, "button", 2);
|
146
|
-
i0.ɵɵlistener("click", function TdAlertDialogComponent_Template_button_click_6_listener() { return ctx.close(); });
|
147
|
-
i0.ɵɵtext(7);
|
148
|
-
i0.ɵɵelementEnd();
|
149
|
-
i0.ɵɵelementEnd();
|
150
|
-
i0.ɵɵelementEnd();
|
151
|
-
} if (rf & 2) {
|
152
|
-
i0.ɵɵadvance(1);
|
153
|
-
i0.ɵɵproperty("ngIf", ctx.title);
|
154
|
-
i0.ɵɵadvance(3);
|
155
|
-
i0.ɵɵtextInterpolate(ctx.message);
|
156
|
-
i0.ɵɵadvance(3);
|
157
|
-
i0.ɵɵtextInterpolate(ctx.closeButton);
|
158
|
-
} }, directives: [TdDialogComponent, i3.NgIf, TdDialogTitleDirective, TdDialogContentDirective, TdDialogActionsDirective, i4.MatButton], styles: [".td-dialog-message[_ngcontent-%COMP%]{word-break:break-word}"] });
|
159
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdAlertDialogComponent, [{
|
160
|
-
type: Component,
|
161
|
-
args: [{ selector: 'td-alert-dialog', 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", styles: [".td-dialog-message{word-break:break-word}\n"] }]
|
162
|
-
}], function () { return [{ type: i1.MatDialogRef }]; }, null); })();
|
85
|
+
TdAlertDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdAlertDialogComponent, deps: [{ token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
86
|
+
TdAlertDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdAlertDialogComponent, selector: "td-alert-dialog", ngImport: i0, template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </div>\n <div tdDialogActions>\n <button mat-button color=\"accent\" (click)=\"close()\">\n {{ closeButton }}\n </button>\n </div>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"], components: [{ type: TdDialogComponent, selector: "td-dialog" }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TdDialogTitleDirective, selector: "[tdDialogTitle]" }, { type: TdDialogContentDirective, selector: "[tdDialogContent]" }, { type: TdDialogActionsDirective, selector: "[tdDialogActions]" }] });
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdAlertDialogComponent, decorators: [{
|
88
|
+
type: Component,
|
89
|
+
args: [{ selector: 'td-alert-dialog', template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </div>\n <div tdDialogActions>\n <button mat-button color=\"accent\" (click)=\"close()\">\n {{ closeButton }}\n </button>\n </div>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"] }]
|
90
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }]; } });
|
163
91
|
|
164
|
-
function TdConfirmDialogComponent_td_dialog_title_1_Template(rf, ctx) { if (rf & 1) {
|
165
|
-
i0.ɵɵelementStart(0, "td-dialog-title");
|
166
|
-
i0.ɵɵtext(1);
|
167
|
-
i0.ɵɵelementEnd();
|
168
|
-
} if (rf & 2) {
|
169
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
170
|
-
i0.ɵɵadvance(1);
|
171
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
|
172
|
-
} }
|
173
92
|
class TdConfirmDialogComponent {
|
174
93
|
constructor(_dialogRef) {
|
175
94
|
this._dialogRef = _dialogRef;
|
@@ -184,65 +103,27 @@ class TdConfirmDialogComponent {
|
|
184
103
|
this._dialogRef.close(true);
|
185
104
|
}
|
186
105
|
}
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
i0.ɵɵelementStart(3, "span", 1);
|
194
|
-
i0.ɵɵtext(4);
|
195
|
-
i0.ɵɵelementEnd();
|
196
|
-
i0.ɵɵelementEnd();
|
197
|
-
i0.ɵɵelementStart(5, "td-dialog-actions");
|
198
|
-
i0.ɵɵelementStart(6, "button", 2, 3);
|
199
|
-
i0.ɵɵlistener("keydown.arrowright", function TdConfirmDialogComponent_Template_button_keydown_arrowright_6_listener() { i0.ɵɵrestoreView(_r3); const _r2 = i0.ɵɵreference(10); return _r2.focus(); })("click", function TdConfirmDialogComponent_Template_button_click_6_listener() { return ctx.cancel(); });
|
200
|
-
i0.ɵɵtext(8);
|
201
|
-
i0.ɵɵelementEnd();
|
202
|
-
i0.ɵɵelementStart(9, "button", 4, 5);
|
203
|
-
i0.ɵɵlistener("keydown.arrowleft", function TdConfirmDialogComponent_Template_button_keydown_arrowleft_9_listener() { i0.ɵɵrestoreView(_r3); const _r1 = i0.ɵɵreference(7); return _r1.focus(); })("click", function TdConfirmDialogComponent_Template_button_click_9_listener() { return ctx.accept(); });
|
204
|
-
i0.ɵɵtext(11);
|
205
|
-
i0.ɵɵelementEnd();
|
206
|
-
i0.ɵɵelementEnd();
|
207
|
-
i0.ɵɵelementEnd();
|
208
|
-
} if (rf & 2) {
|
209
|
-
i0.ɵɵadvance(1);
|
210
|
-
i0.ɵɵproperty("ngIf", ctx.title);
|
211
|
-
i0.ɵɵadvance(3);
|
212
|
-
i0.ɵɵtextInterpolate(ctx.message);
|
213
|
-
i0.ɵɵadvance(4);
|
214
|
-
i0.ɵɵtextInterpolate(ctx.cancelButton);
|
215
|
-
i0.ɵɵadvance(1);
|
216
|
-
i0.ɵɵproperty("color", ctx.isDestructive ? "warn" : "accent");
|
217
|
-
i0.ɵɵadvance(2);
|
218
|
-
i0.ɵɵtextInterpolate1(" ", ctx.acceptButton, " ");
|
219
|
-
} }, directives: [TdDialogComponent, i3.NgIf, TdDialogTitleDirective, TdDialogContentDirective, TdDialogActionsDirective, i4.MatButton], styles: [".td-dialog-message[_ngcontent-%COMP%]{word-break:break-word}"] });
|
220
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdConfirmDialogComponent, [{
|
221
|
-
type: Component,
|
222
|
-
args: [{ selector: 'td-confirm-dialog', 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", styles: [".td-dialog-message{word-break:break-word}\n"] }]
|
223
|
-
}], function () { return [{ type: i1.MatDialogRef }]; }, null); })();
|
106
|
+
TdConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
107
|
+
TdConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdConfirmDialogComponent, selector: "td-confirm-dialog", ngImport: i0, template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </div>\n <div tdDialogActions>\n <button\n mat-button\n #closeBtn\n (keydown.arrowright)=\"acceptBtn.focus()\"\n (click)=\"cancel()\"\n >\n {{ cancelButton }}\n </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 </div>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"], components: [{ type: TdDialogComponent, selector: "td-dialog" }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TdDialogTitleDirective, selector: "[tdDialogTitle]" }, { type: TdDialogContentDirective, selector: "[tdDialogContent]" }, { type: TdDialogActionsDirective, selector: "[tdDialogActions]" }] });
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdConfirmDialogComponent, decorators: [{
|
109
|
+
type: Component,
|
110
|
+
args: [{ selector: 'td-confirm-dialog', template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\n <span class=\"td-dialog-message\">{{ message }}</span>\n </div>\n <div tdDialogActions>\n <button\n mat-button\n #closeBtn\n (keydown.arrowright)=\"acceptBtn.focus()\"\n (click)=\"cancel()\"\n >\n {{ cancelButton }}\n </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 </div>\n</td-dialog>\n", styles: [".td-dialog-message{word-break:break-word}\n"] }]
|
111
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }]; } });
|
224
112
|
|
225
|
-
const _c0$1 = ["input"];
|
226
|
-
function TdPromptDialogComponent_td_dialog_title_1_Template(rf, ctx) { if (rf & 1) {
|
227
|
-
i0.ɵɵelementStart(0, "td-dialog-title");
|
228
|
-
i0.ɵɵtext(1);
|
229
|
-
i0.ɵɵelementEnd();
|
230
|
-
} if (rf & 2) {
|
231
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
232
|
-
i0.ɵɵadvance(1);
|
233
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
|
234
|
-
} }
|
235
113
|
class TdPromptDialogComponent {
|
236
|
-
constructor(_dialogRef) {
|
114
|
+
constructor(_ngZone, _dialogRef) {
|
115
|
+
this._ngZone = _ngZone;
|
237
116
|
this._dialogRef = _dialogRef;
|
238
117
|
this.cancelButton = 'CANCEL';
|
239
118
|
this.acceptButton = 'ACCEPT';
|
240
119
|
}
|
241
120
|
ngAfterViewInit() {
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
121
|
+
this._ngZone.runOutsideAngular(() =>
|
122
|
+
// Note: `element.focus()` causes re-layout and this may lead to frame drop on slower devices.
|
123
|
+
// `Promise` is a microtask and microtask are executed within the current rendering frame.
|
124
|
+
// Animation tasks are executed within the next rendering frame.
|
125
|
+
// We focus input once everything is rendered and good to go.
|
126
|
+
requestAnimationFrame(() => this._input.nativeElement.focus()));
|
246
127
|
}
|
247
128
|
/**
|
248
129
|
* Method executed when input is focused
|
@@ -258,63 +139,15 @@ class TdPromptDialogComponent {
|
|
258
139
|
this._dialogRef.close(this.value);
|
259
140
|
}
|
260
141
|
}
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
i0.ɵɵtemplate(1, TdPromptDialogComponent_td_dialog_title_1_Template, 2, 1, "td-dialog-title", 0);
|
271
|
-
i0.ɵɵelementStart(2, "td-dialog-content");
|
272
|
-
i0.ɵɵelementStart(3, "span", 1);
|
273
|
-
i0.ɵɵtext(4);
|
274
|
-
i0.ɵɵelementEnd();
|
275
|
-
i0.ɵɵelementStart(5, "form", 2, 3);
|
276
|
-
i0.ɵɵelementStart(7, "div", 4);
|
277
|
-
i0.ɵɵelementStart(8, "mat-form-field", 5);
|
278
|
-
i0.ɵɵelementStart(9, "input", 6, 7);
|
279
|
-
i0.ɵɵlistener("focus", function TdPromptDialogComponent_Template_input_focus_9_listener() { return ctx.handleInputFocus(); })("keydown.enter", function TdPromptDialogComponent_Template_input_keydown_enter_9_listener($event) { i0.ɵɵrestoreView(_r5); const _r1 = i0.ɵɵreference(6); $event.preventDefault(); return _r1.valid && ctx.accept(); })("ngModelChange", function TdPromptDialogComponent_Template_input_ngModelChange_9_listener($event) { return ctx.value = $event; });
|
280
|
-
i0.ɵɵelementEnd();
|
281
|
-
i0.ɵɵelementEnd();
|
282
|
-
i0.ɵɵelementEnd();
|
283
|
-
i0.ɵɵelementEnd();
|
284
|
-
i0.ɵɵelementEnd();
|
285
|
-
i0.ɵɵelementStart(11, "td-dialog-actions");
|
286
|
-
i0.ɵɵelementStart(12, "button", 8, 9);
|
287
|
-
i0.ɵɵlistener("keydown.arrowright", function TdPromptDialogComponent_Template_button_keydown_arrowright_12_listener() { i0.ɵɵrestoreView(_r5); const _r4 = i0.ɵɵreference(16); return _r4.focus(); })("click", function TdPromptDialogComponent_Template_button_click_12_listener() { return ctx.cancel(); });
|
288
|
-
i0.ɵɵtext(14);
|
289
|
-
i0.ɵɵelementEnd();
|
290
|
-
i0.ɵɵelementStart(15, "button", 10, 11);
|
291
|
-
i0.ɵɵlistener("keydown.arrowleft", function TdPromptDialogComponent_Template_button_keydown_arrowleft_15_listener() { i0.ɵɵrestoreView(_r5); const _r3 = i0.ɵɵreference(13); return _r3.focus(); })("click", function TdPromptDialogComponent_Template_button_click_15_listener() { return ctx.accept(); });
|
292
|
-
i0.ɵɵtext(17);
|
293
|
-
i0.ɵɵelementEnd();
|
294
|
-
i0.ɵɵelementEnd();
|
295
|
-
i0.ɵɵelementEnd();
|
296
|
-
} if (rf & 2) {
|
297
|
-
const _r1 = i0.ɵɵreference(6);
|
298
|
-
i0.ɵɵadvance(1);
|
299
|
-
i0.ɵɵproperty("ngIf", ctx.title);
|
300
|
-
i0.ɵɵadvance(3);
|
301
|
-
i0.ɵɵtextInterpolate(ctx.message);
|
302
|
-
i0.ɵɵadvance(5);
|
303
|
-
i0.ɵɵproperty("ngModel", ctx.value);
|
304
|
-
i0.ɵɵadvance(5);
|
305
|
-
i0.ɵɵtextInterpolate(ctx.cancelButton);
|
306
|
-
i0.ɵɵadvance(1);
|
307
|
-
i0.ɵɵproperty("disabled", !_r1.valid);
|
308
|
-
i0.ɵɵadvance(2);
|
309
|
-
i0.ɵɵtextInterpolate1(" ", ctx.acceptButton, " ");
|
310
|
-
} }, directives: [TdDialogComponent, i3.NgIf, TdDialogTitleDirective, TdDialogContentDirective, i4$1.ɵNgNoValidate, i4$1.NgControlStatusGroup, i4$1.NgForm, i5.MatFormField, i6.MatInput, i4$1.DefaultValueAccessor, i4$1.RequiredValidator, i4$1.NgControlStatus, i4$1.NgModel, TdDialogActionsDirective, i4.MatButton], styles: [".td-dialog-input-wrapper[_ngcontent-%COMP%]{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}.td-dialog-input-wrapper[_ngcontent-%COMP%] .td-dialog-input[_ngcontent-%COMP%]{-ms-flex:1;flex:1;box-sizing:border-box}.td-dialog-message[_ngcontent-%COMP%]{word-break:break-word}"] });
|
311
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdPromptDialogComponent, [{
|
312
|
-
type: Component,
|
313
|
-
args: [{ selector: 'td-prompt-dialog', 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", styles: [".td-dialog-input-wrapper{-ms-flex-direction:row;flex-direction:row;box-sizing:border-box;display:-ms-flexbox;display:flex}.td-dialog-input-wrapper .td-dialog-input{-ms-flex:1;flex:1;box-sizing:border-box}.td-dialog-message{word-break:break-word}\n"] }]
|
314
|
-
}], function () { return [{ type: i1.MatDialogRef }]; }, { _input: [{
|
315
|
-
type: ViewChild,
|
316
|
-
args: ['input', { static: true }]
|
317
|
-
}] }); })();
|
142
|
+
TdPromptDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdPromptDialogComponent, deps: [{ token: i0.NgZone }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
143
|
+
TdPromptDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdPromptDialogComponent, selector: "td-prompt-dialog", viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\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 </div>\n <div tdDialogActions>\n <button\n mat-button\n #closeBtn\n (keydown.arrowright)=\"acceptBtn.focus()\"\n (click)=\"cancel()\"\n >\n {{ cancelButton }}\n </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 </div>\n</td-dialog>\n", styles: [".td-dialog-input-wrapper{flex-direction:row;box-sizing:border-box;display:flex}.td-dialog-input-wrapper .td-dialog-input{flex:1;box-sizing:border-box}.td-dialog-message{word-break:break-word}\n"], components: [{ type: TdDialogComponent, selector: "td-dialog" }, { type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TdDialogTitleDirective, selector: "[tdDialogTitle]" }, { type: TdDialogContentDirective, selector: "[tdDialogContent]" }, { type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: TdDialogActionsDirective, selector: "[tdDialogActions]" }] });
|
144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdPromptDialogComponent, decorators: [{
|
145
|
+
type: Component,
|
146
|
+
args: [{ selector: 'td-prompt-dialog', template: "<td-dialog>\n <div tdDialogTitle *ngIf=\"title\">\n {{ title }}\n </div>\n <div tdDialogContent>\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 </div>\n <div tdDialogActions>\n <button\n mat-button\n #closeBtn\n (keydown.arrowright)=\"acceptBtn.focus()\"\n (click)=\"cancel()\"\n >\n {{ cancelButton }}\n </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 </div>\n</td-dialog>\n", styles: [".td-dialog-input-wrapper{flex-direction:row;box-sizing:border-box;display:flex}.td-dialog-input-wrapper .td-dialog-input{flex:1;box-sizing:border-box}.td-dialog-message{word-break:break-word}\n"] }]
|
147
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.MatDialogRef }]; }, propDecorators: { _input: [{
|
148
|
+
type: ViewChild,
|
149
|
+
args: ['input', { static: true }]
|
150
|
+
}] } });
|
318
151
|
|
319
152
|
class TdDialogService {
|
320
153
|
constructor(_document, _dialogService, _dragDrop, rendererFactory) {
|
@@ -322,7 +155,7 @@ class TdDialogService {
|
|
322
155
|
this._dialogService = _dialogService;
|
323
156
|
this._dragDrop = _dragDrop;
|
324
157
|
this.rendererFactory = rendererFactory;
|
325
|
-
this._renderer2 = rendererFactory.createRenderer(undefined,
|
158
|
+
this._renderer2 = rendererFactory.createRenderer(undefined, null);
|
326
159
|
}
|
327
160
|
/**
|
328
161
|
* params:
|
@@ -433,14 +266,17 @@ class TdDialogService {
|
|
433
266
|
const CDK_OVERLAY_PANE_SELECTOR = '.cdk-overlay-pane';
|
434
267
|
const CDK_OVERLAY_CONTAINER_SELECTOR = '.cdk-overlay-container';
|
435
268
|
matDialogRef.afterOpened().subscribe(() => {
|
436
|
-
const dialogElement = this._document.getElementById(matDialogRef.id);
|
269
|
+
const dialogElement = (this._document.getElementById(matDialogRef.id));
|
437
270
|
const draggableElement = this._dragDrop.createDrag(dialogElement);
|
438
271
|
if (draggableClass) {
|
439
272
|
const childComponent = dialogElement.firstElementChild;
|
440
273
|
this._renderer2.addClass(childComponent, draggableClass);
|
441
274
|
}
|
442
275
|
if (dragHandleSelectors && dragHandleSelectors.length) {
|
443
|
-
const dragHandles = dragHandleSelectors.reduce((acc, curr) => [
|
276
|
+
const dragHandles = dragHandleSelectors.reduce((acc, curr) => [
|
277
|
+
...acc,
|
278
|
+
...Array.from(dialogElement.querySelectorAll(curr)),
|
279
|
+
], []);
|
444
280
|
if (dragHandles.length > 0) {
|
445
281
|
draggableElement.withHandles(dragHandles);
|
446
282
|
}
|
@@ -464,16 +300,15 @@ class TdDialogService {
|
|
464
300
|
return dialogConfig;
|
465
301
|
}
|
466
302
|
}
|
467
|
-
|
468
|
-
|
469
|
-
(
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
303
|
+
TdDialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogService, deps: [{ token: DOCUMENT }, { token: i1.MatDialog }, { token: i2.DragDrop }, { token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
304
|
+
TdDialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogService });
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdDialogService, decorators: [{
|
306
|
+
type: Injectable
|
307
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
308
|
+
type: Inject,
|
309
|
+
args: [DOCUMENT]
|
310
|
+
}] }, { type: i1.MatDialog }, { type: i2.DragDrop }, { type: i0.RendererFactory2 }]; } });
|
475
311
|
|
476
|
-
const _c0 = ["*"];
|
477
312
|
class TdWindowDialogComponent {
|
478
313
|
constructor() {
|
479
314
|
this.docked = false;
|
@@ -485,56 +320,26 @@ class TdWindowDialogComponent {
|
|
485
320
|
this.dockToggled.emit(this.docked);
|
486
321
|
}
|
487
322
|
}
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
i0.ɵɵstyleProp("min-height", ctx.toolbarHeight, "px")("cursor", ctx.docked ? "inherit" : "move");
|
509
|
-
i0.ɵɵproperty("color", ctx.toolbarColor);
|
510
|
-
i0.ɵɵadvance(1);
|
511
|
-
i0.ɵɵstyleProp("height", ctx.toolbarHeight, "px");
|
512
|
-
i0.ɵɵadvance(3);
|
513
|
-
i0.ɵɵtextInterpolate1(" ", ctx.title, " ");
|
514
|
-
i0.ɵɵadvance(1);
|
515
|
-
i0.ɵɵproperty("matTooltip", ctx.closeLabel);
|
516
|
-
i0.ɵɵattribute("data-test", "close-button");
|
517
|
-
i0.ɵɵadvance(1);
|
518
|
-
i0.ɵɵattribute("aria-label", ctx.closeLabel);
|
519
|
-
} }, directives: [i1$1.MatToolbar, i1$1.MatToolbarRow, i4.MatButton, i3$1.MatTooltip, i4$2.MatIcon], styles: ["[_nghost-%COMP%]{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.td-window-dialog-toolbar[_ngcontent-%COMP%]{background:none}.td-window-dialog-title[_ngcontent-%COMP%]{margin-bottom:0}.td-window-dialog-close[_ngcontent-%COMP%]{margin-right:-8px} .td-window-dialog .mat-dialog-container{padding:0}"], changeDetection: 0 });
|
520
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdWindowDialogComponent, [{
|
521
|
-
type: Component,
|
522
|
-
args: [{ selector: 'td-window-dialog', changeDetection: ChangeDetectionStrategy.OnPush, 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", styles: [":host{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.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}\n"] }]
|
523
|
-
}], null, { toolbarColor: [{
|
524
|
-
type: Input
|
525
|
-
}], docked: [{
|
526
|
-
type: Input
|
527
|
-
}], title: [{
|
528
|
-
type: Input
|
529
|
-
}], toggleDockedStateLabel: [{
|
530
|
-
type: Input
|
531
|
-
}], closeLabel: [{
|
532
|
-
type: Input
|
533
|
-
}], dockToggled: [{
|
534
|
-
type: Output
|
535
|
-
}], closed: [{
|
536
|
-
type: Output
|
537
|
-
}] }); })();
|
323
|
+
TdWindowDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdWindowDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
324
|
+
TdWindowDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdWindowDialogComponent, selector: "td-window-dialog", inputs: { toolbarColor: "toolbarColor", docked: "docked", title: "title", toggleDockedStateLabel: "toggleDockedStateLabel", closeLabel: "closeLabel" }, outputs: { dockToggled: "dockToggled", closed: "closed" }, ngImport: i0, 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", styles: [":host{height:100%;display:flex;flex-direction:column}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.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}\n"], components: [{ type: i1$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i1$1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { type: i4$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdWindowDialogComponent, decorators: [{
|
326
|
+
type: Component,
|
327
|
+
args: [{ selector: 'td-window-dialog', changeDetection: ChangeDetectionStrategy.OnPush, 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", styles: [":host{height:100%;display:flex;flex-direction:column}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.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}\n"] }]
|
328
|
+
}], propDecorators: { toolbarColor: [{
|
329
|
+
type: Input
|
330
|
+
}], docked: [{
|
331
|
+
type: Input
|
332
|
+
}], title: [{
|
333
|
+
type: Input
|
334
|
+
}], toggleDockedStateLabel: [{
|
335
|
+
type: Input
|
336
|
+
}], closeLabel: [{
|
337
|
+
type: Input
|
338
|
+
}], dockToggled: [{
|
339
|
+
type: Output
|
340
|
+
}], closed: [{
|
341
|
+
type: Output
|
342
|
+
}] } });
|
538
343
|
|
539
344
|
const TD_DIALOGS = [
|
540
345
|
TdAlertDialogComponent,
|
@@ -545,52 +350,24 @@ const TD_DIALOGS = [
|
|
545
350
|
TdDialogActionsDirective,
|
546
351
|
TdDialogContentDirective,
|
547
352
|
TdWindowDialogComponent,
|
548
|
-
];
|
549
|
-
const TD_DIALOGS_ENTRY_COMPONENTS = [
|
550
353
|
TdAlertDialogComponent,
|
551
354
|
TdConfirmDialogComponent,
|
552
355
|
TdPromptDialogComponent,
|
553
356
|
];
|
554
357
|
class CovalentDialogsModule {
|
555
358
|
}
|
556
|
-
|
557
|
-
|
558
|
-
/** @nocollapse */ /** @nocollapse */ CovalentDialogsModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [TdDialogService], imports: [[
|
559
|
-
FormsModule,
|
560
|
-
CommonModule,
|
561
|
-
MatDialogModule,
|
562
|
-
MatInputModule,
|
563
|
-
MatButtonModule,
|
564
|
-
MatToolbarModule,
|
565
|
-
MatTooltipModule,
|
566
|
-
MatIconModule,
|
567
|
-
]] });
|
568
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentDialogsModule, [{
|
569
|
-
type: NgModule,
|
570
|
-
args: [{
|
571
|
-
imports: [
|
572
|
-
FormsModule,
|
573
|
-
CommonModule,
|
574
|
-
MatDialogModule,
|
575
|
-
MatInputModule,
|
576
|
-
MatButtonModule,
|
577
|
-
MatToolbarModule,
|
578
|
-
MatTooltipModule,
|
579
|
-
MatIconModule,
|
580
|
-
],
|
581
|
-
declarations: [TD_DIALOGS],
|
582
|
-
exports: [TD_DIALOGS],
|
583
|
-
providers: [TdDialogService],
|
584
|
-
}]
|
585
|
-
}], null, null); })();
|
586
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentDialogsModule, { declarations: [TdAlertDialogComponent,
|
359
|
+
CovalentDialogsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
360
|
+
CovalentDialogsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, declarations: [TdAlertDialogComponent,
|
587
361
|
TdConfirmDialogComponent,
|
588
362
|
TdPromptDialogComponent,
|
589
363
|
TdDialogComponent,
|
590
364
|
TdDialogTitleDirective,
|
591
365
|
TdDialogActionsDirective,
|
592
366
|
TdDialogContentDirective,
|
593
|
-
TdWindowDialogComponent
|
367
|
+
TdWindowDialogComponent,
|
368
|
+
TdAlertDialogComponent,
|
369
|
+
TdConfirmDialogComponent,
|
370
|
+
TdPromptDialogComponent], imports: [FormsModule,
|
594
371
|
CommonModule,
|
595
372
|
MatDialogModule,
|
596
373
|
MatInputModule,
|
@@ -604,7 +381,38 @@ class CovalentDialogsModule {
|
|
604
381
|
TdDialogTitleDirective,
|
605
382
|
TdDialogActionsDirective,
|
606
383
|
TdDialogContentDirective,
|
607
|
-
TdWindowDialogComponent
|
384
|
+
TdWindowDialogComponent,
|
385
|
+
TdAlertDialogComponent,
|
386
|
+
TdConfirmDialogComponent,
|
387
|
+
TdPromptDialogComponent] });
|
388
|
+
CovalentDialogsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, providers: [TdDialogService], imports: [[
|
389
|
+
FormsModule,
|
390
|
+
CommonModule,
|
391
|
+
MatDialogModule,
|
392
|
+
MatInputModule,
|
393
|
+
MatButtonModule,
|
394
|
+
MatToolbarModule,
|
395
|
+
MatTooltipModule,
|
396
|
+
MatIconModule,
|
397
|
+
]] });
|
398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentDialogsModule, decorators: [{
|
399
|
+
type: NgModule,
|
400
|
+
args: [{
|
401
|
+
imports: [
|
402
|
+
FormsModule,
|
403
|
+
CommonModule,
|
404
|
+
MatDialogModule,
|
405
|
+
MatInputModule,
|
406
|
+
MatButtonModule,
|
407
|
+
MatToolbarModule,
|
408
|
+
MatTooltipModule,
|
409
|
+
MatIconModule,
|
410
|
+
],
|
411
|
+
declarations: [...TD_DIALOGS],
|
412
|
+
exports: [...TD_DIALOGS],
|
413
|
+
providers: [TdDialogService],
|
414
|
+
}]
|
415
|
+
}] });
|
608
416
|
|
609
417
|
var corners;
|
610
418
|
(function (corners) {
|
@@ -663,19 +471,28 @@ class ResizableDraggableDialog {
|
|
663
471
|
return (this._document.getElementById(this._dialogRef.id) || {}).parentElement;
|
664
472
|
}
|
665
473
|
_getViewportDimensions() {
|
666
|
-
return this._getDialogWrapper()
|
474
|
+
return this._getDialogWrapper()?.parentElement?.getBoundingClientRect();
|
667
475
|
}
|
668
476
|
_getDialogWrapperDimensions() {
|
669
|
-
const
|
477
|
+
const wrapper = this._getDialogWrapper();
|
478
|
+
if (!wrapper) {
|
479
|
+
return { width: 0, height: 0 };
|
480
|
+
}
|
481
|
+
const dimensions = getComputedStyle(wrapper);
|
670
482
|
return {
|
671
483
|
width: getPixels(dimensions.width),
|
672
484
|
height: getPixels(dimensions.height),
|
673
485
|
};
|
674
486
|
}
|
675
487
|
_initialPositionReset() {
|
676
|
-
const
|
488
|
+
const viewportWidth = this._getViewportDimensions()?.right ?? 0;
|
489
|
+
const viewportHeight = this._getViewportDimensions()?.bottom ?? 0;
|
677
490
|
const { width, height } = this._getDialogWrapperDimensions();
|
678
|
-
const
|
491
|
+
const wrapperStyle = this._getDialogWrapper()?.style;
|
492
|
+
const originalDialogRight = wrapperStyle?.marginRight;
|
493
|
+
const originalDialogLeft = wrapperStyle?.marginLeft;
|
494
|
+
const originalDialogBottom = wrapperStyle?.marginBottom;
|
495
|
+
const originalDialogTop = wrapperStyle?.marginTop;
|
679
496
|
let x;
|
680
497
|
if (originalDialogLeft) {
|
681
498
|
x = getPixels(originalDialogLeft);
|
@@ -697,7 +514,12 @@ class ResizableDraggableDialog {
|
|
697
514
|
y = (viewportHeight - height) / 2;
|
698
515
|
}
|
699
516
|
// use drag ref's mechanisms for positioning instead of the dialog's
|
700
|
-
this._dialogRef.updatePosition({
|
517
|
+
this._dialogRef.updatePosition({
|
518
|
+
top: '0px',
|
519
|
+
right: '0px',
|
520
|
+
bottom: '0px',
|
521
|
+
left: '0px',
|
522
|
+
});
|
701
523
|
this._dragRef.setFreeDragPosition({ x, y });
|
702
524
|
}
|
703
525
|
_attachCorners() {
|
@@ -732,7 +554,7 @@ class ResizableDraggableDialog {
|
|
732
554
|
topBottom = verticalAlignment.bottom;
|
733
555
|
rightLeft = horizontalAlignment.left;
|
734
556
|
}
|
735
|
-
else
|
557
|
+
else {
|
736
558
|
cursor = cursors.nwse;
|
737
559
|
topBottom = verticalAlignment.top;
|
738
560
|
rightLeft = horizontalAlignment.left;
|
@@ -752,8 +574,11 @@ class ResizableDraggableDialog {
|
|
752
574
|
const originalMouseX = event.pageX;
|
753
575
|
const originalMouseY = event.pageY;
|
754
576
|
const { x: currentTransformX, y: currentTransformY } = this._dragRef.getFreeDragPosition();
|
755
|
-
const
|
756
|
-
const
|
577
|
+
const wrapper = this._getDialogWrapper()?.getBoundingClientRect();
|
578
|
+
const distanceFromBottom = wrapper?.bottom ?? 0;
|
579
|
+
const distanceFromRight = wrapper?.right ?? 0;
|
580
|
+
const viewportWidth = this._getViewportDimensions()?.right ?? 0;
|
581
|
+
const viewportHeight = this._getViewportDimensions()?.bottom ?? 0;
|
757
582
|
const mouseMoveSub = fromEvent(window, 'pointermove').subscribe((e) => {
|
758
583
|
e.preventDefault(); // prevent highlighting of text when dragging
|
759
584
|
const yDelta = clamp(0, e.pageY, viewportHeight) - originalMouseY;
|
@@ -784,7 +609,7 @@ class ResizableDraggableDialog {
|
|
784
609
|
newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);
|
785
610
|
}
|
786
611
|
// top left
|
787
|
-
else
|
612
|
+
else {
|
788
613
|
newHeight = clamp(minHeight, originalHeight - yDelta, viewportHeight);
|
789
614
|
newWidth = clamp(minWidth, originalWidth - xDelta, viewportWidth);
|
790
615
|
newTransformX = clamp(0, currentTransformX + xDelta, distanceFromRight - newWidth);
|