@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,22 @@
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
8
  import * as i1$1 from '@angular/platform-browser';
9
- import { BehaviorSubject, Subject, fromEvent, fromEventPattern, of, merge, EMPTY, combineLatest } from 'rxjs';
10
- import { takeUntil, filter, startWith, map, catchError, shareReplay } from 'rxjs/operators';
9
+ import { BehaviorSubject, Subject, map, takeUntil as takeUntil$1, fromEvent, filter, fromEventPattern, of, merge, EMPTY, combineLatest } from 'rxjs';
10
+ import { takeUntil, filter as filter$1, startWith, map as map$1, catchError, shareReplay } from 'rxjs/operators';
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 * as i1$3 from '@angular/cdk/overlay';
18
16
  import { OverlayModule, GlobalPositionStrategy } from '@angular/cdk/overlay';
19
- import * as i2 from '@angular/cdk/a11y';
17
+ import * as i1$5 from '@angular/cdk/portal';
18
+ import { ComponentPortal, TemplatePortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
19
+ import * as i1$4 from '@angular/cdk/a11y';
20
20
  import { A11yModule } from '@angular/cdk/a11y';
21
21
  import { DaffServerSafePersistenceServiceToken } from '@daffodil/core';
22
22
 
@@ -3312,6 +3312,249 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
3312
3312
  }]
3313
3313
  }] });
3314
3314
 
