@daffodil/design 0.81.1 → 0.83.0
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/accordion/README.md +44 -29
- package/accordion/accordion/accordion/accordion.component.d.ts +3 -0
- package/accordion/accordion/accordion-item/accordion-item.component.d.ts +23 -12
- package/accordion/accordion/accordion-item-title/accordion-item-title.directive.d.ts +3 -0
- package/accordion/accordion.d.ts +5 -0
- package/accordion/examples/disabled-accordion/disabled-accordion.component.d.ts +5 -0
- package/accordion/examples/initially-expanded-accordion/initially-expanded-accordion.component.d.ts +5 -0
- package/accordion/examples/public_api.d.ts +2 -0
- package/accordion/src/accordion-theme.scss +28 -6
- package/article/README.md +4 -3
- package/article/article.d.ts +3 -0
- package/article/src/article-theme.scss +128 -51
- package/breadcrumb/README.md +38 -28
- package/breadcrumb/breadcrumb/breadcrumb.component.d.ts +15 -2
- package/breadcrumb/breadcrumb-item/breadcrumb-item.directive.d.ts +18 -4
- package/breadcrumb/breadcrumb.d.ts +3 -0
- package/breadcrumb/examples/iterated-breadcrumb/iterated-breadcrumb.component.d.ts +6 -0
- package/breadcrumb/public_api.d.ts +2 -2
- package/button/README.md +43 -23
- package/button/button/basic/button.component.d.ts +5 -1
- package/button/button/button-base.directive.d.ts +11 -3
- package/button/button/button-sizable.directive.d.ts +1 -1
- package/button/button/raised/raised.component.d.ts +2 -0
- package/button/button/stroked/stroked.component.d.ts +5 -1
- package/button/button.d.ts +4 -2
- package/button/button.module.d.ts +1 -2
- package/button/examples/elevated-button/elevated-button.component.d.ts +6 -0
- package/button/examples/examples.d.ts +2 -1
- package/button/examples/public_api.d.ts +1 -0
- package/button/public_api.d.ts +0 -1
- package/button/src/button/basic/button-theme.scss +185 -80
- package/button/src/button/button-base.scss +41 -16
- package/button/src/button/flat/flat-theme.scss +144 -85
- package/button/src/button/icon/icon-theme.scss +183 -79
- package/button/src/button/raised/raised-theme.scss +2 -7
- package/button/src/button/stroked/stroked-theme.scss +128 -94
- package/button/src/button/underline/underline-theme.scss +112 -44
- package/callout/README.md +4 -3
- package/callout/callout.d.ts +3 -0
- package/card/README.md +6 -3
- package/card/card/basic/basic.component.d.ts +7 -0
- package/card/card/raised/raised.component.d.ts +7 -0
- package/card/card/stroked/stroked.component.d.ts +7 -0
- package/card/card-base.directive.d.ts +25 -0
- package/card/card.d.ts +18 -1
- package/card/card.module.d.ts +10 -8
- package/card/examples/card-theming/card-theming.component.d.ts +2 -1
- package/card/examples/public_api.d.ts +1 -1
- package/card/public_api.d.ts +6 -1
- package/card/src/card/raised/raised-theme.scss +30 -0
- package/card/src/card/stroked/stroked-theme.scss +135 -0
- package/card/src/card-base-theme.scss +197 -0
- package/card/src/card-base.scss +134 -0
- package/container/README.md +5 -3
- package/container/container.d.ts +3 -0
- package/core/colorable/colorable.d.ts +20 -14
- package/core/colorable/colorable.directive.d.ts +9 -6
- package/fesm2022/daffodil-design-accordion-examples.mjs +28 -4
- package/fesm2022/daffodil-design-accordion-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-accordion.mjs +56 -29
- package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
- package/fesm2022/daffodil-design-article-examples.mjs +30 -30
- package/fesm2022/daffodil-design-article.mjs +14 -11
- package/fesm2022/daffodil-design-article.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs +24 -4
- package/fesm2022/daffodil-design-breadcrumb-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-breadcrumb.mjs +78 -40
- package/fesm2022/daffodil-design-breadcrumb.mjs.map +1 -1
- package/fesm2022/daffodil-design-button-examples.mjs +55 -33
- package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-button.mjs +79 -69
- package/fesm2022/daffodil-design-button.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout-examples.mjs +12 -12
- package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-callout.mjs +25 -22
- package/fesm2022/daffodil-design-callout.mjs.map +1 -1
- package/fesm2022/daffodil-design-card-examples.mjs +35 -31
- package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-card.mjs +140 -86
- package/fesm2022/daffodil-design-card.mjs.map +1 -1
- package/fesm2022/daffodil-design-checkbox-examples.mjs +6 -6
- package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-container-examples.mjs +3 -3
- package/fesm2022/daffodil-design-container.mjs +10 -7
- package/fesm2022/daffodil-design-container.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero-examples.mjs +12 -12
- package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-hero.mjs +25 -22
- package/fesm2022/daffodil-design-hero.mjs.map +1 -1
- package/fesm2022/daffodil-design-image-examples.mjs +9 -9
- package/fesm2022/daffodil-design-image.mjs +36 -19
- package/fesm2022/daffodil-design-image.mjs.map +1 -1
- package/fesm2022/daffodil-design-input-examples.mjs +12 -12
- package/fesm2022/daffodil-design-link-set.mjs +19 -16
- package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
- package/fesm2022/daffodil-design-list-examples.mjs +12 -12
- package/fesm2022/daffodil-design-list.mjs +13 -10
- package/fesm2022/daffodil-design-list.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon-examples.mjs +4 -4
- package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-loading-icon.mjs +11 -8
- package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery-examples.mjs +62 -13
- package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-media-gallery.mjs +204 -250
- package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu-examples.mjs +6 -6
- package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-menu.mjs +16 -16
- package/fesm2022/daffodil-design-modal-examples.mjs +7 -7
- package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-modal.mjs +28 -25
- package/fesm2022/daffodil-design-modal.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar-examples.mjs +12 -12
- package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-navbar.mjs +10 -7
- package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification-examples.mjs +17 -16
- package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-notification.mjs +23 -20
- package/fesm2022/daffodil-design-notification.mjs.map +1 -1
- package/fesm2022/daffodil-design-paginator-examples.mjs +6 -6
- package/fesm2022/daffodil-design-paginator.mjs +13 -7
- package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -10
- package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-progress-bar.mjs +13 -13
- package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
- package/fesm2022/daffodil-design-quantity-field-examples.mjs +12 -12
- package/fesm2022/daffodil-design-radio-examples.mjs +3 -3
- package/fesm2022/daffodil-design-sidebar-examples.mjs +14 -14
- package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-sidebar.mjs +150 -61
- package/fesm2022/daffodil-design-sidebar.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch-examples.mjs +15 -15
- package/fesm2022/daffodil-design-switch-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-switch.mjs +38 -10
- package/fesm2022/daffodil-design-switch.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs-examples.mjs +23 -17
- package/fesm2022/daffodil-design-tabs-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-tabs.mjs +67 -35
- package/fesm2022/daffodil-design-tabs.mjs.map +1 -1
- package/fesm2022/daffodil-design-text-snippet-examples.mjs +3 -3
- package/fesm2022/daffodil-design-text-snippet.mjs +4 -5
- package/fesm2022/daffodil-design-text-snippet.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast-examples.mjs +40 -15
- package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
- package/fesm2022/daffodil-design-toast.mjs +296 -239
- package/fesm2022/daffodil-design-toast.mjs.map +1 -1
- package/fesm2022/daffodil-design-tree-examples.mjs +6 -6
- package/fesm2022/daffodil-design-tree.mjs +15 -12
- package/fesm2022/daffodil-design-tree.mjs.map +1 -1
- package/fesm2022/daffodil-design-youtube-player.mjs +104 -0
- package/fesm2022/daffodil-design-youtube-player.mjs.map +1 -0
- package/fesm2022/daffodil-design.mjs +167 -155
- package/fesm2022/daffodil-design.mjs.map +1 -1
- package/hero/README.md +4 -3
- package/hero/hero.d.ts +3 -0
- package/image/README.md +4 -3
- package/image/image/image.component.d.ts +22 -1
- package/image/image.d.ts +3 -0
- package/link-set/README.md +4 -3
- package/link-set/link-set.d.ts +3 -0
- package/list/README.md +4 -3
- package/list/list.d.ts +3 -0
- package/loading-icon/README.md +10 -7
- package/loading-icon/loading-icon.d.ts +3 -0
- package/loading-icon/src/loading-icon-theme.scss +66 -38
- package/media-gallery/README.md +19 -10
- package/media-gallery/examples/iterated-media-gallery/iterated-media-gallery.component.d.ts +13 -0
- package/media-gallery/examples/media-gallery-with-video/media-gallery-with-video.component.d.ts +5 -0
- package/media-gallery/examples/public_api.d.ts +2 -0
- package/media-gallery/helpers/media-gallery-registration.interface.d.ts +1 -1
- package/media-gallery/media-gallery/media-gallery.component.d.ts +89 -11
- package/media-gallery/media-gallery.d.ts +4 -2
- package/media-gallery/media-gallery.module.d.ts +1 -2
- package/media-gallery/public_api.d.ts +3 -4
- package/media-gallery/src/media-gallery-theme.scss +30 -4
- package/media-gallery/thumbnail/thumbnail.directive.d.ts +45 -22
- package/menu/README.md +1 -2
- package/modal/README.md +3 -2
- package/modal/modal.d.ts +3 -0
- package/navbar/README.md +3 -2
- package/navbar/navbar.d.ts +3 -0
- package/notification/README.md +5 -4
- package/notification/notification.d.ts +3 -0
- package/notification/src/notification-theme.scss +62 -23
- package/package.json +1 -1
- package/paginator/README.md +3 -2
- package/paginator/paginator/paginator.component.d.ts +3 -0
- package/paginator/paginator.d.ts +3 -0
- package/progress-bar/README.md +5 -6
- package/progress-bar/progress-bar.component.d.ts +0 -3
- package/progress-bar/progress-bar.d.ts +3 -0
- package/progress-bar/src/progress-bar-theme.scss +17 -8
- package/scss/theme.scss +36 -17
- package/scss/theming/_configure-theme.scss +2 -0
- package/scss/theming/_index.scss +1 -0
- package/scss/theming/_light-dark.scss +45 -0
- package/sidebar/README.md +20 -21
- package/sidebar/helper/sidebar-mode.d.ts +9 -15
- package/sidebar/public_api.d.ts +10 -11
- package/sidebar/sidebar/sidebar.component.d.ts +22 -7
- package/sidebar/sidebar-footer/sidebar-footer.component.d.ts +11 -0
- package/sidebar/sidebar-header/sidebar-header-title/sidebar-header-title.directive.d.ts +8 -0
- package/sidebar/sidebar-header/sidebar-header.component.d.ts +19 -1
- package/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +36 -15
- package/sidebar/sidebar-viewport-backdrop/sidebar-viewport-backdrop.component.d.ts +17 -0
- package/sidebar/sidebar.d.ts +4 -2
- package/sidebar/sidebar.module.d.ts +1 -2
- package/switch/README.md +3 -2
- package/switch/src/switch-theme.scss +29 -10
- package/switch/switch/switch.component.d.ts +31 -6
- package/switch/switch.d.ts +3 -0
- package/tabs/README.md +33 -3
- package/tabs/src/tabs-theme.scss +31 -13
- package/tabs/tabs/tab/tab.component.d.ts +1 -1
- package/tabs/tabs/tab-label/tab-label.component.d.ts +6 -0
- package/tabs/tabs/tab-panel/tab-panel.component.d.ts +8 -0
- package/tabs/tabs/tabs.component.d.ts +21 -4
- package/tabs/tabs.d.ts +8 -2
- package/text-snippet/README.md +19 -1
- package/toast/README.md +21 -151
- package/toast/examples/dismissible-toast/dismissible-toast.component.d.ts +11 -0
- package/toast/examples/public_api.d.ts +2 -1
- package/toast/interfaces/toast-action.d.ts +22 -11
- package/toast/interfaces/toast-action.type.d.ts +10 -0
- package/toast/interfaces/toast.d.ts +11 -5
- package/toast/options/daff-toast-options.d.ts +2 -1
- package/toast/public_api.d.ts +2 -6
- package/toast/service/position.service.d.ts +9 -1
- package/toast/service/toast.service.d.ts +63 -0
- package/toast/src/toast-theme.scss +80 -33
- package/toast/toast/toast-config.d.ts +24 -1
- package/toast/toast/toast-provider.d.ts +16 -0
- package/toast/toast/toast.component.d.ts +20 -1
- package/toast/toast-actions/toast-actions.directive.d.ts +3 -0
- package/toast/toast-message/toast-message.directive.d.ts +3 -0
- package/toast/toast-title/toast-title.directive.d.ts +3 -0
- package/tree/README.md +6 -10
- package/tree/src/tree-theme.scss +39 -13
- package/tree/tree.d.ts +3 -0
- package/youtube-player/index.d.ts +1 -0
- package/youtube-player/public_api.d.ts +3 -0
- package/youtube-player/safe-url.pipe.d.ts +10 -0
- package/youtube-player/youtube-player.component.d.ts +23 -0
- package/youtube-player/youtube-player.d.ts +6 -0
- package/card/card/card.component.d.ts +0 -48
- package/card/src/card-theme-variants/basic-card.scss +0 -6
- package/card/src/card-theme-variants/linkable-card.scss +0 -16
- package/card/src/card-theme-variants/stroked-card.scss +0 -3
- package/card/src/card-theme.scss +0 -170
- package/media-gallery/media-renderer/media-renderer.component.d.ts +0 -29
- package/media-gallery/registry/media-gallery.registry.d.ts +0 -34
- package/media-gallery/thumbnail/thumbnail-compat.token.d.ts +0 -1
- package/media-gallery/thumbnail/thumbnail-registration.interface.d.ts +0 -9
- package/scss/theming/prebuilt/internal-theme.scss +0 -13
- package/toast/toast.module.d.ts +0 -19
package/scss/theme.scss
CHANGED
@@ -33,7 +33,9 @@
|
|
33
33
|
@use '../loading-icon/src/loading-icon-theme' as loading-icon;
|
34
34
|
@use '../accordion/src/accordion-theme' as accordion;
|
35
35
|
@use '../callout/src/callout-theme' as callout;
|
36
|
-
@use '../card/src/card-theme' as card;
|
36
|
+
@use '../card/src/card-base-theme' as card-base;
|
37
|
+
@use '../card/src/card/raised/raised-theme' as raised-card;
|
38
|
+
@use '../card/src/card/stroked/stroked-theme' as stroked-card;
|
37
39
|
@use '../hero/src/hero-theme' as hero;
|
38
40
|
@use '../list/src/list-theme' as list;
|
39
41
|
@use '../media-gallery/src/media-gallery-theme' as media-gallery;
|
@@ -51,52 +53,69 @@
|
|
51
53
|
@use '../toast/src/toast-theme' as toast;
|
52
54
|
|
53
55
|
//
|
54
|
-
// Generates the styles of
|
56
|
+
// Generates the styles of `@daffodil/design`'s component themes.
|
55
57
|
//
|
56
|
-
//
|
58
|
+
// @usage
|
57
59
|
// ```scss
|
58
|
-
// @use '@daffodil/design/scss/theme';
|
60
|
+
// @use '@daffodil/design/scss/theme' as daff-theme;
|
59
61
|
//
|
60
|
-
// @include daff-theme($theme);
|
62
|
+
// @include daff-theme.daff-component-themes($theme);
|
61
63
|
// ```
|
62
|
-
@mixin daff-
|
64
|
+
@mixin daff-component-themes($theme) {
|
63
65
|
// CSS variables
|
64
66
|
@include variables.daff-theme-css-variables($theme);
|
65
67
|
|
66
68
|
// Mixins
|
67
69
|
@include skeleton.daff-skeleton-theme($theme);
|
68
70
|
|
69
|
-
|
71
|
+
@include accordion.daff-accordion-theme($theme);
|
72
|
+
@include article.daff-article-theme($theme);
|
73
|
+
@include breadcrumb.daff-breadcrumb-theme($theme);
|
74
|
+
|
70
75
|
@include button.daff-button-theme($theme);
|
71
76
|
@include flat-button.daff-flat-button-theme($theme);
|
72
77
|
@include icon-button.daff-icon-button-theme($theme);
|
73
78
|
@include raised-button.daff-raised-button-theme($theme);
|
74
79
|
@include stroked-button.daff-stroked-button-theme($theme);
|
75
80
|
@include underline-button.daff-underline-button-theme($theme);
|
76
|
-
|
77
|
-
@include
|
81
|
+
|
82
|
+
@include callout.daff-callout-theme($theme);
|
83
|
+
@include card-base.daff-card-base-theme($theme);
|
84
|
+
@include raised-card.daff-raised-card-theme($theme);
|
85
|
+
@include stroked-card.daff-stroked-card-theme($theme);
|
86
|
+
|
78
87
|
@include form-field.daff-form-field-theme($theme);
|
88
|
+
@include error-message.daff-error-message-theme($theme);
|
79
89
|
@include input.daff-input-theme($theme);
|
80
90
|
@include native-select.daff-native-select-theme($theme);
|
81
|
-
@include loading-icon.daff-loading-icon-theme($theme);
|
82
|
-
@include progress-bar.daff-progress-bar-theme($theme);
|
83
91
|
|
84
|
-
// Molecules
|
85
|
-
@include accordion.daff-accordion-theme($theme);
|
86
|
-
@include article.daff-article-theme($theme);
|
87
|
-
@include callout.daff-callout-theme($theme);
|
88
|
-
@include card.daff-card-theme($theme);
|
89
92
|
@include hero.daff-hero-theme($theme);
|
90
93
|
@include list.daff-list-theme($theme);
|
94
|
+
@include loading-icon.daff-loading-icon-theme($theme);
|
91
95
|
@include media-gallery.daff-media-gallery-theme($theme);
|
92
96
|
@include menu.daff-menu-theme($theme);
|
93
97
|
@include modal.daff-modal-theme($theme);
|
94
98
|
@include navbar.daff-navbar-theme($theme);
|
95
99
|
@include notification.daff-notification-theme($theme);
|
96
100
|
@include paginator.daff-paginator-theme($theme);
|
101
|
+
@include progress-bar.daff-progress-bar-theme($theme);
|
97
102
|
@include sidebar.daff-sidebar-theme($theme);
|
98
103
|
@include switch.daff-switch-theme($theme);
|
99
104
|
@include tabs.daff-tabs-theme($theme);
|
100
|
-
@include tree.daff-tree-theme($theme);
|
101
105
|
@include toast.daff-toast-theme($theme);
|
106
|
+
@include tree.daff-tree-theme($theme);
|
107
|
+
}
|
108
|
+
|
109
|
+
//
|
110
|
+
// @deprecated
|
111
|
+
// Generates the styles of a @daffodil/design theme.
|
112
|
+
//
|
113
|
+
// Usage:
|
114
|
+
// ```scss
|
115
|
+
// @use '@daffodil/design/scss/theme';
|
116
|
+
//
|
117
|
+
// @include daff-theme($theme);
|
118
|
+
// ```
|
119
|
+
@mixin daff-theme($theme) {
|
120
|
+
@include daff-component-themes($theme);
|
102
121
|
}
|
@@ -4,6 +4,7 @@
|
|
4
4
|
@use 'get-color';
|
5
5
|
|
6
6
|
$daff-light-theme: (
|
7
|
+
'type': 'light',
|
7
8
|
'font-color': get-color.daff-color(palette.$daff-neutral, 110),
|
8
9
|
'base': get-color.daff-color(palette.$daff-neutral, 0),
|
9
10
|
'base-contrast': get-color.daff-color(palette.$daff-neutral, 110),
|
@@ -13,6 +14,7 @@ $daff-light-theme: (
|
|
13
14
|
);
|
14
15
|
|
15
16
|
$daff-dark-theme: (
|
17
|
+
'type': 'dark',
|
16
18
|
'font-color': get-color.daff-color(palette.$daff-neutral, 0),
|
17
19
|
'base': get-color.daff-color(palette.$daff-neutral, 100),
|
18
20
|
'base-contrast': get-color.daff-color(palette.$daff-neutral, 0),
|
package/scss/theming/_index.scss
CHANGED
@@ -0,0 +1,45 @@
|
|
1
|
+
//
|
2
|
+
// Apply styles only in light mode.
|
3
|
+
//
|
4
|
+
// @usage
|
5
|
+
// ```scss
|
6
|
+
// @use 'theme' as daff-theme;
|
7
|
+
//
|
8
|
+
// $type: daff-theme.daff-map-get($theme, 'core', 'type');
|
9
|
+
//
|
10
|
+
// @include daff-theme.light($type) {
|
11
|
+
// color: blue;
|
12
|
+
//
|
13
|
+
// .class {
|
14
|
+
// background: white;
|
15
|
+
// }
|
16
|
+
// }
|
17
|
+
// ```
|
18
|
+
@mixin light($mode) {
|
19
|
+
@if $mode == 'light' {
|
20
|
+
@content;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
//
|
25
|
+
// Apply styles only in dark mode.
|
26
|
+
//
|
27
|
+
// @usage
|
28
|
+
// ```scss
|
29
|
+
// @use 'theme' as daff-theme;
|
30
|
+
//
|
31
|
+
// $type: daff-theme.daff-map-get($theme, 'core', 'type');
|
32
|
+
//
|
33
|
+
// @include daff-theme.dark($type) {
|
34
|
+
// color: blue;
|
35
|
+
//
|
36
|
+
// .class {
|
37
|
+
// background: white;
|
38
|
+
// }
|
39
|
+
// }
|
40
|
+
// ```
|
41
|
+
@mixin dark($mode) {
|
42
|
+
@if $mode == 'dark' {
|
43
|
+
@content;
|
44
|
+
}
|
45
|
+
}
|
package/sidebar/README.md
CHANGED
@@ -10,10 +10,11 @@ Sidebars are often used for navigation, but it's built to be flexible and extens
|
|
10
10
|
To use sidebar in a standalone component, import `DAFF_SIDEBAR_COMPONENTS` directly into your custom component:
|
11
11
|
|
12
12
|
```ts
|
13
|
+
import { DAFF_SIDEBAR_COMPONENTS } from '@daffodil/design/sidebar';
|
14
|
+
|
13
15
|
@Component({
|
14
16
|
selector: 'custom-component',
|
15
17
|
templateUrl: './custom-component.component.html',
|
16
|
-
standalone: true,
|
17
18
|
imports: [
|
18
19
|
DAFF_SIDEBAR_COMPONENTS,
|
19
20
|
],
|
@@ -26,8 +27,8 @@ To use sidebar in a module, import `DaffSidebarModule` into your custom module:
|
|
26
27
|
|
27
28
|
```ts
|
28
29
|
import { NgModule } from '@angular/core';
|
29
|
-
|
30
30
|
import { DaffSidebarModule } from '@daffodil/design/sidebar';
|
31
|
+
import { CustomComponent } from './custom.component';
|
31
32
|
|
32
33
|
@NgModule({
|
33
34
|
declarations: [
|
@@ -45,6 +46,9 @@ export class CustomComponentModule { }
|
|
45
46
|
|
46
47
|
> This method is deprecated. It's recommended to update all custom components to standalone.
|
47
48
|
|
49
|
+
### Required imports
|
50
|
+
The `BrowserAnimationsModule` or `NoopAnimationsModule` must be imported in the particular Angular `@NgModule` the sidebar is used in for the sidebar to render and work properly.
|
51
|
+
|
48
52
|
## Basic sidebar
|
49
53
|
The default setting for sidebar is `mode="side"` and `side="left"`.
|
50
54
|
|
@@ -53,6 +57,8 @@ The default setting for sidebar is `mode="side"` and `side="left"`.
|
|
53
57
|
## Implementing the main and sidebar content
|
54
58
|
The main and sidebar content should be placed inside of the `<daff-sidebar-viewport>`. The sidebar content should be placed inside of the `<daff-sidebar>`.
|
55
59
|
|
60
|
+
> The sidebar viewport should only ever be used once in an application, but it's possible for there to be multiple sidebars of many modes at the same time.
|
61
|
+
|
56
62
|
A viewport navigation can either be:
|
57
63
|
|
58
64
|
- Placed alongside the `<daff-sidebar>` using the `[daff-sidebar-viewport-nav]` selector.
|
@@ -91,9 +97,6 @@ A viewport navigation can either be:
|
|
91
97
|
</daff-sidebar-viewport>
|
92
98
|
```
|
93
99
|
|
94
|
-
### Required Imports
|
95
|
-
The `BrowserAnimationsModule` or `NoopAnimationsModule` must be imported in the particular Angular `@NgModule` the sidebar is used in for the sidebar to render and work properly.
|
96
|
-
|
97
100
|
## Header and footer
|
98
101
|
The `<daff-sidebar-header>` includes optional title (`[daffSidebarHeaderTitle]`) and action (`[daffSidebarHeaderAction]`) selectors, and a slot to render custom content. The action selector should be used along with the `<daff-icon-button>` (view [Button Documentation](/libs/design/button/README.md)) to make sure that the action is positioned correctly and it passes WCAG guidelines.
|
99
102
|
|
@@ -101,24 +104,20 @@ The `<daff-sidebar-footer>` is a "holder" component with minimal default styling
|
|
101
104
|
|
102
105
|
Both the header and footer are optional components that will not render in the DOM if they are not used.
|
103
106
|
|
104
|
-
##
|
105
|
-
|
106
|
-
|
107
|
-
By default, sidebar supports two methods of closing itself: clicking on the backdrop of the sidebar viewport or pressing `ESC` when the sidebar has focus.
|
107
|
+
## Closing a sidebar
|
108
|
+
A sidebar can be closed by clicking on the backdrop, using the escape key, or clicking on the close button in the sidebar header.
|
108
109
|
|
109
|
-
|
110
|
-
| `(backdropClicked)` | Set on the `<daff-sidebar-viewport>` |
|
111
|
-
| `(escapePressed)` | Set on the `<daff-sidebar>` |
|
110
|
+
> Note: The close button is hidden by default. To make it visible, set the `dismissible` property on the sidebar header to `true`.
|
112
111
|
|
113
112
|
## Modes
|
114
|
-
|
113
|
+
A sidebar can be rendered four different ways by using the `mode` property. If `mode` is not specified, `side` is used by default.
|
115
114
|
|
116
115
|
| Mode | Description |
|
117
116
|
| ---------- | ---------------------------------------------------------------------------------------------------- |
|
118
|
-
| side |
|
119
|
-
| side-fixed |
|
120
|
-
| over |
|
121
|
-
| under |
|
117
|
+
| side | Displays the sidebar alongside the main content. |
|
118
|
+
| side-fixed | Displays the sidebar alongside the content, but the sidebar remains fixed in place and scrolls independently from the content. |
|
119
|
+
| over | The sidebar slides over the main content when open, temporarily covering part of the content when active. |
|
120
|
+
| under | The sidebar remains fixed in place while the main content slides over it when the sidebar is closed. |
|
122
121
|
|
123
122
|
### Over sidebar
|
124
123
|
<design-land-example-viewer-container example="over-sidebar"></design-land-example-viewer-container>
|
@@ -133,7 +132,7 @@ By default, sidebar supports two methods of closing itself: clicking on the back
|
|
133
132
|
<design-land-example-viewer-container example="fixed-and-over-sidebar"></design-land-example-viewer-container>
|
134
133
|
|
135
134
|
## Sides
|
136
|
-
|
135
|
+
A sidebar can be positioned on either side of a screen by using the `side` property. If `side` is not specificed, `left` is used by default.
|
137
136
|
|
138
137
|
| Side | Description |
|
139
138
|
| ----- | ---------------------------------------------- |
|
@@ -168,7 +167,7 @@ daff-sidebar-viewport {
|
|
168
167
|
}
|
169
168
|
```
|
170
169
|
|
171
|
-
## Changing a side-fixed sidebar's top offset position
|
170
|
+
## Changing a side- fixed sidebar's top offset position
|
172
171
|
The default offset position of a sidebar is `0px`. The `--daff-sidebar-side-fixed-top-shift` variable can be used to adjust the top offset position for a primary sidebar and its viewport content.
|
173
172
|
|
174
173
|
```scss
|
@@ -187,7 +186,7 @@ body {
|
|
187
186
|
## Accessibility
|
188
187
|
A meaningful `role` should be set on all sidebars depending on how they are used.
|
189
188
|
|
190
|
-
When
|
189
|
+
When a sidebar header is not used or there is no title for the sidebar, a meaningful `aria-label` should be set to describe the sidebar.
|
191
190
|
|
192
191
|
### Focus
|
193
|
-
Focus trapping is enabled for `over` and `under` modes, and disabled for `side` and `side-fixed` modes. When a sidebar is opened, the first tabbable element within the
|
192
|
+
Focus trapping is enabled for `over` and `under` modes, and disabled for `side` and `side-fixed` modes. When a sidebar is opened, the first tabbable element within the sidebar will receive focus. When a sidebar is closed, the element that was focused before the sidebar was opened will be re-focused.
|
@@ -1,23 +1,17 @@
|
|
1
1
|
/**
|
2
|
-
* The
|
2
|
+
* The available display modes for the `DaffSidebarComponent`.
|
3
3
|
*
|
4
|
-
*
|
5
|
-
*
|
6
|
-
*
|
7
|
-
*
|
8
|
-
*
|
9
|
-
*
|
10
|
-
*
|
11
|
-
* * `over` is a mode which allows the sidebar to slide *over* the rest of
|
12
|
-
* the content in the viewport.
|
13
|
-
*
|
14
|
-
* * `under` is a mode that freezes the sidebar in place and allows the content
|
15
|
-
* slide above it.
|
4
|
+
* | Mode | Description |
|
5
|
+
* | -- | -- |
|
6
|
+
* | `side` | Displays the sidebar alongside the main content. |
|
7
|
+
* | `side-fixed` | Displays the sidebar alongside the content, but the sidebar remains fixed in place and scrolls independently from the content. |
|
8
|
+
* | `over` | The sidebar slides over the main content when open, temporarily covering part of the content when active. |
|
9
|
+
* | `under` | The sidebar remains fixed in place while the main content slides over it when the sidebar is closed. |
|
16
10
|
*/
|
17
11
|
export type DaffSidebarMode = 'side' | 'over' | 'under' | 'side-fixed';
|
18
12
|
/**
|
19
|
-
*
|
20
|
-
* See {@link DaffSidebarMode}
|
13
|
+
* Enum for representing the available sidebar display modes.
|
14
|
+
* See {@link DaffSidebarMode} for descriptions of each mode.
|
21
15
|
*/
|
22
16
|
export declare const enum DaffSidebarModeEnum {
|
23
17
|
Side = "side",
|
package/sidebar/public_api.d.ts
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
export { DaffSidebarModule } from './sidebar.module';
|
2
|
-
export
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export
|
6
|
-
export
|
7
|
-
export
|
8
|
-
export
|
9
|
-
export
|
10
|
-
export * from './sidebar-viewport-backdrop/sidebar-viewport-backdrop.component';
|
2
|
+
export { DaffSidebarRegistration } from './service/registration.type';
|
3
|
+
export { DaffSidebarService } from './service/sidebar.service';
|
4
|
+
export { DaffSidebarViewportComponent } from './sidebar-viewport/sidebar-viewport.component';
|
5
|
+
export { DaffSidebarComponent } from './sidebar/sidebar.component';
|
6
|
+
export { DaffSidebarHeaderComponent } from './sidebar-header/sidebar-header.component';
|
7
|
+
export { DaffSidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';
|
8
|
+
export { DaffSidebarHeaderTitleDirective } from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';
|
9
|
+
export { DaffSidebarHeaderActionDirective } from './sidebar-header/sidebar-header-action/sidebar-header-action.directive';
|
11
10
|
export { DaffSidebarMode, DaffSidebarModeEnum, } from './helper/sidebar-mode';
|
12
11
|
export { DaffSidebarSide, DaffSidebarSideEnum, } from './helper/sidebar-side';
|
13
|
-
export
|
14
|
-
export
|
12
|
+
export { daffSidebarIsDockedMode } from './helper/is-docked-mode';
|
13
|
+
export { daffSidebarIsFloatingMode } from './helper/is-floating-mode';
|
15
14
|
export { DAFF_SIDEBAR_COMPONENTS } from './sidebar';
|
@@ -8,9 +8,13 @@ import { DaffSidebarSide } from '../helper/sidebar-side';
|
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "@daffodil/design";
|
10
10
|
/**
|
11
|
-
* DaffSidebarComponent is heavily based upon the work done by the
|
12
|
-
* team on `mat-drawer` and `mat-sidenav`.
|
13
|
-
*
|
11
|
+
* DaffSidebarComponent is heavily based upon the work done by the `@angular/components`
|
12
|
+
* team on `mat-drawer` and `mat-sidenav`. It's intended to be a simplified version
|
13
|
+
* (with a different design) of `mat-drawer`.
|
14
|
+
*
|
15
|
+
* ```html
|
16
|
+
* <daff-sidebar></daff-sidebar>
|
17
|
+
* ```
|
14
18
|
*/
|
15
19
|
export declare class DaffSidebarComponent implements DaffOpenable {
|
16
20
|
private _elementRef;
|
@@ -29,6 +33,8 @@ export declare class DaffSidebarComponent implements DaffOpenable {
|
|
29
33
|
'daff-sidebar': boolean;
|
30
34
|
};
|
31
35
|
/**
|
36
|
+
* @docs-private
|
37
|
+
*
|
32
38
|
* The animation state of the sidebar.
|
33
39
|
*/
|
34
40
|
get transformSidebar(): {
|
@@ -38,7 +44,7 @@ export declare class DaffSidebarComponent implements DaffOpenable {
|
|
38
44
|
};
|
39
45
|
};
|
40
46
|
/**
|
41
|
-
* Event fired when `ESC` key is pressed when the sidebar has focus
|
47
|
+
* Event fired when `ESC` key is pressed when the sidebar has focus.
|
42
48
|
*/
|
43
49
|
escapePressed: EventEmitter<void>;
|
44
50
|
/**
|
@@ -50,33 +56,42 @@ export declare class DaffSidebarComponent implements DaffOpenable {
|
|
50
56
|
*/
|
51
57
|
mode: DaffSidebarMode;
|
52
58
|
/**
|
59
|
+
* @docs-private
|
60
|
+
*
|
53
61
|
* The width of the sidebar.
|
54
62
|
*/
|
55
63
|
get width(): number;
|
64
|
+
/**
|
65
|
+
* @docs-private
|
66
|
+
*/
|
56
67
|
get open(): boolean;
|
57
68
|
constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusTrapFactory: ConfigurableFocusTrapFactory, _focusStack: DaffFocusStackService, openDirective: DaffOpenableDirective, _doc: any);
|
58
69
|
private _focusTrap;
|
59
70
|
/**
|
71
|
+
* @docs-private
|
72
|
+
*
|
60
73
|
* Animation event that can be used to hook into when the transformSidebar
|
61
74
|
* animation begins. This is used in sidebar to determine when to show the
|
62
75
|
* visibility of the sidebar so that the animation does not jump as the element is shown.
|
63
76
|
*/
|
64
77
|
onAnimationStart(e: AnimationEvent): void;
|
65
78
|
/**
|
79
|
+
* @docs-private
|
80
|
+
*
|
66
81
|
* Animation event that can be used to hook into when the
|
67
82
|
* transformSidebar animation is complete.
|
68
83
|
*/
|
69
84
|
onAnimationComplete(e: AnimationEvent): void;
|
70
85
|
/**
|
71
|
-
* Reveal the contents of the sidebar
|
86
|
+
* Reveal the contents of the sidebar.
|
72
87
|
*/
|
73
88
|
reveal(): void;
|
74
89
|
/**
|
75
|
-
* Hide the contents of the sidebar
|
90
|
+
* Hide the contents of the sidebar.
|
76
91
|
*/
|
77
92
|
hide(): void;
|
78
93
|
/**
|
79
|
-
* Toggle the visibility of the sidebar
|
94
|
+
* Toggle the visibility of the sidebar.
|
80
95
|
*/
|
81
96
|
toggle(): void;
|
82
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSidebarComponent, never>;
|
@@ -1,5 +1,16 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Sidebar footer is a child component of the sidebar that is used to display a
|
4
|
+
* footer container, positioned at the bottom of a sidebar.
|
5
|
+
*
|
6
|
+
* ```html
|
7
|
+
* <daff-sidebar-footer></daff-sidebar-footer>
|
8
|
+
* ```
|
9
|
+
*/
|
2
10
|
export declare class DaffSidebarFooterComponent {
|
11
|
+
/**
|
12
|
+
* @docs-private
|
13
|
+
*/
|
3
14
|
class: boolean;
|
4
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSidebarFooterComponent, never>;
|
5
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffSidebarFooterComponent, "daff-sidebar-footer", never, {}, {}, never, ["*"], true, never>;
|
@@ -1,4 +1,12 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* Sidebar header title is a child directive of `DaffSidebarHeaderComponent`
|
4
|
+
* that can be used to provide a title for the sidebar.
|
5
|
+
*
|
6
|
+
* ```html
|
7
|
+
* <div daffSidebarHeaderTitle>Title</div>
|
8
|
+
* ```
|
9
|
+
*/
|
2
10
|
export declare class DaffSidebarHeaderTitleDirective {
|
3
11
|
/**
|
4
12
|
* @docs-private
|
@@ -1,14 +1,32 @@
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
+
/**
|
4
|
+
* Sidebar header is a child component of the sidebar that is used to display a header container,
|
5
|
+
* positioned at the top of a sidebar. It includes an optional title (`[daffSidebarHeaderTitle]`)
|
6
|
+
* slot and a slot to render any custom content.
|
7
|
+
*
|
8
|
+
* ```html
|
9
|
+
* <daff-sidebar-header></daff-sidebar-header>
|
10
|
+
* ```
|
11
|
+
*/
|
3
12
|
export declare class DaffSidebarHeaderComponent {
|
13
|
+
/**
|
14
|
+
* @docs-private
|
15
|
+
*/
|
4
16
|
faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
17
|
+
/**
|
18
|
+
* @docs-private
|
19
|
+
*/
|
5
20
|
class: boolean;
|
6
|
-
/** Whether or not a sidebar header
|
21
|
+
/** Whether or not a sidebar header should display the close icon. */
|
7
22
|
dismissible: boolean;
|
8
23
|
/**
|
9
24
|
* Output event triggered when the close icon is clicked.
|
10
25
|
*/
|
11
26
|
closeSidebar: EventEmitter<void>;
|
27
|
+
/**
|
28
|
+
* @docs-private
|
29
|
+
*/
|
12
30
|
onCloseSidebar(event: Event): void;
|
13
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSidebarHeaderComponent, never>;
|
14
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffSidebarHeaderComponent, "daff-sidebar-header", never, { "dismissible": { "alias": "dismissible"; "required": false; }; }, { "closeSidebar": "closeSidebar"; }, never, ["*"], true, never>;
|
@@ -5,23 +5,19 @@ import { DaffSidebarScroll } from './scroll-token/scroll.token';
|
|
5
5
|
import { DaffSidebarViewportAnimationStateWithParams } from '../animation/sidebar-viewport-animation-state';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* DaffSidebarViewportComponent serves as the container for managing sidebars across an entire application.
|
9
|
+
* Because it's a functional component, it supports multiple simultaneously open sidebar and is designed to
|
10
|
+
* handle these scenarios gracefully.
|
9
11
|
*
|
10
|
-
*
|
11
|
-
*
|
12
|
-
* at the same time. See {@link DaffSidebarMode}.
|
12
|
+
* > However, there is one key contraint: only one sidebar per **mode** is allowed
|
13
|
+
* on each **side** (e.g., left or right) at any given time.
|
13
14
|
*
|
14
|
-
*
|
15
|
-
* at the same time. As a result, this component attempts to gracefully handle these situations.
|
16
|
-
* However, importantly, there can only be one sidebar of each mode, on each side, at any given time.
|
15
|
+
* If this constraint is violated, the component will throw an exception to prevent unintended behavior.
|
17
16
|
*
|
18
|
-
* If this is violated, this component will throw an exception.
|
19
|
-
*
|
20
|
-
* @example Using the sidebar viewport
|
21
17
|
* ```html
|
22
18
|
* <daff-sidebar-viewport>
|
23
19
|
* <daff-sidebar></daff-sidebar>
|
24
|
-
* <
|
20
|
+
* <div>Site content</div>
|
25
21
|
* </daff-sidebar-viewport>
|
26
22
|
* ```
|
27
23
|
*/
|
@@ -31,19 +27,33 @@ export declare class DaffSidebarViewportComponent implements AfterContentChecked
|
|
31
27
|
private bodyScroll;
|
32
28
|
private parentViewport;
|
33
29
|
private scroll;
|
30
|
+
/**
|
31
|
+
* @docs-private
|
32
|
+
*/
|
34
33
|
hostClass: boolean;
|
34
|
+
/**
|
35
|
+
* @docs-private
|
36
|
+
*/
|
35
37
|
get classes(): {
|
36
38
|
[x: string]: boolean;
|
37
39
|
'daff-sidebar-viewport': boolean;
|
38
40
|
'pad-left': boolean;
|
39
41
|
'pad-right': boolean;
|
40
42
|
};
|
43
|
+
/**
|
44
|
+
* @docs-private
|
45
|
+
*/
|
41
46
|
get isNavOnSide(): boolean;
|
47
|
+
/**
|
48
|
+
* @docs-private
|
49
|
+
*/
|
42
50
|
onContentAnimationStart(e: AnimationEvent): void;
|
51
|
+
/**
|
52
|
+
* @docs-private
|
53
|
+
*/
|
43
54
|
onContentAnimationDone(e: AnimationEvent): void;
|
44
55
|
/**
|
45
|
-
* The placement of the nav in relation to the sidebar.
|
46
|
-
* Note that this is really only available when there is a `side-fixed` sidebar.
|
56
|
+
* The placement of the nav in relation to the sidebar. Note that this is really only available when there is a `side-fixed` sidebar.
|
47
57
|
*/
|
48
58
|
navPlacement: DaffNavPlacement;
|
49
59
|
constructor(cdRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, bodyScroll: DaffSidebarScroll, parentViewport: any, scroll: DaffSidebarScroll);
|
@@ -61,10 +71,14 @@ export declare class DaffSidebarViewportComponent implements AfterContentChecked
|
|
61
71
|
private _isPaddedLeft;
|
62
72
|
private _isPaddedRight;
|
63
73
|
/**
|
74
|
+
* @docs-private
|
75
|
+
*
|
64
76
|
* Whether or not the backdrop is interactable
|
65
77
|
*/
|
66
78
|
_backdropInteractable: boolean;
|
67
79
|
/**
|
80
|
+
* @docs-private
|
81
|
+
*
|
68
82
|
* The animation state
|
69
83
|
*/
|
70
84
|
_animationState: DaffSidebarViewportAnimationStateWithParams;
|
@@ -72,7 +86,13 @@ export declare class DaffSidebarViewportComponent implements AfterContentChecked
|
|
72
86
|
* Event fired when the backdrop is clicked. This is often used to close the sidebar.
|
73
87
|
*/
|
74
88
|
backdropClicked: EventEmitter<void>;
|
89
|
+
/**
|
90
|
+
* @docs-private
|
91
|
+
*/
|
75
92
|
ngAfterContentChecked(): void;
|
93
|
+
/**
|
94
|
+
* @docs-private
|
95
|
+
*/
|
76
96
|
ngOnDestroy(): void;
|
77
97
|
/**
|
78
98
|
* @docs-private
|
@@ -83,9 +103,10 @@ export declare class DaffSidebarViewportComponent implements AfterContentChecked
|
|
83
103
|
private updateAnimationState;
|
84
104
|
/**
|
85
105
|
* @docs-private
|
86
|
-
*
|
106
|
+
*
|
107
|
+
* Called when the backdrop of the viewport is clicked upon.
|
87
108
|
*/
|
88
109
|
_backdropClicked(): void;
|
89
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSidebarViewportComponent, [null, null, { skipSelf: true; }, { optional: true; skipSelf: true; }, null]>;
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DaffSidebarViewportComponent, "daff-sidebar-viewport", never, { "navPlacement": { "alias": "navPlacement"; "required": false; }; }, { "backdropClicked": "backdropClicked"; }, ["sidebars"], ["[daff-sidebar-viewport-nav]", "daff-sidebar:not([side=right])", "*", "daff-sidebar[side=right]"], true, never>;
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaffSidebarViewportComponent, "daff-sidebar-viewport", never, { "navPlacement": { "alias": "navPlacement"; "required": false; }; }, { "backdropClicked": "backdropClicked"; }, ["sidebars"], ["[daff-sidebar-viewport-nav]", "daff-sidebar:not([side=right])", "*", "[daff-sidebar-viewport-footer]", "daff-sidebar[side=right]"], true, never>;
|
91
112
|
}
|
@@ -2,6 +2,9 @@ import { AnimationEvent } from '@angular/animations';
|
|
2
2
|
import { EventEmitter, OnInit } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class DaffSidebarViewportBackdropComponent implements OnInit {
|
5
|
+
/**
|
6
|
+
* @docs-private
|
7
|
+
*/
|
5
8
|
interactableClass: boolean;
|
6
9
|
/**
|
7
10
|
* Determines whether or not the backdrop is transparent.
|
@@ -20,14 +23,28 @@ export declare class DaffSidebarViewportBackdropComponent implements OnInit {
|
|
20
23
|
* Output event triggered when the backdrop is clicked.
|
21
24
|
*/
|
22
25
|
backdropClicked: EventEmitter<void>;
|
26
|
+
/**
|
27
|
+
* @docs-private
|
28
|
+
*/
|
23
29
|
ngOnInit(): void;
|
24
30
|
/**
|
31
|
+
* @docs-private
|
32
|
+
*
|
25
33
|
* Animation hook for that controls the backdrops
|
26
34
|
* entrance and fade animations.
|
27
35
|
*/
|
28
36
|
get fadeBackdropTrigger(): import("./animation/backdrop-animation-state").DaffSidebarViewportBackdropAnimationState;
|
37
|
+
/**
|
38
|
+
* @docs-private
|
39
|
+
*/
|
29
40
|
animationDone(e: AnimationEvent): void;
|
41
|
+
/**
|
42
|
+
* @docs-private
|
43
|
+
*/
|
30
44
|
animationStart(e: AnimationEvent): void;
|
45
|
+
/**
|
46
|
+
* @docs-private
|
47
|
+
*/
|
31
48
|
onBackdropClicked(): void;
|
32
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffSidebarViewportBackdropComponent, never>;
|
33
50
|
static ɵcmp: i0.ɵɵComponentDeclaration<DaffSidebarViewportBackdropComponent, "daff-sidebar-viewport-backdrop", never, { "transparent": { "alias": "transparent"; "required": false; }; "interactable": { "alias": "interactable"; "required": false; }; "fullscreen": { "alias": "fullscreen"; "required": false; }; }, { "backdropClicked": "backdropClicked"; }, never, ["*"], true, never>;
|
package/sidebar/sidebar.d.ts
CHANGED
@@ -4,5 +4,7 @@ import { DaffSidebarHeaderActionDirective } from './sidebar-header/sidebar-heade
|
|
4
4
|
import { DaffSidebarHeaderTitleDirective } from './sidebar-header/sidebar-header-title/sidebar-header-title.directive';
|
5
5
|
import { DaffSidebarHeaderComponent } from './sidebar-header/sidebar-header.component';
|
6
6
|
import { DaffSidebarViewportComponent } from './sidebar-viewport/sidebar-viewport.component';
|
7
|
-
|
8
|
-
|
7
|
+
/**
|
8
|
+
* @docs-private
|
9
|
+
*/
|
10
|
+
export declare const DAFF_SIDEBAR_COMPONENTS: readonly [typeof DaffSidebarComponent, typeof DaffSidebarViewportComponent, typeof DaffSidebarHeaderComponent, typeof DaffSidebarFooterComponent, typeof DaffSidebarHeaderTitleDirective, typeof DaffSidebarHeaderActionDirective];
|