{"version":3,"file":"odx-angular-components-dropdown.mjs","sources":["../../../../libs/angular/components/dropdown/src/lib/models/close-dropdown-event.ts","../../../../libs/angular/components/dropdown/src/lib/models/dropdown-options.ts","../../../../libs/angular/components/dropdown/src/lib/dropdown.directive.ts","../../../../libs/angular/components/dropdown/src/lib/dropdown.component.ts","../../../../libs/angular/components/dropdown/src/lib/dropdown.component.html","../../../../libs/angular/components/dropdown/src/lib/dropdown.module.ts","../../../../libs/angular/components/dropdown/src/lib/helpers/close-current-dropdown.ts","../../../../libs/angular/components/dropdown/src/odx-angular-components-dropdown.ts"],"sourcesContent":["export class CloseDropdownEvent extends Event {\n  public static readonly TYPE = 'odxDropdownClose';\n\n  constructor() {\n    super(CloseDropdownEvent.TYPE, { bubbles: true });\n  }\n}\n","import { ConnectedOverlayOptions } from '@odx/angular/cdk/connected-overlay';\n\nexport type DropdownOptions = Pick<\n  ConnectedOverlayOptions,\n  'position' | 'containerClass' | 'enableFallback' | 'matchReferenceWidth' | 'minHeight' | 'offset' | 'showArrow' | 'outerPadding'\n>;\n\nexport const DefaultDropdownOptions: DropdownOptions = {\n  position: 'bottom',\n  matchReferenceWidth: false,\n  enableFallback: true,\n  minHeight: 0,\n  offset: 6,\n  outerPadding: 12,\n};\n","import {\n  AfterViewInit,\n  booleanAttribute,\n  ChangeDetectorRef,\n  Directive,\n  EventEmitter,\n  inject,\n  Injector,\n  Input,\n  OnChanges,\n  OnDestroy,\n  Output,\n  ViewContainerRef,\n} from '@angular/core';\nimport { ConnectedOverlayOptions, ConnectedOverlayRef, ConnectedOverlayService } from '@odx/angular/cdk/connected-overlay';\nimport { DynamicContent } from '@odx/angular/cdk/dynamic-view';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { EventManager, GetProperties, hasChanged, injectElement, NgChanges } from '@odx/angular/utils';\nimport { DropdownComponent } from './dropdown.component';\nimport { DefaultDropdownOptions, DropdownOptions } from './models';\n\nexport const DEFAULT_DROPDOWN_OPEN_TRIGGERS = ['click', 'keydown.enter'];\nexport const DEFAULT_DROPDOWN_CLOSE_TRIGGERS = ['keyup.esc'];\n\n/**\n * Represents a directive that enables dropdown functionality in Angular.\n * This directive handles the opening and closing of a dropdown menu, as well as\n * managing the associated overlay and event handling.\n */\n@CSSComponent('dropdown-host')\n@Directive({\n  standalone: true,\n  selector: '[odxDropdown]',\n  exportAs: 'odxDropdown',\n  providers: [EventManager],\n  host: {\n    '[attr.aria-haspopup]': 'true',\n    '[attr.aria-expanded]': 'isOpen',\n  },\n})\nexport class DropdownDirective implements AfterViewInit, OnChanges, OnDestroy {\n  private readonly changeDetector = inject(ChangeDetectorRef);\n  private readonly connectedOverlayService = inject(ConnectedOverlayService);\n  private readonly eventManager = inject(EventManager);\n  private readonly viewContainer = inject(ViewContainerRef);\n  private readonly injector = inject(Injector);\n  private overlayRef: ConnectedOverlayRef | null = null;\n\n  public readonly element = injectElement();\n\n  /**\n   * Gets a value indicating whether the dropdown is currently open.\n   *\n   * @returns {boolean}\n   */\n  public get isOpen(): boolean {\n    return this.overlayRef !== null;\n  }\n\n  /**\n   * The content to be displayed in the dropdown.\n   * It can be either a static content or a dynamically loaded content.\n   *\n   * @type {DynamicContent | null}\n   */\n  @Input('odxDropdown')\n  public content?: DynamicContent | null;\n\n  /**\n   * Indicates whether the dropdown is disabled or not.\n   *\n   * @type {boolean}\n   * @default false\n   */\n  @Input({ alias: 'odxDropdownDisabled', transform: booleanAttribute })\n  public disabled = false;\n\n  /**\n   * Indicates whether the loader should be shown.\n   *\n   * @type {boolean}\n   * @default false\n   */\n  @Input({ alias: 'odxDropdownShowLoader', transform: booleanAttribute })\n  public showLoader = false;\n\n  /**\n   * Determines whether the dropdown should close when a click event occurs outside of it.\n   *\n   * @type {boolean}\n   * @default true\n   */\n  @Input({ alias: 'odxDropdownClickOutsideActive', transform: booleanAttribute })\n  public clickOutsideActive = true;\n\n  /**\n   * The options to be used when creating the dropdown overlay.\n   *\n   * @type {Partial<DropdownOptions> | null}\n   */\n  @Input('odxDropdownOptions')\n  public options?: Partial<DropdownOptions> | null;\n\n  /**\n   * The reference element to which the dropdown is anchored.\n   *\n   * @type {HTMLElement | null}\n   */\n  @Input('odxDropdownReferenceElement')\n  public referenceElement?: HTMLElement | null;\n\n  /**\n   * The trigger element that opens the dropdown.\n   *\n   * @type {HTMLElement | null}\n   */\n  @Input('odxDropdownTriggerElement')\n  public triggerElement?: HTMLElement | null;\n\n  /**\n   * The host element to which the dropdown is appended.\n   *\n   * @type {HTMLElement | ViewContainerRef | null}\n   */\n  @Input('odxDropdownHost')\n  public host?: HTMLElement | ViewContainerRef | null = this.viewContainer;\n\n  /**\n   * The event triggers that open the dropdown.\n   *\n   * @type {string[] | null}\n   * @default DEFAULT_DROPDOWN_OPEN_TRIGGERS\n   */\n  @Input('odxDropdownOpenTrigger')\n  public openTrigger?: string[] | null = DEFAULT_DROPDOWN_OPEN_TRIGGERS;\n\n  /**\n   * The event triggers that close the dropdown.\n   *\n   * @type {string[] | null}\n   * @default DEFAULT_DROPDOWN_CLOSE_TRIGGERS\n   */\n  @Input('odxDropdownCloseTrigger')\n  public closeTrigger?: string[] | null = DEFAULT_DROPDOWN_CLOSE_TRIGGERS;\n\n  /**\n   * Event emitter that emits before the dropdown is opened.\n   *\n   * @emits {void}\n   */\n  @Output('odxDropdownBeforeOpen')\n  public beforeOpen = new EventEmitter<void>();\n\n  /**\n   * Event emitter that emits after the dropdown is opened.\n   *\n   * @emits {void}\n   */\n  @Output('odxDropdownAfterOpen')\n  public afterOpen = new EventEmitter<void>();\n\n  /**\n   * Event emitter that emits before the dropdown is closed.\n   *\n   * @emits {void}\n   */\n  @Output('odxDropdownBeforeClose')\n  public beforeClose = new EventEmitter<void>();\n\n  /**\n   * Event emitter that emits after the dropdown is closed.\n   *\n   * @emits {void}\n   */\n  @Output('odxDropdownAfterClose')\n  public afterClose = new EventEmitter<void>();\n\n  public ngAfterViewInit(): void {\n    this.eventManager.register(this.openTrigger ?? [], (event) => this.toggle(event), this.triggerElement ?? this.referenceElement);\n    this.eventManager.register(this.closeTrigger ?? [], () => this.close(), 'document');\n  }\n\n  public ngOnDestroy(): void {\n    this.close();\n  }\n\n  public ngOnChanges(changes: NgChanges<DropdownDirective>) {\n    if (hasChanged(changes, 'disabled') && this.disabled) {\n      this.close();\n    }\n    if (hasChanged(changes, ['options', 'content', 'showLoader', 'clickOutsideActive'])) {\n      this.overlayRef?.update(this.createOverlayOptions());\n    }\n  }\n\n  /**\n   * Toggles the state of the dropdown.\n   * If the dropdown is open, it will be closed. If it is closed, it will be opened.\n   *\n   * @param {Event | undefined} event - The optional event that triggered the toggle.\n   */\n  public toggle(event?: Event): void {\n    if (this.isOpen) {\n      this.close(event);\n    } else {\n      this.open(event);\n    }\n  }\n\n  /**\n   * Opens the dropdown.\n   *\n   * @param {Event | undefined} event - The optional event that triggered the open.\n   */\n  public open(event?: Event) {\n    event?.preventDefault();\n    if (this.isOpen || !this.content || this.disabled) return;\n    this.overlayRef = this.connectedOverlayService.createOverlay(this.referenceElement ?? this.element.nativeElement, this.createOverlayOptions(), {\n      host: this.referenceElement?.parentElement ?? this.host,\n      injector: this.injector,\n    });\n    this.changeDetector.markForCheck();\n  }\n\n  /**\n   * Closes the dropdown.\n   *\n   * @param {Event | undefined} event - The optional event that triggered the close.\n   */\n  public close(event?: Event) {\n    event?.preventDefault();\n    this.overlayRef?.close();\n    this.overlayRef = null;\n    this.changeDetector.markForCheck();\n  }\n\n  private createOverlayOptions(): Partial<ConnectedOverlayOptions> {\n    const containerClass = ['odx-dropdown-overlay', this.options?.containerClass].filter(Boolean).join(' ');\n    const context = {\n      content: this.content,\n      showLoader: this.showLoader,\n      clickOutsideActive: this.clickOutsideActive,\n    } as Partial<GetProperties<DropdownComponent>>;\n    return {\n      ...DefaultDropdownOptions,\n      ...this.options,\n      fallbackAxisSideDirection: 'end',\n      containerClass,\n      content: DropdownComponent,\n      context,\n      hooks: {\n        beforeOpen: () => this.beforeOpen.emit(),\n        afterOpen: () => this.afterOpen.emit(),\n        beforeClose: () => this.beforeClose.emit(),\n        afterClose: () => this.afterClose.emit(),\n      },\n    };\n  }\n}\n","import { ChangeDetectionStrategy, Component, HostListener, inject, Injector, Input, ViewEncapsulation } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { A11yModule } from '@odx/angular/cdk/a11y';\nimport { DynamicContent, DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { LoadingSpinnerModule } from '@odx/angular/components/loading-spinner';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { DropdownDirective } from './dropdown.directive';\nimport { CloseDropdownEvent } from './models';\n\n/**\n * Represents a dropdown component.\n */\n@CSSComponent('dropdown')\n@Component({\n  standalone: true,\n  selector: 'odx-dropdown',\n  imports: [CoreModule, DynamicViewDirective, LoadingSpinnerModule, A11yModule],\n  templateUrl: './dropdown.component.html',\n  encapsulation: ViewEncapsulation.None,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownComponent {\n  protected readonly host = inject(DropdownDirective);\n  protected readonly injector = inject(Injector);\n  public readonly element = injectElement();\n\n  /**\n   * The content to be displayed in the dropdown.\n   *\n   * @type {DynamicContent | null}\n   */\n  @Input()\n  public content?: DynamicContent | null;\n\n  /**\n   * Indicates whether to show a loader while loading the dropdown content.\n   *\n   * @type {boolean | undefined}\n   */\n  @Input()\n  public showLoader?: boolean;\n\n  /**\n   * Indicates whether clicking outside the dropdown should close it.\n   *\n   * @type {boolean | undefined}\n   */\n  @Input()\n  public clickOutsideActive?: boolean;\n\n  @HostListener(CloseDropdownEvent.TYPE)\n  protected onDropdownClose(): void {\n    this.host.close();\n  }\n}\n","<div class=\"odx-dropdown__inner\" [odxLoadingSpinner]=\"showLoader\" [odxClickOutsideActive]=\"clickOutsideActive\" (odxClickOutside)=\"host.close()\" cdkTrapFocus>\n  <ng-template [odxDynamicView]=\"content\" [odxDynamicViewInjector]=\"injector\" />\n</div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { DropdownDirective } from './dropdown.directive';\n\nconst modules = [DropdownDirective];\n\n@NgModule({\n  imports: modules,\n  exports: [CoreModule, ...modules],\n})\nexport class DropdownModule {}\n","import { CloseDropdownEvent } from '../models';\n\n/**\n * @internal\n * Dispatches a CloseDropdownEvent for target to close the current dropdown.\n *\n * @param {Element} target - The target element to close the dropdown for.\n */\nexport function closeCurrentDropdown(target: Element): void {\n  target.dispatchEvent(new CloseDropdownEvent());\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAM,MAAO,kBAAmB,SAAQ,KAAK,CAAA;aACpB,IAAA,CAAA,IAAI,GAAG,kBAAkB,CAAC;AAEjD,IAAA,WAAA,GAAA;QACE,KAAK,CAAC,kBAAkB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACnD;;;ACEK,MAAM,sBAAsB,GAAoB;AACrD,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,mBAAmB,EAAE,KAAK;AAC1B,IAAA,cAAc,EAAE,IAAI;AACpB,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,YAAY,EAAE,EAAE;;;MCQL,8BAA8B,GAAG,CAAC,OAAO,EAAE,eAAe;AAChE,MAAM,+BAA+B,GAAG,CAAC,WAAW;AAE3D;;;;AAIG;AAYI,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAAvB,IAAA,WAAA,GAAA;AACY,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;AACzD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;AACnC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IA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