{"version":3,"file":"daffodil-design-modal.mjs","names":["i1.DaffModalService","i1.DaffModalService","i2.DaffModalComponent","i1.DaffModalComponent"],"sources":["../../../libs/design/modal/src/service/modal.service.ts","../../../libs/design/modal/src/modal/modal.component.ts","../../../libs/design/modal/src/modal/modal.component.html","../../../libs/design/modal/src/modal-actions/modal-actions.component.ts","../../../libs/design/modal/src/modal-close/modal-close.directive.ts","../../../libs/design/modal/src/modal-content/modal-content.component.ts","../../../libs/design/modal/src/modal-header/modal-header.component.ts","../../../libs/design/modal/src/modal-header/modal-header.component.html","../../../libs/design/modal/src/modal-title/modal-title.directive.ts","../../../libs/design/modal/src/modal.module.ts","../../../libs/design/modal/src/modal.ts"],"sourcesContent":["import {\n  OverlayRef,\n  Overlay,\n  GlobalPositionStrategy,\n  PositionStrategy,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n  Injectable,\n  Type,\n  ComponentRef,\n  Injector,\n} from '@angular/core';\nimport { take } from 'rxjs/operators';\n\nimport { DaffModal } from '../modal/interfaces/modal';\nimport { DaffModalRef } from '../modal/interfaces/modal-ref';\nimport {\n  DaffModalConfiguration,\n  DaffModalPosition,\n} from '../modal/modal-config';\nimport { DaffModalComponent } from '../modal/modal.component';\n\n@Injectable()\nexport class DaffModalService {\n  private _modals: Map<DaffModalComponent, DaffModal> = new Map();\n\n  constructor(private overlay: Overlay) { }\n\n  private defaultConfiguration: DaffModalConfiguration = {};\n\n  private _attachModal(\n    overlayRef: OverlayRef,\n  ): ComponentRef<DaffModalComponent> {\n    const modal = overlayRef.attach(\n      new ComponentPortal(\n        DaffModalComponent,\n        undefined,\n        Injector.create({\n          providers: [{\n            provide: DaffModalService,\n            useValue: this,\n          }],\n        }),\n      ),\n    );\n    modal.instance.reveal();\n    return modal;\n  }\n\n  private _attachModalContent<T>(\n    component: Type<T>,\n    modal: ComponentRef<DaffModalComponent>,\n  ): ComponentRef<T> {\n    return modal.instance.attachContent(new ComponentPortal(component));\n  }\n\n  private _createPositionStrategy(position?: DaffModalPosition): PositionStrategy {\n    // Horizontal position is always center\n    const strategy = new GlobalPositionStrategy().centerHorizontally();\n\n    // Handle vertical positioning\n    if (position?.vertical === 'top') {\n      strategy.top(position.offsetTop ?? '15vh');\n    } else {\n      // Default to center\n      strategy.centerVertically();\n    }\n\n    return strategy;\n  }\n\n  private _createOverlayRef(config?: Partial<DaffModalConfiguration>): OverlayRef {\n    const positionStrategy = this._createPositionStrategy(config?.position);\n\n    return this.overlay.create({\n      hasBackdrop: true,\n      positionStrategy,\n      scrollStrategy: this.overlay.scrollStrategies.block(),\n    });\n  }\n\n  private _removeModal(modal: DaffModal) {\n    if (!this._modals.has(modal.modal.instance)) {\n      throw new Error(\n        'The Modal that you are trying to remove does not exist.',\n      );\n    }\n\n    this._modals.delete(modal.modal.instance);\n\n    modal.overlay.dispose();\n  }\n\n  private _closeAllModals(): void {\n    const modals = Array.from(this._modals.values());\n    modals.forEach((modal) => this.close(modal.modal.instance));\n  }\n\n  open<T>(\n    component: Type<T>,\n    configuration?: Partial<DaffModalConfiguration>,\n  ): DaffModalRef<T> {\n    this._closeAllModals();\n    const config = { ...this.defaultConfiguration, ...configuration };\n    const _ref = this._createOverlayRef(config);\n    const _modal = this._attachModal(_ref);\n    const _contentRef = this._attachModalContent(component, _modal);\n\n    if (configuration?.ariaLabelledBy) {\n      _modal.instance.ariaLabelledBy = configuration.ariaLabelledBy;\n    }\n\n    const modal: DaffModal = {\n      modal: _modal,\n      overlay: _ref,\n    };\n\n    this._modals.set(modal.modal.instance, modal);\n\n    _ref\n      .backdropClick()\n      .subscribe(() =>\n        config.onBackdropClicked\n          ? config.onBackdropClicked()\n          : this.close(modal.modal.instance),\n      );\n\n    return {\n      instance: _contentRef.instance,\n      close: () => this.close(modal.modal.instance),\n      afterClosed: modal.modal.instance.closedAnimationCompleted$,\n    };\n  }\n\n  close(component: DaffModalComponent): void {\n    const modal = this._modals.get(component);\n\n    modal.overlay.detachBackdrop();\n    component.closedAnimationCompleted$.pipe(\n      take(1),\n    ).subscribe(\n      () => this._removeModal(modal),\n    );\n\n    component.hide();\n\n  }\n}\n","/* eslint-disable quote-props */\nimport {\n  ConfigurableFocusTrap,\n  ConfigurableFocusTrapFactory,\n} from '@angular/cdk/a11y';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport {\n  CdkPortalOutlet,\n  ComponentPortal,\n  PortalModule,\n} from '@angular/cdk/portal';\nimport {\n  Component,\n  ChangeDetectionStrategy,\n  ViewChild,\n  ElementRef,\n  AfterContentInit,\n  AfterViewInit,\n  ViewEncapsulation,\n  ChangeDetectorRef,\n  OnDestroy,\n  signal,\n} from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { delay } from 'rxjs/operators';\n\nimport {\n  DaffOpenable,\n  DaffOpenableDirective,\n  DaffFocusStackService,\n  daffFocusableElementsSelector,\n} from '@daffodil/design';\n\nimport { DaffModalService } from '../service/modal.service';\n\n@Component({\n  selector: 'daff-modal',\n  templateUrl: './modal.component.html',\n  styleUrls: ['./modal.component.scss'],\n  hostDirectives: [{\n    directive: DaffOpenableDirective,\n    outputs: ['toggled'],\n  }],\n  host: {\n    'class': 'daff-modal',\n    'role': 'dialog',\n    'aria-modal': 'true',\n    '[attr.aria-labelledby]': 'ariaLabelledBy',\n    '(keydown.escape)': 'onEscape()',\n    '[animate.enter]': '\"opening\"',\n    '[class.closing]': 'closing()',\n  },\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  encapsulation: ViewEncapsulation.None,\n  imports: [\n    PortalModule,\n    OverlayModule,\n  ],\n})\nexport class DaffModalComponent implements AfterContentInit, AfterViewInit, OnDestroy, DaffOpenable {\n  /**\n   * @docs-private\n   */\n  readonly closing = signal(false);\n\n  private _ariaLabelledBy = null;\n\n  /**\n   * @docs-private\n   *\n   * By default, the `aria-labelledby` of the modal is set to the `id` of the modal title.\n   */\n  get ariaLabelledBy() {\n    return this._ariaLabelledBy;\n  } set ariaLabelledBy(value: string) {\n    this._ariaLabelledBy = value;\n  }\n\n  /**\n   * @docs-private\n   *\n   * The CDK Portal outlet used to portal content into the modal.\n   */\n  @ViewChild(CdkPortalOutlet, { static: true }) private _portalOutlet: CdkPortalOutlet;\n\n  /**\n   * Private subject for closed animation completion events.\n   */\n  private _closedAnimationCompleted = new Subject<boolean>();\n\n  /**\n   * Observable that emits when the close animation is completed.\n   */\n  readonly closedAnimationCompleted$ = this._closedAnimationCompleted.asObservable().pipe(delay(300));\n\n  /**\n   * @docs-private\n   */\n  onEscape() {\n    this.modalService.close(this);\n  }\n\n  private _focusTrap: ConfigurableFocusTrap;\n\n  constructor(\n    private modalService: DaffModalService,\n    private _focusTrapFactory: ConfigurableFocusTrapFactory,\n    private elementRef: ElementRef<HTMLElement>,\n    private openDirective: DaffOpenableDirective,\n    private _focusStack: DaffFocusStackService,\n    private changeDetector: ChangeDetectorRef,\n  ) {\n    this.openDirective.stateless = false;\n  }\n\n  /**\n   * @docs-private\n   */\n  ngAfterContentInit() {\n    this._focusTrap = this._focusTrapFactory.create(\n      this.elementRef.nativeElement,\n    );\n    this._focusStack.push();\n  }\n\n  /**\n   * @docs-private\n   */\n  ngAfterViewInit() {\n    const focusableChild = (<HTMLElement>this.elementRef.nativeElement.querySelector(\n      daffFocusableElementsSelector)\n    );\n\n    if (focusableChild) {\n      focusableChild.focus();\n    } else {\n      // There's a timing condition when computing HostBindings afterContentInit\n      // so to allow the modal to be focused, we manually set the tabindex.\n      this.elementRef.nativeElement.tabIndex = 0;\n      (<HTMLElement>this.elementRef.nativeElement).focus();\n    }\n  }\n\n  /**\n   * @docs-private\n   *\n   * Helper method to attach portable content to modal.\n   */\n  attachContent(portal: ComponentPortal<any>): any {\n    const attachContent = this._portalOutlet.attachComponentPortal(portal);\n\n    return attachContent;\n  }\n\n  /**\n   * Tracks the open state of the modal.\n   */\n  get open() {\n    return this.openDirective.open;\n  }\n\n  /**\n   * @docs-private\n   *\n   * Reveals the modal.\n   */\n  reveal() {\n    this.openDirective.reveal();\n    this.changeDetector.markForCheck();\n  }\n\n  /**\n   * @docs-private\n   *\n   * Hides the modal.\n   */\n  hide() {\n    this.openDirective.hide();\n    this.closing.set(true);\n    this._closedAnimationCompleted.next(true);\n    this._focusTrap?.destroy();\n    this._focusStack.pop();\n\n    this.changeDetector.markForCheck();\n  }\n\n  /**\n   * @docs-private\n   *\n   * Toggles the visibility of the modal.\n   */\n  toggle() {\n    this.openDirective.toggle();\n    this.changeDetector.markForCheck();\n  }\n\n  /**\n   * @docs-private\n   */\n  ngOnDestroy() {\n    this._closedAnimationCompleted.complete();\n  }\n}\n","<ng-template cdkPortalOutlet></ng-template>\n","/* eslint-disable quote-props */\nimport {\n  ChangeDetectionStrategy,\n  Component,\n} from '@angular/core';\n\n@Component({\n  selector: 'daff-modal-actions',\n  template: '<ng-content></ng-content>',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  host: {\n    'class': 'daff-modal-actions',\n  },\n})\nexport class DaffModalActionsComponent {}\n","/* eslint-disable quote-props */\nimport {\n  Directive,\n  Optional,\n} from '@angular/core';\n\nimport { DaffModalComponent } from '../modal/modal.component';\nimport { DaffModalService } from '../service/modal.service';\n\n/**\n * The DaffModalCloseDirective is a helper directive that passes a click\n * event to the button it's used with to close a modal. It needs to be\n * implemented with the `<button>` HTML element to work. This helps to\n * reduce code duplication.\n */\n@Directive({\n  selector: 'button[daffModalClose]',\n  host: {\n    'type': 'button',\n    '(click)': 'onClick($event)',\n  },\n})\n\nexport class DaffModalCloseDirective {\n  constructor(\n    private modalService: DaffModalService,\n    @Optional() private modal: DaffModalComponent,\n  ) {}\n\n  /**\n   * @docs-private\n   */\n  onClick(event: MouseEvent) {\n    if(this.modal) {\n      this.modalService.close(this.modal);\n    }\n  }\n}\n","/* eslint-disable quote-props */\nimport {\n  Component,\n  ChangeDetectionStrategy,\n} from '@angular/core';\n\n@Component({\n  selector: 'daff-modal-content',\n  template: '<ng-content></ng-content>',\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  host: {\n    'class': 'daff-modal-content',\n  },\n})\nexport class DaffModalContentComponent {}\n","/* eslint-disable quote-props */\nimport {\n  Component,\n  ViewEncapsulation,\n  ChangeDetectionStrategy,\n  Input,\n} from '@angular/core';\nimport { FaIconComponent } from '@fortawesome/angular-fontawesome';\nimport { faXmark } from '@fortawesome/free-solid-svg-icons';\n\nimport { DaffIconButtonComponent } from '@daffodil/design/button';\n\nimport { DaffModalCloseDirective } from '../modal-close/modal-close.directive';\n\n@Component({\n  selector: 'daff-modal-header',\n  templateUrl: './modal-header.component.html',\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  host: {\n    'class': 'daff-modal-header',\n  },\n  imports: [\n    DaffIconButtonComponent,\n    FaIconComponent,\n    DaffModalCloseDirective,\n  ],\n})\nexport class DaffModalHeaderComponent {\n  faXmark = faXmark;\n\n  /**\n   * Whether or not a modal is dismissible.\n   */\n  @Input() dismissible = true;\n}\n","<ng-content select=\"[daffModalTitle]\"></ng-content>\n@if (dismissible) {\n\t<button daff-icon-button color=\"theme-contrast\"\n\t\tdaffModalClose\n\t\tclass=\"daff-modal-header__dismiss-button\"\n\t\taria-label=\"Close modal\">\n\t\t\t<fa-icon [icon]=\"faXmark\" size=\"lg\"></fa-icon>\n\t</button>\n}","import {\n  Directive,\n  Optional,\n} from '@angular/core';\n\nimport { DaffModalComponent } from '../modal/modal.component';\n\nlet modalTitleId = 0;\n\n/**\n * Title of a modal.\n */\n@Directive({\n  selector: '[daffModalTitle]',\n  host: {\n    class: 'daff-modal-title',\n    '[attr.id]': '_id',\n  },\n})\n\nexport class DaffModalTitleDirective {\n  /**\n   * @docs-private\n   */\n  _id = '';\n\n  constructor(@Optional() private modal: DaffModalComponent) {\n    modalTitleId++;\n\n    this._id = 'daff-modal-title-' + modalTitleId;\n\n    /**\n     * Sets the ariaLabelledBy of the modal to the id of the modal title.\n     */\n    if(this.modal) {\n      this.modal.ariaLabelledBy = this._id;\n    }\n  }\n}\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome';\n\nimport { DaffButtonModule } from '@daffodil/design/button';\n\nimport { DaffModalComponent } from './modal/modal.component';\nimport { DaffModalActionsComponent } from './modal-actions/modal-actions.component';\nimport { DaffModalCloseDirective } from './modal-close/modal-close.directive';\nimport { DaffModalContentComponent } from './modal-content/modal-content.component';\nimport { DaffModalHeaderComponent } from './modal-header/modal-header.component';\nimport { DaffModalTitleDirective } from './modal-title/modal-title.directive';\nimport { DaffModalService } from './service/modal.service';\n\n/**\n * @deprecated in favor of {@link DAFF_MODAL_COMPONENTS}. Deprecated in version 0.78.0. Will be removed in version 1.0.0.\n */\n@NgModule({\n  imports: [\n    CommonModule,\n    PortalModule,\n    OverlayModule,\n    DaffButtonModule,\n    FontAwesomeModule,\n\n    DaffModalComponent,\n    DaffModalHeaderComponent,\n    DaffModalTitleDirective,\n    DaffModalContentComponent,\n    DaffModalActionsComponent,\n    DaffModalCloseDirective,\n  ],\n  exports: [\n    DaffModalComponent,\n    DaffModalHeaderComponent,\n    DaffModalTitleDirective,\n    DaffModalContentComponent,\n    DaffModalActionsComponent,\n    DaffModalCloseDirective,\n  ],\n  providers: [\n    DaffModalService,\n  ],\n})\nexport class DaffModalModule { }\n","import { DaffModalActionsComponent } from './modal-actions/modal-actions.component';\nimport { DaffModalCloseDirective } from './modal-close/modal-close.directive';\nimport { DaffModalContentComponent } from './modal-content/modal-content.component';\nimport { DaffModalHeaderComponent } from './modal-header/modal-header.component';\nimport { DaffModalTitleDirective } from './modal-title/modal-title.directive';\n\n/**\n * @docs-private\n */\nexport const DAFF_MODAL_COMPONENTS = <const> [\n  DaffModalHeaderComponent,\n  DaffModalTitleDirective,\n  DaffModalContentComponent,\n  DaffModalActionsComponent,\n  DaffModalCloseDirective,\n];\n"],"mappings":";;;;;;;;;;;;;;;A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