@wirabyte/ui 1.0.0-beta.0 → 1.1.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 (262) hide show
  1. package/CHANGELOG.md +42 -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 +13 -0
  13. package/config/theme.service.d.ts +5 -0
  14. package/config/wu-config.service.d.ts +16 -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 +3 -2
  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/esm2020/accordion/accordion.component.mjs +4 -4
  24. package/esm2020/alert/alert-dialog.component.mjs +3 -3
  25. package/esm2020/asidemenu/asidemenu.component.mjs +3 -3
  26. package/esm2020/avatar/avatar.component.mjs +10 -5
  27. package/esm2020/avatar/avatar.types.mjs +2 -2
  28. package/esm2020/breadcrumb/breadcrumb.component.mjs +5 -3
  29. package/esm2020/button/button.component.mjs +3 -3
  30. package/esm2020/button/button.styles.mjs +2 -2
  31. package/esm2020/card/card.component.mjs +8 -8
  32. package/esm2020/chat/chat.component.mjs +370 -0
  33. package/esm2020/chat/chat.module.mjs +17 -0
  34. package/esm2020/chat/chat.types.mjs +2 -0
  35. package/esm2020/chat/public-api.mjs +4 -0
  36. package/esm2020/chat/wirabyte-ui-chat.mjs +5 -0
  37. package/esm2020/config/options.mjs +1 -1
  38. package/esm2020/config/theme.service.mjs +35 -3
  39. package/esm2020/config/wu-config.service.mjs +22 -1
  40. package/esm2020/core/catalog.mjs +22 -2
  41. package/esm2020/core/families.mjs +43 -1
  42. package/esm2020/core/overrides.mjs +26 -1
  43. package/esm2020/core/thai/locale.mjs +67 -1
  44. package/esm2020/datepicker/datepicker.component.mjs +5 -4
  45. package/esm2020/descriptions/descriptions.component.mjs +112 -0
  46. package/esm2020/descriptions/descriptions.module.mjs +17 -0
  47. package/esm2020/descriptions/public-api.mjs +3 -0
  48. package/esm2020/descriptions/wirabyte-ui-descriptions.mjs +5 -0
  49. package/esm2020/dialog/dialog.component.mjs +3 -3
  50. package/esm2020/drawer/drawer.component.mjs +3 -3
  51. package/esm2020/emptystate/emptystate.component.mjs +3 -3
  52. package/esm2020/errorpage/errorpage.component.mjs +3 -3
  53. package/esm2020/fieldset/fieldset.component.mjs +4 -4
  54. package/esm2020/metergroup/metergroup.component.mjs +29 -5
  55. package/esm2020/metergroup/metergroup.types.mjs +1 -1
  56. package/esm2020/navbar/navbar.component.mjs +3 -3
  57. package/esm2020/panel/panel.component.mjs +6 -6
  58. package/esm2020/popover/popover.base.mjs +3 -3
  59. package/esm2020/result/result.component.mjs +3 -3
  60. package/esm2020/scheduler/public-api.mjs +4 -0
  61. package/esm2020/scheduler/scheduler.component.mjs +484 -0
  62. package/esm2020/scheduler/scheduler.module.mjs +17 -0
  63. package/esm2020/scheduler/scheduler.types.mjs +2 -0
  64. package/esm2020/scheduler/wirabyte-ui-scheduler.mjs +5 -0
  65. package/esm2020/selectbutton/selectbutton.component.mjs +23 -5
  66. package/esm2020/signaturepad/public-api.mjs +3 -0
  67. package/esm2020/signaturepad/signaturepad.component.mjs +289 -0
  68. package/esm2020/signaturepad/signaturepad.module.mjs +17 -0
  69. package/esm2020/signaturepad/wirabyte-ui-signaturepad.mjs +5 -0
  70. package/esm2020/sitefooter/sitefooter.component.mjs +2 -2
  71. package/esm2020/stat/public-api.mjs +3 -0
  72. package/esm2020/stat/stat.component.mjs +128 -0
  73. package/esm2020/stat/stat.module.mjs +17 -0
  74. package/esm2020/stat/wirabyte-ui-stat.mjs +5 -0
  75. package/esm2020/table/table.celleditor.mjs +4 -4
  76. package/esm2020/tabs/tabs.component.mjs +3 -3
  77. package/esm2020/tag/tag.component.mjs +3 -3
  78. package/esm2020/textarea/textarea.directive.mjs +33 -1
  79. package/esm2020/thai/thai.pipes.mjs +3 -3
  80. package/esm2020/toolbar/toolbar.component.mjs +7 -7
  81. package/fesm2015/wirabyte-ui-accordion.mjs +3 -3
  82. package/fesm2015/wirabyte-ui-accordion.mjs.map +1 -1
  83. package/fesm2015/wirabyte-ui-alert.mjs +2 -2
  84. package/fesm2015/wirabyte-ui-alert.mjs.map +1 -1
  85. package/fesm2015/wirabyte-ui-asidemenu.mjs +2 -2
  86. package/fesm2015/wirabyte-ui-asidemenu.mjs.map +1 -1
  87. package/fesm2015/wirabyte-ui-avatar.mjs +11 -5
  88. package/fesm2015/wirabyte-ui-avatar.mjs.map +1 -1
  89. package/fesm2015/wirabyte-ui-breadcrumb.mjs +4 -2
  90. package/fesm2015/wirabyte-ui-breadcrumb.mjs.map +1 -1
  91. package/fesm2015/wirabyte-ui-button.mjs +3 -3
  92. package/fesm2015/wirabyte-ui-button.mjs.map +1 -1
  93. package/fesm2015/wirabyte-ui-card.mjs +7 -7
  94. package/fesm2015/wirabyte-ui-card.mjs.map +1 -1
  95. package/fesm2015/wirabyte-ui-chat.mjs +399 -0
  96. package/fesm2015/wirabyte-ui-chat.mjs.map +1 -0
  97. package/fesm2015/wirabyte-ui-config.mjs +55 -2
  98. package/fesm2015/wirabyte-ui-config.mjs.map +1 -1
  99. package/fesm2015/wirabyte-ui-core.mjs +147 -2
  100. package/fesm2015/wirabyte-ui-core.mjs.map +1 -1
  101. package/fesm2015/wirabyte-ui-datepicker.mjs +5 -4
  102. package/fesm2015/wirabyte-ui-datepicker.mjs.map +1 -1
  103. package/fesm2015/wirabyte-ui-descriptions.mjs +133 -0
  104. package/fesm2015/wirabyte-ui-descriptions.mjs.map +1 -0
  105. package/fesm2015/wirabyte-ui-dialog.mjs +2 -2
  106. package/fesm2015/wirabyte-ui-dialog.mjs.map +1 -1
  107. package/fesm2015/wirabyte-ui-drawer.mjs +2 -2
  108. package/fesm2015/wirabyte-ui-drawer.mjs.map +1 -1
  109. package/fesm2015/wirabyte-ui-emptystate.mjs +2 -2
  110. package/fesm2015/wirabyte-ui-emptystate.mjs.map +1 -1
  111. package/fesm2015/wirabyte-ui-errorpage.mjs +2 -2
  112. package/fesm2015/wirabyte-ui-errorpage.mjs.map +1 -1
  113. package/fesm2015/wirabyte-ui-fieldset.mjs +3 -3
  114. package/fesm2015/wirabyte-ui-fieldset.mjs.map +1 -1
  115. package/fesm2015/wirabyte-ui-metergroup.mjs +29 -4
  116. package/fesm2015/wirabyte-ui-metergroup.mjs.map +1 -1
  117. package/fesm2015/wirabyte-ui-navbar.mjs +2 -2
  118. package/fesm2015/wirabyte-ui-navbar.mjs.map +1 -1
  119. package/fesm2015/wirabyte-ui-panel.mjs +5 -5
  120. package/fesm2015/wirabyte-ui-panel.mjs.map +1 -1
  121. package/fesm2015/wirabyte-ui-popover.mjs +2 -2
  122. package/fesm2015/wirabyte-ui-popover.mjs.map +1 -1
  123. package/fesm2015/wirabyte-ui-result.mjs +2 -2
  124. package/fesm2015/wirabyte-ui-result.mjs.map +1 -1
  125. package/fesm2015/wirabyte-ui-scheduler.mjs +515 -0
  126. package/fesm2015/wirabyte-ui-scheduler.mjs.map +1 -0
  127. package/fesm2015/wirabyte-ui-selectbutton.mjs +22 -4
  128. package/fesm2015/wirabyte-ui-selectbutton.mjs.map +1 -1
  129. package/fesm2015/wirabyte-ui-signaturepad.mjs +313 -0
  130. package/fesm2015/wirabyte-ui-signaturepad.mjs.map +1 -0
  131. package/fesm2015/wirabyte-ui-sitefooter.mjs +1 -1
  132. package/fesm2015/wirabyte-ui-sitefooter.mjs.map +1 -1
  133. package/fesm2015/wirabyte-ui-stat.mjs +151 -0
  134. package/fesm2015/wirabyte-ui-stat.mjs.map +1 -0
  135. package/fesm2015/wirabyte-ui-table.mjs +3 -3
  136. package/fesm2015/wirabyte-ui-table.mjs.map +1 -1
  137. package/fesm2015/wirabyte-ui-tabs.mjs +2 -2
  138. package/fesm2015/wirabyte-ui-tabs.mjs.map +1 -1
  139. package/fesm2015/wirabyte-ui-tag.mjs +2 -2
  140. package/fesm2015/wirabyte-ui-tag.mjs.map +1 -1
  141. package/fesm2015/wirabyte-ui-textarea.mjs +32 -0
  142. package/fesm2015/wirabyte-ui-textarea.mjs.map +1 -1
  143. package/fesm2015/wirabyte-ui-thai.mjs +2 -2
  144. package/fesm2015/wirabyte-ui-thai.mjs.map +1 -1
  145. package/fesm2015/wirabyte-ui-toolbar.mjs +6 -6
  146. package/fesm2015/wirabyte-ui-toolbar.mjs.map +1 -1
  147. package/fesm2020/wirabyte-ui-accordion.mjs +3 -3
  148. package/fesm2020/wirabyte-ui-accordion.mjs.map +1 -1
  149. package/fesm2020/wirabyte-ui-alert.mjs +2 -2
  150. package/fesm2020/wirabyte-ui-alert.mjs.map +1 -1
  151. package/fesm2020/wirabyte-ui-asidemenu.mjs +2 -2
  152. package/fesm2020/wirabyte-ui-asidemenu.mjs.map +1 -1
  153. package/fesm2020/wirabyte-ui-avatar.mjs +11 -5
  154. package/fesm2020/wirabyte-ui-avatar.mjs.map +1 -1
  155. package/fesm2020/wirabyte-ui-breadcrumb.mjs +4 -2
  156. package/fesm2020/wirabyte-ui-breadcrumb.mjs.map +1 -1
  157. package/fesm2020/wirabyte-ui-button.mjs +3 -3
  158. package/fesm2020/wirabyte-ui-button.mjs.map +1 -1
  159. package/fesm2020/wirabyte-ui-card.mjs +7 -7
  160. package/fesm2020/wirabyte-ui-card.mjs.map +1 -1
  161. package/fesm2020/wirabyte-ui-chat.mjs +391 -0
  162. package/fesm2020/wirabyte-ui-chat.mjs.map +1 -0
  163. package/fesm2020/wirabyte-ui-config.mjs +55 -2
  164. package/fesm2020/wirabyte-ui-config.mjs.map +1 -1
  165. package/fesm2020/wirabyte-ui-core.mjs +155 -2
  166. package/fesm2020/wirabyte-ui-core.mjs.map +1 -1
  167. package/fesm2020/wirabyte-ui-datepicker.mjs +5 -4
  168. package/fesm2020/wirabyte-ui-datepicker.mjs.map +1 -1
  169. package/fesm2020/wirabyte-ui-descriptions.mjs +133 -0
  170. package/fesm2020/wirabyte-ui-descriptions.mjs.map +1 -0
  171. package/fesm2020/wirabyte-ui-dialog.mjs +2 -2
  172. package/fesm2020/wirabyte-ui-dialog.mjs.map +1 -1
  173. package/fesm2020/wirabyte-ui-drawer.mjs +2 -2
  174. package/fesm2020/wirabyte-ui-drawer.mjs.map +1 -1
  175. package/fesm2020/wirabyte-ui-emptystate.mjs +2 -2
  176. package/fesm2020/wirabyte-ui-emptystate.mjs.map +1 -1
  177. package/fesm2020/wirabyte-ui-errorpage.mjs +2 -2
  178. package/fesm2020/wirabyte-ui-errorpage.mjs.map +1 -1
  179. package/fesm2020/wirabyte-ui-fieldset.mjs +3 -3
  180. package/fesm2020/wirabyte-ui-fieldset.mjs.map +1 -1
  181. package/fesm2020/wirabyte-ui-metergroup.mjs +28 -4
  182. package/fesm2020/wirabyte-ui-metergroup.mjs.map +1 -1
  183. package/fesm2020/wirabyte-ui-navbar.mjs +2 -2
  184. package/fesm2020/wirabyte-ui-navbar.mjs.map +1 -1
  185. package/fesm2020/wirabyte-ui-panel.mjs +5 -5
  186. package/fesm2020/wirabyte-ui-panel.mjs.map +1 -1
  187. package/fesm2020/wirabyte-ui-popover.mjs +2 -2
  188. package/fesm2020/wirabyte-ui-popover.mjs.map +1 -1
  189. package/fesm2020/wirabyte-ui-result.mjs +2 -2
  190. package/fesm2020/wirabyte-ui-result.mjs.map +1 -1
  191. package/fesm2020/wirabyte-ui-scheduler.mjs +505 -0
  192. package/fesm2020/wirabyte-ui-scheduler.mjs.map +1 -0
  193. package/fesm2020/wirabyte-ui-selectbutton.mjs +22 -4
  194. package/fesm2020/wirabyte-ui-selectbutton.mjs.map +1 -1
  195. package/fesm2020/wirabyte-ui-signaturepad.mjs +310 -0
  196. package/fesm2020/wirabyte-ui-signaturepad.mjs.map +1 -0
  197. package/fesm2020/wirabyte-ui-sitefooter.mjs +1 -1
  198. package/fesm2020/wirabyte-ui-sitefooter.mjs.map +1 -1
  199. package/fesm2020/wirabyte-ui-stat.mjs +149 -0
  200. package/fesm2020/wirabyte-ui-stat.mjs.map +1 -0
  201. package/fesm2020/wirabyte-ui-table.mjs +3 -3
  202. package/fesm2020/wirabyte-ui-table.mjs.map +1 -1
  203. package/fesm2020/wirabyte-ui-tabs.mjs +2 -2
  204. package/fesm2020/wirabyte-ui-tabs.mjs.map +1 -1
  205. package/fesm2020/wirabyte-ui-tag.mjs +2 -2
  206. package/fesm2020/wirabyte-ui-tag.mjs.map +1 -1
  207. package/fesm2020/wirabyte-ui-textarea.mjs +32 -0
  208. package/fesm2020/wirabyte-ui-textarea.mjs.map +1 -1
  209. package/fesm2020/wirabyte-ui-thai.mjs +2 -2
  210. package/fesm2020/wirabyte-ui-thai.mjs.map +1 -1
  211. package/fesm2020/wirabyte-ui-toolbar.mjs +6 -6
  212. package/fesm2020/wirabyte-ui-toolbar.mjs.map +1 -1
  213. package/metergroup/metergroup.component.d.ts +16 -3
  214. package/metergroup/metergroup.types.d.ts +6 -0
  215. package/package.json +41 -1
  216. package/scheduler/index.d.ts +5 -0
  217. package/scheduler/public-api.d.ts +3 -0
  218. package/scheduler/scheduler.component.d.ts +143 -0
  219. package/scheduler/scheduler.module.d.ts +8 -0
  220. package/scheduler/scheduler.types.d.ts +46 -0
  221. package/schematics/core/catalog.cjs +22 -1
  222. package/schematics/core/families.cjs +42 -0
  223. package/schematics/core/overrides.cjs +25 -0
  224. package/schematics/core/thai/locale.cjs +66 -0
  225. package/schematics/ng-add/index.cjs +3 -1
  226. package/selectbutton/selectbutton.component.d.ts +12 -1
  227. package/signaturepad/index.d.ts +5 -0
  228. package/signaturepad/public-api.d.ts +2 -0
  229. package/signaturepad/signaturepad.component.d.ts +98 -0
  230. package/signaturepad/signaturepad.module.d.ts +8 -0
  231. package/stat/index.d.ts +5 -0
  232. package/stat/public-api.d.ts +2 -0
  233. package/stat/stat.component.d.ts +61 -0
  234. package/stat/stat.module.d.ts +8 -0
  235. package/textarea/textarea.directive.d.ts +3 -0
  236. package/theme/_data.scss +239 -7
  237. package/theme/_index.scss +29 -0
  238. package/themes/arun-blue/theme.css +30 -1
  239. package/themes/arun-green/theme.css +30 -1
  240. package/themes/arun-orange/theme.css +30 -1
  241. package/themes/arun-purple/theme.css +30 -1
  242. package/themes/md-dark-deeppurple/theme.css +30 -1
  243. package/themes/md-dark-indigo/theme.css +30 -1
  244. package/themes/md-light-deeppurple/theme.css +30 -1
  245. package/themes/md-light-indigo/theme.css +30 -1
  246. package/themes/ratri-blue/theme.css +30 -1
  247. package/themes/ratri-green/theme.css +30 -1
  248. package/themes/ratri-orange/theme.css +30 -1
  249. package/themes/ratri-purple/theme.css +30 -1
  250. package/themes/sayan-blue/theme.css +30 -1
  251. package/themes/sayan-green/theme.css +30 -1
  252. package/themes/sayan-orange/theme.css +30 -1
  253. package/themes/sayan-purple/theme.css +30 -1
  254. package/themes/sila-dark-blue/theme.css +30 -1
  255. package/themes/sila-dark-indigo/theme.css +30 -1
  256. package/themes/sila-dark-purple/theme.css +30 -1
  257. package/themes/sila-dark-teal/theme.css +30 -1
  258. package/themes/sila-light-blue/theme.css +30 -1
  259. package/themes/sila-light-indigo/theme.css +30 -1
  260. package/themes/sila-light-purple/theme.css +30 -1
  261. package/themes/sila-light-teal/theme.css +30 -1
  262. package/themes/sila-light-wira/theme.css +30 -1
