@daffodil/design 0.51.1 → 0.53.1

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.
Files changed (53) hide show
  1. package/core/focus/focusable-elements.d.ts +1 -0
  2. package/core/focus/public_api.d.ts +1 -0
  3. package/core/lazy/lazy-component.d.ts +7 -0
  4. package/core/lazy/public_api.d.ts +1 -0
  5. package/core/public_api.d.ts +2 -0
  6. package/esm2020/core/focus/focusable-elements.mjs +2 -0
  7. package/esm2020/core/focus/public_api.mjs +2 -0
  8. package/esm2020/core/lazy/lazy-component.mjs +3 -0
  9. package/esm2020/core/lazy/public_api.mjs +2 -0
  10. package/esm2020/core/public_api.mjs +3 -1
  11. package/esm2020/menu/examples/basic-menu/basic-menu.component.mjs +16 -0
  12. package/esm2020/menu/examples/basic-menu/basic-menu.module.mjs +36 -0
  13. package/esm2020/menu/examples/basic-menu/menu-content/menu-content.component.mjs +19 -0
  14. package/esm2020/menu/examples/daffodil-design-menu-examples.mjs +5 -0
  15. package/esm2020/menu/examples/index.mjs +2 -0
  16. package/esm2020/menu/examples/public_api.mjs +6 -0
  17. package/esm2020/molecules/menu/helpers/create-overlay.mjs +29 -0
  18. package/esm2020/molecules/menu/helpers/public_api.mjs +2 -0
  19. package/esm2020/molecules/menu/menu/menu.component.mjs +63 -0
  20. package/esm2020/molecules/menu/menu-activator/menu-activator.component.mjs +48 -0
  21. package/esm2020/molecules/menu/menu-item/menu-item.component.mjs +35 -0
  22. package/esm2020/molecules/menu/menu.module.mjs +46 -0
  23. package/esm2020/molecules/menu/public_api.mjs +7 -0
  24. package/esm2020/molecules/menu/service/menu.service.mjs +52 -0
  25. package/esm2020/public_api.mjs +2 -1
  26. package/fesm2015/daffodil-design-menu-examples.mjs +74 -0
  27. package/fesm2015/daffodil-design-menu-examples.mjs.map +1 -0
  28. package/fesm2015/daffodil-design.mjs +255 -16
  29. package/fesm2015/daffodil-design.mjs.map +1 -1
  30. package/fesm2020/daffodil-design-menu-examples.mjs +74 -0
  31. package/fesm2020/daffodil-design-menu-examples.mjs.map +1 -0
  32. package/fesm2020/daffodil-design.mjs +259 -16
  33. package/fesm2020/daffodil-design.mjs.map +1 -1
  34. package/menu/examples/basic-menu/basic-menu.component.d.ts +7 -0
  35. package/menu/examples/basic-menu/basic-menu.module.d.ts +10 -0
  36. package/menu/examples/basic-menu/menu-content/menu-content.component.d.ts +8 -0
  37. package/menu/examples/daffodil-design-menu-examples.d.ts +5 -0
  38. package/menu/examples/index.d.ts +1 -0
  39. package/menu/examples/package.json +10 -0
  40. package/menu/examples/public_api.d.ts +2 -0
  41. package/molecules/menu/helpers/create-overlay.d.ts +3 -0
  42. package/molecules/menu/helpers/public_api.d.ts +1 -0
  43. package/molecules/menu/menu/menu.component.d.ts +19 -0
  44. package/molecules/menu/menu-activator/menu-activator.component.d.ts +18 -0
  45. package/molecules/menu/menu-item/menu-item.component.d.ts +20 -0
  46. package/molecules/menu/menu.module.d.ts +11 -0
  47. package/molecules/menu/public_api.d.ts +6 -0
  48. package/molecules/menu/service/menu.service.d.ts +24 -0
  49. package/package.json +11 -3
  50. package/public_api.d.ts +1 -0
  51. package/scss/theme.scss +2 -0
  52. package/src/molecules/menu/README.md +7 -0
  53. package/src/molecules/menu/menu-theme.scss +25 -0
