@spartan-ng/brain 1.5.0-beta.4 → 1.5.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"spartan-ng-brain-sonner.mjs","sources":["../../../../libs/brain/sonner/src/lib/brn-icon.ts","../../../../libs/brain/sonner/src/lib/brn-loader.ts","../../../../libs/brain/sonner/src/lib/brn-toaster.token.ts","../../../../libs/brain/sonner/src/lib/pipes/as-component.pipe.ts","../../../../libs/brain/sonner/src/lib/pipes/is-string.pipe.ts","../../../../libs/brain/sonner/src/lib/state.ts","../../../../libs/brain/sonner/src/lib/brn-toast.ts","../../../../libs/brain/sonner/src/lib/pipes/toast-filter.pipe.ts","../../../../libs/brain/sonner/src/lib/brn-toaster.ts","../../../../libs/brain/sonner/src/index.ts","../../../../libs/brain/sonner/src/spartan-ng-brain-sonner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { ToastTypes } from './types';\n\n@Component({\n\tselector: 'brn-sonner-icon',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t@switch (type()) {\n\t\t\t@case ('success') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('error') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('info') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('warning') {\n\t\t\t\t<svg viewBox=\"0 0 64 64\" fill=\"currentColor\" height=\"20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z\"\n\t\t\t\t\t/>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t}\n\t`,\n})\nexport class BrnSonnerIcon {\n\tpublic readonly type = input<ToastTypes>('default');\n}\n","import type { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n@Component({\n\tselector: 'brn-sonner-loader',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<div class=\"sonner-loading-wrapper\" [attr.data-visible]=\"isVisible()\">\n\t\t\t<div class=\"sonner-spinner\">\n\t\t\t\t@for (_ of _bars; track $index) {\n\t\t\t\t\t<div class=\"sonner-loading-bar\"></div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t`,\n})\nexport class BrnSonnerLoader {\n\tpublic readonly isVisible = input.required<boolean, BooleanInput>({ transform: booleanAttribute });\n\tprotected readonly _bars = Array(12).fill(0);\n}\n","import { inject, InjectionToken, type ValueProvider } from '@angular/core';\nimport type { ToastClassnames } from './types';\n\nexport interface BrnSonnerToasterConfig {\n\t/** The maximum number of toasts visible at once */\n\tvisibleToastsAmount: number;\n\t/** The offset from the viewport for the toast container */\n\tviewPortOffset: string;\n\t/** The default lifetime of a toast in milliseconds */\n\ttoastLifetime: number;\n\t/** The width of the toast in pixels */\n\ttoastWidth: number;\n\t/** The gap between toasts in pixels */\n\tgap: number;\n\t/** The threshold in pixels for swipe to dismiss a toast */\n\tswipeThreshold: number;\n\t/** The time in milliseconds before a toast is unmounted */\n\ttimeBeforeUnmount: number;\n}\n\nconst defaultConfig: BrnSonnerToasterConfig = {\n\tvisibleToastsAmount: 3,\n\tviewPortOffset: '32px',\n\ttoastLifetime: 4000,\n\ttoastWidth: 356,\n\tgap: 14,\n\tswipeThreshold: 20,\n\ttimeBeforeUnmount: 200,\n};\n\nconst BrnSonnerToasterConfigToken = new InjectionToken<BrnSonnerToasterConfig>('BrnSonnerToasterConfig');\n\nexport function provideBrnSonnerToasterConfig(config: Partial<BrnSonnerToasterConfig>): ValueProvider {\n\treturn { provide: BrnSonnerToasterConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectBrnSonnerToasterConfig(): BrnSonnerToasterConfig {\n\treturn inject(BrnSonnerToasterConfigToken, { optional: true }) ?? defaultConfig;\n}\n\nexport const defaultClasses: ToastClassnames = {\n\ttoast: '',\n\ttitle: '',\n\tdescription: '',\n\tloader: '',\n\tcloseButton: '',\n\tcancelButton: '',\n\tactionButton: '',\n\taction: '',\n\twarning: '',\n\terror: '',\n\tsuccess: '',\n\tdefault: '',\n\tinfo: '',\n\tloading: '',\n};\n","import { Pipe, PipeTransform, Type } from '@angular/core';\n\n@Pipe({ name: 'asComponent' })\nexport class AsComponentPipe implements PipeTransform {\n\ttransform(value: unknown): Type<unknown> {\n\t\treturn value as Type<unknown>;\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'isString' })\nexport class IsStringPipe implements PipeTransform {\n\ttransform(value: unknown): boolean {\n\t\treturn typeof value === 'string';\n\t}\n}\n","import { signal, type Type } from '@angular/core';\nimport type { ExternalToast, HeightT, PromiseData, PromiseT, ToastT, ToastTypes } from './types';\n\nlet toastsCounter = 0;\n\nfunction createToastState() {\n\tconst toasts = signal<ToastT[]>([]);\n\tconst heights = signal<HeightT[]>([]);\n\n\tfunction addToast(data: ToastT) {\n\t\ttoasts.update((prev) => [data, ...prev]);\n\t}\n\n\tfunction create(\n\t\tdata: ExternalToast & {\n\t\t\tmessage?: string | Type<unknown>;\n\t\t\ttype?: ToastTypes;\n\t\t\tpromise?: PromiseT;\n\t\t},\n\t) {\n\t\tconst { message, ...rest } = data;\n\t\tconst id = typeof data?.id === 'number' || (data.id && data.id?.length > 0) ? data.id : toastsCounter++;\n\n\t\tconst dismissible = data.dismissible ?? true;\n\t\tconst type = data.type ?? 'default';\n\n\t\tconst alreadyExists = toasts().find((toast) => toast.id === id);\n\n\t\tif (alreadyExists) {\n\t\t\ttoasts.update((prev) =>\n\t\t\t\tprev.map((toast) => {\n\t\t\t\t\tif (toast.id === id) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t...toast,\n\t\t\t\t\t\t\t...data,\n\t\t\t\t\t\t\tid,\n\t\t\t\t\t\t\ttitle: message,\n\t\t\t\t\t\t\tdismissible,\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\tupdated: true,\n\t\t\t\t\t\t};\n\t\t\t\t\t} else return { ...toast, updated: false };\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\taddToast({ ...rest, id, title: message, dismissible: dismissible, type });\n\t\t}\n\n\t\treturn id;\n\t}\n\n\tfunction dismiss(id?: number | string) {\n\t\tif (id === undefined) {\n\t\t\ttoasts.set([]);\n\t\t\treturn;\n\t\t}\n\t\ttoasts.update((prev) => prev.filter((toast) => toast.id !== id));\n\n\t\treturn id;\n\t}\n\n\tfunction message(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'default', message });\n\t}\n\n\tfunction error(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'error', message });\n\t}\n\n\tfunction success(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'success', message });\n\t}\n\n\tfunction info(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'info', message });\n\t}\n\n\tfunction warning(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'warning', message });\n\t}\n\n\tfunction loading(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'loading', message });\n\t}\n\n\tfunction promise<ToastData>(promise: PromiseT<ToastData>, data?: PromiseData<ToastData>) {\n\t\tif (!data) return;\n\n\t\tlet id: string | number | undefined = undefined;\n\t\tif (data.loading !== undefined) {\n\t\t\tid = create({\n\t\t\t\t...data,\n\t\t\t\tpromise,\n\t\t\t\ttype: 'loading',\n\t\t\t\tmessage: data.loading,\n\t\t\t});\n\t\t}\n\n\t\tconst p = promise instanceof Promise ? promise : promise();\n\n\t\tlet shouldDismiss = id !== undefined;\n\n\t\tp.then((response) => {\n\t\t\t// @ts-expect-error: Incorrect response type\n\t\t\tif (response && typeof response.ok === 'boolean' && !response.ok) {\n\t\t\t\tshouldDismiss = false;\n\n\t\t\t\tconst message =\n\t\t\t\t\ttypeof data.error === 'function'\n\t\t\t\t\t\t? // @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\t\tdata.error(`HTTP error! status: ${response.status}`)\n\t\t\t\t\t\t: data.error;\n\t\t\t\tcreate({ id, type: 'error', message });\n\t\t\t} else if (data.success !== undefined) {\n\t\t\t\tshouldDismiss = false;\n\n\t\t\t\tconst message =\n\t\t\t\t\ttypeof data.success === 'function'\n\t\t\t\t\t\t? // @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\t\tdata.success(response)\n\t\t\t\t\t\t: data.success;\n\t\t\t\tcreate({ id, type: 'success', message });\n\t\t\t}\n\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tif (data.error !== undefined) {\n\t\t\t\t\tshouldDismiss = false;\n\t\t\t\t\tconst message =\n\t\t\t\t\t\t// @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\ttypeof data.error === 'function' ? data.error(error) : data.error;\n\t\t\t\t\tcreate({ id, type: 'error', message });\n\t\t\t\t}\n\t\t\t})\n\t\t\t.finally(() => {\n\t\t\t\tif (shouldDismiss) {\n\t\t\t\t\t// Toast is still in load state (and will be indefinitely — dismiss it)\n\t\t\t\t\tdismiss(id);\n\t\t\t\t\tid = undefined;\n\t\t\t\t}\n\n\t\t\t\tdata.finally?.();\n\t\t\t});\n\n\t\treturn id;\n\t}\n\n\tfunction custom<T>(component: Type<T>, data?: ExternalToast) {\n\t\tconst id = data?.id ?? toastsCounter++;\n\t\tcreate({ component, id, ...data });\n\n\t\treturn id;\n\t}\n\n\tfunction removeHeight(id: number | string) {\n\t\theights.update((prev) => prev.filter((height) => height.toastId !== id));\n\t}\n\n\tfunction addHeight(height: HeightT) {\n\t\theights.update((prev) => [height, ...prev].sort(sortHeights));\n\t}\n\n\tconst sortHeights = (a: HeightT, b: HeightT) =>\n\t\ttoasts().findIndex((t) => t.id === a.toastId) - toasts().findIndex((t) => t.id === b.toastId);\n\n\tfunction reset() {\n\t\ttoasts.set([]);\n\t\theights.set([]);\n\t}\n\n\treturn {\n\t\t//methods\n\t\tcreate,\n\t\taddToast,\n\t\tdismiss,\n\t\tmessage,\n\t\terror,\n\t\tsuccess,\n\t\tinfo,\n\t\twarning,\n\t\tloading,\n\t\tpromise,\n\t\tcustom,\n\t\tremoveHeight,\n\t\taddHeight,\n\t\treset,\n\t\t// signals\n\t\ttoasts: toasts.asReadonly(),\n\t\theights: heights.asReadonly(),\n\t};\n}\n\nexport const toastState = createToastState();\n\n// bind this to the toast function\nfunction toastFunction(message: string | Type<unknown>, data?: ExternalToast) {\n\treturn toastState.create({\n\t\tmessage,\n\t\t...data,\n\t});\n}\n\nconst basicToast = toastFunction;\n\nexport const toast = Object.assign(basicToast, {\n\tsuccess: toastState.success,\n\tinfo: toastState.info,\n\twarning: toastState.warning,\n\terror: toastState.error,\n\tcustom: toastState.custom,\n\tmessage: toastState.message,\n\tpromise: toastState.promise,\n\tdismiss: toastState.dismiss,\n\tloading: toastState.loading,\n});\n","import { NgComponentOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\ttype AfterViewInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\teffect,\n\tElementRef,\n\tinput,\n\tlinkedSignal,\n\ttype OnDestroy,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport clsx from 'clsx';\nimport { defaultClasses, injectBrnSonnerToasterConfig } from './brn-toaster.token';\nimport { AsComponentPipe } from './pipes/as-component.pipe';\nimport { IsStringPipe } from './pipes/is-string.pipe';\nimport { toastState } from './state';\nimport type { ToastProps } from './types';\n\n@Component({\n\tselector: 'brn-sonner-toast',\n\timports: [NgComponentOutlet, IsStringPipe, AsComponentPipe],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<li\n\t\t\t#toastRef\n\t\t\tdata-sonner-toast\n\t\t\t[attr.aria-live]=\"toast().important ? 'assertive' : 'polite'\"\n\t\t\taria-atomic=\"true\"\n\t\t\trole=\"status\"\n\t\t\ttabindex=\"0\"\n\t\t\t[class]=\"_toastClasses()\"\n\t\t\t[attr.data-styled]=\"!(toast().component || toast().unstyled || unstyled())\"\n\t\t\t[attr.data-mounted]=\"_mounted()\"\n\t\t\t[attr.data-promise]=\"!!toast().promise\"\n\t\t\t[attr.data-removed]=\"_removed()\"\n\t\t\t[attr.data-visible]=\"_isVisible()\"\n\t\t\t[attr.data-y-position]=\"_coords()[0]\"\n\t\t\t[attr.data-x-position]=\"_coords()[1]\"\n\t\t\t[attr.data-index]=\"index()\"\n\t\t\t[attr.data-front]=\"_isFront()\"\n\t\t\t[attr.data-swiping]=\"_swiping()\"\n\t\t\t[attr.data-dismissible]=\"toast().dismissible\"\n\t\t\t[attr.data-type]=\"_toastType()\"\n\t\t\t[attr.data-invert]=\"_invert()\"\n\t\t\t[attr.data-swipe-out]=\"_swipeOut()\"\n\t\t\t[attr.data-expanded]=\"expanded() || (expandByDefault() && _mounted())\"\n\t\t\t[style]=\"_toastStyle()\"\n\t\t\t(pointerdown)=\"onPointerDown($event)\"\n\t\t\t(pointerup)=\"onPointerUp()\"\n\t\t\t(pointermove)=\"onPointerMove($event)\"\n\t\t>\n\t\t\t@if (_closeButton() && !toast().component) {\n\t\t\t\t<button\n\t\t\t\t\taria-label=\"Close toast\"\n\t\t\t\t\t[attr.data-disabled]=\"_disabled()\"\n\t\t\t\t\tdata-close-button\n\t\t\t\t\t(click)=\"onCloseButtonClick()\"\n\t\t\t\t\t[class]=\"_closeButtonClasses()\"\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\twidth=\"12\"\n\t\t\t\t\t\theight=\"12\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tstroke-width=\"1.5\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n\t\t\t\t\t\t<line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t}\n\n\t\t\t@if (toast().component) {\n\t\t\t\t<ng-container *ngComponentOutlet=\"toast().component | asComponent; inputs: toast().componentProps\" />\n\t\t\t} @else {\n\t\t\t\t@if (_toastType() !== 'default' || toast().icon || toast().promise) {\n\t\t\t\t\t<div data-icon>\n\t\t\t\t\t\t@if (_toastType() === 'loading' && !toast().icon) {\n\t\t\t\t\t\t\t<ng-content select=\"[loading-icon]\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (toast().icon) {\n\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"toast().icon | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t@switch (_toastType()) {\n\t\t\t\t\t\t\t\t@case ('success') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[success-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('error') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[error-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('warning') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[warning-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('info') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[info-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t<div data-content>\n\t\t\t\t\t@if (toast().title; as title) {\n\t\t\t\t\t\t<div data-title [class]=\"_titleClasses()\">\n\t\t\t\t\t\t\t@if (title | isString) {\n\t\t\t\t\t\t\t\t{{ toast().title }}\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"title | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t\t@if (toast().description; as description) {\n\t\t\t\t\t\t<div data-description [class]=\"_toastDescriptionClasses()\">\n\t\t\t\t\t\t\t@if (description | isString) {\n\t\t\t\t\t\t\t\t{{ toast().description }}\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"description | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t@if (toast().cancel; as cancel) {\n\t\t\t\t\t<button\n\t\t\t\t\t\tdata-button\n\t\t\t\t\t\tdata-cancel\n\t\t\t\t\t\t[style]=\"cancelButtonStyle() ?? toast().cancelButtonStyle\"\n\t\t\t\t\t\t[class]=\"_cancelButtonClasses()\"\n\t\t\t\t\t\t(click)=\"onCancelClick()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ cancel.label }}\n\t\t\t\t\t</button>\n\t\t\t\t}\n\t\t\t\t@if (toast().action; as action) {\n\t\t\t\t\t<button\n\t\t\t\t\t\tdata-button\n\t\t\t\t\t\t[style]=\"actionButtonStyle() ?? toast().actionButtonStyle\"\n\t\t\t\t\t\t[class]=\"_actionButtonClasses()\"\n\t\t\t\t\t\t(click)=\"onActionClick($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ action.label }}\n\t\t\t\t\t</button>\n\t\t\t\t}\n\t\t\t}\n\t\t</li>\n\t`,\n})\nexport class BrnSonnerToast implements AfterViewInit, OnDestroy {\n\tprivate readonly _config = injectBrnSonnerToasterConfig();\n\n\tprotected readonly _toasts = computed(() => toastState.toasts().filter((t) => t.position === this.position()));\n\tprotected readonly _heights = computed(() => toastState.heights().filter((h) => h.position === this.position()));\n\tprotected readonly _removeHeight = toastState.removeHeight;\n\tprotected readonly _addHeight = toastState.addHeight;\n\tprotected readonly _dismiss = toastState.dismiss;\n\n\tpublic readonly toast = input.required<ToastProps['toast']>();\n\tpublic readonly index = input.required<ToastProps['index']>();\n\tpublic readonly expanded = input.required<ToastProps['expanded']>();\n\tpublic readonly invert = input.required<ToastProps['invert']>();\n\tpublic readonly position = input.required<ToastProps['position']>();\n\tpublic readonly visibleToasts = input.required<ToastProps['visibleToasts']>();\n\tpublic readonly expandByDefault = input.required<ToastProps['expandByDefault']>();\n\tpublic readonly closeButton = input.required<ToastProps['closeButton']>();\n\tpublic readonly interacting = input.required<ToastProps['interacting']>();\n\tpublic readonly cancelButtonStyle = input<ToastProps['cancelButtonStyle']>();\n\tpublic readonly actionButtonStyle = input<ToastProps['actionButtonStyle']>();\n\tpublic readonly duration = input<ToastProps['duration']>(this._config.toastLifetime);\n\tpublic readonly descriptionClass = input<ToastProps['descriptionClass']>('');\n\tpublic readonly classes = input<ToastProps['classes']>({});\n\tpublic readonly unstyled = input<ToastProps['unstyled']>(false);\n\tpublic readonly userClass = input('', { alias: 'class' });\n\tpublic readonly style = input<Record<string, string>>({});\n\n\tprotected readonly _mounted = signal(false);\n\tprotected readonly _removed = signal(false);\n\tprotected readonly _swiping = signal(false);\n\tprotected readonly _swipeOut = signal(false);\n\tprivate readonly _offsetBeforeRemove = signal(0);\n\tprivate readonly _initialHeight = signal(0);\n\n\tprivate readonly _toastRef = viewChild.required<ElementRef<HTMLLIElement>>('toastRef');\n\n\tprotected readonly _classes = computed(() => ({\n\t\t...defaultClasses,\n\t\t...this.classes(),\n\t}));\n\n\tprotected readonly _isFront = computed(() => this.index() === 0);\n\tprotected readonly _isVisible = computed(() => this.index() + 1 <= this.visibleToasts());\n\tprotected readonly _toastType = computed(() => this.toast().type ?? 'default');\n\tprivate readonly _toastClass = computed(() => this.toast().class ?? '');\n\tprivate readonly _toastPosition = computed(() => this.toast().position ?? this.position());\n\tprotected readonly _toastDescriptionClass = computed(() => this.toast().descriptionClass ?? '');\n\n\tprivate readonly _heightIndex = computed(() =>\n\t\tthis._heights().findIndex((height) => height.toastId === this.toast().id),\n\t);\n\n\tprivate readonly _offset = linkedSignal({\n\t\tsource: () => ({\n\t\t\theightIndex: this._heightIndex(),\n\t\t\ttoastsHeightBefore: this._toastsHeightBefore(),\n\t\t}),\n\t\tcomputation: ({ heightIndex, toastsHeightBefore }) =>\n\t\t\tMath.round(heightIndex * this._config.gap + toastsHeightBefore),\n\t});\n\n\tprivate _closeTimerStartTimeRef = 0;\n\tprivate _lastCloseTimerStartTimeRef = 0;\n\tprivate _pointerStartRef: { x: number; y: number } | null = null;\n\n\tprotected readonly _coords = computed(() => this._toastPosition().split('-'));\n\tprivate readonly _toastsHeightBefore = computed(() =>\n\t\tthis._heights().reduce((prev, curr, reducerIndex) => {\n\t\t\tif (reducerIndex >= this._heightIndex()) return prev;\n\t\t\treturn prev + curr.height;\n\t\t}, 0),\n\t);\n\tprotected readonly _invert = computed(() => this.toast().invert ?? this.invert());\n\tprotected readonly _closeButton = computed(() => this.toast().closeButton ?? this.closeButton());\n\tprotected readonly _disabled = computed(() => this._toastType() === 'loading');\n\n\tprivate _timeoutId: ReturnType<typeof setTimeout> | undefined;\n\tprivate _remainingTime = 0;\n\n\tprivate readonly _isPromiseLoadingOrInfiniteDuration = computed(\n\t\t() =>\n\t\t\t(this.toast().promise && this._toastType() === 'loading') || this.toast().duration === Number.POSITIVE_INFINITY,\n\t);\n\n\tprotected readonly _toastClasses = computed(() =>\n\t\tclsx(\n\t\t\tthis.userClass(),\n\t\t\tthis._toastClass(),\n\t\t\tthis._classes().toast,\n\t\t\tthis.toast().classes?.toast,\n\t\t\tthis._classes()[this._toastType()],\n\t\t\tthis.toast().classes?.[this._toastType()],\n\t\t),\n\t);\n\tprotected readonly _toastStyle = computed(() => ({\n\t\t'--index': `${this.index()}`,\n\t\t'--toasts-before': `${this.index()}`,\n\t\t'--z-index': `${this._toasts().length - this.index()}`,\n\t\t'--offset': `${this._removed() ? this._offsetBeforeRemove() : this._offset()}px`,\n\t\t'--initial-height': this.expandByDefault() ? 'auto' : `${this._initialHeight()}px`,\n\t\t...this.style(),\n\t}));\n\tprotected readonly _actionButtonClasses = computed(() =>\n\t\tclsx(this._classes().actionButton, this.toast().classes?.actionButton),\n\t);\n\tprotected readonly _cancelButtonClasses = computed(() =>\n\t\tclsx(this._classes().cancelButton, this.toast().classes?.cancelButton),\n\t);\n\tprotected readonly _toastDescriptionClasses = computed(() =>\n\t\tclsx(\n\t\t\tthis.descriptionClass(),\n\t\t\tthis._toastDescriptionClass(),\n\t\t\tthis._classes().description,\n\t\t\tthis.toast().classes?.description,\n\t\t),\n\t);\n\tprotected readonly _titleClasses = computed(() => clsx(this._classes().title, this.toast().classes?.title));\n\tprotected readonly _closeButtonClasses = computed(() =>\n\t\tclsx(this._classes().closeButton, this.toast().classes?.closeButton),\n\t);\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tif (this.toast().updated) {\n\t\t\t\t// if the toast has been updated after the initial render,\n\t\t\t\t// we want to reset the timer and set the remaining time to the\n\t\t\t\t// new duration\n\t\t\t\tclearTimeout(this._timeoutId);\n\t\t\t\tthis._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;\n\t\t\t\tthis.startTimer();\n\t\t\t}\n\t\t});\n\n\t\tafterRenderEffect((onCleanup) => {\n\t\t\tif (!this._isPromiseLoadingOrInfiniteDuration()) {\n\t\t\t\tif (this.expanded() || this.interacting()) {\n\t\t\t\t\tthis.pauseTimer();\n\t\t\t\t} else {\n\t\t\t\t\tthis.startTimer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tonCleanup(() => clearTimeout(this._timeoutId));\n\t\t});\n\n\t\teffect(() => {\n\t\t\tif (this.toast().delete) {\n\t\t\t\tthis.deleteToast();\n\t\t\t}\n\t\t});\n\t}\n\n\tngAfterViewInit() {\n\t\tthis._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;\n\t\tthis._mounted.set(true);\n\t\tconst height = this._toastRef().nativeElement.getBoundingClientRect().height;\n\t\tthis._initialHeight.set(height);\n\t\tthis._addHeight({ toastId: this.toast().id, height, position: this._toastPosition() });\n\t}\n\n\tngOnDestroy() {\n\t\tclearTimeout(this._timeoutId);\n\t\tthis._removeHeight(this.toast().id);\n\t}\n\n\tdeleteToast() {\n\t\tthis._removed.set(true);\n\t\tthis._offsetBeforeRemove.set(this._offset());\n\n\t\tthis._removeHeight(this.toast().id);\n\n\t\tsetTimeout(() => {\n\t\t\tthis._dismiss(this.toast().id);\n\t\t}, this._config.timeBeforeUnmount);\n\t}\n\n\t// If toast's duration changes, it will be out of sync with the\n\t// remainingAtTimeout, so we know we need to restart the timer\n\t// with the new duration\n\n\t// Pause the timer on each hover\n\tpauseTimer() {\n\t\tif (this._lastCloseTimerStartTimeRef < this._closeTimerStartTimeRef) {\n\t\t\t// Get the elapsed time since the timer started\n\t\t\tconst elapsedTime = new Date().getTime() - this._closeTimerStartTimeRef;\n\t\t\tthis._remainingTime = this._remainingTime - elapsedTime;\n\t\t}\n\n\t\tthis._lastCloseTimerStartTimeRef = new Date().getTime();\n\t}\n\n\tstartTimer() {\n\t\tthis._closeTimerStartTimeRef = new Date().getTime();\n\t\t// Let the toast know it has started\n\t\tthis._timeoutId = setTimeout(() => {\n\t\t\tthis.toast().onAutoClose?.(this.toast());\n\t\t\tthis.deleteToast();\n\t\t}, this._remainingTime);\n\t}\n\n\tonPointerDown(event: PointerEvent) {\n\t\tif (this._disabled() || !this.toast().dismissible) return;\n\n\t\tthis._offsetBeforeRemove.set(this._offset());\n\t\tconst target = event.target as HTMLElement;\n\t\t// Ensure we maintain correct pointer capture even when going outside the toast (e.g. when swiping)\n\t\ttarget.setPointerCapture(event.pointerId);\n\t\tif (target.tagName === 'BUTTON') {\n\t\t\treturn;\n\t\t}\n\t\tthis._swiping.set(true);\n\t\tthis._pointerStartRef = { x: event.clientX, y: event.clientY };\n\t}\n\n\tonPointerUp() {\n\t\tif (this._swipeOut() || !this.toast().dismissible) return;\n\n\t\tthis._pointerStartRef = null;\n\t\tconst swipeAmount = Number(\n\t\t\tthis._toastRef().nativeElement.style.getPropertyValue('--swipe-amount').replace('px', '') || 0,\n\t\t);\n\n\t\t// Remove only if threshold is met\n\t\tif (Math.abs(swipeAmount) >= this._config.swipeThreshold) {\n\t\t\tthis._offsetBeforeRemove.set(this._offset());\n\t\t\tthis.toast().onDismiss?.(this.toast());\n\t\t\tthis.deleteToast();\n\t\t\tthis._swipeOut.set(true);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._toastRef().nativeElement.style.setProperty('--swipe-amount', '0px');\n\t\tthis._swiping.set(false);\n\t}\n\n\tonPointerMove(event: PointerEvent) {\n\t\tif (!this._pointerStartRef || !this.toast().dismissible) return;\n\n\t\tconst yPosition = event.clientY - this._pointerStartRef.y;\n\t\tconst xPosition = event.clientX - this._pointerStartRef.x;\n\n\t\tconst clamp = this._coords()[0] === 'top' ? Math.min : Math.max;\n\t\tconst clampedY = clamp(0, yPosition);\n\t\tconst swipeStartThreshold = event.pointerType === 'touch' ? 10 : 2;\n\t\tconst isAllowedToSwipe = Math.abs(clampedY) > swipeStartThreshold;\n\n\t\tif (isAllowedToSwipe) {\n\t\t\tthis._toastRef().nativeElement.style.setProperty('--swipe-amount', `${yPosition}px`);\n\t\t} else if (Math.abs(xPosition) > swipeStartThreshold) {\n\t\t\t// User is swiping in wrong direction, so we disable swipe gesture\n\t\t\t// for the current pointer down interaction\n\t\t\tthis._pointerStartRef = null;\n\t\t}\n\t}\n\n\tonCloseButtonClick() {\n\t\tif (this._disabled() || !this.toast().dismissible) return;\n\t\tthis.deleteToast();\n\t\tthis.toast().onDismiss?.(this.toast());\n\t}\n\n\tonCancelClick() {\n\t\tconst toast = this.toast();\n\t\tif (!toast.dismissible) return;\n\t\tthis.deleteToast();\n\t\tif (toast.cancel?.onClick) {\n\t\t\ttoast.cancel.onClick();\n\t\t}\n\t}\n\n\tonActionClick(event: MouseEvent) {\n\t\tconst toast = this.toast();\n\t\ttoast.action?.onClick(event);\n\t\tif (event.defaultPrevented) return;\n\t\tthis.deleteToast();\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { Position, ToastT } from '../types';\n\n@Pipe({ name: 'toastFilter' })\nexport class ToastFilterPipe implements PipeTransform {\n\ttransform(toasts: ToastT[], index: number, position: Position): ToastT[] {\n\t\treturn toasts.filter((toast) => (!toast.position && index === 0) || toast.position === position);\n\t}\n}\n","import { Directionality } from '@angular/cdk/bidi';\nimport type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\tDOCUMENT,\n\tElementRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\tnumberAttribute,\n\tPLATFORM_ID,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { BrnSonnerIcon } from './brn-icon';\nimport { BrnSonnerLoader } from './brn-loader';\nimport { BrnSonnerToast } from './brn-toast';\nimport { injectBrnSonnerToasterConfig } from './brn-toaster.token';\nimport { ToastFilterPipe } from './pipes/toast-filter.pipe';\nimport { toastState } from './state';\nimport type { Position, Theme, ToasterProps } from './types';\n\n@Component({\n\tselector: 'brn-sonner-toaster',\n\timports: [BrnSonnerToast, ToastFilterPipe, BrnSonnerIcon, BrnSonnerLoader, NgTemplateOutlet],\n\t// eslint-disable-next-line @nx/workspace-avoid-component-styles\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstyleUrl: 'brn-toaster.css',\n\ttemplate: `\n\t\t@if (_toasts().length > 0) {\n\t\t\t<section [attr.aria-label]=\"'Notifications ' + _hotKeyLabel()\" [tabIndex]=\"-1\">\n\t\t\t\t@for (pos of _possiblePositions(); track pos) {\n\t\t\t\t\t<ol\n\t\t\t\t\t\t#listRef\n\t\t\t\t\t\t[tabIndex]=\"-1\"\n\t\t\t\t\t\t[class]=\"userClass()\"\n\t\t\t\t\t\tdata-sonner-toaster\n\t\t\t\t\t\t[attr.data-theme]=\"_actualTheme()\"\n\t\t\t\t\t\t[attr.data-rich-colors]=\"richColors()\"\n\t\t\t\t\t\t[attr.dir]=\"direction()\"\n\t\t\t\t\t\t[attr.data-y-position]=\"pos.split('-')[0]\"\n\t\t\t\t\t\t[attr.data-x-position]=\"pos.split('-')[1]\"\n\t\t\t\t\t\t[style]=\"_toasterStyles()\"\n\t\t\t\t\t\t(blur)=\"handleBlur($event)\"\n\t\t\t\t\t\t(focus)=\"handleFocus($event)\"\n\t\t\t\t\t\t(mouseenter)=\"_expanded.set(true)\"\n\t\t\t\t\t\t(mousemove)=\"_expanded.set(true)\"\n\t\t\t\t\t\t(mouseleave)=\"handleMouseLeave()\"\n\t\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t\t(pointerup)=\"_interacting.set(false)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@for (toast of _toasts() | toastFilter: $index : pos; track toast.id) {\n\t\t\t\t\t\t\t<brn-sonner-toast\n\t\t\t\t\t\t\t\t[index]=\"$index\"\n\t\t\t\t\t\t\t\t[toast]=\"toast\"\n\t\t\t\t\t\t\t\t[invert]=\"invert()\"\n\t\t\t\t\t\t\t\t[visibleToasts]=\"visibleToasts()\"\n\t\t\t\t\t\t\t\t[closeButton]=\"closeButton()\"\n\t\t\t\t\t\t\t\t[interacting]=\"_interacting()\"\n\t\t\t\t\t\t\t\t[position]=\"pos\"\n\t\t\t\t\t\t\t\t[expandByDefault]=\"expand()\"\n\t\t\t\t\t\t\t\t[expanded]=\"_expanded()\"\n\t\t\t\t\t\t\t\t[actionButtonStyle]=\"toastOptions().actionButtonStyle\"\n\t\t\t\t\t\t\t\t[cancelButtonStyle]=\"toastOptions().cancelButtonStyle\"\n\t\t\t\t\t\t\t\t[class]=\"toastOptions().class ?? ''\"\n\t\t\t\t\t\t\t\t[descriptionClass]=\"toastOptions().descriptionClass ?? ''\"\n\t\t\t\t\t\t\t\t[classes]=\"toastOptions().classes ?? {}\"\n\t\t\t\t\t\t\t\t[duration]=\"toastOptions().duration ?? duration()\"\n\t\t\t\t\t\t\t\t[unstyled]=\"toastOptions().unstyled ?? false\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t@if (_loadingIcon(); as loadingIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"loadingIcon\" loading-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-loader [isVisible]=\"toast.type === 'loading'\" loading-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_successIcon(); as successIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"successIcon\" success-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"success\" success-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_errorIcon(); as errorIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"errorIcon\" error-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"error\" error-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_warningIcon(); as warningIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"warningIcon\" warning-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"warning\" warning-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_infoIcon(); as infoIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"infoIcon\" info-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"info\" info-icon />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</brn-sonner-toast>\n\t\t\t\t\t\t}\n\t\t\t\t\t</ol>\n\t\t\t\t}\n\t\t\t</section>\n\t\t}\n\t`,\n})\nexport class BrnSonnerToaster {\n\tprivate readonly _platformId = inject(PLATFORM_ID);\n\tprivate readonly _config = injectBrnSonnerToasterConfig();\n\tprivate readonly _document = inject(DOCUMENT);\n\tprivate readonly _window = this._document.defaultView;\n\tprivate readonly _dir = inject(Directionality);\n\n\tprotected readonly _toasts = toastState.toasts;\n\tprivate readonly _heights = toastState.heights;\n\tprivate readonly _reset = toastState.reset;\n\n\tpublic readonly invert = input<ToasterProps['invert'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly theme = input<ToasterProps['theme']>('light');\n\tpublic readonly position = input<ToasterProps['position']>('bottom-right');\n\tpublic readonly hotKey = input<ToasterProps['hotkey']>(['altKey', 'KeyT']);\n\tpublic readonly richColors = input<ToasterProps['richColors'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly expand = input<ToasterProps['expand'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly duration = input<ToasterProps['duration'], NumberInput>(this._config.toastLifetime, {\n\t\ttransform: numberAttribute,\n\t});\n\tpublic readonly visibleToasts = input<ToasterProps['visibleToasts'], NumberInput>(this._config.visibleToastsAmount, {\n\t\ttransform: numberAttribute,\n\t});\n\tpublic readonly closeButton = input<ToasterProps['closeButton'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly toastOptions = input<ToasterProps['toastOptions']>({});\n\tpublic readonly offset = input<ToasterProps['offset']>(null);\n\tpublic readonly userClass = input('', { alias: 'class' });\n\tpublic readonly style = input<Record<string, string>>({});\n\n\tprotected readonly _possiblePositions = computed(\n\t\t() =>\n\t\t\tArray.from(\n\t\t\t\tnew Set(\n\t\t\t\t\t[\n\t\t\t\t\t\tthis.position(),\n\t\t\t\t\t\t...this._toasts()\n\t\t\t\t\t\t\t.filter((toast) => toast.position)\n\t\t\t\t\t\t\t.map((toast) => toast.position),\n\t\t\t\t\t].filter(Boolean),\n\t\t\t\t),\n\t\t\t) as Position[],\n\t);\n\n\tprotected readonly _expanded = linkedSignal({\n\t\tsource: this._toasts,\n\t\tcomputation: (toasts) => toasts.length < 1,\n\t});\n\tprotected readonly _actualTheme = linkedSignal({\n\t\tsource: this.theme,\n\t\tcomputation: (newTheme) => this.getActualTheme(newTheme),\n\t});\n\tprotected readonly _interacting = signal(false);\n\n\t/** internal **/\n\tpublic readonly direction = this._dir.valueSignal;\n\n\tprivate readonly _listRef = viewChild<ElementRef<HTMLOListElement>>('listRef');\n\tprivate readonly _lastFocusedElementRef = signal<HTMLElement | null>(null);\n\tprivate readonly _isFocusWithinRef = signal(false);\n\n\tprotected readonly _hotKeyLabel = computed(() => this.hotKey().join('+').replace(/Key/g, '').replace(/Digit/g, ''));\n\n\tprotected readonly _toasterStyles = computed(() => ({\n\t\t'--front-toast-height': `${this._heights()[0]?.height}px`,\n\t\t'--offset':\n\t\t\ttypeof this.offset() === 'number' ? `${this.offset()}px` : (this.offset() ?? `${this._config.viewPortOffset}`),\n\t\t'--width': `${this._config.toastWidth}px`,\n\t\t'--gap': `${this._config.gap}px`,\n\t\t...this.style(),\n\t}));\n\n\tprotected readonly _loadingIcon = contentChild('loadingIcon', { read: TemplateRef });\n\tprotected readonly _successIcon = contentChild('successIcon', { read: TemplateRef });\n\tprotected readonly _errorIcon = contentChild('errorIcon', { read: TemplateRef });\n\tprotected readonly _warningIcon = contentChild('warningIcon', { read: TemplateRef });\n\tprotected readonly _infoIcon = contentChild('infoIcon', { read: TemplateRef });\n\n\tconstructor() {\n\t\tthis._reset();\n\n\t\tconst destroyRef = inject(DestroyRef);\n\n\t\tafterNextRender(() => {\n\t\t\tthis._document.addEventListener('keydown', this.handleKeydown);\n\n\t\t\tconst window = this._window;\n\t\t\tif (window) {\n\t\t\t\tthis._window\n\t\t\t\t\t.matchMedia('(prefers-color-scheme: dark)')\n\t\t\t\t\t.addEventListener('change', this.handleThemePreferenceChange);\n\t\t\t}\n\n\t\t\tdestroyRef.onDestroy(() => {\n\t\t\t\tthis._document.removeEventListener('keydown', this.handleKeydown);\n\t\t\t\tif (window) {\n\t\t\t\t\twindow\n\t\t\t\t\t\t.matchMedia('(prefers-color-scheme: dark)')\n\t\t\t\t\t\t.removeEventListener('change', this.handleThemePreferenceChange);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\thandleBlur(event: FocusEvent) {\n\t\tif (this._isFocusWithinRef() && !(event.target as HTMLOListElement).contains(event.relatedTarget as HTMLElement)) {\n\t\t\tthis._isFocusWithinRef.set(false);\n\t\t\tif (this._lastFocusedElementRef()) {\n\t\t\t\tthis._lastFocusedElementRef()?.focus({ preventScroll: true });\n\t\t\t\tthis._lastFocusedElementRef.set(null);\n\t\t\t}\n\t\t}\n\t}\n\n\thandleFocus(event: FocusEvent) {\n\t\tconst isNotDismissible = event.target instanceof HTMLElement && event.target.dataset['dismissible'] === 'false';\n\n\t\tif (isNotDismissible) return;\n\n\t\tif (!this._isFocusWithinRef()) {\n\t\t\tthis._isFocusWithinRef.set(true);\n\t\t\tthis._lastFocusedElementRef.set(event.relatedTarget as HTMLElement);\n\t\t}\n\t}\n\n\thandlePointerDown(event: MouseEvent) {\n\t\tconst isNotDismissible = event.target instanceof HTMLElement && event.target.dataset['dismissible'] === 'false';\n\n\t\tif (isNotDismissible) return;\n\t\tthis._interacting.set(true);\n\t}\n\n\thandleMouseLeave() {\n\t\tif (!this._interacting()) {\n\t\t\tthis._expanded.set(false);\n\t\t}\n\t}\n\n\tprivate readonly handleKeydown = (event: KeyboardEvent) => {\n\t\tconst listRef = this._listRef()?.nativeElement;\n\t\tif (!listRef) return;\n\n\t\tconst isHotkeyPressed = this.hotKey().every((key) => (event as never)[key] || event.code === key);\n\n\t\tif (isHotkeyPressed) {\n\t\t\tthis._expanded.set(true);\n\t\t\tlistRef.focus();\n\t\t}\n\n\t\tif (\n\t\t\tevent.code === 'Escape' &&\n\t\t\t(this._document.activeElement === listRef || listRef.contains(this._document.activeElement))\n\t\t) {\n\t\t\tthis._expanded.set(false);\n\t\t}\n\t};\n\n\tprivate readonly handleThemePreferenceChange = ({ matches }: MediaQueryListEvent) => {\n\t\tif (this.theme() === 'system') {\n\t\t\tthis._actualTheme.set(matches ? 'dark' : 'light');\n\t\t}\n\t};\n\n\tprivate getActualTheme(theme: Theme): Theme {\n\t\tif (theme !== 'system') {\n\t\t\treturn theme;\n\t\t}\n\n\t\tif (isPlatformBrowser(this._platformId) && this._window) {\n\t\t\tconst prefersDark = this._window.matchMedia?.('(prefers-color-scheme: dark)').matches;\n\t\t\treturn prefersDark ? 'dark' : 'light';\n\t\t}\n\n\t\treturn 'light';\n\t}\n}\n","import { BrnSonnerToaster } from './lib/brn-toaster';\n\nexport * from './lib/brn-toaster';\nexport * from './lib/brn-toaster.token';\nexport * from './lib/state';\nexport * from './lib/types';\n\nexport const BrnSonnerImports = [BrnSonnerToaster] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAgDa,aAAa,CAAA;AACT,IAAA,IAAI,GAAG,KAAK,CAAa,SAAS,2EAAC;2HADvC,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,uBAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA1Cf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEW,aAAa,EAAA,UAAA,EAAA,CAAA;kBA7CzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,iBAAiB;oBAC3B,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;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E,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACjMvE,MAAM,gBAAgB,GAAG,CAAC,gBAAgB;;ACPjD;;AAEG;;;;"}
1
+ {"version":3,"file":"spartan-ng-brain-sonner.mjs","sources":["../../../../libs/brain/sonner/src/lib/brn-icon.ts","../../../../libs/brain/sonner/src/lib/brn-loader.ts","../../../../libs/brain/sonner/src/lib/brn-toaster.token.ts","../../../../libs/brain/sonner/src/lib/pipes/as-component.pipe.ts","../../../../libs/brain/sonner/src/lib/pipes/is-string.pipe.ts","../../../../libs/brain/sonner/src/lib/state.ts","../../../../libs/brain/sonner/src/lib/brn-toast.ts","../../../../libs/brain/sonner/src/lib/directives/brn-toast-action.ts","../../../../libs/brain/sonner/src/lib/directives/brn-toast-cancel-action.ts","../../../../libs/brain/sonner/src/lib/pipes/toast-filter.pipe.ts","../../../../libs/brain/sonner/src/lib/brn-toaster.ts","../../../../libs/brain/sonner/src/index.ts","../../../../libs/brain/sonner/src/spartan-ng-brain-sonner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { ToastTypes } from './types';\n\n@Component({\n\tselector: 'brn-sonner-icon',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t@switch (type()) {\n\t\t\t@case ('success') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('error') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('info') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('warning') {\n\t\t\t\t<svg viewBox=\"0 0 64 64\" fill=\"currentColor\" height=\"20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z\"\n\t\t\t\t\t/>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t}\n\t`,\n})\nexport class BrnSonnerIcon {\n\tpublic readonly type = input<ToastTypes>('default');\n}\n","import type { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n@Component({\n\tselector: 'brn-sonner-loader',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<div class=\"sonner-loading-wrapper\" [attr.data-visible]=\"isVisible()\">\n\t\t\t<div class=\"sonner-spinner\">\n\t\t\t\t@for (_ of _bars; track $index) {\n\t\t\t\t\t<div class=\"sonner-loading-bar\"></div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t`,\n})\nexport class BrnSonnerLoader {\n\tpublic readonly isVisible = input.required<boolean, BooleanInput>({ transform: booleanAttribute });\n\tprotected readonly _bars = Array(12).fill(0);\n}\n","import { inject, InjectionToken, type ValueProvider } from '@angular/core';\nimport type { ToastClassnames } from './types';\n\nexport interface BrnSonnerToasterConfig {\n\t/** The maximum number of toasts visible at once */\n\tvisibleToastsAmount: number;\n\t/** The offset from the viewport for the toast container */\n\tviewPortOffset: string;\n\t/** The default lifetime of a toast in milliseconds */\n\ttoastLifetime: number;\n\t/** The width of the toast in pixels */\n\ttoastWidth: number;\n\t/** The gap between toasts in pixels */\n\tgap: number;\n\t/** The threshold in pixels for swipe to dismiss a toast */\n\tswipeThreshold: number;\n\t/** The time in milliseconds before a toast is unmounted */\n\ttimeBeforeUnmount: number;\n}\n\nconst defaultConfig: BrnSonnerToasterConfig = {\n\tvisibleToastsAmount: 3,\n\tviewPortOffset: '32px',\n\ttoastLifetime: 4000,\n\ttoastWidth: 356,\n\tgap: 14,\n\tswipeThreshold: 20,\n\ttimeBeforeUnmount: 200,\n};\n\nconst BrnSonnerToasterConfigToken = new InjectionToken<BrnSonnerToasterConfig>('BrnSonnerToasterConfig');\n\nexport function provideBrnSonnerToasterConfig(config: Partial<BrnSonnerToasterConfig>): ValueProvider {\n\treturn { provide: BrnSonnerToasterConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectBrnSonnerToasterConfig(): BrnSonnerToasterConfig {\n\treturn inject(BrnSonnerToasterConfigToken, { optional: true }) ?? defaultConfig;\n}\n\nexport const defaultClasses: ToastClassnames = {\n\ttoast: '',\n\ttitle: '',\n\tdescription: '',\n\tloader: '',\n\tcloseButton: '',\n\tcancelButton: '',\n\tactionButton: '',\n\taction: '',\n\twarning: '',\n\terror: '',\n\tsuccess: '',\n\tdefault: '',\n\tinfo: '',\n\tloading: '',\n};\n","import { Pipe, PipeTransform, Type } from '@angular/core';\n\n@Pipe({ name: 'asComponent' })\nexport class AsComponentPipe implements PipeTransform {\n\ttransform(value: unknown): Type<unknown> {\n\t\treturn value as Type<unknown>;\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'isString' })\nexport class IsStringPipe implements PipeTransform {\n\ttransform(value: unknown): boolean {\n\t\treturn typeof value === 'string';\n\t}\n}\n","import { signal, type Type } from '@angular/core';\nimport type { ExternalToast, HeightT, PromiseData, PromiseT, ToastT, ToastTypes } from './types';\n\nlet toastsCounter = 0;\n\nfunction createToastState() {\n\tconst toasts = signal<ToastT[]>([]);\n\tconst heights = signal<HeightT[]>([]);\n\n\tfunction addToast(data: ToastT) {\n\t\ttoasts.update((prev) => [data, ...prev]);\n\t}\n\n\tfunction create(\n\t\tdata: ExternalToast & {\n\t\t\tmessage?: string | Type<unknown>;\n\t\t\ttype?: ToastTypes;\n\t\t\tpromise?: PromiseT;\n\t\t},\n\t) {\n\t\tconst { message, ...rest } = data;\n\t\tconst id = typeof data?.id === 'number' || (data.id && data.id?.length > 0) ? data.id : toastsCounter++;\n\n\t\tconst dismissible = data.dismissible ?? true;\n\t\tconst type = data.type ?? 'default';\n\n\t\tconst alreadyExists = toasts().find((toast) => toast.id === id);\n\n\t\tif (alreadyExists) {\n\t\t\ttoasts.update((prev) =>\n\t\t\t\tprev.map((toast) => {\n\t\t\t\t\tif (toast.id === id) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t...toast,\n\t\t\t\t\t\t\t...data,\n\t\t\t\t\t\t\tid,\n\t\t\t\t\t\t\ttitle: message,\n\t\t\t\t\t\t\tdismissible,\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\tupdated: true,\n\t\t\t\t\t\t};\n\t\t\t\t\t} else return { ...toast, updated: false };\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\taddToast({ ...rest, id, title: message, dismissible: dismissible, type });\n\t\t}\n\n\t\treturn id;\n\t}\n\n\tfunction dismiss(id?: number | string) {\n\t\tif (id === undefined) {\n\t\t\ttoasts.set([]);\n\t\t\treturn;\n\t\t}\n\t\ttoasts.update((prev) => prev.filter((toast) => toast.id !== id));\n\n\t\treturn id;\n\t}\n\n\tfunction message(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'default', message });\n\t}\n\n\tfunction error(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'error', message });\n\t}\n\n\tfunction success(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'success', message });\n\t}\n\n\tfunction info(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'info', message });\n\t}\n\n\tfunction warning(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'warning', message });\n\t}\n\n\tfunction loading(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'loading', message });\n\t}\n\n\tfunction promise<ToastData>(promise: PromiseT<ToastData>, data?: PromiseData<ToastData>) {\n\t\tif (!data) return;\n\n\t\tlet id: string | number | undefined = undefined;\n\t\tif (data.loading !== undefined) {\n\t\t\tid = create({\n\t\t\t\t...data,\n\t\t\t\tpromise,\n\t\t\t\ttype: 'loading',\n\t\t\t\tmessage: data.loading,\n\t\t\t});\n\t\t}\n\n\t\tconst p = promise instanceof Promise ? promise : promise();\n\n\t\tlet shouldDismiss = id !== undefined;\n\n\t\tp.then((response) => {\n\t\t\t// @ts-expect-error: Incorrect response type\n\t\t\tif (response && typeof response.ok === 'boolean' && !response.ok) {\n\t\t\t\tshouldDismiss = false;\n\n\t\t\t\tconst message =\n\t\t\t\t\ttypeof data.error === 'function'\n\t\t\t\t\t\t? // @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\t\tdata.error(`HTTP error! status: ${response.status}`)\n\t\t\t\t\t\t: data.error;\n\t\t\t\tcreate({ id, type: 'error', message });\n\t\t\t} else if (data.success !== undefined) {\n\t\t\t\tshouldDismiss = false;\n\n\t\t\t\tconst message =\n\t\t\t\t\ttypeof data.success === 'function'\n\t\t\t\t\t\t? // @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\t\tdata.success(response)\n\t\t\t\t\t\t: data.success;\n\t\t\t\tcreate({ id, type: 'success', message });\n\t\t\t}\n\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tif (data.error !== undefined) {\n\t\t\t\t\tshouldDismiss = false;\n\t\t\t\t\tconst message =\n\t\t\t\t\t\t// @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\ttypeof data.error === 'function' ? data.error(error) : data.error;\n\t\t\t\t\tcreate({ id, type: 'error', message });\n\t\t\t\t}\n\t\t\t})\n\t\t\t.finally(() => {\n\t\t\t\tif (shouldDismiss) {\n\t\t\t\t\t// Toast is still in load state (and will be indefinitely — dismiss it)\n\t\t\t\t\tdismiss(id);\n\t\t\t\t\tid = undefined;\n\t\t\t\t}\n\n\t\t\t\tdata.finally?.();\n\t\t\t});\n\n\t\treturn id;\n\t}\n\n\tfunction custom<T>(component: Type<T>, data?: ExternalToast) {\n\t\tconst id = data?.id ?? toastsCounter++;\n\t\tcreate({ component, id, ...data });\n\n\t\treturn id;\n\t}\n\n\tfunction removeHeight(id: number | string) {\n\t\theights.update((prev) => prev.filter((height) => height.toastId !== id));\n\t}\n\n\tfunction addHeight(height: HeightT) {\n\t\theights.update((prev) => [height, ...prev].sort(sortHeights));\n\t}\n\n\tconst sortHeights = (a: HeightT, b: HeightT) =>\n\t\ttoasts().findIndex((t) => t.id === a.toastId) - toasts().findIndex((t) => t.id === b.toastId);\n\n\tfunction reset() {\n\t\ttoasts.set([]);\n\t\theights.set([]);\n\t}\n\n\treturn {\n\t\t//methods\n\t\tcreate,\n\t\taddToast,\n\t\tdismiss,\n\t\tmessage,\n\t\terror,\n\t\tsuccess,\n\t\tinfo,\n\t\twarning,\n\t\tloading,\n\t\tpromise,\n\t\tcustom,\n\t\tremoveHeight,\n\t\taddHeight,\n\t\treset,\n\t\t// signals\n\t\ttoasts: toasts.asReadonly(),\n\t\theights: heights.asReadonly(),\n\t};\n}\n\nexport const toastState = createToastState();\n\n// bind this to the toast function\nfunction toastFunction(message: string | Type<unknown>, data?: ExternalToast) {\n\treturn toastState.create({\n\t\tmessage,\n\t\t...data,\n\t});\n}\n\nconst basicToast = toastFunction;\n\nexport const toast = Object.assign(basicToast, {\n\tsuccess: toastState.success,\n\tinfo: toastState.info,\n\twarning: toastState.warning,\n\terror: toastState.error,\n\tcustom: toastState.custom,\n\tmessage: toastState.message,\n\tpromise: toastState.promise,\n\tdismiss: toastState.dismiss,\n\tloading: toastState.loading,\n});\n","import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\ttype AfterViewInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\teffect,\n\tElementRef,\n\tinput,\n\tlinkedSignal,\n\ttype OnDestroy,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport clsx from 'clsx';\nimport { defaultClasses, injectBrnSonnerToasterConfig } from './brn-toaster.token';\nimport { BrnToastAction } from './directives/brn-toast-action';\nimport { BrnToastCancelAction } from './directives/brn-toast-cancel-action';\nimport { AsComponentPipe } from './pipes/as-component.pipe';\nimport { IsStringPipe } from './pipes/is-string.pipe';\nimport { toastState } from './state';\nimport type { ToastAction, ToastProps, ToastT } from './types';\n\n@Component({\n\tselector: 'brn-sonner-toast',\n\timports: [NgComponentOutlet, IsStringPipe, AsComponentPipe, NgTemplateOutlet],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<li\n\t\t\t#toastRef\n\t\t\tdata-sonner-toast\n\t\t\t[attr.aria-live]=\"toast().important ? 'assertive' : 'polite'\"\n\t\t\taria-atomic=\"true\"\n\t\t\trole=\"status\"\n\t\t\ttabindex=\"0\"\n\t\t\t[class]=\"_toastClasses()\"\n\t\t\t[attr.data-styled]=\"!(toast().component || toast().unstyled || unstyled())\"\n\t\t\t[attr.data-mounted]=\"_mounted()\"\n\t\t\t[attr.data-promise]=\"!!toast().promise\"\n\t\t\t[attr.data-removed]=\"_removed()\"\n\t\t\t[attr.data-visible]=\"_isVisible()\"\n\t\t\t[attr.data-y-position]=\"_coords()[0]\"\n\t\t\t[attr.data-x-position]=\"_coords()[1]\"\n\t\t\t[attr.data-index]=\"index()\"\n\t\t\t[attr.data-front]=\"_isFront()\"\n\t\t\t[attr.data-swiping]=\"_swiping()\"\n\t\t\t[attr.data-dismissible]=\"toast().dismissible\"\n\t\t\t[attr.data-type]=\"_toastType()\"\n\t\t\t[attr.data-invert]=\"_invert()\"\n\t\t\t[attr.data-swipe-out]=\"_swipeOut()\"\n\t\t\t[attr.data-expanded]=\"expanded() || (expandByDefault() && _mounted())\"\n\t\t\t[style]=\"_toastStyle()\"\n\t\t\t(pointerdown)=\"onPointerDown($event)\"\n\t\t\t(pointerup)=\"onPointerUp()\"\n\t\t\t(pointermove)=\"onPointerMove($event)\"\n\t\t>\n\t\t\t@if (_closeButton() && !toast().component) {\n\t\t\t\t<button\n\t\t\t\t\taria-label=\"Close toast\"\n\t\t\t\t\t[attr.data-disabled]=\"_disabled()\"\n\t\t\t\t\tdata-close-button\n\t\t\t\t\t(click)=\"onCloseButtonClick()\"\n\t\t\t\t\t[class]=\"_closeButtonClasses()\"\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\twidth=\"12\"\n\t\t\t\t\t\theight=\"12\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tstroke-width=\"1.5\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n\t\t\t\t\t\t<line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t}\n\n\t\t\t@if (toast().component) {\n\t\t\t\t<ng-container *ngComponentOutlet=\"toast().component | asComponent; inputs: toast().componentProps\" />\n\t\t\t} @else {\n\t\t\t\t@if (_toastType() !== 'default' || toast().icon || toast().promise) {\n\t\t\t\t\t<div data-icon>\n\t\t\t\t\t\t@if (_toastType() === 'loading' && !toast().icon) {\n\t\t\t\t\t\t\t<ng-content select=\"[loading-icon]\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (toast().icon) {\n\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"toast().icon | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t@switch (_toastType()) {\n\t\t\t\t\t\t\t\t@case ('success') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[success-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('error') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[error-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('warning') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[warning-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('info') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[info-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t<div data-content>\n\t\t\t\t\t@if (toast().title; as title) {\n\t\t\t\t\t\t<div data-title [class]=\"_titleClasses()\">\n\t\t\t\t\t\t\t@if (title | isString) {\n\t\t\t\t\t\t\t\t{{ toast().title }}\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"title | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t\t@if (toast().description; as description) {\n\t\t\t\t\t\t<div data-description [class]=\"_toastDescriptionClasses()\">\n\t\t\t\t\t\t\t@if (description | isString) {\n\t\t\t\t\t\t\t\t{{ toast().description }}\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"description | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t@if (toast().cancel; as cancel) {\n\t\t\t\t\t@if (cancelActionTemplate(); as cancelAction) {\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"\n\t\t\t\t\t\t\t\tcancelAction.templateRef;\n\t\t\t\t\t\t\t\tcontext: { $implicit: _wrappedCancelAction(), toast: toast() }\n\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tdata-button\n\t\t\t\t\t\t\tdata-cancel\n\t\t\t\t\t\t\t[style]=\"cancelButtonStyle() ?? toast().cancelButtonStyle\"\n\t\t\t\t\t\t\t[class]=\"_cancelButtonClasses()\"\n\t\t\t\t\t\t\t(click)=\"onCancelClick($event)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{{ cancel.label }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@if (toast().action; as action) {\n\t\t\t\t\t@if (actionTemplate(); as actionTemplate) {\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"actionTemplate.templateRef; context: { $implicit: _wrappedAction(), toast: toast() }\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tdata-button\n\t\t\t\t\t\t\t[style]=\"actionButtonStyle() ?? toast().actionButtonStyle\"\n\t\t\t\t\t\t\t[class]=\"_actionButtonClasses()\"\n\t\t\t\t\t\t\t(click)=\"onActionClick($event)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{{ action.label }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t</li>\n\t`,\n})\nexport class BrnSonnerToast implements AfterViewInit, OnDestroy {\n\tprivate readonly _config = injectBrnSonnerToasterConfig();\n\n\tprotected readonly _toasts = computed(() => toastState.toasts().filter((t) => t.position === this.position()));\n\tprotected readonly _heights = computed(() => toastState.heights().filter((h) => h.position === this.position()));\n\tprotected readonly _removeHeight = toastState.removeHeight;\n\tprotected readonly _addHeight = toastState.addHeight;\n\tprotected readonly _dismiss = toastState.dismiss;\n\n\tpublic readonly toast = input.required<ToastProps['toast']>();\n\tpublic readonly index = input.required<ToastProps['index']>();\n\tpublic readonly expanded = input.required<ToastProps['expanded']>();\n\tpublic readonly invert = input.required<ToastProps['invert']>();\n\tpublic readonly position = input.required<ToastProps['position']>();\n\tpublic readonly visibleToasts = input.required<ToastProps['visibleToasts']>();\n\tpublic readonly expandByDefault = input.required<ToastProps['expandByDefault']>();\n\tpublic readonly closeButton = input.required<ToastProps['closeButton']>();\n\tpublic readonly interacting = input.required<ToastProps['interacting']>();\n\tpublic readonly cancelButtonStyle = input<ToastProps['cancelButtonStyle']>();\n\tpublic readonly actionButtonStyle = input<ToastProps['actionButtonStyle']>();\n\tpublic readonly duration = input<ToastProps['duration']>(this._config.toastLifetime);\n\tpublic readonly descriptionClass = input<ToastProps['descriptionClass']>('');\n\tpublic readonly classes = input<ToastProps['classes']>({});\n\tpublic readonly unstyled = input<ToastProps['unstyled']>(false);\n\tpublic readonly userClass = input('', { alias: 'class' });\n\tpublic readonly style = input<Record<string, string>>({});\n\tpublic readonly actionTemplate = input<BrnToastAction>();\n\tpublic readonly cancelActionTemplate = input<BrnToastCancelAction>();\n\n\tprotected readonly _wrappedAction = computed<ToastAction | null>(() => {\n\t\tconst action = this.toast().action;\n\t\treturn action ? this.wrapAction(action) : null;\n\t});\n\tprotected readonly _wrappedCancelAction = computed<ToastAction | null>(() => {\n\t\tconst cancelAction = this.toast().cancel;\n\t\treturn cancelAction ? this.wrapCancelAction(cancelAction) : null;\n\t});\n\n\tprotected readonly _mounted = signal(false);\n\tprotected readonly _removed = signal(false);\n\tprotected readonly _swiping = signal(false);\n\tprotected readonly _swipeOut = signal(false);\n\tprivate readonly _offsetBeforeRemove = signal(0);\n\tprivate readonly _initialHeight = signal(0);\n\n\tprivate readonly _toastRef = viewChild.required<ElementRef<HTMLLIElement>>('toastRef');\n\n\tprotected readonly _classes = computed(() => ({\n\t\t...defaultClasses,\n\t\t...this.classes(),\n\t}));\n\n\tprotected readonly _isFront = computed(() => this.index() === 0);\n\tprotected readonly _isVisible = computed(() => this.index() + 1 <= this.visibleToasts());\n\tprotected readonly _toastType = computed(() => this.toast().type ?? 'default');\n\tprivate readonly _toastClass = computed(() => this.toast().class ?? '');\n\tprivate readonly _toastPosition = computed(() => this.toast().position ?? this.position());\n\tprotected readonly _toastDescriptionClass = computed(() => this.toast().descriptionClass ?? '');\n\n\tprivate readonly _heightIndex = computed(() =>\n\t\tthis._heights().findIndex((height) => height.toastId === this.toast().id),\n\t);\n\n\tprivate readonly _offset = linkedSignal({\n\t\tsource: () => ({\n\t\t\theightIndex: this._heightIndex(),\n\t\t\ttoastsHeightBefore: this._toastsHeightBefore(),\n\t\t}),\n\t\tcomputation: ({ heightIndex, toastsHeightBefore }) =>\n\t\t\tMath.round(heightIndex * this._config.gap + toastsHeightBefore),\n\t});\n\n\tprivate _closeTimerStartTimeRef = 0;\n\tprivate _lastCloseTimerStartTimeRef = 0;\n\tprivate _pointerStartRef: { x: number; y: number } | null = null;\n\n\tprotected readonly _coords = computed(() => this._toastPosition().split('-'));\n\tprivate readonly _toastsHeightBefore = computed(() =>\n\t\tthis._heights().reduce((prev, curr, reducerIndex) => {\n\t\t\tif (reducerIndex >= this._heightIndex()) return prev;\n\t\t\treturn prev + curr.height;\n\t\t}, 0),\n\t);\n\tprotected readonly _invert = computed(() => this.toast().invert ?? this.invert());\n\tprotected readonly _closeButton = computed(() => this.toast().closeButton ?? this.closeButton());\n\tprotected readonly _disabled = computed(() => this._toastType() === 'loading');\n\n\tprivate _timeoutId: ReturnType<typeof setTimeout> | undefined;\n\tprivate _remainingTime = 0;\n\n\tprivate readonly _isPromiseLoadingOrInfiniteDuration = computed(\n\t\t() =>\n\t\t\t(this.toast().promise && this._toastType() === 'loading') || this.toast().duration === Number.POSITIVE_INFINITY,\n\t);\n\n\tprotected readonly _toastClasses = computed(() =>\n\t\tclsx(\n\t\t\tthis.userClass(),\n\t\t\tthis._toastClass(),\n\t\t\tthis._classes().toast,\n\t\t\tthis.toast().classes?.toast,\n\t\t\tthis._classes()[this._toastType()],\n\t\t\tthis.toast().classes?.[this._toastType()],\n\t\t),\n\t);\n\tprotected readonly _toastStyle = computed(() => ({\n\t\t'--index': `${this.index()}`,\n\t\t'--toasts-before': `${this.index()}`,\n\t\t'--z-index': `${this._toasts().length - this.index()}`,\n\t\t'--offset': `${this._removed() ? this._offsetBeforeRemove() : this._offset()}px`,\n\t\t'--initial-height': this.expandByDefault() ? 'auto' : `${this._initialHeight()}px`,\n\t\t...this.style(),\n\t}));\n\tprotected readonly _actionButtonClasses = computed(() =>\n\t\tclsx(this._classes().actionButton, this.toast().classes?.actionButton),\n\t);\n\tprotected readonly _cancelButtonClasses = computed(() =>\n\t\tclsx(this._classes().cancelButton, this.toast().classes?.cancelButton),\n\t);\n\tprotected readonly _toastDescriptionClasses = computed(() =>\n\t\tclsx(\n\t\t\tthis.descriptionClass(),\n\t\t\tthis._toastDescriptionClass(),\n\t\t\tthis._classes().description,\n\t\t\tthis.toast().classes?.description,\n\t\t),\n\t);\n\tprotected readonly _titleClasses = computed(() => clsx(this._classes().title, this.toast().classes?.title));\n\tprotected readonly _closeButtonClasses = computed(() =>\n\t\tclsx(this._classes().closeButton, this.toast().classes?.closeButton),\n\t);\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tif (this.toast().updated) {\n\t\t\t\t// if the toast has been updated after the initial render,\n\t\t\t\t// we want to reset the timer and set the remaining time to the\n\t\t\t\t// new duration\n\t\t\t\tclearTimeout(this._timeoutId);\n\t\t\t\tthis._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;\n\t\t\t\tthis.startTimer();\n\t\t\t}\n\t\t});\n\n\t\tafterRenderEffect((onCleanup) => {\n\t\t\tif (!this._isPromiseLoadingOrInfiniteDuration()) {\n\t\t\t\tif (this.expanded() || this.interacting()) {\n\t\t\t\t\tthis.pauseTimer();\n\t\t\t\t} else {\n\t\t\t\t\tthis.startTimer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tonCleanup(() => clearTimeout(this._timeoutId));\n\t\t});\n\n\t\teffect(() => {\n\t\t\tif (this.toast().delete) {\n\t\t\t\tthis.deleteToast();\n\t\t\t}\n\t\t});\n\t}\n\n\tngAfterViewInit() {\n\t\tthis._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;\n\t\tthis._mounted.set(true);\n\t\tconst height = this._toastRef().nativeElement.getBoundingClientRect().height;\n\t\tthis._initialHeight.set(height);\n\t\tthis._addHeight({ toastId: this.toast().id, height, position: this._toastPosition() });\n\t}\n\n\tngOnDestroy() {\n\t\tclearTimeout(this._timeoutId);\n\t\tthis._removeHeight(this.toast().id);\n\t}\n\n\tdeleteToast() {\n\t\tthis._removed.set(true);\n\t\tthis._offsetBeforeRemove.set(this._offset());\n\n\t\tthis._removeHeight(this.toast().id);\n\n\t\tsetTimeout(() => {\n\t\t\tthis._dismiss(this.toast().id);\n\t\t}, this._config.timeBeforeUnmount);\n\t}\n\n\t// If toast's duration changes, it will be out of sync with the\n\t// remainingAtTimeout, so we know we need to restart the timer\n\t// with the new duration\n\n\t// Pause the timer on each hover\n\tpauseTimer() {\n\t\tif (this._lastCloseTimerStartTimeRef < this._closeTimerStartTimeRef) {\n\t\t\t// Get the elapsed time since the timer started\n\t\t\tconst elapsedTime = new Date().getTime() - this._closeTimerStartTimeRef;\n\t\t\tthis._remainingTime = this._remainingTime - elapsedTime;\n\t\t}\n\n\t\tthis._lastCloseTimerStartTimeRef = new Date().getTime();\n\t}\n\n\tstartTimer() {\n\t\tthis._closeTimerStartTimeRef = new Date().getTime();\n\t\t// Let the toast know it has started\n\t\tthis._timeoutId = setTimeout(() => {\n\t\t\tthis.toast().onAutoClose?.(this.toast());\n\t\t\tthis.deleteToast();\n\t\t}, this._remainingTime);\n\t}\n\n\tonPointerDown(event: PointerEvent) {\n\t\tif (this._disabled() || !this.toast().dismissible) return;\n\n\t\tthis._offsetBeforeRemove.set(this._offset());\n\t\tconst target = event.target as HTMLElement;\n\t\t// Ensure we maintain correct pointer capture even when going outside the toast (e.g. when swiping)\n\t\ttarget.setPointerCapture(event.pointerId);\n\t\tif (target.tagName === 'BUTTON') {\n\t\t\treturn;\n\t\t}\n\t\tthis._swiping.set(true);\n\t\tthis._pointerStartRef = { x: event.clientX, y: event.clientY };\n\t}\n\n\tonPointerUp() {\n\t\tif (this._swipeOut() || !this.toast().dismissible) return;\n\n\t\tthis._pointerStartRef = null;\n\t\tconst swipeAmount = Number(\n\t\t\tthis._toastRef().nativeElement.style.getPropertyValue('--swipe-amount').replace('px', '') || 0,\n\t\t);\n\n\t\t// Remove only if threshold is met\n\t\tif (Math.abs(swipeAmount) >= this._config.swipeThreshold) {\n\t\t\tthis._offsetBeforeRemove.set(this._offset());\n\t\t\tthis.toast().onDismiss?.(this.toast());\n\t\t\tthis.deleteToast();\n\t\t\tthis._swipeOut.set(true);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._toastRef().nativeElement.style.setProperty('--swipe-amount', '0px');\n\t\tthis._swiping.set(false);\n\t}\n\n\tonPointerMove(event: PointerEvent) {\n\t\tif (!this._pointerStartRef || !this.toast().dismissible) return;\n\n\t\tconst yPosition = event.clientY - this._pointerStartRef.y;\n\t\tconst xPosition = event.clientX - this._pointerStartRef.x;\n\n\t\tconst clamp = this._coords()[0] === 'top' ? Math.min : Math.max;\n\t\tconst clampedY = clamp(0, yPosition);\n\t\tconst swipeStartThreshold = event.pointerType === 'touch' ? 10 : 2;\n\t\tconst isAllowedToSwipe = Math.abs(clampedY) > swipeStartThreshold;\n\n\t\tif (isAllowedToSwipe) {\n\t\t\tthis._toastRef().nativeElement.style.setProperty('--swipe-amount', `${yPosition}px`);\n\t\t} else if (Math.abs(xPosition) > swipeStartThreshold) {\n\t\t\t// User is swiping in wrong direction, so we disable swipe gesture\n\t\t\t// for the current pointer down interaction\n\t\t\tthis._pointerStartRef = null;\n\t\t}\n\t}\n\n\tonCloseButtonClick() {\n\t\tif (this._disabled() || !this.toast().dismissible) return;\n\t\tthis.deleteToast();\n\t\tthis.toast().onDismiss?.(this.toast());\n\t}\n\n\tonCancelClick(event: MouseEvent) {\n\t\tconst toast = this.toast();\n\t\tif (!toast.dismissible) return;\n\t\tthis.deleteToast();\n\t\ttoast.cancel?.onClick?.(event);\n\t}\n\n\tonActionClick(event: MouseEvent) {\n\t\tconst toast = this.toast();\n\t\ttoast.action?.onClick?.(event);\n\t\tif (event.defaultPrevented) return;\n\t\tthis.deleteToast();\n\t}\n\n\twrapAction(source: NonNullable<ToastT['action']>): ToastAction {\n\t\treturn {\n\t\t\t...source,\n\t\t\tonClick: (event: MouseEvent) => {\n\t\t\t\tthis.onActionClick(event);\n\t\t\t},\n\t\t};\n\t}\n\n\twrapCancelAction(source: NonNullable<ToastT['cancel']>): ToastAction {\n\t\treturn {\n\t\t\t...source,\n\t\t\tonClick: (event: MouseEvent) => {\n\t\t\t\tthis.onCancelClick(event);\n\t\t\t},\n\t\t};\n\t}\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { ToastActionTemplateContext } from '../types';\n\n/**\n * Utils directory to typecheck the context of the templateRef\n * {@link ToastActionTemplateContext} context for content\n */\n@Directive({\n\tselector: '[brnToastAction]',\n\texportAs: 'toastAction',\n})\nexport class BrnToastAction {\n\tpublic readonly templateRef = inject<TemplateRef<ToastActionTemplateContext>>(TemplateRef);\n\tstatic ngTemplateContextGuard(_directive: BrnToastAction, context: unknown): context is ToastActionTemplateContext {\n\t\treturn true;\n\t}\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { ToastActionTemplateContext } from '../types';\n\n/**\n * Utils directory to typecheck the context of the templateRef\n * {@link ToastActionTemplateContext} context for content\n */\n@Directive({\n\tselector: '[brnToastCancelAction]',\n\texportAs: 'toastCancelAction',\n})\nexport class BrnToastCancelAction {\n\tpublic readonly templateRef = inject<TemplateRef<ToastActionTemplateContext>>(TemplateRef);\n\tstatic ngTemplateContextGuard(\n\t\t_directive: BrnToastCancelAction,\n\t\tcontext: unknown,\n\t): context is ToastActionTemplateContext {\n\t\treturn true;\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { Position, ToastT } from '../types';\n\n@Pipe({ name: 'toastFilter' })\nexport class ToastFilterPipe implements PipeTransform {\n\ttransform(toasts: ToastT[], index: number, position: Position): ToastT[] {\n\t\treturn toasts.filter((toast) => (!toast.position && index === 0) || toast.position === position);\n\t}\n}\n","import { Directionality } from '@angular/cdk/bidi';\nimport type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\tDOCUMENT,\n\tElementRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\tnumberAttribute,\n\tPLATFORM_ID,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { BrnSonnerIcon } from './brn-icon';\nimport { BrnSonnerLoader } from './brn-loader';\nimport { BrnSonnerToast } from './brn-toast';\nimport { injectBrnSonnerToasterConfig } from './brn-toaster.token';\nimport { BrnToastAction } from './directives/brn-toast-action';\nimport { BrnToastCancelAction } from './directives/brn-toast-cancel-action';\nimport { ToastFilterPipe } from './pipes/toast-filter.pipe';\nimport { toastState } from './state';\nimport type { Position, Theme, ToasterProps } from './types';\n\n@Component({\n\tselector: 'brn-sonner-toaster',\n\timports: [BrnSonnerToast, ToastFilterPipe, BrnSonnerIcon, BrnSonnerLoader, NgTemplateOutlet],\n\t// eslint-disable-next-line @nx/workspace-avoid-component-styles\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstyleUrl: 'brn-toaster.css',\n\ttemplate: `\n\t\t@if (_toasts().length > 0) {\n\t\t\t<section [attr.aria-label]=\"'Notifications ' + _hotKeyLabel()\" [tabIndex]=\"-1\">\n\t\t\t\t@for (pos of _possiblePositions(); track pos) {\n\t\t\t\t\t<ol\n\t\t\t\t\t\t#listRef\n\t\t\t\t\t\t[tabIndex]=\"-1\"\n\t\t\t\t\t\t[class]=\"userClass()\"\n\t\t\t\t\t\tdata-sonner-toaster\n\t\t\t\t\t\t[attr.data-theme]=\"_actualTheme()\"\n\t\t\t\t\t\t[attr.data-rich-colors]=\"richColors()\"\n\t\t\t\t\t\t[attr.dir]=\"direction()\"\n\t\t\t\t\t\t[attr.data-y-position]=\"pos.split('-')[0]\"\n\t\t\t\t\t\t[attr.data-x-position]=\"pos.split('-')[1]\"\n\t\t\t\t\t\t[style]=\"_toasterStyles()\"\n\t\t\t\t\t\t(blur)=\"handleBlur($event)\"\n\t\t\t\t\t\t(focus)=\"handleFocus($event)\"\n\t\t\t\t\t\t(mouseenter)=\"_expanded.set(true)\"\n\t\t\t\t\t\t(mousemove)=\"_expanded.set(true)\"\n\t\t\t\t\t\t(mouseleave)=\"handleMouseLeave()\"\n\t\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t\t(pointerup)=\"_interacting.set(false)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@for (toast of _toasts() | toastFilter: $index : pos; track toast.id) {\n\t\t\t\t\t\t\t<brn-sonner-toast\n\t\t\t\t\t\t\t\t[index]=\"$index\"\n\t\t\t\t\t\t\t\t[toast]=\"toast\"\n\t\t\t\t\t\t\t\t[invert]=\"invert()\"\n\t\t\t\t\t\t\t\t[visibleToasts]=\"visibleToasts()\"\n\t\t\t\t\t\t\t\t[closeButton]=\"closeButton()\"\n\t\t\t\t\t\t\t\t[interacting]=\"_interacting()\"\n\t\t\t\t\t\t\t\t[position]=\"pos\"\n\t\t\t\t\t\t\t\t[expandByDefault]=\"expand()\"\n\t\t\t\t\t\t\t\t[expanded]=\"_expanded()\"\n\t\t\t\t\t\t\t\t[actionButtonStyle]=\"toastOptions().actionButtonStyle\"\n\t\t\t\t\t\t\t\t[cancelButtonStyle]=\"toastOptions().cancelButtonStyle\"\n\t\t\t\t\t\t\t\t[class]=\"toastOptions().class ?? ''\"\n\t\t\t\t\t\t\t\t[descriptionClass]=\"toastOptions().descriptionClass ?? ''\"\n\t\t\t\t\t\t\t\t[classes]=\"toastOptions().classes ?? {}\"\n\t\t\t\t\t\t\t\t[duration]=\"toastOptions().duration ?? duration()\"\n\t\t\t\t\t\t\t\t[unstyled]=\"toastOptions().unstyled ?? false\"\n\t\t\t\t\t\t\t\t[actionTemplate]=\"_action()\"\n\t\t\t\t\t\t\t\t[cancelActionTemplate]=\"_cancelAction()\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t@if (_loadingIcon(); as loadingIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"loadingIcon\" loading-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-loader [isVisible]=\"toast.type === 'loading'\" loading-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_successIcon(); as successIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"successIcon\" success-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"success\" success-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_errorIcon(); as errorIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"errorIcon\" error-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"error\" error-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_warningIcon(); as warningIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"warningIcon\" warning-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"warning\" warning-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_infoIcon(); as infoIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"infoIcon\" info-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"info\" info-icon />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</brn-sonner-toast>\n\t\t\t\t\t\t}\n\t\t\t\t\t</ol>\n\t\t\t\t}\n\t\t\t</section>\n\t\t}\n\t`,\n})\nexport class BrnSonnerToaster {\n\tprivate readonly _platformId = inject(PLATFORM_ID);\n\tprivate readonly _config = injectBrnSonnerToasterConfig();\n\tprivate readonly _document = inject(DOCUMENT);\n\tprivate readonly _window = this._document.defaultView;\n\tprivate readonly _dir = inject(Directionality);\n\n\tprotected readonly _toasts = toastState.toasts;\n\tprivate readonly _heights = toastState.heights;\n\tprivate readonly _reset = toastState.reset;\n\n\tpublic readonly invert = input<ToasterProps['invert'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly theme = input<ToasterProps['theme']>('light');\n\tpublic readonly position = input<ToasterProps['position']>('bottom-right');\n\tpublic readonly hotKey = input<ToasterProps['hotkey']>(['altKey', 'KeyT']);\n\tpublic readonly richColors = input<ToasterProps['richColors'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly expand = input<ToasterProps['expand'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly duration = input<ToasterProps['duration'], NumberInput>(this._config.toastLifetime, {\n\t\ttransform: numberAttribute,\n\t});\n\tpublic readonly visibleToasts = input<ToasterProps['visibleToasts'], NumberInput>(this._config.visibleToastsAmount, {\n\t\ttransform: numberAttribute,\n\t});\n\tpublic readonly closeButton = input<ToasterProps['closeButton'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly toastOptions = input<ToasterProps['toastOptions']>({});\n\tpublic readonly offset = input<ToasterProps['offset']>(null);\n\tpublic readonly userClass = input('', { alias: 'class' });\n\tpublic readonly style = input<Record<string, string>>({});\n\n\tprotected readonly _possiblePositions = computed(\n\t\t() =>\n\t\t\tArray.from(\n\t\t\t\tnew Set(\n\t\t\t\t\t[\n\t\t\t\t\t\tthis.position(),\n\t\t\t\t\t\t...this._toasts()\n\t\t\t\t\t\t\t.filter((toast) => toast.position)\n\t\t\t\t\t\t\t.map((toast) => toast.position),\n\t\t\t\t\t].filter(Boolean),\n\t\t\t\t),\n\t\t\t) as Position[],\n\t);\n\n\tprotected readonly _expanded = linkedSignal({\n\t\tsource: this._toasts,\n\t\tcomputation: (toasts) => toasts.length < 1,\n\t});\n\tprotected readonly _actualTheme = linkedSignal({\n\t\tsource: this.theme,\n\t\tcomputation: (newTheme) => this.getActualTheme(newTheme),\n\t});\n\tprotected readonly _interacting = signal(false);\n\n\t/** internal **/\n\tpublic readonly direction = this._dir.valueSignal;\n\n\tprivate readonly _listRef = viewChild<ElementRef<HTMLOListElement>>('listRef');\n\tprivate readonly _lastFocusedElementRef = signal<HTMLElement | null>(null);\n\tprivate readonly _isFocusWithinRef = signal(false);\n\n\tprotected readonly _hotKeyLabel = computed(() => this.hotKey().join('+').replace(/Key/g, '').replace(/Digit/g, ''));\n\n\tprotected readonly _toasterStyles = computed(() => ({\n\t\t'--front-toast-height': `${this._heights()[0]?.height}px`,\n\t\t'--offset':\n\t\t\ttypeof this.offset() === 'number' ? `${this.offset()}px` : (this.offset() ?? `${this._config.viewPortOffset}`),\n\t\t'--width': `${this._config.toastWidth}px`,\n\t\t'--gap': `${this._config.gap}px`,\n\t\t...this.style(),\n\t}));\n\n\tprotected readonly _loadingIcon = contentChild('loadingIcon', { read: TemplateRef });\n\tprotected readonly _successIcon = contentChild('successIcon', { read: TemplateRef });\n\tprotected readonly _errorIcon = contentChild('errorIcon', { read: TemplateRef });\n\tprotected readonly _warningIcon = contentChild('warningIcon', { read: TemplateRef });\n\tprotected readonly _infoIcon = contentChild('infoIcon', { read: TemplateRef });\n\tprotected readonly _action = contentChild(BrnToastAction);\n\tprotected readonly _cancelAction = contentChild(BrnToastCancelAction);\n\n\tconstructor() {\n\t\tthis._reset();\n\n\t\tconst destroyRef = inject(DestroyRef);\n\n\t\tafterNextRender(() => {\n\t\t\tthis._document.addEventListener('keydown', this.handleKeydown);\n\n\t\t\tconst window = this._window;\n\t\t\tif (window) {\n\t\t\t\tthis._window\n\t\t\t\t\t.matchMedia('(prefers-color-scheme: dark)')\n\t\t\t\t\t.addEventListener('change', this.handleThemePreferenceChange);\n\t\t\t}\n\n\t\t\tdestroyRef.onDestroy(() => {\n\t\t\t\tthis._document.removeEventListener('keydown', this.handleKeydown);\n\t\t\t\tif (window) {\n\t\t\t\t\twindow\n\t\t\t\t\t\t.matchMedia('(prefers-color-scheme: dark)')\n\t\t\t\t\t\t.removeEventListener('change', this.handleThemePreferenceChange);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\thandleBlur(event: FocusEvent) {\n\t\tif (this._isFocusWithinRef() && !(event.target as HTMLOListElement).contains(event.relatedTarget as HTMLElement)) {\n\t\t\tthis._isFocusWithinRef.set(false);\n\t\t\tif (this._lastFocusedElementRef()) {\n\t\t\t\tthis._lastFocusedElementRef()?.focus({ preventScroll: true });\n\t\t\t\tthis._lastFocusedElementRef.set(null);\n\t\t\t}\n\t\t}\n\t}\n\n\thandleFocus(event: FocusEvent) {\n\t\tconst isNotDismissible = event.target instanceof HTMLElement && event.target.dataset['dismissible'] === 'false';\n\n\t\tif (isNotDismissible) return;\n\n\t\tif (!this._isFocusWithinRef()) {\n\t\t\tthis._isFocusWithinRef.set(true);\n\t\t\tthis._lastFocusedElementRef.set(event.relatedTarget as HTMLElement);\n\t\t}\n\t}\n\n\thandlePointerDown(event: MouseEvent) {\n\t\tconst isNotDismissible = event.target instanceof HTMLElement && event.target.dataset['dismissible'] === 'false';\n\n\t\tif (isNotDismissible) return;\n\t\tthis._interacting.set(true);\n\t}\n\n\thandleMouseLeave() {\n\t\tif (!this._interacting()) {\n\t\t\tthis._expanded.set(false);\n\t\t}\n\t}\n\n\tprivate readonly handleKeydown = (event: KeyboardEvent) => {\n\t\tconst listRef = this._listRef()?.nativeElement;\n\t\tif (!listRef) return;\n\n\t\tconst isHotkeyPressed = this.hotKey().every((key) => (event as never)[key] || event.code === key);\n\n\t\tif (isHotkeyPressed) {\n\t\t\tthis._expanded.set(true);\n\t\t\tlistRef.focus();\n\t\t}\n\n\t\tif (\n\t\t\tevent.code === 'Escape' &&\n\t\t\t(this._document.activeElement === listRef || listRef.contains(this._document.activeElement))\n\t\t) {\n\t\t\tthis._expanded.set(false);\n\t\t}\n\t};\n\n\tprivate readonly handleThemePreferenceChange = ({ matches }: MediaQueryListEvent) => {\n\t\tif (this.theme() === 'system') {\n\t\t\tthis._actualTheme.set(matches ? 'dark' : 'light');\n\t\t}\n\t};\n\n\tprivate getActualTheme(theme: Theme): Theme {\n\t\tif (theme !== 'system') {\n\t\t\treturn theme;\n\t\t}\n\n\t\tif (isPlatformBrowser(this._platformId) && this._window) {\n\t\t\tconst prefersDark = this._window.matchMedia?.('(prefers-color-scheme: dark)').matches;\n\t\t\treturn prefersDark ? 'dark' : 'light';\n\t\t}\n\n\t\treturn 'light';\n\t}\n}\n","import { BrnSonnerToaster } from './lib/brn-toaster';\nimport { BrnToastAction } from './lib/directives/brn-toast-action';\nimport { BrnToastCancelAction } from './lib/directives/brn-toast-cancel-action';\n\nexport * from './lib/brn-toaster';\nexport * from './lib/brn-toaster.token';\nexport * from './lib/directives/brn-toast-action';\nexport * from './lib/directives/brn-toast-cancel-action';\nexport * from './lib/state';\nexport * from './lib/types';\n\nexport const BrnSonnerImports = [BrnSonnerToaster, BrnToastAction, BrnToastCancelAction] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAgDa,aAAa,CAAA;AACT,IAAA,IAAI,GAAG,KAAK,CAAa,SAAS,2EAAC;2HADvC,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,uBAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA1Cf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEW,aAAa,EAAA,UAAA,EAAA,CAAA;kBA7CzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,iBAAiB;oBAC3B,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,CAAA,CAAA;AACD,iBAAA;;;MC/BY,eAAe,CAAA;IACX,SAAS,GAAG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AAE,IAAI,EAAE,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CACpC,aAAa,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CACtC,WAAW,OAAE,EAAE,IAAI,EAAE,WAAW,EAAE,uEAChC,aAAa,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CACvC,UAAU,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACnC,cAAc,+FACR,oBAAoB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACnM9D,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,EAAE,cAAc,EAAE,oBAAoB;;ACXvF;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spartan-ng/brain",
3
- "version": "1.5.0-beta.4",
3
+ "version": "1.5.0-beta.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/spartan-ng/spartan.git"
@@ -3,7 +3,7 @@ import { AutoFocusTarget, RestoreFocusValue, DialogRef } from '@angular/cdk/dial
3
3
  import * as _angular_cdk_overlay from '@angular/cdk/overlay';
4
4
  import { ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, PositionStrategy, ScrollStrategy, OverlayPositionBuilder, ComponentType } from '@angular/cdk/overlay';
5
5
  import * as _angular_core from '@angular/core';
6
- import { StaticProvider, Signal, TemplateRef, Injector, ValueProvider, ViewContainerRef, InjectOptions } from '@angular/core';
6
+ import { StaticProvider, Signal, TemplateRef, OnDestroy, Injector, ValueProvider, ViewContainerRef, InjectOptions } from '@angular/core';
7
7
  import * as _spartan_ng_brain_dialog from '@spartan-ng/brain/dialog';
8
8
  import { BooleanInput } from '@angular/cdk/coercion';
9
9
  import { Direction } from '@angular/cdk/bidi';
@@ -111,9 +111,12 @@ declare class BrnDialogContent<T extends Record<string, unknown>> {
111
111
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnDialogContent<any>, "[brnDialogContent]", never, { "className": { "alias": "class"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
112
112
  }
113
113
 
114
- declare class BrnDialogDescription {
114
+ declare class BrnDialogDescription implements OnDestroy {
115
+ private static _idGenerator;
115
116
  private readonly _brnDialogRef;
116
117
  protected readonly _id: string;
118
+ constructor();
119
+ ngOnDestroy(): void;
117
120
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnDialogDescription, never>;
118
121
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnDialogDescription, "[brnDialogDescription]", never, {}, {}, never, never, true, never>;
119
122
  }
@@ -167,6 +170,7 @@ declare class BrnDialogRef<DialogResult = unknown> {
167
170
  private _closeGeneration;
168
171
  private _panelClasses;
169
172
  private _backdropClasses;
173
+ private readonly _descriptionIds;
170
174
  get open(): boolean;
171
175
  get id(): string;
172
176
  constructor(_cdkDialogRef: DialogRef<DialogResult>, _injector: Injector, dialogId: number, initialOptions: BrnDialogOptions);
@@ -177,6 +181,9 @@ declare class BrnDialogRef<DialogResult = unknown> {
177
181
  setPanelClass(panelClass: string | string[] | null | undefined): void;
178
182
  setOverlayClass(overlayClass: string | string[] | null | undefined): void;
179
183
  updatePosition(): void;
184
+ registerDescription(id: string): void;
185
+ unregisterDescription(id: string): void;
186
+ private _syncAriaDescribedBy;
180
187
  private _finishClose;
181
188
  private _getActiveAnimations;
182
189
  private _setDataState;
@@ -77,7 +77,7 @@ type ToastT = {
77
77
  */
78
78
  cancel?: {
79
79
  label: string;
80
- onClick?: () => void;
80
+ onClick?: (event: MouseEvent) => void;
81
81
  };
82
82
  /**
83
83
  * The function gets called when either the close button is clicked, or the toast is swiped.
@@ -271,6 +271,37 @@ type ToastProps = {
271
271
  classes: ToastClassnames;
272
272
  unstyled: boolean;
273
273
  };
274
+ type ToastAction = {
275
+ label: string;
276
+ onClick: (event: MouseEvent) => void;
277
+ };
278
+ type ToastActionTemplateContext = {
279
+ $implicit: ToastAction;
280
+ toast: ToastT;
281
+ };
282
+ type ToastActionTemplateRef = TemplateRef<ToastActionTemplateContext>;
283
+
284
+ /**
285
+ * Utils directory to typecheck the context of the templateRef
286
+ * {@link ToastActionTemplateContext} context for content
287
+ */
288
+ declare class BrnToastAction {
289
+ readonly templateRef: TemplateRef<ToastActionTemplateContext>;
290
+ static ngTemplateContextGuard(_directive: BrnToastAction, context: unknown): context is ToastActionTemplateContext;
291
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnToastAction, never>;
292
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnToastAction, "[brnToastAction]", ["toastAction"], {}, {}, never, never, true, never>;
293
+ }
294
+
295
+ /**
296
+ * Utils directory to typecheck the context of the templateRef
297
+ * {@link ToastActionTemplateContext} context for content
298
+ */
299
+ declare class BrnToastCancelAction {
300
+ readonly templateRef: TemplateRef<ToastActionTemplateContext>;
301
+ static ngTemplateContextGuard(_directive: BrnToastCancelAction, context: unknown): context is ToastActionTemplateContext;
302
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnToastCancelAction, never>;
303
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnToastCancelAction, "[brnToastCancelAction]", ["toastCancelAction"], {}, {}, never, never, true, never>;
304
+ }
274
305
 
275
306
  declare class BrnSonnerToaster {
276
307
  private readonly _platformId;
@@ -315,6 +346,8 @@ declare class BrnSonnerToaster {
315
346
  protected readonly _errorIcon: _angular_core.Signal<TemplateRef<any> | undefined>;
316
347
  protected readonly _warningIcon: _angular_core.Signal<TemplateRef<any> | undefined>;
317
348
  protected readonly _infoIcon: _angular_core.Signal<TemplateRef<any> | undefined>;
349
+ protected readonly _action: _angular_core.Signal<BrnToastAction | undefined>;
350
+ protected readonly _cancelAction: _angular_core.Signal<BrnToastCancelAction | undefined>;
318
351
  constructor();
319
352
  handleBlur(event: FocusEvent): void;
320
353
  handleFocus(event: FocusEvent): void;
@@ -324,7 +357,7 @@ declare class BrnSonnerToaster {
324
357
  private readonly handleThemePreferenceChange;
325
358
  private getActualTheme;
326
359
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnSonnerToaster, never>;
327
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BrnSonnerToaster, "brn-sonner-toaster", never, { "invert": { "alias": "invert"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "hotKey": { "alias": "hotKey"; "required": false; "isSignal": true; }; "richColors": { "alias": "richColors"; "required": false; "isSignal": true; }; "expand": { "alias": "expand"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "visibleToasts": { "alias": "visibleToasts"; "required": false; "isSignal": true; }; "closeButton": { "alias": "closeButton"; "required": false; "isSignal": true; }; "toastOptions": { "alias": "toastOptions"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, ["_loadingIcon", "_successIcon", "_errorIcon", "_warningIcon", "_infoIcon"], never, true, never>;
360
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BrnSonnerToaster, "brn-sonner-toaster", never, { "invert": { "alias": "invert"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "hotKey": { "alias": "hotKey"; "required": false; "isSignal": true; }; "richColors": { "alias": "richColors"; "required": false; "isSignal": true; }; "expand": { "alias": "expand"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "visibleToasts": { "alias": "visibleToasts"; "required": false; "isSignal": true; }; "closeButton": { "alias": "closeButton"; "required": false; "isSignal": true; }; "toastOptions": { "alias": "toastOptions"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, ["_loadingIcon", "_successIcon", "_errorIcon", "_warningIcon", "_infoIcon", "_action", "_cancelAction"], never, true, never>;
328
361
  }
329
362
 
330
363
  interface BrnSonnerToasterConfig {
@@ -382,7 +415,7 @@ declare const toast: typeof toastFunction & {
382
415
  loading: (message: string | Type<unknown>, data?: ExternalToast) => string | number;
383
416
  };
384
417
 
385
- declare const BrnSonnerImports: readonly [typeof BrnSonnerToaster];
418
+ declare const BrnSonnerImports: readonly [typeof BrnSonnerToaster, typeof BrnToastAction, typeof BrnToastCancelAction];
386
419
 
387
- export { BrnSonnerImports, BrnSonnerToaster, defaultClasses, injectBrnSonnerToasterConfig, provideBrnSonnerToasterConfig, toast, toastState };
388
- export type { BrnSonnerToasterConfig, Expand, ExternalToast, HeightT, Position, PromiseData, PromiseT, Theme, ToastClassnames, ToastOptions, ToastProps, ToastT, ToastToDismiss, ToastTypes, ToasterProps };
420
+ export { BrnSonnerImports, BrnSonnerToaster, BrnToastAction, BrnToastCancelAction, defaultClasses, injectBrnSonnerToasterConfig, provideBrnSonnerToasterConfig, toast, toastState };
421
+ export type { BrnSonnerToasterConfig, Expand, ExternalToast, HeightT, Position, PromiseData, PromiseT, Theme, ToastAction, ToastActionTemplateContext, ToastActionTemplateRef, ToastClassnames, ToastOptions, ToastProps, ToastT, ToastToDismiss, ToastTypes, ToasterProps };