{"version":3,"file":"daffodil-design-card.mjs","names":[],"sources":["../../../libs/design/card/src/card-base.directive.ts","../../../libs/design/card/src/card/basic/basic.component.ts","../../../libs/design/card/src/card-base.component.html","../../../libs/design/card/src/card/stroked/stroked.component.ts","../../../libs/design/card/src/card-base.component.html","../../../libs/design/card/src/card-actions/card-actions.directive.ts","../../../libs/design/card/src/card-content/card-content.directive.ts","../../../libs/design/card/src/card-icon/card-icon.directive.ts","../../../libs/design/card/src/card-image/card-image.directive.ts","../../../libs/design/card/src/card-tagline/card-tagline.directive.ts","../../../libs/design/card/src/card-title/card-title.directive.ts","../../../libs/design/card/src/card.module.ts","../../../libs/design/card/src/card.ts"],"sourcesContent":["import {\n  Directive,\n  input,\n} from '@angular/core';\n\nimport {\n  DaffArticleEncapsulatedDirective,\n  DaffColorableDirective,\n  DaffOrientableDirective,\n} from '@daffodil/design';\n\n@Directive({\n  selector: '[daffCardBase]',\n  hostDirectives: [\n    { directive: DaffArticleEncapsulatedDirective },\n    {\n      directive: DaffColorableDirective,\n      inputs: ['color'],\n    },\n    {\n      directive: DaffOrientableDirective,\n      inputs: ['orientation'],\n    },\n  ],\n  host: {\n    '[class.elevated]': 'elevated()',\n  },\n})\nexport class DaffCardBaseDirective {\n  /**\n   * Whether or not a card displays a shadow.\n   */\n  elevated = input(false);\n\n  constructor(private orientation: DaffOrientableDirective) {\n    this.orientation.defaultOrientation = 'vertical';\n  }\n}\n","/* eslint-disable quote-props */\nimport {\n  Component,\n  ViewEncapsulation,\n  ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { DaffCardBaseDirective } from '../../card-base.directive';\n\n/**\n * A basic card variant with a filled background.\n *\n * @example\n * ```html\n * <daff-card>\n * \t<img daffCardImage src=\"/\" alt=\"image caption\" >\n *   <div daffCardIcon></div>\n *   <div daffCardTagline>Card tagline</div>\n *   <h4 daffCardTitle>Card title</h4>\n * \t<div daffCardContent>Detailed information about the subject of the card.</div>\n *   <div daffCardActions>\n *     <button>Card link</button>\n *     <button>Another card link</button>\n *   </div>\n * </daff-card>\n * ```\n */\n@Component({\n  selector:\n    'daff-card' + ',' +\n    'a[daff-card]',\n  templateUrl: '../../card-base.component.html',\n  styleUrls: ['./basic.component.scss'],\n  host: {\n    'class': 'daff-card',\n  },\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\n\nexport class DaffCardComponent extends DaffCardBaseDirective {}\n","<ng-content select=\"[daffCardImage]\"></ng-content>\n<div class=\"daff-card__wrapper\">\n\t<div class=\"daff-card__body\">\n\t\t<ng-content select=\"[daffCardIcon]\"></ng-content>\n\t\t<ng-content select=\"[daffCardTagline]\"></ng-content>\n\t\t<ng-content select=\"[daffCardTitle]\"></ng-content>\n\t\t<ng-content select=\"[daffCardContent]\"></ng-content>\n\t</div>\n\t<ng-content select=\"[daffCardActions]\"></ng-content>\n</div>","/* eslint-disable quote-props */\nimport {\n  Component,\n  ViewEncapsulation,\n  ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { DaffCardBaseDirective } from '../../card-base.directive';\n\n/**\n * A card variant with a stroked (outlined) border instead of a filled background.\n *\n * @example\n * ```html\n * <daff-card>\n * \t<img daffCardImage src=\"/\" alt=\"image caption\" >\n *   <div daffCardIcon></div>\n *   <div daffCardTagline>Card tagline</div>\n *   <h4 daffCardTitle>Card title</h4>\n * \t<div daffCardContent>Detailed information about the subject of the card.</div>\n *   <div daffCardActions>\n *     <button>Card link</button>\n *     <button>Another card link</button>\n *   </div>\n * </daff-card>\n * ```\n */\n@Component({\n  selector:\n    'daff-stroked-card' + ',' +\n    'a[daff-stroked-card]',\n  templateUrl: '../../card-base.component.html',\n  styleUrls: ['./stroked.component.scss'],\n  host: {\n    'class': 'daff-stroked-card',\n  },\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\n\nexport class DaffStrokedCardComponent extends DaffCardBaseDirective {}\n","<ng-content select=\"[daffCardImage]\"></ng-content>\n<div class=\"daff-card__wrapper\">\n\t<div class=\"daff-card__body\">\n\t\t<ng-content select=\"[daffCardIcon]\"></ng-content>\n\t\t<ng-content select=\"[daffCardTagline]\"></ng-content>\n\t\t<ng-content select=\"[daffCardTitle]\"></ng-content>\n\t\t<ng-content select=\"[daffCardContent]\"></ng-content>\n\t</div>\n\t<ng-content select=\"[daffCardActions]\"></ng-content>\n</div>","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * A container for buttons or calls-to-action, always positioned to the bottom of the card.\n *\n * @example\n * ```html\n * <div daffCardActions></div>\n * ```\n */\n@Directive({\n  selector: '[daffCardActions]',\n  host: {\n    'class': 'daff-card__actions',\n  },\n})\nexport class DaffCardActionsDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * A flexible wrapper for text, components, or custom layouts.\n * It's unstyled except for spacing and should only be used once per card.\n *\n * @example\n * ```html\n * <div daffCardContent></div>\n * ```\n */\n@Directive({\n  selector: '[daffCardContent]',\n  host: {\n    'class': 'daff-card__content',\n  },\n})\nexport class DaffCardContentDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * Displays a visual or branding element. Avoid using this for interactive or actionable icons.\n *\n * @example\n * ```html\n * <div daffCardIcon></div>\n * ```\n */\n@Directive({\n  selector: '[daffCardIcon]',\n  host: {\n    'class': 'daff-card__icon',\n  },\n})\nexport class DaffCardIconDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * Displays an image.\n *\n * @example\n * ```html\n * <div daffCardImage></div>\n * ```\n */\n@Directive({\n  selector: '[daffCardImage]',\n  host: {\n    'class': 'daff-card__image',\n  },\n})\nexport class DaffCardImageDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * Short, memorable phrase that complements the title and provides quick context.\n *\n * @example\n * ```html\n * <div daffCardTagline></div>\n * ```\n */\n@Directive({\n  selector: '[daffCardTagline]',\n  host: {\n    'class': 'daff-card__tagline',\n  },\n})\nexport class DaffCardTaglineDirective {}\n","/* eslint-disable quote-props */\nimport { Directive } from '@angular/core';\n\n/**\n * The primary heading of the card.\n *\n * @example\n * ```html\n * <div daffCardTitle></div>\n * ```\n */\n@Directive({\n  selector: '[daffCardTitle]',\n  host: {\n    'class': 'daff-card__title',\n  },\n})\nexport class DaffCardTitleDirective {}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { DaffCardComponent } from './card/basic/basic.component';\nimport { DaffStrokedCardComponent } from './card/stroked/stroked.component';\nimport { DaffCardActionsDirective } from './card-actions/card-actions.directive';\nimport { DaffCardContentDirective } from './card-content/card-content.directive';\nimport { DaffCardIconDirective } from './card-icon/card-icon.directive';\nimport { DaffCardImageDirective } from './card-image/card-image.directive';\nimport { DaffCardTaglineDirective } from './card-tagline/card-tagline.directive';\nimport { DaffCardTitleDirective } from './card-title/card-title.directive';\n\n/**\n * @deprecated in favor of {@link DAFF_CARD_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.\n */\n@NgModule({\n  imports: [\n    CommonModule,\n    DaffCardComponent,\n    DaffStrokedCardComponent,\n    DaffCardIconDirective,\n    DaffCardImageDirective,\n    DaffCardTaglineDirective,\n    DaffCardTitleDirective,\n    DaffCardContentDirective,\n    DaffCardActionsDirective,\n  ],\n  exports: [\n    DaffCardComponent,\n    DaffStrokedCardComponent,\n    DaffCardIconDirective,\n    DaffCardImageDirective,\n    DaffCardTaglineDirective,\n    DaffCardTitleDirective,\n    DaffCardContentDirective,\n    DaffCardActionsDirective,\n  ],\n})\nexport class DaffCardModule { }\n","import { DaffCardComponent } from './card/basic/basic.component';\nimport { DaffStrokedCardComponent } from './card/stroked/stroked.component';\nimport { DaffCardActionsDirective } from './card-actions/card-actions.directive';\nimport { DaffCardContentDirective } from './card-content/card-content.directive';\nimport { DaffCardIconDirective } from './card-icon/card-icon.directive';\nimport { DaffCardImageDirective } from './card-image/card-image.directive';\nimport { DaffCardTaglineDirective } from './card-tagline/card-tagline.directive';\nimport { DaffCardTitleDirective } from './card-title/card-title.directive';\n\n/**\n * @docs-private\n */\nexport const DAFF_CARD_COMPONENTS = <const> [\n  DaffCardComponent,\n  DaffCardIconDirective,\n  DaffCardImageDirective,\n  DaffCardTaglineDirective,\n  DaffCardTitleDirective,\n  DaffCardContentDirective,\n  DaffCardActionsDirective,\n];\n\n/**\n * @docs-private\n */\nexport const DAFF_STROKED_CARD_COMPONENTS = <const> [\n  DaffStrokedCardComponent,\n  DaffCardIconDirective,\n  DaffCardImageDirective,\n  DaffCardTaglineDirective,\n  DaffCardTitleDirective,\n  DaffCardContentDirective,\n  DaffCardActionsDirective,\n];\n\n/**\n * @docs-private\n */\nexport const DAFF_ALL_CARD_COMPONENTS = <const> [\n  DaffCardComponent,\n  DaffStrokedCardComponent,\n  DaffCardIconDirective,\n  DaffCardImageDirective,\n  DaffCardTaglineDirective,\n  DaffCardTitleDirective,\n  DaffCardContentDirective,\n  DaffCardActionsDirective,\n];\n"],"mappings":";;;;;AA4BA,IAAa,wBAAb,MAAa,sBAAqB;CAMhC,YAAoB,aAAoC;EAApC,KAAA,cAAA;EAFpB,KAAA,WAAW,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAGrB,KAAK,YAAY,qBAAqB;CACxC;CARW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAqB,MAAA,CAAA,EAAA,OAAA,GAAA,wBAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAArB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAqB,cAAA;GAAA,UAAA;GAAA,QAAA,EAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA,EAAA;GAAA,MAA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