@wirabyte/ui 2.0.0-beta.0 → 2.0.0

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.
Files changed (241) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +6 -6
  3. package/avatar/avatar.component.d.ts +4 -2
  4. package/avatar/avatar.types.d.ts +3 -0
  5. package/breadcrumb/breadcrumb.component.d.ts +3 -1
  6. package/button/button.styles.d.ts +1 -1
  7. package/chat/chat.component.d.ts +118 -0
  8. package/chat/chat.module.d.ts +8 -0
  9. package/chat/chat.types.d.ts +64 -0
  10. package/chat/index.d.ts +5 -0
  11. package/chat/public-api.d.ts +3 -0
  12. package/config/options.d.ts +6 -0
  13. package/config/theme.service.d.ts +5 -0
  14. package/config/wu-config.service.d.ts +6 -0
  15. package/core/catalog.d.ts +6 -1
  16. package/core/overrides.d.ts +7 -0
  17. package/core/thai/locale.d.ts +47 -0
  18. package/datepicker/datepicker.component.d.ts +1 -1
  19. package/descriptions/descriptions.component.d.ts +56 -0
  20. package/descriptions/descriptions.module.d.ts +8 -0
  21. package/descriptions/index.d.ts +5 -0
  22. package/descriptions/public-api.d.ts +2 -0
  23. package/esm2022/accordion/accordion.component.mjs +4 -4
  24. package/esm2022/alert/alert-dialog.component.mjs +3 -3
  25. package/esm2022/avatar/avatar.component.mjs +11 -5
  26. package/esm2022/avatar/avatar.types.mjs +2 -2
  27. package/esm2022/breadcrumb/breadcrumb.component.mjs +5 -3
  28. package/esm2022/button/button.component.mjs +2 -2
  29. package/esm2022/button/button.styles.mjs +2 -2
  30. package/esm2022/card/card.component.mjs +8 -8
  31. package/esm2022/chat/chat.component.mjs +370 -0
  32. package/esm2022/chat/chat.module.mjs +17 -0
  33. package/esm2022/chat/chat.types.mjs +2 -0
  34. package/esm2022/chat/public-api.mjs +4 -0
  35. package/esm2022/chat/wirabyte-ui-chat.mjs +5 -0
  36. package/esm2022/config/options.mjs +1 -1
  37. package/esm2022/config/theme.service.mjs +35 -3
  38. package/esm2022/config/wu-config.service.mjs +9 -1
  39. package/esm2022/core/catalog.mjs +22 -2
  40. package/esm2022/core/families.mjs +43 -1
  41. package/esm2022/core/overrides.mjs +26 -1
  42. package/esm2022/core/thai/locale.mjs +67 -1
  43. package/esm2022/datepicker/datepicker.component.mjs +3 -3
  44. package/esm2022/descriptions/descriptions.component.mjs +112 -0
  45. package/esm2022/descriptions/descriptions.module.mjs +17 -0
  46. package/esm2022/descriptions/public-api.mjs +3 -0
  47. package/esm2022/descriptions/wirabyte-ui-descriptions.mjs +5 -0
  48. package/esm2022/dialog/dialog.component.mjs +3 -3
  49. package/esm2022/drawer/drawer.component.mjs +3 -3
  50. package/esm2022/emptystate/emptystate.component.mjs +3 -3
  51. package/esm2022/errorpage/errorpage.component.mjs +3 -3
  52. package/esm2022/fieldset/fieldset.component.mjs +4 -4
  53. package/esm2022/metergroup/metergroup.component.mjs +19 -5
  54. package/esm2022/metergroup/metergroup.types.mjs +1 -1
  55. package/esm2022/navbar/navbar.component.mjs +3 -3
  56. package/esm2022/panel/panel.component.mjs +6 -6
  57. package/esm2022/popover/popover.base.mjs +3 -3
  58. package/esm2022/result/result.component.mjs +3 -3
  59. package/esm2022/scheduler/public-api.mjs +4 -0
  60. package/esm2022/scheduler/scheduler.component.mjs +483 -0
  61. package/esm2022/scheduler/scheduler.module.mjs +17 -0
  62. package/esm2022/scheduler/scheduler.types.mjs +2 -0
  63. package/esm2022/scheduler/wirabyte-ui-scheduler.mjs +5 -0
  64. package/esm2022/selectbutton/selectbutton.component.mjs +25 -4
  65. package/esm2022/signaturepad/public-api.mjs +3 -0
  66. package/esm2022/signaturepad/signaturepad.component.mjs +289 -0
  67. package/esm2022/signaturepad/signaturepad.module.mjs +17 -0
  68. package/esm2022/signaturepad/wirabyte-ui-signaturepad.mjs +5 -0
  69. package/esm2022/stat/public-api.mjs +3 -0
  70. package/esm2022/stat/stat.component.mjs +128 -0
  71. package/esm2022/stat/stat.module.mjs +17 -0
  72. package/esm2022/stat/wirabyte-ui-stat.mjs +5 -0
  73. package/esm2022/table/table.celleditor.mjs +4 -4
  74. package/esm2022/tabs/tabs.component.mjs +3 -3
  75. package/esm2022/tag/tag.component.mjs +2 -2
  76. package/esm2022/textarea/textarea.directive.mjs +19 -1
  77. package/esm2022/thai/thai.pipes.mjs +2 -2
  78. package/esm2022/toolbar/toolbar.component.mjs +7 -7
  79. package/fesm2022/wirabyte-ui-accordion.mjs +3 -3
  80. package/fesm2022/wirabyte-ui-accordion.mjs.map +1 -1
  81. package/fesm2022/wirabyte-ui-alert.mjs +2 -2
  82. package/fesm2022/wirabyte-ui-alert.mjs.map +1 -1
  83. package/fesm2022/wirabyte-ui-avatar.mjs +12 -5
  84. package/fesm2022/wirabyte-ui-avatar.mjs.map +1 -1
  85. package/fesm2022/wirabyte-ui-breadcrumb.mjs +4 -2
  86. package/fesm2022/wirabyte-ui-breadcrumb.mjs.map +1 -1
  87. package/fesm2022/wirabyte-ui-button.mjs +3 -3
  88. package/fesm2022/wirabyte-ui-button.mjs.map +1 -1
  89. package/fesm2022/wirabyte-ui-card.mjs +7 -7
  90. package/fesm2022/wirabyte-ui-card.mjs.map +1 -1
  91. package/fesm2022/wirabyte-ui-chat.mjs +391 -0
  92. package/fesm2022/wirabyte-ui-chat.mjs.map +1 -0
  93. package/fesm2022/wirabyte-ui-config.mjs +42 -2
  94. package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
  95. package/fesm2022/wirabyte-ui-core.mjs +155 -2
  96. package/fesm2022/wirabyte-ui-core.mjs.map +1 -1
  97. package/fesm2022/wirabyte-ui-datepicker.mjs +2 -2
  98. package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
  99. package/fesm2022/wirabyte-ui-descriptions.mjs +133 -0
  100. package/fesm2022/wirabyte-ui-descriptions.mjs.map +1 -0
  101. package/fesm2022/wirabyte-ui-dialog.mjs +2 -2
  102. package/fesm2022/wirabyte-ui-dialog.mjs.map +1 -1
  103. package/fesm2022/wirabyte-ui-drawer.mjs +2 -2
  104. package/fesm2022/wirabyte-ui-drawer.mjs.map +1 -1
  105. package/fesm2022/wirabyte-ui-emptystate.mjs +2 -2
  106. package/fesm2022/wirabyte-ui-emptystate.mjs.map +1 -1
  107. package/fesm2022/wirabyte-ui-errorpage.mjs +2 -2
  108. package/fesm2022/wirabyte-ui-errorpage.mjs.map +1 -1
  109. package/fesm2022/wirabyte-ui-fieldset.mjs +3 -3
  110. package/fesm2022/wirabyte-ui-fieldset.mjs.map +1 -1
  111. package/fesm2022/wirabyte-ui-metergroup.mjs +18 -4
  112. package/fesm2022/wirabyte-ui-metergroup.mjs.map +1 -1
  113. package/fesm2022/wirabyte-ui-navbar.mjs +2 -2
  114. package/fesm2022/wirabyte-ui-navbar.mjs.map +1 -1
  115. package/fesm2022/wirabyte-ui-panel.mjs +5 -5
  116. package/fesm2022/wirabyte-ui-panel.mjs.map +1 -1
  117. package/fesm2022/wirabyte-ui-popover.mjs +2 -2
  118. package/fesm2022/wirabyte-ui-popover.mjs.map +1 -1
  119. package/fesm2022/wirabyte-ui-result.mjs +2 -2
  120. package/fesm2022/wirabyte-ui-result.mjs.map +1 -1
  121. package/fesm2022/wirabyte-ui-scheduler.mjs +504 -0
  122. package/fesm2022/wirabyte-ui-scheduler.mjs.map +1 -0
  123. package/fesm2022/wirabyte-ui-selectbutton.mjs +24 -3
  124. package/fesm2022/wirabyte-ui-selectbutton.mjs.map +1 -1
  125. package/fesm2022/wirabyte-ui-signaturepad.mjs +310 -0
  126. package/fesm2022/wirabyte-ui-signaturepad.mjs.map +1 -0
  127. package/fesm2022/wirabyte-ui-stat.mjs +149 -0
  128. package/fesm2022/wirabyte-ui-stat.mjs.map +1 -0
  129. package/fesm2022/wirabyte-ui-table.mjs +3 -3
  130. package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
  131. package/fesm2022/wirabyte-ui-tabs.mjs +2 -2
  132. package/fesm2022/wirabyte-ui-tabs.mjs.map +1 -1
  133. package/fesm2022/wirabyte-ui-tag.mjs +2 -2
  134. package/fesm2022/wirabyte-ui-tag.mjs.map +1 -1
  135. package/fesm2022/wirabyte-ui-textarea.mjs +18 -0
  136. package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
  137. package/fesm2022/wirabyte-ui-thai.mjs +1 -1
  138. package/fesm2022/wirabyte-ui-thai.mjs.map +1 -1
  139. package/fesm2022/wirabyte-ui-toolbar.mjs +6 -6
  140. package/fesm2022/wirabyte-ui-toolbar.mjs.map +1 -1
  141. package/metergroup/metergroup.component.d.ts +11 -2
  142. package/metergroup/metergroup.types.d.ts +6 -0
  143. package/package.json +60 -30
  144. package/scheduler/index.d.ts +5 -0
  145. package/scheduler/public-api.d.ts +3 -0
  146. package/scheduler/scheduler.component.d.ts +143 -0
  147. package/scheduler/scheduler.module.d.ts +8 -0
  148. package/scheduler/scheduler.types.d.ts +46 -0
  149. package/schematics/core/catalog.cjs +22 -1
  150. package/schematics/core/families.cjs +42 -0
  151. package/schematics/core/overrides.cjs +25 -0
  152. package/schematics/core/thai/locale.cjs +66 -0
  153. package/schematics/ng-add/index.cjs +3 -1
  154. package/selectbutton/selectbutton.component.d.ts +12 -1
  155. package/signaturepad/index.d.ts +5 -0
  156. package/signaturepad/public-api.d.ts +2 -0
  157. package/signaturepad/signaturepad.component.d.ts +98 -0
  158. package/signaturepad/signaturepad.module.d.ts +8 -0
  159. package/stat/index.d.ts +5 -0
  160. package/stat/public-api.d.ts +2 -0
  161. package/stat/stat.component.d.ts +61 -0
  162. package/stat/stat.module.d.ts +8 -0
  163. package/textarea/textarea.directive.d.ts +2 -0
  164. package/theme/_data.scss +239 -7
  165. package/theme/_index.scss +29 -0
  166. package/themes/mali/amber.css +30 -1
  167. package/themes/mali/blue.css +30 -1
  168. package/themes/mali/cyan.css +30 -1
  169. package/themes/mali/emerald.css +30 -1
  170. package/themes/mali/fuchsia.css +30 -1
  171. package/themes/mali/green.css +30 -1
  172. package/themes/mali/indigo.css +30 -1
  173. package/themes/mali/lime.css +30 -1
  174. package/themes/mali/orange.css +30 -1
  175. package/themes/mali/pink.css +30 -1
  176. package/themes/mali/purple.css +30 -1
  177. package/themes/mali/red.css +30 -1
  178. package/themes/mali/rose.css +30 -1
  179. package/themes/mali/sky.css +30 -1
  180. package/themes/mali/teal.css +30 -1
  181. package/themes/mali/theme.css +30 -1
  182. package/themes/mali/violet.css +30 -1
  183. package/themes/mali/wira.css +30 -1
  184. package/themes/mali/yellow.css +30 -1
  185. package/themes/material/amber.css +30 -1
  186. package/themes/material/blue.css +30 -1
  187. package/themes/material/cyan.css +30 -1
  188. package/themes/material/emerald.css +30 -1
  189. package/themes/material/fuchsia.css +30 -1
  190. package/themes/material/green.css +30 -1
  191. package/themes/material/indigo.css +30 -1
  192. package/themes/material/lime.css +30 -1
  193. package/themes/material/orange.css +30 -1
  194. package/themes/material/pink.css +30 -1
  195. package/themes/material/purple.css +30 -1
  196. package/themes/material/red.css +30 -1
  197. package/themes/material/rose.css +30 -1
  198. package/themes/material/sky.css +30 -1
  199. package/themes/material/teal.css +30 -1
  200. package/themes/material/theme.css +30 -1
  201. package/themes/material/violet.css +30 -1
  202. package/themes/material/wira.css +30 -1
  203. package/themes/material/yellow.css +30 -1
  204. package/themes/phet/amber.css +30 -1
  205. package/themes/phet/blue.css +30 -1
  206. package/themes/phet/cyan.css +30 -1
  207. package/themes/phet/emerald.css +30 -1
  208. package/themes/phet/fuchsia.css +30 -1
  209. package/themes/phet/green.css +30 -1
  210. package/themes/phet/indigo.css +30 -1
  211. package/themes/phet/lime.css +30 -1
  212. package/themes/phet/orange.css +30 -1
  213. package/themes/phet/pink.css +30 -1
  214. package/themes/phet/purple.css +30 -1
  215. package/themes/phet/red.css +30 -1
  216. package/themes/phet/rose.css +30 -1
  217. package/themes/phet/sky.css +30 -1
  218. package/themes/phet/teal.css +30 -1
  219. package/themes/phet/theme.css +30 -1
  220. package/themes/phet/violet.css +30 -1
  221. package/themes/phet/wira.css +30 -1
  222. package/themes/phet/yellow.css +30 -1
  223. package/themes/sila/amber.css +30 -1
  224. package/themes/sila/blue.css +30 -1
  225. package/themes/sila/cyan.css +30 -1
  226. package/themes/sila/emerald.css +30 -1
  227. package/themes/sila/fuchsia.css +30 -1
  228. package/themes/sila/green.css +30 -1
  229. package/themes/sila/indigo.css +30 -1
  230. package/themes/sila/lime.css +30 -1
  231. package/themes/sila/orange.css +30 -1
  232. package/themes/sila/pink.css +30 -1
  233. package/themes/sila/purple.css +30 -1
  234. package/themes/sila/red.css +30 -1
  235. package/themes/sila/rose.css +30 -1
  236. package/themes/sila/sky.css +30 -1
  237. package/themes/sila/teal.css +30 -1
  238. package/themes/sila/theme.css +30 -1
  239. package/themes/sila/violet.css +30 -1
  240. package/themes/sila/wira.css +30 -1
  241. package/themes/sila/yellow.css +30 -1
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-accordion.mjs","sources":["../../lib/accordion/accordion.types.ts","../../lib/accordion/accordion.component.ts","../../lib/accordion/accordion-tab.component.html","../../lib/accordion/accordion.module.ts","../../lib/accordion/wirabyte-ui-accordion.ts"],"sourcesContent":["export interface WuAccordionTabEvent {\n index: number;\n /** Panels by value: the panel's value. */\n value?: unknown;\n}\n\n/**\n * The `gap` input of wu-accordion as a CSS length: `null` keeps the theme's look; `true` / `''` is 0.75rem; a number is\n * px; `false` / `0` joins the panels.\n */\nexport function ɵaccordionGap(v: unknown): string | null {\n if (v === null || v === undefined) return null;\n if (v === true || v === '' || v === 'true') return '0.75rem';\n if (v === false || v === 'false') return '0px';\n const n = Number(v);\n if (Number.isFinite(n)) return `${Math.max(0, n)}px`;\n return String(v);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵuniqueId, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\nimport { ɵaccordionGap, WuAccordionTabEvent } from './accordion.types';\n\n/**\n * Stack of collapsible sections, written either way apps already write them:\n * - `<wu-accordion [(activeIndex)]=\"i\"><wu-accordion-tab header=\"…\">…</wu-accordion-tab></wu-accordion>` (index);\n * - `<wu-accordion [(value)]=\"open\"><wu-accordion-panel value=\"a\"><wu-accordion-header>…</wu-accordion-header>\n * <wu-accordion-content>…</wu-accordion-content></wu-accordion-panel></wu-accordion>` (value).\n * With `multiple` the index / value is an array. Arrow keys, Home and End move between headers.\n */\n@Component({\n selector: 'wu-accordion',\n standalone: true,\n template: '<div class=\"wu-accordion p-accordion p-component\" [class]=\"styleClass() || \\'\\'\" [style]=\"rootStyle()\"><ng-content></ng-content></div>',\n styleUrl: './accordion.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.wu-accordion-separated]': 'separated()',\n '[style.--wu-accordion-gap]': 'gapLength()',\n },\n})\nexport class WuAccordion {\n readonly multiple = input(false, { transform: booleanAttribute });\n /**\n * Space between the panels: `[gap]=\"true\"` (0.75rem), `gap=\"1rem\"` or `[gap]=\"12\"` (px) makes each panel a card of its\n * own; `[gap]=\"false\"` joins them. Left out: the theme's look.\n */\n readonly gap = input<string | number | boolean | null | undefined>();\n readonly gapLength = computed(() => ɵaccordionGap(this.gap()));\n readonly separated = computed(() => {\n const g = this.gapLength();\n return !!g && parseFloat(g) !== 0;\n });\n /** Classes for the root element, as before (`styleClass=\"w-full\"`). */\n readonly styleClass = input<string | null | undefined>();\n /** Inline styles for the root element, as an object: `[style]=\"{ width: '20rem' }\"`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly style = input<Record<string, any> | string | null | undefined>();\n /** The `style` object for the root (a plain style attribute already styles the host). */\n readonly rootStyle = computed(() => {\n const s = this.style();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return s && typeof s === 'object' ? (s as Record<string, any>) : null;\n });\n /** Two-way: `[(activeIndex)]`. */\n readonly activeIndex = model<number | number[] | null>(null);\n /** Two-way: `[(value)]` with `wu-accordion-panel`: the open panel's value (an array with `multiple`). Typed `any`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly value = model<any>(undefined);\n\n readonly onOpen = output<WuAccordionTabEvent>();\n readonly onClose = output<WuAccordionTabEvent>();\n\n readonly tabs = contentChildren(forwardRef(() => WuAccordionTab));\n readonly panels = contentChildren(forwardRef(() => WuAccordionPanel));\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n isActive(tab: WuAccordionTab): boolean {\n const index = this.tabs().indexOf(tab);\n const current = this.activeIndex();\n return (Array.isArray(current) ? current.includes(index) : current === index) || tab.selected();\n }\n\n toggle(tab: WuAccordionTab): void {\n const index = this.tabs().indexOf(tab);\n const open = this.isActive(tab);\n const current = this.activeIndex();\n let next: number | number[] | null;\n if (this.multiple()) {\n const list = Array.isArray(current) ? current : current === null ? [] : [current];\n next = open ? list.filter((i) => i !== index) : [...list, index];\n } else {\n next = open ? null : index;\n // Opening one tab closes the others.\n if (!open) for (const t of this.tabs()) if (t !== tab) t.selected.set(false);\n }\n tab.selected.set(!open);\n this.activeIndex.set(next);\n (open ? this.onClose : this.onOpen).emit({ index });\n }\n\n /** Panels by value: open when the value (or one of the values) is theirs. */\n isValueActive(value: unknown): boolean {\n const current = this.value();\n return Array.isArray(current) ? current.includes(value) : current !== undefined && current !== null && current === value;\n }\n\n togglePanel(panel: WuAccordionPanel): void {\n const value = panel.value();\n const open = this.isValueActive(value);\n const current = this.value();\n let next: unknown;\n if (this.multiple()) {\n const list: unknown[] = Array.isArray(current) ? current : current === undefined || current === null ? [] : [current];\n next = open ? list.filter((v) => v !== value) : [...list, value];\n } else {\n next = open ? null : value;\n }\n this.value.set(next);\n (open ? this.onClose : this.onOpen).emit({ index: this.panels().indexOf(panel), value });\n }\n\n /** Arrow keys, Home and End move focus between the headers (the WAI-ARIA accordion pattern). */\n moveFocus(from: { headerEl(): HTMLButtonElement }, key: string): boolean {\n const headers = Array.from(this.el.nativeElement.querySelectorAll<HTMLButtonElement>('.wu-accordion-header:not(:disabled)'));\n const current = headers.indexOf(from.headerEl());\n if (current < 0 || !headers.length) return false;\n const n = headers.length;\n const target = key === 'ArrowDown' ? (current + 1) % n : key === 'ArrowUp' ? (current - 1 + n) % n : key === 'Home' ? 0 : key === 'End' ? n - 1 : -1;\n if (target < 0) return false;\n headers[target].focus();\n return true;\n }\n}\n\n/** One section of a `wu-accordion`: `header` text, projected content, `disabled`, and `[(selected)]` to open it from outside. */\n@Component({\n selector: 'wu-accordion-tab, wu-accordiontab, wu-accordionTab',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './accordion-tab.component.html',\n styleUrl: './accordion.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionTab {\n private readonly slotTemplates = contentChildren(WuTemplate);\n private readonly headerRef = contentChild('header', { read: TemplateRef });\n readonly headerTemplate = computed(() => this.headerRef() || ɵfindTemplate(this.slotTemplates(), 'header'));\n private readonly contentRef = contentChild('content', { read: TemplateRef });\n readonly contentTemplate = computed(() => this.contentRef() || ɵfindTemplate(this.slotTemplates(), 'content'));\n readonly header = input<string>();\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Two-way: `[(selected)]`. */\n readonly selected = model(false);\n\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n readonly active = computed(() => (this.accordion ? this.accordion.isActive(this) : this.selected()));\n readonly classes = computed(() =>\n this.active() ? 'wu-accordion-tab wu-accordion-tab-active p-accordionpanel p-accordionpanel-active' : 'wu-accordion-tab p-accordionpanel'\n );\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this.disabled()) return;\n if (this.accordion) this.accordion.toggle(this);\n else this.selected.set(!this.selected());\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/**\n * One section when the accordion is written by value: `<wu-accordion-panel value=\"a\" [disabled]=\"…\">` with a\n * `wu-accordion-header` and a `wu-accordion-content` inside.\n */\n@Component({\n selector: 'wu-accordion-panel, wu-accordionpanel',\n standalone: true,\n template: '<ng-content></ng-content>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'wu-accordion-tab p-accordionpanel',\n '[class.wu-accordion-tab-active]': 'active()',\n '[class.p-accordionpanel-active]': 'active()',\n },\n})\nexport class WuAccordionPanel {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly value = input<any>();\n readonly disabled = input(false, { transform: booleanAttribute });\n\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Open state when used without a wu-accordion. */\n private readonly own = signal(false);\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n readonly active = computed(() => (this.accordion ? this.accordion.isValueActive(this.value()) : this.own()));\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this.disabled()) return;\n if (this.accordion) this.accordion.togglePanel(this);\n else this.own.set(!this.own());\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/** The header button of a `wu-accordion-panel`; its content is the title. */\n@Component({\n selector: 'wu-accordion-header, wu-accordionheader',\n standalone: true,\n template: `\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"panel?.headerId\"\n [attr.aria-expanded]=\"panel?.active() ?? false\"\n [attr.aria-controls]=\"panel?.contentId\"\n [disabled]=\"panel?.disabled() ?? false\"\n (click)=\"panel?.toggle()\"\n (keydown)=\"panel?.onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\"><ng-content></ng-content></span>\n </button>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionHeader {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n\n/** The collapsible content of a `wu-accordion-panel`. */\n@Component({\n selector: 'wu-accordion-content, wu-accordioncontent',\n standalone: true,\n template: `\n <div class=\"wu-accordion-content-container p-accordioncontent\" role=\"region\" [id]=\"panel?.contentId\" [attr.aria-labelledby]=\"panel?.headerId\" [attr.inert]=\"panel?.active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\"><ng-content></ng-content></div>\n </div>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionContent {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n","<div [class]=\"classes()\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\">\n @if (headerTemplate(); as t) {\n <ng-container *ngTemplateOutlet=\"t\"></ng-container>\n } @else {\n {{ header() }}\n }\n </span>\n </button>\n <div class=\"wu-accordion-content-container p-accordioncontent\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\">\n <ng-content></ng-content>\n @if (contentTemplate() && active()) {\n <ng-container *ngTemplateOutlet=\"contentTemplate()\"></ng-container>\n }\n </div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuAccordion, WuAccordionContent, WuAccordionHeader, WuAccordionPanel, WuAccordionTab } from './accordion.component';\n\nconst ALL = [WuAccordion, WuAccordionTab, WuAccordionPanel, WuAccordionHeader, WuAccordionContent, WuTemplate];\n\n/** For NgModule apps. Standalone apps can import `WuAccordion` and `WuAccordionTab` (or the panel components) directly. */\n@NgModule({\n imports: ALL,\n exports: ALL,\n})\nexport class WuAccordionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate","ɵuniqueId"],"mappings":";;;;;AAMA;;;AAGG;AACG,SAAU,aAAa,CAAC,CAAU,EAAA;AACtC,IAAA,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS;AAAE,QAAA,OAAO,IAAI;IAC9C,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,MAAM;AAAE,QAAA,OAAO,SAAS;AAC5D,IAAA,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,OAAO;AAAE,QAAA,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E,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;AEtQD,MAAM,GAAG,GAAG,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAC;AAE9G;MAKa,iBAAiB,CAAA;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAjB,iBAAiB,EAAA,OAAA,EAAA,CAPjB,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CAAhG,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA;gHAOhG,iBAAiB,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,GAAG;AACZ,oBAAA,OAAO,EAAE,GAAG;AACb,iBAAA;;;ACVD;;AAEG;;"}
1
+ {"version":3,"file":"wirabyte-ui-accordion.mjs","sources":["../../lib/accordion/accordion.types.ts","../../lib/accordion/accordion.component.ts","../../lib/accordion/accordion-tab.component.html","../../lib/accordion/accordion.module.ts","../../lib/accordion/wirabyte-ui-accordion.ts"],"sourcesContent":["export interface WuAccordionTabEvent {\n index: number;\n /** Panels by value: the panel's value. */\n value?: unknown;\n}\n\n/**\n * The `gap` input of wu-accordion as a CSS length: `null` keeps the theme's look; `true` / `''` is 0.75rem; a number is\n * px; `false` / `0` joins the panels.\n */\nexport function ɵaccordionGap(v: unknown): string | null {\n if (v === null || v === undefined) return null;\n if (v === true || v === '' || v === 'true') return '0.75rem';\n if (v === false || v === 'false') return '0px';\n const n = Number(v);\n if (Number.isFinite(n)) return `${Math.max(0, n)}px`;\n return String(v);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵuniqueId, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\nimport { ɵaccordionGap, WuAccordionTabEvent } from './accordion.types';\n\n/**\n * Stack of collapsible sections, written either way apps already write them:\n * - `<wu-accordion [(activeIndex)]=\"i\"><wu-accordion-tab header=\"…\">…</wu-accordion-tab></wu-accordion>` (index);\n * - `<wu-accordion [(value)]=\"open\"><wu-accordion-panel value=\"a\"><wu-accordion-header>…</wu-accordion-header>\n * <wu-accordion-content>…</wu-accordion-content></wu-accordion-panel></wu-accordion>` (value).\n * With `multiple` the index / value is an array. Arrow keys, Home and End move between headers.\n */\n@Component({\n selector: 'wu-accordion',\n standalone: true,\n template: '<div class=\"wu-accordion p-accordion p-component\" [class]=\"styleClass() || \\'\\'\" [style]=\"rootStyle()\"><ng-content></ng-content></div>',\n styleUrl: './accordion.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.wu-accordion-separated]': 'separated()',\n '[style.--wu-accordion-gap]': 'gapLength()',\n },\n})\nexport class WuAccordion {\n readonly multiple = input(false, { transform: booleanAttribute });\n /**\n * Space between the panels: `[gap]=\"true\"` (0.75rem), `gap=\"1rem\"` or `[gap]=\"12\"` (px) makes each panel a card of its\n * own; `[gap]=\"false\"` joins them. Left out: the theme's look.\n */\n readonly gap = input<string | number | boolean | null | undefined>();\n readonly gapLength = computed(() => ɵaccordionGap(this.gap()));\n readonly separated = computed(() => {\n const g = this.gapLength();\n return !!g && parseFloat(g) !== 0;\n });\n /** Classes for the root element, as before (`styleClass=\"w-full\"`). */\n readonly styleClass = input<string | null | undefined>();\n /** Inline styles for the root element, as an object: `[style]=\"{ width: '20rem' }\"`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly style = input<Record<string, any> | string | null | undefined>();\n /** The `style` object for the root (a plain style attribute already styles the host). */\n readonly rootStyle = computed(() => {\n const s = this.style();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return s && typeof s === 'object' ? (s as Record<string, any>) : null;\n });\n /** Two-way: `[(activeIndex)]`. */\n readonly activeIndex = model<number | number[] | null>(null);\n /** Two-way: `[(value)]` with `wu-accordion-panel`: the open panel's value (an array with `multiple`). Typed `any`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly value = model<any>(undefined);\n\n readonly onOpen = output<WuAccordionTabEvent>();\n readonly onClose = output<WuAccordionTabEvent>();\n\n readonly tabs = contentChildren(forwardRef(() => WuAccordionTab));\n readonly panels = contentChildren(forwardRef(() => WuAccordionPanel));\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n isActive(tab: WuAccordionTab): boolean {\n const index = this.tabs().indexOf(tab);\n const current = this.activeIndex();\n return (Array.isArray(current) ? current.includes(index) : current === index) || tab.selected();\n }\n\n toggle(tab: WuAccordionTab): void {\n const index = this.tabs().indexOf(tab);\n const open = this.isActive(tab);\n const current = this.activeIndex();\n let next: number | number[] | null;\n if (this.multiple()) {\n const list = Array.isArray(current) ? current : current === null ? [] : [current];\n next = open ? list.filter((i) => i !== index) : [...list, index];\n } else {\n next = open ? null : index;\n // Opening one tab closes the others.\n if (!open) for (const t of this.tabs()) if (t !== tab) t.selected.set(false);\n }\n tab.selected.set(!open);\n this.activeIndex.set(next);\n (open ? this.onClose : this.onOpen).emit({ index });\n }\n\n /** Panels by value: open when the value (or one of the values) is theirs. */\n isValueActive(value: unknown): boolean {\n const current = this.value();\n return Array.isArray(current) ? current.includes(value) : current !== undefined && current !== null && current === value;\n }\n\n togglePanel(panel: WuAccordionPanel): void {\n const value = panel.value();\n const open = this.isValueActive(value);\n const current = this.value();\n let next: unknown;\n if (this.multiple()) {\n const list: unknown[] = Array.isArray(current) ? current : current === undefined || current === null ? [] : [current];\n next = open ? list.filter((v) => v !== value) : [...list, value];\n } else {\n next = open ? null : value;\n }\n this.value.set(next);\n (open ? this.onClose : this.onOpen).emit({ index: this.panels().indexOf(panel), value });\n }\n\n /** Arrow keys, Home and End move focus between the headers (the WAI-ARIA accordion pattern). */\n moveFocus(from: { headerEl(): HTMLButtonElement }, key: string): boolean {\n const headers = Array.from(this.el.nativeElement.querySelectorAll<HTMLButtonElement>('.wu-accordion-header:not(:disabled)'));\n const current = headers.indexOf(from.headerEl());\n if (current < 0 || !headers.length) return false;\n const n = headers.length;\n const target = key === 'ArrowDown' ? (current + 1) % n : key === 'ArrowUp' ? (current - 1 + n) % n : key === 'Home' ? 0 : key === 'End' ? n - 1 : -1;\n if (target < 0) return false;\n headers[target].focus();\n return true;\n }\n}\n\n/** One section of a `wu-accordion`: `header` text, projected content, `disabled`, and `[(selected)]` to open it from outside. */\n@Component({\n selector: 'wu-accordion-tab, wu-accordiontab, wu-accordionTab',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './accordion-tab.component.html',\n styleUrl: './accordion.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionTab {\n private readonly slotTemplates = contentChildren(WuTemplate);\n private readonly headerRef = contentChild('header', { read: TemplateRef, descendants: false });\n readonly headerTemplate = computed(() => this.headerRef() || ɵfindTemplate(this.slotTemplates(), 'header'));\n private readonly contentRef = contentChild('content', { read: TemplateRef, descendants: false });\n readonly contentTemplate = computed(() => this.contentRef() || ɵfindTemplate(this.slotTemplates(), 'content'));\n readonly header = input<string>();\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Two-way: `[(selected)]`. */\n readonly selected = model(false);\n\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n readonly active = computed(() => (this.accordion ? this.accordion.isActive(this) : this.selected()));\n readonly classes = computed(() =>\n this.active() ? 'wu-accordion-tab wu-accordion-tab-active p-accordionpanel p-accordionpanel-active' : 'wu-accordion-tab p-accordionpanel'\n );\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this.disabled()) return;\n if (this.accordion) this.accordion.toggle(this);\n else this.selected.set(!this.selected());\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/**\n * One section when the accordion is written by value: `<wu-accordion-panel value=\"a\" [disabled]=\"…\">` with a\n * `wu-accordion-header` and a `wu-accordion-content` inside.\n */\n@Component({\n selector: 'wu-accordion-panel, wu-accordionpanel',\n standalone: true,\n template: '<ng-content></ng-content>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'wu-accordion-tab p-accordionpanel',\n '[class.wu-accordion-tab-active]': 'active()',\n '[class.p-accordionpanel-active]': 'active()',\n },\n})\nexport class WuAccordionPanel {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly value = input<any>();\n readonly disabled = input(false, { transform: booleanAttribute });\n\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Open state when used without a wu-accordion. */\n private readonly own = signal(false);\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n readonly active = computed(() => (this.accordion ? this.accordion.isValueActive(this.value()) : this.own()));\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this.disabled()) return;\n if (this.accordion) this.accordion.togglePanel(this);\n else this.own.set(!this.own());\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/** The header button of a `wu-accordion-panel`; its content is the title. */\n@Component({\n selector: 'wu-accordion-header, wu-accordionheader',\n standalone: true,\n template: `\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"panel?.headerId\"\n [attr.aria-expanded]=\"panel?.active() ?? false\"\n [attr.aria-controls]=\"panel?.contentId\"\n [disabled]=\"panel?.disabled() ?? false\"\n (click)=\"panel?.toggle()\"\n (keydown)=\"panel?.onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\"><ng-content></ng-content></span>\n </button>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionHeader {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n\n/** The collapsible content of a `wu-accordion-panel`. */\n@Component({\n selector: 'wu-accordion-content, wu-accordioncontent',\n standalone: true,\n template: `\n <div class=\"wu-accordion-content-container p-accordioncontent\" role=\"region\" [id]=\"panel?.contentId\" [attr.aria-labelledby]=\"panel?.headerId\" [attr.inert]=\"panel?.active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\"><ng-content></ng-content></div>\n </div>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionContent {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n","<div [class]=\"classes()\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\">\n @if (headerTemplate(); as t) {\n <ng-container *ngTemplateOutlet=\"t\"></ng-container>\n } @else {\n {{ header() }}\n }\n </span>\n </button>\n <div class=\"wu-accordion-content-container p-accordioncontent\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\">\n <ng-content></ng-content>\n @if (contentTemplate() && active()) {\n <ng-container *ngTemplateOutlet=\"contentTemplate()\"></ng-container>\n }\n </div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuAccordion, WuAccordionContent, WuAccordionHeader, WuAccordionPanel, WuAccordionTab } from './accordion.component';\n\nconst ALL = [WuAccordion, WuAccordionTab, WuAccordionPanel, WuAccordionHeader, WuAccordionContent, WuTemplate];\n\n/** For NgModule apps. Standalone apps can import `WuAccordion` and `WuAccordionTab` (or the panel components) directly. */\n@NgModule({\n imports: ALL,\n exports: ALL,\n})\nexport class WuAccordionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate","ɵuniqueId"],"mappings":";;;;;AAMA;;;AAGG;AACG,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this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuAlertDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
366
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WuAlertDialog, isStandalone: true, selector: "wu-alertdialog", usesInheritance: true, ngImport: i0, template: "@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media (max-width: 575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
366
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: WuAlertDialog, isStandalone: true, selector: "wu-alertdialog", usesInheritance: true, ngImport: i0, template: "@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{font-family:var(--wu-heading-font-family);margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media (max-width: 575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
367
367
  }
