@covalent/core 4.0.0-beta.2 → 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 +3 -1
- package/breadcrumbs/breadcrumbs.component.d.ts +1 -0
- 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/pipes/truncate/truncate.pipe.d.ts +1 -1
- package/common/{public-api.d.ts → public_api.d.ts} +0 -0
- 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 +3 -3
- 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 +20 -25
- 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 +15 -73
- 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 +46 -47
- 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 +35 -76
- 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 +125 -358
- 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 +148 -233
- 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 +49 -71
- 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 +160 -338
- 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 +229 -273
- 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 +6 -7
- 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/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.css +0 -111
- package/common/material-icons.css.map +0 -1
- package/common/material-icons.scss +0 -3
- package/common/platform.css +0 -16819
- 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 -605
- package/common/styles/_palette-dark.scss +0 -326
- package/common/styles/_palette-light.scss +0 -637
- package/common/styles/_rtl.scss +0 -31
- 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 -1399
- package/common/styles/colors/_colors-light.scss +0 -3235
- package/common/styles/colors/_colors.scss +0 -7
- package/common/styles/core/_button.scss +0 -60
- package/common/styles/core/_card.scss +0 -184
- package/common/styles/core/_content.scss +0 -43
- package/common/styles/core/_core.scss +0 -23
- package/common/styles/core/_divider.scss +0 -16
- package/common/styles/core/_icons.scss +0 -22
- package/common/styles/core/_list.scss +0 -8
- package/common/styles/core/_sidenav.scss +0 -22
- package/common/styles/core/_structure.scss +0 -127
- package/common/styles/core/_toolbar.scss +0 -53
- 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 -99
- package/common/styles/utilities/_general.scss +0 -65
- 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 -105
- package/common/styles/utilities/_utilities.scss +0 -15
- 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.css +0 -2815
- package/theming/prebuilt/blue-grey-deep-orange.css.map +0 -1
- package/theming/prebuilt/blue-grey-deep-orange.scss +0 -20
- package/theming/prebuilt/blue-orange.css +0 -2815
- package/theming/prebuilt/blue-orange.css.map +0 -1
- package/theming/prebuilt/blue-orange.scss +0 -20
- package/theming/prebuilt/indigo-pink.css +0 -2815
- package/theming/prebuilt/indigo-pink.css.map +0 -1
- package/theming/prebuilt/indigo-pink.scss +0 -20
- package/theming/prebuilt/orange-light-blue.css +0 -2815
- package/theming/prebuilt/orange-light-blue.css.map +0 -1
- package/theming/prebuilt/orange-light-blue.scss +0 -20
- package/theming/prebuilt/teal-orange.css +0 -2815
- package/theming/prebuilt/teal-orange.css.map +0 -1
- 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,5 +1,5 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { EventEmitter, Directive, Optional, Inject, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, Injector, TemplateRef, InjectFlags, Injectable, SkipSelf, Input, NgModule } from '@angular/core';
|
2
|
+
import { EventEmitter, Directive, Optional, Inject, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, HostBinding, HostListener, Injector, TemplateRef, InjectFlags, Injectable, SkipSelf, Input, NgModule } from '@angular/core';
|
3
3
|
import * as i3 from '@angular/cdk/portal';
|
4
4
|
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
5
5
|
import { AnimationDurations, AnimationCurves, MatCommonModule } from '@angular/material/core';
|
@@ -26,11 +26,13 @@ const tdSideSheetAnimations = {
|
|
26
26
|
class CovalentSideSheetConfig extends MatDialogConfig {
|
27
27
|
}
|
28
28
|
|
29
|
-
function CovalentSideSheetContainer_ng_template_0_Template(rf, ctx) { }
|
30
29
|
function _getFocusedElementPierceShadowDom() {
|
31
|
-
let activeElement = typeof document !== 'undefined' && document
|
30
|
+
let activeElement = typeof document !== 'undefined' && document
|
31
|
+
? document.activeElement
|
32
|
+
: null;
|
32
33
|
while (activeElement && activeElement.shadowRoot) {
|
33
|
-
const newActiveElement = activeElement.shadowRoot
|
34
|
+
const newActiveElement = activeElement.shadowRoot
|
35
|
+
.activeElement;
|
34
36
|
if (newActiveElement === activeElement) {
|
35
37
|
break;
|
36
38
|
}
|
@@ -114,7 +116,9 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
|
|
114
116
|
}
|
115
117
|
}
|
116
118
|
else {
|
117
|
-
this._focusTrap
|
119
|
+
this._focusTrap
|
120
|
+
.focusInitialElementWhenReady()
|
121
|
+
.then((focusedSuccessfully) => {
|
118
122
|
// If we weren't able to find a focusable element in the side-sheet, then focus the side-sheet
|
119
123
|
// container instead.
|
120
124
|
if (!focusedSuccessfully) {
|
@@ -127,7 +131,9 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
|
|
127
131
|
_restoreFocus() {
|
128
132
|
const previousElement = this._elementFocusedBeforeSideSheetWasOpened;
|
129
133
|
// We need the extra check, because IE can set the `activeElement` to null in some cases.
|
130
|
-
if (this._config.restoreFocus &&
|
134
|
+
if (this._config.restoreFocus &&
|
135
|
+
previousElement &&
|
136
|
+
typeof previousElement.focus === 'function') {
|
131
137
|
const activeElement = _getFocusedElementPierceShadowDom();
|
132
138
|
const element = this._elementRef.nativeElement;
|
133
139
|
// Make sure that focus is still inside the side-sheet or is on the body (usually because a
|
@@ -158,7 +164,8 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
|
|
158
164
|
/** Captures the element that was focused before the side-sheet was opened. */
|
159
165
|
_capturePreviouslyFocusedElement() {
|
160
166
|
if (this._document) {
|
161
|
-
this._elementFocusedBeforeSideSheetWasOpened =
|
167
|
+
this._elementFocusedBeforeSideSheetWasOpened =
|
168
|
+
_getFocusedElementPierceShadowDom();
|
162
169
|
}
|
163
170
|
}
|
164
171
|
/** Focuses the side-sheet container. */
|
@@ -175,40 +182,49 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
|
|
175
182
|
return element === activeElement || element.contains(activeElement);
|
176
183
|
}
|
177
184
|
}
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
i0.ɵɵviewQuery(CdkPortalOutlet, 7);
|
182
|
-
}
|
183
|
-
if (rf & 2) {
|
184
|
-
let _t;
|
185
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._portalOutlet = _t.first);
|
186
|
-
}
|
187
|
-
}, features: [i0.ɵɵInheritDefinitionFeature] });
|
188
|
-
(function () {
|
189
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(_CovalentSideSheetContainerBase, [{
|
185
|
+
_CovalentSideSheetContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetContainerBase, deps: [{ token: i0.ElementRef }, { token: i1.ConfigurableFocusTrapFactory }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT, optional: true }, { token: CovalentSideSheetConfig }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
|
186
|
+
_CovalentSideSheetContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: _CovalentSideSheetContainerBase, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetContainerBase, decorators: [{
|
190
188
|
type: Directive
|
191
|
-
}], function () {
|
192
|
-
return [{ type: i0.ElementRef }, { type: i1.
|
189
|
+
}], ctorParameters: function () {
|
190
|
+
return [{ type: i0.ElementRef }, { type: i1.ConfigurableFocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
193
191
|
type: Optional
|
194
192
|
}, {
|
195
193
|
type: Inject,
|
196
194
|
args: [DOCUMENT]
|
197
195
|
}] }, { type: CovalentSideSheetConfig }, { type: i1.FocusMonitor }];
|
198
|
-
}, { _portalOutlet: [{
|
196
|
+
}, propDecorators: { _portalOutlet: [{
|
199
197
|
type: ViewChild,
|
200
198
|
args: [CdkPortalOutlet, { static: true }]
|
201
|
-
}] });
|
202
|
-
})();
|
199
|
+
}] } });
|
203
200
|
/**
|
204
201
|
* Internal component that wraps the generated side-sheet content.
|
205
202
|
* This animation below is the only reason for duplicating most of the Material dialog code
|
206
203
|
*/
|
207
|
-
class
|
204
|
+
class CovalentSideSheetContainerComponent extends _CovalentSideSheetContainerBase {
|
208
205
|
constructor() {
|
209
206
|
super(...arguments);
|
210
207
|
/** State of the side-sheet animation. */
|
211
208
|
this._state = 'enter';
|
209
|
+
this.tdSideSheetContainerClass = true;
|
210
|
+
this.tabIndex = -1;
|
211
|
+
this.arialModal = true;
|
212
|
+
this.idAttr = this._id;
|
213
|
+
this.roleAttr = this._config.role;
|
214
|
+
this.arialLabelByAttr = this._config.ariaLabel
|
215
|
+
? null
|
216
|
+
: this._ariaLabelledBy;
|
217
|
+
this.arialDescribeByAttr = this._config.ariaDescribedBy || null;
|
218
|
+
this.arialLabelAttr = this._config.ariaLabel;
|
219
|
+
}
|
220
|
+
get sideSheetAnimationState() {
|
221
|
+
return this._state;
|
222
|
+
}
|
223
|
+
onAnimateStart($event) {
|
224
|
+
this._onAnimationStart($event);
|
225
|
+
}
|
226
|
+
onAnimateDone($event) {
|
227
|
+
this._onAnimationDone($event);
|
212
228
|
}
|
213
229
|
/** Callback, invoked whenever an animation on the host completes. */
|
214
230
|
_onAnimationDone({ toState, totalTime }) {
|
@@ -236,41 +252,45 @@ class CovalentSideSheetContainer extends _CovalentSideSheetContainerBase {
|
|
236
252
|
this._changeDetectorRef.markForCheck();
|
237
253
|
}
|
238
254
|
}
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
i0.ɵɵsyntheticHostListener("@sideSheetContainer.start", function CovalentSideSheetContainer_animation_sideSheetContainer_start_HostBindingHandler($event) { return ctx._onAnimationStart($event); })("@sideSheetContainer.done", function CovalentSideSheetContainer_animation_sideSheetContainer_done_HostBindingHandler($event) { return ctx._onAnimationDone($event); });
|
243
|
-
}
|
244
|
-
if (rf & 2) {
|
245
|
-
i0.ɵɵhostProperty("id", ctx._id);
|
246
|
-
i0.ɵɵattribute("role", ctx._config.role)("aria-labelledby", ctx._config.ariaLabel ? null : ctx._ariaLabelledBy)("aria-label", ctx._config.ariaLabel)("aria-describedby", ctx._config.ariaDescribedBy || null);
|
247
|
-
i0.ɵɵsyntheticHostProperty("@sideSheetContainer", ctx._state);
|
248
|
-
}
|
249
|
-
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [["cdkPortalOutlet", ""]], template: function CovalentSideSheetContainer_Template(rf, ctx) {
|
250
|
-
if (rf & 1) {
|
251
|
-
i0.ɵɵtemplate(0, CovalentSideSheetContainer_ng_template_0_Template, 0, 0, "ng-template", 0);
|
252
|
-
}
|
253
|
-
}, directives: [i3.CdkPortalOutlet], styles: [".td-side-sheet-container{background-color:#fff;box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);display:block;padding:24px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.td-side-sheet-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.td-side-sheet-content{margin:0 -24px;padding:0 24px;overflow:auto;-ms-flex:1;flex:1;-webkit-overflow-scrolling:touch}.td-side-sheet-title{margin:-16px 0 20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.td-side-sheet-actions{padding:8px 0;margin:0 -16px -24px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;box-sizing:content-box}.td-side-sheet-actions[align=end]{-ms-flex-pack:end;justify-content:flex-end}.td-side-sheet-actions[align=center]{-ms-flex-pack:center;justify-content:center}.td-side-sheet-actions .mat-button-base+.mat-button-base,.td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .td-side-sheet-actions .mat-button-base+.mat-button-base,[dir=rtl] .td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"], encapsulation: 2, data: { animation: [tdSideSheetAnimations.sideSheetContainer] } });
|
254
|
-
(function () {
|
255
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetContainer, [{
|
255
|
+
CovalentSideSheetContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
256
|
+
CovalentSideSheetContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetContainerComponent, selector: "td-side-sheet-container", host: { listeners: { "@sideSheetContainer.start": "onAnimateStart($event)", "@sideSheetContainer.done": "onAnimateDone($event)" }, properties: { "class.td-side-sheet-container": "this.tdSideSheetContainerClass", "tabindex": "this.tabIndex", "aria-modal": "this.arialModal", "id": "this.idAttr", "attr.role": "this.roleAttr", "attr.aria-labelledby": "this.arialLabelByAttr", "attr.aria-describedby": "this.arialDescribeByAttr", "attr.aria-label": "this.arialLabelAttr", "@sideSheetContainer": "this.sideSheetAnimationState" } }, usesInheritance: true, ngImport: i0, template: ` <ng-template cdkPortalOutlet></ng-template> `, isInline: true, styles: [".td-side-sheet-container{background-color:#fff;box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f;display:block;padding:24px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.td-side-sheet-wrapper{display:flex;flex-direction:column;height:100%}.td-side-sheet-content{margin:0 -24px;padding:0 24px;overflow:auto;flex:1;-webkit-overflow-scrolling:touch}.td-side-sheet-title{margin:-16px 0 20px;display:flex;align-items:center}.td-side-sheet-actions{padding:8px 0;margin:0 -16px -24px;display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;box-sizing:content-box}.td-side-sheet-actions[align=end]{justify-content:flex-end}.td-side-sheet-actions[align=center]{justify-content:center}.td-side-sheet-actions .mat-button-base+.mat-button-base,.td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .td-side-sheet-actions .mat-button-base+.mat-button-base,[dir=rtl] .td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"], directives: [{ type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [tdSideSheetAnimations.sideSheetContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContainerComponent, decorators: [{
|
256
258
|
type: Component,
|
257
|
-
args: [{ selector: 'td-side-sheet-container', template: `
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
}
|
259
|
+
args: [{ selector: 'td-side-sheet-container', template: ` <ng-template cdkPortalOutlet></ng-template> `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [tdSideSheetAnimations.sideSheetContainer], styles: [".td-side-sheet-container{background-color:#fff;box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f;display:block;padding:24px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.td-side-sheet-wrapper{display:flex;flex-direction:column;height:100%}.td-side-sheet-content{margin:0 -24px;padding:0 24px;overflow:auto;flex:1;-webkit-overflow-scrolling:touch}.td-side-sheet-title{margin:-16px 0 20px;display:flex;align-items:center}.td-side-sheet-actions{padding:8px 0;margin:0 -16px -24px;display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;box-sizing:content-box}.td-side-sheet-actions[align=end]{justify-content:flex-end}.td-side-sheet-actions[align=center]{justify-content:center}.td-side-sheet-actions .mat-button-base+.mat-button-base,.td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .td-side-sheet-actions .mat-button-base+.mat-button-base,[dir=rtl] .td-side-sheet-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"] }]
|
260
|
+
}], propDecorators: { tdSideSheetContainerClass: [{
|
261
|
+
type: HostBinding,
|
262
|
+
args: ['class.td-side-sheet-container']
|
263
|
+
}], tabIndex: [{
|
264
|
+
type: HostBinding,
|
265
|
+
args: ['tabindex']
|
266
|
+
}], arialModal: [{
|
267
|
+
type: HostBinding,
|
268
|
+
args: ['aria-modal']
|
269
|
+
}], idAttr: [{
|
270
|
+
type: HostBinding,
|
271
|
+
args: ['id']
|
272
|
+
}], roleAttr: [{
|
273
|
+
type: HostBinding,
|
274
|
+
args: ['attr.role']
|
275
|
+
}], arialLabelByAttr: [{
|
276
|
+
type: HostBinding,
|
277
|
+
args: ['attr.aria-labelledby']
|
278
|
+
}], arialDescribeByAttr: [{
|
279
|
+
type: HostBinding,
|
280
|
+
args: ['attr.aria-describedby']
|
281
|
+
}], arialLabelAttr: [{
|
282
|
+
type: HostBinding,
|
283
|
+
args: ['attr.aria-label']
|
284
|
+
}], sideSheetAnimationState: [{
|
285
|
+
type: HostBinding,
|
286
|
+
args: ['@sideSheetContainer']
|
287
|
+
}], onAnimateStart: [{
|
288
|
+
type: HostListener,
|
289
|
+
args: ['@sideSheetContainer.start', ['$event']]
|
290
|
+
}], onAnimateDone: [{
|
291
|
+
type: HostListener,
|
292
|
+
args: ['@sideSheetContainer.done', ['$event']]
|
293
|
+
}] } });
|
274
294
|
|
275
295
|
// Counter for unique dialog ids.
|
276
296
|
let uniqueId = 0;
|
@@ -312,7 +332,9 @@ class _CovalentSideSheetBase {
|
|
312
332
|
}
|
313
333
|
/** Keeps track of the currently-open side-sheets. */
|
314
334
|
get openSideSheets() {
|
315
|
-
return this._parentSideSheet
|
335
|
+
return this._parentSideSheet
|
336
|
+
? this._parentSideSheet.openSideSheets
|
337
|
+
: this._openSideSheetsAtThisLevel;
|
316
338
|
}
|
317
339
|
open(componentOrTemplateRef, config) {
|
318
340
|
config = Object.assign(Object.assign(Object.assign({}, (this._defaultOptions || new CovalentSideSheetConfig())), this.defaultSidebarConfig), config);
|
@@ -373,7 +395,8 @@ class _CovalentSideSheetBase {
|
|
373
395
|
maxWidth: config.maxWidth,
|
374
396
|
});
|
375
397
|
const overlayRef = this._overlay.create(overlayConfig);
|
376
|
-
const positionStrategy = overlayRef.getConfig()
|
398
|
+
const positionStrategy = overlayRef.getConfig()
|
399
|
+
.positionStrategy;
|
377
400
|
positionStrategy.right('0px');
|
378
401
|
return overlayRef;
|
379
402
|
}
|
@@ -407,7 +430,9 @@ class _CovalentSideSheetBase {
|
|
407
430
|
// to modify and close it.
|
408
431
|
const sideSheetRef = new this._sideSheetRefConstructor(overlayRef, sideSheetContainer, config.id);
|
409
432
|
if (componentOrTemplateRef instanceof TemplateRef) {
|
410
|
-
sideSheetContainer.attachTemplatePortal(
|
433
|
+
sideSheetContainer.attachTemplatePortal(
|
434
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
435
|
+
new TemplatePortal(componentOrTemplateRef, null, {
|
411
436
|
$implicit: config.data,
|
412
437
|
sideSheetRef,
|
413
438
|
}));
|
@@ -432,13 +457,17 @@ class _CovalentSideSheetBase {
|
|
432
457
|
{ provide: this._sideSheetRefConstructor, useValue: sideSheetRef },
|
433
458
|
];
|
434
459
|
if (config.direction &&
|
435
|
-
(!userInjector ||
|
460
|
+
(!userInjector ||
|
461
|
+
!userInjector.get(Directionality, null, InjectFlags.Optional))) {
|
436
462
|
providers.push({
|
437
463
|
provide: Directionality,
|
438
464
|
useValue: { value: config.direction, change: of() },
|
439
465
|
});
|
440
466
|
}
|
441
|
-
return Injector.create({
|
467
|
+
return Injector.create({
|
468
|
+
parent: userInjector || this._injector,
|
469
|
+
providers,
|
470
|
+
});
|
442
471
|
}
|
443
472
|
/**
|
444
473
|
* Removes a side sheet from the array of open side sheets.
|
@@ -458,27 +487,24 @@ class _CovalentSideSheetBase {
|
|
458
487
|
}
|
459
488
|
}
|
460
489
|
}
|
461
|
-
|
462
|
-
|
463
|
-
(
|
464
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(_CovalentSideSheetBase, [{
|
490
|
+
_CovalentSideSheetBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
491
|
+
_CovalentSideSheetBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: _CovalentSideSheetBase, ngImport: i0 });
|
492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetBase, decorators: [{
|
465
493
|
type: Directive
|
466
|
-
}], function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: undefined }, { type: undefined }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }]; }
|
467
|
-
})();
|
494
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: undefined }, { type: undefined }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }]; } });
|
468
495
|
/**
|
469
496
|
* Service to open Covalent Design side-sheet.
|
470
497
|
*/
|
471
498
|
class CovalentSideSheet extends _CovalentSideSheetBase {
|
472
499
|
constructor(overlay, injector, defaultOptions, parentSideSheet) {
|
473
|
-
super(overlay, injector, defaultOptions, parentSideSheet, CovalentSideSheetRef,
|
500
|
+
super(overlay, injector, defaultOptions, parentSideSheet, CovalentSideSheetRef, CovalentSideSheetContainerComponent, MAT_DIALOG_DATA);
|
474
501
|
}
|
475
502
|
}
|
476
|
-
|
477
|
-
|
478
|
-
(
|
479
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheet, [{
|
503
|
+
CovalentSideSheet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheet, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: MAT_DIALOG_DEFAULT_OPTIONS, optional: true }, { token: CovalentSideSheet, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
504
|
+
CovalentSideSheet.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheet });
|
505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheet, decorators: [{
|
480
506
|
type: Injectable
|
481
|
-
}], function () {
|
507
|
+
}], ctorParameters: function () {
|
482
508
|
return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: CovalentSideSheetConfig, decorators: [{
|
483
509
|
type: Optional
|
484
510
|
}, {
|
@@ -489,8 +515,7 @@ class CovalentSideSheet extends _CovalentSideSheetBase {
|
|
489
515
|
}, {
|
490
516
|
type: SkipSelf
|
491
517
|
}] }];
|
492
|
-
}
|
493
|
-
})();
|
518
|
+
} });
|
494
519
|
|
495
520
|
/* tslint:disable */
|
496
521
|
/** Counter used to generate unique IDs for dialog elements. */
|
@@ -498,7 +523,7 @@ let dialogElementUid = 0;
|
|
498
523
|
/**
|
499
524
|
* Button that will close the current dialog.
|
500
525
|
*/
|
501
|
-
class
|
526
|
+
class CovalentSideSheetCloseDirective {
|
502
527
|
constructor(dialogRef, _elementRef, _dialog) {
|
503
528
|
this.dialogRef = dialogRef;
|
504
529
|
this._elementRef = _elementRef;
|
@@ -506,6 +531,9 @@ class CovalentSideSheetClose {
|
|
506
531
|
/** Default to "button" to prevents accidental form submits. */
|
507
532
|
this.type = 'button';
|
508
533
|
}
|
534
|
+
onClick($event) {
|
535
|
+
this._onButtonClick($event);
|
536
|
+
}
|
509
537
|
ngOnInit() {
|
510
538
|
if (!this.dialogRef) {
|
511
539
|
// When this directive is included in a dialog via TemplateRef (rather than being
|
@@ -517,7 +545,8 @@ class CovalentSideSheetClose {
|
|
517
545
|
}
|
518
546
|
}
|
519
547
|
ngOnChanges(changes) {
|
520
|
-
const proxiedChange = changes['_CovalentSideSheetClose'] ||
|
548
|
+
const proxiedChange = changes['_CovalentSideSheetClose'] ||
|
549
|
+
changes['_CovalentSideSheetCloseResult'];
|
521
550
|
if (proxiedChange) {
|
522
551
|
this.dialogResult = proxiedChange.currentValue;
|
523
552
|
}
|
@@ -530,35 +559,28 @@ class CovalentSideSheetClose {
|
|
530
559
|
_closeSideSheetVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);
|
531
560
|
}
|
532
561
|
}
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
i0.ɵɵlistener("click", function CovalentSideSheetClose_click_HostBindingHandler($event) { return ctx._onButtonClick($event); });
|
537
|
-
}
|
538
|
-
if (rf & 2) {
|
539
|
-
i0.ɵɵattribute("aria-label", ctx.ariaLabel || null)("type", ctx.type);
|
540
|
-
}
|
541
|
-
}, inputs: { ariaLabel: ["aria-label", "ariaLabel"], type: "type", dialogResult: ["td-side-sheet-close", "dialogResult"], _CovalentSideSheetClose: ["CovalentSideSheetClose", "_CovalentSideSheetClose"] }, exportAs: ["CovalentSideSheetClose"], features: [i0.ɵɵNgOnChangesFeature] });
|
542
|
-
(function () {
|
543
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetClose, [{
|
562
|
+
CovalentSideSheetCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetCloseDirective, deps: [{ token: CovalentSideSheetRef, optional: true }, { token: i0.ElementRef }, { token: CovalentSideSheet }], target: i0.ɵɵFactoryTarget.Directive });
|
563
|
+
CovalentSideSheetCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetCloseDirective, selector: "[td-side-sheet-close], [CovalentSideSheetClose]", inputs: { ariaLabel: ["aria-label", "ariaLabel"], type: "type", dialogResult: ["td-side-sheet-close", "dialogResult"], _CovalentSideSheetClose: ["CovalentSideSheetClose", "_CovalentSideSheetClose"] }, host: { listeners: { "click": "onClick($event)" }, properties: { "attr.arial-label": "this.ariaLabel", "attr.type": "this.type" } }, exportAs: ["CovalentSideSheetClose"], usesOnChanges: true, ngImport: i0 });
|
564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetCloseDirective, decorators: [{
|
544
565
|
type: Directive,
|
545
566
|
args: [{
|
546
567
|
selector: '[td-side-sheet-close], [CovalentSideSheetClose]',
|
547
568
|
exportAs: 'CovalentSideSheetClose',
|
548
|
-
host: {
|
549
|
-
'(click)': '_onButtonClick($event)',
|
550
|
-
'[attr.aria-label]': 'ariaLabel || null',
|
551
|
-
'[attr.type]': 'type',
|
552
|
-
},
|
553
569
|
}]
|
554
|
-
}], function () {
|
570
|
+
}], ctorParameters: function () {
|
555
571
|
return [{ type: CovalentSideSheetRef, decorators: [{
|
556
572
|
type: Optional
|
557
573
|
}] }, { type: i0.ElementRef }, { type: CovalentSideSheet }];
|
558
|
-
}, { ariaLabel: [{
|
574
|
+
}, propDecorators: { ariaLabel: [{
|
575
|
+
type: HostBinding,
|
576
|
+
args: ['attr.arial-label']
|
577
|
+
}, {
|
559
578
|
type: Input,
|
560
579
|
args: ['aria-label']
|
561
580
|
}], type: [{
|
581
|
+
type: HostBinding,
|
582
|
+
args: ['attr.type']
|
583
|
+
}, {
|
562
584
|
type: Input
|
563
585
|
}], dialogResult: [{
|
564
586
|
type: Input,
|
@@ -566,12 +588,14 @@ class CovalentSideSheetClose {
|
|
566
588
|
}], _CovalentSideSheetClose: [{
|
567
589
|
type: Input,
|
568
590
|
args: ['CovalentSideSheetClose']
|
569
|
-
}]
|
570
|
-
|
591
|
+
}], onClick: [{
|
592
|
+
type: HostListener,
|
593
|
+
args: ['click', ['$event']]
|
594
|
+
}] } });
|
571
595
|
/**
|
572
596
|
* Title of a side sheet element. Stays fixed to the top of the side sheet when scrolling.
|
573
597
|
*/
|
574
|
-
class
|
598
|
+
class CovalentSideSheetTitleDirective {
|
575
599
|
constructor(
|
576
600
|
// The dialog title directive is always used in combination with a `CovalentSideSheetRef`.
|
577
601
|
// tslint:disable-next-line: lightweight-tokens
|
@@ -581,6 +605,8 @@ class CovalentSideSheetTitle {
|
|
581
605
|
this._dialog = _dialog;
|
582
606
|
/** Unique id for the dialog title. If none is supplied, it will be auto-generated. */
|
583
607
|
this.id = `td-side-sheet-title-${dialogElementUid++}`;
|
608
|
+
this.tdSideSheetTitle = true;
|
609
|
+
this.idAttr = this.id;
|
584
610
|
}
|
585
611
|
ngOnInit() {
|
586
612
|
if (this._dialogRef) {
|
@@ -596,138 +622,141 @@ class CovalentSideSheetTitle {
|
|
596
622
|
}
|
597
623
|
}
|
598
624
|
}
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
i0.ɵɵhostProperty("id", ctx.id);
|
603
|
-
}
|
604
|
-
}, inputs: { id: "id" }, exportAs: ["CovalentSideSheetTitle"] });
|
605
|
-
(function () {
|
606
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetTitle, [{
|
625
|
+
CovalentSideSheetTitleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetTitleDirective, deps: [{ token: CovalentSideSheetRef, optional: true }, { token: i0.ElementRef }, { token: CovalentSideSheet }], target: i0.ɵɵFactoryTarget.Directive });
|
626
|
+
CovalentSideSheetTitleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetTitleDirective, selector: "[td-side-sheet-title], [CovalentSideSheetTitle]", inputs: { id: "id" }, host: { properties: { "class.td-side-sheet-title": "this.tdSideSheetTitle", "attr.id": "this.idAttr" } }, exportAs: ["CovalentSideSheetTitle"], ngImport: i0 });
|
627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetTitleDirective, decorators: [{
|
607
628
|
type: Directive,
|
608
629
|
args: [{
|
609
630
|
selector: '[td-side-sheet-title], [CovalentSideSheetTitle]',
|
610
631
|
exportAs: 'CovalentSideSheetTitle',
|
611
|
-
host: {
|
612
|
-
'class': 'td-side-sheet-title',
|
613
|
-
'[id]': 'id',
|
614
|
-
},
|
615
632
|
}]
|
616
|
-
}], function () {
|
633
|
+
}], ctorParameters: function () {
|
617
634
|
return [{ type: CovalentSideSheetRef, decorators: [{
|
618
635
|
type: Optional
|
619
636
|
}] }, { type: i0.ElementRef }, { type: CovalentSideSheet }];
|
620
|
-
}, { id: [{
|
637
|
+
}, propDecorators: { id: [{
|
621
638
|
type: Input
|
622
|
-
}]
|
623
|
-
|
639
|
+
}], tdSideSheetTitle: [{
|
640
|
+
type: HostBinding,
|
641
|
+
args: ['class.td-side-sheet-title']
|
642
|
+
}], idAttr: [{
|
643
|
+
type: HostBinding,
|
644
|
+
args: ['attr.id']
|
645
|
+
}] } });
|
624
646
|
/**
|
625
647
|
* Scrollable content container of a dialog.
|
626
648
|
*/
|
627
|
-
class
|
649
|
+
class CovalentSideSheetContentDirective {
|
650
|
+
constructor() {
|
651
|
+
this.tdSideSheetContent = true;
|
652
|
+
}
|
628
653
|
}
|
629
|
-
|
630
|
-
|
631
|
-
(
|
632
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetContent, [{
|
654
|
+
CovalentSideSheetContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
655
|
+
CovalentSideSheetContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetContentDirective, selector: "[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]", host: { properties: { "class.td-side-sheet-content": "this.tdSideSheetContent" } }, ngImport: i0 });
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContentDirective, decorators: [{
|
633
657
|
type: Directive,
|
634
658
|
args: [{
|
635
659
|
selector: `[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]`,
|
636
|
-
host: { class: 'td-side-sheet-content' },
|
637
660
|
}]
|
638
|
-
}],
|
639
|
-
|
661
|
+
}], propDecorators: { tdSideSheetContent: [{
|
662
|
+
type: HostBinding,
|
663
|
+
args: ['class.td-side-sheet-content']
|
664
|
+
}] } });
|
640
665
|
/**
|
641
666
|
* Container for the bottom action buttons in a dialog.
|
642
667
|
* Stays fixed to the bottom when scrolling.
|
643
668
|
*/
|
644
|
-
class
|
669
|
+
class CovalentSideSheetActionsDirective {
|
670
|
+
constructor() {
|
671
|
+
this.tdSideSheetActions = true;
|
672
|
+
}
|
645
673
|
}
|
646
|
-
|
647
|
-
|
648
|
-
(
|
649
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetActions, [{
|
674
|
+
CovalentSideSheetActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
675
|
+
CovalentSideSheetActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetActionsDirective, selector: "[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]", host: { properties: { "class.td-side-sheet-actions": "this.tdSideSheetActions" } }, ngImport: i0 });
|
676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetActionsDirective, decorators: [{
|
650
677
|
type: Directive,
|
651
678
|
args: [{
|
652
679
|
selector: `[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]`,
|
653
|
-
host: { class: 'td-side-sheet-actions' },
|
654
680
|
}]
|
655
|
-
}],
|
656
|
-
|
681
|
+
}], propDecorators: { tdSideSheetActions: [{
|
682
|
+
type: HostBinding,
|
683
|
+
args: ['class.td-side-sheet-actions']
|
684
|
+
}] } });
|
657
685
|
/**
|
658
686
|
* Container for the wrapper part of the dialog
|
659
687
|
*/
|
660
|
-
class
|
688
|
+
class CovalentSideSheetWrapperDirective {
|
689
|
+
constructor() {
|
690
|
+
this.tdSideSheetWrapper = true;
|
691
|
+
}
|
661
692
|
}
|
662
|
-
|
663
|
-
|
664
|
-
(
|
665
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentSideSheetWrapper, [{
|
693
|
+
CovalentSideSheetWrapperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetWrapperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
694
|
+
CovalentSideSheetWrapperDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: CovalentSideSheetWrapperDirective, selector: "[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]", host: { properties: { "class.td-side-sheet-wrapper": "this.tdSideSheetWrapper" } }, ngImport: i0 });
|
695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetWrapperDirective, decorators: [{
|
666
696
|
type: Directive,
|
667
697
|
args: [{
|
668
698
|
selector: `[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]`,
|
669
|
-
host: { class: 'td-side-sheet-wrapper' },
|
670
699
|
}]
|
671
|
-
}],
|
672
|
-
|
700
|
+
}], propDecorators: { tdSideSheetWrapper: [{
|
701
|
+
type: HostBinding,
|
702
|
+
args: ['class.td-side-sheet-wrapper']
|
703
|
+
}] } });
|
673
704
|
/**
|
674
705
|
* Finds the closest CovalentSideSheetRef to an element by looking at the DOM.
|
675
706
|
* @param element Element relative to which to look for a dialog.
|
676
707
|
* @param openDialogs References to the currently-open dialogs.
|
677
708
|
*/
|
678
709
|
function getClosestDialog(element, openDialogs) {
|
710
|
+
var _a;
|
679
711
|
let parent = element.nativeElement.parentElement;
|
680
712
|
while (parent && !parent.classList.contains('td-side-sheet-container')) {
|
681
713
|
parent = parent.parentElement;
|
682
714
|
}
|
683
|
-
return parent
|
715
|
+
return parent
|
716
|
+
? (_a = openDialogs.find((dialog) => dialog.id === (parent === null || parent === void 0 ? void 0 : parent.id))) !== null && _a !== void 0 ? _a : openDialogs[0]
|
717
|
+
: openDialogs[0];
|
684
718
|
}
|
685
719
|
|
686
720
|
class CovalentSideSheetModule {
|
687
721
|
}
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
722
|
+
CovalentSideSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
723
|
+
CovalentSideSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, declarations: [CovalentSideSheetContainerComponent,
|
724
|
+
CovalentSideSheetActionsDirective,
|
725
|
+
CovalentSideSheetCloseDirective,
|
726
|
+
CovalentSideSheetContentDirective,
|
727
|
+
CovalentSideSheetTitleDirective,
|
728
|
+
CovalentSideSheetWrapperDirective], imports: [PortalModule, MatDialogModule, MatCommonModule], exports: [CovalentSideSheetActionsDirective,
|
729
|
+
CovalentSideSheetCloseDirective,
|
730
|
+
CovalentSideSheetContentDirective,
|
731
|
+
CovalentSideSheetTitleDirective,
|
732
|
+
CovalentSideSheetWrapperDirective] });
|
733
|
+
CovalentSideSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, providers: [CovalentSideSheet], imports: [[PortalModule, MatDialogModule, MatCommonModule]] });
|
734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, decorators: [{
|
693
735
|
type: NgModule,
|
694
736
|
args: [{
|
695
737
|
declarations: [
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
738
|
+
CovalentSideSheetContainerComponent,
|
739
|
+
CovalentSideSheetActionsDirective,
|
740
|
+
CovalentSideSheetCloseDirective,
|
741
|
+
CovalentSideSheetContentDirective,
|
742
|
+
CovalentSideSheetTitleDirective,
|
743
|
+
CovalentSideSheetWrapperDirective,
|
702
744
|
],
|
703
745
|
exports: [
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
746
|
+
CovalentSideSheetActionsDirective,
|
747
|
+
CovalentSideSheetCloseDirective,
|
748
|
+
CovalentSideSheetContentDirective,
|
749
|
+
CovalentSideSheetTitleDirective,
|
750
|
+
CovalentSideSheetWrapperDirective,
|
709
751
|
],
|
710
752
|
imports: [PortalModule, MatDialogModule, MatCommonModule],
|
711
753
|
providers: [CovalentSideSheet],
|
712
754
|
}]
|
713
|
-
}]
|
714
|
-
})();
|
715
|
-
(function () {
|
716
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentSideSheetModule, { declarations: [CovalentSideSheetContainer,
|
717
|
-
CovalentSideSheetActions,
|
718
|
-
CovalentSideSheetClose,
|
719
|
-
CovalentSideSheetContent,
|
720
|
-
CovalentSideSheetTitle,
|
721
|
-
CovalentSideSheetWrapper], imports: [PortalModule, MatDialogModule, MatCommonModule], exports: [CovalentSideSheetActions,
|
722
|
-
CovalentSideSheetClose,
|
723
|
-
CovalentSideSheetContent,
|
724
|
-
CovalentSideSheetTitle,
|
725
|
-
CovalentSideSheetWrapper] });
|
726
|
-
})();
|
755
|
+
}] });
|
727
756
|
|
728
757
|
/**
|
729
758
|
* Generated bundle index. Do not edit.
|
730
759
|
*/
|
731
760
|
|
732
|
-
export { CovalentSideSheet,
|
761
|
+
export { CovalentSideSheet, CovalentSideSheetActionsDirective, CovalentSideSheetCloseDirective, CovalentSideSheetConfig, CovalentSideSheetContentDirective, CovalentSideSheetModule, CovalentSideSheetRef, CovalentSideSheetTitleDirective, CovalentSideSheetWrapperDirective, _CovalentSideSheetBase, _closeSideSheetVia };
|
733
762
|
//# sourceMappingURL=covalent-core-side-sheet.mjs.map
|