@@ -0,0 +1,74 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import { faUser, faInfo, faEnvelope } from '@fortawesome/free-solid-svg-icons';
4
+ import * as i1 from '@daffodil/design';
5
+ import { DaffButtonModule, DaffMenuModule } from '@daffodil/design';
6
+ import * as i2 from '@fortawesome/angular-fontawesome';
7
+ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
8
+
9
+ class MenuContentComponent {
10
+ constructor() {
11
+ this.faUser = faUser;
12
+ this.faInfo = faInfo;
13
+ this.faEnvelope = faEnvelope;
14
+ }
15
+ }
16
+ /** @nocollapse */ MenuContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MenuContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ /** @nocollapse */ MenuContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: MenuContentComponent, selector: "menu-content", ngImport: i0, template: "<daff-menu>\n <a href=\"#\" daff-menu-item>\n <fa-icon [icon]=\"faUser\" [fixedWidth]=\"true\"></fa-icon> My Account\n </a>\n <a href=\"#\" daff-menu-item>\n <fa-icon [icon]=\"faInfo\" [fixedWidth]=\"true\"></fa-icon> Help\n </a>\n <button daff-menu-item>\n <fa-icon [icon]=\"faEnvelope\" [fixedWidth]=\"true\"></fa-icon> Contact Us\n </button>\n</daff-menu>", components: [{ type: i1.DaffMenuComponent, selector: "daff-menu" }, { type: i1.DaffMenuItemComponent, selector: "a[daff-menu-item],button[daff-menu-item]" }, { type: i2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MenuContentComponent, decorators: [{
19
+ type: Component,
20
+ args: [{ selector: 'menu-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<daff-menu>\n <a href=\"#\" daff-menu-item>\n <fa-icon [icon]=\"faUser\" [fixedWidth]=\"true\"></fa-icon> My Account\n </a>\n <a href=\"#\" daff-menu-item>\n <fa-icon [icon]=\"faInfo\" [fixedWidth]=\"true\"></fa-icon> Help\n </a>\n <button daff-menu-item>\n <fa-icon [icon]=\"faEnvelope\" [fixedWidth]=\"true\"></fa-icon> Contact Us\n </button>\n</daff-menu>" }]
21
+ }] });
22
+
23
+ class BasicMenuComponent {
24
+ constructor() {
25
+ this.menu = MenuContentComponent;
26
+ }
27
+ }
28
+ /** @nocollapse */ BasicMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BasicMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
+ /** @nocollapse */ BasicMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: BasicMenuComponent, selector: "basic-menu", ngImport: i0, template: "<button daff-button color=\"theme\" [daffMenuActivator]=\"menu\">\n\tMenu\n</button>", components: [{ type: i1.DaffButtonComponent, selector: "button[daff-button],button[daff-stroked-button],button[daff-raised-button],button[daff-icon-button],button[daff-underline-button],a[daff-button],a[daff-stroked-button],a[daff-raised-button],a[daff-icon-button],a[daff-underline-button]", inputs: ["color", "size", "status"] }], directives: [{ type: i1.DaffMenuActivatorDirective, selector: "[daffMenuActivator]", inputs: ["daffMenuActivator"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BasicMenuComponent, decorators: [{
31
+ type: Component,
32
+ args: [{ selector: 'basic-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button daff-button color=\"theme\" [daffMenuActivator]=\"menu\">\n\tMenu\n</button>" }]
33
+ }] });
34
+
35
+ class BasicMenuComponentModule {
36
+ }
37
+ /** @nocollapse */ BasicMenuComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BasicMenuComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
+ /** @nocollapse */ BasicMenuComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BasicMenuComponentModule, declarations: [BasicMenuComponent,
39
+ MenuContentComponent], imports: [DaffButtonModule,
40
+ DaffMenuModule,
41
+ FontAwesomeModule], exports: [BasicMenuComponent] });
42
+ /** @nocollapse */ BasicMenuComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BasicMenuComponentModule, imports: [[
43
+ DaffButtonModule,
44
+ DaffMenuModule,
45
+ FontAwesomeModule,
46
+ ]] });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BasicMenuComponentModule, decorators: [{
48
+ type: NgModule,
49
+ args: [{
50
+ declarations: [
51
+ BasicMenuComponent,
52
+ MenuContentComponent,
53
+ ],
54
+ exports: [
55
+ BasicMenuComponent,
56
+ ],
57
+ imports: [
58
+ DaffButtonModule,
59
+ DaffMenuModule,
60
+ FontAwesomeModule,
61
+ ],
62
+ }]
63
+ }] });
64
+
65
+ const MENU_EXAMPLES = [
66
+ { component: BasicMenuComponent, module: BasicMenuComponentModule },
67
+ ];
68
+
69
+ /**
70
+ * Generated bundle index. Do not edit.
71
+ */
72
+
73
+ export { MENU_EXAMPLES };
74
+ //# sourceMappingURL=daffodil-design-menu-examples.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daffodil-design-menu-examples.mjs","sources":["../../../libs/design/menu/examples/src/basic-menu/menu-content/menu-content.component.ts","../../../libs/design/menu/examples/src/basic-menu/menu-content/menu-content.component.html","../../../libs/design/menu/examples/src/basic-menu/basic-menu.component.ts","../../../libs/design/menu/examples/src/basic-menu/basic-menu.component.html","../../../libs/design/menu/examples/src/basic-menu/basic-menu.module.ts","../../../libs/design/menu/examples/src/public_api.ts","../../../libs/design/menu/examples/src/daffodil-design-menu-examples.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\nimport {\n faEnvelope,\n faInfo,\n faUser,\n} from '@fortawesome/free-solid-svg-icons';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'menu-content',\n templateUrl: './menu-content.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class MenuContentComponent {\n faUser = faUser;\n faInfo = faInfo;\n faEnvelope = faEnvelope;\n}\n","<daff-menu>\n <a href=\"#\" daff-menu-item>\n <fa-icon [icon]=\"faUser\" [fixedWidth]=\"true\"></fa-icon> My Account\n </a>\n <a href=\"#\" daff-menu-item>\n <fa-icon [icon]=\"faInfo\" [fixedWidth]=\"true\"></fa-icon> Help\n </a>\n <button daff-menu-item>\n <fa-icon [icon]=\"faEnvelope\" [fixedWidth]=\"true\"></fa-icon> Contact Us\n </button>\n</daff-menu>","import {\n ChangeDetectionStrategy,\n Component,\n} from '@angular/core';\n\nimport { MenuContentComponent } from './menu-content/menu-content.component';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'basic-menu',\n templateUrl: './basic-menu.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BasicMenuComponent {\n public menu = MenuContentComponent;\n}\n","<button daff-button color=\"theme\" [daffMenuActivator]=\"menu\">\n\tMenu\n</button>","import { NgModule } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\nimport {\n DaffButtonModule,\n DaffMenuModule,\n} from '@daffodil/design';\n\nimport { BasicMenuComponent } from './basic-menu.component';\nimport { MenuContentComponent } from './menu-content/menu-content.component';\n\n@NgModule({\n declarations: [\n BasicMenuComponent,\n MenuContentComponent,\n ],\n exports: [\n BasicMenuComponent,\n ],\n imports: [\n DaffButtonModule,\n DaffMenuModule,\n FontAwesomeModule,\n ],\n})\nexport class BasicMenuComponentModule { }\n","import { ComponentExample } from '@daffodil/design';\n\nimport { BasicMenuComponent } from './basic-menu/basic-menu.component';\nimport { BasicMenuComponentModule } from './basic-menu/basic-menu.module';\n\nexport const MENU_EXAMPLES: ComponentExample[] = [\n { component: BasicMenuComponent, module: BasicMenuComponentModule },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
@@ -1,22 +1,23 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Input, Directive, HostBinding, NgModule, ContentChild, Component, ViewEncapsulation, ChangeDetectionStrategy, InjectionToken, Injectable, TemplateRef, ViewContainerRef, Inject, ViewChild, EventEmitter, Output, HostListener, Optional, Self, ElementRef, ContentChildren, SkipSelf, APP_INITIALIZER } from '@angular/core';
2
+ import { Input, Directive, HostBinding, NgModule, ContentChild, Component, ViewEncapsulation, ChangeDetectionStrategy, InjectionToken, Injectable, TemplateRef, ViewContainerRef, Inject, ViewChild, EventEmitter, Output, HostListener, Optional, Self, ElementRef, ContentChildren, SkipSelf, Type, APP_INITIALIZER } from '@angular/core';
3
3
  import * as i3 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT } from '@angular/common';
