{"version":3,"file":"odx-angular-components-toast.mjs","sources":["../../../../libs/angular/components/toast/src/lib/toast.config.ts","../../../../libs/angular/components/toast/src/lib/toast.service.ts","../../../../libs/angular/components/toast/src/lib/models/toast-variant.ts","../../../../libs/angular/components/toast/src/lib/components/toast-item/toast-item.component.ts","../../../../libs/angular/components/toast/src/lib/components/toast-item/toast-item.component.html","../../../../libs/angular/components/toast/src/lib/components/toast-container/toast-container.component.ts","../../../../libs/angular/components/toast/src/lib/components/toast-container/toast-container.component.html","../../../../libs/angular/components/toast/src/lib/toast.module.ts","../../../../libs/angular/components/toast/src/odx-angular-components-toast.ts"],"sourcesContent":["import { createConfigTokens } from '@odx/angular/utils';\nimport { ToastOptions } from './models/toast.options';\n\nexport type ToastConfig = ToastOptions;\n\n/**\n * Utility functions generated by `createConfigTokens` to handle injection and provision of `ToastConfig`.\n * These include tokens and functions to access and provide the default configuration for toasts.\n *\n * `ToastDefaultConfig` provides the default settings for toasts.\n * `ToastConfig` is a token that can be used to inject toast configuration settings.\n * `injectToastConfig` is a function that retrieves the current toast configuration.\n * `provideToastConfig` is a function used to specify a custom configuration for toasts.\n *\n * @example\n * ```ts\n * // In module providers:\n * providers: [\n *  provideToastConfig({ // ... global module configuration }),\n * ]\n *\n * // In a component or service:\n * constructor(@Inject(ToastConfig) private readonly config: ToastConfig) {}\n *\n * // Or using the `injectToastConfig` function:\n * @Component({ ... })\n * export class MyComponent {\n *  private readonly config = injectToastConfig();\n * }\n * ```\n */\nexport const { ToastDefaultConfig, ToastConfig, injectToastConfig, provideToastConfig } = createConfigTokens('Toast', '@odx/angular/components/toast', {\n  dismissable: true,\n  duration: 0,\n} as ToastConfig);\n","import { Injectable } from '@angular/core';\nimport { deepmerge } from '@odx/angular/internal';\nimport { getUniqueId, Queue } from '@odx/angular/utils';\nimport { Toast, ToastOptions, ToastRef } from './models';\nimport { injectToastConfig } from './toast.config';\n\n/**\n * ToastService provides a centralized management system for toasts within an application.\n * It handles the creation, updates, and dismissal of toasts based on a FIFO (first-in, first-out) queue.\n * This service integrates custom toast options with default configurations and supports reactive updates through observables.\n */\n@Injectable({\n  providedIn: 'root',\n})\nexport class ToastService {\n  private readonly queue = new Queue<ToastRef>();\n  private readonly defaultOptions = injectToastConfig();\n\n  /**\n   * Observable stream of active toasts.\n   *\n   * @emits {ToastRef[]} The current list of active toasts.\n   */\n  public readonly toasts$ = this.queue.value$;\n\n  /**\n   * Observable that emits when any update occurs in the toast queue.\n   *\n   * @emits {ToastRef[]} The updated list of active toasts.\n   */\n  public readonly onUpdate$ = this.queue.onUpdate$;\n\n  /**\n   * Observable that emits when a toast is added.\n   *\n   * @emits {ToastRef} The newly added toast.\n   */\n  public readonly onToastAdd$ = this.queue.onAdd$;\n\n  /**\n   * Observable that emits when a toast is updated.\n   *\n   * @emits {ToastRef} The updated toast.\n   */\n  public readonly onToastUpdate$ = this.queue.onUpdate$;\n\n  /**\n   * Observable that emits when a toast is removed.\n   *\n   * @emits {ToastRef} The removed toast.\n   */\n  public readonly onToastRemove$ = this.queue.onRemove$;\n\n  /**\n   * Creates and queues a new toast based on the provided item and options.\n   * Merges given options with default configurations.\n   *\n   * @param {Toast} item The toast item to create.\n   * @param {Partial<ToastOptions>} options Optional additional options for the toast.\n   * @returns {ToastRef} The reference to the newly created toast.\n   */\n  public create(item: Toast, options: Partial<ToastOptions> = {}): ToastRef {\n    return this.queue.add({\n      id: item.id ?? getUniqueId('odx-toast'),\n      item,\n      options: deepmerge(this.defaultOptions, options) as ToastOptions,\n    });\n  }\n\n  /**\n   * Dismisses a specific toast identified by a reference or ID.\n   *\n   * @param {ToastRef | ToastRef['id']} refOrId The reference or ID of the toast to dismiss.\n   * @returns {ToastRef | null} The reference to the dismissed toast, or null if not found.\n   */\n  public dismiss(refOrId: ToastRef | ToastRef['id']): ToastRef | null {\n    return this.queue.remove(refOrId);\n  }\n\n  /**\n   * Dismisses all toasts currently being displayed.\n   */\n  public dismissAll(): void {\n    this.queue.clear();\n  }\n}\n","export type ToastVariant = (typeof ToastVariant)[keyof typeof ToastVariant];\n\nexport const ToastVariant = {\n  DEFAULT: 'default',\n  WARNING: 'warning',\n  DANGER: 'danger',\n  SUCCESS: 'success',\n  WARNING_STRONG: 'warning-strong',\n  DANGER_STRONG: 'danger-strong',\n} as const;\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output, Type, ViewEncapsulation } from '@angular/core';\nimport { DynamicContent, DynamicTextContent, DynamicViewDirective, GetDynamicViewContext } from '@odx/angular/cdk/dynamic-view';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, untilDestroyed } from '@odx/angular/utils';\nimport { tap, timer } from 'rxjs';\nimport { ToastAction, ToastOptions, ToastVariant } from '../../models';\n\n/**\n * A component that represents a single toast notification. This component is responsible for displaying\n * message content, handling toast actions, and managing the automatic dismissal of the toast based on a duration.\n * It supports dynamic content for descriptions and can show an optional set of actions.\n */\n@CSSComponent('toast-item')\n@Component({\n  selector: 'odx-toast',\n  templateUrl: './toast-item.component.html',\n  standalone: true,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  encapsulation: ViewEncapsulation.None,\n  imports: [IconComponent, ButtonComponent, DynamicViewDirective, ActionGroupComponent],\n  host: {\n    '[attr.id]': 'id',\n  },\n})\nexport class ToastItemComponent implements OnInit {\n  private readonly takeUntilDestroyed = untilDestroyed();\n\n  public readonly element = injectElement();\n\n  /**\n   * Determines the icon to display based on the toast's variant.\n   * Returns a string representing the icon class.\n   *\n   * @returns {string} - The icon class name.\n   * @default 'info'\n   */\n  public get icon(): string {\n    switch (this.variant) {\n      case ToastVariant.WARNING:\n        return 'core::warning';\n      case ToastVariant.DANGER:\n        return 'core::error';\n      case ToastVariant.SUCCESS:\n        return 'core::check';\n      default:\n        return 'core::info';\n    }\n  }\n\n  /**\n   * Unique identifier for the toast item, typically provided for accessibility purposes.\n   *\n   * @required\n   * @type {string}\n   */\n  @Input()\n  public id!: string;\n\n  /**\n   * The main title of the toast, displayed prominently.\n   *\n   * @required\n   * @type {DynamicTextContent}\n   */\n  @Input()\n  public title!: DynamicTextContent;\n\n  /**\n   * Optional detailed description for the toast. This can be plain text or a dynamic template.\n   *\n   * @type {DynamicContent | null}\n   */\n  @Input()\n  public description?: DynamicContent | null;\n\n  /**\n   * Context for rendering the dynamic component of the description.\n   *\n   * @type {GetDynamicViewContext<Type<unknown>> | undefined}\n   */\n  @Input()\n  public descriptionContext?: GetDynamicViewContext<Type<unknown>>;\n\n  /**\n   * The variant of the toast which influences the icon and styling.\n   *\n   * @type {ToastVariant | null}\n   * @default ToastVariant.DEFAULT\n   */\n  @CSSModifier()\n  @Input()\n  public variant?: ToastVariant | null = ToastVariant.DEFAULT;\n\n  /**\n   * Optional actions related to the toast, such as 'retry' or 'dismiss'.\n   *\n   * @type {ToastAction[] | undefined}\n   */\n  @Input()\n  public actions?: ToastAction[];\n\n  /**\n   * Configuration options for the toast, including its duration and dismissal behavior.\n   *\n   * @required\n   * @type {ToastOptions}\n   */\n  @Input()\n  public options!: ToastOptions;\n\n  /**\n   * Emits an event when the toast is dismissed, either through action or automatically.\n   *\n   * @emits {void}\n   */\n  @Output()\n  public readonly dismiss = new EventEmitter<void>();\n\n  public ngOnInit(): void {\n    const { duration } = this.options;\n    if (duration > 0) {\n      timer(duration)\n        .pipe(\n          this.takeUntilDestroyed(),\n          tap(() => this.onDismiss()),\n        )\n        .subscribe();\n    }\n  }\n\n  protected onDismiss(): void {\n    this.dismiss.next();\n  }\n}\n","<div class=\"odx-toast-item__content\">\n  <odx-icon [name]=\"icon\" />\n  <div class=\"odx-toast-item__text-content\">\n    <p class=\"odx-toast-item__title\">\n      <ng-template [odxDynamicView]=\"title\" />\n    </p>\n    @if (description) {\n      <p class=\"odx-toast-item__description\">\n        <ng-template [odxDynamicView]=\"description\" [odxDynamicViewContext]=\"descriptionContext\" />\n      </p>\n    }\n  </div>\n  @if (options.dismissable) {\n    <button odxButton class=\"odx-toast-item__close\" (click)=\"onDismiss()\"><odx-icon name=\"core::close\" /></button>\n  }\n</div>\n@if (!!actions?.length) {\n  <odx-action-group class=\"odx-toast-item__buttons\">\n    @for (action of actions; track $index) {\n      <button odxButton (click)=\"action.action()\">\n        @if (action.leftIcon) {\n          <odx-icon [name]=\"action.leftIcon\" alignLeft />\n        }\n        <ng-template [odxDynamicView]=\"action.label\" />\n        @if (action.rightIcon) {\n          <odx-icon [name]=\"action.rightIcon\" alignRight />\n        }\n      </button>\n    }\n  </odx-action-group>\n}\n","import { CommonModule } from '@angular/common';\nimport {\n  AfterViewInit,\n  ChangeDetectionStrategy,\n  Component,\n  DestroyRef,\n  Input,\n  OnDestroy,\n  Output,\n  Renderer2,\n  ViewEncapsulation,\n  inject,\n  numberAttribute,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { WindowRef } from '@odx/angular';\nimport { ChipComponent } from '@odx/angular/components/chip';\nimport { HeaderComponent } from '@odx/angular/components/header';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { deferFn, injectElement, px, setAttribute } from '@odx/angular/utils';\nimport { Observable, map } from 'rxjs';\nimport { ToastRef } from '../../models';\nimport { ToastService } from '../../toast.service';\nimport { ToastItemComponent } from '../toast-item/toast-item.component';\n\n/**\n * Represents a container component for displaying toast notifications. This component manages and arranges toast messages,\n * handling animations for entering and leaving toasts. It ensures that only a limited number of toasts are shown at the same time,\n * based on the `maxItems` input. The container listens for toast events from the `ToastService` to update its list of toasts dynamically.\n *\n * The component uses a group of animations to slide toasts in and out smoothly and also provides an output for when a toast is dismissed.\n * It's designed to integrate with a single instance per application, ensuring no more than one toast container is initialized.\n */\n@CSSComponent('toast-container')\n@Component({\n  selector: 'odx-toast-container',\n  templateUrl: './toast-container.component.html',\n  standalone: true,\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  encapsulation: ViewEncapsulation.None,\n  imports: [CommonModule, ChipComponent, ToastItemComponent],\n})\nexport class ToastContainerComponent implements AfterViewInit, OnDestroy {\n  private static INITIALIZED = false;\n\n  private previousItemsCount = 0;\n\n  private readonly destroyRef = inject(DestroyRef);\n  private readonly windowRef = inject(WindowRef);\n  private readonly renderer = inject(Renderer2);\n  private readonly toastService = inject(ToastService);\n\n  public readonly element = injectElement();\n  public readonly items$: Observable<ToastRef[]> = this.toastService.toasts$.pipe(map((refs) => refs.slice(0, this.maxItems)));\n  public readonly hiddenToasts$: Observable<number> = this.toastService.toasts$.pipe(map((refs) => Math.max(0, refs.length - this.maxItems)));\n\n  /**\n   * Maximum number of toasts that can be displayed at once.\n   *\n   * @type {number}\n   * @default 3\n   */\n  @Input({ transform: numberAttribute })\n  public maxItems = 3;\n\n  /**\n   * Emits an event when a toast is dismissed.\n   *\n   * @emits {ToastRef} - The toast reference that was dismissed.\n   */\n  @Output()\n  public readonly dismiss = this.toastService.onToastRemove$;\n\n  public ngAfterViewInit(): void {\n    setAttribute(this.element.nativeElement, 'popover', 'manual');\n    if (ToastContainerComponent.INITIALIZED) {\n      throw new Error('Only one toast container per application allowed');\n    }\n    ToastContainerComponent.INITIALIZED = true;\n    const headerElement = this.windowRef.queryByComponent(HeaderComponent);\n    if (headerElement) {\n      this.renderer.setStyle(this.element.nativeElement, 'top', px(headerElement.offsetHeight));\n    }\n    this.items$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((items) => {\n      if (items.length > this.previousItemsCount) {\n        this.updatePopverPosition();\n      }\n      this.previousItemsCount = items.length;\n    });\n  }\n\n  public ngOnDestroy(): void {\n    ToastContainerComponent.INITIALIZED = false;\n  }\n\n  protected onDismiss(itemRef: ToastRef): void {\n    this.toastService.dismiss(itemRef);\n  }\n\n  private updatePopverPosition(): void {\n    const el = this.element?.nativeElement;\n    if (!el?.isConnected) return;\n\n    el.hidePopover?.();\n    deferFn(() => el.showPopover?.());\n  }\n}\n","@for (toastRef of items$ | async; track toastRef.id) {\n  <div class=\"odx-toast-container__item\" animate.enter=\"odx-animate-toast-enter\" animate.leave=\"odx-animate-collapse\">\n    <odx-toast\n      [id]=\"toastRef.id\"\n      [title]=\"toastRef.item.title\"\n      [description]=\"toastRef.item.description\"\n      [descriptionContext]=\"toastRef.item.descriptionContext\"\n      [actions]=\"toastRef.item.actions ?? []\"\n      [variant]=\"toastRef.item.variant\"\n      [options]=\"toastRef.options\"\n      (dismiss)=\"onDismiss(toastRef)\"\n    />\n  </div>\n}\n@if (hiddenToasts$ | async; as more) {\n  <odx-chip class=\"odx-toast-container__counter\">{{ more }} more Notifications</odx-chip>\n}\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { ToastContainerComponent, ToastItemComponent } from './components';\n\nconst modules = [ToastContainerComponent, ToastItemComponent];\n\n@NgModule({\n  imports: modules,\n  exports: [CoreModule, ...modules],\n})\nexport class ToastModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACI,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,GAAG,kBAAkB,CAAC,OAAO,EAAE,+BAA+B,EAAE;AACrJ,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,QAAQ,EAAE,CAAC;AACG,CAAA;;AC5BhB;;;;AAIG;MAIU,YAAY,CAAA;AAHzB,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,KAAK,EAAY;QAC7B,IAAA,CAAA,cAAc,GAAG,iBAAiB,EAAE;AAErD;;;;AAIG;AACa,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM;AAE3C;;;;AAIG;AACa,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS;AAEhD;;;;AAIG;AACa,QAAA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