@@ -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, NgFor, NgIf, NgSwitch, NgSwitchCase } 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, NgFor, NgIf, NgSwitch, NgSwitchCase],\n templateUrl: './alert-dialog.component.html',\n styleUrls: ['./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","<dialog\n #mask\n *ngIf=\"rendered\"\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 <button *ngIf=\"o.showCloseButton\" 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 <ng-container *ngFor=\"let r of runs\">\n <div *ngIf=\"icon\" class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\" [ngSwitch]=\"icon\">\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 <path *ngSwitchCase=\"'success'\" class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n </svg>\n </div>\n </ng-container>\n\n <h2 *ngIf=\"o.title\" class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n <div *ngIf=\"o.html\" class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n <p *ngIf=\"!o.html && o.text\" class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n\n <div *ngIf=\"o.input\" class=\"wu-alert-input\">\n <label *ngIf=\"o.inputLabel && o.input !== 'checkbox'\" class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n <input\n *ngIf=\"isTextInput\"\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 <textarea\n *ngIf=\"o.input === '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 <select *ngIf=\"o.input === 'select'\" [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n <option *ngIf=\"o.inputPlaceholder\" value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n <option *ngFor=\"let opt of options\" [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n </select>\n <div *ngIf=\"o.input === 'radio'\" class=\"wu-alert-choices\" role=\"radiogroup\">\n <label *ngFor=\"let opt of options; let i = index\" class=\"wu-alert-choice\">\n <input type=\"radio\" [name]=\"titleId + '-radio'\" [value]=\"opt.value\" [checked]=\"opt.value === inputValue\" [class.wu-alert-field]=\"i === 0\" (change)=\"typed($event)\" />\n {{ opt.label }}\n </label>\n </div>\n <label *ngIf=\"o.input === 'checkbox'\" 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 </div>\n\n <div *ngIf=\"validation\" class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n\n <div *ngIf=\"loading\" class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n\n <div *ngIf=\"hasActions\" class=\"wu-alert-actions\">\n <ng-container *ngFor=\"let b of actions\" [ngSwitch]=\"b\">\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n </ng-container>\n </div>\n\n <div *ngIf=\"o.footer\" class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n <div *ngIf=\"o.timer && o.timerProgressBar\" class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n </div>\n</dialog>\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":[],"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;C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C,QAAwB,KAAK,OAAO,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;AAC9D,IAAA,KAAK,EAAE,CAAC,MAA+B,KAAK,OAAO,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;IACnE,WAAW,EAAE,MAAM,OAAO,EAAE,CAAC,WAAW,EAAE;IAC1C,WAAW,EAAE,MAAM,OAAO,EAAE,CAAC,WAAW,EAAE;IAC1C,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, NgFor, NgIf, NgSwitch, NgSwitchCase } 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, NgFor, NgIf, NgSwitch, NgSwitchCase],\n templateUrl: './alert-dialog.component.html',\n styleUrls: ['./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","<dialog\n #mask\n *ngIf=\"rendered\"\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 <button *ngIf=\"o.showCloseButton\" 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 <ng-container *ngFor=\"let r of runs\">\n <div *ngIf=\"icon\" class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\" [ngSwitch]=\"icon\">\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 <path *ngSwitchCase=\"'success'\" class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n </svg>\n </div>\n </ng-container>\n\n <h2 *ngIf=\"o.title\" class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n <div *ngIf=\"o.html\" class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n <p *ngIf=\"!o.html && o.text\" class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n\n <div *ngIf=\"o.input\" class=\"wu-alert-input\">\n <label *ngIf=\"o.inputLabel && o.input !== 'checkbox'\" class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n <input\n *ngIf=\"isTextInput\"\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 <textarea\n *ngIf=\"o.input === '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 <select *ngIf=\"o.input === 'select'\" [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n <option *ngIf=\"o.inputPlaceholder\" value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n <option *ngFor=\"let opt of options\" [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n </select>\n <div *ngIf=\"o.input === 'radio'\" class=\"wu-alert-choices\" role=\"radiogroup\">\n <label *ngFor=\"let opt of options; let i = index\" class=\"wu-alert-choice\">\n <input type=\"radio\" [name]=\"titleId + '-radio'\" [value]=\"opt.value\" [checked]=\"opt.value === inputValue\" [class.wu-alert-field]=\"i === 0\" (change)=\"typed($event)\" />\n {{ opt.label }}\n </label>\n </div>\n <label *ngIf=\"o.input === 'checkbox'\" 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 </div>\n\n <div *ngIf=\"validation\" class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n\n <div *ngIf=\"loading\" class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n\n <div *ngIf=\"hasActions\" class=\"wu-alert-actions\">\n <ng-container *ngFor=\"let b of actions\" [ngSwitch]=\"b\">\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n <ng-container *ngSwitchCase=\"'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 </ng-container>\n </ng-container>\n </div>\n\n <div *ngIf=\"o.footer\" class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n <div *ngIf=\"o.timer && o.timerProgressBar\" class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n </div>\n</dialog>\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":[],"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,CAAC;AAEF;;;AAGG;MAEmB,kBAAkB,CAAA;AADxC,IAAA,WAAA,GAAA;AAKE,QAAA,IAAC,CAAA,CAAA,GAAmB,EAAE,CAAC;AACvB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AACjB,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AAChB,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;AAChB,QAAA,IAAI,CAAA,IAAA,GAAgB,IAAI,CAAC;;AAEzB,QAAA,IAAU,CAAA,UAAA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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;;;;"}
@@ -772,14 +772,14 @@ class WuAsideMenu {
772
772
  }
