@wirabyte/ui 1.0.0-beta.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +6 -6
  3. package/avatar/avatar.component.d.ts +4 -2
  4. package/avatar/avatar.types.d.ts +3 -0
  5. package/breadcrumb/breadcrumb.component.d.ts +3 -1
  6. package/button/button.styles.d.ts +1 -1
  7. package/chat/chat.component.d.ts +118 -0
  8. package/chat/chat.module.d.ts +8 -0
  9. package/chat/chat.types.d.ts +64 -0
  10. package/chat/index.d.ts +5 -0
  11. package/chat/public-api.d.ts +3 -0
  12. package/config/options.d.ts +6 -0
  13. package/config/theme.service.d.ts +5 -0
  14. package/config/wu-config.service.d.ts +6 -0
  15. package/core/catalog.d.ts +6 -1
  16. package/core/overrides.d.ts +7 -0
  17. package/core/thai/locale.d.ts +47 -0
  18. package/datepicker/datepicker.component.d.ts +1 -1
  19. package/descriptions/descriptions.component.d.ts +56 -0
  20. package/descriptions/descriptions.module.d.ts +8 -0
  21. package/descriptions/index.d.ts +5 -0
  22. package/descriptions/public-api.d.ts +2 -0
  23. package/esm2020/accordion/accordion.component.mjs +4 -4
  24. package/esm2020/alert/alert-dialog.component.mjs +3 -3
  25. package/esm2020/avatar/avatar.component.mjs +10 -5
  26. package/esm2020/avatar/avatar.types.mjs +2 -2
  27. package/esm2020/breadcrumb/breadcrumb.component.mjs +5 -3
  28. package/esm2020/button/button.component.mjs +3 -3
  29. package/esm2020/button/button.styles.mjs +2 -2
  30. package/esm2020/card/card.component.mjs +8 -8
  31. package/esm2020/chat/chat.component.mjs +370 -0
  32. package/esm2020/chat/chat.module.mjs +17 -0
  33. package/esm2020/chat/chat.types.mjs +2 -0
  34. package/esm2020/chat/public-api.mjs +4 -0
  35. package/esm2020/chat/wirabyte-ui-chat.mjs +5 -0
  36. package/esm2020/config/options.mjs +1 -1
  37. package/esm2020/config/theme.service.mjs +35 -3
  38. package/esm2020/config/wu-config.service.mjs +9 -1
  39. package/esm2020/core/catalog.mjs +22 -2
  40. package/esm2020/core/families.mjs +43 -1
  41. package/esm2020/core/overrides.mjs +26 -1
  42. package/esm2020/core/thai/locale.mjs +67 -1
  43. package/esm2020/datepicker/datepicker.component.mjs +2 -2
  44. package/esm2020/descriptions/descriptions.component.mjs +112 -0
  45. package/esm2020/descriptions/descriptions.module.mjs +17 -0
  46. package/esm2020/descriptions/public-api.mjs +3 -0
  47. package/esm2020/descriptions/wirabyte-ui-descriptions.mjs +5 -0
  48. package/esm2020/dialog/dialog.component.mjs +3 -3
  49. package/esm2020/drawer/drawer.component.mjs +3 -3
  50. package/esm2020/emptystate/emptystate.component.mjs +3 -3
  51. package/esm2020/errorpage/errorpage.component.mjs +3 -3
  52. package/esm2020/fieldset/fieldset.component.mjs +4 -4
  53. package/esm2020/metergroup/metergroup.component.mjs +29 -5
  54. package/esm2020/metergroup/metergroup.types.mjs +1 -1
  55. package/esm2020/navbar/navbar.component.mjs +3 -3
  56. package/esm2020/panel/panel.component.mjs +6 -6
  57. package/esm2020/popover/popover.base.mjs +3 -3
  58. package/esm2020/result/result.component.mjs +3 -3
  59. package/esm2020/scheduler/public-api.mjs +4 -0
  60. package/esm2020/scheduler/scheduler.component.mjs +483 -0
  61. package/esm2020/scheduler/scheduler.module.mjs +17 -0
  62. package/esm2020/scheduler/scheduler.types.mjs +2 -0
  63. package/esm2020/scheduler/wirabyte-ui-scheduler.mjs +5 -0
  64. package/esm2020/selectbutton/selectbutton.component.mjs +23 -5
  65. package/esm2020/signaturepad/public-api.mjs +3 -0
  66. package/esm2020/signaturepad/signaturepad.component.mjs +289 -0
  67. package/esm2020/signaturepad/signaturepad.module.mjs +17 -0
  68. package/esm2020/signaturepad/wirabyte-ui-signaturepad.mjs +5 -0
  69. package/esm2020/stat/public-api.mjs +3 -0
  70. package/esm2020/stat/stat.component.mjs +128 -0
  71. package/esm2020/stat/stat.module.mjs +17 -0
  72. package/esm2020/stat/wirabyte-ui-stat.mjs +5 -0
  73. package/esm2020/table/table.celleditor.mjs +4 -4
  74. package/esm2020/tabs/tabs.component.mjs +3 -3
  75. package/esm2020/tag/tag.component.mjs +3 -3
  76. package/esm2020/textarea/textarea.directive.mjs +19 -1
  77. package/esm2020/thai/thai.pipes.mjs +2 -2
  78. package/esm2020/toolbar/toolbar.component.mjs +7 -7
  79. package/fesm2015/wirabyte-ui-accordion.mjs +3 -3
  80. package/fesm2015/wirabyte-ui-accordion.mjs.map +1 -1
  81. package/fesm2015/wirabyte-ui-alert.mjs +2 -2
  82. package/fesm2015/wirabyte-ui-alert.mjs.map +1 -1
  83. package/fesm2015/wirabyte-ui-avatar.mjs +11 -5
  84. package/fesm2015/wirabyte-ui-avatar.mjs.map +1 -1
  85. package/fesm2015/wirabyte-ui-breadcrumb.mjs +4 -2
  86. package/fesm2015/wirabyte-ui-breadcrumb.mjs.map +1 -1
  87. package/fesm2015/wirabyte-ui-button.mjs +3 -3
  88. package/fesm2015/wirabyte-ui-button.mjs.map +1 -1
  89. package/fesm2015/wirabyte-ui-card.mjs +7 -7
  90. package/fesm2015/wirabyte-ui-card.mjs.map +1 -1
  91. package/fesm2015/wirabyte-ui-chat.mjs +399 -0
  92. package/fesm2015/wirabyte-ui-chat.mjs.map +1 -0
  93. package/fesm2015/wirabyte-ui-config.mjs +42 -2
  94. package/fesm2015/wirabyte-ui-config.mjs.map +1 -1
  95. package/fesm2015/wirabyte-ui-core.mjs +147 -2
  96. package/fesm2015/wirabyte-ui-core.mjs.map +1 -1
  97. package/fesm2015/wirabyte-ui-datepicker.mjs +1 -1
  98. package/fesm2015/wirabyte-ui-datepicker.mjs.map +1 -1
  99. package/fesm2015/wirabyte-ui-descriptions.mjs +133 -0
  100. package/fesm2015/wirabyte-ui-descriptions.mjs.map +1 -0
  101. package/fesm2015/wirabyte-ui-dialog.mjs +2 -2
  102. package/fesm2015/wirabyte-ui-dialog.mjs.map +1 -1
  103. package/fesm2015/wirabyte-ui-drawer.mjs +2 -2
  104. package/fesm2015/wirabyte-ui-drawer.mjs.map +1 -1
  105. package/fesm2015/wirabyte-ui-emptystate.mjs +2 -2
  106. package/fesm2015/wirabyte-ui-emptystate.mjs.map +1 -1
  107. package/fesm2015/wirabyte-ui-errorpage.mjs +2 -2
  108. package/fesm2015/wirabyte-ui-errorpage.mjs.map +1 -1
  109. package/fesm2015/wirabyte-ui-fieldset.mjs +3 -3
  110. package/fesm2015/wirabyte-ui-fieldset.mjs.map +1 -1
  111. package/fesm2015/wirabyte-ui-metergroup.mjs +29 -4
  112. package/fesm2015/wirabyte-ui-metergroup.mjs.map +1 -1
  113. package/fesm2015/wirabyte-ui-navbar.mjs +2 -2
  114. package/fesm2015/wirabyte-ui-navbar.mjs.map +1 -1
  115. package/fesm2015/wirabyte-ui-panel.mjs +5 -5
  116. package/fesm2015/wirabyte-ui-panel.mjs.map +1 -1
  117. package/fesm2015/wirabyte-ui-popover.mjs +2 -2
  118. package/fesm2015/wirabyte-ui-popover.mjs.map +1 -1
  119. package/fesm2015/wirabyte-ui-result.mjs +2 -2
  120. package/fesm2015/wirabyte-ui-result.mjs.map +1 -1
  121. package/fesm2015/wirabyte-ui-scheduler.mjs +514 -0
  122. package/fesm2015/wirabyte-ui-scheduler.mjs.map +1 -0
  123. package/fesm2015/wirabyte-ui-selectbutton.mjs +22 -4
  124. package/fesm2015/wirabyte-ui-selectbutton.mjs.map +1 -1
  125. package/fesm2015/wirabyte-ui-signaturepad.mjs +313 -0
  126. package/fesm2015/wirabyte-ui-signaturepad.mjs.map +1 -0
  127. package/fesm2015/wirabyte-ui-stat.mjs +151 -0
  128. package/fesm2015/wirabyte-ui-stat.mjs.map +1 -0
  129. package/fesm2015/wirabyte-ui-table.mjs +3 -3
  130. package/fesm2015/wirabyte-ui-table.mjs.map +1 -1
  131. package/fesm2015/wirabyte-ui-tabs.mjs +2 -2
  132. package/fesm2015/wirabyte-ui-tabs.mjs.map +1 -1
  133. package/fesm2015/wirabyte-ui-tag.mjs +2 -2
  134. package/fesm2015/wirabyte-ui-tag.mjs.map +1 -1
  135. package/fesm2015/wirabyte-ui-textarea.mjs +18 -0
  136. package/fesm2015/wirabyte-ui-textarea.mjs.map +1 -1
  137. package/fesm2015/wirabyte-ui-thai.mjs +1 -1
  138. package/fesm2015/wirabyte-ui-thai.mjs.map +1 -1
  139. package/fesm2015/wirabyte-ui-toolbar.mjs +6 -6
  140. package/fesm2015/wirabyte-ui-toolbar.mjs.map +1 -1
  141. package/fesm2020/wirabyte-ui-accordion.mjs +3 -3
  142. package/fesm2020/wirabyte-ui-accordion.mjs.map +1 -1
  143. package/fesm2020/wirabyte-ui-alert.mjs +2 -2
  144. package/fesm2020/wirabyte-ui-alert.mjs.map +1 -1
  145. package/fesm2020/wirabyte-ui-avatar.mjs +11 -5
  146. package/fesm2020/wirabyte-ui-avatar.mjs.map +1 -1
  147. package/fesm2020/wirabyte-ui-breadcrumb.mjs +4 -2
  148. package/fesm2020/wirabyte-ui-breadcrumb.mjs.map +1 -1
  149. package/fesm2020/wirabyte-ui-button.mjs +3 -3
  150. package/fesm2020/wirabyte-ui-button.mjs.map +1 -1
  151. package/fesm2020/wirabyte-ui-card.mjs +7 -7
  152. package/fesm2020/wirabyte-ui-card.mjs.map +1 -1
  153. package/fesm2020/wirabyte-ui-chat.mjs +391 -0
  154. package/fesm2020/wirabyte-ui-chat.mjs.map +1 -0
  155. package/fesm2020/wirabyte-ui-config.mjs +42 -2
  156. package/fesm2020/wirabyte-ui-config.mjs.map +1 -1
  157. package/fesm2020/wirabyte-ui-core.mjs +155 -2
  158. package/fesm2020/wirabyte-ui-core.mjs.map +1 -1
  159. package/fesm2020/wirabyte-ui-datepicker.mjs +1 -1
  160. package/fesm2020/wirabyte-ui-datepicker.mjs.map +1 -1
  161. package/fesm2020/wirabyte-ui-descriptions.mjs +133 -0
  162. package/fesm2020/wirabyte-ui-descriptions.mjs.map +1 -0
  163. package/fesm2020/wirabyte-ui-dialog.mjs +2 -2
  164. package/fesm2020/wirabyte-ui-dialog.mjs.map +1 -1
  165. package/fesm2020/wirabyte-ui-drawer.mjs +2 -2
  166. package/fesm2020/wirabyte-ui-drawer.mjs.map +1 -1
  167. package/fesm2020/wirabyte-ui-emptystate.mjs +2 -2
  168. package/fesm2020/wirabyte-ui-emptystate.mjs.map +1 -1
  169. package/fesm2020/wirabyte-ui-errorpage.mjs +2 -2
  170. package/fesm2020/wirabyte-ui-errorpage.mjs.map +1 -1
  171. package/fesm2020/wirabyte-ui-fieldset.mjs +3 -3
  172. package/fesm2020/wirabyte-ui-fieldset.mjs.map +1 -1
  173. package/fesm2020/wirabyte-ui-metergroup.mjs +28 -4
  174. package/fesm2020/wirabyte-ui-metergroup.mjs.map +1 -1
  175. package/fesm2020/wirabyte-ui-navbar.mjs +2 -2
  176. package/fesm2020/wirabyte-ui-navbar.mjs.map +1 -1
  177. package/fesm2020/wirabyte-ui-panel.mjs +5 -5
  178. package/fesm2020/wirabyte-ui-panel.mjs.map +1 -1
  179. package/fesm2020/wirabyte-ui-popover.mjs +2 -2
  180. package/fesm2020/wirabyte-ui-popover.mjs.map +1 -1
  181. package/fesm2020/wirabyte-ui-result.mjs +2 -2
  182. package/fesm2020/wirabyte-ui-result.mjs.map +1 -1
  183. package/fesm2020/wirabyte-ui-scheduler.mjs +504 -0
  184. package/fesm2020/wirabyte-ui-scheduler.mjs.map +1 -0
  185. package/fesm2020/wirabyte-ui-selectbutton.mjs +22 -4
  186. package/fesm2020/wirabyte-ui-selectbutton.mjs.map +1 -1
  187. package/fesm2020/wirabyte-ui-signaturepad.mjs +310 -0
  188. package/fesm2020/wirabyte-ui-signaturepad.mjs.map +1 -0
  189. package/fesm2020/wirabyte-ui-stat.mjs +149 -0
  190. package/fesm2020/wirabyte-ui-stat.mjs.map +1 -0
  191. package/fesm2020/wirabyte-ui-table.mjs +3 -3
  192. package/fesm2020/wirabyte-ui-table.mjs.map +1 -1
  193. package/fesm2020/wirabyte-ui-tabs.mjs +2 -2
  194. package/fesm2020/wirabyte-ui-tabs.mjs.map +1 -1
  195. package/fesm2020/wirabyte-ui-tag.mjs +2 -2
  196. package/fesm2020/wirabyte-ui-tag.mjs.map +1 -1
  197. package/fesm2020/wirabyte-ui-textarea.mjs +18 -0
  198. package/fesm2020/wirabyte-ui-textarea.mjs.map +1 -1
  199. package/fesm2020/wirabyte-ui-thai.mjs +1 -1
  200. package/fesm2020/wirabyte-ui-thai.mjs.map +1 -1
  201. package/fesm2020/wirabyte-ui-toolbar.mjs +6 -6
  202. package/fesm2020/wirabyte-ui-toolbar.mjs.map +1 -1
  203. package/metergroup/metergroup.component.d.ts +16 -3
  204. package/metergroup/metergroup.types.d.ts +6 -0
  205. package/package.json +41 -1
  206. package/scheduler/index.d.ts +5 -0
  207. package/scheduler/public-api.d.ts +3 -0
  208. package/scheduler/scheduler.component.d.ts +143 -0
  209. package/scheduler/scheduler.module.d.ts +8 -0
  210. package/scheduler/scheduler.types.d.ts +46 -0
  211. package/schematics/core/catalog.cjs +22 -1
  212. package/schematics/core/families.cjs +42 -0
  213. package/schematics/core/overrides.cjs +25 -0
  214. package/schematics/core/thai/locale.cjs +66 -0
  215. package/schematics/ng-add/index.cjs +3 -1
  216. package/selectbutton/selectbutton.component.d.ts +12 -1
  217. package/signaturepad/index.d.ts +5 -0
  218. package/signaturepad/public-api.d.ts +2 -0
  219. package/signaturepad/signaturepad.component.d.ts +98 -0
  220. package/signaturepad/signaturepad.module.d.ts +8 -0
  221. package/stat/index.d.ts +5 -0
  222. package/stat/public-api.d.ts +2 -0
  223. package/stat/stat.component.d.ts +61 -0
  224. package/stat/stat.module.d.ts +8 -0
  225. package/textarea/textarea.directive.d.ts +2 -0
  226. package/theme/_data.scss +239 -7
  227. package/theme/_index.scss +29 -0
  228. package/themes/arun-blue/theme.css +30 -1
  229. package/themes/arun-green/theme.css +30 -1
  230. package/themes/arun-orange/theme.css +30 -1
  231. package/themes/arun-purple/theme.css +30 -1
  232. package/themes/md-dark-deeppurple/theme.css +30 -1
  233. package/themes/md-dark-indigo/theme.css +30 -1
  234. package/themes/md-light-deeppurple/theme.css +30 -1
  235. package/themes/md-light-indigo/theme.css +30 -1
  236. package/themes/ratri-blue/theme.css +30 -1
  237. package/themes/ratri-green/theme.css +30 -1
  238. package/themes/ratri-orange/theme.css +30 -1
  239. package/themes/ratri-purple/theme.css +30 -1
  240. package/themes/sayan-blue/theme.css +30 -1
  241. package/themes/sayan-green/theme.css +30 -1
  242. package/themes/sayan-orange/theme.css +30 -1
  243. package/themes/sayan-purple/theme.css +30 -1
  244. package/themes/sila-dark-blue/theme.css +30 -1
  245. package/themes/sila-dark-indigo/theme.css +30 -1
  246. package/themes/sila-dark-purple/theme.css +30 -1
  247. package/themes/sila-dark-teal/theme.css +30 -1
  248. package/themes/sila-light-blue/theme.css +30 -1
  249. package/themes/sila-light-indigo/theme.css +30 -1
  250. package/themes/sila-light-purple/theme.css +30 -1
  251. package/themes/sila-light-teal/theme.css +30 -1
  252. package/themes/sila-light-wira/theme.css +30 -1