368
368
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: WuAlertDialog, decorators: [{
369
369
  type: Component,
370
- args: [{ selector: 'wu-alertdialog', standalone: true, imports: [NgClass], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media (max-width: 575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"] }]
370
+ args: [{ selector: 'wu-alertdialog', standalone: true, imports: [NgClass], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{font-family:var(--wu-heading-font-family);margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media (max-width: 575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"] }]
371
371
  }], ctorParameters: () => [] });
372
372
 
373
373
  /** For NgModule apps; nothing to declare in templates, as alerts are opened from code (`WuAlertService`, `WuAlert`). */
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-alert.mjs","sources":["../../lib/alert/alert-dialog.base.ts","../../lib/alert/alert-dialog.component.ts","../../lib/alert/alert-dialog.component.html","../../lib/alert/alert.module.ts","../../lib/alert/alert.service.ts","../../lib/alert/wirabyte-ui-alert.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { AfterViewChecked, ChangeDetectorRef, Directive, ElementRef, inject, OnDestroy, ViewChild } from '@angular/core';\nimport { ɵlockScroll, ɵuniqueId, WuConfig } from '@wirabyte/ui/config';\nimport { WuLocale } from '@wirabyte/ui/core';\nimport { WuAlertDismissReason, WuAlertIcon, WuAlertOptions, WuAlertResult } from './alert.types';\n\ntype Icon = 'success' | 'error' | 'warning' | 'info' | 'question';\nconst ICONS: Record<WuAlertIcon, Icon> = {\n success: 'success',\n error: 'error',\n danger: 'error',\n warning: 'warning',\n warn: 'warning',\n info: 'info',\n question: 'question',\n help: 'question',\n};\n\n/**\n * The popup behind `WuAlert.fire()`: one per app, created on first use and reused. Shared logic of the v1 and\n * v2/v3 templates. A native modal <dialog>, so it opens above everything, dialogs included.\n */\n@Directive()\nexport abstract class ɵWuAlertDialogBase implements AfterViewChecked, OnDestroy {\n @ViewChild('mask') maskRef?: ElementRef<HTMLDialogElement>;\n @ViewChild('popup') popupRef?: ElementRef<HTMLElement>;\n\n o: WuAlertOptions = {};\n rendered = false;\n leaving = false;\n loading = false;\n icon: Icon | null = null;\n /** What the input holds, as the result will carry it. */\n inputValue: unknown = '';\n validation: string | null = null;\n /** One entry, changed on every fire, so the icon animation plays again. */\n runs: number[] = [0];\n readonly titleId = ɵuniqueId('wu-alert-title');\n readonly textId = ɵuniqueId('wu-alert-text');\n\n private run = 0;\n private resolveFn: ((r: WuAlertResult) => void) | null = null;\n private pendingShow = false;\n private downOnMask = false;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private timer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n protected readonly cdr = inject(ChangeDetectorRef);\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get confirmText(): string {\n return this.o.confirmButtonText ?? this.t.accept;\n }\n get cancelText(): string {\n return this.o.cancelButtonText ?? this.t.cancel;\n }\n get denyText(): string {\n return this.o.denyButtonText ?? this.t.no;\n }\n get showConfirm(): boolean {\n return this.o.showConfirmButton !== false;\n }\n /** The buttons in screen and Tab order: cancel, deny, confirm unless `reverseButtons: false`. */\n get actions(): ('confirm' | 'deny' | 'cancel')[] {\n const list: ('confirm' | 'deny' | 'cancel')[] = [];\n if (this.showConfirm) list.push('confirm');\n if (this.o.showDenyButton) list.push('deny');\n if (this.o.showCancelButton) list.push('cancel');\n return this.o.reverseButtons === false ? list : list.reverse();\n }\n get hasActions(): boolean {\n return !this.loading && (this.showConfirm || !!this.o.showCancelButton || !!this.o.showDenyButton);\n }\n get popupWidth(): string | null {\n const w = this.o.width;\n return w === undefined || w === null || w === '' ? null : typeof w === 'number' ? `${w}px` : w;\n }\n get options(): { value: string; label: string }[] {\n return Object.entries(this.o.inputOptions || {}).map(([value, label]) => ({ value, label }));\n }\n get isTextInput(): boolean {\n const i = this.o.input;\n return !!i && i !== 'textarea' && i !== 'select' && i !== 'radio' && i !== 'checkbox';\n }\n /** A class from `customClass` for one part (a plain string goes on the popup). */\n part(name: 'popup' | 'title' | 'htmlContainer' | 'confirmButton' | 'cancelButton' | 'denyButton'): string {\n const c = this.o.customClass;\n if (!c) return '';\n if (typeof c === 'string') return name === 'popup' ? c : '';\n return c[name] || '';\n }\n\n // ---------- called by WuAlertService ----------\n\n open(options: WuAlertOptions): Promise<WuAlertResult> {\n // A new alert replaces the one on screen, which resolves as dismissed.\n if (this.resolveFn) this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, dismiss: 'close' }, false);\n this.clearTimers();\n if (!this.rendered || this.leaving) {\n if (!this.rendered) {\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n }\n this.leaving = false;\n }\n this.o = { ...options };\n this.icon = options.icon ? ICONS[options.icon] || null : null;\n this.inputValue = options.inputValue ?? (options.input === 'checkbox' ? false : '');\n this.validation = null;\n this.loading = false;\n this.runs = [++this.run];\n this.rendered = true;\n this.pendingShow = true;\n const promise = new Promise<WuAlertResult>((resolve) => (this.resolveFn = resolve));\n this.render();\n // Opened here, not only in ngAfterViewChecked: this popup lives outside the page's view tree, and in zoneless apps\n // nothing else checks it again.\n this.showIfPending();\n return promise;\n }\n\n /** Closes the alert on screen; it resolves as dismissed. */\n closeAlert(result?: Partial<WuAlertResult>): void {\n if (!this.resolveFn) return;\n this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, ...result });\n }\n\n setLoading(on: boolean): void {\n this.loading = on;\n if (on) this.validation = null;\n this.render();\n }\n\n showValidation(message: string | null): void {\n this.validation = message;\n this.render();\n }\n\n get isOpen(): boolean {\n return this.rendered && !this.leaving;\n }\n\n // ---------- template events ----------\n\n async confirm(): Promise<void> {\n if (this.loading || !this.resolveFn) return;\n const run = this.run;\n let value: unknown = this.o.input ? this.readInput() : true;\n const field = this.field();\n if (field && 'checkValidity' in field && !field.checkValidity()) {\n this.showValidation(this.o.validationMessage || field.validationMessage);\n field.focus();\n return;\n }\n if (this.o.inputValidator) {\n const message = await this.o.inputValidator(value);\n if (run !== this.run) return;\n if (message) {\n this.showValidation(message);\n field?.focus();\n return;\n }\n }\n if (this.o.preConfirm) {\n this.setLoading(true);\n try {\n const r = await this.o.preConfirm(value);\n if (run !== this.run) return;\n if (r === false) {\n this.setLoading(false);\n return;\n }\n if (r !== undefined) value = r;\n } catch (e) {\n if (run !== this.run) return;\n this.loading = false;\n this.showValidation(e instanceof Error ? e.message : String(e));\n return;\n }\n }\n this.settle({ isConfirmed: true, isDenied: false, isDismissed: false, value });\n }\n\n deny(): void {\n if (this.loading) return;\n this.settle({ isConfirmed: false, isDenied: true, isDismissed: false, value: false });\n }\n\n dismiss(reason: WuAlertDismissReason): void {\n this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, dismiss: reason });\n }\n\n typed(event: Event): void {\n const el = event.target as HTMLInputElement;\n this.inputValue = el.type === 'checkbox' ? el.checked : el.value;\n if (this.validation) this.showValidation(null);\n }\n\n keydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n // Ours to decide, so the browser does not close the <dialog> by itself.\n event.preventDefault();\n event.stopPropagation();\n if (this.o.allowEscapeKey !== false && !this.loading) this.dismiss('esc');\n } else if (event.key === 'Enter' && this.o.allowEnterKey !== false && !event.isComposing) {\n const t = event.target as HTMLElement;\n if (t.classList.contains('wu-alert-field') && t.tagName === 'INPUT') {\n event.preventDefault();\n this.confirm();\n }\n }\n }\n\n cancelEvent(event: Event): void {\n event.preventDefault();\n if (this.o.allowEscapeKey !== false && !this.loading) this.dismiss('esc');\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (!onMask || this.loading) return;\n const allow = this.o.allowOutsideClick;\n if (allow === undefined || allow === true || (typeof allow === 'function' && allow())) this.dismiss('backdrop');\n }\n\n // ---------- lifecycle ----------\n\n ngAfterViewChecked(): void {\n this.showIfPending();\n }\n\n private showIfPending(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n const popup = this.popupRef?.nativeElement;\n if (!el || !popup) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n el.showModal();\n } catch {\n el.setAttribute('open', '');\n }\n this.unlockScroll = this.unlockScroll || ɵlockScroll(this.doc);\n // Toasts on screen move back above this alert.\n this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n }\n const field = this.field();\n if (field) for (const [k, v] of Object.entries(this.o.inputAttributes || {})) field.setAttribute(k, v);\n const focus =\n field ||\n popup.querySelector<HTMLElement>(this.o.focusCancel ? '.wu-alert-cancel' : '.wu-alert-confirm') ||\n popup.querySelector<HTMLElement>('.wu-alert-button, .wu-alert-close') ||\n popup;\n focus.focus({ preventScroll: true });\n if (this.o.timer) this.timer = setTimeout(() => this.dismiss('timer'), this.o.timer);\n // Callbacks often change the alert (showLoading in didOpen); run them after this check.\n const didOpen = this.o.didOpen;\n if (didOpen) Promise.resolve().then(() => didOpen(popup));\n }\n\n ngOnDestroy(): void {\n this.clearTimers();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.unlockScroll?.();\n }\n\n // ---------- internals ----------\n\n private settle(result: WuAlertResult, animate = true): void {\n const resolve = this.resolveFn;\n this.resolveFn = null;\n this.clearTimers();\n if (animate) this.beginClose();\n resolve?.(result);\n }\n\n private beginClose(): void {\n const popup = this.popupRef?.nativeElement;\n const o = this.o;\n if (popup) o.willClose?.(popup);\n this.leaving = true;\n this.loading = false;\n this.render();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.closeTimer = setTimeout(() => {\n this.closeTimer = null;\n // A new alert opened during the fade-out takes the popup over.\n if (!this.leaving) return;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.rendered = false;\n this.leaving = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.render();\n o.didClose?.();\n }, reduce ? 0 : 150);\n }\n\n private readInput(): unknown {\n if (this.o.input === 'checkbox') return this.inputValue ? 1 : 0;\n return this.inputValue === null || this.inputValue === undefined ? '' : this.inputValue;\n }\n\n private field(): HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null {\n return this.popupRef?.nativeElement.querySelector('.wu-alert-field') ?? null;\n }\n\n private clearTimers(): void {\n if (this.timer) clearTimeout(this.timer);\n this.timer = null;\n }\n\n /** Draws now when called from app code (outside change detection), and marks the view for the next check too. */\n private render(): void {\n this.cdr.markForCheck();\n try {\n this.cdr.detectChanges();\n } catch {\n // Inside a check already: the mark above draws it.\n }\n }\n}\n","import { NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK, ɵWuStyleLoader } from '@wirabyte/ui/config';\nimport { ɵWU_INPUTTEXT_CSS } from '@wirabyte/ui/inputtext';\nimport { ɵWuAlertDialogBase } from './alert-dialog.base';\n\n/** The popup `WuAlert.fire()` shows. Created by `WuAlertService`; apps do not place it in templates. */\n@Component({\n selector: 'wu-alertdialog',\n standalone: true,\n imports: [NgClass],\n templateUrl: './alert-dialog.component.html',\n styleUrl: './alert.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAlertDialog extends ɵWuAlertDialogBase {\n constructor() {\n super();\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('inputtext', ɵWU_INPUTTEXT_CSS);\n }\n}\n","@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n","import { NgModule } from '@angular/core';\nimport { WuAlertDialog } from './alert-dialog.component';\n\n/** For NgModule apps; nothing to declare in templates, as alerts are opened from code (`WuAlertService`, `WuAlert`). */\n@NgModule({\n imports: [WuAlertDialog],\n exports: [WuAlertDialog],\n})\nexport class WuAlertModule {}\n","import { DOCUMENT } from '@angular/common';\nimport { ApplicationRef, ComponentRef, createComponent, EnvironmentInjector, inject, Injectable, OnDestroy } from '@angular/core';\nimport { ɵwuRootInjector } from '@wirabyte/ui/config';\nimport { WuAlertDialog } from './alert-dialog.component';\nimport { WuAlertDismissReason, WuAlertIcon, WuAlertOptions, WuAlertResult } from './alert.types';\n\n/**\n * Ready-made alerts and questions: an animated icon, a title, text or HTML, optional input, and buttons.\n *\n * ```ts\n * const r = await alert.fire({ title: 'ลบรายการนี้?', icon: 'warning', showCancelButton: true });\n * if (r.isConfirmed) …\n * alert.fire('บันทึกแล้ว', '', 'success');\n * ```\n * The same calls work statically through `WuAlert`, so code written for a global alert function moves over by\n * changing its import.\n */\n@Injectable({ providedIn: 'root' })\nexport class WuAlertService implements OnDestroy {\n private host: ComponentRef<WuAlertDialog> | null = null;\n private readonly appRef = inject(ApplicationRef);\n private readonly injector = inject(EnvironmentInjector);\n private readonly doc = inject(DOCUMENT);\n\n fire<T = any>(options: WuAlertOptions): Promise<WuAlertResult<T>>;\n fire<T = any>(title?: string, text?: string, icon?: WuAlertIcon): Promise<WuAlertResult<T>>;\n fire<T = any>(a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon): Promise<WuAlertResult<T>> {\n const options = typeof a === 'object' && a !== null ? a : { title: a, text, icon };\n return this.dialog().open(options) as Promise<WuAlertResult<T>>;\n }\n\n success(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'success' });\n }\n error(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'error' });\n }\n warning(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'warning' });\n }\n info(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'info' });\n }\n question(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'question' });\n }\n\n /** A yes/no question that resolves to true only on confirm. Cancel is focused, so Enter does not confirm by accident. */\n async confirm(options: WuAlertOptions | string, text?: string): Promise<boolean> {\n const o = typeof options === 'string' ? { title: options, text } : options;\n const r = await this.fire({ icon: 'question', showCancelButton: true, focusCancel: true, ...o });\n return r.isConfirmed;\n }\n\n /** A preset that later calls build on: `const toastLike = alert.mixin({ timer: 2000 })`. */\n mixin(defaults: WuAlertOptions): Pick<WuAlertService, 'fire'> {\n return {\n fire: ((a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon) =>\n this.fire({ ...defaults, ...(typeof a === 'object' && a !== null ? a : { title: a, text, icon }) })) as WuAlertService['fire'],\n };\n }\n\n /** Closes the alert on screen (it resolves as dismissed). */\n close(result?: Partial<WuAlertResult>): void {\n this.host?.instance.closeAlert(result);\n }\n\n /** A spinner in place of the buttons. Opens an alert with only the spinner when none is showing. */\n showLoading(): void {\n const d = this.dialog();\n if (!d.isOpen) d.open({ showConfirmButton: false, allowOutsideClick: false, allowEscapeKey: false });\n d.setLoading(true);\n }\n hideLoading(): void {\n this.host?.instance.setLoading(false);\n }\n isLoading(): boolean {\n return !!this.host?.instance.loading;\n }\n isVisible(): boolean {\n return !!this.host?.instance.isOpen;\n }\n /** The popup element, or null. */\n getPopup(): HTMLElement | null {\n return this.isVisible() ? this.host?.instance.popupRef?.nativeElement ?? null : null;\n }\n clickConfirm(): void {\n this.host?.instance.confirm();\n }\n clickCancel(): void {\n this.host?.instance.dismiss('cancel');\n }\n showValidationMessage(message: string): void {\n this.host?.instance.showValidation(message);\n }\n resetValidationMessage(): void {\n this.host?.instance.showValidation(null);\n }\n\n ngOnDestroy(): void {\n this.host?.destroy();\n this.host = null;\n }\n\n private dialog(): WuAlertDialog {\n if (!this.host) {\n this.host = createComponent(WuAlertDialog, { environmentInjector: this.injector });\n this.appRef.attachView(this.host.hostView);\n this.doc.body.appendChild(this.host.location.nativeElement);\n }\n return this.host.instance;\n }\n}\n\nfunction service(): WuAlertService {\n const injector = ɵwuRootInjector();\n if (!injector) throw new Error('WuAlert needs provideWiraUI() (or WiraUIModule.forRoot()) in the app providers.');\n return injector.get(WuAlertService);\n}\n\nconst DISMISS: Record<WuAlertDismissReason, WuAlertDismissReason> = { cancel: 'cancel', backdrop: 'backdrop', close: 'close', esc: 'esc', timer: 'timer' };\n\n/**\n * `WuAlertService` without injection, for code that calls an alert from anywhere:\n * `import { WuAlert as Swal } from '@wirabyte/ui/alert'` keeps `Swal.fire(...)` calls working as they are.\n */\nexport const WuAlert = {\n fire: ((a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon) => service().fire(a as string, text, icon)) as WuAlertService['fire'],\n success: (title: string, text?: string) => service().success(title, text),\n error: (title: string, text?: string) => service().error(title, text),\n warning: (title: string, text?: string) => service().warning(title, text),\n info: (title: string, text?: string) => service().info(title, text),\n question: (title: string, text?: string) => service().question(title, text),\n confirm: (options: WuAlertOptions | string, text?: string) => service().confirm(options, text),\n mixin: (defaults: WuAlertOptions) => service().mixin(defaults),\n close: (result?: Partial<WuAlertResult>) => service().close(result),\n showLoading: () => service().showLoading(),\n hideLoading: () => service().hideLoading(),\n isLoading: () => service().isLoading(),\n isVisible: () => service().isVisible(),\n getPopup: () => service().getPopup(),\n clickConfirm: () => service().clickConfirm(),\n clickCancel: () => service().clickCancel(),\n showValidationMessage: (message: string) => service().showValidationMessage(message),\n resetValidationMessage: () => service().resetValidationMessage(),\n DismissReason: DISMISS,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵuniqueId","ɵlockScroll","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵWuStyleLoader","ɵWU_INPUTTEXT_CSS","ɵwuRootInjector"],"mappings":";;;;;;AAOA,MAAM,KAAK,GAA8B;AACvC,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,IAAI,EAAE,UAAU;CACjB;AAED;;;AAGG;MAEmB,kBAAkB,CAAA;AADxC,IAAA,WAAA,GAAA;QAKE,IAAA,CAAA,CAAC,GAAmB,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AC1C,SAAS,EAAE,MAAM,OAAO,EAAE,CAAC,SAAS,EAAE;IACtC,SAAS,EAAE,MAAM,OAAO,EAAE,CAAC,SAAS,EAAE;IACtC,QAAQ,EAAE,MAAM,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,MAAM,OAAO,EAAE,CAAC,YAAY,EAAE;IAC5C,WAAW,EAAE,MAAM,OAAO,EAAE,CAAC,WAAW,EAAE;AAC1C,IAAA,qBAAqB,EAAE,CAAC,OAAe,KAAK,OAAO,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC;IACpF,sBAAsB,EAAE,MAAM,OAAO,EAAE,CAAC,sBAAsB,EAAE;AAChE,IAAA,aAAa,EAAE,OAAO;;;ACjJxB;;AAEG;;"}
1
+ {"version":3,"file":"wirabyte-ui-alert.mjs","sources":["../../lib/alert/alert-dialog.base.ts","../../lib/alert/alert-dialog.component.ts","../../lib/alert/alert-dialog.component.html","../../lib/alert/alert.module.ts","../../lib/alert/alert.service.ts","../../lib/alert/wirabyte-ui-alert.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { AfterViewChecked, ChangeDetectorRef, Directive, ElementRef, inject, OnDestroy, ViewChild } from '@angular/core';\nimport { ɵlockScroll, ɵuniqueId, WuConfig } from '@wirabyte/ui/config';\nimport { WuLocale } from '@wirabyte/ui/core';\nimport { WuAlertDismissReason, WuAlertIcon, WuAlertOptions, WuAlertResult } from './alert.types';\n\ntype Icon = 'success' | 'error' | 'warning' | 'info' | 'question';\nconst ICONS: Record<WuAlertIcon, Icon> = {\n success: 'success',\n error: 'error',\n danger: 'error',\n warning: 'warning',\n warn: 'warning',\n info: 'info',\n question: 'question',\n help: 'question',\n};\n\n/**\n * The popup behind `WuAlert.fire()`: one per app, created on first use and reused. Shared logic of the v1 and\n * v2/v3 templates. A native modal <dialog>, so it opens above everything, dialogs included.\n */\n@Directive()\nexport abstract class ɵWuAlertDialogBase implements AfterViewChecked, OnDestroy {\n @ViewChild('mask') maskRef?: ElementRef<HTMLDialogElement>;\n @ViewChild('popup') popupRef?: ElementRef<HTMLElement>;\n\n o: WuAlertOptions = {};\n rendered = false;\n leaving = false;\n loading = false;\n icon: Icon | null = null;\n /** What the input holds, as the result will carry it. */\n inputValue: unknown = '';\n validation: string | null = null;\n /** One entry, changed on every fire, so the icon animation plays again. */\n runs: number[] = [0];\n readonly titleId = ɵuniqueId('wu-alert-title');\n readonly textId = ɵuniqueId('wu-alert-text');\n\n private run = 0;\n private resolveFn: ((r: WuAlertResult) => void) | null = null;\n private pendingShow = false;\n private downOnMask = false;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private timer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n protected readonly cdr = inject(ChangeDetectorRef);\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get confirmText(): string {\n return this.o.confirmButtonText ?? this.t.accept;\n }\n get cancelText(): string {\n return this.o.cancelButtonText ?? this.t.cancel;\n }\n get denyText(): string {\n return this.o.denyButtonText ?? this.t.no;\n }\n get showConfirm(): boolean {\n return this.o.showConfirmButton !== false;\n }\n /** The buttons in screen and Tab order: cancel, deny, confirm unless `reverseButtons: false`. */\n get actions(): ('confirm' | 'deny' | 'cancel')[] {\n const list: ('confirm' | 'deny' | 'cancel')[] = [];\n if (this.showConfirm) list.push('confirm');\n if (this.o.showDenyButton) list.push('deny');\n if (this.o.showCancelButton) list.push('cancel');\n return this.o.reverseButtons === false ? list : list.reverse();\n }\n get hasActions(): boolean {\n return !this.loading && (this.showConfirm || !!this.o.showCancelButton || !!this.o.showDenyButton);\n }\n get popupWidth(): string | null {\n const w = this.o.width;\n return w === undefined || w === null || w === '' ? null : typeof w === 'number' ? `${w}px` : w;\n }\n get options(): { value: string; label: string }[] {\n return Object.entries(this.o.inputOptions || {}).map(([value, label]) => ({ value, label }));\n }\n get isTextInput(): boolean {\n const i = this.o.input;\n return !!i && i !== 'textarea' && i !== 'select' && i !== 'radio' && i !== 'checkbox';\n }\n /** A class from `customClass` for one part (a plain string goes on the popup). */\n part(name: 'popup' | 'title' | 'htmlContainer' | 'confirmButton' | 'cancelButton' | 'denyButton'): string {\n const c = this.o.customClass;\n if (!c) return '';\n if (typeof c === 'string') return name === 'popup' ? c : '';\n return c[name] || '';\n }\n\n // ---------- called by WuAlertService ----------\n\n open(options: WuAlertOptions): Promise<WuAlertResult> {\n // A new alert replaces the one on screen, which resolves as dismissed.\n if (this.resolveFn) this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, dismiss: 'close' }, false);\n this.clearTimers();\n if (!this.rendered || this.leaving) {\n if (!this.rendered) {\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n }\n this.leaving = false;\n }\n this.o = { ...options };\n this.icon = options.icon ? ICONS[options.icon] || null : null;\n this.inputValue = options.inputValue ?? (options.input === 'checkbox' ? false : '');\n this.validation = null;\n this.loading = false;\n this.runs = [++this.run];\n this.rendered = true;\n this.pendingShow = true;\n const promise = new Promise<WuAlertResult>((resolve) => (this.resolveFn = resolve));\n this.render();\n // Opened here, not only in ngAfterViewChecked: this popup lives outside the page's view tree, and in zoneless apps\n // nothing else checks it again.\n this.showIfPending();\n return promise;\n }\n\n /** Closes the alert on screen; it resolves as dismissed. */\n closeAlert(result?: Partial<WuAlertResult>): void {\n if (!this.resolveFn) return;\n this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, ...result });\n }\n\n setLoading(on: boolean): void {\n this.loading = on;\n if (on) this.validation = null;\n this.render();\n }\n\n showValidation(message: string | null): void {\n this.validation = message;\n this.render();\n }\n\n get isOpen(): boolean {\n return this.rendered && !this.leaving;\n }\n\n // ---------- template events ----------\n\n async confirm(): Promise<void> {\n if (this.loading || !this.resolveFn) return;\n const run = this.run;\n let value: unknown = this.o.input ? this.readInput() : true;\n const field = this.field();\n if (field && 'checkValidity' in field && !field.checkValidity()) {\n this.showValidation(this.o.validationMessage || field.validationMessage);\n field.focus();\n return;\n }\n if (this.o.inputValidator) {\n const message = await this.o.inputValidator(value);\n if (run !== this.run) return;\n if (message) {\n this.showValidation(message);\n field?.focus();\n return;\n }\n }\n if (this.o.preConfirm) {\n this.setLoading(true);\n try {\n const r = await this.o.preConfirm(value);\n if (run !== this.run) return;\n if (r === false) {\n this.setLoading(false);\n return;\n }\n if (r !== undefined) value = r;\n } catch (e) {\n if (run !== this.run) return;\n this.loading = false;\n this.showValidation(e instanceof Error ? e.message : String(e));\n return;\n }\n }\n this.settle({ isConfirmed: true, isDenied: false, isDismissed: false, value });\n }\n\n deny(): void {\n if (this.loading) return;\n this.settle({ isConfirmed: false, isDenied: true, isDismissed: false, value: false });\n }\n\n dismiss(reason: WuAlertDismissReason): void {\n this.settle({ isConfirmed: false, isDenied: false, isDismissed: true, dismiss: reason });\n }\n\n typed(event: Event): void {\n const el = event.target as HTMLInputElement;\n this.inputValue = el.type === 'checkbox' ? el.checked : el.value;\n if (this.validation) this.showValidation(null);\n }\n\n keydown(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n // Ours to decide, so the browser does not close the <dialog> by itself.\n event.preventDefault();\n event.stopPropagation();\n if (this.o.allowEscapeKey !== false && !this.loading) this.dismiss('esc');\n } else if (event.key === 'Enter' && this.o.allowEnterKey !== false && !event.isComposing) {\n const t = event.target as HTMLElement;\n if (t.classList.contains('wu-alert-field') && t.tagName === 'INPUT') {\n event.preventDefault();\n this.confirm();\n }\n }\n }\n\n cancelEvent(event: Event): void {\n event.preventDefault();\n if (this.o.allowEscapeKey !== false && !this.loading) this.dismiss('esc');\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (!onMask || this.loading) return;\n const allow = this.o.allowOutsideClick;\n if (allow === undefined || allow === true || (typeof allow === 'function' && allow())) this.dismiss('backdrop');\n }\n\n // ---------- lifecycle ----------\n\n ngAfterViewChecked(): void {\n this.showIfPending();\n }\n\n private showIfPending(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n const popup = this.popupRef?.nativeElement;\n if (!el || !popup) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n el.showModal();\n } catch {\n el.setAttribute('open', '');\n }\n this.unlockScroll = this.unlockScroll || ɵlockScroll(this.doc);\n // Toasts on screen move back above this alert.\n this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n }\n const field = this.field();\n if (field) for (const [k, v] of Object.entries(this.o.inputAttributes || {})) field.setAttribute(k, v);\n const focus =\n field ||\n popup.querySelector<HTMLElement>(this.o.focusCancel ? '.wu-alert-cancel' : '.wu-alert-confirm') ||\n popup.querySelector<HTMLElement>('.wu-alert-button, .wu-alert-close') ||\n popup;\n focus.focus({ preventScroll: true });\n if (this.o.timer) this.timer = setTimeout(() => this.dismiss('timer'), this.o.timer);\n // Callbacks often change the alert (showLoading in didOpen); run them after this check.\n const didOpen = this.o.didOpen;\n if (didOpen) Promise.resolve().then(() => didOpen(popup));\n }\n\n ngOnDestroy(): void {\n this.clearTimers();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.unlockScroll?.();\n }\n\n // ---------- internals ----------\n\n private settle(result: WuAlertResult, animate = true): void {\n const resolve = this.resolveFn;\n this.resolveFn = null;\n this.clearTimers();\n if (animate) this.beginClose();\n resolve?.(result);\n }\n\n private beginClose(): void {\n const popup = this.popupRef?.nativeElement;\n const o = this.o;\n if (popup) o.willClose?.(popup);\n this.leaving = true;\n this.loading = false;\n this.render();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.closeTimer = setTimeout(() => {\n this.closeTimer = null;\n // A new alert opened during the fade-out takes the popup over.\n if (!this.leaving) return;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.rendered = false;\n this.leaving = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.render();\n o.didClose?.();\n }, reduce ? 0 : 150);\n }\n\n private readInput(): unknown {\n if (this.o.input === 'checkbox') return this.inputValue ? 1 : 0;\n return this.inputValue === null || this.inputValue === undefined ? '' : this.inputValue;\n }\n\n private field(): HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null {\n return this.popupRef?.nativeElement.querySelector('.wu-alert-field') ?? null;\n }\n\n private clearTimers(): void {\n if (this.timer) clearTimeout(this.timer);\n this.timer = null;\n }\n\n /** Draws now when called from app code (outside change detection), and marks the view for the next check too. */\n private render(): void {\n this.cdr.markForCheck();\n try {\n this.cdr.detectChanges();\n } catch {\n // Inside a check already: the mark above draws it.\n }\n }\n}\n","import { NgClass } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK, ɵWuStyleLoader } from '@wirabyte/ui/config';\nimport { ɵWU_INPUTTEXT_CSS } from '@wirabyte/ui/inputtext';\nimport { ɵWuAlertDialogBase } from './alert-dialog.base';\n\n/** The popup `WuAlert.fire()` shows. Created by `WuAlertService`; apps do not place it in templates. */\n@Component({\n selector: 'wu-alertdialog',\n standalone: true,\n imports: [NgClass],\n templateUrl: './alert-dialog.component.html',\n styleUrl: './alert.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAlertDialog extends ɵWuAlertDialogBase {\n constructor() {\n super();\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('inputtext', ɵWU_INPUTTEXT_CSS);\n }\n}\n","@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n","import { NgModule } from '@angular/core';\nimport { WuAlertDialog } from './alert-dialog.component';\n\n/** For NgModule apps; nothing to declare in templates, as alerts are opened from code (`WuAlertService`, `WuAlert`). */\n@NgModule({\n imports: [WuAlertDialog],\n exports: [WuAlertDialog],\n})\nexport class WuAlertModule {}\n","import { DOCUMENT } from '@angular/common';\nimport { ApplicationRef, ComponentRef, createComponent, EnvironmentInjector, inject, Injectable, OnDestroy } from '@angular/core';\nimport { ɵwuRootInjector } from '@wirabyte/ui/config';\nimport { WuAlertDialog } from './alert-dialog.component';\nimport { WuAlertDismissReason, WuAlertIcon, WuAlertOptions, WuAlertResult } from './alert.types';\n\n/**\n * Ready-made alerts and questions: an animated icon, a title, text or HTML, optional input, and buttons.\n *\n * ```ts\n * const r = await alert.fire({ title: 'ลบรายการนี้?', icon: 'warning', showCancelButton: true });\n * if (r.isConfirmed) …\n * alert.fire('บันทึกแล้ว', '', 'success');\n * ```\n * The same calls work statically through `WuAlert`, so code written for a global alert function moves over by\n * changing its import.\n */\n@Injectable({ providedIn: 'root' })\nexport class WuAlertService implements OnDestroy {\n private host: ComponentRef<WuAlertDialog> | null = null;\n private readonly appRef = inject(ApplicationRef);\n private readonly injector = inject(EnvironmentInjector);\n private readonly doc = inject(DOCUMENT);\n\n fire<T = any>(options: WuAlertOptions): Promise<WuAlertResult<T>>;\n fire<T = any>(title?: string, text?: string, icon?: WuAlertIcon): Promise<WuAlertResult<T>>;\n fire<T = any>(a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon): Promise<WuAlertResult<T>> {\n const options = typeof a === 'object' && a !== null ? a : { title: a, text, icon };\n return this.dialog().open(options) as Promise<WuAlertResult<T>>;\n }\n\n success(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'success' });\n }\n error(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'error' });\n }\n warning(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'warning' });\n }\n info(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'info' });\n }\n question(title: string, text?: string): Promise<WuAlertResult> {\n return this.fire({ title, text, icon: 'question' });\n }\n\n /** A yes/no question that resolves to true only on confirm. Cancel is focused, so Enter does not confirm by accident. */\n async confirm(options: WuAlertOptions | string, text?: string): Promise<boolean> {\n const o = typeof options === 'string' ? { title: options, text } : options;\n const r = await this.fire({ icon: 'question', showCancelButton: true, focusCancel: true, ...o });\n return r.isConfirmed;\n }\n\n /** A preset that later calls build on: `const toastLike = alert.mixin({ timer: 2000 })`. */\n mixin(defaults: WuAlertOptions): Pick<WuAlertService, 'fire'> {\n return {\n fire: ((a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon) =>\n this.fire({ ...defaults, ...(typeof a === 'object' && a !== null ? a : { title: a, text, icon }) })) as WuAlertService['fire'],\n };\n }\n\n /** Closes the alert on screen (it resolves as dismissed). */\n close(result?: Partial<WuAlertResult>): void {\n this.host?.instance.closeAlert(result);\n }\n\n /** A spinner in place of the buttons. Opens an alert with only the spinner when none is showing. */\n showLoading(): void {\n const d = this.dialog();\n if (!d.isOpen) d.open({ showConfirmButton: false, allowOutsideClick: false, allowEscapeKey: false });\n d.setLoading(true);\n }\n hideLoading(): void {\n this.host?.instance.setLoading(false);\n }\n isLoading(): boolean {\n return !!this.host?.instance.loading;\n }\n isVisible(): boolean {\n return !!this.host?.instance.isOpen;\n }\n /** The popup element, or null. */\n getPopup(): HTMLElement | null {\n return this.isVisible() ? this.host?.instance.popupRef?.nativeElement ?? null : null;\n }\n clickConfirm(): void {\n this.host?.instance.confirm();\n }\n clickCancel(): void {\n this.host?.instance.dismiss('cancel');\n }\n showValidationMessage(message: string): void {\n this.host?.instance.showValidation(message);\n }\n resetValidationMessage(): void {\n this.host?.instance.showValidation(null);\n }\n\n ngOnDestroy(): void {\n this.host?.destroy();\n this.host = null;\n }\n\n private dialog(): WuAlertDialog {\n if (!this.host) {\n this.host = createComponent(WuAlertDialog, { environmentInjector: this.injector });\n this.appRef.attachView(this.host.hostView);\n this.doc.body.appendChild(this.host.location.nativeElement);\n }\n return this.host.instance;\n }\n}\n\nfunction service(): WuAlertService {\n const injector = ɵwuRootInjector();\n if (!injector) throw new Error('WuAlert needs provideWiraUI() (or WiraUIModule.forRoot()) in the app providers.');\n return injector.get(WuAlertService);\n}\n\nconst DISMISS: Record<WuAlertDismissReason, WuAlertDismissReason> = { cancel: 'cancel', backdrop: 'backdrop', close: 'close', esc: 'esc', timer: 'timer' };\n\n/**\n * `WuAlertService` without injection, for code that calls an alert from anywhere:\n * `import { WuAlert as Swal } from '@wirabyte/ui/alert'` keeps `Swal.fire(...)` calls working as they are.\n */\nexport const WuAlert = {\n fire: ((a?: string | WuAlertOptions, text?: string, icon?: WuAlertIcon) => service().fire(a as string, text, icon)) as WuAlertService['fire'],\n success: (title: string, text?: string) => service().success(title, text),\n error: (title: string, text?: string) => service().error(title, text),\n warning: (title: string, text?: string) => service().warning(title, text),\n info: (title: string, text?: string) => service().info(title, text),\n question: (title: string, text?: string) => service().question(title, text),\n confirm: (options: WuAlertOptions | string, text?: string) => service().confirm(options, text),\n mixin: (defaults: WuAlertOptions) => service().mixin(defaults),\n close: (result?: Partial<WuAlertResult>) => service().close(result),\n showLoading: () => service().showLoading(),\n hideLoading: () => service().hideLoading(),\n isLoading: () => service().isLoading(),\n isVisible: () => service().isVisible(),\n getPopup: () => service().getPopup(),\n clickConfirm: () => service().clickConfirm(),\n clickCancel: () => service().clickCancel(),\n showValidationMessage: (message: string) => service().showValidationMessage(message),\n resetValidationMessage: () => service().resetValidationMessage(),\n DismissReason: DISMISS,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵuniqueId","ɵlockScroll","ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵWuStyleLoader","ɵWU_INPUTTEXT_CSS","ɵwuRootInjector"],"mappings":";;;;;;AAOA,MAAM,KAAK,GAA8B;AACvC,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,IAAI,EAAE,UAAU;CACjB;AAED;;;AAGG;MAEmB,kBAAkB,CAAA;AADxC,IAAA,WAAA,GAAA;QAKE,IAAA,CAAA,CAAC,GAAmB,EAAE;QACtB,IAAA,CAAA,QAAQ,GAAG,KAAK;QAChB,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,IAAI,GAAgB,IAAI;;QAExB,IAAA,CAAA,UAAU,GAAY,EAAE;QACxB,IAAA,CAAA,UAAU,GAAkB,IAAI;;AAEhC,QAAA,IAAA,CAAA,IAAI,GAAa,CAAC,CAAC,CAAC;AACX,QAAA,IAAA,CAAA,OAAO,GAAGA,SAAS,CAAC,gBAAgB,CAAC;AACrC,QAAA,IAAA,CAAA,MAAM,GAAGA,SAAS,CAAC,eAAe,CAAC;QAEpC,IAAA,CAAA,GAAG,GAAG,CAAC;QACP,IAAA,CAAA,SAAS,GAAwC,IAAI;QACrD,IAAA,CAAA,WAAW,GAAG,KAAK;QACnB,IAAA,CAAA,UAAU,GAAG,KAAK;QAClB,IAAA,CAAA,UAAU,GAAyC,IAAI;QACvD,IAAA,CAAA,KAAK,GAAyC,IAAI;QAClD,IAAA,CAAA,YAAY,GAAwB,IAAI;QACxC,IAA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