{"version":3,"file":"daffodil-design-list.mjs","names":[],"sources":["../../../libs/design/list/src/list/list.component.ts","../../../libs/design/list/src/list-item/list-item.component.ts","../../../libs/design/list/src/list-item/list-item.component.html","../../../libs/design/list/src/nav-list/nav-list.component.ts","../../../libs/design/list/src/list.module.ts","../../../libs/design/list/src/list-item-title/list-item-title.directive.ts","../../../libs/design/list/src/list.ts"],"sourcesContent":["import {\n  Component,\n  ViewEncapsulation,\n  ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { DaffArticleEncapsulatedDirective } from '@daffodil/design';\n\n/**\n * A standard list used for grouping generic content.\n *\n * @example\n * ```html\n * <daff-list>\n *  <daff-list-item>List item</daff-list-item>\n *  <daff-list-item>List item</daff-list-item>\n * </daff-list>\n * ```\n */\n@Component({\n  selector: 'daff-list',\n  template: '<ng-content></ng-content>',\n  styleUrls: ['./list.component.scss'],\n  host: {\n    class: 'daff-list',\n    role: 'list',\n  },\n  hostDirectives: [{\n    directive: DaffArticleEncapsulatedDirective,\n  }],\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\n\nexport class DaffListComponent { }\n","import {\n  Component,\n  ChangeDetectionStrategy,\n  ElementRef,\n  contentChild,\n  input,\n} from '@angular/core';\n\nimport { DaffPrefixDirective } from '@daffodil/design';\n\n/**\n * Individual items within a list.\n *\n * @example\n * ```html\n * <daff-list-item>Standard list item</daff-list-item>\n * <a href=\"/\" daff-list-item> Linked list item</a>\n * ```\n */\n@Component({\n  selector:\n    'daff-list-item' + ',' +\n    'a[daff-list-item]',\n  templateUrl: './list-item.component.html',\n  host: {\n    class: 'daff-list-item',\n    '[class.active]': 'active()',\n    '[attr.role]': 'this._isAnchor ? null : \"listitem\"',\n  },\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\n\nexport class DaffListItemComponent {\n  /** Whether an item in a `<daff-nav-list>` is the currently active item. */\n  active = input(false);\n\n  /**\n   * @docs-private\n   */\n  _prefix = contentChild(DaffPrefixDirective);\n\n  constructor(private elementRef: ElementRef) {}\n\n  /**\n   * @docs-private\n   */\n  get _isAnchor() {\n    return this.elementRef.nativeElement.nodeName.toLowerCase() === 'a';\n  }\n}\n","@if(_prefix()) {\n  <ng-content select=\"[daffPrefix]\"></ng-content>\n}\n<div class=\"daff-list-item__content\">\n  <ng-content></ng-content>\n</div>","import {\n  Component,\n  ViewEncapsulation,\n  ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { DaffArticleEncapsulatedDirective } from '@daffodil/design';\n\n/**\n * A navigation list intended for use with anchor elements (`<a>`).\n *\n * @example\n * ```html\n * <daff-nav-list aria-label=\"Sidebar links\">\n *  <a href=\"/\" daff-list-item></a>\n *  <a href=\"/\" daff-list-item></a>\n * </daff-nav-list>\n * ```\n */\n@Component({\n  selector: 'daff-nav-list',\n  template: '<ng-content></ng-content>',\n  styleUrl: './nav-list.component.scss',\n  host: {\n    class: 'daff-nav-list',\n    role: 'navigation',\n  },\n  hostDirectives: [\n    {\n      directive: DaffArticleEncapsulatedDirective,\n    },\n  ],\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\n\nexport class DaffNavListComponent {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffPrefixSuffixModule } from '@daffodil/design';\n\nimport { DaffListComponent } from './list/list.component';\nimport { DaffListItemComponent } from './list-item/list-item.component';\nimport { DaffNavListComponent } from './nav-list/nav-list.component';\n\n/**\n * @deprecated in favor of {@link DAFF_LIST_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.\n */\n@NgModule({\n  imports: [\n    CommonModule,\n    DaffListComponent,\n    DaffNavListComponent,\n    DaffListItemComponent,\n  ],\n  exports: [\n    DaffListComponent,\n    DaffNavListComponent,\n    DaffListItemComponent,\n    DaffPrefixSuffixModule,\n  ],\n})\nexport class DaffListModule { }\n","import { Directive } from '@angular/core';\n\n/**\n * Used to identify the primary title of a list item within a multi-line list.\n *\n * @example\n * ```html\n * <div daffListItemTitle>Title</div>\n * ```\n */\n@Directive({\n  selector: '[daffListItemTitle]',\n  host: {\n    class: 'daff-list-item__title',\n  },\n})\n\nexport class DaffListItemTitleDirective {}\n","import { DaffPrefixDirective } from '@daffodil/design';\n\nimport { DaffListComponent } from './list/list.component';\nimport { DaffListItemComponent } from './list-item/list-item.component';\nimport { DaffListItemTitleDirective } from './list-item-title/list-item-title.directive';\nimport { DaffNavListComponent } from './nav-list/nav-list.component';\n\n/**\n * @docs-private\n */\nexport const DAFF_LIST_COMPONENTS = <const> [\n  DaffListComponent,\n  DaffListItemComponent,\n  DaffListItemTitleDirective,\n  DaffPrefixDirective,\n];\n\n/**\n * @docs-private\n */\nexport const DAFF_NAV_LIST_COMPONENTS = <const> [\n  DaffNavListComponent,\n  DaffListItemComponent,\n  DaffListItemTitleDirective,\n  DaffPrefixDirective,\n];\n"],"mappings":";;;;;AAkCA,IAAa,oBAAb,MAAa,kBAAiB;CAAjB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAjB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAiB,cAAA;GAAA,UAAA;GAAA,MAAA;IAAA,YAAA,EAAA,QAAA,OAAA;IAAA,gBAAA;GAAA;GAAA,gBAAA,CAAA,EAAA,WAAA,GAAA,iCAAA,CAAA;GAAA,UAAA;GAAA,UAblB;GAA2B,UAAA;GAAA,QAAA,CAAA,2eAAA;GAAA,iBAAA,GAAA,wBAAA;GAAA,eAAA,GAAA,kBAAA;EAAA,CAAA;CAAA;;AAa1B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAf7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;G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