@@ -28,7 +28,7 @@ class WuToolbar {
28
28
  }
29
29
  }
30
30
  WuToolbar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
31
- WuToolbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuToolbar, isStandalone: true, selector: "wu-toolbar", inputs: { ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, queries: [{ propertyName: "startRef", first: true, predicate: ["start"], descendants: true, read: TemplateRef }, { propertyName: "centerRef", first: true, predicate: ["center"], descendants: true, read: TemplateRef }, { propertyName: "endRef", first: true, predicate: ["end"], descendants: true, read: TemplateRef }, { propertyName: "leftRef", first: true, predicate: ["left"], descendants: true, read: TemplateRef }, { propertyName: "rightRef", first: true, predicate: ["right"], descendants: true, read: TemplateRef }, { propertyName: "slotTemplates", predicate: WuTemplate }], ngImport: i0, template: `<div class="wu-toolbar p-toolbar p-component" role="toolbar" [class]="styleClass || ''" [style]="hostStyle" [attr.aria-label]="ariaLabel || null">
31
+ WuToolbar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuToolbar, isStandalone: true, selector: "wu-toolbar", inputs: { ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style" }, queries: [{ propertyName: "startRef", first: true, predicate: ["start"], read: TemplateRef }, { propertyName: "centerRef", first: true, predicate: ["center"], read: TemplateRef }, { propertyName: "endRef", first: true, predicate: ["end"], read: TemplateRef }, { propertyName: "leftRef", first: true, predicate: ["left"], read: TemplateRef }, { propertyName: "rightRef", first: true, predicate: ["right"], read: TemplateRef }, { propertyName: "slotTemplates", predicate: WuTemplate }], ngImport: i0, template: `<div class="wu-toolbar p-toolbar p-component" role="toolbar" [class]="styleClass || ''" [style]="hostStyle" [attr.aria-label]="ariaLabel || null">
32
32
  <div class="wu-toolbar-start p-toolbar-start p-toolbar-group-start p-toolbar-group-left"><ng-content select="[wuToolbarStart]"></ng-content><ng-content></ng-content><ng-container *ngIf="startTemplate"><ng-container *ngTemplateOutlet="startTemplate"></ng-container></ng-container></div>
33
33
  <div class="wu-toolbar-center p-toolbar-center p-toolbar-group-center"><ng-content select="[wuToolbarCenter]"></ng-content><ng-container *ngIf="centerTemplate"><ng-container *ngTemplateOutlet="centerTemplate"></ng-container></ng-container></div>
34
34
  <div class="wu-toolbar-end p-toolbar-end p-toolbar-group-end p-toolbar-group-right"><ng-content select="[wuToolbarEnd]"></ng-content><ng-container *ngIf="endTemplate"><ng-container *ngTemplateOutlet="endTemplate"></ng-container></ng-container></div>
@@ -51,19 +51,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
51
51
  args: [WuTemplate]
52
52
  }], startRef: [{
53
53
  type: ContentChild,
54
- args: ['start', { read: TemplateRef }]
54
+ args: ['start', { read: TemplateRef, descendants: false }]
55
55
  }], centerRef: [{
56
56
  type: ContentChild,
57
- args: ['center', { read: TemplateRef }]
57
+ args: ['center', { read: TemplateRef, descendants: false }]
58
58
  }], endRef: [{
59
59
  type: ContentChild,
60
- args: ['end', { read: TemplateRef }]
60
+ args: ['end', { read: TemplateRef, descendants: false }]
61
61
  }], leftRef: [{
62
62
  type: ContentChild,
63
- args: ['left', { read: TemplateRef }]
63
+ args: ['left', { read: TemplateRef, descendants: false }]
64
64
  }], rightRef: [{
65
65
  type: ContentChild,
66
- args: ['right', { read: TemplateRef }]
66
+ args: ['right', { read: TemplateRef, descendants: false }]
67
67
  }] } });