5
5
  import * as i1 from '@fortawesome/angular-fontawesome';
6
6
  import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
7
7
  import { faChevronDown, faChevronUp, faChevronRight, faChevronLeft } from '@fortawesome/free-solid-svg-icons';
8
- import { BehaviorSubject, Subject, fromEvent, fromEventPattern, of, merge, EMPTY, combineLatest } from 'rxjs';
9
- import { takeUntil, filter, startWith, map, catchError, shareReplay } from 'rxjs/operators';
8
+ import { BehaviorSubject, Subject, map, takeUntil as takeUntil$1, fromEvent, filter, fromEventPattern, of, merge, EMPTY, combineLatest } from 'rxjs';
9
+ import { takeUntil, filter as filter$1, startWith, map as map$1, catchError, shareReplay } from 'rxjs/operators';
10
10
  import * as i1$1 from '@angular/platform-browser';
11
11
  import * as i1$2 from '@angular/forms';
12
12
  import { FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
13
13
  import { coerceNumberProperty } from '@angular/cdk/coercion';
14
14
  import { trigger, state, style, transition, animate } from '@angular/animations';
15
- import * as i1$3 from '@angular/cdk/portal';
16
- import { CdkPortalOutlet, PortalModule, ComponentPortal } from '@angular/cdk/portal';
17
- import * as i1$4 from '@angular/cdk/overlay';
15
+ import { __awaiter } from 'tslib';
16
+ import * as i1$5 from '@angular/cdk/portal';
17
+ import { ComponentPortal, TemplatePortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
18
+ import * as i1$3 from '@angular/cdk/overlay';
18
19
  import { OverlayModule, GlobalPositionStrategy } from '@angular/cdk/overlay';
19
- import * as i2 from '@angular/cdk/a11y';
20
+ import * as i1$4 from '@angular/cdk/a11y';
20
21
  import { A11yModule } from '@angular/cdk/a11y';
21
22
  import { DaffServerSafePersistenceServiceToken } from '@daffodil/core';
22
23
 
@@ -3325,6 +3326,244 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
3325
3326
  }]
3326
3327
  }] });
3327
3328
 
