@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
@@ -102,9 +102,13 @@ const getAnimationState$1 = (open, mode) => {
|
|
102
102
|
const getSidebarAnimationWidth = (side, width) => side === 'left' ? -1 * width + 'px' : width + 'px';
|
103
103
|
|
104
104
|
/**
|
105
|
-
* DaffSidebarComponent is heavily based upon the work done by the
|
106
|
-
* team on `mat-drawer` and `mat-sidenav`.
|
107
|
-
*
|
105
|
+
* DaffSidebarComponent is heavily based upon the work done by the `@angular/components`
|
106
|
+
* team on `mat-drawer` and `mat-sidenav`. It's intended to be a simplified version
|
107
|
+
* (with a different design) of `mat-drawer`.
|
108
|
+
*
|
109
|
+
* ```html
|
110
|
+
* <daff-sidebar></daff-sidebar>
|
111
|
+
* ```
|
108
112
|
*/
|
109
113
|
class DaffSidebarComponent {
|
110
114
|
/**
|
@@ -121,6 +125,8 @@ class DaffSidebarComponent {
|
|
121
125
|
}
|
122
126
|
;
|
123
127
|
/**
|
128
|
+
* @docs-private
|
129
|
+
*
|
124
130
|
* The animation state of the sidebar.
|
125
131
|
*/
|
126
132
|
get transformSidebar() {
|
@@ -130,11 +136,16 @@ class DaffSidebarComponent {
|
|
130
136
|
};
|
131
137
|
}
|
132
138
|
/**
|
139
|
+
* @docs-private
|
140
|
+
*
|
133
141
|
* The width of the sidebar.
|
134
142
|
*/
|
135
143
|
get width() {
|
136
144
|
return this._elementRef.nativeElement.offsetWidth;
|
137
145
|
}
|
146
|
+
/**
|
147
|
+
* @docs-private
|
148
|
+
*/
|
138
149
|
get open() {
|
139
150
|
return this.openDirective.open;
|
140
151
|
}
|
@@ -146,7 +157,7 @@ class DaffSidebarComponent {
|
|
146
157
|
this.openDirective = openDirective;
|
147
158
|
this._doc = _doc;
|
148
159
|
/**
|
149
|
-
* Event fired when `ESC` key is pressed when the sidebar has focus
|
160
|
+
* Event fired when `ESC` key is pressed when the sidebar has focus.
|
150
161
|
*/
|
151
162
|
this.escapePressed = new EventEmitter();
|
152
163
|
/**
|
@@ -170,6 +181,8 @@ class DaffSidebarComponent {
|
|
170
181
|
});
|
171
182
|
}
|
172
183
|
/**
|
184
|
+
* @docs-private
|
185
|
+
*
|
173
186
|
* Animation event that can be used to hook into when the transformSidebar
|
174
187
|
* animation begins. This is used in sidebar to determine when to show the
|
175
188
|
* visibility of the sidebar so that the animation does not jump as the element is shown.
|
@@ -180,6 +193,8 @@ class DaffSidebarComponent {
|
|
180
193
|
}
|
181
194
|
}
|
182
195
|
/**
|
196
|
+
* @docs-private
|
197
|
+
*
|
183
198
|
* Animation event that can be used to hook into when the
|
184
199
|
* transformSidebar animation is complete.
|
185
200
|
*/
|
@@ -204,6 +219,8 @@ class DaffSidebarComponent {
|
|
204
219
|
}
|
205
220
|
}
|
206
221
|
/**
|
222
|
+
* @docs-private
|
223
|
+
*
|
207
224
|
* This is used in sidebar to determine when to hide the visibility
|
208
225
|
* of the sidebar so that the animation does not jump as the element is hidden.
|
209
226
|
*/
|
@@ -215,29 +232,29 @@ class DaffSidebarComponent {
|
|
215
232
|
}
|
216
233
|
}
|
217
234
|
/**
|
218
|
-
* Reveal the contents of the sidebar
|
235
|
+
* Reveal the contents of the sidebar.
|
219
236
|
*/
|
220
237
|
reveal() {
|
221
238
|
this.openDirective.reveal();
|
222
239
|
}
|
223
240
|
/**
|
224
|
-
* Hide the contents of the sidebar
|
241
|
+
* Hide the contents of the sidebar.
|
225
242
|
*/
|
226
243
|
hide() {
|
227
244
|
this.openDirective.hide();
|
228
245
|
}
|
229
246
|
/**
|
230
|
-
* Toggle the visibility of the sidebar
|
247
|
+
* Toggle the visibility of the sidebar.
|
231
248
|
*/
|
232
249
|
toggle() {
|
233
250
|
this.openDirective.toggle();
|
234
251
|
}
|
235
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
236
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.
|
252
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.ConfigurableFocusTrapFactory }, { token: i2.DaffFocusStackService }, { token: i2.DaffOpenableDirective }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
253
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: DaffSidebarComponent, isStandalone: true, selector: "daff-sidebar", inputs: { side: "side", mode: "mode" }, outputs: { escapePressed: "escapePressed" }, host: { listeners: { "@transformSidebar.start": "onAnimationStart($event)", "@transformSidebar.done": "onAnimationComplete($event)" }, properties: { "class": "this.classes", "@transformSidebar": "this.transformSidebar" } }, hostDirectives: [{ directive: i2.DaffOpenableDirective, inputs: ["open", "open"], outputs: ["toggled", "toggled"] }], ngImport: i0, template: "<ng-content select=\"daff-sidebar-header\"></ng-content>\n<div class=\"daff-sidebar__body\">\n\t<ng-content></ng-content>\n</div>\n<ng-content select=\"daff-sidebar-footer\"></ng-content>", styles: [":host{display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto;width:15rem}:host.left{width:var(--daff-sidebar-left-width, 15rem)}:host.right{width:var(--daff-sidebar-right-width, 15rem)}:host.side-fixed{visibility:hidden;position:fixed;bottom:0;z-index:5;top:var(--daff-sidebar-side-fixed-top-shift);height:calc(100dvh - var(--daff-sidebar-side-fixed-top-shift))}:host.side-fixed.left{left:0}:host.side-fixed.right{right:0}@media (min-width: 1024px){:host.side-fixed{visibility:visible}}:host.over,:host.under{position:fixed;top:0;bottom:0}:host.over.left,:host.under.left{left:0}:host.over.right,:host.under.right{right:0}:host.over{z-index:7}:host.under{z-index:2}:host-context(daff-sidebar-viewport daff-sidebar-viewport).side-fixed{position:sticky}:host-context(.daff-sidebar-viewport.beside).side-fixed{top:0;height:100%}.daff-sidebar__body{flex-grow:1;height:100%;overflow-y:auto}\n"], animations: [
|
237
254
|
daffSidebarAnimations.transformSidebar,
|
238
255
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
239
256
|
}
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarComponent, decorators: [{
|
241
258
|
type: Component,
|
242
259
|
args: [{ selector: 'daff-sidebar', changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [{
|
243
260
|
directive: DaffOpenableDirective,
|
@@ -245,7 +262,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
245
262
|
outputs: ['toggled'],
|
246
263
|
}], animations: [
|
247
264
|
daffSidebarAnimations.transformSidebar,
|
248
|
-
],
|
265
|
+
], template: "<ng-content select=\"daff-sidebar-header\"></ng-content>\n<div class=\"daff-sidebar__body\">\n\t<ng-content></ng-content>\n</div>\n<ng-content select=\"daff-sidebar-footer\"></ng-content>", styles: [":host{display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto;width:15rem}:host.left{width:var(--daff-sidebar-left-width, 15rem)}:host.right{width:var(--daff-sidebar-right-width, 15rem)}:host.side-fixed{visibility:hidden;position:fixed;bottom:0;z-index:5;top:var(--daff-sidebar-side-fixed-top-shift);height:calc(100dvh - var(--daff-sidebar-side-fixed-top-shift))}:host.side-fixed.left{left:0}:host.side-fixed.right{right:0}@media (min-width: 1024px){:host.side-fixed{visibility:visible}}:host.over,:host.under{position:fixed;top:0;bottom:0}:host.over.left,:host.under.left{left:0}:host.over.right,:host.under.right{right:0}:host.over{z-index:7}:host.under{z-index:2}:host-context(daff-sidebar-viewport daff-sidebar-viewport).side-fixed{position:sticky}:host-context(.daff-sidebar-viewport.beside).side-fixed{top:0;height:100%}.daff-sidebar__body{flex-grow:1;height:100%;overflow-y:auto}\n"] }]
|
249
266
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.ConfigurableFocusTrapFactory }, { type: i2.DaffFocusStackService }, { type: i2.DaffOpenableDirective }, { type: undefined, decorators: [{
|
250
267
|
type: Inject,
|
251
268
|
args: [DOCUMENT]
|
@@ -269,16 +286,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
269
286
|
args: ['@transformSidebar.done', ['$event']]
|
270
287
|
}] } });
|
271
288
|
|
289
|
+
/**
|
290
|
+
* Sidebar footer is a child component of the sidebar that is used to display a
|
291
|
+
* footer container, positioned at the bottom of a sidebar.
|
292
|
+
*
|
293
|
+
* ```html
|
294
|
+
* <daff-sidebar-footer></daff-sidebar-footer>
|
295
|
+
* ```
|
296
|
+
*/
|
272
297
|
class DaffSidebarFooterComponent {
|
273
298
|
constructor() {
|
299
|
+
/**
|
300
|
+
* @docs-private
|
301
|
+
*/
|
274
302
|
this.class = true;
|
275
303
|
}
|
276
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
277
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.
|
304
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
305
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: DaffSidebarFooterComponent, isStandalone: true, selector: "daff-sidebar-footer", host: { properties: { "class.daff-sidebar-footer": "this.class" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block;width:100%;flex-grow:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
278
306
|
}
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarFooterComponent, decorators: [{
|
280
308
|
type: Component,
|
281
|
-
args: [{ selector: 'daff-sidebar-footer', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush,
|
309
|
+
args: [{ selector: 'daff-sidebar-footer', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%;flex-grow:0}\n"] }]
|
282
310
|
}], propDecorators: { class: [{
|
283
311
|
type: HostBinding,
|
284
312
|
args: ['class.daff-sidebar-footer']
|
@@ -291,10 +319,10 @@ class DaffSidebarHeaderActionDirective {
|
|
291
319
|
*/
|
292
320
|
this.class = true;
|
293
321
|
}
|
294
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
295
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
322
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarHeaderActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
323
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.5", type: DaffSidebarHeaderActionDirective, isStandalone: true, selector: "[daffSidebarHeaderAction]", host: { properties: { "class.daff-sidebar-header__action": "this.class" } }, ngImport: i0 }); }
|
296
324
|
}
|
297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarHeaderActionDirective, decorators: [{
|
298
326
|
type: Directive,
|
299
327
|
args: [{
|
300
328
|
selector: '[daffSidebarHeaderAction]',
|
@@ -305,6 +333,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
305
333
|
args: ['class.daff-sidebar-header__action']
|
306
334
|
}] } });
|
307
335
|
|
336
|
+
/**
|
337
|
+
* Sidebar header title is a child directive of `DaffSidebarHeaderComponent`
|
338
|
+
* that can be used to provide a title for the sidebar.
|
339
|
+
*
|
340
|
+
* ```html
|
341
|
+
* <div daffSidebarHeaderTitle>Title</div>
|
342
|
+
* ```
|
343
|
+
*/
|
308
344
|
class DaffSidebarHeaderTitleDirective {
|
309
345
|
constructor() {
|
310
346
|
/**
|
@@ -312,38 +348,55 @@ class DaffSidebarHeaderTitleDirective {
|
|
312
348
|
*/
|
313
349
|
this.class = true;
|
314
350
|
}
|
315
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
316
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.
|
351
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarHeaderTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
352
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.5", type: DaffSidebarHeaderTitleDirective, isStandalone: true, selector: "[daffSidebarHeaderTitle]", host: { properties: { "class.daff-sidebar-header__title": "this.class" } }, ngImport: i0 }); }
|
317
353
|
}
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarHeaderTitleDirective, decorators: [{
|
319
355
|
type: Directive,
|
320
356
|
args: [{
|
321
357
|
selector: '[daffSidebarHeaderTitle]',
|
322
|
-
standalone: true,
|
323
358
|
}]
|
324
359
|
}], propDecorators: { class: [{
|
325
360
|
type: HostBinding,
|
326
361
|
args: ['class.daff-sidebar-header__title']
|
327
362
|
}] } });
|
328
363
|
|
364
|
+
/**
|
365
|
+
* Sidebar header is a child component of the sidebar that is used to display a header container,
|
366
|
+
* positioned at the top of a sidebar. It includes an optional title (`[daffSidebarHeaderTitle]`)
|
367
|
+
* slot and a slot to render any custom content.
|
368
|
+
*
|
369
|
+
* ```html
|
370
|
+
* <daff-sidebar-header></daff-sidebar-header>
|
371
|
+
* ```
|
372
|
+
*/
|
329
373
|
class DaffSidebarHeaderComponent {
|
330
374
|
constructor() {
|
375
|
+
/**
|
376
|
+
* @docs-private
|
377
|
+
*/
|
331
378
|
this.faTimes = faTimes;
|
379
|
+
/**
|
380
|
+
* @docs-private
|
381
|
+
*/
|
332
382
|
this.class = true;
|
333
|
-
/** Whether or not a sidebar header
|
383
|
+
/** Whether or not a sidebar header should display the close icon. */
|
334
384
|
this.dismissible = false;
|
335
385
|
/**
|
336
386
|
* Output event triggered when the close icon is clicked.
|
337
387
|
*/
|
338
388
|
this.closeSidebar = new EventEmitter();
|
339
389
|
}
|
390
|
+
/**
|
391
|
+
* @docs-private
|
392
|
+
*/
|
340
393
|
onCloseSidebar(event) {
|
341
394
|
this.closeSidebar.emit();
|
342
395
|
}
|
343
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
344
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.
|
396
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
397
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: DaffSidebarHeaderComponent, isStandalone: true, selector: "daff-sidebar-header", inputs: { dismissible: "dismissible" }, outputs: { closeSidebar: "closeSidebar" }, host: { properties: { "class.daff-sidebar-header": "this.class", "class.dismissible": "this.dismissible" } }, ngImport: i0, template: "<button class=\"daff-sidebar-header__close-icon\" aria-label=\"Close Sidebar\" *ngIf=\"dismissible\" (click)=\"onCloseSidebar($event)\">\n <fa-icon [icon]=\"faTimes\" [fixedWidth]=\"true\" size=\"lg\"></fa-icon>\n</button>\n<div class=\"daff-sidebar-header__content\">\n <ng-content></ng-content>\n</div>", styles: [".daff-sidebar-header{display:flex;align-items:center;position:relative;padding:0 1rem;min-height:3rem;max-height:3rem;width:100%}.daff-sidebar-header__close-icon{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;appearance:none;background:none;border:none;color:currentColor;height:3rem;margin:0;min-height:3rem;min-width:3rem;padding:0;width:3rem;left:initial;right:0;top:0}.daff-sidebar-header__title,.daff-sidebar-header__content{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;line-height:1rem;font-weight:500}.daff-sidebar-header__close-icon+.daff-sidebar-header__content{margin:0 1.75rem 0 0}.daff-sidebar.right .daff-sidebar-header__close-icon{left:0;right:initial}.daff-sidebar.right .daff-sidebar-header__close-icon+.daff-sidebar-header__title,.daff-sidebar.right .daff-sidebar-header__close-icon+.daff-sidebar-header__content{margin:0 0 0 1.75rem}\n"], dependencies: [{ kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
345
398
|
}
|
346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarHeaderComponent, decorators: [{
|
347
400
|
type: Component,
|
348
401
|
args: [{ selector: 'daff-sidebar-header', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
349
402
|
FaIconComponent,
|
@@ -498,6 +551,9 @@ const getAnimationState = (interactable) => interactable ? 'interactable' : 'non
|
|
498
551
|
|
499
552
|
class DaffSidebarViewportBackdropComponent {
|
500
553
|
constructor() {
|
554
|
+
/**
|
555
|
+
* @docs-private
|
556
|
+
*/
|
501
557
|
this.interactableClass = true;
|
502
558
|
/**
|
503
559
|
* Determines whether or not the backdrop is transparent.
|
@@ -517,37 +573,51 @@ class DaffSidebarViewportBackdropComponent {
|
|
517
573
|
*/
|
518
574
|
this.backdropClicked = new EventEmitter();
|
519
575
|
}
|
576
|
+
/**
|
577
|
+
* @docs-private
|
578
|
+
*/
|
520
579
|
ngOnInit() {
|
521
580
|
this.interactableClass = this.interactable;
|
522
581
|
}
|
523
582
|
/**
|
583
|
+
* @docs-private
|
584
|
+
*
|
524
585
|
* Animation hook for that controls the backdrops
|
525
586
|
* entrance and fade animations.
|
526
587
|
*/
|
527
588
|
get fadeBackdropTrigger() {
|
528
589
|
return getAnimationState(this.interactable);
|
529
590
|
}
|
591
|
+
/**
|
592
|
+
* @docs-private
|
593
|
+
*/
|
530
594
|
animationDone(e) {
|
531
595
|
this.interactableClass = !(e.toState === ':leave' || e.toState === 'non-interactable');
|
532
596
|
}
|
597
|
+
/**
|
598
|
+
* @docs-private
|
599
|
+
*/
|
533
600
|
animationStart(e) {
|
534
601
|
if (e.toState === ':enter' || e.toState === 'interactable') {
|
535
602
|
this.interactableClass = true;
|
536
603
|
}
|
537
604
|
}
|
605
|
+
/**
|
606
|
+
* @docs-private
|
607
|
+
*/
|
538
608
|
onBackdropClicked() {
|
539
609
|
this.backdropClicked.emit();
|
540
610
|
}
|
541
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
542
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.
|
611
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarViewportBackdropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
612
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: DaffSidebarViewportBackdropComponent, isStandalone: true, selector: "daff-sidebar-viewport-backdrop", inputs: { transparent: "transparent", interactable: "interactable", fullscreen: "fullscreen" }, outputs: { backdropClicked: "backdropClicked" }, host: { listeners: { "@fadeBackdrop.done": "animationDone($event)", "@fadeBackdrop.start": "animationStart($event)", "click": "onBackdropClicked()" }, properties: { "class.interactable": "this.interactableClass", "class.transparent": "this.transparent", "class.fullscreen": "this.fullscreen", "@fadeBackdrop": "this.fadeBackdropTrigger" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block;background:#0000004d;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;pointer-events:auto;height:100%;width:100%;visibility:hidden;z-index:6}:host.interactable{visibility:visible;pointer-events:all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host.transparent{background:none}:host:focus,:host:active,:host:visited{outline:0}:host.fullscreen{position:absolute}\n"], animations: [
|
543
613
|
daffSidebarViewportBackdropAnimations.fadeBackdrop,
|
544
614
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
545
615
|
}
|
546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarViewportBackdropComponent, decorators: [{
|
547
617
|
type: Component,
|
548
618
|
args: [{ selector: 'daff-sidebar-viewport-backdrop', template: '<ng-content></ng-content>', animations: [
|
549
619
|
daffSidebarViewportBackdropAnimations.fadeBackdrop,
|
550
|
-
], changeDetection: ChangeDetectionStrategy.OnPush,
|
620
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;background:#0000004d;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;pointer-events:auto;height:100%;width:100%;visibility:hidden;z-index:6}:host.interactable{visibility:visible;pointer-events:all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host.transparent{background:none}:host:focus,:host:active,:host:visited{outline:0}:host.fullscreen{position:absolute}\n"] }]
|
551
621
|
}], propDecorators: { interactableClass: [{
|
552
622
|
type: HostBinding,
|
553
623
|
args: ['class.interactable']
|
@@ -580,27 +650,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
580
650
|
}] } });
|
581
651
|
|
582
652
|
/**
|
583
|
-
*
|
653
|
+
* DaffSidebarViewportComponent serves as the container for managing sidebars across an entire application.
|
654
|
+
* Because it's a functional component, it supports multiple simultaneously open sidebar and is designed to
|
655
|
+
* handle these scenarios gracefully.
|
584
656
|
*
|
585
|
-
*
|
586
|
-
*
|
587
|
-
* at the same time. See {@link DaffSidebarMode}.
|
657
|
+
* > However, there is one key contraint: only one sidebar per **mode** is allowed
|
658
|
+
* on each **side** (e.g., left or right) at any given time.
|
588
659
|
*
|
589
|
-
*
|
590
|
-
* at the same time. As a result, this component attempts to gracefully handle these situations.
|
591
|
-
* However, importantly, there can only be one sidebar of each mode, on each side, at any given time.
|
660
|
+
* If this constraint is violated, the component will throw an exception to prevent unintended behavior.
|
592
661
|
*
|
593
|
-
* If this is violated, this component will throw an exception.
|
594
|
-
*
|
595
|
-
* @example Using the sidebar viewport
|
596
662
|
* ```html
|
597
663
|
* <daff-sidebar-viewport>
|
598
664
|
* <daff-sidebar></daff-sidebar>
|
599
|
-
* <
|
665
|
+
* <div>Site content</div>
|
600
666
|
* </daff-sidebar-viewport>
|
601
667
|
* ```
|
602
668
|
*/
|
603
669
|
class DaffSidebarViewportComponent {
|
670
|
+
/**
|
671
|
+
* @docs-private
|
672
|
+
*/
|
604
673
|
get classes() {
|
605
674
|
return {
|
606
675
|
'daff-sidebar-viewport': true,
|
@@ -610,14 +679,23 @@ class DaffSidebarViewportComponent {
|
|
610
679
|
};
|
611
680
|
}
|
612
681
|
;
|
682
|
+
/**
|
683
|
+
* @docs-private
|
684
|
+
*/
|
613
685
|
get isNavOnSide() {
|
614
686
|
return this.navPlacement === DaffNavPlacementEnum.BESIDE;
|
615
687
|
}
|
688
|
+
/**
|
689
|
+
* @docs-private
|
690
|
+
*/
|
616
691
|
onContentAnimationStart(e) {
|
617
692
|
if (e.toState === 'open') {
|
618
693
|
this._elementRef.nativeElement.style.overflow = 'clip';
|
619
694
|
}
|
620
695
|
}
|
696
|
+
/**
|
697
|
+
* @docs-private
|
698
|
+
*/
|
621
699
|
onContentAnimationDone(e) {
|
622
700
|
if (e.toState === 'closed') {
|
623
701
|
this._elementRef.nativeElement.style.overflow = null;
|
@@ -629,10 +707,12 @@ class DaffSidebarViewportComponent {
|
|
629
707
|
this.bodyScroll = bodyScroll;
|
630
708
|
this.parentViewport = parentViewport;
|
631
709
|
this.scroll = scroll;
|
710
|
+
/**
|
711
|
+
* @docs-private
|
712
|
+
*/
|
632
713
|
this.hostClass = true;
|
633
714
|
/**
|
634
|
-
* The placement of the nav in relation to the sidebar.
|
635
|
-
* Note that this is really only available when there is a `side-fixed` sidebar.
|
715
|
+
* The placement of the nav in relation to the sidebar. Note that this is really only available when there is a `side-fixed` sidebar.
|
636
716
|
*/
|
637
717
|
this.navPlacement = DaffNavPlacementEnum.ABOVE;
|
638
718
|
/**
|
@@ -643,10 +723,14 @@ class DaffSidebarViewportComponent {
|
|
643
723
|
this._isPaddedLeft = false;
|
644
724
|
this._isPaddedRight = false;
|
645
725
|
/**
|
726
|
+
* @docs-private
|
727
|
+
*
|
646
728
|
* Whether or not the backdrop is interactable
|
647
729
|
*/
|
648
730
|
this._backdropInteractable = false;
|
649
731
|
/**
|
732
|
+
* @docs-private
|
733
|
+
*
|
650
734
|
* The animation state
|
651
735
|
*/
|
652
736
|
this._animationState = { value: DaffSidebarAnimationStates.CLOSED, params: { shift: '0px' } };
|
@@ -655,6 +739,9 @@ class DaffSidebarViewportComponent {
|
|
655
739
|
*/
|
656
740
|
this.backdropClicked = new EventEmitter();
|
657
741
|
}
|
742
|
+
/**
|
743
|
+
* @docs-private
|
744
|
+
*/
|
658
745
|
ngAfterContentChecked() {
|
659
746
|
const nextShift = sidebarViewportContentShift(this.sidebars) + 'px';
|
660
747
|
if (this._shift !== nextShift) {
|
@@ -688,6 +775,9 @@ class DaffSidebarViewportComponent {
|
|
688
775
|
this._isPaddedLeft = isSidebarViewportContentPadded(this.sidebars, 'left');
|
689
776
|
this._isPaddedRight = isSidebarViewportContentPadded(this.sidebars, 'right');
|
690
777
|
}
|
778
|
+
/**
|
779
|
+
* @docs-private
|
780
|
+
*/
|
691
781
|
ngOnDestroy() {
|
692
782
|
if (!this.parentViewport && !hasParentViewport(this._elementRef.nativeElement)) {
|
693
783
|
this.bodyScroll.enable();
|
@@ -710,22 +800,23 @@ class DaffSidebarViewportComponent {
|
|
710
800
|
}
|
711
801
|
/**
|
712
802
|
* @docs-private
|
713
|
-
*
|
803
|
+
*
|
804
|
+
* Called when the backdrop of the viewport is clicked upon.
|
714
805
|
*/
|
715
806
|
_backdropClicked() {
|
716
807
|
this.backdropClicked.emit();
|
717
808
|
}
|
718
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
719
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.
|
809
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarViewportComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: DAFF_SIDEBAR_SCROLL_TOKEN, skipSelf: true }, { token: DaffSidebarViewportComponent, optional: true, skipSelf: true }, { token: DAFF_SIDEBAR_SCROLL_TOKEN }], target: i0.ɵɵFactoryTarget.Component }); }
|
810
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.5", type: DaffSidebarViewportComponent, isStandalone: true, selector: "daff-sidebar-viewport", inputs: { navPlacement: "navPlacement" }, outputs: { backdropClicked: "backdropClicked" }, host: { properties: { "class.daff-sidebar-viewport": "this.hostClass", "class": "this.classes" } }, providers: [
|
720
811
|
{
|
721
812
|
provide: DAFF_SIDEBAR_SCROLL_TOKEN,
|
722
813
|
useFactory: daffSidebarViewportScrollFactory,
|
723
814
|
},
|
724
|
-
], queries: [{ propertyName: "sidebars", predicate: DaffSidebarComponent }], ngImport: i0, template: "<daff-sidebar-viewport-backdrop\n [@transformContent]=\"_animationState\"\n [interactable]=\"_backdropInteractable\"\n (backdropClicked)=\"_backdropClicked()\">\n</daff-sidebar-viewport-backdrop>\n\n<div class=\"daff-sidebar-viewport__nav\"\n [@transformContent]=\"_animationState\">\n <ng-content select=\"[daff-sidebar-viewport-nav]\"></ng-content>\n</div>\n\n<ng-content select=\"daff-sidebar:not([side=right])\"></ng-content>\n\n<div class=\"daff-sidebar-viewport__content\"\n [@transformContent]=\"_animationState\"\n (@transformContent.start)=\"onContentAnimationStart($event)\"\n (@transformContent.done)=\"onContentAnimationDone($event)\">\n <div class=\"daff-sidebar-viewport__inner\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-content select=\"daff-sidebar[side=right]\"></ng-content>\n", styles: [":host{display:flex;min-height:100dvh;position:relative;width:100%;z-index:1}:host.pad-left .daff-sidebar-viewport__inner{padding-left:0}@media (min-width: 1024px){:host.pad-left .daff-sidebar-viewport__inner{padding-left:var(--daff-sidebar-left-width, 240px)}}:host.pad-left.beside .daff-sidebar-viewport__nav{padding-left:0}@media (min-width: 1024px){:host.pad-left.beside .daff-sidebar-viewport__nav{padding-left:var(--daff-sidebar-left-width, 240px)}}:host.pad-right .daff-sidebar-viewport__inner{padding-right:0}@media (min-width: 1024px){:host.pad-right .daff-sidebar-viewport__inner{padding-right:var(--daff-sidebar-right-width, 240px)}}:host.pad-right.beside .daff-sidebar-viewport__nav{padding-right:0}@media (min-width: 1024px){:host.pad-right.beside .daff-sidebar-viewport__nav{padding-right:var(--daff-sidebar-right-width, 240px)}}.daff-sidebar-viewport__content{flex:0 1 auto;width:100%;z-index:3;min-height:100%}.daff-sidebar-viewport__nav{position:fixed;top:0;width:100%;z-index:4}.daff-sidebar-viewport__nav:empty{display:none}.daff-sidebar-viewport__nav:not(:empty)~.daff-sidebar-viewport__content{margin-top:var(--daff-sidebar-side-fixed-top-shift)}:host-context(daff-sidebar-viewport daff-sidebar-viewport){transform:translate(0);min-height:auto}:host-context(daff-sidebar-viewport daff-sidebar-viewport) .daff-sidebar-viewport__inner{padding-left:0!important;padding-right:0!important}\n"], dependencies: [{ kind: "component", type: DaffSidebarViewportBackdropComponent, selector: "daff-sidebar-viewport-backdrop", inputs: ["transparent", "interactable", "fullscreen"], outputs: ["backdropClicked"] }], animations: [
|
815
|
+
], queries: [{ propertyName: "sidebars", predicate: DaffSidebarComponent }], ngImport: i0, template: "<daff-sidebar-viewport-backdrop\n [@transformContent]=\"_animationState\"\n [interactable]=\"_backdropInteractable\"\n (backdropClicked)=\"_backdropClicked()\">\n</daff-sidebar-viewport-backdrop>\n\n<div class=\"daff-sidebar-viewport__nav\"\n [@transformContent]=\"_animationState\">\n <ng-content select=\"[daff-sidebar-viewport-nav]\"></ng-content>\n</div>\n\n<ng-content select=\"daff-sidebar:not([side=right])\"></ng-content>\n\n<div class=\"daff-sidebar-viewport__content\"\n [@transformContent]=\"_animationState\"\n (@transformContent.start)=\"onContentAnimationStart($event)\"\n (@transformContent.done)=\"onContentAnimationDone($event)\">\n <div class=\"daff-sidebar-viewport__inner\">\n <ng-content></ng-content>\n <div class=\"daff-sidebar-viewport__footer\">\n <ng-content select=\"[daff-sidebar-viewport-footer]\"></ng-content>\n </div>\n </div>\n</div>\n\n<ng-content select=\"daff-sidebar[side=right]\"></ng-content>\n", styles: [":host{display:flex;min-height:100dvh;position:relative;width:100%;z-index:1}:host .daff-sidebar-viewport__inner{display:flex;flex-direction:column;height:100%}:host.pad-left .daff-sidebar-viewport__inner{padding-left:0}@media (min-width: 1024px){:host.pad-left .daff-sidebar-viewport__inner{padding-left:var(--daff-sidebar-left-width, 240px)}}:host.pad-left.beside .daff-sidebar-viewport__nav{padding-left:0}@media (min-width: 1024px){:host.pad-left.beside .daff-sidebar-viewport__nav{padding-left:var(--daff-sidebar-left-width, 240px)}}:host.pad-right .daff-sidebar-viewport__inner{padding-right:0}@media (min-width: 1024px){:host.pad-right .daff-sidebar-viewport__inner{padding-right:var(--daff-sidebar-right-width, 240px)}}:host.pad-right.beside .daff-sidebar-viewport__nav{padding-right:0}@media (min-width: 1024px){:host.pad-right.beside .daff-sidebar-viewport__nav{padding-right:var(--daff-sidebar-right-width, 240px)}}.daff-sidebar-viewport__content{flex:0 1 auto;width:100%;z-index:3;min-height:100%}.daff-sidebar-viewport__nav{position:fixed;top:0;width:100%;z-index:4}.daff-sidebar-viewport__nav:empty{display:none}.daff-sidebar-viewport__nav:not(:empty)~.daff-sidebar-viewport__content{margin-top:var(--daff-sidebar-side-fixed-top-shift)}.daff-sidebar-viewport__footer{margin-top:auto}:host-context(daff-sidebar-viewport daff-sidebar-viewport){transform:translate(0);min-height:auto}:host-context(daff-sidebar-viewport daff-sidebar-viewport) .daff-sidebar-viewport__inner{padding-left:0!important;padding-right:0!important}\n"], dependencies: [{ kind: "component", type: DaffSidebarViewportBackdropComponent, selector: "daff-sidebar-viewport-backdrop", inputs: ["transparent", "interactable", "fullscreen"], outputs: ["backdropClicked"] }], animations: [
|
725
816
|
daffSidebarAnimations.transformContent,
|
726
817
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
727
818
|
}
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
819
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarViewportComponent, decorators: [{
|
729
820
|
type: Component,
|
730
821
|
args: [{ selector: 'daff-sidebar-viewport', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
731
822
|
daffSidebarAnimations.transformContent,
|
@@ -736,7 +827,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
736
827
|
},
|
737
828
|
], imports: [
|
738
829
|
DaffSidebarViewportBackdropComponent,
|
739
|
-
], template: "<daff-sidebar-viewport-backdrop\n [@transformContent]=\"_animationState\"\n [interactable]=\"_backdropInteractable\"\n (backdropClicked)=\"_backdropClicked()\">\n</daff-sidebar-viewport-backdrop>\n\n<div class=\"daff-sidebar-viewport__nav\"\n [@transformContent]=\"_animationState\">\n <ng-content select=\"[daff-sidebar-viewport-nav]\"></ng-content>\n</div>\n\n<ng-content select=\"daff-sidebar:not([side=right])\"></ng-content>\n\n<div class=\"daff-sidebar-viewport__content\"\n [@transformContent]=\"_animationState\"\n (@transformContent.start)=\"onContentAnimationStart($event)\"\n (@transformContent.done)=\"onContentAnimationDone($event)\">\n <div class=\"daff-sidebar-viewport__inner\">\n <ng-content></ng-content>\n </div>\n</div>\n\n<ng-content select=\"daff-sidebar[side=right]\"></ng-content>\n", styles: [":host{display:flex;min-height:100dvh;position:relative;width:100%;z-index:1}:host.pad-left .daff-sidebar-viewport__inner{padding-left:0}@media (min-width: 1024px){:host.pad-left .daff-sidebar-viewport__inner{padding-left:var(--daff-sidebar-left-width, 240px)}}:host.pad-left.beside .daff-sidebar-viewport__nav{padding-left:0}@media (min-width: 1024px){:host.pad-left.beside .daff-sidebar-viewport__nav{padding-left:var(--daff-sidebar-left-width, 240px)}}:host.pad-right .daff-sidebar-viewport__inner{padding-right:0}@media (min-width: 1024px){:host.pad-right .daff-sidebar-viewport__inner{padding-right:var(--daff-sidebar-right-width, 240px)}}:host.pad-right.beside .daff-sidebar-viewport__nav{padding-right:0}@media (min-width: 1024px){:host.pad-right.beside .daff-sidebar-viewport__nav{padding-right:var(--daff-sidebar-right-width, 240px)}}.daff-sidebar-viewport__content{flex:0 1 auto;width:100%;z-index:3;min-height:100%}.daff-sidebar-viewport__nav{position:fixed;top:0;width:100%;z-index:4}.daff-sidebar-viewport__nav:empty{display:none}.daff-sidebar-viewport__nav:not(:empty)~.daff-sidebar-viewport__content{margin-top:var(--daff-sidebar-side-fixed-top-shift)}:host-context(daff-sidebar-viewport daff-sidebar-viewport){transform:translate(0);min-height:auto}:host-context(daff-sidebar-viewport daff-sidebar-viewport) .daff-sidebar-viewport__inner{padding-left:0!important;padding-right:0!important}\n"] }]
|
830
|
+
], template: "<daff-sidebar-viewport-backdrop\n [@transformContent]=\"_animationState\"\n [interactable]=\"_backdropInteractable\"\n (backdropClicked)=\"_backdropClicked()\">\n</daff-sidebar-viewport-backdrop>\n\n<div class=\"daff-sidebar-viewport__nav\"\n [@transformContent]=\"_animationState\">\n <ng-content select=\"[daff-sidebar-viewport-nav]\"></ng-content>\n</div>\n\n<ng-content select=\"daff-sidebar:not([side=right])\"></ng-content>\n\n<div class=\"daff-sidebar-viewport__content\"\n [@transformContent]=\"_animationState\"\n (@transformContent.start)=\"onContentAnimationStart($event)\"\n (@transformContent.done)=\"onContentAnimationDone($event)\">\n <div class=\"daff-sidebar-viewport__inner\">\n <ng-content></ng-content>\n <div class=\"daff-sidebar-viewport__footer\">\n <ng-content select=\"[daff-sidebar-viewport-footer]\"></ng-content>\n </div>\n </div>\n</div>\n\n<ng-content select=\"daff-sidebar[side=right]\"></ng-content>\n", styles: [":host{display:flex;min-height:100dvh;position:relative;width:100%;z-index:1}:host .daff-sidebar-viewport__inner{display:flex;flex-direction:column;height:100%}:host.pad-left .daff-sidebar-viewport__inner{padding-left:0}@media (min-width: 1024px){:host.pad-left .daff-sidebar-viewport__inner{padding-left:var(--daff-sidebar-left-width, 240px)}}:host.pad-left.beside .daff-sidebar-viewport__nav{padding-left:0}@media (min-width: 1024px){:host.pad-left.beside .daff-sidebar-viewport__nav{padding-left:var(--daff-sidebar-left-width, 240px)}}:host.pad-right .daff-sidebar-viewport__inner{padding-right:0}@media (min-width: 1024px){:host.pad-right .daff-sidebar-viewport__inner{padding-right:var(--daff-sidebar-right-width, 240px)}}:host.pad-right.beside .daff-sidebar-viewport__nav{padding-right:0}@media (min-width: 1024px){:host.pad-right.beside .daff-sidebar-viewport__nav{padding-right:var(--daff-sidebar-right-width, 240px)}}.daff-sidebar-viewport__content{flex:0 1 auto;width:100%;z-index:3;min-height:100%}.daff-sidebar-viewport__nav{position:fixed;top:0;width:100%;z-index:4}.daff-sidebar-viewport__nav:empty{display:none}.daff-sidebar-viewport__nav:not(:empty)~.daff-sidebar-viewport__content{margin-top:var(--daff-sidebar-side-fixed-top-shift)}.daff-sidebar-viewport__footer{margin-top:auto}:host-context(daff-sidebar-viewport daff-sidebar-viewport){transform:translate(0);min-height:auto}:host-context(daff-sidebar-viewport daff-sidebar-viewport) .daff-sidebar-viewport__inner{padding-left:0!important;padding-right:0!important}\n"] }]
|
740
831
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
741
832
|
type: Inject,
|
742
833
|
args: [DAFF_SIDEBAR_SCROLL_TOKEN]
|
@@ -771,27 +862,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
771
862
|
* @deprecated in favor of {@link DAFF_SIDEBAR_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.
|
772
863
|
*/
|
773
864
|
class DaffSidebarModule {
|
774
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.
|
775
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.
|
865
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
866
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarModule, imports: [CommonModule,
|
776
867
|
A11yModule,
|
777
868
|
DaffSidebarComponent,
|
778
869
|
DaffSidebarViewportComponent,
|
779
870
|
DaffSidebarHeaderComponent,
|
780
871
|
DaffSidebarFooterComponent,
|
781
872
|
DaffSidebarHeaderTitleDirective,
|
782
|
-
DaffSidebarHeaderActionDirective,
|
783
|
-
DaffSidebarViewportBackdropComponent], exports: [DaffSidebarComponent,
|
873
|
+
DaffSidebarHeaderActionDirective], exports: [DaffSidebarComponent,
|
784
874
|
DaffSidebarViewportComponent,
|
785
875
|
DaffSidebarHeaderComponent,
|
786
876
|
DaffSidebarFooterComponent,
|
787
877
|
DaffSidebarHeaderTitleDirective,
|
788
|
-
DaffSidebarHeaderActionDirective
|
789
|
-
|
790
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffSidebarModule, imports: [CommonModule,
|
878
|
+
DaffSidebarHeaderActionDirective] }); }
|
879
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarModule, imports: [CommonModule,
|
791
880
|
A11yModule,
|
792
881
|
DaffSidebarHeaderComponent] }); }
|
793
882
|
}
|
794
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.
|
883
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffSidebarModule, decorators: [{
|
795
884
|
type: NgModule,
|
796
885
|
args: [{
|
797
886
|
imports: [
|
@@ -803,7 +892,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
803
892
|
DaffSidebarFooterComponent,
|
804
893
|
DaffSidebarHeaderTitleDirective,
|
805
894
|
DaffSidebarHeaderActionDirective,
|
806
|
-
DaffSidebarViewportBackdropComponent,
|
807
895
|
],
|
808
896
|
exports: [
|
809
897
|
DaffSidebarComponent,
|
@@ -812,7 +900,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
|
|
812
900
|
DaffSidebarFooterComponent,
|
813
901
|
DaffSidebarHeaderTitleDirective,
|
814
902
|
DaffSidebarHeaderActionDirective,
|
815
|
-
DaffSidebarViewportBackdropComponent,
|
816
903
|
],
|
817
904
|
}]
|
818
905
|
}] });
|
@@ -869,6 +956,9 @@ const FLOATING_MODES = [
|
|
869
956
|
*/
|
870
957
|
const daffSidebarIsFloatingMode = (mode) => FLOATING_MODES.includes(mode);
|
871
958
|
|
959
|
+
/**
|
960
|
+
* @docs-private
|
961
|
+
*/
|
872
962
|
const DAFF_SIDEBAR_COMPONENTS = [
|
873
963
|
DaffSidebarComponent,
|
874
964
|
DaffSidebarViewportComponent,
|
@@ -876,12 +966,11 @@ const DAFF_SIDEBAR_COMPONENTS = [
|
|
876
966
|
DaffSidebarFooterComponent,
|
877
967
|
DaffSidebarHeaderTitleDirective,
|
878
968
|
DaffSidebarHeaderActionDirective,
|
879
|
-
DaffSidebarViewportBackdropComponent,
|
880
969
|
];
|
881
970
|
|
882
971
|
/**
|
883
972
|
* Generated bundle index. Do not edit.
|
884
973
|
*/
|
885
974
|
|
886
|
-
export { DAFF_SIDEBAR_COMPONENTS, DaffSidebarComponent, DaffSidebarFooterComponent, DaffSidebarHeaderActionDirective, DaffSidebarHeaderComponent, DaffSidebarHeaderTitleDirective, DaffSidebarModule, DaffSidebarService,
|
975
|
+
export { DAFF_SIDEBAR_COMPONENTS, DaffSidebarComponent, DaffSidebarFooterComponent, DaffSidebarHeaderActionDirective, DaffSidebarHeaderComponent, DaffSidebarHeaderTitleDirective, DaffSidebarModule, DaffSidebarService, DaffSidebarViewportComponent, daffSidebarIsDockedMode, daffSidebarIsFloatingMode };
|
887
976
|
//# sourceMappingURL=daffodil-design-sidebar.mjs.map
|