68
68
 
69
69
  /** For NgModule apps. Standalone apps can import `WuToolbar` directly. */
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-toolbar.mjs","sources":["../../lib/toolbar/toolbar.component.ts","../../lib/toolbar/toolbar.module.ts","../../lib/toolbar/wirabyte-ui-toolbar.ts"],"sourcesContent":["import { NgIf, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, inject, Input, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\n\n/**\n * Row of actions in three groups that wrap on narrow screens:\n * `<wu-toolbar><div wuToolbarStart>…</div><div wuToolbarCenter>…</div><div wuToolbarEnd>…</div></wu-toolbar>`.\n * Unmarked content goes to the start group. The `start` / `center` / `end` templates (`left` / `right` in the older\n * names) work too.\n */\n@Component({\n selector: 'wu-toolbar',\n standalone: true,\n imports: [NgIf, NgTemplateOutlet],\n template: `<div class=\"wu-toolbar p-toolbar p-component\" role=\"toolbar\" [class]=\"styleClass || ''\" [style]=\"hostStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-toolbar-start p-toolbar-start p-toolbar-group-start p-toolbar-group-left\"><ng-content select=\"[wuToolbarStart]\"></ng-content><ng-content></ng-content><ng-container *ngIf=\"startTemplate\"><ng-container *ngTemplateOutlet=\"startTemplate\"></ng-container></ng-container></div>\n <div class=\"wu-toolbar-center p-toolbar-center p-toolbar-group-center\"><ng-content select=\"[wuToolbarCenter]\"></ng-content><ng-container *ngIf=\"centerTemplate\"><ng-container *ngTemplateOutlet=\"centerTemplate\"></ng-container></ng-container></div>\n <div class=\"wu-toolbar-end p-toolbar-end p-toolbar-group-end p-toolbar-group-right\"><ng-content select=\"[wuToolbarEnd]\"></ng-content><ng-container *ngIf=\"endTemplate\"><ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container></ng-container></div>\n</div>`,\n styleUrls: ['./toolbar.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuToolbar {\n @Input() ariaLabel?: string;\n /** Classes for the element, as before. */\n @Input() styleClass?: string | null;\n /** Inline styles as an object: `[style]=\"{ width: '20rem' }\"` (a plain style attribute works as it is). */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get hostStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n\n @ContentChildren(WuTemplate) protected slotTemplates?: QueryList<WuTemplate>;\n @ContentChild('start', { read: TemplateRef }) protected startRef?: TemplateRef<unknown>;\n @ContentChild('center', { read: TemplateRef }) protected centerRef?: TemplateRef<unknown>;\n @ContentChild('end', { read: TemplateRef }) protected endRef?: TemplateRef<unknown>;\n @ContentChild('left', { read: TemplateRef }) protected leftRef?: TemplateRef<unknown>;\n @ContentChild('right', { read: TemplateRef }) protected rightRef?: TemplateRef<unknown>;\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n get startTemplate(): TemplateRef<unknown> | null {\n return this.startRef || this.leftRef || ɵfindTemplate(this.slotTemplates, 'start') || ɵfindTemplate(this.slotTemplates, 'left');\n }\n get centerTemplate(): TemplateRef<unknown> | null {\n return this.centerRef || ɵfindTemplate(this.slotTemplates, 'center');\n }\n get endTemplate(): TemplateRef<unknown> | null {\n return this.endRef || this.rightRef || ɵfindTemplate(this.slotTemplates, 'end') || ɵfindTemplate(this.slotTemplates, 'right');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuToolbar } from './toolbar.component';\n\n/** For NgModule apps. Standalone apps can import `WuToolbar` directly. */\n@NgModule({\n imports: [WuToolbar, WuTemplate],\n exports: [WuToolbar, WuTemplate],\n})\nexport class WuToolbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA;;;;;AAKG;MAcU,SAAS,CAAA;;AAQpB,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;KACzE;AASD,IAAA,WAAA,GAAA;AACE,QAAA,uBAAuB,CAAC,MAAM,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;KAC7E;AAED,IAAA,IAAI,aAAa,GAAA;QACf,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,IAAI,aAAa,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;KACjI;AACD,IAAA,IAAI,cAAc,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,SAAS,IAAI,aAAa,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;KACtE;AACD,IAAA,IAAI,WAAW,GAAA;QACb,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,IAAI,aAAa,CAAC,IAAI,CAAC,aA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["import { NgIf, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, inject, Input, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\n\n/**\n * Row of actions in three groups that wrap on narrow screens:\n * `<wu-toolbar><div wuToolbarStart>…</div><div wuToolbarCenter>…</div><div wuToolbarEnd>…</div></wu-toolbar>`.\n * Unmarked content goes to the start group. The `start` / `center` / `end` templates (`left` / `right` in the older\n * names) work too.\n */\n@Component({\n selector: 'wu-toolbar',\n standalone: true,\n imports: [NgIf, NgTemplateOutlet],\n template: `<div class=\"wu-toolbar p-toolbar p-component\" role=\"toolbar\" [class]=\"styleClass || ''\" [style]=\"hostStyle\" [attr.aria-label]=\"ariaLabel || null\">\n <div class=\"wu-toolbar-start p-toolbar-start p-toolbar-group-start p-toolbar-group-left\"><ng-content select=\"[wuToolbarStart]\"></ng-content><ng-content></ng-content><ng-container *ngIf=\"startTemplate\"><ng-container *ngTemplateOutlet=\"startTemplate\"></ng-container></ng-container></div>\n <div class=\"wu-toolbar-center p-toolbar-center p-toolbar-group-center\"><ng-content select=\"[wuToolbarCenter]\"></ng-content><ng-container *ngIf=\"centerTemplate\"><ng-container *ngTemplateOutlet=\"centerTemplate\"></ng-container></ng-container></div>\n <div class=\"wu-toolbar-end p-toolbar-end p-toolbar-group-end p-toolbar-group-right\"><ng-content select=\"[wuToolbarEnd]\"></ng-content><ng-container *ngIf=\"endTemplate\"><ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container></ng-container></div>\n</div>`,\n styleUrls: ['./toolbar.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuToolbar {\n @Input() ariaLabel?: string;\n /** Classes for the element, as before. */\n @Input() styleClass?: string | null;\n /** Inline styles as an object: `[style]=\"{ width: '20rem' }\"` (a plain style attribute works as it is). */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get hostStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n\n @ContentChildren(WuTemplate) protected slotTemplates?: QueryList<WuTemplate>;\n @ContentChild('start', { read: TemplateRef, descendants: false }) protected startRef?: TemplateRef<unknown>;\n @ContentChild('center', { read: TemplateRef, descendants: false }) protected centerRef?: TemplateRef<unknown>;\n @ContentChild('end', { read: TemplateRef, descendants: false }) protected endRef?: TemplateRef<unknown>;\n @ContentChild('left', { read: TemplateRef, descendants: false }) protected leftRef?: TemplateRef<unknown>;\n @ContentChild('right', { read: TemplateRef, descendants: false }) protected rightRef?: TemplateRef<unknown>;\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n get startTemplate(): TemplateRef<unknown> | null {\n return this.startRef || this.leftRef || ɵfindTemplate(this.slotTemplates, 'start') || ɵfindTemplate(this.slotTemplates, 'left');\n }\n get centerTemplate(): TemplateRef<unknown> | null {\n return this.centerRef || ɵfindTemplate(this.slotTemplates, 'center');\n }\n get endTemplate(): TemplateRef<unknown> | null {\n return this.endRef || this.rightRef || ɵfindTemplate(this.slotTemplates, 'end') || ɵfindTemplate(this.slotTemplates, 'right');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuToolbar } from './toolbar.component';\n\n/** For NgModule apps. Standalone apps can import `WuToolbar` directly. */\n@NgModule({\n imports: [WuToolbar, WuTemplate],\n exports: [WuToolbar, WuTemplate],\n})\nexport class WuToolbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAIA;;;;;AAKG;MAcU,SAAS,CAAA;;AAQpB,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,KAA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AU,CAAA,EAAA,CAAA,CAAA;AAEpB,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAHhB,SAAS,CAAA,EAAA,CAAA,CAAA;4FAGR,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AAChC,oBAAA,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;iBACjC,CAAA;;;ACRD;;AAEG;;;;"}
@@ -234,7 +234,7 @@ class WuAccordionTab {
234
234
  }
235
235
  }
236
236
  WuAccordionTab.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuAccordionTab, deps: [], target: i0.ɵɵFactoryTarget.Component });
237
- WuAccordionTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuAccordionTab, isStandalone: true, selector: "wu-accordion-tab, wu-accordiontab, wu-accordionTab", inputs: { header: "header", disabled: "disabled", selected: "selected" }, outputs: { selectedChange: "selectedChange" }, queries: [{ propertyName: "headerRef", first: true, predicate: ["header"], descendants: true, read: TemplateRef }, { propertyName: "contentRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef }, { propertyName: "slotTemplates", predicate: WuTemplate }], ngImport: i0, template: "<div [class]=\"classes\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordion-header p-accordion-header-link\"\n [class.p-highlight]=\"active\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordion-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text p-accordion-header-text\"><ng-container *ngIf=\"headerTemplate; else plainHeader\"><ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container></ng-container><ng-template #plainHeader>{{ header }}</ng-template></span>\n </button>\n <div class=\"wu-accordion-content-container p-toggleable-content\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordion-content\"><ng-content></ng-content><ng-container *ngIf=\"contentTemplate && active\"><ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container></ng-container></div>\n </div>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-accordion,wu-accordion-tab,wu-accordiontab,wu-accordion-panel,wu-accordionpanel,wu-accordion-header,wu-accordionheader,wu-accordion-content,wu-accordioncontent{display:block}.wu-accordion{display:flex;flex-direction:column;gap:var(--wu-accordion-gap);border:var(--wu-accordion-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-root-radius);background:var(--wu-accordion-bg);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height);color:var(--wu-text)}.wu-accordion-tab{border-bottom:var(--wu-accordion-panel-border-width) solid var(--wu-border)}.wu-accordion-separated>.wu-accordion{border-width:0;border-radius:0;background:transparent}.wu-accordion-separated .wu-accordion-tab,.wu-accordion-separated wu-accordion-tab:last-child>.wu-accordion-tab,.wu-accordion-separated wu-accordiontab:last-child>.wu-accordion-tab,.wu-accordion-separated .wu-accordion>.wu-accordion-tab:last-child{overflow:hidden;border:var(--wu-accordion-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-root-radius);background:var(--wu-accordion-bg)}wu-accordion-tab:last-child>.wu-accordion-tab,wu-accordiontab:last-child>.wu-accordion-tab,.wu-accordion>.wu-accordion-tab:last-child{border-bottom-width:min(var(--wu-accordion-panel-border-width),calc(1px - var(--wu-accordion-border-width)))}.wu-accordion-header{display:flex;align-items:center;gap:.5rem;width:100%;margin:0;padding:var(--wu-accordion-header-padding);border:var(--wu-accordion-header-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-radius);background:var(--wu-accordion-header-bg);color:var(--wu-accordion-header-color);font:inherit;font-weight:var(--wu-accordion-header-weight);text-align:left;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition),border-radius var(--wu-transition),box-shadow var(--wu-transition)}.wu-accordion-header:not(:disabled):hover,.wu-accordion-tab-active .wu-accordion-header{color:var(--wu-accordion-header-active-color)}.wu-accordion-header:focus-visible{position:relative;z-index:1;outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-accordion-header:disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-accordion-tab-active .wu-accordion-header{border-bottom-left-radius:0;border-bottom-right-radius:0}.wu-accordion-header-text{flex:1;min-width:0}.wu-accordion-toggle-icon{flex:none;order:var(--wu-accordion-icon-order);width:1rem;height:1rem;transform:rotate(var(--wu-accordion-icon-closed-rotate));transition:transform var(--wu-transition)}.wu-accordion-tab-active .wu-accordion-toggle-icon{transform:rotate(var(--wu-accordion-icon-open-rotate))}.wu-accordion-content-container{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-accordion-tab-active .wu-accordion-content-container{grid-template-rows:1fr}.wu-accordion-content-inner{min-height:0;overflow:hidden}.wu-accordion-content{padding:var(--wu-accordion-content-padding-top) var(--wu-accordion-content-padding) var(--wu-accordion-content-padding);border:var(--wu-accordion-content-border-width) solid var(--wu-border);border-top:0;border-radius:0 0 var(--wu-accordion-radius) var(--wu-accordion-radius);background:var(--wu-accordion-content-bg)}@media (prefers-reduced-motion: reduce){.wu-accordion-content-container,.wu-accordion-toggle-icon{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
237
+ WuAccordionTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuAccordionTab, isStandalone: true, selector: "wu-accordion-tab, wu-accordiontab, wu-accordionTab", inputs: { header: "header", disabled: "disabled", selected: "selected" }, outputs: { selectedChange: "selectedChange" }, queries: [{ propertyName: "headerRef", first: true, predicate: ["header"], read: TemplateRef }, { propertyName: "contentRef", first: true, predicate: ["content"], read: TemplateRef }, { propertyName: "slotTemplates", predicate: WuTemplate }], ngImport: i0, template: "<div [class]=\"classes\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordion-header p-accordion-header-link\"\n [class.p-highlight]=\"active\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordion-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text p-accordion-header-text\"><ng-container *ngIf=\"headerTemplate; else plainHeader\"><ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container></ng-container><ng-template #plainHeader>{{ header }}</ng-template></span>\n </button>\n <div class=\"wu-accordion-content-container p-toggleable-content\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordion-content\"><ng-content></ng-content><ng-container *ngIf=\"contentTemplate && active\"><ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container></ng-container></div>\n </div>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-accordion,wu-accordion-tab,wu-accordiontab,wu-accordion-panel,wu-accordionpanel,wu-accordion-header,wu-accordionheader,wu-accordion-content,wu-accordioncontent{display:block}.wu-accordion{display:flex;flex-direction:column;gap:var(--wu-accordion-gap);border:var(--wu-accordion-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-root-radius);background:var(--wu-accordion-bg);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height);color:var(--wu-text)}.wu-accordion-tab{border-bottom:var(--wu-accordion-panel-border-width) solid var(--wu-border)}.wu-accordion-separated>.wu-accordion{border-width:0;border-radius:0;background:transparent}.wu-accordion-separated .wu-accordion-tab,.wu-accordion-separated wu-accordion-tab:last-child>.wu-accordion-tab,.wu-accordion-separated wu-accordiontab:last-child>.wu-accordion-tab,.wu-accordion-separated .wu-accordion>.wu-accordion-tab:last-child{overflow:hidden;border:var(--wu-accordion-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-root-radius);background:var(--wu-accordion-bg)}wu-accordion-tab:last-child>.wu-accordion-tab,wu-accordiontab:last-child>.wu-accordion-tab,.wu-accordion>.wu-accordion-tab:last-child{border-bottom-width:min(var(--wu-accordion-panel-border-width),calc(1px - var(--wu-accordion-border-width)))}.wu-accordion-header{display:flex;align-items:center;gap:.5rem;width:100%;margin:0;padding:var(--wu-accordion-header-padding);border:var(--wu-accordion-header-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-radius);background:var(--wu-accordion-header-bg);color:var(--wu-accordion-header-color);font:inherit;font-weight:var(--wu-accordion-header-weight);text-align:left;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition),border-radius var(--wu-transition),box-shadow var(--wu-transition)}.wu-accordion-header:not(:disabled):hover,.wu-accordion-tab-active .wu-accordion-header{color:var(--wu-accordion-header-active-color)}.wu-accordion-header:focus-visible{position:relative;z-index:1;outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-accordion-header:disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-accordion-tab-active .wu-accordion-header{border-bottom-left-radius:0;border-bottom-right-radius:0}.wu-accordion-header-text{flex:1;min-width:0}.wu-accordion-toggle-icon{flex:none;order:var(--wu-accordion-icon-order);width:1rem;height:1rem;transform:rotate(var(--wu-accordion-icon-closed-rotate));transition:transform var(--wu-transition)}.wu-accordion-tab-active .wu-accordion-toggle-icon{transform:rotate(var(--wu-accordion-icon-open-rotate))}.wu-accordion-content-container{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-accordion-tab-active .wu-accordion-content-container{grid-template-rows:1fr}.wu-accordion-content-inner{min-height:0;overflow:hidden}.wu-accordion-content{padding:var(--wu-accordion-content-padding-top) var(--wu-accordion-content-padding) var(--wu-accordion-content-padding);border:var(--wu-accordion-content-border-width) solid var(--wu-border);border-top:0;border-radius:0 0 var(--wu-accordion-radius) var(--wu-accordion-radius);background:var(--wu-accordion-content-bg)}@media (prefers-reduced-motion: reduce){.wu-accordion-content-container,.wu-accordion-toggle-icon{transition:none}}}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
238
238
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuAccordionTab, decorators: [{
239
239
  type: Component,
240
240
  args: [{ selector: 'wu-accordion-tab, wu-accordiontab, wu-accordionTab', standalone: true, imports: [NgIf, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"classes\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordion-header p-accordion-header-link\"\n [class.p-highlight]=\"active\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordion-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text p-accordion-header-text\"><ng-container *ngIf=\"headerTemplate; else plainHeader\"><ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container></ng-container><ng-template #plainHeader>{{ header }}</ng-template></span>\n </button>\n <div class=\"wu-accordion-content-container p-toggleable-content\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordion-content\"><ng-content></ng-content><ng-container *ngIf=\"contentTemplate && active\"><ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container></ng-container></div>\n </div>\n </div>\n</div>\n", styles: ["@layer wiraui.components{wu-accordion,wu-accordion-tab,wu-accordiontab,wu-accordion-panel,wu-accordionpanel,wu-accordion-header,wu-accordionheader,wu-accordion-content,wu-accordioncontent{display:block}.wu-accordion{display:flex;flex-direction:column;gap:var(--wu-accordion-gap);border:var(--wu-accordion-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-root-radius);background:var(--wu-accordion-bg);font-family:var(--wu-font-family);font-size:var(--wu-font-size);line-height:var(--wu-line-height);color:var(--wu-text)}.wu-accordion-tab{border-bottom:var(--wu-accordion-panel-border-width) solid var(--wu-border)}.wu-accordion-separated>.wu-accordion{border-width:0;border-radius:0;background:transparent}.wu-accordion-separated .wu-accordion-tab,.wu-accordion-separated wu-accordion-tab:last-child>.wu-accordion-tab,.wu-accordion-separated wu-accordiontab:last-child>.wu-accordion-tab,.wu-accordion-separated .wu-accordion>.wu-accordion-tab:last-child{overflow:hidden;border:var(--wu-accordion-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-root-radius);background:var(--wu-accordion-bg)}wu-accordion-tab:last-child>.wu-accordion-tab,wu-accordiontab:last-child>.wu-accordion-tab,.wu-accordion>.wu-accordion-tab:last-child{border-bottom-width:min(var(--wu-accordion-panel-border-width),calc(1px - var(--wu-accordion-border-width)))}.wu-accordion-header{display:flex;align-items:center;gap:.5rem;width:100%;margin:0;padding:var(--wu-accordion-header-padding);border:var(--wu-accordion-header-border-width) solid var(--wu-border);border-radius:var(--wu-accordion-radius);background:var(--wu-accordion-header-bg);color:var(--wu-accordion-header-color);font:inherit;font-weight:var(--wu-accordion-header-weight);text-align:left;cursor:pointer;transition:background-color var(--wu-transition),color var(--wu-transition),border-radius var(--wu-transition),box-shadow var(--wu-transition)}.wu-accordion-header:not(:disabled):hover,.wu-accordion-tab-active .wu-accordion-header{color:var(--wu-accordion-header-active-color)}.wu-accordion-header:focus-visible{position:relative;z-index:1;outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-accordion-header:disabled{opacity:var(--wu-disabled-opacity);cursor:default}.wu-accordion-tab-active .wu-accordion-header{border-bottom-left-radius:0;border-bottom-right-radius:0}.wu-accordion-header-text{flex:1;min-width:0}.wu-accordion-toggle-icon{flex:none;order:var(--wu-accordion-icon-order);width:1rem;height:1rem;transform:rotate(var(--wu-accordion-icon-closed-rotate));transition:transform var(--wu-transition)}.wu-accordion-tab-active .wu-accordion-toggle-icon{transform:rotate(var(--wu-accordion-icon-open-rotate))}.wu-accordion-content-container{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--wu-transition) ease}.wu-accordion-tab-active .wu-accordion-content-container{grid-template-rows:1fr}.wu-accordion-content-inner{min-height:0;overflow:hidden}.wu-accordion-content{padding:var(--wu-accordion-content-padding-top) var(--wu-accordion-content-padding) var(--wu-accordion-content-padding);border:var(--wu-accordion-content-border-width) solid var(--wu-border);border-top:0;border-radius:0 0 var(--wu-accordion-radius) var(--wu-accordion-radius);background:var(--wu-accordion-content-bg)}@media (prefers-reduced-motion: reduce){.wu-accordion-content-container,.wu-accordion-toggle-icon{transition:none}}}\n"] }]
@@ -243,10 +243,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
243
243
  args: [WuTemplate]
244
244
  }], headerRef: [{
245
245
  type: ContentChild,
246
- args: ['header', { read: TemplateRef }]
246
+ args: ['header', { read: TemplateRef, descendants: false }]
247
247
  }], contentRef: [{
248
248
  type: ContentChild,
249
- args: ['content', { read: TemplateRef }]
249
+ args: ['content', { read: TemplateRef, descendants: false }]
250
250
  }], header: [{
251
251
  type: Input
252
252
  }], disabled: [{
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-accordion.mjs","sources":["../../lib/accordion/accordion.types.ts","../../lib/accordion/accordion.component.ts","../../lib/accordion/accordion-tab.component.html","../../lib/accordion/accordion.module.ts","../../lib/accordion/wirabyte-ui-accordion.ts"],"sourcesContent":["export interface WuAccordionTabEvent {\n index: number;\n /** Panels by value: the panel's value. */\n value?: unknown;\n}\n\n/**\n * The `gap` input of wu-accordion as a CSS length: `null` keeps the theme's look; `true` / `''` is 0.75rem; a number is\n * px; `false` / `0` joins the panels.\n */\nexport function ɵaccordionGap(v: unknown): string | null {\n if (v === null || v === undefined) return null;\n if (v === true || v === '' || v === 'true') return '0.75rem';\n if (v === false || v === 'false') return '0px';\n const n = Number(v);\n if (Number.isFinite(n)) return `${Math.max(0, n)}px`;\n return String(v);\n}\n","import { NgIf, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵtoBool, ɵuniqueId, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\nimport { ɵaccordionGap, WuAccordionTabEvent } from './accordion.types';\n\n/**\n * Stack of collapsible sections, written either way apps already write them:\n * - `<wu-accordion [(activeIndex)]=\"i\"><wu-accordion-tab header=\"…\">…</wu-accordion-tab></wu-accordion>` (index);\n * - `<wu-accordion [(value)]=\"open\"><wu-accordion-panel value=\"a\"><wu-accordion-header>…</wu-accordion-header>\n * <wu-accordion-content>…</wu-accordion-content></wu-accordion-panel></wu-accordion>` (value).\n * With `multiple` the index / value is an array. Arrow keys, Home and End move between headers.\n */\n@Component({\n selector: 'wu-accordion',\n standalone: true,\n template: '<div class=\"wu-accordion p-accordion p-component\" [class]=\"styleClass || \\'\\'\" [style]=\"rootStyle\"><ng-content></ng-content></div>',\n styleUrls: ['./accordion.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordion implements AfterContentInit, OnDestroy {\n /** Classes for the root element, as before (`styleClass=\"w-full\"`). */\n @Input() styleClass?: string | null;\n /** Inline styles for the root element, as an object: `[style]=\"{ width: '20rem' }\"`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n /** The `style` object for the root (a plain style attribute already styles the host). */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n @Input() set multiple(v: unknown) { this._multiple = ɵtoBool(v); }\n get multiple(): boolean { return this._multiple; }\n /**\n * Space between the panels: `[gap]=\"true\"` (0.75rem), `gap=\"1rem\"` or `[gap]=\"12\"` (px) makes each panel a card of its\n * own; `[gap]=\"false\"` joins them. Left out: the theme's look.\n */\n @Input() set gap(v: string | number | boolean | null | undefined) { this.gapLength = ɵaccordionGap(v); }\n @HostBinding('style.--wu-accordion-gap') gapLength: string | null = null;\n @HostBinding('class.wu-accordion-separated') get separated(): boolean {\n return !!this.gapLength && parseFloat(this.gapLength) !== 0;\n }\n /** Two-way: `[(activeIndex)]`. */\n @Input() set activeIndex(v: number | number[] | null) {\n this._activeIndex = v ?? null;\n this.refreshTabs();\n }\n get activeIndex(): number | number[] | null { return this._activeIndex; }\n\n @Output() readonly activeIndexChange = new EventEmitter<number | number[] | null>();\n /** Two-way: `[(value)]` with `wu-accordion-panel`: the open panel's value (an array with `multiple`). Typed `any`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() value: any;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Output() readonly valueChange = new EventEmitter<any>();\n @Output() readonly onOpen = new EventEmitter<WuAccordionTabEvent>();\n @Output() readonly onClose = new EventEmitter<WuAccordionTabEvent>();\n\n @ContentChildren(forwardRef(() => WuAccordionTab)) tabList?: QueryList<WuAccordionTab>;\n @ContentChildren(forwardRef(() => WuAccordionPanel)) panelList?: QueryList<WuAccordionPanel>;\n\n private _multiple = false;\n private _activeIndex: number | number[] | null = null;\n private sub?: Subscription;\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngAfterContentInit(): void {\n this.refreshTabs();\n this.sub = this.tabList?.changes.subscribe(() => this.refreshTabs());\n }\n\n ngOnDestroy(): void {\n this.sub?.unsubscribe();\n }\n\n get tabs(): WuAccordionTab[] {\n return this.tabList ? this.tabList.toArray() : [];\n }\n\n isActive(tab: WuAccordionTab): boolean {\n const index = this.tabs.indexOf(tab);\n const current = this._activeIndex;\n return (Array.isArray(current) ? current.includes(index) : current === index) || tab.selected;\n }\n\n toggle(tab: WuAccordionTab): void {\n const index = this.tabs.indexOf(tab);\n const open = this.isActive(tab);\n const current = this._activeIndex;\n let next: number | number[] | null;\n if (this._multiple) {\n const list = Array.isArray(current) ? current : current === null ? [] : [current];\n next = open ? list.filter((i) => i !== index) : [...list, index];\n } else {\n next = open ? null : index;\n // Opening one tab closes the others.\n if (!open) for (const t of this.tabs) if (t !== tab) t.setSelected(false);\n }\n tab.setSelected(!open);\n this._activeIndex = next;\n this.activeIndexChange.emit(next);\n (open ? this.onClose : this.onOpen).emit({ index });\n this.refreshTabs();\n }\n\n /** Panels by value: open when the value (or one of the values) is theirs. */\n isValueActive(value: unknown): boolean {\n const current = this.value;\n return Array.isArray(current) ? current.includes(value) : current !== undefined && current !== null && current === value;\n }\n\n togglePanel(panel: WuAccordionPanel): void {\n const value = panel.value;\n const open = this.isValueActive(value);\n const current = this.value;\n let next: unknown;\n if (this._multiple) {\n const list: unknown[] = Array.isArray(current) ? current : current === undefined || current === null ? [] : [current];\n next = open ? list.filter((v) => v !== value) : [...list, value];\n } else {\n next = open ? null : value;\n }\n this.value = next;\n this.valueChange.emit(next);\n const index = this.panelList ? this.panelList.toArray().indexOf(panel) : -1;\n (open ? this.onClose : this.onOpen).emit({ index, value });\n }\n\n /** Arrow keys, Home and End move focus between the headers (the WAI-ARIA accordion pattern). */\n moveFocus(from: { headerEl(): HTMLButtonElement }, key: string): boolean {\n const headers = Array.from(this.el.nativeElement.querySelectorAll<HTMLButtonElement>('.wu-accordion-header:not(:disabled)'));\n const current = headers.indexOf(from.headerEl());\n if (current < 0 || !headers.length) return false;\n const n = headers.length;\n const target = key === 'ArrowDown' ? (current + 1) % n : key === 'ArrowUp' ? (current - 1 + n) % n : key === 'Home' ? 0 : key === 'End' ? n - 1 : -1;\n if (target < 0) return false;\n headers[target].focus();\n return true;\n }\n\n /** Tabs are OnPush and read this component's state, so tell them when it changes. */\n private refreshTabs(): void {\n for (const t of this.tabs) t.markForCheck();\n }\n}\n\n/** One section of a `wu-accordion`: `header` text, projected content, `disabled`, and `[(selected)]` to open it from outside. */\n@Component({\n selector: 'wu-accordion-tab, wu-accordiontab, wu-accordionTab',\n standalone: true,\n imports: [NgIf, NgTemplateOutlet],\n templateUrl: './accordion-tab.component.html',\n styleUrls: ['./accordion.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionTab {\n @ContentChildren(WuTemplate) protected slotTemplates?: QueryList<WuTemplate>;\n @ContentChild('header', { read: TemplateRef }) protected headerRef?: TemplateRef<unknown>;\n get headerTemplate(): TemplateRef<unknown> | null {\n return this.headerRef || ɵfindTemplate(this.slotTemplates, 'header');\n }\n @ContentChild('content', { read: TemplateRef }) protected contentRef?: TemplateRef<unknown>;\n get contentTemplate(): TemplateRef<unknown> | null {\n return this.contentRef || ɵfindTemplate(this.slotTemplates, 'content');\n }\n @Input() header?: string;\n @Input() set disabled(v: unknown) { this._disabled = ɵtoBool(v); }\n get disabled(): boolean { return this._disabled; }\n /** Two-way: `[(selected)]`. */\n @Input() set selected(v: unknown) { this._selected = ɵtoBool(v); }\n get selected(): boolean { return this._selected; }\n\n @Output() readonly selectedChange = new EventEmitter<boolean>();\n\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n private _disabled = false;\n private _selected = false;\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly cdr = inject(ChangeDetectorRef);\n\n get active(): boolean {\n return this.accordion ? this.accordion.isActive(this) : this._selected;\n }\n /** Our classes plus the classic-era names (`p-accordion-tab-active`, `p-highlight`). */\n get classes(): string {\n return this.active ? 'wu-accordion-tab wu-accordion-tab-active p-accordion-tab p-accordion-tab-active' : 'wu-accordion-tab p-accordion-tab';\n }\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n setSelected(value: boolean): void {\n if (this._selected === value) return;\n this._selected = value;\n this.selectedChange.emit(value);\n }\n\n markForCheck(): void {\n this.cdr.markForCheck();\n }\n\n toggle(): void {\n if (this._disabled) return;\n if (this.accordion) this.accordion.toggle(this);\n else this.setSelected(!this._selected);\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/**\n * One section when the accordion is written by value: `<wu-accordion-panel value=\"a\" [disabled]=\"…\">` with a\n * `wu-accordion-header` and a `wu-accordion-content` inside.\n */\n@Component({\n selector: 'wu-accordion-panel, wu-accordionpanel',\n standalone: true,\n template: '<ng-content></ng-content>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-accordion-tab p-accordion-tab' },\n})\nexport class WuAccordionPanel {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() value: any;\n @Input() set disabled(v: unknown) { this._disabled = ɵtoBool(v); }\n get disabled(): boolean { return this._disabled; }\n\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n private _disabled = false;\n /** Open state when used without a wu-accordion. */\n private own = false;\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n @HostBinding('class.wu-accordion-tab-active') @HostBinding('class.p-accordion-tab-active')\n get active(): boolean {\n return this.accordion ? this.accordion.isValueActive(this.value) : this.own;\n }\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this._disabled) return;\n if (this.accordion) this.accordion.togglePanel(this);\n else this.own = !this.own;\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/** The header button of a `wu-accordion-panel`; its content is the title. Checked with its page (it reads the panel). */\n@Component({\n selector: 'wu-accordion-header, wu-accordionheader',\n standalone: true,\n template: `\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordion-header-link\"\n [id]=\"panel?.headerId\"\n [attr.aria-expanded]=\"panel?.active ?? false\"\n [attr.aria-controls]=\"panel?.contentId\"\n [disabled]=\"panel?.disabled ?? false\"\n (click)=\"panel?.toggle()\"\n (keydown)=\"panel?.onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordion-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text p-accordion-header-text\"><ng-content></ng-content></span>\n </button>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class WuAccordionHeader {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n\n/** The collapsible content of a `wu-accordion-panel`. Checked with its page (it reads the panel). */\n@Component({\n selector: 'wu-accordion-content, wu-accordioncontent',\n standalone: true,\n template: `\n <div class=\"wu-accordion-content-container p-toggleable-content\" role=\"region\" [id]=\"panel?.contentId\" [attr.aria-labelledby]=\"panel?.headerId\" [attr.inert]=\"panel?.active ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordion-content\"><ng-content></ng-content></div>\n </div>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class WuAccordionContent {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n","<div [class]=\"classes\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordion-header p-accordion-header-link\"\n [class.p-highlight]=\"active\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordion-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text p-accordion-header-text\"><ng-container *ngIf=\"headerTemplate; else plainHeader\"><ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container></ng-container><ng-template #plainHeader>{{ header }}</ng-template></span>\n </button>\n <div class=\"wu-accordion-content-container p-toggleable-content\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordion-content\"><ng-content></ng-content><ng-container *ngIf=\"contentTemplate && active\"><ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container></ng-container></div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuAccordion, WuAccordionContent, WuAccordionHeader, WuAccordionPanel, WuAccordionTab } from './accordion.component';\n\nconst ALL = [WuAccordion, WuAccordionTab, WuAccordionPanel, WuAccordionHeader, WuAccordionContent, WuTemplate];\n\n/** For NgModule apps. Standalone apps can import `WuAccordion` and `WuAccordionTab` (or the panel components) directly. */\n@NgModule({\n imports: ALL,\n exports: ALL,\n})\nexport class WuAccordionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAMA;;;AAGG;AACG,SAAU,aAAa,CAAC,CAAU,EAAA;AACtC,IAAA,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS;AAAE,QAAA,OAAO,IAAI,CAAC;IAC/C,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,CAA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,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,GAAG;AACZ,oBAAA,OAAO,EAAE,GAAG;AACb,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"wirabyte-ui-accordion.mjs","sources":["../../lib/accordion/accordion.types.ts","../../lib/accordion/accordion.component.ts","../../lib/accordion/accordion-tab.component.html","../../lib/accordion/accordion.module.ts","../../lib/accordion/wirabyte-ui-accordion.ts"],"sourcesContent":["export interface WuAccordionTabEvent {\n index: number;\n /** Panels by value: the panel's value. */\n value?: unknown;\n}\n\n/**\n * The `gap` input of wu-accordion as a CSS length: `null` keeps the theme's look; `true` / `''` is 0.75rem; a number is\n * px; `false` / `0` joins the panels.\n */\nexport function ɵaccordionGap(v: unknown): string | null {\n if (v === null || v === undefined) return null;\n if (v === true || v === '' || v === 'true') return '0.75rem';\n if (v === false || v === 'false') return '0px';\n const n = Number(v);\n if (Number.isFinite(n)) return `${Math.max(0, n)}px`;\n return String(v);\n}\n","import { NgIf, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵtoBool, ɵuniqueId, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\nimport { ɵaccordionGap, WuAccordionTabEvent } from './accordion.types';\n\n/**\n * Stack of collapsible sections, written either way apps already write them:\n * - `<wu-accordion [(activeIndex)]=\"i\"><wu-accordion-tab header=\"…\">…</wu-accordion-tab></wu-accordion>` (index);\n * - `<wu-accordion [(value)]=\"open\"><wu-accordion-panel value=\"a\"><wu-accordion-header>…</wu-accordion-header>\n * <wu-accordion-content>…</wu-accordion-content></wu-accordion-panel></wu-accordion>` (value).\n * With `multiple` the index / value is an array. Arrow keys, Home and End move between headers.\n */\n@Component({\n selector: 'wu-accordion',\n standalone: true,\n template: '<div class=\"wu-accordion p-accordion p-component\" [class]=\"styleClass || \\'\\'\" [style]=\"rootStyle\"><ng-content></ng-content></div>',\n styleUrls: ['./accordion.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordion implements AfterContentInit, OnDestroy {\n /** Classes for the root element, as before (`styleClass=\"w-full\"`). */\n @Input() styleClass?: string | null;\n /** Inline styles for the root element, as an object: `[style]=\"{ width: '20rem' }\"`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n /** The `style` object for the root (a plain style attribute already styles the host). */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n @Input() set multiple(v: unknown) { this._multiple = ɵtoBool(v); }\n get multiple(): boolean { return this._multiple; }\n /**\n * Space between the panels: `[gap]=\"true\"` (0.75rem), `gap=\"1rem\"` or `[gap]=\"12\"` (px) makes each panel a card of its\n * own; `[gap]=\"false\"` joins them. Left out: the theme's look.\n */\n @Input() set gap(v: string | number | boolean | null | undefined) { this.gapLength = ɵaccordionGap(v); }\n @HostBinding('style.--wu-accordion-gap') gapLength: string | null = null;\n @HostBinding('class.wu-accordion-separated') get separated(): boolean {\n return !!this.gapLength && parseFloat(this.gapLength) !== 0;\n }\n /** Two-way: `[(activeIndex)]`. */\n @Input() set activeIndex(v: number | number[] | null) {\n this._activeIndex = v ?? null;\n this.refreshTabs();\n }\n get activeIndex(): number | number[] | null { return this._activeIndex; }\n\n @Output() readonly activeIndexChange = new EventEmitter<number | number[] | null>();\n /** Two-way: `[(value)]` with `wu-accordion-panel`: the open panel's value (an array with `multiple`). Typed `any`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() value: any;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Output() readonly valueChange = new EventEmitter<any>();\n @Output() readonly onOpen = new EventEmitter<WuAccordionTabEvent>();\n @Output() readonly onClose = new EventEmitter<WuAccordionTabEvent>();\n\n @ContentChildren(forwardRef(() => WuAccordionTab)) tabList?: QueryList<WuAccordionTab>;\n @ContentChildren(forwardRef(() => WuAccordionPanel)) panelList?: QueryList<WuAccordionPanel>;\n\n private _multiple = false;\n private _activeIndex: number | number[] | null = null;\n private sub?: Subscription;\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngAfterContentInit(): void {\n this.refreshTabs();\n this.sub = this.tabList?.changes.subscribe(() => this.refreshTabs());\n }\n\n ngOnDestroy(): void {\n this.sub?.unsubscribe();\n }\n\n get tabs(): WuAccordionTab[] {\n return this.tabList ? this.tabList.toArray() : [];\n }\n\n isActive(tab: WuAccordionTab): boolean {\n const index = this.tabs.indexOf(tab);\n const current = this._activeIndex;\n return (Array.isArray(current) ? current.includes(index) : current === index) || tab.selected;\n }\n\n toggle(tab: WuAccordionTab): void {\n const index = this.tabs.indexOf(tab);\n const open = this.isActive(tab);\n const current = this._activeIndex;\n let next: number | number[] | null;\n if (this._multiple) {\n const list = Array.isArray(current) ? current : current === null ? [] : [current];\n next = open ? list.filter((i) => i !== index) : [...list, index];\n } else {\n next = open ? null : index;\n // Opening one tab closes the others.\n if (!open) for (const t of this.tabs) if (t !== tab) t.setSelected(false);\n }\n tab.setSelected(!open);\n this._activeIndex = next;\n this.activeIndexChange.emit(next);\n (open ? this.onClose : this.onOpen).emit({ index });\n this.refreshTabs();\n }\n\n /** Panels by value: open when the value (or one of the values) is theirs. */\n isValueActive(value: unknown): boolean {\n const current = this.value;\n return Array.isArray(current) ? current.includes(value) : current !== undefined && current !== null && current === value;\n }\n\n togglePanel(panel: WuAccordionPanel): void {\n const value = panel.value;\n const open = this.isValueActive(value);\n const current = this.value;\n let next: unknown;\n if (this._multiple) {\n const list: unknown[] = Array.isArray(current) ? current : current === undefined || current === null ? [] : [current];\n next = open ? list.filter((v) => v !== value) : [...list, value];\n } else {\n next = open ? null : value;\n }\n this.value = next;\n this.valueChange.emit(next);\n const index = this.panelList ? this.panelList.toArray().indexOf(panel) : -1;\n (open ? this.onClose : this.onOpen).emit({ index, value });\n }\n\n /** Arrow keys, Home and End move focus between the headers (the WAI-ARIA accordion pattern). */\n moveFocus(from: { headerEl(): HTMLButtonElement }, key: string): boolean {\n const headers = Array.from(this.el.nativeElement.querySelectorAll<HTMLButtonElement>('.wu-accordion-header:not(:disabled)'));\n const current = headers.indexOf(from.headerEl());\n if (current < 0 || !headers.length) return false;\n const n = headers.length;\n const target = key === 'ArrowDown' ? (current + 1) % n : key === 'ArrowUp' ? (current - 1 + n) % n : key === 'Home' ? 0 : key === 'End' ? n - 1 : -1;\n if (target < 0) return false;\n headers[target].focus();\n return true;\n }\n\n /** Tabs are OnPush and read this component's state, so tell them when it changes. */\n private refreshTabs(): void {\n for (const t of this.tabs) t.markForCheck();\n }\n}\n\n/** One section of a `wu-accordion`: `header` text, projected content, `disabled`, and `[(selected)]` to open it from outside. */\n@Component({\n selector: 'wu-accordion-tab, wu-accordiontab, wu-accordionTab',\n standalone: true,\n imports: [NgIf, NgTemplateOutlet],\n templateUrl: './accordion-tab.component.html',\n styleUrls: ['./accordion.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionTab {\n @ContentChildren(WuTemplate) protected slotTemplates?: QueryList<WuTemplate>;\n @ContentChild('header', { read: TemplateRef, descendants: false }) protected headerRef?: TemplateRef<unknown>;\n get headerTemplate(): TemplateRef<unknown> | null {\n return this.headerRef || ɵfindTemplate(this.slotTemplates, 'header');\n }\n @ContentChild('content', { read: TemplateRef, descendants: false }) protected contentRef?: TemplateRef<unknown>;\n get contentTemplate(): TemplateRef<unknown> | null {\n return this.contentRef || ɵfindTemplate(this.slotTemplates, 'content');\n }\n @Input() header?: string;\n @Input() set disabled(v: unknown) { this._disabled = ɵtoBool(v); }\n get disabled(): boolean { return this._disabled; }\n /** Two-way: `[(selected)]`. */\n @Input() set selected(v: unknown) { this._selected = ɵtoBool(v); }\n get selected(): boolean { return this._selected; }\n\n @Output() readonly selectedChange = new EventEmitter<boolean>();\n\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n private _disabled = false;\n private _selected = false;\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly cdr = inject(ChangeDetectorRef);\n\n get active(): boolean {\n return this.accordion ? this.accordion.isActive(this) : this._selected;\n }\n /** Our classes plus the classic-era names (`p-accordion-tab-active`, `p-highlight`). */\n get classes(): string {\n return this.active ? 'wu-accordion-tab wu-accordion-tab-active p-accordion-tab p-accordion-tab-active' : 'wu-accordion-tab p-accordion-tab';\n }\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n setSelected(value: boolean): void {\n if (this._selected === value) return;\n this._selected = value;\n this.selectedChange.emit(value);\n }\n\n markForCheck(): void {\n this.cdr.markForCheck();\n }\n\n toggle(): void {\n if (this._disabled) return;\n if (this.accordion) this.accordion.toggle(this);\n else this.setSelected(!this._selected);\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/**\n * One section when the accordion is written by value: `<wu-accordion-panel value=\"a\" [disabled]=\"…\">` with a\n * `wu-accordion-header` and a `wu-accordion-content` inside.\n */\n@Component({\n selector: 'wu-accordion-panel, wu-accordionpanel',\n standalone: true,\n template: '<ng-content></ng-content>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'wu-accordion-tab p-accordion-tab' },\n})\nexport class WuAccordionPanel {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() value: any;\n @Input() set disabled(v: unknown) { this._disabled = ɵtoBool(v); }\n get disabled(): boolean { return this._disabled; }\n\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n private _disabled = false;\n /** Open state when used without a wu-accordion. */\n private own = false;\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n @HostBinding('class.wu-accordion-tab-active') @HostBinding('class.p-accordion-tab-active')\n get active(): boolean {\n return this.accordion ? this.accordion.isValueActive(this.value) : this.own;\n }\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this._disabled) return;\n if (this.accordion) this.accordion.togglePanel(this);\n else this.own = !this.own;\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/** The header button of a `wu-accordion-panel`; its content is the title. Checked with its page (it reads the panel). */\n@Component({\n selector: 'wu-accordion-header, wu-accordionheader',\n standalone: true,\n template: `\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordion-header-link\"\n [id]=\"panel?.headerId\"\n [attr.aria-expanded]=\"panel?.active ?? false\"\n [attr.aria-controls]=\"panel?.contentId\"\n [disabled]=\"panel?.disabled ?? false\"\n (click)=\"panel?.toggle()\"\n (keydown)=\"panel?.onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordion-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text p-accordion-header-text\"><ng-content></ng-content></span>\n </button>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class WuAccordionHeader {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n\n/** The collapsible content of a `wu-accordion-panel`. Checked with its page (it reads the panel). */\n@Component({\n selector: 'wu-accordion-content, wu-accordioncontent',\n standalone: true,\n template: `\n <div class=\"wu-accordion-content-container p-toggleable-content\" role=\"region\" [id]=\"panel?.contentId\" [attr.aria-labelledby]=\"panel?.headerId\" [attr.inert]=\"panel?.active ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordion-content\"><ng-content></ng-content></div>\n </div>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class WuAccordionContent {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n","<div [class]=\"classes\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordion-header p-accordion-header-link\"\n [class.p-highlight]=\"active\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordion-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text p-accordion-header-text\"><ng-container *ngIf=\"headerTemplate; else plainHeader\"><ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container></ng-container><ng-template #plainHeader>{{ header }}</ng-template></span>\n </button>\n <div class=\"wu-accordion-content-container p-toggleable-content\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordion-content\"><ng-content></ng-content><ng-container *ngIf=\"contentTemplate && active\"><ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container></ng-container></div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuAccordion, WuAccordionContent, WuAccordionHeader, WuAccordionPanel, WuAccordionTab } from './accordion.component';\n\nconst ALL = [WuAccordion, WuAccordionTab, WuAccordionPanel, WuAccordionHeader, WuAccordionContent, WuTemplate];\n\n/** For NgModule apps. Standalone apps can import `WuAccordion` and `WuAccordionTab` (or the panel components) directly. */\n@NgModule({\n imports: ALL,\n exports: ALL,\n})\nexport class WuAccordionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAMA;;;AAGG;AACG,SAAU,aAAa,CAAC,CAAU,EAAA;AACtC,IAAA,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS;AAAE,QAAA,OAAO,IAAI,CAAC;IAC/C,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,MAAM;AAAE,QAAA,OAAO,SAAS,CAAC;AAC7D,IAAA,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,OAAO;AAAE,QAAA,OAAO,KAAK,CAAC;AAC/C,IAAA,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACpB,IAAA,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAAE,OAAO,CAAA,EAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA,EAAA,CAAI,CAAC;AACrD,IAAA,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;AACnB;;ACOA;;;;;;AAMG;MASU,WAAW,CAAA;;;AAQtB,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,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BACrC,eAAe,EAAE,uBAAuB,CAAC,OAAO;AACjD,iBAAA,CAAA;;;AEhUD,MAAM,GAAG,GAAG,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC;AAE/G;MAKa,iBAAiB,CAAA;;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAjB,iBAAiB,EAAA,OAAA,EAAA,CAPjB,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAhG,EAAA,OAAA,EAAA,CAAA,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA;gHAOhG,iBAAiB,EAAA,OAAA,EAAA,CAPjB,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA;4FAOpF,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,GAAG;AACZ,oBAAA,OAAO,EAAE,GAAG;AACb,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -364,10 +364,10 @@ class WuAlertDialog extends ɵWuAlertDialogBase {
364
364
  }
365
365
  }
366
366
  WuAlertDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuAlertDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
367
- WuAlertDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuAlertDialog, isStandalone: true, selector: "wu-alertdialog", usesInheritance: true, ngImport: i0, template: "<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", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media (max-width: 575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
367
+ WuAlertDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuAlertDialog, isStandalone: true, selector: "wu-alertdialog", usesInheritance: true, ngImport: i0, template: "<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", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{font-family:var(--wu-heading-font-family);margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media (max-width: 575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
368
368
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuAlertDialog, decorators: [{
369
369
  type: Component,
370
- args: [{ selector: 'wu-alertdialog', standalone: true, imports: [NgClass, NgFor, NgIf, NgSwitch, NgSwitchCase], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media (max-width: 575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"] }]
370
+ args: [{ selector: 'wu-alertdialog', standalone: true, imports: [NgClass, NgFor, NgIf, NgSwitch, NgSwitchCase], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<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", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{font-family:var(--wu-heading-font-family);margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media (max-width: 575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media (prefers-reduced-motion: reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"] }]
371
371
  }], ctorParameters: function () { return []; } });
372
372
 
373
373
  /** For NgModule apps; nothing to declare in templates, as alerts are opened from code (`WuAlertService`, `WuAlert`). */