3329
+ function daffMenuCreateOverlay(overlay, element, config = {}) {
3330
+ return overlay.create(Object.assign({ hasBackdrop: true, backdropClass: 'cdk-overlay-transparent-backdrop', scrollStrategy: overlay.scrollStrategies.block(), disposeOnNavigation: true, positionStrategy: overlay
3331
+ .position()
3332
+ .flexibleConnectedTo(element)
3333
+ .withPositions([
3334
+ {
3335
+ originX: 'start',
3336
+ originY: 'bottom',
3337
+ overlayX: 'start',
3338
+ overlayY: 'top',
3339
+ offsetY: 0,
3340
+ },
3341
+ {
3342
+ originX: 'start',
3343
+ originY: 'top',
3344
+ overlayX: 'start',
3345
+ overlayY: 'bottom',
3346
+ },
3347
+ ]) }, config));
3348
+ }
3349
+ ;
3350
+
3351
+ class DaffMenuService {
3352
+ constructor(overlay) {
3353
+ this.overlay = overlay;
3354
+ this.$_open = new BehaviorSubject(false);
3355
+ this.open$ = this.$_open.asObservable();
3356
+ }
3357
+ _createOverlay(activatorElement, component) {
3358
+ return __awaiter(this, void 0, void 0, function* () {
3359
+ if (!this._overlay) {
3360
+ this._overlay = daffMenuCreateOverlay(this.overlay, activatorElement.element);
3361
+ if (typeof component === 'object' && (component === null || component === void 0 ? void 0 : component.import)) {
3362
+ component = yield component.import();
3363
+ }
3364
+ if (component instanceof Type) {
3365
+ this._overlay.attach(new ComponentPortal(component));
3366
+ }
3367
+ else if (component instanceof TemplateRef) {
3368
+ this._overlay.attach(new TemplatePortal(component, activatorElement));
3369
+ }
3370
+ this._overlay.backdropClick().pipe(map(() => this._destroyOverlay())).subscribe();
3371
+ }
3372
+ });
3373
+ }
3374
+ _destroyOverlay() {
3375
+ if (this._overlay) {
3376
+ this._overlay.detach();
3377
+ this._overlay.dispose();
3378
+ this._overlay = null;
3379
+ }
3380
+ }
3381
+ close() {
3382
+ this._destroyOverlay();
3383
+ this.$_open.next(false);
3384
+ this._activator.element.nativeElement.focus();
3385
+ }
3386
+ open(activator, component) {
3387
+ this._createOverlay(activator, component);
3388
+ this._activator = activator;
3389
+ this.$_open.next(true);
3390
+ }
3391
+ }
3392
+ /** @nocollapse */ DaffMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuService, deps: [{ token: i1$3.Overlay }], target: i0.ɵɵFactoryTarget.Injectable });
3393
+ /** @nocollapse */ DaffMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuService });
3394
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuService, decorators: [{
3395
+ type: Injectable
3396
+ }], ctorParameters: function () { return [{ type: i1$3.Overlay }]; } });
3397
+
3398
+ class DaffMenuActivatorDirective {
3399
+ constructor(service, viewContainerRef, cdRef) {
3400
+ this.service = service;
3401
+ this.viewContainerRef = viewContainerRef;
3402
+ this.cdRef = cdRef;
3403
+ this._destroyed$ = new Subject();
3404
+ this.service.open$.pipe(takeUntil$1(this._destroyed$)).subscribe((val) => {
3405
+ this._open = val;
3406
+ this.cdRef.markForCheck();
3407
+ });
3408
+ }
3409
+ get openClass() {
3410
+ return this._open;
3411
+ }
3412
+ ngOnDestroy() {
3413
+ this._destroyed$.next(true);
3414
+ this._destroyed$.complete();
3415
+ }
3416
+ focus() {
3417
+ this.viewContainerRef.element.nativeElement.focus();
3418
+ }
3419
+ openMenu(event) {
3420
+ event.preventDefault();
3421
+ this.service.open(this.viewContainerRef, this.daffMenuActivator);
3422
+ }
3423
+ }
3424
+ /** @nocollapse */ DaffMenuActivatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuActivatorDirective, deps: [{ token: DaffMenuService }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
3425
+ /** @nocollapse */ DaffMenuActivatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: DaffMenuActivatorDirective, selector: "[daffMenuActivator]", inputs: { daffMenuActivator: "daffMenuActivator" }, host: { listeners: { "click": "openMenu($event)" }, properties: { "class.open": "this.openClass" } }, ngImport: i0 });
3426
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuActivatorDirective, decorators: [{
3427
+ type: Directive,
3428
+ args: [{
3429
+ selector: '[daffMenuActivator]',
3430
+ }]
3431
+ }], ctorParameters: function () { return [{ type: DaffMenuService }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { daffMenuActivator: [{
3432
+ type: Input
3433
+ }], openClass: [{
3434
+ type: HostBinding,
3435
+ args: ['class.open']
3436
+ }], openMenu: [{
3437
+ type: HostListener,
3438
+ args: ['click', ['$event']]
3439
+ }] } });
3440
+
3441
+ class DaffMenuItemComponent {
3442
+ constructor() {
3443
+ /**
3444
+ * @docs-private
3445
+ */
3446
+ this.class = true;
3447
+ /**
3448
+ * Sets the role of the component to menuitem.
3449
+ *
3450
+ * @docs-private
3451
+ */
3452
+ this.role = 'menuitem';
3453
+ }
3454
+ }
3455
+ /** @nocollapse */ DaffMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3456
+ /** @nocollapse */ DaffMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffMenuItemComponent, selector: "a[daff-menu-item],button[daff-menu-item]", host: { properties: { "class.daff-menu-item": "this.class", "attr.role": "this.role" } }, queries: [{ propertyName: "_prefix", first: true, predicate: DaffPrefixDirective, descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"_prefix\">\n <ng-content select=\"[daffPrefix]\"></ng-content>\n</ng-container>\n<div class=\"daff-menu-item__content\">\n <ng-content></ng-content>\n</div>", styles: [":host{cursor:pointer;-webkit-user-select:none;user-select:none;display:block;padding:12px 16px;border:none;border-radius:4px;text-decoration:none}.daff-menu-item__content{display:flex;gap:8px}\n"], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3457
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuItemComponent, decorators: [{
3458
+ type: Component,
3459
+ args: [{ selector: 'a[daff-menu-item]' + ',' +
3460
+ 'button[daff-menu-item]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"_prefix\">\n <ng-content select=\"[daffPrefix]\"></ng-content>\n</ng-container>\n<div class=\"daff-menu-item__content\">\n <ng-content></ng-content>\n</div>", styles: [":host{cursor:pointer;-webkit-user-select:none;user-select:none;display:block;padding:12px 16px;border:none;border-radius:4px;text-decoration:none}.daff-menu-item__content{display:flex;gap:8px}\n"] }]
3461
+ }], propDecorators: { class: [{
3462
+ type: HostBinding,
3463
+ args: ['class.daff-menu-item']
3464
+ }], role: [{
3465
+ type: HostBinding,
3466
+ args: ['attr.role']
3467
+ }], _prefix: [{
3468
+ type: ContentChild,
3469
+ args: [DaffPrefixDirective]
3470
+ }] } });
3471
+
3472
+ const daffFocusableElementsSelector = 'a[href],a[routerlink], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
3473
+
3474
+ class DaffMenuComponent {
3475
+ constructor(_focusTrapFactory, _ngZone, _elementRef, menuService) {
3476
+ this._focusTrapFactory = _focusTrapFactory;
3477
+ this._ngZone = _ngZone;
3478
+ this._elementRef = _elementRef;
3479
+ this.menuService = menuService;
3480
+ this.class = true;
3481
+ this.tabindex = 0;
3482
+ this.role = 'menu';
3483
+ /**
3484
+ * Listen to `keydown` events outside the zone so that change detection is not run every
3485
+ * time a key is pressed. Instead we re-enter the zone only if the `ESC` key is pressed.
3486
+ *
3487
+ */
3488
+ this._ngZone.runOutsideAngular(() => {
3489
+ fromEvent(this._elementRef.nativeElement, 'keyup')
3490
+ .pipe(filter((event) => event.key === 'Escape'))
3491
+ .subscribe((event) => this._ngZone.run(() => {
3492
+ this.menuService.close();
3493
+ event.stopPropagation();
3494
+ }));
3495
+ });
3496
+ }
3497
+ ngAfterContentInit() {
3498
+ this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
3499
+ }
3500
+ ngAfterViewInit() {
3501
+ const focusableChild = this._elementRef.nativeElement.querySelector(daffFocusableElementsSelector);
3502
+ if (focusableChild) {
3503
+ focusableChild.focus();
3504
+ }
3505
+ else {
3506
+ // There's a timing condition when computing HostBindings afterContentInit
3507
+ // so to allow the menu to be focused, we manually set the tabindex.
3508
+ this._elementRef.nativeElement.tabIndex = 0;
3509
+ this._elementRef.nativeElement.focus();
3510
+ }
3511
+ }
3512
+ }
3513
+ /** @nocollapse */ DaffMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuComponent, deps: [{ token: i1$4.ConfigurableFocusTrapFactory }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: DaffMenuService }], target: i0.ɵɵFactoryTarget.Component });
3514
+ /** @nocollapse */ DaffMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffMenuComponent, selector: "daff-menu", host: { properties: { "class.daff-menu": "this.class", "tabindex": "this.tabindex", "attr.role": "this.role" } }, ngImport: i0, template: '<ng-content select="[daff-menu-item]"></ng-content>', isInline: true, styles: [":host{display:block;min-width:112px;max-width:320px;border-radius:4px;padding:8px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3515
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuComponent, decorators: [{
3516
+ type: Component,
3517
+ args: [{ selector: 'daff-menu', template: '<ng-content select="[daff-menu-item]"></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;min-width:112px;max-width:320px;border-radius:4px;padding:8px}\n"] }]
3518
+ }], ctorParameters: function () { return [{ type: i1$4.ConfigurableFocusTrapFactory }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: DaffMenuService }]; }, propDecorators: { class: [{
3519
+ type: HostBinding,
3520
+ args: ['class.daff-menu']
3521
+ }], tabindex: [{
3522
+ type: HostBinding,
3523
+ args: ['tabindex']
3524
+ }], role: [{
3525
+ type: HostBinding,
3526
+ args: ['attr.role']
3527
+ }] } });
3528
+
3529
+ class DaffMenuModule {
3530
+ }
3531
+ /** @nocollapse */ DaffMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3532
+ /** @nocollapse */ DaffMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuModule, declarations: [DaffMenuActivatorDirective,
3533
+ DaffMenuComponent,
3534
+ DaffMenuItemComponent], imports: [CommonModule,
3535
+ OverlayModule], exports: [DaffMenuActivatorDirective,
3536
+ DaffMenuComponent,
3537
+ DaffMenuItemComponent] });
3538
+ /** @nocollapse */ DaffMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuModule, providers: [
3539
+ DaffMenuService,
3540
+ ], imports: [[
3541
+ CommonModule,
3542
+ OverlayModule,
3543
+ ]] });
3544
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuModule, decorators: [{
3545
+ type: NgModule,
3546
+ args: [{
3547
+ imports: [
3548
+ CommonModule,
3549
+ OverlayModule,
3550
+ ],
3551
+ declarations: [
3552
+ DaffMenuActivatorDirective,
3553
+ DaffMenuComponent,
3554
+ DaffMenuItemComponent,
3555
+ ],
3556
+ exports: [
3557
+ DaffMenuActivatorDirective,
3558
+ DaffMenuComponent,
3559
+ DaffMenuItemComponent,
3560
+ ],
3561
+ providers: [
3562
+ DaffMenuService,
3563
+ ],
3564
+ }]
3565
+ }] });
3566
+
3328
3567
  const daffFadeAnimations = {
3329
3568
  fade: trigger('fade', [
3330
3569
  state('open', style({ opacity: 1 })),
@@ -3388,7 +3627,7 @@ class DaffModalComponent {
3388
3627
  }
3389
3628
  }
3390
3629
  /** @nocollapse */ DaffModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3391
- /** @nocollapse */ DaffModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffModalComponent, selector: "daff-modal", inputs: { open: "open" }, host: { listeners: { "@fade.done": "animationDone($event)" }, properties: { "class.daff-modal": "this.modalClass", "@fade": "this.fadeState" } }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [":host{display:block;border-radius:4px;height:100%;max-width:80vw;overflow:hidden;padding:24px;z-index:3}@media (min-width: 480px){:host{height:auto}}\n"], directives: [{ type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [daffFadeAnimations.fade], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3630
+ /** @nocollapse */ DaffModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffModalComponent, selector: "daff-modal", inputs: { open: "open" }, host: { listeners: { "@fade.done": "animationDone($event)" }, properties: { "class.daff-modal": "this.modalClass", "@fade": "this.fadeState" } }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [":host{display:block;border-radius:4px;height:100%;max-width:80vw;overflow:hidden;padding:24px;z-index:3}@media (min-width: 480px){:host{height:auto}}\n"], directives: [{ type: i1$5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [daffFadeAnimations.fade], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3392
3631
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalComponent, decorators: [{
3393
3632
  type: Component,
3394
3633
  args: [{ selector: 'daff-modal', animations: [daffFadeAnimations.fade], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template cdkPortalOutlet></ng-template>\n", styles: [":host{display:block;border-radius:4px;height:100%;max-width:80vw;overflow:hidden;padding:24px;z-index:3}@media (min-width: 480px){:host{height:auto}}\n"] }]
@@ -3560,14 +3799,14 @@ class DaffModalService {
3560
3799
  modal.modal.instance.closedAnimationCompleted.subscribe((e) => this._removeModal(modal));
3561
3800
  }
3562
3801
  }
3563
- /** @nocollapse */ DaffModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalService, deps: [{ token: i1$4.Overlay }], target: i0.ɵɵFactoryTarget.Injectable });
3802
+ /** @nocollapse */ DaffModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalService, deps: [{ token: i1$3.Overlay }], target: i0.ɵɵFactoryTarget.Injectable });
3564
3803
  /** @nocollapse */ DaffModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalService, providedIn: DaffModalModule });
3565
3804
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalService, decorators: [{
3566
3805
  type: Injectable,
3567
3806
  args: [{
3568
3807
  providedIn: DaffModalModule,
3569
3808
  }]
3570
- }], ctorParameters: function () { return [{ type: i1$4.Overlay }]; } });
3809
+ }], ctorParameters: function () { return [{ type: i1$3.Overlay }]; } });
3571
3810
 