3315
+ function daffMenuCreateOverlay(overlay, element, config = {}) {
3316
+ return overlay.create({
3317
+ hasBackdrop: true,
3318
+ backdropClass: 'cdk-overlay-transparent-backdrop',
3319
+ scrollStrategy: overlay.scrollStrategies.block(),
3320
+ disposeOnNavigation: true,
3321
+ positionStrategy: overlay
3322
+ .position()
3323
+ .flexibleConnectedTo(element)
3324
+ .withPositions([
3325
+ {
3326
+ originX: 'start',
3327
+ originY: 'bottom',
3328
+ overlayX: 'start',
3329
+ overlayY: 'top',
3330
+ offsetY: 0,
3331
+ },
3332
+ {
3333
+ originX: 'start',
3334
+ originY: 'top',
3335
+ overlayX: 'start',
3336
+ overlayY: 'bottom',
3337
+ },
3338
+ ]),
3339
+ ...config,
3340
+ });
3341
+ }
3342
+ ;
3343
+
3344
+ class DaffMenuService {
3345
+ constructor(overlay) {
3346
+ this.overlay = overlay;
3347
+ this.$_open = new BehaviorSubject(false);
3348
+ this.open$ = this.$_open.asObservable();
3349
+ }
3350
+ async _createOverlay(activatorElement, component) {
3351
+ if (!this._overlay) {
3352
+ this._overlay = daffMenuCreateOverlay(this.overlay, activatorElement.element);
3353
+ if (typeof component === 'object' && component?.import) {
3354
+ component = await component.import();
3355
+ }
3356
+ if (component instanceof Type) {
3357
+ this._overlay.attach(new ComponentPortal(component));
3358
+ }
3359
+ else if (component instanceof TemplateRef) {
3360
+ this._overlay.attach(new TemplatePortal(component, activatorElement));
3361
+ }
3362
+ this._overlay.backdropClick().pipe(map(() => this._destroyOverlay())).subscribe();
3363
+ }
3364
+ }
3365
+ _destroyOverlay() {
3366
+ if (this._overlay) {
3367
+ this._overlay.detach();
3368
+ this._overlay.dispose();
3369
+ this._overlay = null;
3370
+ }
3371
+ }
3372
+ close() {
3373
+ this._destroyOverlay();
3374
+ this.$_open.next(false);
3375
+ this._activator.element.nativeElement.focus();
3376
+ }
3377
+ open(activator, component) {
3378
+ this._createOverlay(activator, component);
3379
+ this._activator = activator;
3380
+ this.$_open.next(true);
3381
+ }
3382
+ }
3383
+ /** @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 });
3384
+ /** @nocollapse */ DaffMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuService });
3385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuService, decorators: [{
3386
+ type: Injectable
3387
+ }], ctorParameters: function () { return [{ type: i1$3.Overlay }]; } });
3388
+
3389
+ class DaffMenuActivatorDirective {
3390
+ constructor(service, viewContainerRef, cdRef) {
3391
+ this.service = service;
3392
+ this.viewContainerRef = viewContainerRef;
3393
+ this.cdRef = cdRef;
3394
+ this._destroyed$ = new Subject();
3395
+ this.service.open$.pipe(takeUntil$1(this._destroyed$)).subscribe((val) => {
3396
+ this._open = val;
3397
+ this.cdRef.markForCheck();
3398
+ });
3399
+ }
3400
+ get openClass() {
3401
+ return this._open;
3402
+ }
3403
+ ngOnDestroy() {
3404
+ this._destroyed$.next(true);
3405
+ this._destroyed$.complete();
3406
+ }
3407
+ focus() {
3408
+ this.viewContainerRef.element.nativeElement.focus();
3409
+ }
3410
+ openMenu(event) {
3411
+ event.preventDefault();
3412
+ this.service.open(this.viewContainerRef, this.daffMenuActivator);
3413
+ }
3414
+ }
3415
+ /** @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 });
3416
+ /** @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 });
3417
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuActivatorDirective, decorators: [{
3418
+ type: Directive,
3419
+ args: [{
3420
+ selector: '[daffMenuActivator]',
3421
+ }]
3422
+ }], ctorParameters: function () { return [{ type: DaffMenuService }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { daffMenuActivator: [{
3423
+ type: Input
3424
+ }], openClass: [{
3425
+ type: HostBinding,
3426
+ args: ['class.open']
3427
+ }], openMenu: [{
3428
+ type: HostListener,
3429
+ args: ['click', ['$event']]
3430
+ }] } });
3431
+
3432
+ class DaffMenuItemComponent {
3433
+ constructor() {
3434
+ /**
3435
+ * @docs-private
3436
+ */
3437
+ this.class = true;
3438
+ /**
3439
+ * Sets the role of the component to menuitem.
3440
+ *
3441
+ * @docs-private
3442
+ */
3443
+ this.role = 'menuitem';
3444
+ }
3445
+ }
3446
+ /** @nocollapse */ DaffMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3447
+ /** @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 });
3448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuItemComponent, decorators: [{
3449
+ type: Component,
3450
+ args: [{ selector: 'a[daff-menu-item]' + ',' +
3451
+ '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"] }]
3452
+ }], propDecorators: { class: [{
3453
+ type: HostBinding,
3454
+ args: ['class.daff-menu-item']
3455
+ }], role: [{
3456
+ type: HostBinding,
3457
+ args: ['attr.role']
3458
+ }], _prefix: [{
3459
+ type: ContentChild,
3460
+ args: [DaffPrefixDirective]
3461
+ }] } });
3462
+
3463
+ const daffFocusableElementsSelector = 'a[href],a[routerlink], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
3464
+
3465
+ class DaffMenuComponent {
3466
+ constructor(_focusTrapFactory, _ngZone, _elementRef, menuService) {
3467
+ this._focusTrapFactory = _focusTrapFactory;
3468
+ this._ngZone = _ngZone;
3469
+ this._elementRef = _elementRef;
3470
+ this.menuService = menuService;
3471
+ this.class = true;
3472
+ this.tabindex = 0;
3473
+ this.role = 'menu';
3474
+ /**
3475
+ * Listen to `keydown` events outside the zone so that change detection is not run every
3476
+ * time a key is pressed. Instead we re-enter the zone only if the `ESC` key is pressed.
3477
+ *
3478
+ */
3479
+ this._ngZone.runOutsideAngular(() => {
3480
+ fromEvent(this._elementRef.nativeElement, 'keyup')
3481
+ .pipe(filter((event) => event.key === 'Escape'))
3482
+ .subscribe((event) => this._ngZone.run(() => {
3483
+ this.menuService.close();
3484
+ event.stopPropagation();
3485
+ }));
3486
+ });
3487
+ }
3488
+ ngAfterContentInit() {
3489
+ this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);
3490
+ }
3491
+ ngAfterViewInit() {
3492
+ const focusableChild = this._elementRef.nativeElement.querySelector(daffFocusableElementsSelector);
3493
+ if (focusableChild) {
3494
+ focusableChild.focus();
3495
+ }
3496
+ else {
3497
+ // There's a timing condition when computing HostBindings afterContentInit
3498
+ // so to allow the menu to be focused, we manually set the tabindex.
3499
+ this._elementRef.nativeElement.tabIndex = 0;
3500
+ this._elementRef.nativeElement.focus();
3501
+ }
3502
+ }
3503
+ }
3504
+ /** @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 });
3505
+ /** @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 });
3506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuComponent, decorators: [{
3507
+ type: Component,
3508
+ 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"] }]
3509
+ }], ctorParameters: function () { return [{ type: i1$4.ConfigurableFocusTrapFactory }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: DaffMenuService }]; }, propDecorators: { class: [{
3510
+ type: HostBinding,
3511
+ args: ['class.daff-menu']
3512
+ }], tabindex: [{
3513
+ type: HostBinding,
3514
+ args: ['tabindex']
3515
+ }], role: [{
3516
+ type: HostBinding,
3517
+ args: ['attr.role']
3518
+ }] } });
3519
+
3520
+ class DaffMenuModule {
3521
+ }
3522
+ /** @nocollapse */ DaffMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3523
+ /** @nocollapse */ DaffMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuModule, declarations: [DaffMenuActivatorDirective,
3524
+ DaffMenuComponent,
3525
+ DaffMenuItemComponent], imports: [CommonModule,
3526
+ OverlayModule], exports: [DaffMenuActivatorDirective,
3527
+ DaffMenuComponent,
3528
+ DaffMenuItemComponent] });
3529
+ /** @nocollapse */ DaffMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuModule, providers: [
3530
+ DaffMenuService,
3531
+ ], imports: [[
3532
+ CommonModule,
3533
+ OverlayModule,
3534
+ ]] });
3535
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMenuModule, decorators: [{
3536
+ type: NgModule,
3537
+ args: [{
3538
+ imports: [
3539
+ CommonModule,
3540
+ OverlayModule,
3541
+ ],
3542
+ declarations: [
3543
+ DaffMenuActivatorDirective,
3544
+ DaffMenuComponent,
3545
+ DaffMenuItemComponent,
3546
+ ],
3547
+ exports: [
3548
+ DaffMenuActivatorDirective,
3549
+ DaffMenuComponent,
3550
+ DaffMenuItemComponent,
3551
+ ],
3552
+ providers: [
3553
+ DaffMenuService,
3554
+ ],
3555
+ }]
3556
+ }] });
3557
+
3315
3558
  const daffFadeAnimations = {
3316
3559
  fade: trigger('fade', [
3317
3560
  state('open', style({ opacity: 1 })),
@@ -3375,7 +3618,7 @@ class DaffModalComponent {
3375
3618
  }
3376
3619
  }
3377
3620
  /** @nocollapse */ DaffModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3378
- /** @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 });
3621
+ /** @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 });
3379
3622
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalComponent, decorators: [{
3380
3623
  type: Component,
3381
3624
  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"] }]
@@ -3547,14 +3790,14 @@ class DaffModalService {
3547
3790
  modal.modal.instance.closedAnimationCompleted.subscribe((e) => this._removeModal(modal));
3548
3791
  }
3549
3792
  }
3550
- /** @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 });
3793
+ /** @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 });
3551
3794
  /** @nocollapse */ DaffModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalService, providedIn: DaffModalModule });