773
773
  }
774
774
  WuAsideMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuAsideMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
775
- WuAsideMenu.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuAsideMenu, isStandalone: true, selector: "wu-aside-menu", inputs: { model: "model", activeItem: "activeItem", multiple: "multiple", sections: "sections", collapsed: "collapsed", visible: "visible", showCollapseButton: "showCollapseButton", breakpoint: "breakpoint", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, outputs: { visibleChange: "visibleChange", collapsedChange: "collapsedChange" }, host: { properties: { "class.wu-aside-menu-host-mobile": "mobile", "class.wu-aside-menu-host-collapsed": "narrow", "class.wu-aside-menu-host-sliding": "!!sliding" } }, queries: [{ propertyName: "startRef", first: true, predicate: ["start"] }, { propertyName: "endRef", first: true, predicate: ["end"] }, { propertyName: "itemRef", first: true, predicate: ["item"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, static: true }, { propertyName: "closeRef", first: true, predicate: ["closeButton"], descendants: true }], exportAs: ["wuAsideMenu"], ngImport: i0, template: "<div *ngIf=\"mobile\" class=\"wu-aside-menu-mask\" [class.wu-aside-menu-mask-visible]=\"visible\" [class.wu-aside-menu-animated]=\"animated\" aria-hidden=\"true\" (click)=\"close()\"></div>\n\n<nav\n #panel\n class=\"wu-aside-menu\"\n [class]=\"styleClass || ''\"\n [class.wu-aside-menu-mobile]=\"mobile\"\n [class.wu-aside-menu-open]=\"mobile && visible\"\n [class.wu-aside-menu-animated]=\"animated\"\n [class.wu-aside-menu-collapsed]=\"rail\"\n [class.wu-aside-menu-sliding]=\"!!sliding\"\n [class.wu-aside-menu-sliding-collapse]=\"sliding === 'collapse'\"\n [class.wu-aside-menu-sliding-expand]=\"sliding === 'expand'\"\n [style]=\"rootStyle\"\n [id]=\"panelId\"\n tabindex=\"-1\"\n [attr.aria-label]=\"navLabel\"\n [attr.inert]=\"mobile && !visible ? '' : null\"\n (keydown)=\"keydown($event)\"\n>\n <div class=\"wu-aside-menu-header\">\n <ng-content select=\"[wuAsideMenuStart]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"startTemplate; context: slotContext\"></ng-container>\n <button *ngIf=\"mobile\" #closeButton type=\"button\" class=\"wu-aside-menu-close\" [attr.aria-label]=\"t.close\" (click)=\"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 </div>\n\n <div class=\"wu-aside-menu-body\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-root\" role=\"list\" [class.wu-aside-menu-rail]=\"rail\">\n <ng-container *ngIf=\"guestShown\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: guestGroup, key: 'g', depth: 0, rail: false }\"></ng-container>\n <li class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: items, parent: '', depth: 0, rail: rail }\"></ng-container>\n </ul>\n </div>\n\n <div class=\"wu-aside-menu-footer\">\n <ng-content select=\"[wuAsideMenuEnd]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"endTemplate; context: slotContext\"></ng-container>\n <button\n *ngIf=\"showCollapseButton && !mobile\"\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-collapse\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [attr.aria-controls]=\"panelId\"\n [attr.title]=\"rail ? collapseLabel : null\"\n (click)=\"toggleCollapsed()\"\n >\n <svg class=\"wu-aside-menu-collapse-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 4 3.5 8l4 4M12.5 4l-4 4 4 4\"></path></svg>\n <span class=\"wu-aside-menu-label\">{{ collapseLabel }}</span>\n </button>\n </div>\n</nav>\n\n<!-- A list of items at one level. -->\n<ng-template #tree let-list let-parent=\"parent\" let-depth=\"depth\" let-rail=\"rail\">\n <ng-container *ngFor=\"let item of list; let i = index\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: item, key: keyOf(parent, i), depth: depth, rail: rail }\"></ng-container>\n </ng-container>\n</ng-template>\n\n<!-- One item: a separator, a section heading, a group (in place, or a flyout on the icon rail), or a link. -->\n<ng-template #entry let-item let-key=\"key\" let-depth=\"depth\" let-rail=\"rail\">\n <li *ngIf=\"item.separator\" class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n\n <li *ngIf=\"!item.separator && isSection(item, depth)\" class=\"wu-aside-menu-section\" [ngClass]=\"item.styleClass || ''\" [ngStyle]=\"item.style || null\">\n <span class=\"wu-aside-menu-section-label\" [id]=\"itemId(key) + '_label'\">{{ textOf(item) }}</span>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"itemId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: rail }\"></ng-container>\n </ul>\n </li>\n\n <li\n *ngIf=\"!item.separator && !isSection(item, depth)\"\n class=\"wu-aside-menu-item\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-aside-menu-item-disabled]=\"item.disabled\"\n >\n <ng-container *ngIf=\"hasChildren(item); else leafEntry\">\n <ng-container *ngIf=\"rail; else inPlace\">\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group wu-aside-menu-link-rail\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n data-wu-flyout=\"\"\n [attr.title]=\"railTitle(item)\"\n [attr.aria-expanded]=\"flyoutKey === key\"\n [attr.aria-controls]=\"flyoutKey === key ? flyoutId(key) : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"railGroupClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: true, group: true }\"></ng-container>\n </button>\n <div *ngIf=\"flyoutKey === key\" class=\"wu-aside-menu-flyout\" popover=\"manual\" [id]=\"flyoutId(key)\" (focusout)=\"flyoutFocusOut($event)\">\n <div class=\"wu-aside-menu-flyout-title\" [id]=\"flyoutId(key) + '_label'\">{{ textOf(item) }}</div>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"flyoutId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </ng-container>\n <ng-template #inPlace>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"item.title || null\"\n [attr.aria-expanded]=\"isOpen(item)\"\n [attr.aria-controls]=\"itemId(key) + '_children'\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"groupClick(item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: false, group: true }\"></ng-container>\n </button>\n <div class=\"wu-aside-menu-children\" [class.wu-aside-menu-children-open]=\"isOpen(item)\" [id]=\"itemId(key) + '_children'\" [attr.inert]=\"isOpen(item) ? null : ''\">\n <div class=\"wu-aside-menu-children-inner\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-sublist\" role=\"list\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #leafEntry>\n <ng-container *ngTemplateOutlet=\"leaf; context: { $implicit: item, key: key, rail: rail }\"></ng-container>\n </ng-template>\n </li>\n</ng-template>\n\n<!-- A link: router link, plain link, or a button that runs the command. -->\n<ng-template #leaf let-item let-key=\"key\" let-rail=\"rail\">\n <a\n *ngIf=\"routed(item); else plainLink\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-aside-menu-link-active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #plainLink>\n <a\n *ngIf=\"item.url; else commandButton\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [class.wu-aside-menu-link-disabled]=\"item.disabled\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.href]=\"hrefOf(item)\"\n [attr.target]=\"item.target || null\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #commandButton>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-rail=\"rail\" let-group=\"group\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, collapsed: rail }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-aside-menu-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!item.icon && rail\" class=\"wu-aside-menu-initial\" aria-hidden=\"true\">{{ initialOf(item) }}</span>\n <span *ngIf=\"item.escape !== false\" class=\"wu-aside-menu-label\">{{ item.label }}</span>\n <span *ngIf=\"item.escape === false\" class=\"wu-aside-menu-label\" [innerHTML]=\"item.label\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-aside-menu-badge\" [ngClass]=\"item.badgeStyleClass || ''\">{{ item.badge }}</span>\n <svg *ngIf=\"group && !rail\" class=\"wu-aside-menu-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4 6 4 4 4-4\"></path></svg>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-aside-menu{position:sticky;top:var(--wu-aside-menu-top);display:block;flex:none;align-self:flex-start;box-sizing:border-box;width:var(--wu-aside-menu-width);max-width:100%;height:calc(100vh - var(--wu-aside-menu-top));height:calc(100dvh - var(--wu-aside-menu-top));transition:width var(--wu-transition) ease}wu-aside-menu.wu-aside-menu-host-collapsed{width:var(--wu-aside-menu-collapsed-width)}wu-aside-menu.wu-aside-menu-host-sliding{overflow:hidden}wu-aside-menu.wu-aside-menu-host-sliding:after{content:\"\";position:absolute;inset-block:0;inset-inline-end:0;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);pointer-events:none}wu-aside-menu.wu-aside-menu-host-mobile{display:contents}.wu-aside-menu{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);background:var(--wu-aside-menu-bg);color:var(--wu-aside-menu-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu.wu-aside-menu-sliding{width:var(--wu-aside-menu-width);border-inline-end-color:transparent}.wu-aside-menu-sliding :is(.wu-aside-menu-label,.wu-aside-menu-section-label){overflow:hidden;white-space:nowrap}.wu-aside-menu-sliding-collapse :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){opacity:0;transition:opacity var(--wu-transition) ease}.wu-aside-menu-sliding-expand :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){animation:wu-aside-menu-fade-in var(--wu-transition) ease both}@keyframes wu-aside-menu-fade-in{0%{opacity:0}}.wu-aside-menu:focus{outline:none}.wu-aside-menu-header,.wu-aside-menu-footer{display:flex;flex:none;gap:.5rem;min-width:0;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-header{align-items:center}.wu-aside-menu-footer{flex-direction:column;align-items:stretch;border-top:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color)}.wu-aside-menu-header:empty,.wu-aside-menu-footer:empty{display:none}.wu-aside-menu-collapsed .wu-aside-menu-header{overflow:hidden}.wu-aside-menu-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-list{display:flex;flex-direction:column;gap:var(--wu-menu-gap);margin:0;padding:0;list-style:none}.wu-aside-menu-sublist{padding-block-start:var(--wu-menu-gap);padding-inline-start:var(--wu-aside-menu-indent)}.wu-aside-menu-item,.wu-aside-menu-section{display:flex;flex-direction:column;min-width:0}.wu-aside-menu-section{gap:var(--wu-menu-gap)}.wu-aside-menu-section-label{display:block;padding:var(--wu-aside-menu-section-padding);color:var(--wu-aside-menu-section-color);font-size:var(--wu-aside-menu-section-size);font-weight:600;overflow-wrap:anywhere}.wu-aside-menu-separator{margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-link{position:relative;display:flex;align-items:center;gap:var(--wu-aside-menu-item-gap);box-sizing:border-box;width:100%;min-width:0;min-height:var(--wu-aside-menu-item-height);margin:0;padding:var(--wu-aside-menu-item-padding);border:0;border-radius:var(--wu-aside-menu-item-radius);background:transparent;color:var(--wu-aside-menu-item-color);font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-aside-menu-link:where(:not(:disabled,.wu-aside-menu-link-disabled)):hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-link:focus-visible{background:var(--wu-aside-menu-item-hover-bg);outline:var(--wu-control-focus-outline);outline-offset:calc(-1 * var(--wu-control-focus-offset) - 1px);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-group-active{color:var(--wu-aside-menu-group-active-color)}.wu-aside-menu-link.wu-aside-menu-link-active{background:var(--wu-aside-menu-item-active-bg);color:var(--wu-aside-menu-item-active-color)}.wu-aside-menu-link:disabled,.wu-aside-menu-link-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-aside-menu-icon{flex:none;width:1.25rem;color:var(--wu-aside-menu-item-icon-color);text-align:center}.wu-aside-menu-link-active .wu-aside-menu-icon,.wu-aside-menu-group-active .wu-aside-menu-icon{color:inherit}.wu-aside-menu-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.wu-aside-menu-badge{display:inline-grid;flex:none;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--wu-primary-color);color:var(--wu-primary-contrast);font-size:.75rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-badge{background:var(--wu-aside-menu-item-active-color);color:var(--wu-primary-color)}.wu-aside-menu-chevron{flex:none;width:.875rem;height:.875rem;margin-inline-start:auto;transform:rotate(-90deg);transition:transform var(--wu-transition)}[aria-expanded=true]>.wu-aside-menu-chevron{transform:none}.wu-aside-menu-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-aside-menu-children-open{grid-template-rows:1fr}.wu-aside-menu-children-inner{min-height:0;overflow:hidden}.wu-aside-menu-link-rail{justify-content:center;gap:0;padding-inline:0}.wu-aside-menu-link-rail .wu-aside-menu-label,.wu-aside-menu-rail .wu-aside-menu-section-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.wu-aside-menu-link-rail .wu-aside-menu-badge{position:absolute;top:.375rem;inset-inline-end:.375rem;min-width:.5rem;height:.5rem;padding:0;font-size:0}.wu-aside-menu-initial{display:inline-grid;flex:none;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--wu-radius-full);background:var(--wu-aside-menu-item-hover-bg);font-size:.875rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-initial{background:transparent}.wu-aside-menu-rail>.wu-aside-menu-section:not(:first-child):before{content:\"\";display:block;margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-collapse{color:var(--wu-aside-menu-item-icon-color)}.wu-aside-menu-collapse-icon{flex:none;width:1.25rem;height:1rem;transition:transform var(--wu-transition)}.wu-aside-menu-collapsed .wu-aside-menu-collapse-icon{transform:scaleX(-1)}.wu-aside-menu-close{display:inline-grid;flex:none;place-items:center;width:var(--wu-aside-menu-item-height);height:var(--wu-aside-menu-item-height);margin:0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--wu-radius-full);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--wu-transition)}.wu-aside-menu-close:hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-close svg{width:1.125rem;height:1.125rem}.wu-aside-menu-mobile{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:var(--wu-aside-menu-z-index);width:var(--wu-aside-menu-mobile-width);max-width:100vw;height:auto;border-inline-end:0;box-shadow:var(--wu-aside-menu-mobile-shadow);visibility:hidden;transform:translate(-100%)}.wu-aside-menu-mobile:dir(rtl){transform:translate(100%)}.wu-aside-menu-mobile.wu-aside-menu-open{visibility:visible;transform:none}.wu-aside-menu-mobile.wu-aside-menu-animated{transition:transform var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open{transition:transform var(--wu-transition) ease,visibility 0s}.wu-aside-menu-mask{position:fixed;inset:0;z-index:var(--wu-aside-menu-z-index);background:var(--wu-mask);opacity:0;visibility:hidden}.wu-aside-menu-mask-visible{opacity:1;visibility:visible}.wu-aside-menu-mask.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s}.wu-aside-menu-flyout{position:fixed;inset:auto;z-index:1200;box-sizing:border-box;min-width:var(--wu-menu-min-width);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);margin:0;overflow-y:auto;padding:var(--wu-menu-padding);border:var(--wu-menu-overlay-border-width) solid var(--wu-border);border-radius:var(--wu-menu-radius);background:var(--wu-menu-overlay-bg);box-shadow:var(--wu-menu-shadow);color:var(--wu-aside-menu-item-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu-flyout-title{padding:var(--wu-menu-submenu-label-padding);background:var(--wu-menu-submenu-label-bg);color:var(--wu-menu-submenu-label-color);font-weight:var(--wu-menu-submenu-label-weight)}@media (prefers-reduced-motion: reduce){wu-aside-menu,.wu-aside-menu-link,.wu-aside-menu-chevron,.wu-aside-menu-children,.wu-aside-menu-collapse-icon,.wu-aside-menu-close,.wu-aside-menu-mobile.wu-aside-menu-animated,.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open,.wu-aside-menu-mask.wu-aside-menu-animated,.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
775
+ WuAsideMenu.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuAsideMenu, isStandalone: true, selector: "wu-aside-menu", inputs: { model: "model", activeItem: "activeItem", multiple: "multiple", sections: "sections", collapsed: "collapsed", visible: "visible", showCollapseButton: "showCollapseButton", breakpoint: "breakpoint", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, outputs: { visibleChange: "visibleChange", collapsedChange: "collapsedChange" }, host: { properties: { "class.wu-aside-menu-host-mobile": "mobile", "class.wu-aside-menu-host-collapsed": "narrow", "class.wu-aside-menu-host-sliding": "!!sliding" } }, queries: [{ propertyName: "startRef", first: true, predicate: ["start"] }, { propertyName: "endRef", first: true, predicate: ["end"] }, { propertyName: "itemRef", first: true, predicate: ["item"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, static: true }, { propertyName: "closeRef", first: true, predicate: ["closeButton"], descendants: true }], exportAs: ["wuAsideMenu"], ngImport: i0, template: "<div *ngIf=\"mobile\" class=\"wu-aside-menu-mask\" [class.wu-aside-menu-mask-visible]=\"visible\" [class.wu-aside-menu-animated]=\"animated\" aria-hidden=\"true\" (click)=\"close()\"></div>\n\n<nav\n #panel\n class=\"wu-aside-menu\"\n [class]=\"styleClass || ''\"\n [class.wu-aside-menu-mobile]=\"mobile\"\n [class.wu-aside-menu-open]=\"mobile && visible\"\n [class.wu-aside-menu-animated]=\"animated\"\n [class.wu-aside-menu-collapsed]=\"rail\"\n [class.wu-aside-menu-sliding]=\"!!sliding\"\n [class.wu-aside-menu-sliding-collapse]=\"sliding === 'collapse'\"\n [class.wu-aside-menu-sliding-expand]=\"sliding === 'expand'\"\n [style]=\"rootStyle\"\n [id]=\"panelId\"\n tabindex=\"-1\"\n [attr.aria-label]=\"navLabel\"\n [attr.inert]=\"mobile && !visible ? '' : null\"\n (keydown)=\"keydown($event)\"\n>\n <div class=\"wu-aside-menu-header\">\n <ng-content select=\"[wuAsideMenuStart]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"startTemplate; context: slotContext\"></ng-container>\n <button *ngIf=\"mobile\" #closeButton type=\"button\" class=\"wu-aside-menu-close\" [attr.aria-label]=\"t.close\" (click)=\"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 </div>\n\n <div class=\"wu-aside-menu-body\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-root\" role=\"list\" [class.wu-aside-menu-rail]=\"rail\">\n <ng-container *ngIf=\"guestShown\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: guestGroup, key: 'g', depth: 0, rail: false }\"></ng-container>\n <li class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: items, parent: '', depth: 0, rail: rail }\"></ng-container>\n </ul>\n </div>\n\n <div class=\"wu-aside-menu-footer\">\n <ng-content select=\"[wuAsideMenuEnd]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"endTemplate; context: slotContext\"></ng-container>\n <button\n *ngIf=\"showCollapseButton && !mobile\"\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-collapse\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [attr.aria-controls]=\"panelId\"\n [attr.title]=\"rail ? collapseLabel : null\"\n (click)=\"toggleCollapsed()\"\n >\n <svg class=\"wu-aside-menu-collapse-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 4 3.5 8l4 4M12.5 4l-4 4 4 4\"></path></svg>\n <span class=\"wu-aside-menu-label\">{{ collapseLabel }}</span>\n </button>\n </div>\n</nav>\n\n<!-- A list of items at one level. -->\n<ng-template #tree let-list let-parent=\"parent\" let-depth=\"depth\" let-rail=\"rail\">\n <ng-container *ngFor=\"let item of list; let i = index\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: item, key: keyOf(parent, i), depth: depth, rail: rail }\"></ng-container>\n </ng-container>\n</ng-template>\n\n<!-- One item: a separator, a section heading, a group (in place, or a flyout on the icon rail), or a link. -->\n<ng-template #entry let-item let-key=\"key\" let-depth=\"depth\" let-rail=\"rail\">\n <li *ngIf=\"item.separator\" class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n\n <li *ngIf=\"!item.separator && isSection(item, depth)\" class=\"wu-aside-menu-section\" [ngClass]=\"item.styleClass || ''\" [ngStyle]=\"item.style || null\">\n <span class=\"wu-aside-menu-section-label\" [id]=\"itemId(key) + '_label'\">{{ textOf(item) }}</span>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"itemId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: rail }\"></ng-container>\n </ul>\n </li>\n\n <li\n *ngIf=\"!item.separator && !isSection(item, depth)\"\n class=\"wu-aside-menu-item\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-aside-menu-item-disabled]=\"item.disabled\"\n >\n <ng-container *ngIf=\"hasChildren(item); else leafEntry\">\n <ng-container *ngIf=\"rail; else inPlace\">\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group wu-aside-menu-link-rail\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n data-wu-flyout=\"\"\n [attr.title]=\"railTitle(item)\"\n [attr.aria-expanded]=\"flyoutKey === key\"\n [attr.aria-controls]=\"flyoutKey === key ? flyoutId(key) : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"railGroupClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: true, group: true }\"></ng-container>\n </button>\n <div *ngIf=\"flyoutKey === key\" class=\"wu-aside-menu-flyout\" popover=\"manual\" [id]=\"flyoutId(key)\" (focusout)=\"flyoutFocusOut($event)\">\n <div class=\"wu-aside-menu-flyout-title\" [id]=\"flyoutId(key) + '_label'\">{{ textOf(item) }}</div>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"flyoutId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </ng-container>\n <ng-template #inPlace>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"item.title || null\"\n [attr.aria-expanded]=\"isOpen(item)\"\n [attr.aria-controls]=\"itemId(key) + '_children'\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"groupClick(item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: false, group: true }\"></ng-container>\n </button>\n <div class=\"wu-aside-menu-children\" [class.wu-aside-menu-children-open]=\"isOpen(item)\" [id]=\"itemId(key) + '_children'\" [attr.inert]=\"isOpen(item) ? null : ''\">\n <div class=\"wu-aside-menu-children-inner\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-sublist\" role=\"list\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #leafEntry>\n <ng-container *ngTemplateOutlet=\"leaf; context: { $implicit: item, key: key, rail: rail }\"></ng-container>\n </ng-template>\n </li>\n</ng-template>\n\n<!-- A link: router link, plain link, or a button that runs the command. -->\n<ng-template #leaf let-item let-key=\"key\" let-rail=\"rail\">\n <a\n *ngIf=\"routed(item); else plainLink\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-aside-menu-link-active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #plainLink>\n <a\n *ngIf=\"item.url; else commandButton\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [class.wu-aside-menu-link-disabled]=\"item.disabled\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.href]=\"hrefOf(item)\"\n [attr.target]=\"item.target || null\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #commandButton>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-rail=\"rail\" let-group=\"group\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, collapsed: rail }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-aside-menu-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!item.icon && rail\" class=\"wu-aside-menu-initial\" aria-hidden=\"true\">{{ initialOf(item) }}</span>\n <span *ngIf=\"item.escape !== false\" class=\"wu-aside-menu-label\">{{ item.label }}</span>\n <span *ngIf=\"item.escape === false\" class=\"wu-aside-menu-label\" [innerHTML]=\"item.label\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-aside-menu-badge\" [ngClass]=\"item.badgeStyleClass || ''\">{{ item.badge }}</span>\n <svg *ngIf=\"group && !rail\" class=\"wu-aside-menu-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4 6 4 4 4-4\"></path></svg>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-aside-menu{position:sticky;top:var(--wu-aside-menu-top);display:block;flex:none;align-self:flex-start;box-sizing:border-box;width:var(--wu-aside-menu-width);max-width:100%;height:calc(100vh - var(--wu-aside-menu-top));height:calc(100dvh - var(--wu-aside-menu-top));transition:width var(--wu-transition) ease}wu-aside-menu.wu-aside-menu-host-collapsed{width:var(--wu-aside-menu-collapsed-width)}wu-aside-menu.wu-aside-menu-host-sliding{overflow:hidden}wu-aside-menu.wu-aside-menu-host-sliding:after{content:\"\";position:absolute;inset-block:0;inset-inline-end:0;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);pointer-events:none}wu-aside-menu.wu-aside-menu-host-mobile{display:contents}.wu-aside-menu{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);background:var(--wu-aside-menu-bg);color:var(--wu-aside-menu-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu.wu-aside-menu-sliding{width:var(--wu-aside-menu-width);border-inline-end-color:transparent}.wu-aside-menu-sliding :is(.wu-aside-menu-label,.wu-aside-menu-section-label){overflow:hidden;white-space:nowrap}.wu-aside-menu-sliding-collapse :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){opacity:0;transition:opacity var(--wu-transition) ease}.wu-aside-menu-sliding-expand :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){animation:wu-aside-menu-fade-in var(--wu-transition) ease both}@keyframes wu-aside-menu-fade-in{0%{opacity:0}}.wu-aside-menu:focus{outline:none}.wu-aside-menu-header,.wu-aside-menu-footer{display:flex;flex:none;gap:.5rem;min-width:0;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-header{align-items:center}.wu-aside-menu-footer{flex-direction:column;align-items:stretch;border-top:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color)}.wu-aside-menu-header:empty,.wu-aside-menu-footer:empty{display:none}.wu-aside-menu-collapsed .wu-aside-menu-header{overflow:hidden}.wu-aside-menu-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-list{display:flex;flex-direction:column;gap:var(--wu-menu-gap);margin:0;padding:0;list-style:none}.wu-aside-menu-sublist{padding-block-start:var(--wu-menu-gap);padding-inline-start:var(--wu-aside-menu-indent)}.wu-aside-menu-item,.wu-aside-menu-section{display:flex;flex-direction:column;min-width:0}.wu-aside-menu-section{gap:var(--wu-menu-gap)}.wu-aside-menu-section-label{display:block;padding:var(--wu-aside-menu-section-padding);color:var(--wu-aside-menu-section-color);font-size:var(--wu-aside-menu-section-size);font-weight:600;overflow-wrap:anywhere}.wu-aside-menu-separator{margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-link{position:relative;display:flex;align-items:center;gap:var(--wu-aside-menu-item-gap);box-sizing:border-box;width:100%;min-width:0;min-height:var(--wu-aside-menu-item-height);margin:0;padding:var(--wu-aside-menu-item-padding);border:0;border-radius:var(--wu-aside-menu-item-radius);background:transparent;color:var(--wu-aside-menu-item-color);font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-aside-menu-link:where(:not(:disabled,.wu-aside-menu-link-disabled)):hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-link:focus-visible{background:var(--wu-aside-menu-item-hover-bg);outline:var(--wu-control-focus-outline);outline-offset:calc(-1 * var(--wu-control-focus-offset) - 1px);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-group-active{color:var(--wu-aside-menu-group-active-color)}.wu-aside-menu-link.wu-aside-menu-link-active{background:var(--wu-aside-menu-item-active-bg);color:var(--wu-aside-menu-item-active-color)}.wu-aside-menu-link:disabled,.wu-aside-menu-link-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-aside-menu-icon{flex:none;width:1.25rem;color:var(--wu-aside-menu-item-icon-color);text-align:center}.wu-aside-menu-link-active .wu-aside-menu-icon,.wu-aside-menu-group-active .wu-aside-menu-icon{color:inherit}.wu-aside-menu-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.wu-aside-menu-badge{display:inline-grid;flex:none;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--wu-primary-color);color:var(--wu-primary-contrast);font-size:.75rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-badge{background:var(--wu-aside-menu-item-active-color);color:var(--wu-primary-color)}.wu-aside-menu-chevron{flex:none;width:.875rem;height:.875rem;margin-inline-start:auto;transform:rotate(-90deg);transition:transform var(--wu-transition)}[aria-expanded=true]>.wu-aside-menu-chevron{transform:none}.wu-aside-menu-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-aside-menu-children-open{grid-template-rows:1fr}.wu-aside-menu-children-inner{min-height:0;overflow:hidden}.wu-aside-menu-link-rail{justify-content:center;gap:0;padding-inline:0}.wu-aside-menu-link-rail .wu-aside-menu-label,.wu-aside-menu-rail .wu-aside-menu-section-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.wu-aside-menu-link-rail .wu-aside-menu-badge{position:absolute;top:.375rem;inset-inline-end:.375rem;min-width:.5rem;height:.5rem;padding:0;font-size:0}.wu-aside-menu-initial{display:inline-grid;flex:none;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--wu-radius-full);background:var(--wu-aside-menu-item-hover-bg);font-size:.875rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-initial{background:transparent}.wu-aside-menu-rail>.wu-aside-menu-section:not(:first-child):before{content:\"\";display:block;margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-collapse{color:var(--wu-aside-menu-item-icon-color)}.wu-aside-menu-collapse-icon{flex:none;width:1.25rem;height:1rem;transition:transform var(--wu-transition)}.wu-aside-menu-collapsed .wu-aside-menu-collapse-icon{transform:scaleX(-1)}.wu-aside-menu-close{display:inline-grid;flex:none;place-items:center;width:var(--wu-aside-menu-item-height);height:var(--wu-aside-menu-item-height);margin:0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--wu-radius-full);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--wu-transition)}.wu-aside-menu-close:hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-close svg{width:1.125rem;height:1.125rem}.wu-aside-menu-mobile .wu-aside-menu-header{position:relative;min-height:calc(var(--wu-aside-menu-item-height) + 2 * var(--wu-aside-menu-padding))}.wu-aside-menu-mobile .wu-aside-menu-close{position:absolute;inset-block-start:var(--wu-aside-menu-padding);inset-inline-end:var(--wu-aside-menu-padding)}.wu-aside-menu-mobile .wu-aside-menu-header>:first-child:nth-last-child(2){flex:1 1 auto;min-width:0}.wu-aside-menu-mobile{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:var(--wu-aside-menu-z-index);width:var(--wu-aside-menu-mobile-width);max-width:100vw;height:auto;border-inline-end:0;box-shadow:var(--wu-aside-menu-mobile-shadow);visibility:hidden;transform:translate(-100%)}.wu-aside-menu-mobile:dir(rtl){transform:translate(100%)}.wu-aside-menu-mobile.wu-aside-menu-open{visibility:visible;transform:none}.wu-aside-menu-mobile.wu-aside-menu-animated{transition:transform var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open{transition:transform var(--wu-transition) ease,visibility 0s}.wu-aside-menu-mask{position:fixed;inset:0;z-index:var(--wu-aside-menu-z-index);background:var(--wu-mask);opacity:0;visibility:hidden}.wu-aside-menu-mask-visible{opacity:1;visibility:visible}.wu-aside-menu-mask.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s}.wu-aside-menu-flyout{position:fixed;inset:auto;z-index:1200;box-sizing:border-box;min-width:var(--wu-menu-min-width);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);margin:0;overflow-y:auto;padding:var(--wu-menu-padding);border:var(--wu-menu-overlay-border-width) solid var(--wu-border);border-radius:var(--wu-menu-radius);background:var(--wu-menu-overlay-bg);box-shadow:var(--wu-menu-shadow);color:var(--wu-aside-menu-item-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu-flyout-title{padding:var(--wu-menu-submenu-label-padding);background:var(--wu-menu-submenu-label-bg);color:var(--wu-menu-submenu-label-color);font-weight:var(--wu-menu-submenu-label-weight)}@media (prefers-reduced-motion: reduce){wu-aside-menu,.wu-aside-menu-link,.wu-aside-menu-chevron,.wu-aside-menu-children,.wu-aside-menu-collapse-icon,.wu-aside-menu-close,.wu-aside-menu-mobile.wu-aside-menu-animated,.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open,.wu-aside-menu-mask.wu-aside-menu-animated,.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
776
776
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuAsideMenu, decorators: [{
777
777
  type: Component,
778
778
  args: [{ selector: 'wu-aside-menu', standalone: true, exportAs: 'wuAsideMenu', imports: [NgClass, NgFor, NgIf, NgStyle, NgTemplateOutlet, RouterLink, RouterLinkActive], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
779
779
  '[class.wu-aside-menu-host-mobile]': 'mobile',
780
780
  '[class.wu-aside-menu-host-collapsed]': 'narrow',
781
781
  '[class.wu-aside-menu-host-sliding]': '!!sliding',
782
- }, template: "<div *ngIf=\"mobile\" class=\"wu-aside-menu-mask\" [class.wu-aside-menu-mask-visible]=\"visible\" [class.wu-aside-menu-animated]=\"animated\" aria-hidden=\"true\" (click)=\"close()\"></div>\n\n<nav\n #panel\n class=\"wu-aside-menu\"\n [class]=\"styleClass || ''\"\n [class.wu-aside-menu-mobile]=\"mobile\"\n [class.wu-aside-menu-open]=\"mobile && visible\"\n [class.wu-aside-menu-animated]=\"animated\"\n [class.wu-aside-menu-collapsed]=\"rail\"\n [class.wu-aside-menu-sliding]=\"!!sliding\"\n [class.wu-aside-menu-sliding-collapse]=\"sliding === 'collapse'\"\n [class.wu-aside-menu-sliding-expand]=\"sliding === 'expand'\"\n [style]=\"rootStyle\"\n [id]=\"panelId\"\n tabindex=\"-1\"\n [attr.aria-label]=\"navLabel\"\n [attr.inert]=\"mobile && !visible ? '' : null\"\n (keydown)=\"keydown($event)\"\n>\n <div class=\"wu-aside-menu-header\">\n <ng-content select=\"[wuAsideMenuStart]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"startTemplate; context: slotContext\"></ng-container>\n <button *ngIf=\"mobile\" #closeButton type=\"button\" class=\"wu-aside-menu-close\" [attr.aria-label]=\"t.close\" (click)=\"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 </div>\n\n <div class=\"wu-aside-menu-body\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-root\" role=\"list\" [class.wu-aside-menu-rail]=\"rail\">\n <ng-container *ngIf=\"guestShown\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: guestGroup, key: 'g', depth: 0, rail: false }\"></ng-container>\n <li class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: items, parent: '', depth: 0, rail: rail }\"></ng-container>\n </ul>\n </div>\n\n <div class=\"wu-aside-menu-footer\">\n <ng-content select=\"[wuAsideMenuEnd]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"endTemplate; context: slotContext\"></ng-container>\n <button\n *ngIf=\"showCollapseButton && !mobile\"\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-collapse\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [attr.aria-controls]=\"panelId\"\n [attr.title]=\"rail ? collapseLabel : null\"\n (click)=\"toggleCollapsed()\"\n >\n <svg class=\"wu-aside-menu-collapse-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 4 3.5 8l4 4M12.5 4l-4 4 4 4\"></path></svg>\n <span class=\"wu-aside-menu-label\">{{ collapseLabel }}</span>\n </button>\n </div>\n</nav>\n\n<!-- A list of items at one level. -->\n<ng-template #tree let-list let-parent=\"parent\" let-depth=\"depth\" let-rail=\"rail\">\n <ng-container *ngFor=\"let item of list; let i = index\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: item, key: keyOf(parent, i), depth: depth, rail: rail }\"></ng-container>\n </ng-container>\n</ng-template>\n\n<!-- One item: a separator, a section heading, a group (in place, or a flyout on the icon rail), or a link. -->\n<ng-template #entry let-item let-key=\"key\" let-depth=\"depth\" let-rail=\"rail\">\n <li *ngIf=\"item.separator\" class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n\n <li *ngIf=\"!item.separator && isSection(item, depth)\" class=\"wu-aside-menu-section\" [ngClass]=\"item.styleClass || ''\" [ngStyle]=\"item.style || null\">\n <span class=\"wu-aside-menu-section-label\" [id]=\"itemId(key) + '_label'\">{{ textOf(item) }}</span>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"itemId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: rail }\"></ng-container>\n </ul>\n </li>\n\n <li\n *ngIf=\"!item.separator && !isSection(item, depth)\"\n class=\"wu-aside-menu-item\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-aside-menu-item-disabled]=\"item.disabled\"\n >\n <ng-container *ngIf=\"hasChildren(item); else leafEntry\">\n <ng-container *ngIf=\"rail; else inPlace\">\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group wu-aside-menu-link-rail\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n data-wu-flyout=\"\"\n [attr.title]=\"railTitle(item)\"\n [attr.aria-expanded]=\"flyoutKey === key\"\n [attr.aria-controls]=\"flyoutKey === key ? flyoutId(key) : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"railGroupClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: true, group: true }\"></ng-container>\n </button>\n <div *ngIf=\"flyoutKey === key\" class=\"wu-aside-menu-flyout\" popover=\"manual\" [id]=\"flyoutId(key)\" (focusout)=\"flyoutFocusOut($event)\">\n <div class=\"wu-aside-menu-flyout-title\" [id]=\"flyoutId(key) + '_label'\">{{ textOf(item) }}</div>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"flyoutId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </ng-container>\n <ng-template #inPlace>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"item.title || null\"\n [attr.aria-expanded]=\"isOpen(item)\"\n [attr.aria-controls]=\"itemId(key) + '_children'\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"groupClick(item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: false, group: true }\"></ng-container>\n </button>\n <div class=\"wu-aside-menu-children\" [class.wu-aside-menu-children-open]=\"isOpen(item)\" [id]=\"itemId(key) + '_children'\" [attr.inert]=\"isOpen(item) ? null : ''\">\n <div class=\"wu-aside-menu-children-inner\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-sublist\" role=\"list\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #leafEntry>\n <ng-container *ngTemplateOutlet=\"leaf; context: { $implicit: item, key: key, rail: rail }\"></ng-container>\n </ng-template>\n </li>\n</ng-template>\n\n<!-- A link: router link, plain link, or a button that runs the command. -->\n<ng-template #leaf let-item let-key=\"key\" let-rail=\"rail\">\n <a\n *ngIf=\"routed(item); else plainLink\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-aside-menu-link-active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #plainLink>\n <a\n *ngIf=\"item.url; else commandButton\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [class.wu-aside-menu-link-disabled]=\"item.disabled\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.href]=\"hrefOf(item)\"\n [attr.target]=\"item.target || null\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #commandButton>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-rail=\"rail\" let-group=\"group\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, collapsed: rail }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-aside-menu-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!item.icon && rail\" class=\"wu-aside-menu-initial\" aria-hidden=\"true\">{{ initialOf(item) }}</span>\n <span *ngIf=\"item.escape !== false\" class=\"wu-aside-menu-label\">{{ item.label }}</span>\n <span *ngIf=\"item.escape === false\" class=\"wu-aside-menu-label\" [innerHTML]=\"item.label\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-aside-menu-badge\" [ngClass]=\"item.badgeStyleClass || ''\">{{ item.badge }}</span>\n <svg *ngIf=\"group && !rail\" class=\"wu-aside-menu-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4 6 4 4 4-4\"></path></svg>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-aside-menu{position:sticky;top:var(--wu-aside-menu-top);display:block;flex:none;align-self:flex-start;box-sizing:border-box;width:var(--wu-aside-menu-width);max-width:100%;height:calc(100vh - var(--wu-aside-menu-top));height:calc(100dvh - var(--wu-aside-menu-top));transition:width var(--wu-transition) ease}wu-aside-menu.wu-aside-menu-host-collapsed{width:var(--wu-aside-menu-collapsed-width)}wu-aside-menu.wu-aside-menu-host-sliding{overflow:hidden}wu-aside-menu.wu-aside-menu-host-sliding:after{content:\"\";position:absolute;inset-block:0;inset-inline-end:0;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);pointer-events:none}wu-aside-menu.wu-aside-menu-host-mobile{display:contents}.wu-aside-menu{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);background:var(--wu-aside-menu-bg);color:var(--wu-aside-menu-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu.wu-aside-menu-sliding{width:var(--wu-aside-menu-width);border-inline-end-color:transparent}.wu-aside-menu-sliding :is(.wu-aside-menu-label,.wu-aside-menu-section-label){overflow:hidden;white-space:nowrap}.wu-aside-menu-sliding-collapse :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){opacity:0;transition:opacity var(--wu-transition) ease}.wu-aside-menu-sliding-expand :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){animation:wu-aside-menu-fade-in var(--wu-transition) ease both}@keyframes wu-aside-menu-fade-in{0%{opacity:0}}.wu-aside-menu:focus{outline:none}.wu-aside-menu-header,.wu-aside-menu-footer{display:flex;flex:none;gap:.5rem;min-width:0;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-header{align-items:center}.wu-aside-menu-footer{flex-direction:column;align-items:stretch;border-top:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color)}.wu-aside-menu-header:empty,.wu-aside-menu-footer:empty{display:none}.wu-aside-menu-collapsed .wu-aside-menu-header{overflow:hidden}.wu-aside-menu-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-list{display:flex;flex-direction:column;gap:var(--wu-menu-gap);margin:0;padding:0;list-style:none}.wu-aside-menu-sublist{padding-block-start:var(--wu-menu-gap);padding-inline-start:var(--wu-aside-menu-indent)}.wu-aside-menu-item,.wu-aside-menu-section{display:flex;flex-direction:column;min-width:0}.wu-aside-menu-section{gap:var(--wu-menu-gap)}.wu-aside-menu-section-label{display:block;padding:var(--wu-aside-menu-section-padding);color:var(--wu-aside-menu-section-color);font-size:var(--wu-aside-menu-section-size);font-weight:600;overflow-wrap:anywhere}.wu-aside-menu-separator{margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-link{position:relative;display:flex;align-items:center;gap:var(--wu-aside-menu-item-gap);box-sizing:border-box;width:100%;min-width:0;min-height:var(--wu-aside-menu-item-height);margin:0;padding:var(--wu-aside-menu-item-padding);border:0;border-radius:var(--wu-aside-menu-item-radius);background:transparent;color:var(--wu-aside-menu-item-color);font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-aside-menu-link:where(:not(:disabled,.wu-aside-menu-link-disabled)):hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-link:focus-visible{background:var(--wu-aside-menu-item-hover-bg);outline:var(--wu-control-focus-outline);outline-offset:calc(-1 * var(--wu-control-focus-offset) - 1px);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-group-active{color:var(--wu-aside-menu-group-active-color)}.wu-aside-menu-link.wu-aside-menu-link-active{background:var(--wu-aside-menu-item-active-bg);color:var(--wu-aside-menu-item-active-color)}.wu-aside-menu-link:disabled,.wu-aside-menu-link-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-aside-menu-icon{flex:none;width:1.25rem;color:var(--wu-aside-menu-item-icon-color);text-align:center}.wu-aside-menu-link-active .wu-aside-menu-icon,.wu-aside-menu-group-active .wu-aside-menu-icon{color:inherit}.wu-aside-menu-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.wu-aside-menu-badge{display:inline-grid;flex:none;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--wu-primary-color);color:var(--wu-primary-contrast);font-size:.75rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-badge{background:var(--wu-aside-menu-item-active-color);color:var(--wu-primary-color)}.wu-aside-menu-chevron{flex:none;width:.875rem;height:.875rem;margin-inline-start:auto;transform:rotate(-90deg);transition:transform var(--wu-transition)}[aria-expanded=true]>.wu-aside-menu-chevron{transform:none}.wu-aside-menu-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-aside-menu-children-open{grid-template-rows:1fr}.wu-aside-menu-children-inner{min-height:0;overflow:hidden}.wu-aside-menu-link-rail{justify-content:center;gap:0;padding-inline:0}.wu-aside-menu-link-rail .wu-aside-menu-label,.wu-aside-menu-rail .wu-aside-menu-section-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.wu-aside-menu-link-rail .wu-aside-menu-badge{position:absolute;top:.375rem;inset-inline-end:.375rem;min-width:.5rem;height:.5rem;padding:0;font-size:0}.wu-aside-menu-initial{display:inline-grid;flex:none;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--wu-radius-full);background:var(--wu-aside-menu-item-hover-bg);font-size:.875rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-initial{background:transparent}.wu-aside-menu-rail>.wu-aside-menu-section:not(:first-child):before{content:\"\";display:block;margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-collapse{color:var(--wu-aside-menu-item-icon-color)}.wu-aside-menu-collapse-icon{flex:none;width:1.25rem;height:1rem;transition:transform var(--wu-transition)}.wu-aside-menu-collapsed .wu-aside-menu-collapse-icon{transform:scaleX(-1)}.wu-aside-menu-close{display:inline-grid;flex:none;place-items:center;width:var(--wu-aside-menu-item-height);height:var(--wu-aside-menu-item-height);margin:0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--wu-radius-full);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--wu-transition)}.wu-aside-menu-close:hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-close svg{width:1.125rem;height:1.125rem}.wu-aside-menu-mobile{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:var(--wu-aside-menu-z-index);width:var(--wu-aside-menu-mobile-width);max-width:100vw;height:auto;border-inline-end:0;box-shadow:var(--wu-aside-menu-mobile-shadow);visibility:hidden;transform:translate(-100%)}.wu-aside-menu-mobile:dir(rtl){transform:translate(100%)}.wu-aside-menu-mobile.wu-aside-menu-open{visibility:visible;transform:none}.wu-aside-menu-mobile.wu-aside-menu-animated{transition:transform var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open{transition:transform var(--wu-transition) ease,visibility 0s}.wu-aside-menu-mask{position:fixed;inset:0;z-index:var(--wu-aside-menu-z-index);background:var(--wu-mask);opacity:0;visibility:hidden}.wu-aside-menu-mask-visible{opacity:1;visibility:visible}.wu-aside-menu-mask.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s}.wu-aside-menu-flyout{position:fixed;inset:auto;z-index:1200;box-sizing:border-box;min-width:var(--wu-menu-min-width);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);margin:0;overflow-y:auto;padding:var(--wu-menu-padding);border:var(--wu-menu-overlay-border-width) solid var(--wu-border);border-radius:var(--wu-menu-radius);background:var(--wu-menu-overlay-bg);box-shadow:var(--wu-menu-shadow);color:var(--wu-aside-menu-item-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu-flyout-title{padding:var(--wu-menu-submenu-label-padding);background:var(--wu-menu-submenu-label-bg);color:var(--wu-menu-submenu-label-color);font-weight:var(--wu-menu-submenu-label-weight)}@media (prefers-reduced-motion: reduce){wu-aside-menu,.wu-aside-menu-link,.wu-aside-menu-chevron,.wu-aside-menu-children,.wu-aside-menu-collapse-icon,.wu-aside-menu-close,.wu-aside-menu-mobile.wu-aside-menu-animated,.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open,.wu-aside-menu-mask.wu-aside-menu-animated,.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:none}}}\n"] }]
782
+ }, template: "<div *ngIf=\"mobile\" class=\"wu-aside-menu-mask\" [class.wu-aside-menu-mask-visible]=\"visible\" [class.wu-aside-menu-animated]=\"animated\" aria-hidden=\"true\" (click)=\"close()\"></div>\n\n<nav\n #panel\n class=\"wu-aside-menu\"\n [class]=\"styleClass || ''\"\n [class.wu-aside-menu-mobile]=\"mobile\"\n [class.wu-aside-menu-open]=\"mobile && visible\"\n [class.wu-aside-menu-animated]=\"animated\"\n [class.wu-aside-menu-collapsed]=\"rail\"\n [class.wu-aside-menu-sliding]=\"!!sliding\"\n [class.wu-aside-menu-sliding-collapse]=\"sliding === 'collapse'\"\n [class.wu-aside-menu-sliding-expand]=\"sliding === 'expand'\"\n [style]=\"rootStyle\"\n [id]=\"panelId\"\n tabindex=\"-1\"\n [attr.aria-label]=\"navLabel\"\n [attr.inert]=\"mobile && !visible ? '' : null\"\n (keydown)=\"keydown($event)\"\n>\n <div class=\"wu-aside-menu-header\">\n <ng-content select=\"[wuAsideMenuStart]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"startTemplate; context: slotContext\"></ng-container>\n <button *ngIf=\"mobile\" #closeButton type=\"button\" class=\"wu-aside-menu-close\" [attr.aria-label]=\"t.close\" (click)=\"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 </div>\n\n <div class=\"wu-aside-menu-body\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-root\" role=\"list\" [class.wu-aside-menu-rail]=\"rail\">\n <ng-container *ngIf=\"guestShown\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: guestGroup, key: 'g', depth: 0, rail: false }\"></ng-container>\n <li class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: items, parent: '', depth: 0, rail: rail }\"></ng-container>\n </ul>\n </div>\n\n <div class=\"wu-aside-menu-footer\">\n <ng-content select=\"[wuAsideMenuEnd]\"></ng-content>\n <ng-container *ngTemplateOutlet=\"endTemplate; context: slotContext\"></ng-container>\n <button\n *ngIf=\"showCollapseButton && !mobile\"\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-collapse\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [attr.aria-controls]=\"panelId\"\n [attr.title]=\"rail ? collapseLabel : null\"\n (click)=\"toggleCollapsed()\"\n >\n <svg class=\"wu-aside-menu-collapse-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 4 3.5 8l4 4M12.5 4l-4 4 4 4\"></path></svg>\n <span class=\"wu-aside-menu-label\">{{ collapseLabel }}</span>\n </button>\n </div>\n</nav>\n\n<!-- A list of items at one level. -->\n<ng-template #tree let-list let-parent=\"parent\" let-depth=\"depth\" let-rail=\"rail\">\n <ng-container *ngFor=\"let item of list; let i = index\">\n <ng-container *ngTemplateOutlet=\"entry; context: { $implicit: item, key: keyOf(parent, i), depth: depth, rail: rail }\"></ng-container>\n </ng-container>\n</ng-template>\n\n<!-- One item: a separator, a section heading, a group (in place, or a flyout on the icon rail), or a link. -->\n<ng-template #entry let-item let-key=\"key\" let-depth=\"depth\" let-rail=\"rail\">\n <li *ngIf=\"item.separator\" class=\"wu-aside-menu-separator\" aria-hidden=\"true\"></li>\n\n <li *ngIf=\"!item.separator && isSection(item, depth)\" class=\"wu-aside-menu-section\" [ngClass]=\"item.styleClass || ''\" [ngStyle]=\"item.style || null\">\n <span class=\"wu-aside-menu-section-label\" [id]=\"itemId(key) + '_label'\">{{ textOf(item) }}</span>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"itemId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: rail }\"></ng-container>\n </ul>\n </li>\n\n <li\n *ngIf=\"!item.separator && !isSection(item, depth)\"\n class=\"wu-aside-menu-item\"\n [ngClass]=\"item.styleClass || ''\"\n [ngStyle]=\"item.style || null\"\n [class.wu-aside-menu-item-disabled]=\"item.disabled\"\n >\n <ng-container *ngIf=\"hasChildren(item); else leafEntry\">\n <ng-container *ngIf=\"rail; else inPlace\">\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group wu-aside-menu-link-rail\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n data-wu-flyout=\"\"\n [attr.title]=\"railTitle(item)\"\n [attr.aria-expanded]=\"flyoutKey === key\"\n [attr.aria-controls]=\"flyoutKey === key ? flyoutId(key) : null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"railGroupClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: true, group: true }\"></ng-container>\n </button>\n <div *ngIf=\"flyoutKey === key\" class=\"wu-aside-menu-flyout\" popover=\"manual\" [id]=\"flyoutId(key)\" (focusout)=\"flyoutFocusOut($event)\">\n <div class=\"wu-aside-menu-flyout-title\" [id]=\"flyoutId(key) + '_label'\">{{ textOf(item) }}</div>\n <ul class=\"wu-aside-menu-list\" role=\"list\" [attr.aria-labelledby]=\"flyoutId(key) + '_label'\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </ng-container>\n <ng-template #inPlace>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link wu-aside-menu-group\"\n [class.wu-aside-menu-group-active]=\"holdsActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"item.title || null\"\n [attr.aria-expanded]=\"isOpen(item)\"\n [attr.aria-controls]=\"itemId(key) + '_children'\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"groupClick(item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: false, group: true }\"></ng-container>\n </button>\n <div class=\"wu-aside-menu-children\" [class.wu-aside-menu-children-open]=\"isOpen(item)\" [id]=\"itemId(key) + '_children'\" [attr.inert]=\"isOpen(item) ? null : ''\">\n <div class=\"wu-aside-menu-children-inner\">\n <ul class=\"wu-aside-menu-list wu-aside-menu-sublist\" role=\"list\">\n <ng-container *ngTemplateOutlet=\"tree; context: { $implicit: visibleOf(item.items), parent: key, depth: depth + 1, rail: false }\"></ng-container>\n </ul>\n </div>\n </div>\n </ng-template>\n </ng-container>\n <ng-template #leafEntry>\n <ng-container *ngTemplateOutlet=\"leaf; context: { $implicit: item, key: key, rail: rail }\"></ng-container>\n </ng-template>\n </li>\n</ng-template>\n\n<!-- A link: router link, plain link, or a button that runs the command. -->\n<ng-template #leaf let-item let-key=\"key\" let-rail=\"rail\">\n <a\n *ngIf=\"routed(item); else plainLink\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.target]=\"item.target || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [routerLink]=\"item.routerLink\"\n [queryParams]=\"item.queryParams\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [fragment]=\"item.fragment\"\n [preserveFragment]=\"!!item.preserveFragment\"\n [skipLocationChange]=\"!!item.skipLocationChange\"\n [replaceUrl]=\"!!item.replaceUrl\"\n [state]=\"item.state\"\n routerLinkActive=\"wu-aside-menu-link-active\"\n ariaCurrentWhenActive=\"page\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #plainLink>\n <a\n *ngIf=\"item.url; else commandButton\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [class.wu-aside-menu-link-disabled]=\"item.disabled\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.href]=\"hrefOf(item)\"\n [attr.target]=\"item.target || null\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </a>\n <ng-template #commandButton>\n <button\n type=\"button\"\n class=\"wu-aside-menu-link\"\n [class.wu-aside-menu-link-rail]=\"rail\"\n [class.wu-aside-menu-link-active]=\"isActive(item)\"\n [id]=\"itemId(key)\"\n [attr.data-wu-key]=\"key\"\n [attr.aria-current]=\"isActive(item) ? 'page' : null\"\n [attr.title]=\"rail ? railTitle(item) : item.title || null\"\n [attr.data-automationid]=\"item.automationId || null\"\n [disabled]=\"!!item.disabled\"\n (click)=\"itemClick($event, item, key)\"\n >\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item, rail: rail, group: false }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n</ng-template>\n\n<ng-template #content let-item let-rail=\"rail\" let-group=\"group\">\n <ng-container *ngIf=\"itemTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, collapsed: rail }\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <span *ngIf=\"item.icon\" class=\"wu-aside-menu-icon\" [ngClass]=\"item.icon\" [ngStyle]=\"item.iconStyle || null\" aria-hidden=\"true\"></span>\n <span *ngIf=\"!item.icon && rail\" class=\"wu-aside-menu-initial\" aria-hidden=\"true\">{{ initialOf(item) }}</span>\n <span *ngIf=\"item.escape !== false\" class=\"wu-aside-menu-label\">{{ item.label }}</span>\n <span *ngIf=\"item.escape === false\" class=\"wu-aside-menu-label\" [innerHTML]=\"item.label\"></span>\n <span *ngIf=\"item.badge\" class=\"wu-aside-menu-badge\" [ngClass]=\"item.badgeStyleClass || ''\">{{ item.badge }}</span>\n <svg *ngIf=\"group && !rail\" class=\"wu-aside-menu-chevron\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4 6 4 4 4-4\"></path></svg>\n </ng-template>\n</ng-template>\n", styles: ["@layer wiraui.components{wu-aside-menu{position:sticky;top:var(--wu-aside-menu-top);display:block;flex:none;align-self:flex-start;box-sizing:border-box;width:var(--wu-aside-menu-width);max-width:100%;height:calc(100vh - var(--wu-aside-menu-top));height:calc(100dvh - var(--wu-aside-menu-top));transition:width var(--wu-transition) ease}wu-aside-menu.wu-aside-menu-host-collapsed{width:var(--wu-aside-menu-collapsed-width)}wu-aside-menu.wu-aside-menu-host-sliding{overflow:hidden}wu-aside-menu.wu-aside-menu-host-sliding:after{content:\"\";position:absolute;inset-block:0;inset-inline-end:0;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);pointer-events:none}wu-aside-menu.wu-aside-menu-host-mobile{display:contents}.wu-aside-menu{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;overflow:hidden;border-inline-end:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color);background:var(--wu-aside-menu-bg);color:var(--wu-aside-menu-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu.wu-aside-menu-sliding{width:var(--wu-aside-menu-width);border-inline-end-color:transparent}.wu-aside-menu-sliding :is(.wu-aside-menu-label,.wu-aside-menu-section-label){overflow:hidden;white-space:nowrap}.wu-aside-menu-sliding-collapse :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){opacity:0;transition:opacity var(--wu-transition) ease}.wu-aside-menu-sliding-expand :is(.wu-aside-menu-label,.wu-aside-menu-section-label,.wu-aside-menu-badge,.wu-aside-menu-chevron){animation:wu-aside-menu-fade-in var(--wu-transition) ease both}@keyframes wu-aside-menu-fade-in{0%{opacity:0}}.wu-aside-menu:focus{outline:none}.wu-aside-menu-header,.wu-aside-menu-footer{display:flex;flex:none;gap:.5rem;min-width:0;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-header{align-items:center}.wu-aside-menu-footer{flex-direction:column;align-items:stretch;border-top:var(--wu-aside-menu-border-width) solid var(--wu-aside-menu-border-color)}.wu-aside-menu-header:empty,.wu-aside-menu-footer:empty{display:none}.wu-aside-menu-collapsed .wu-aside-menu-header{overflow:hidden}.wu-aside-menu-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:var(--wu-aside-menu-padding)}.wu-aside-menu-list{display:flex;flex-direction:column;gap:var(--wu-menu-gap);margin:0;padding:0;list-style:none}.wu-aside-menu-sublist{padding-block-start:var(--wu-menu-gap);padding-inline-start:var(--wu-aside-menu-indent)}.wu-aside-menu-item,.wu-aside-menu-section{display:flex;flex-direction:column;min-width:0}.wu-aside-menu-section{gap:var(--wu-menu-gap)}.wu-aside-menu-section-label{display:block;padding:var(--wu-aside-menu-section-padding);color:var(--wu-aside-menu-section-color);font-size:var(--wu-aside-menu-section-size);font-weight:600;overflow-wrap:anywhere}.wu-aside-menu-separator{margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-link{position:relative;display:flex;align-items:center;gap:var(--wu-aside-menu-item-gap);box-sizing:border-box;width:100%;min-width:0;min-height:var(--wu-aside-menu-item-height);margin:0;padding:var(--wu-aside-menu-item-padding);border:0;border-radius:var(--wu-aside-menu-item-radius);background:transparent;color:var(--wu-aside-menu-item-color);font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition)}.wu-aside-menu-link:where(:not(:disabled,.wu-aside-menu-link-disabled)):hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-link:focus-visible{background:var(--wu-aside-menu-item-hover-bg);outline:var(--wu-control-focus-outline);outline-offset:calc(-1 * var(--wu-control-focus-offset) - 1px);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-group-active{color:var(--wu-aside-menu-group-active-color)}.wu-aside-menu-link.wu-aside-menu-link-active{background:var(--wu-aside-menu-item-active-bg);color:var(--wu-aside-menu-item-active-color)}.wu-aside-menu-link:disabled,.wu-aside-menu-link-disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-aside-menu-icon{flex:none;width:1.25rem;color:var(--wu-aside-menu-item-icon-color);text-align:center}.wu-aside-menu-link-active .wu-aside-menu-icon,.wu-aside-menu-group-active .wu-aside-menu-icon{color:inherit}.wu-aside-menu-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.wu-aside-menu-badge{display:inline-grid;flex:none;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .375rem;border-radius:999px;background:var(--wu-primary-color);color:var(--wu-primary-contrast);font-size:.75rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-badge{background:var(--wu-aside-menu-item-active-color);color:var(--wu-primary-color)}.wu-aside-menu-chevron{flex:none;width:.875rem;height:.875rem;margin-inline-start:auto;transform:rotate(-90deg);transition:transform var(--wu-transition)}[aria-expanded=true]>.wu-aside-menu-chevron{transform:none}.wu-aside-menu-children{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-aside-menu-children-open{grid-template-rows:1fr}.wu-aside-menu-children-inner{min-height:0;overflow:hidden}.wu-aside-menu-link-rail{justify-content:center;gap:0;padding-inline:0}.wu-aside-menu-link-rail .wu-aside-menu-label,.wu-aside-menu-rail .wu-aside-menu-section-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.wu-aside-menu-link-rail .wu-aside-menu-badge{position:absolute;top:.375rem;inset-inline-end:.375rem;min-width:.5rem;height:.5rem;padding:0;font-size:0}.wu-aside-menu-initial{display:inline-grid;flex:none;place-items:center;width:1.75rem;height:1.75rem;border-radius:var(--wu-radius-full);background:var(--wu-aside-menu-item-hover-bg);font-size:.875rem;font-weight:600;line-height:1}.wu-aside-menu-link-active .wu-aside-menu-initial{background:transparent}.wu-aside-menu-rail>.wu-aside-menu-section:not(:first-child):before{content:\"\";display:block;margin:.25rem .5rem;border-top:1px solid var(--wu-aside-menu-border-color)}.wu-aside-menu-collapse{color:var(--wu-aside-menu-item-icon-color)}.wu-aside-menu-collapse-icon{flex:none;width:1.25rem;height:1rem;transition:transform var(--wu-transition)}.wu-aside-menu-collapsed .wu-aside-menu-collapse-icon{transform:scaleX(-1)}.wu-aside-menu-close{display:inline-grid;flex:none;place-items:center;width:var(--wu-aside-menu-item-height);height:var(--wu-aside-menu-item-height);margin:0;margin-inline-start:auto;padding:0;border:0;border-radius:var(--wu-radius-full);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--wu-transition)}.wu-aside-menu-close:hover{background:var(--wu-aside-menu-item-hover-bg)}.wu-aside-menu-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-aside-menu-close svg{width:1.125rem;height:1.125rem}.wu-aside-menu-mobile .wu-aside-menu-header{position:relative;min-height:calc(var(--wu-aside-menu-item-height) + 2 * var(--wu-aside-menu-padding))}.wu-aside-menu-mobile .wu-aside-menu-close{position:absolute;inset-block-start:var(--wu-aside-menu-padding);inset-inline-end:var(--wu-aside-menu-padding)}.wu-aside-menu-mobile .wu-aside-menu-header>:first-child:nth-last-child(2){flex:1 1 auto;min-width:0}.wu-aside-menu-mobile{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:var(--wu-aside-menu-z-index);width:var(--wu-aside-menu-mobile-width);max-width:100vw;height:auto;border-inline-end:0;box-shadow:var(--wu-aside-menu-mobile-shadow);visibility:hidden;transform:translate(-100%)}.wu-aside-menu-mobile:dir(rtl){transform:translate(100%)}.wu-aside-menu-mobile.wu-aside-menu-open{visibility:visible;transform:none}.wu-aside-menu-mobile.wu-aside-menu-animated{transition:transform var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open{transition:transform var(--wu-transition) ease,visibility 0s}.wu-aside-menu-mask{position:fixed;inset:0;z-index:var(--wu-aside-menu-z-index);background:var(--wu-mask);opacity:0;visibility:hidden}.wu-aside-menu-mask-visible{opacity:1;visibility:visible}.wu-aside-menu-mask.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s linear var(--wu-transition)}.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:opacity var(--wu-transition) ease,visibility 0s}.wu-aside-menu-flyout{position:fixed;inset:auto;z-index:1200;box-sizing:border-box;min-width:var(--wu-menu-min-width);max-width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);margin:0;overflow-y:auto;padding:var(--wu-menu-padding);border:var(--wu-menu-overlay-border-width) solid var(--wu-border);border-radius:var(--wu-menu-radius);background:var(--wu-menu-overlay-bg);box-shadow:var(--wu-menu-shadow);color:var(--wu-aside-menu-item-color);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height)}.wu-aside-menu-flyout-title{padding:var(--wu-menu-submenu-label-padding);background:var(--wu-menu-submenu-label-bg);color:var(--wu-menu-submenu-label-color);font-weight:var(--wu-menu-submenu-label-weight)}@media (prefers-reduced-motion: reduce){wu-aside-menu,.wu-aside-menu-link,.wu-aside-menu-chevron,.wu-aside-menu-children,.wu-aside-menu-collapse-icon,.wu-aside-menu-close,.wu-aside-menu-mobile.wu-aside-menu-animated,.wu-aside-menu-mobile.wu-aside-menu-animated.wu-aside-menu-open,.wu-aside-menu-mask.wu-aside-menu-animated,.wu-aside-menu-mask-visible.wu-aside-menu-animated{transition:none}}}\n"] }]
783
783
  }], ctorParameters: function () { return []; }, propDecorators: { model: [{
784
784
  type: Input
785
785
  }], activeItem: [{