3572
3811
  /**
3573
3812
  * A mixin for giving a component the ability to manage a DaffContainerComponent's layout.
@@ -4034,7 +4273,7 @@ class DaffSidebarComponent {
4034
4273
  *
4035
4274
  */
4036
4275
  this._ngZone.runOutsideAngular(() => {
4037
- fromEvent(this._elementRef.nativeElement, 'keydown').pipe(filter(event => event.key === 'Escape')).subscribe(event => this._ngZone.run(() => {
4276
+ fromEvent(this._elementRef.nativeElement, 'keydown').pipe(filter$1(event => event.key === 'Escape')).subscribe(event => this._ngZone.run(() => {
4038
4277
  this.escapePressed.emit();
4039
4278
  event.stopPropagation();
4040
4279
  }));
@@ -4143,7 +4382,7 @@ class DaffSidebarViewportComponent {
4143
4382
  }
4144
4383
  }
4145
4384
  /** @nocollapse */ DaffSidebarViewportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffSidebarViewportComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4146
- /** @nocollapse */ DaffSidebarViewportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffSidebarViewportComponent, selector: "daff-sidebar-viewport", inputs: { mode: "mode", backdropIsVisible: "backdropIsVisible", opened: "opened" }, outputs: { backdropClicked: "backdropClicked" }, queries: [{ propertyName: "sidebar", first: true, predicate: DaffSidebarComponent, descendants: true }], ngImport: i0, template: "<div class=\"daff-sidebar-viewport {{ mode }}\">\n <div class=\"daff-sidebar-viewport__sidebar\" [@transformSidebar]=\"_animationState\" [cdkTrapFocus]=\"opened && (mode === 'over' || mode === 'push')\">\n <ng-content select=\"daff-sidebar\" (escapePressed)=\"onEscape($event)\"></ng-content>\n </div>\n\n <daff-backdrop \n class=\"daff-sidebar-viewport__backdrop\" \n *ngIf=\"hasBackdrop && _opened\"\n [transparent]=\"!backdropIsVisible\" \n (backdropClicked)=\"_backdropClicked()\"></daff-backdrop>\n\n <div class=\"daff-sidebar-viewport__content\" [@transformContent]=\"_animationState\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".daff-sidebar-viewport{display:flex;min-height:100%;position:relative;width:100%;z-index:1}.daff-sidebar-viewport__content{flex:0 1 auto;width:100%;will-change:transform;z-index:2}.daff-sidebar-viewport__sidebar{flex-shrink:0;width:250px;will-change:transform,visibility;z-index:4}.daff-sidebar-viewport__backdrop{cursor:pointer;height:100%;position:absolute;width:100%;z-index:3}.daff-sidebar-viewport.push>.daff-sidebar-viewport__sidebar{bottom:0;height:100%;left:0;position:absolute;top:0;transform:translate(-250px);visibility:hidden}.daff-sidebar-viewport.push>.daff-sidebar-viewport__content{transform:translate(250px)}.daff-sidebar-viewport.over>.daff-sidebar-viewport__sidebar{bottom:0;height:100%;left:0;position:absolute;top:0;transform:translate(-250px);visibility:hidden}\n"], components: [{ type: DaffBackdropComponent, selector: "daff-backdrop", inputs: ["transparent", "fullscreen"], outputs: ["backdropClicked"] }], directives: [{ type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
4385
+ /** @nocollapse */ DaffSidebarViewportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffSidebarViewportComponent, selector: "daff-sidebar-viewport", inputs: { mode: "mode", backdropIsVisible: "backdropIsVisible", opened: "opened" }, outputs: { backdropClicked: "backdropClicked" }, queries: [{ propertyName: "sidebar", first: true, predicate: DaffSidebarComponent, descendants: true }], ngImport: i0, template: "<div class=\"daff-sidebar-viewport {{ mode }}\">\n <div class=\"daff-sidebar-viewport__sidebar\" [@transformSidebar]=\"_animationState\" [cdkTrapFocus]=\"opened && (mode === 'over' || mode === 'push')\">\n <ng-content select=\"daff-sidebar\" (escapePressed)=\"onEscape($event)\"></ng-content>\n </div>\n\n <daff-backdrop \n class=\"daff-sidebar-viewport__backdrop\" \n *ngIf=\"hasBackdrop && _opened\"\n [transparent]=\"!backdropIsVisible\" \n (backdropClicked)=\"_backdropClicked()\"></daff-backdrop>\n\n <div class=\"daff-sidebar-viewport__content\" [@transformContent]=\"_animationState\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".daff-sidebar-viewport{display:flex;min-height:100%;position:relative;width:100%;z-index:1}.daff-sidebar-viewport__content{flex:0 1 auto;width:100%;will-change:transform;z-index:2}.daff-sidebar-viewport__sidebar{flex-shrink:0;width:250px;will-change:transform,visibility;z-index:4}.daff-sidebar-viewport__backdrop{cursor:pointer;height:100%;position:absolute;width:100%;z-index:3}.daff-sidebar-viewport.push>.daff-sidebar-viewport__sidebar{bottom:0;height:100%;left:0;position:absolute;top:0;transform:translate(-250px);visibility:hidden}.daff-sidebar-viewport.push>.daff-sidebar-viewport__content{transform:translate(250px)}.daff-sidebar-viewport.over>.daff-sidebar-viewport__sidebar{bottom:0;height:100%;left:0;position:absolute;top:0;transform:translate(-250px);visibility:hidden}\n"], components: [{ type: DaffBackdropComponent, selector: "daff-backdrop", inputs: ["transparent", "fullscreen"], outputs: ["backdropClicked"] }], directives: [{ type: i1$4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
4147
4386
  daffSidebarAnimations.transformSidebar,
4148
4387
  daffSidebarAnimations.transformContent,
4149
4388
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -5184,7 +5423,7 @@ class DaffOsThemeService {
5184
5423
  this.doc = _doc;
5185
5424
  this.preference$ = ((_a = this.doc.defaultView) === null || _a === void 0 ? void 0 : _a.matchMedia)
5186
5425
  ? fromEventPattern(addHandlerFactory(this.doc.defaultView), removeHandlerFactory(this.doc.defaultView))
5187
- .pipe(startWith((_b = this.doc.defaultView) === null || _b === void 0 ? void 0 : _b.matchMedia(mediaQueryDarkPreference)), map((e) => e.matches), map((prefersDark) => prefersDark ? DaffTheme.Dark : DaffTheme.Light))
5426
+ .pipe(startWith((_b = this.doc.defaultView) === null || _b === void 0 ? void 0 : _b.matchMedia(mediaQueryDarkPreference)), map$1((e) => e.matches), map$1((prefersDark) => prefersDark ? DaffTheme.Dark : DaffTheme.Light))
5188
5427
  : of(DaffTheme.None);
5189
5428
  }
5190
5429
  /**
@@ -5229,7 +5468,7 @@ class DaffThemeStorageService {
5229
5468
  this.doc = _doc;
5230
5469
  this.theme$ = merge(this.storage$, this.doc.defaultView
5231
5470
  ? fromEvent(this.doc.defaultView, 'storage').pipe(startWith(storageEventBuilder(this.storage.getItem(THEME_STORAGE_KEY))), catchError((e) => EMPTY))
5232
- : of(storageEventBuilder(this.storage.getItem(THEME_STORAGE_KEY)))).pipe(filter((e) => e.key === THEME_STORAGE_KEY), map((e) => coerceValue(e.newValue)), shareReplay(1));
5471
+ : of(storageEventBuilder(this.storage.getItem(THEME_STORAGE_KEY)))).pipe(filter$1((e) => e.key === THEME_STORAGE_KEY), map$1((e) => coerceValue(e.newValue)), shareReplay(1));
5233
5472
  }
5234
5473
  /**
5235
5474
  * Given that Safari doesn't respect in-tab storage events, we have to manually
@@ -5280,7 +5519,7 @@ class DaffThemingService {
5280
5519
  this.theme$ = combineLatest([
5281
5520
  this.osTheme.getThemePreference(),
5282
5521
  this.themeStorage.getThemeAsObservable(),
5283
- ]).pipe(map(([osPreference, storedPreference]) => daffComputeThemeSetting(osPreference, storedPreference)));
5522
+ ]).pipe(map$1(([osPreference, storedPreference]) => daffComputeThemeSetting(osPreference, storedPreference)));
5284
5523
  this.theme$.subscribe((theme) => {
5285
5524
  this.theme = theme;
5286
5525
  });
@@ -5395,5 +5634,5 @@ const DAFF_THEME_INITIALIZER = [
5395
5634
  * Generated bundle index. Do not edit.
5396
5635
  */
5397
5636
 
5398
- export { DAFF_THEME_INITIALIZER, DaffAccordionComponent, DaffAccordionItemComponent, DaffAccordionItemContentDirective, DaffAccordionItemTitleDirective, DaffAccordionModule, DaffArticleComponent, DaffArticleLeadDirective, DaffArticleMetaDirective, DaffArticleModule, DaffArticleTitleDirective, DaffBackdropComponent, DaffBackdropModule, DaffBreakpoints, DaffButtonComponent, DaffButtonModule, DaffButtonSetComponent, DaffButtonSetModule, DaffCalloutBodyDirective, DaffCalloutComponent, DaffCalloutIconDirective, DaffCalloutLayoutEnum, DaffCalloutModule, DaffCalloutSizeEnum, DaffCalloutSubtitleDirective, DaffCalloutTaglineDirective, DaffCalloutTitleDirective, DaffCardActionsDirective, DaffCardComponent, DaffCardContentDirective, DaffCardIconDirective, DaffCardImageDirective, DaffCardModule, DaffCardOrientationEnum, DaffCardTaglineDirective, DaffCardTitleDirective, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffContainerComponent, DaffContainerModule, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFeatureComponent, DaffFeatureIconDirective, DaffFeatureModeEnum, DaffFeatureModule, DaffFeatureSubheaderDirective, DaffFeatureSubtitleDirective, DaffFeatureTitleDirective, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffGalleryImageComponent, DaffHeroBodyDirective, DaffHeroComponent, DaffHeroIconDirective, DaffHeroLayoutEnum, DaffHeroModule, DaffHeroSizeEnum, DaffHeroSubtitleDirective, DaffHeroTaglineDirective, DaffHeroTitleDirective, DaffImageComponent, DaffImageGalleryComponent, DaffImageGalleryModule, DaffImageListComponent, DaffImageListModule, DaffImageModule, DaffInputComponent, DaffInputModule, DaffLinkSetComponent, DaffLinkSetHeadingDirective, DaffLinkSetItemComponent, DaffLinkSetModule, DaffLinkSetSubheadingDirective, DaffListComponent, DaffListItemComponent, DaffListModeEnum, DaffListModule, DaffListSubheaderDirective, DaffLoadingIconComponent, DaffLoadingIconModule, DaffMediaGalleryComponent, DaffMediaGalleryModule, DaffModalActionsComponent, DaffModalComponent, DaffModalContentComponent, DaffModalHeaderComponent, DaffModalModule, DaffModalService, DaffModalTitleDirective, DaffNativeSelectComponent, DaffNativeSelectModule, DaffNavAccordionItemComponent, DaffNavbarComponent, DaffNavbarModule, DaffPaginatorComponent, DaffPaginatorModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffProgressIndicatorComponent, DaffProgressIndicatorModule, DaffQtyDropdownComponent, DaffQtyDropdownModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSidebarComponent, DaffSidebarModule, DaffSidebarViewportComponent, DaffStatusEnum, DaffSuffixDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, DaffThumbnailDirective, daffArticleEncapsulatedMixin, daffCompactableMixin, daffManageContainerLayoutMixin, daffPrefixableMixin, daffSuffixableMixin, daffThumbnailCompatToken };
5637
+ export { DAFF_THEME_INITIALIZER, DaffAccordionComponent, DaffAccordionItemComponent, DaffAccordionItemContentDirective, DaffAccordionItemTitleDirective, DaffAccordionModule, DaffArticleComponent, DaffArticleLeadDirective, DaffArticleMetaDirective, DaffArticleModule, DaffArticleTitleDirective, DaffBackdropComponent, DaffBackdropModule, DaffBreakpoints, DaffButtonComponent, DaffButtonModule, DaffButtonSetComponent, DaffButtonSetModule, DaffCalloutBodyDirective, DaffCalloutComponent, DaffCalloutIconDirective, DaffCalloutLayoutEnum, DaffCalloutModule, DaffCalloutSizeEnum, DaffCalloutSubtitleDirective, DaffCalloutTaglineDirective, DaffCalloutTitleDirective, DaffCardActionsDirective, DaffCardComponent, DaffCardContentDirective, DaffCardIconDirective, DaffCardImageDirective, DaffCardModule, DaffCardOrientationEnum, DaffCardTaglineDirective, DaffCardTitleDirective, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffContainerComponent, DaffContainerModule, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFeatureComponent, DaffFeatureIconDirective, DaffFeatureModeEnum, DaffFeatureModule, DaffFeatureSubheaderDirective, DaffFeatureSubtitleDirective, DaffFeatureTitleDirective, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffGalleryImageComponent, DaffHeroBodyDirective, DaffHeroComponent, DaffHeroIconDirective, DaffHeroLayoutEnum, DaffHeroModule, DaffHeroSizeEnum, DaffHeroSubtitleDirective, DaffHeroTaglineDirective, DaffHeroTitleDirective, DaffImageComponent, DaffImageGalleryComponent, DaffImageGalleryModule, DaffImageListComponent, DaffImageListModule, DaffImageModule, DaffInputComponent, DaffInputModule, DaffLinkSetComponent, DaffLinkSetHeadingDirective, DaffLinkSetItemComponent, DaffLinkSetModule, DaffLinkSetSubheadingDirective, DaffListComponent, DaffListItemComponent, DaffListModeEnum, DaffListModule, DaffListSubheaderDirective, DaffLoadingIconComponent, DaffLoadingIconModule, DaffMediaGalleryComponent, DaffMediaGalleryModule, DaffMenuActivatorDirective, DaffMenuComponent, DaffMenuItemComponent, DaffMenuModule, DaffMenuService, DaffModalActionsComponent, DaffModalComponent, DaffModalContentComponent, DaffModalHeaderComponent, DaffModalModule, DaffModalService, DaffModalTitleDirective, DaffNativeSelectComponent, DaffNativeSelectModule, DaffNavAccordionItemComponent, DaffNavbarComponent, DaffNavbarModule, DaffPaginatorComponent, DaffPaginatorModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffProgressIndicatorComponent, DaffProgressIndicatorModule, DaffQtyDropdownComponent, DaffQtyDropdownModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSidebarComponent, DaffSidebarModule, DaffSidebarViewportComponent, DaffStatusEnum, DaffSuffixDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, DaffThumbnailDirective, daffArticleEncapsulatedMixin, daffCompactableMixin, daffFocusableElementsSelector, daffManageContainerLayoutMixin, daffMenuCreateOverlay, daffPrefixableMixin, daffSuffixableMixin, daffThumbnailCompatToken };
5399
5638
  //# sourceMappingURL=daffodil-design.mjs.map