3552
3795
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffModalService, decorators: [{
3553
3796
  type: Injectable,
3554
3797
  args: [{
3555
3798
  providedIn: DaffModalModule,
3556
3799
  }]
3557
- }], ctorParameters: function () { return [{ type: i1$4.Overlay }]; } });
3800
+ }], ctorParameters: function () { return [{ type: i1$3.Overlay }]; } });
3558
3801
 
3559
3802
  /**
3560
3803
  * A mixin for giving a component the ability to manage a DaffContainerComponent's layout.
@@ -4021,7 +4264,7 @@ class DaffSidebarComponent {
4021
4264
  *
4022
4265
  */
4023
4266
  this._ngZone.runOutsideAngular(() => {
4024
- fromEvent(this._elementRef.nativeElement, 'keydown').pipe(filter(event => event.key === 'Escape')).subscribe(event => this._ngZone.run(() => {
4267
+ fromEvent(this._elementRef.nativeElement, 'keydown').pipe(filter$1(event => event.key === 'Escape')).subscribe(event => this._ngZone.run(() => {
4025
4268
  this.escapePressed.emit();
4026
4269
  event.stopPropagation();
4027
4270
  }));
@@ -4130,7 +4373,7 @@ class DaffSidebarViewportComponent {
4130
4373
  }
4131
4374
  }
4132
4375
  /** @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 });
4133
- /** @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: [
4376
+ /** @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: [
4134
4377
  daffSidebarAnimations.transformSidebar,
4135
4378
  daffSidebarAnimations.transformContent,
4136
4379
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -5176,7 +5419,7 @@ class DaffOsThemeService {
5176
5419
  this.doc = _doc;
5177
5420
  this.preference$ = this.doc.defaultView?.matchMedia
5178
5421
  ? fromEventPattern(addHandlerFactory(this.doc.defaultView), removeHandlerFactory(this.doc.defaultView))
5179
- .pipe(startWith(this.doc.defaultView?.matchMedia(mediaQueryDarkPreference)), map((e) => e.matches), map((prefersDark) => prefersDark ? DaffTheme.Dark : DaffTheme.Light))
5422
+ .pipe(startWith(this.doc.defaultView?.matchMedia(mediaQueryDarkPreference)), map$1((e) => e.matches), map$1((prefersDark) => prefersDark ? DaffTheme.Dark : DaffTheme.Light))
5180
5423
  : of(DaffTheme.None);
5181
5424
  }
5182
5425
  /**
@@ -5219,7 +5462,7 @@ class DaffThemeStorageService {
5219
5462
  this.doc = _doc;
5220
5463
  this.theme$ = merge(this.storage$, this.doc.defaultView
5221
5464
  ? fromEvent(this.doc.defaultView, 'storage').pipe(startWith(storageEventBuilder(this.storage.getItem(THEME_STORAGE_KEY))), catchError((e) => EMPTY))
5222
- : of(storageEventBuilder(this.storage.getItem(THEME_STORAGE_KEY)))).pipe(filter((e) => e.key === THEME_STORAGE_KEY), map((e) => coerceValue(e.newValue)), shareReplay(1));
5465
+ : 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));
5223
5466
  }
5224
5467
  /**
5225
5468
  * Given that Safari doesn't respect in-tab storage events, we have to manually
@@ -5268,7 +5511,7 @@ class DaffThemingService {
5268
5511
  this.theme$ = combineLatest([
5269
5512
  this.osTheme.getThemePreference(),
5270
5513
  this.themeStorage.getThemeAsObservable(),
5271
- ]).pipe(map(([osPreference, storedPreference]) => daffComputeThemeSetting(osPreference, storedPreference)));
5514
+ ]).pipe(map$1(([osPreference, storedPreference]) => daffComputeThemeSetting(osPreference, storedPreference)));
5272
5515
  this.theme$.subscribe((theme) => {
5273
5516
  this.theme = theme;
5274
5517
  });
@@ -5380,5 +5623,5 @@ const DAFF_THEME_INITIALIZER = [
5380
5623
  * Generated bundle index. Do not edit.
5381
5624
  */
5382
5625
 
5383
- 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 };
5626
+ 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 };
5384
5627
  //# sourceMappingURL=daffodil-design.mjs.map