@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,33 +182,47 @@ class _CovalentSideSheetContainerBase extends BasePortalOutlet {
|
|
175
182
|
return element === activeElement || element.contains(activeElement);
|
176
183
|
}
|
177
184
|
}
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
type:
|
189
|
-
|
190
|
-
|
191
|
-
args: [DOCUMENT]
|
192
|
-
}] }, { type: CovalentSideSheetConfig }, { type: i1.FocusMonitor }]; }, { _portalOutlet: [{
|
193
|
-
type: ViewChild,
|
194
|
-
args: [CdkPortalOutlet, { static: true }]
|
195
|
-
}] }); })();
|
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: [{
|
188
|
+
type: Directive
|
189
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ConfigurableFocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
190
|
+
type: Optional
|
191
|
+
}, {
|
192
|
+
type: Inject,
|
193
|
+
args: [DOCUMENT]
|
194
|
+
}] }, { type: CovalentSideSheetConfig }, { type: i1.FocusMonitor }]; }, propDecorators: { _portalOutlet: [{
|
195
|
+
type: ViewChild,
|
196
|
+
args: [CdkPortalOutlet, { static: true }]
|
197
|
+
}] } });
|
196
198
|
/**
|
197
199
|
* Internal component that wraps the generated side-sheet content.
|
198
200
|
* This animation below is the only reason for duplicating most of the Material dialog code
|
199
201
|
*/
|
200
|
-
class
|
202
|
+
class CovalentSideSheetContainerComponent extends _CovalentSideSheetContainerBase {
|
201
203
|
constructor() {
|
202
204
|
super(...arguments);
|
203
205
|
/** State of the side-sheet animation. */
|
204
206
|
this._state = 'enter';
|
207
|
+
this.tdSideSheetContainerClass = true;
|
208
|
+
this.tabIndex = -1;
|
209
|
+
this.arialModal = true;
|
210
|
+
this.idAttr = this._id;
|
211
|
+
this.roleAttr = this._config.role;
|
212
|
+
this.arialLabelByAttr = this._config.ariaLabel
|
213
|
+
? null
|
214
|
+
: this._ariaLabelledBy;
|
215
|
+
this.arialDescribeByAttr = this._config.ariaDescribedBy || null;
|
216
|
+
this.arialLabelAttr = this._config.ariaLabel;
|
217
|
+
}
|
218
|
+
get sideSheetAnimationState() {
|
219
|
+
return this._state;
|
220
|
+
}
|
221
|
+
onAnimateStart($event) {
|
222
|
+
this._onAnimationStart($event);
|
223
|
+
}
|
224
|
+
onAnimateDone($event) {
|
225
|
+
this._onAnimationDone($event);
|
205
226
|
}
|
206
227
|
/** Callback, invoked whenever an animation on the host completes. */
|
207
228
|
_onAnimationDone({ toState, totalTime }) {
|
@@ -229,34 +250,45 @@ class CovalentSideSheetContainer extends _CovalentSideSheetContainerBase {
|
|
229
250
|
this._changeDetectorRef.markForCheck();
|
230
251
|
}
|
231
252
|
}
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
253
|
+
CovalentSideSheetContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
254
|
+
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 });
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContainerComponent, decorators: [{
|
256
|
+
type: Component,
|
257
|
+
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"] }]
|
258
|
+
}], propDecorators: { tdSideSheetContainerClass: [{
|
259
|
+
type: HostBinding,
|
260
|
+
args: ['class.td-side-sheet-container']
|
261
|
+
}], tabIndex: [{
|
262
|
+
type: HostBinding,
|
263
|
+
args: ['tabindex']
|
264
|
+
}], arialModal: [{
|
265
|
+
type: HostBinding,
|
266
|
+
args: ['aria-modal']
|
267
|
+
}], idAttr: [{
|
268
|
+
type: HostBinding,
|
269
|
+
args: ['id']
|
270
|
+
}], roleAttr: [{
|
271
|
+
type: HostBinding,
|
272
|
+
args: ['attr.role']
|
273
|
+
}], arialLabelByAttr: [{
|
274
|
+
type: HostBinding,
|
275
|
+
args: ['attr.aria-labelledby']
|
276
|
+
}], arialDescribeByAttr: [{
|
277
|
+
type: HostBinding,
|
278
|
+
args: ['attr.aria-describedby']
|
279
|
+
}], arialLabelAttr: [{
|
280
|
+
type: HostBinding,
|
281
|
+
args: ['attr.aria-label']
|
282
|
+
}], sideSheetAnimationState: [{
|
283
|
+
type: HostBinding,
|
284
|
+
args: ['@sideSheetContainer']
|
285
|
+
}], onAnimateStart: [{
|
286
|
+
type: HostListener,
|
287
|
+
args: ['@sideSheetContainer.start', ['$event']]
|
288
|
+
}], onAnimateDone: [{
|
289
|
+
type: HostListener,
|
290
|
+
args: ['@sideSheetContainer.done', ['$event']]
|
291
|
+
}] } });
|
260
292
|
|
261
293
|
// Counter for unique dialog ids.
|
262
294
|
let uniqueId = 0;
|
@@ -298,10 +330,16 @@ class _CovalentSideSheetBase {
|
|
298
330
|
}
|
299
331
|
/** Keeps track of the currently-open side-sheets. */
|
300
332
|
get openSideSheets() {
|
301
|
-
return this._parentSideSheet
|
333
|
+
return this._parentSideSheet
|
334
|
+
? this._parentSideSheet.openSideSheets
|
335
|
+
: this._openSideSheetsAtThisLevel;
|
302
336
|
}
|
303
337
|
open(componentOrTemplateRef, config) {
|
304
|
-
config = {
|
338
|
+
config = {
|
339
|
+
...(this._defaultOptions || new CovalentSideSheetConfig()),
|
340
|
+
...this.defaultSidebarConfig,
|
341
|
+
...config,
|
342
|
+
};
|
305
343
|
const overlayRef = this._createOverlay(config);
|
306
344
|
const sideSheetContainer = this._attachSideSheetContainer(overlayRef, config);
|
307
345
|
const sideSheetRef = this._attachSideSheetContent(componentOrTemplateRef, sideSheetContainer, overlayRef, config);
|
@@ -359,7 +397,8 @@ class _CovalentSideSheetBase {
|
|
359
397
|
maxWidth: config.maxWidth,
|
360
398
|
});
|
361
399
|
const overlayRef = this._overlay.create(overlayConfig);
|
362
|
-
const positionStrategy = overlayRef.getConfig()
|
400
|
+
const positionStrategy = overlayRef.getConfig()
|
401
|
+
.positionStrategy;
|
363
402
|
positionStrategy.right('0px');
|
364
403
|
return overlayRef;
|
365
404
|
}
|
@@ -393,7 +432,9 @@ class _CovalentSideSheetBase {
|
|
393
432
|
// to modify and close it.
|
394
433
|
const sideSheetRef = new this._sideSheetRefConstructor(overlayRef, sideSheetContainer, config.id);
|
395
434
|
if (componentOrTemplateRef instanceof TemplateRef) {
|
396
|
-
sideSheetContainer.attachTemplatePortal(
|
435
|
+
sideSheetContainer.attachTemplatePortal(
|
436
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
437
|
+
new TemplatePortal(componentOrTemplateRef, null, {
|
397
438
|
$implicit: config.data,
|
398
439
|
sideSheetRef,
|
399
440
|
}));
|
@@ -418,13 +459,17 @@ class _CovalentSideSheetBase {
|
|
418
459
|
{ provide: this._sideSheetRefConstructor, useValue: sideSheetRef },
|
419
460
|
];
|
420
461
|
if (config.direction &&
|
421
|
-
(!userInjector ||
|
462
|
+
(!userInjector ||
|
463
|
+
!userInjector.get(Directionality, null, InjectFlags.Optional))) {
|
422
464
|
providers.push({
|
423
465
|
provide: Directionality,
|
424
466
|
useValue: { value: config.direction, change: of() },
|
425
467
|
});
|
426
468
|
}
|
427
|
-
return Injector.create({
|
469
|
+
return Injector.create({
|
470
|
+
parent: userInjector || this._injector,
|
471
|
+
providers,
|
472
|
+
});
|
428
473
|
}
|
429
474
|
/**
|
430
475
|
* Removes a side sheet from the array of open side sheets.
|
@@ -444,33 +489,33 @@ class _CovalentSideSheetBase {
|
|
444
489
|
}
|
445
490
|
}
|
446
491
|
}
|
447
|
-
|
448
|
-
|
449
|
-
(
|
450
|
-
|
451
|
-
|
492
|
+
_CovalentSideSheetBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
493
|
+
_CovalentSideSheetBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: _CovalentSideSheetBase, ngImport: i0 });
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: _CovalentSideSheetBase, decorators: [{
|
495
|
+
type: Directive
|
496
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: undefined }, { type: undefined }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }]; } });
|
452
497
|
/**
|
453
498
|
* Service to open Covalent Design side-sheet.
|
454
499
|
*/
|
455
500
|
class CovalentSideSheet extends _CovalentSideSheetBase {
|
456
501
|
constructor(overlay, injector, defaultOptions, parentSideSheet) {
|
457
|
-
super(overlay, injector, defaultOptions, parentSideSheet, CovalentSideSheetRef,
|
502
|
+
super(overlay, injector, defaultOptions, parentSideSheet, CovalentSideSheetRef, CovalentSideSheetContainerComponent, MAT_DIALOG_DATA);
|
458
503
|
}
|
459
504
|
}
|
460
|
-
|
461
|
-
|
462
|
-
(
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
505
|
+
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 });
|
506
|
+
CovalentSideSheet.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheet });
|
507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheet, decorators: [{
|
508
|
+
type: Injectable
|
509
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: CovalentSideSheetConfig, decorators: [{
|
510
|
+
type: Optional
|
511
|
+
}, {
|
512
|
+
type: Inject,
|
513
|
+
args: [MAT_DIALOG_DEFAULT_OPTIONS]
|
514
|
+
}] }, { type: CovalentSideSheet, decorators: [{
|
515
|
+
type: Optional
|
516
|
+
}, {
|
517
|
+
type: SkipSelf
|
518
|
+
}] }]; } });
|
474
519
|
|
475
520
|
/* tslint:disable */
|
476
521
|
/** Counter used to generate unique IDs for dialog elements. */
|
@@ -478,7 +523,7 @@ let dialogElementUid = 0;
|
|
478
523
|
/**
|
479
524
|
* Button that will close the current dialog.
|
480
525
|
*/
|
481
|
-
class
|
526
|
+
class CovalentSideSheetCloseDirective {
|
482
527
|
constructor(dialogRef, _elementRef, _dialog) {
|
483
528
|
this.dialogRef = dialogRef;
|
484
529
|
this._elementRef = _elementRef;
|
@@ -486,6 +531,9 @@ class CovalentSideSheetClose {
|
|
486
531
|
/** Default to "button" to prevents accidental form submits. */
|
487
532
|
this.type = 'button';
|
488
533
|
}
|
534
|
+
onClick($event) {
|
535
|
+
this._onButtonClick($event);
|
536
|
+
}
|
489
537
|
ngOnInit() {
|
490
538
|
if (!this.dialogRef) {
|
491
539
|
// When this directive is included in a dialog via TemplateRef (rather than being
|
@@ -497,7 +545,8 @@ class CovalentSideSheetClose {
|
|
497
545
|
}
|
498
546
|
}
|
499
547
|
ngOnChanges(changes) {
|
500
|
-
const proxiedChange = changes['_CovalentSideSheetClose'] ||
|
548
|
+
const proxiedChange = changes['_CovalentSideSheetClose'] ||
|
549
|
+
changes['_CovalentSideSheetCloseResult'];
|
501
550
|
if (proxiedChange) {
|
502
551
|
this.dialogResult = proxiedChange.currentValue;
|
503
552
|
}
|
@@ -510,41 +559,41 @@ class CovalentSideSheetClose {
|
|
510
559
|
_closeSideSheetVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);
|
511
560
|
}
|
512
561
|
}
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
}]
|
530
|
-
|
531
|
-
|
532
|
-
}
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
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: [{
|
565
|
+
type: Directive,
|
566
|
+
args: [{
|
567
|
+
selector: '[td-side-sheet-close], [CovalentSideSheetClose]',
|
568
|
+
exportAs: 'CovalentSideSheetClose',
|
569
|
+
}]
|
570
|
+
}], ctorParameters: function () { return [{ type: CovalentSideSheetRef, decorators: [{
|
571
|
+
type: Optional
|
572
|
+
}] }, { type: i0.ElementRef }, { type: CovalentSideSheet }]; }, propDecorators: { ariaLabel: [{
|
573
|
+
type: HostBinding,
|
574
|
+
args: ['attr.arial-label']
|
575
|
+
}, {
|
576
|
+
type: Input,
|
577
|
+
args: ['aria-label']
|
578
|
+
}], type: [{
|
579
|
+
type: HostBinding,
|
580
|
+
args: ['attr.type']
|
581
|
+
}, {
|
582
|
+
type: Input
|
583
|
+
}], dialogResult: [{
|
584
|
+
type: Input,
|
585
|
+
args: ['td-side-sheet-close']
|
586
|
+
}], _CovalentSideSheetClose: [{
|
587
|
+
type: Input,
|
588
|
+
args: ['CovalentSideSheetClose']
|
589
|
+
}], onClick: [{
|
590
|
+
type: HostListener,
|
591
|
+
args: ['click', ['$event']]
|
592
|
+
}] } });
|
544
593
|
/**
|
545
594
|
* Title of a side sheet element. Stays fixed to the top of the side sheet when scrolling.
|
546
595
|
*/
|
547
|
-
class
|
596
|
+
class CovalentSideSheetTitleDirective {
|
548
597
|
constructor(
|
549
598
|
// The dialog title directive is always used in combination with a `CovalentSideSheetRef`.
|
550
599
|
// tslint:disable-next-line: lightweight-tokens
|
@@ -554,6 +603,8 @@ class CovalentSideSheetTitle {
|
|
554
603
|
this._dialog = _dialog;
|
555
604
|
/** Unique id for the dialog title. If none is supplied, it will be auto-generated. */
|
556
605
|
this.id = `td-side-sheet-title-${dialogElementUid++}`;
|
606
|
+
this.tdSideSheetTitle = true;
|
607
|
+
this.idAttr = this.id;
|
557
608
|
}
|
558
609
|
ngOnInit() {
|
559
610
|
if (this._dialogRef) {
|
@@ -569,68 +620,83 @@ class CovalentSideSheetTitle {
|
|
569
620
|
}
|
570
621
|
}
|
571
622
|
}
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
623
|
+
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 });
|
624
|
+
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 });
|
625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetTitleDirective, decorators: [{
|
626
|
+
type: Directive,
|
627
|
+
args: [{
|
628
|
+
selector: '[td-side-sheet-title], [CovalentSideSheetTitle]',
|
629
|
+
exportAs: 'CovalentSideSheetTitle',
|
630
|
+
}]
|
631
|
+
}], ctorParameters: function () { return [{ type: CovalentSideSheetRef, decorators: [{
|
632
|
+
type: Optional
|
633
|
+
}] }, { type: i0.ElementRef }, { type: CovalentSideSheet }]; }, propDecorators: { id: [{
|
634
|
+
type: Input
|
635
|
+
}], tdSideSheetTitle: [{
|
636
|
+
type: HostBinding,
|
637
|
+
args: ['class.td-side-sheet-title']
|
638
|
+
}], idAttr: [{
|
639
|
+
type: HostBinding,
|
640
|
+
args: ['attr.id']
|
641
|
+
}] } });
|
591
642
|
/**
|
592
643
|
* Scrollable content container of a dialog.
|
593
644
|
*/
|
594
|
-
class
|
645
|
+
class CovalentSideSheetContentDirective {
|
646
|
+
constructor() {
|
647
|
+
this.tdSideSheetContent = true;
|
648
|
+
}
|
595
649
|
}
|
596
|
-
|
597
|
-
|
598
|
-
(
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
650
|
+
CovalentSideSheetContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
651
|
+
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 });
|
652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetContentDirective, decorators: [{
|
653
|
+
type: Directive,
|
654
|
+
args: [{
|
655
|
+
selector: `[td-side-sheet-content], td-side-sheet-content, [CovalentSideSheetContent]`,
|
656
|
+
}]
|
657
|
+
}], propDecorators: { tdSideSheetContent: [{
|
658
|
+
type: HostBinding,
|
659
|
+
args: ['class.td-side-sheet-content']
|
660
|
+
}] } });
|
605
661
|
/**
|
606
662
|
* Container for the bottom action buttons in a dialog.
|
607
663
|
* Stays fixed to the bottom when scrolling.
|
608
664
|
*/
|
609
|
-
class
|
665
|
+
class CovalentSideSheetActionsDirective {
|
666
|
+
constructor() {
|
667
|
+
this.tdSideSheetActions = true;
|
668
|
+
}
|
610
669
|
}
|
611
|
-
|
612
|
-
|
613
|
-
(
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
670
|
+
CovalentSideSheetActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetActionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
671
|
+
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 });
|
672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetActionsDirective, decorators: [{
|
673
|
+
type: Directive,
|
674
|
+
args: [{
|
675
|
+
selector: `[td-side-sheet-actions], td-side-sheet-actions, [CovalentSideSheetActions]`,
|
676
|
+
}]
|
677
|
+
}], propDecorators: { tdSideSheetActions: [{
|
678
|
+
type: HostBinding,
|
679
|
+
args: ['class.td-side-sheet-actions']
|
680
|
+
}] } });
|
620
681
|
/**
|
621
682
|
* Container for the wrapper part of the dialog
|
622
683
|
*/
|
623
|
-
class
|
684
|
+
class CovalentSideSheetWrapperDirective {
|
685
|
+
constructor() {
|
686
|
+
this.tdSideSheetWrapper = true;
|
687
|
+
}
|
624
688
|
}
|
625
|
-
|
626
|
-
|
627
|
-
(
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
689
|
+
CovalentSideSheetWrapperDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetWrapperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
690
|
+
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 });
|
691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetWrapperDirective, decorators: [{
|
692
|
+
type: Directive,
|
693
|
+
args: [{
|
694
|
+
selector: `[td-side-sheet-wrapper], td-side-sheet-wrapper, [CovalentSideSheetWrapper]`,
|
695
|
+
}]
|
696
|
+
}], propDecorators: { tdSideSheetWrapper: [{
|
697
|
+
type: HostBinding,
|
698
|
+
args: ['class.td-side-sheet-wrapper']
|
699
|
+
}] } });
|
634
700
|
/**
|
635
701
|
* Finds the closest CovalentSideSheetRef to an element by looking at the DOM.
|
636
702
|
* @param element Element relative to which to look for a dialog.
|
@@ -641,50 +707,51 @@ function getClosestDialog(element, openDialogs) {
|
|
641
707
|
while (parent && !parent.classList.contains('td-side-sheet-container')) {
|
642
708
|
parent = parent.parentElement;
|
643
709
|
}
|
644
|
-
return parent
|
710
|
+
return parent
|
711
|
+
? openDialogs.find((dialog) => dialog.id === parent?.id) ?? openDialogs[0]
|
712
|
+
: openDialogs[0];
|
645
713
|
}
|
646
714
|
|
647
715
|
class CovalentSideSheetModule {
|
648
716
|
}
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
CovalentSideSheetWrapper] }); })();
|
717
|
+
CovalentSideSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
718
|
+
CovalentSideSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, declarations: [CovalentSideSheetContainerComponent,
|
719
|
+
CovalentSideSheetActionsDirective,
|
720
|
+
CovalentSideSheetCloseDirective,
|
721
|
+
CovalentSideSheetContentDirective,
|
722
|
+
CovalentSideSheetTitleDirective,
|
723
|
+
CovalentSideSheetWrapperDirective], imports: [PortalModule, MatDialogModule, MatCommonModule], exports: [CovalentSideSheetActionsDirective,
|
724
|
+
CovalentSideSheetCloseDirective,
|
725
|
+
CovalentSideSheetContentDirective,
|
726
|
+
CovalentSideSheetTitleDirective,
|
727
|
+
CovalentSideSheetWrapperDirective] });
|
728
|
+
CovalentSideSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, providers: [CovalentSideSheet], imports: [[PortalModule, MatDialogModule, MatCommonModule]] });
|
729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentSideSheetModule, decorators: [{
|
730
|
+
type: NgModule,
|
731
|
+
args: [{
|
732
|
+
declarations: [
|
733
|
+
CovalentSideSheetContainerComponent,
|
734
|
+
CovalentSideSheetActionsDirective,
|
735
|
+
CovalentSideSheetCloseDirective,
|
736
|
+
CovalentSideSheetContentDirective,
|
737
|
+
CovalentSideSheetTitleDirective,
|
738
|
+
CovalentSideSheetWrapperDirective,
|
739
|
+
],
|
740
|
+
exports: [
|
741
|
+
CovalentSideSheetActionsDirective,
|
742
|
+
CovalentSideSheetCloseDirective,
|
743
|
+
CovalentSideSheetContentDirective,
|
744
|
+
CovalentSideSheetTitleDirective,
|
745
|
+
CovalentSideSheetWrapperDirective,
|
746
|
+
],
|
747
|
+
imports: [PortalModule, MatDialogModule, MatCommonModule],
|
748
|
+
providers: [CovalentSideSheet],
|
749
|
+
}]
|
750
|
+
}] });
|
684
751
|
|
685
752
|
/**
|
686
753
|
* Generated bundle index. Do not edit.
|
687
754
|
*/
|
688
755
|
|
689
|
-
export { CovalentSideSheet,
|
756
|
+
export { CovalentSideSheet, CovalentSideSheetActionsDirective, CovalentSideSheetCloseDirective, CovalentSideSheetConfig, CovalentSideSheetContentDirective, CovalentSideSheetModule, CovalentSideSheetRef, CovalentSideSheetTitleDirective, CovalentSideSheetWrapperDirective, _CovalentSideSheetBase, _closeSideSheetVia };
|
690
757
|
//# sourceMappingURL=covalent-core-side-sheet.mjs.map
|