@wirabyte/ui 3.0.0-beta.0 → 3.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 (257) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +6 -6
  3. package/fesm2022/wirabyte-ui-accordion.mjs +4 -4
  4. package/fesm2022/wirabyte-ui-accordion.mjs.map +1 -1
  5. package/fesm2022/wirabyte-ui-alert.mjs +2 -2
  6. package/fesm2022/wirabyte-ui-alert.mjs.map +1 -1
  7. package/fesm2022/wirabyte-ui-avatar.mjs +13 -6
  8. package/fesm2022/wirabyte-ui-avatar.mjs.map +1 -1
  9. package/fesm2022/wirabyte-ui-breadcrumb.mjs +4 -2
  10. package/fesm2022/wirabyte-ui-breadcrumb.mjs.map +1 -1
  11. package/fesm2022/wirabyte-ui-button.mjs +3 -3
  12. package/fesm2022/wirabyte-ui-button.mjs.map +1 -1
  13. package/fesm2022/wirabyte-ui-card.mjs +8 -8
  14. package/fesm2022/wirabyte-ui-card.mjs.map +1 -1
  15. package/fesm2022/wirabyte-ui-chat.mjs +391 -0
  16. package/fesm2022/wirabyte-ui-chat.mjs.map +1 -0
  17. package/fesm2022/wirabyte-ui-config.mjs +42 -2
  18. package/fesm2022/wirabyte-ui-config.mjs.map +1 -1
  19. package/fesm2022/wirabyte-ui-core.mjs +155 -2
  20. package/fesm2022/wirabyte-ui-core.mjs.map +1 -1
  21. package/fesm2022/wirabyte-ui-datepicker.mjs +2 -2
  22. package/fesm2022/wirabyte-ui-datepicker.mjs.map +1 -1
  23. package/fesm2022/wirabyte-ui-descriptions.mjs +133 -0
  24. package/fesm2022/wirabyte-ui-descriptions.mjs.map +1 -0
  25. package/fesm2022/wirabyte-ui-dialog.mjs +2 -2
  26. package/fesm2022/wirabyte-ui-dialog.mjs.map +1 -1
  27. package/fesm2022/wirabyte-ui-drawer.mjs +2 -2
  28. package/fesm2022/wirabyte-ui-drawer.mjs.map +1 -1
  29. package/fesm2022/wirabyte-ui-emptystate.mjs +2 -2
  30. package/fesm2022/wirabyte-ui-emptystate.mjs.map +1 -1
  31. package/fesm2022/wirabyte-ui-errorpage.mjs +2 -2
  32. package/fesm2022/wirabyte-ui-errorpage.mjs.map +1 -1
  33. package/fesm2022/wirabyte-ui-fieldset.mjs +4 -4
  34. package/fesm2022/wirabyte-ui-fieldset.mjs.map +1 -1
  35. package/fesm2022/wirabyte-ui-metergroup.mjs +19 -5
  36. package/fesm2022/wirabyte-ui-metergroup.mjs.map +1 -1
  37. package/fesm2022/wirabyte-ui-navbar.mjs +2 -2
  38. package/fesm2022/wirabyte-ui-navbar.mjs.map +1 -1
  39. package/fesm2022/wirabyte-ui-panel.mjs +6 -6
  40. package/fesm2022/wirabyte-ui-panel.mjs.map +1 -1
  41. package/fesm2022/wirabyte-ui-popover.mjs +2 -2
  42. package/fesm2022/wirabyte-ui-popover.mjs.map +1 -1
  43. package/fesm2022/wirabyte-ui-result.mjs +2 -2
  44. package/fesm2022/wirabyte-ui-result.mjs.map +1 -1
  45. package/fesm2022/wirabyte-ui-scheduler.mjs +504 -0
  46. package/fesm2022/wirabyte-ui-scheduler.mjs.map +1 -0
  47. package/fesm2022/wirabyte-ui-selectbutton.mjs +25 -4
  48. package/fesm2022/wirabyte-ui-selectbutton.mjs.map +1 -1
  49. package/fesm2022/wirabyte-ui-signaturepad.mjs +310 -0
  50. package/fesm2022/wirabyte-ui-signaturepad.mjs.map +1 -0
  51. package/fesm2022/wirabyte-ui-stat.mjs +149 -0
  52. package/fesm2022/wirabyte-ui-stat.mjs.map +1 -0
  53. package/fesm2022/wirabyte-ui-table.mjs +3 -3
  54. package/fesm2022/wirabyte-ui-table.mjs.map +1 -1
  55. package/fesm2022/wirabyte-ui-tabs.mjs +3 -3
  56. package/fesm2022/wirabyte-ui-tabs.mjs.map +1 -1
  57. package/fesm2022/wirabyte-ui-tag.mjs +2 -2
  58. package/fesm2022/wirabyte-ui-tag.mjs.map +1 -1
  59. package/fesm2022/wirabyte-ui-textarea.mjs +18 -0
  60. package/fesm2022/wirabyte-ui-textarea.mjs.map +1 -1
  61. package/fesm2022/wirabyte-ui-thai.mjs +1 -1
  62. package/fesm2022/wirabyte-ui-thai.mjs.map +1 -1
  63. package/fesm2022/wirabyte-ui-toolbar.mjs +6 -6
  64. package/fesm2022/wirabyte-ui-toolbar.mjs.map +1 -1
  65. package/package.json +21 -1
  66. package/schematics/core/catalog.cjs +22 -1
  67. package/schematics/core/families.cjs +42 -0
  68. package/schematics/core/overrides.cjs +25 -0
  69. package/schematics/core/thai/locale.cjs +66 -0
  70. package/schematics/ng-add/index.cjs +3 -1
  71. package/theme/_data.scss +239 -7
  72. package/theme/_index.scss +29 -0
  73. package/themes/glass/amber.css +36 -7
  74. package/themes/glass/blue.css +36 -7
  75. package/themes/glass/cyan.css +36 -7
  76. package/themes/glass/emerald.css +36 -7
  77. package/themes/glass/fuchsia.css +36 -7
  78. package/themes/glass/green.css +36 -7
  79. package/themes/glass/indigo.css +36 -7
  80. package/themes/glass/lime.css +36 -7
  81. package/themes/glass/orange.css +36 -7
  82. package/themes/glass/pink.css +36 -7
  83. package/themes/glass/purple.css +36 -7
  84. package/themes/glass/red.css +36 -7
  85. package/themes/glass/rose.css +36 -7
  86. package/themes/glass/sky.css +36 -7
  87. package/themes/glass/teal.css +36 -7
  88. package/themes/glass/theme.css +36 -7
  89. package/themes/glass/violet.css +36 -7
  90. package/themes/glass/wira.css +36 -7
  91. package/themes/glass/yellow.css +36 -7
  92. package/themes/lanna/amber.css +36 -7
  93. package/themes/lanna/blue.css +36 -7
  94. package/themes/lanna/cyan.css +36 -7
  95. package/themes/lanna/emerald.css +36 -7
  96. package/themes/lanna/fuchsia.css +36 -7
  97. package/themes/lanna/green.css +36 -7
  98. package/themes/lanna/indigo.css +36 -7
  99. package/themes/lanna/lime.css +36 -7
  100. package/themes/lanna/orange.css +36 -7
  101. package/themes/lanna/pink.css +36 -7
  102. package/themes/lanna/purple.css +36 -7
  103. package/themes/lanna/red.css +36 -7
  104. package/themes/lanna/rose.css +36 -7
  105. package/themes/lanna/sky.css +36 -7
  106. package/themes/lanna/teal.css +36 -7
  107. package/themes/lanna/theme.css +36 -7
  108. package/themes/lanna/violet.css +36 -7
  109. package/themes/lanna/wira.css +36 -7
  110. package/themes/lanna/yellow.css +36 -7
  111. package/themes/mali/amber.css +30 -1
  112. package/themes/mali/blue.css +30 -1
  113. package/themes/mali/cyan.css +30 -1
  114. package/themes/mali/emerald.css +30 -1
  115. package/themes/mali/fuchsia.css +30 -1
  116. package/themes/mali/green.css +30 -1
  117. package/themes/mali/indigo.css +30 -1
  118. package/themes/mali/lime.css +30 -1
  119. package/themes/mali/orange.css +30 -1
  120. package/themes/mali/pink.css +30 -1
  121. package/themes/mali/purple.css +30 -1
  122. package/themes/mali/red.css +30 -1
  123. package/themes/mali/rose.css +30 -1
  124. package/themes/mali/sky.css +30 -1
  125. package/themes/mali/teal.css +30 -1
  126. package/themes/mali/theme.css +30 -1
  127. package/themes/mali/violet.css +30 -1
  128. package/themes/mali/wira.css +30 -1
  129. package/themes/mali/yellow.css +30 -1
  130. package/themes/material/amber.css +30 -1
  131. package/themes/material/blue.css +30 -1
  132. package/themes/material/cyan.css +30 -1
  133. package/themes/material/emerald.css +30 -1
  134. package/themes/material/fuchsia.css +30 -1
  135. package/themes/material/green.css +30 -1
  136. package/themes/material/indigo.css +30 -1
  137. package/themes/material/lime.css +30 -1
  138. package/themes/material/orange.css +30 -1
  139. package/themes/material/pink.css +30 -1
  140. package/themes/material/purple.css +30 -1
  141. package/themes/material/red.css +30 -1
  142. package/themes/material/rose.css +30 -1
  143. package/themes/material/sky.css +30 -1
  144. package/themes/material/teal.css +30 -1
  145. package/themes/material/theme.css +30 -1
  146. package/themes/material/violet.css +30 -1
  147. package/themes/material/wira.css +30 -1
  148. package/themes/material/yellow.css +30 -1
  149. package/themes/nakhon/amber.css +36 -7
  150. package/themes/nakhon/blue.css +36 -7
  151. package/themes/nakhon/cyan.css +36 -7
  152. package/themes/nakhon/emerald.css +36 -7
  153. package/themes/nakhon/fuchsia.css +36 -7
  154. package/themes/nakhon/green.css +36 -7
  155. package/themes/nakhon/indigo.css +36 -7
  156. package/themes/nakhon/lime.css +36 -7
  157. package/themes/nakhon/orange.css +36 -7
  158. package/themes/nakhon/pink.css +36 -7
  159. package/themes/nakhon/purple.css +36 -7
  160. package/themes/nakhon/red.css +36 -7
  161. package/themes/nakhon/rose.css +36 -7
  162. package/themes/nakhon/sky.css +36 -7
  163. package/themes/nakhon/teal.css +36 -7
  164. package/themes/nakhon/theme.css +36 -7
  165. package/themes/nakhon/violet.css +36 -7
  166. package/themes/nakhon/wira.css +36 -7
  167. package/themes/nakhon/yellow.css +36 -7
  168. package/themes/phet/amber.css +30 -1
  169. package/themes/phet/blue.css +30 -1
  170. package/themes/phet/cyan.css +30 -1
  171. package/themes/phet/emerald.css +30 -1
  172. package/themes/phet/fuchsia.css +30 -1
  173. package/themes/phet/green.css +30 -1
  174. package/themes/phet/indigo.css +30 -1
  175. package/themes/phet/lime.css +30 -1
  176. package/themes/phet/orange.css +30 -1
  177. package/themes/phet/pink.css +30 -1
  178. package/themes/phet/purple.css +30 -1
  179. package/themes/phet/red.css +30 -1
  180. package/themes/phet/rose.css +30 -1
  181. package/themes/phet/sky.css +30 -1
  182. package/themes/phet/teal.css +30 -1
  183. package/themes/phet/theme.css +30 -1
  184. package/themes/phet/violet.css +30 -1
  185. package/themes/phet/wira.css +30 -1
  186. package/themes/phet/yellow.css +30 -1
  187. package/themes/siam/amber.css +36 -7
  188. package/themes/siam/blue.css +36 -7
  189. package/themes/siam/cyan.css +36 -7
  190. package/themes/siam/emerald.css +36 -7
  191. package/themes/siam/fuchsia.css +36 -7
  192. package/themes/siam/green.css +36 -7
  193. package/themes/siam/indigo.css +36 -7
  194. package/themes/siam/lime.css +36 -7
  195. package/themes/siam/orange.css +36 -7
  196. package/themes/siam/pink.css +36 -7
  197. package/themes/siam/purple.css +36 -7
  198. package/themes/siam/red.css +36 -7
  199. package/themes/siam/rose.css +36 -7
  200. package/themes/siam/sky.css +36 -7
  201. package/themes/siam/teal.css +36 -7
  202. package/themes/siam/theme.css +36 -7
  203. package/themes/siam/violet.css +36 -7
  204. package/themes/siam/wira.css +36 -7
  205. package/themes/siam/yellow.css +36 -7
  206. package/themes/sila/amber.css +30 -1
  207. package/themes/sila/blue.css +30 -1
  208. package/themes/sila/cyan.css +30 -1
  209. package/themes/sila/emerald.css +30 -1
  210. package/themes/sila/fuchsia.css +30 -1
  211. package/themes/sila/green.css +30 -1
  212. package/themes/sila/indigo.css +30 -1
  213. package/themes/sila/lime.css +30 -1
  214. package/themes/sila/orange.css +30 -1
  215. package/themes/sila/pink.css +30 -1
  216. package/themes/sila/purple.css +30 -1
  217. package/themes/sila/red.css +30 -1
  218. package/themes/sila/rose.css +30 -1
  219. package/themes/sila/sky.css +30 -1
  220. package/themes/sila/teal.css +30 -1
  221. package/themes/sila/theme.css +30 -1
  222. package/themes/sila/violet.css +30 -1
  223. package/themes/sila/wira.css +30 -1
  224. package/themes/sila/yellow.css +30 -1
  225. package/themes/wira/amber.css +45 -16
  226. package/themes/wira/blue.css +45 -16
  227. package/themes/wira/cyan.css +45 -16
  228. package/themes/wira/emerald.css +45 -16
  229. package/themes/wira/fuchsia.css +45 -16
  230. package/themes/wira/green.css +45 -16
  231. package/themes/wira/indigo.css +45 -16
  232. package/themes/wira/lime.css +45 -16
  233. package/themes/wira/orange.css +45 -16
  234. package/themes/wira/pink.css +45 -16
  235. package/themes/wira/purple.css +45 -16
  236. package/themes/wira/red.css +45 -16
  237. package/themes/wira/rose.css +45 -16
  238. package/themes/wira/sky.css +45 -16
  239. package/themes/wira/teal.css +45 -16
  240. package/themes/wira/theme.css +45 -16
  241. package/themes/wira/violet.css +45 -16
  242. package/themes/wira/wira.css +45 -16
  243. package/themes/wira/yellow.css +45 -16
  244. package/types/wirabyte-ui-avatar.d.ts +8 -3
  245. package/types/wirabyte-ui-breadcrumb.d.ts +3 -1
  246. package/types/wirabyte-ui-button.d.ts +1 -1
  247. package/types/wirabyte-ui-chat.d.ts +192 -0
  248. package/types/wirabyte-ui-config.d.ts +17 -0
  249. package/types/wirabyte-ui-core.d.ts +62 -3
  250. package/types/wirabyte-ui-datepicker.d.ts +1 -1
  251. package/types/wirabyte-ui-descriptions.d.ts +67 -0
  252. package/types/wirabyte-ui-metergroup.d.ts +17 -2
  253. package/types/wirabyte-ui-scheduler.d.ts +199 -0
  254. package/types/wirabyte-ui-selectbutton.d.ts +12 -1
  255. package/types/wirabyte-ui-signaturepad.d.ts +108 -0
  256. package/types/wirabyte-ui-stat.d.ts +72 -0
  257. package/types/wirabyte-ui-textarea.d.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  รุ่นของ `@wirabyte/ui` แยก major ตามช่วง Angular: `1.x` = 15–17, `2.x` = 18–20, `3.x` = 21 ขึ้นไป ทุก major ออกจาก source ชุดเดียวกัน หัวข้อด้านล่างจึงใช้กับทุก major ยกเว้นที่ระบุไว้ ส่วน `@wirabyte/icons` ออกพร้อมกันแต่ใช้เลขของตัวเอง
4
4
 
5
+ ## 1.0.0 · 2.0.0 · 3.0.0 · @wirabyte/icons 1.0.0
6
+
7
+ รุ่นจริงรุ่นแรก ติดตั้งได้ด้วย `ng add @wirabyte/ui` (Angular 21 ขึ้นไป), `@wirabyte/ui@2` (18–20) หรือ `@wirabyte/ui@1` (15–17) โดยไม่ต้องระบุ tag แล้ว รวมทุกข้อที่พบจากการใช้จริงกับแอปแรก (รหัส WUI-001 ถึง WUI-021)
8
+
9
+ **แก้บั๊ก**
10
+
11
+ - Card, Panel, Accordion, Fieldset, Tabs, SelectButton, Toolbar, Popover และ cell editor ของ Table ไม่ดึง template `#header` / `#content` / `#footer` ของ component ที่อยู่ข้างในไปใช้อีก เช่น ตารางหรือ timeline ในการ์ด
12
+ - Textarea ที่ใช้ `autoResize` วัดขนาดใหม่เมื่อเริ่มแสดง จึงไม่สูง 0px ใน dialog หรือ panel ที่เปิดทีหลัง
13
+ - Datepicker ใช้ปฏิทินตามภาษาของแอปเหมือน pipe `wuDate`: ภาษาไทยใช้ `calendar` ที่ตั้งไว้ ภาษาอื่นใช้ ค.ศ. (`WuConfig.calendarFor()`)
14
+ - ปุ่ม icon-only ที่มี `badge` แสดงป้ายลอยที่มุมปุ่ม ปุ่มไม่ขยายตาม
15
+ - Navbar ไม่ล้นจอบนมือถือ: ปุ่มด้านขวาคงขนาด ชื่อหรือ brand ที่ยาวตัดด้วย …
16
+
17
+ **ธีม**
18
+
19
+ - `$tokens` / `$dark-tokens` (SCSS) และ `tokens` (TypeScript) ตั้งค่า token ใดก็ได้ด้วยชื่อ ชื่อที่สะกดผิดจะแจ้ง error
20
+ - token ฟอนต์หัวข้อ `$heading-font-family` / `semantic.headingFontFamily` ใช้กับหัวข้อของ card, dialog, drawer, panel และอื่น ๆ
21
+ - `provideWiraUI({ fonts })`: ค่าเริ่มต้น `'google'` โหลดฟอนต์ของธีมจาก Google Fonts ให้ ถ้าหน้าเว็บยังไม่ได้โหลด ตั้ง `'none'` สำหรับแอปที่ใช้ฟอนต์ของตัวเอง ส่วน `ng add --font=none` จะเขียนค่านี้ให้
22
+ - preset `wira` หน้าตาใหม่: มุมโค้ง 10, เงา soft, หัวตารางโปร่ง, เมนูที่เลือกเป็นสีอ่อน
23
+ - tag แบบ soft ใช้สีโปร่งของสีหลัก จึงเห็นชัดบนพื้นเทา และ breadcrumb มี `variant="plain"`
24
+
25
+ **ของใหม่**
26
+
27
+ - `wu-chat`: แชทพร้อม bubble, จัดกลุ่มตามผู้ส่ง, คั่นวัน, ไฟล์และรูป, สถานะอ่านแล้ว, ตัวบอกกำลังพิมพ์ และช่องพิมพ์ที่วางรูปได้
28
+ - `wu-scheduler`: ปฏิทินนัดหมายแบบวัน สัปดาห์ เดือน ลากเลื่อนนัดได้ และแสดงปี พ.ศ. ตามภาษา
29
+ - `wu-signature-pad`: ช่องเซ็นลายเซ็นสำหรับฟอร์ม ค่าที่ได้เป็นรูป PNG
30
+ - `wu-stat`: การ์ดตัวเลข KPI พร้อมไอคอน, แนวโน้ม และสีตามความหมาย
31
+ - `wu-descriptions`: รายการ label / value หลายคอลัมน์ ยุบเหลือคอลัมน์เดียวเมื่อกรอบแคบ
32
+ - SelectButton `variant="chips"` (ตัวกรองแบบ chip) และ `variant="cards"` (การ์ดตัวเลือก), Avatar `severity`, MeterGroup `showValue` และ legend ที่คลิกได้ (`clickable`, `(onItemClick)`)
33
+
34
+ **เอกสาร:** วิธีวาง global CSS ใน `@layer reset` และ override ใน `@layer wiraui.overrides`, การโหลดฟอนต์เมื่อติดตั้งแบบ manual และ footer ของ card
35
+
5
36
  ## 1.0.0-beta.0 · 2.0.0-beta.0 · 3.0.0-beta.0 · @wirabyte/icons 1.0.0-beta.0
6
37
 
7
38
  รุ่นแรกที่ออกให้ทดลองใช้ เอกสารอยู่ที่ https://ui.wirabyte.com
package/README.md CHANGED
@@ -35,13 +35,13 @@
35
35
 
36
36
  ## 📦 Install
37
37
 
38
- This is a beta, so name the tag for your app's Angular version:
38
+ Pick the major for your app's Angular version:
39
39
 
40
40
  | Angular | Command | Package | Status |
41
41
  |---|---|---|---|
42
- | 21 and newer | `ng add @wirabyte/ui@beta` | `@wirabyte/ui@3` | active (latest) |
43
- | 18 – 20 | `ng add @wirabyte/ui@v2-beta` | `@wirabyte/ui@2` | active |
44
- | 15 – 17 | `ng add @wirabyte/ui@v1-beta` | `@wirabyte/ui@1` | maintenance |
42
+ | 21 and newer | `ng add @wirabyte/ui` | `@wirabyte/ui@3` | active (latest) |
43
+ | 18 – 20 | `ng add @wirabyte/ui@2` | `@wirabyte/ui@2` | active |
44
+ | 15 – 17 | `ng add @wirabyte/ui@1` | `@wirabyte/ui@1` | maintenance |
45
45
 
46
46
  `ng add` sets up the theme, fonts and icons, and asks only what it must. Then use the components:
47
47
 
@@ -54,10 +54,10 @@ This is a beta, so name the tag for your app's Angular version:
54
54
 
55
55
  - **Use the major for your Angular range.** Each major is locked to its range and refuses to install on any other.
56
56
  - **Change Angular ranges in one command,** so Angular and WiraUI move together:
57
- `ng update @angular/core@18 @angular/cli@18 @wirabyte/ui@v2-beta`
57
+ `ng update @angular/core@18 @angular/cli@18 @wirabyte/ui@2`
58
58
  - **Theme through the theme files,** not by overriding component CSS, so your look carries over to new releases.
59
59
  - **Bring an existing app over gradually.** WiraUI runs next to your current UI library, so you can move one page at a time.
60
- - **Remember it is a beta.** APIs may still change between betas, so pin the exact version in production.
60
+ - **Update within a major freely.** Minor and patch releases keep the API; a new major means a new Angular range.
61
61
 
62
62
  ## 📚 Learn more
63
63
 
@@ -136,9 +136,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
136
136
  class WuAccordionTab {
137
137
  constructor() {
138
138
  this.slotTemplates = contentChildren(WuTemplate, ...(ngDevMode ? [{ debugName: "slotTemplates" }] : /* istanbul ignore next */ []));
139
- this.headerRef = contentChild('header', { ...(ngDevMode ? { debugName: "headerRef" } : /* istanbul ignore next */ {}), read: TemplateRef });
139
+ this.headerRef = contentChild('header', { ...(ngDevMode ? { debugName: "headerRef" } : /* istanbul ignore next */ {}), read: TemplateRef, descendants: false });
140
140
  this.headerTemplate = computed(() => this.headerRef() || _findTemplate(this.slotTemplates(), 'header'), ...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
141
- this.contentRef = contentChild('content', { ...(ngDevMode ? { debugName: "contentRef" } : /* istanbul ignore next */ {}), read: TemplateRef });
141
+ this.contentRef = contentChild('content', { ...(ngDevMode ? { debugName: "contentRef" } : /* istanbul ignore next */ {}), read: TemplateRef, descendants: false });
142
142
  this.contentTemplate = computed(() => this.contentRef() || _findTemplate(this.slotTemplates(), 'content'), ...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
143
143
  this.header = input(...(ngDevMode ? [undefined, { debugName: "header" }] : /* istanbul ignore next */ []));
144
144
  this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
@@ -167,12 +167,12 @@ class WuAccordionTab {
167
167
  event.preventDefault();
168
168
  }
169
169
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuAccordionTab, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
170
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: WuAccordionTab, isStandalone: true, selector: "wu-accordion-tab, wu-accordiontab, wu-accordionTab", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, queries: [{ propertyName: "slotTemplates", predicate: WuTemplate, isSignal: true }, { propertyName: "headerRef", first: true, predicate: ["header"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "contentRef", first: true, predicate: ["content"], descendants: true, read: TemplateRef, isSignal: true }], ngImport: i0, template: "<div [class]=\"classes()\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\">\n @if (headerTemplate(); as t) {\n <ng-container *ngTemplateOutlet=\"t\"></ng-container>\n } @else {\n {{ header() }}\n }\n </span>\n </button>\n <div class=\"wu-accordion-content-container p-accordioncontent\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\">\n <ng-content></ng-content>\n @if (contentTemplate() && active()) {\n <ng-container *ngTemplateOutlet=\"contentTemplate()\"></ng-container>\n }\n </div>\n </div>\n </div>\n</div>\n", 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: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
170
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: WuAccordionTab, isStandalone: true, selector: "wu-accordion-tab, wu-accordiontab, wu-accordionTab", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange" }, queries: [{ propertyName: "slotTemplates", predicate: WuTemplate, isSignal: true }, { propertyName: "headerRef", first: true, predicate: ["header"], read: TemplateRef, isSignal: true }, { propertyName: "contentRef", first: true, predicate: ["content"], read: TemplateRef, isSignal: true }], ngImport: i0, template: "<div [class]=\"classes()\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\">\n @if (headerTemplate(); as t) {\n <ng-container *ngTemplateOutlet=\"t\"></ng-container>\n } @else {\n {{ header() }}\n }\n </span>\n </button>\n <div class=\"wu-accordion-content-container p-accordioncontent\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\">\n <ng-content></ng-content>\n @if (contentTemplate() && active()) {\n <ng-container *ngTemplateOutlet=\"contentTemplate()\"></ng-container>\n }\n </div>\n </div>\n </div>\n</div>\n", 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: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
171
171
  }
172
172
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuAccordionTab, decorators: [{
173
173
  type: Component,
174
174
  args: [{ selector: 'wu-accordion-tab, wu-accordiontab, wu-accordionTab', standalone: true, imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"classes()\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\">\n @if (headerTemplate(); as t) {\n <ng-container *ngTemplateOutlet=\"t\"></ng-container>\n } @else {\n {{ header() }}\n }\n </span>\n </button>\n <div class=\"wu-accordion-content-container p-accordioncontent\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\">\n <ng-content></ng-content>\n @if (contentTemplate() && active()) {\n <ng-container *ngTemplateOutlet=\"contentTemplate()\"></ng-container>\n }\n </div>\n </div>\n </div>\n</div>\n", 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"] }]
175
- }], propDecorators: { slotTemplates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => WuTemplate), { isSignal: true }] }], headerRef: [{ type: i0.ContentChild, args: ['header', { ...{ read: TemplateRef }, isSignal: true }] }], contentRef: [{ type: i0.ContentChild, args: ['content', { ...{ read: TemplateRef }, isSignal: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }] } });
175
+ }], propDecorators: { slotTemplates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => WuTemplate), { isSignal: true }] }], headerRef: [{ type: i0.ContentChild, args: ['header', { ...{ read: TemplateRef, descendants: false }, isSignal: true }] }], contentRef: [{ type: i0.ContentChild, args: ['content', { ...{ read: TemplateRef, descendants: false }, isSignal: true }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }] } });
176
176
  /**
177
177
  * One section when the accordion is written by value: `<wu-accordion-panel value="a" [disabled]="…">` with a
178
178
  * `wu-accordion-header` and a `wu-accordion-content` inside.
@@ -1 +1 @@
1
- {"version":3,"file":"wirabyte-ui-accordion.mjs","sources":["../../lib/accordion/accordion.types.ts","../../lib/accordion/accordion.component.ts","../../lib/accordion/accordion-tab.component.html","../../lib/accordion/accordion.module.ts","../../lib/accordion/wirabyte-ui-accordion.ts"],"sourcesContent":["export interface WuAccordionTabEvent {\n index: number;\n /** Panels by value: the panel's value. */\n value?: unknown;\n}\n\n/**\n * The `gap` input of wu-accordion as a CSS length: `null` keeps the theme's look; `true` / `''` is 0.75rem; a number is\n * px; `false` / `0` joins the panels.\n */\nexport function ɵaccordionGap(v: unknown): string | null {\n if (v === null || v === undefined) return null;\n if (v === true || v === '' || v === 'true') return '0.75rem';\n if (v === false || v === 'false') return '0px';\n const n = Number(v);\n if (Number.isFinite(n)) return `${Math.max(0, n)}px`;\n return String(v);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵuniqueId, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\nimport { ɵaccordionGap, WuAccordionTabEvent } from './accordion.types';\n\n/**\n * Stack of collapsible sections, written either way apps already write them:\n * - `<wu-accordion [(activeIndex)]=\"i\"><wu-accordion-tab header=\"…\">…</wu-accordion-tab></wu-accordion>` (index);\n * - `<wu-accordion [(value)]=\"open\"><wu-accordion-panel value=\"a\"><wu-accordion-header>…</wu-accordion-header>\n * <wu-accordion-content>…</wu-accordion-content></wu-accordion-panel></wu-accordion>` (value).\n * With `multiple` the index / value is an array. Arrow keys, Home and End move between headers.\n */\n@Component({\n selector: 'wu-accordion',\n standalone: true,\n template: '<div class=\"wu-accordion p-accordion p-component\" [class]=\"styleClass() || \\'\\'\" [style]=\"rootStyle()\"><ng-content></ng-content></div>',\n styleUrl: './accordion.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.wu-accordion-separated]': 'separated()',\n '[style.--wu-accordion-gap]': 'gapLength()',\n },\n})\nexport class WuAccordion {\n readonly multiple = input(false, { transform: booleanAttribute });\n /**\n * Space between the panels: `[gap]=\"true\"` (0.75rem), `gap=\"1rem\"` or `[gap]=\"12\"` (px) makes each panel a card of its\n * own; `[gap]=\"false\"` joins them. Left out: the theme's look.\n */\n readonly gap = input<string | number | boolean | null | undefined>();\n readonly gapLength = computed(() => ɵaccordionGap(this.gap()));\n readonly separated = computed(() => {\n const g = this.gapLength();\n return !!g && parseFloat(g) !== 0;\n });\n /** Classes for the root element, as before (`styleClass=\"w-full\"`). */\n readonly styleClass = input<string | null | undefined>();\n /** Inline styles for the root element, as an object: `[style]=\"{ width: '20rem' }\"`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly style = input<Record<string, any> | string | null | undefined>();\n /** The `style` object for the root (a plain style attribute already styles the host). */\n readonly rootStyle = computed(() => {\n const s = this.style();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return s && typeof s === 'object' ? (s as Record<string, any>) : null;\n });\n /** Two-way: `[(activeIndex)]`. */\n readonly activeIndex = model<number | number[] | null>(null);\n /** Two-way: `[(value)]` with `wu-accordion-panel`: the open panel's value (an array with `multiple`). Typed `any`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly value = model<any>(undefined);\n\n readonly onOpen = output<WuAccordionTabEvent>();\n readonly onClose = output<WuAccordionTabEvent>();\n\n readonly tabs = contentChildren(forwardRef(() => WuAccordionTab));\n readonly panels = contentChildren(forwardRef(() => WuAccordionPanel));\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n isActive(tab: WuAccordionTab): boolean {\n const index = this.tabs().indexOf(tab);\n const current = this.activeIndex();\n return (Array.isArray(current) ? current.includes(index) : current === index) || tab.selected();\n }\n\n toggle(tab: WuAccordionTab): void {\n const index = this.tabs().indexOf(tab);\n const open = this.isActive(tab);\n const current = this.activeIndex();\n let next: number | number[] | null;\n if (this.multiple()) {\n const list = Array.isArray(current) ? current : current === null ? [] : [current];\n next = open ? list.filter((i) => i !== index) : [...list, index];\n } else {\n next = open ? null : index;\n // Opening one tab closes the others.\n if (!open) for (const t of this.tabs()) if (t !== tab) t.selected.set(false);\n }\n tab.selected.set(!open);\n this.activeIndex.set(next);\n (open ? this.onClose : this.onOpen).emit({ index });\n }\n\n /** Panels by value: open when the value (or one of the values) is theirs. */\n isValueActive(value: unknown): boolean {\n const current = this.value();\n return Array.isArray(current) ? current.includes(value) : current !== undefined && current !== null && current === value;\n }\n\n togglePanel(panel: WuAccordionPanel): void {\n const value = panel.value();\n const open = this.isValueActive(value);\n const current = this.value();\n let next: unknown;\n if (this.multiple()) {\n const list: unknown[] = Array.isArray(current) ? current : current === undefined || current === null ? [] : [current];\n next = open ? list.filter((v) => v !== value) : [...list, value];\n } else {\n next = open ? null : value;\n }\n this.value.set(next);\n (open ? this.onClose : this.onOpen).emit({ index: this.panels().indexOf(panel), value });\n }\n\n /** Arrow keys, Home and End move focus between the headers (the WAI-ARIA accordion pattern). */\n moveFocus(from: { headerEl(): HTMLButtonElement }, key: string): boolean {\n const headers = Array.from(this.el.nativeElement.querySelectorAll<HTMLButtonElement>('.wu-accordion-header:not(:disabled)'));\n const current = headers.indexOf(from.headerEl());\n if (current < 0 || !headers.length) return false;\n const n = headers.length;\n const target = key === 'ArrowDown' ? (current + 1) % n : key === 'ArrowUp' ? (current - 1 + n) % n : key === 'Home' ? 0 : key === 'End' ? n - 1 : -1;\n if (target < 0) return false;\n headers[target].focus();\n return true;\n }\n}\n\n/** One section of a `wu-accordion`: `header` text, projected content, `disabled`, and `[(selected)]` to open it from outside. */\n@Component({\n selector: 'wu-accordion-tab, wu-accordiontab, wu-accordionTab',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './accordion-tab.component.html',\n styleUrl: './accordion.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionTab {\n private readonly slotTemplates = contentChildren(WuTemplate);\n private readonly headerRef = contentChild('header', { read: TemplateRef });\n readonly headerTemplate = computed(() => this.headerRef() || ɵfindTemplate(this.slotTemplates(), 'header'));\n private readonly contentRef = contentChild('content', { read: TemplateRef });\n readonly contentTemplate = computed(() => this.contentRef() || ɵfindTemplate(this.slotTemplates(), 'content'));\n readonly header = input<string>();\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Two-way: `[(selected)]`. */\n readonly selected = model(false);\n\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n readonly active = computed(() => (this.accordion ? this.accordion.isActive(this) : this.selected()));\n readonly classes = computed(() =>\n this.active() ? 'wu-accordion-tab wu-accordion-tab-active p-accordionpanel p-accordionpanel-active' : 'wu-accordion-tab p-accordionpanel'\n );\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this.disabled()) return;\n if (this.accordion) this.accordion.toggle(this);\n else this.selected.set(!this.selected());\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/**\n * One section when the accordion is written by value: `<wu-accordion-panel value=\"a\" [disabled]=\"…\">` with a\n * `wu-accordion-header` and a `wu-accordion-content` inside.\n */\n@Component({\n selector: 'wu-accordion-panel, wu-accordionpanel',\n standalone: true,\n template: '<ng-content></ng-content>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'wu-accordion-tab p-accordionpanel',\n '[class.wu-accordion-tab-active]': 'active()',\n '[class.p-accordionpanel-active]': 'active()',\n },\n})\nexport class WuAccordionPanel {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly value = input<any>();\n readonly disabled = input(false, { transform: booleanAttribute });\n\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Open state when used without a wu-accordion. */\n private readonly own = signal(false);\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n readonly active = computed(() => (this.accordion ? this.accordion.isValueActive(this.value()) : this.own()));\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this.disabled()) return;\n if (this.accordion) this.accordion.togglePanel(this);\n else this.own.set(!this.own());\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/** The header button of a `wu-accordion-panel`; its content is the title. */\n@Component({\n selector: 'wu-accordion-header, wu-accordionheader',\n standalone: true,\n template: `\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"panel?.headerId\"\n [attr.aria-expanded]=\"panel?.active() ?? false\"\n [attr.aria-controls]=\"panel?.contentId\"\n [disabled]=\"panel?.disabled() ?? false\"\n (click)=\"panel?.toggle()\"\n (keydown)=\"panel?.onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\"><ng-content></ng-content></span>\n </button>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionHeader {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n\n/** The collapsible content of a `wu-accordion-panel`. */\n@Component({\n selector: 'wu-accordion-content, wu-accordioncontent',\n standalone: true,\n template: `\n <div class=\"wu-accordion-content-container p-accordioncontent\" role=\"region\" [id]=\"panel?.contentId\" [attr.aria-labelledby]=\"panel?.headerId\" [attr.inert]=\"panel?.active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\"><ng-content></ng-content></div>\n </div>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionContent {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n","<div [class]=\"classes()\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\">\n @if (headerTemplate(); as t) {\n <ng-container *ngTemplateOutlet=\"t\"></ng-container>\n } @else {\n {{ header() }}\n }\n </span>\n </button>\n <div class=\"wu-accordion-content-container p-accordioncontent\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\">\n <ng-content></ng-content>\n @if (contentTemplate() && active()) {\n <ng-container *ngTemplateOutlet=\"contentTemplate()\"></ng-container>\n }\n </div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuAccordion, WuAccordionContent, WuAccordionHeader, WuAccordionPanel, WuAccordionTab } from './accordion.component';\n\nconst ALL = [WuAccordion, WuAccordionTab, WuAccordionPanel, WuAccordionHeader, WuAccordionContent, WuTemplate];\n\n/** For NgModule apps. Standalone apps can import `WuAccordion` and `WuAccordionTab` (or the panel components) directly. */\n@NgModule({\n imports: ALL,\n exports: ALL,\n})\nexport class WuAccordionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵassertSupportedAngular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;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,GAAG;AACZ,oBAAA,OAAO,EAAE,GAAG;AACb,iBAAA;;;ACVD;;AAEG;;"}
1
+ {"version":3,"file":"wirabyte-ui-accordion.mjs","sources":["../../lib/accordion/accordion.types.ts","../../lib/accordion/accordion.component.ts","../../lib/accordion/accordion-tab.component.html","../../lib/accordion/accordion.module.ts","../../lib/accordion/wirabyte-ui-accordion.ts"],"sourcesContent":["export interface WuAccordionTabEvent {\n index: number;\n /** Panels by value: the panel's value. */\n value?: unknown;\n}\n\n/**\n * The `gap` input of wu-accordion as a CSS length: `null` keeps the theme's look; `true` / `''` is 0.75rem; a number is\n * px; `false` / `0` joins the panels.\n */\nexport function ɵaccordionGap(v: unknown): string | null {\n if (v === null || v === undefined) return null;\n if (v === true || v === '' || v === 'true') return '0.75rem';\n if (v === false || v === 'false') return '0px';\n const n = Number(v);\n if (Number.isFinite(n)) return `${Math.max(0, n)}px`;\n return String(v);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n output,\n signal,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ɵassertSupportedAngular, ɵfindTemplate, ɵuniqueId, ɵWU_SKIP_VERSION_CHECK, WuTemplate } from '@wirabyte/ui/config';\nimport { ɵaccordionGap, WuAccordionTabEvent } from './accordion.types';\n\n/**\n * Stack of collapsible sections, written either way apps already write them:\n * - `<wu-accordion [(activeIndex)]=\"i\"><wu-accordion-tab header=\"…\">…</wu-accordion-tab></wu-accordion>` (index);\n * - `<wu-accordion [(value)]=\"open\"><wu-accordion-panel value=\"a\"><wu-accordion-header>…</wu-accordion-header>\n * <wu-accordion-content>…</wu-accordion-content></wu-accordion-panel></wu-accordion>` (value).\n * With `multiple` the index / value is an array. Arrow keys, Home and End move between headers.\n */\n@Component({\n selector: 'wu-accordion',\n standalone: true,\n template: '<div class=\"wu-accordion p-accordion p-component\" [class]=\"styleClass() || \\'\\'\" [style]=\"rootStyle()\"><ng-content></ng-content></div>',\n styleUrl: './accordion.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.wu-accordion-separated]': 'separated()',\n '[style.--wu-accordion-gap]': 'gapLength()',\n },\n})\nexport class WuAccordion {\n readonly multiple = input(false, { transform: booleanAttribute });\n /**\n * Space between the panels: `[gap]=\"true\"` (0.75rem), `gap=\"1rem\"` or `[gap]=\"12\"` (px) makes each panel a card of its\n * own; `[gap]=\"false\"` joins them. Left out: the theme's look.\n */\n readonly gap = input<string | number | boolean | null | undefined>();\n readonly gapLength = computed(() => ɵaccordionGap(this.gap()));\n readonly separated = computed(() => {\n const g = this.gapLength();\n return !!g && parseFloat(g) !== 0;\n });\n /** Classes for the root element, as before (`styleClass=\"w-full\"`). */\n readonly styleClass = input<string | null | undefined>();\n /** Inline styles for the root element, as an object: `[style]=\"{ width: '20rem' }\"`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly style = input<Record<string, any> | string | null | undefined>();\n /** The `style` object for the root (a plain style attribute already styles the host). */\n readonly rootStyle = computed(() => {\n const s = this.style();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return s && typeof s === 'object' ? (s as Record<string, any>) : null;\n });\n /** Two-way: `[(activeIndex)]`. */\n readonly activeIndex = model<number | number[] | null>(null);\n /** Two-way: `[(value)]` with `wu-accordion-panel`: the open panel's value (an array with `multiple`). Typed `any`. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly value = model<any>(undefined);\n\n readonly onOpen = output<WuAccordionTabEvent>();\n readonly onClose = output<WuAccordionTabEvent>();\n\n readonly tabs = contentChildren(forwardRef(() => WuAccordionTab));\n readonly panels = contentChildren(forwardRef(() => WuAccordionPanel));\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n isActive(tab: WuAccordionTab): boolean {\n const index = this.tabs().indexOf(tab);\n const current = this.activeIndex();\n return (Array.isArray(current) ? current.includes(index) : current === index) || tab.selected();\n }\n\n toggle(tab: WuAccordionTab): void {\n const index = this.tabs().indexOf(tab);\n const open = this.isActive(tab);\n const current = this.activeIndex();\n let next: number | number[] | null;\n if (this.multiple()) {\n const list = Array.isArray(current) ? current : current === null ? [] : [current];\n next = open ? list.filter((i) => i !== index) : [...list, index];\n } else {\n next = open ? null : index;\n // Opening one tab closes the others.\n if (!open) for (const t of this.tabs()) if (t !== tab) t.selected.set(false);\n }\n tab.selected.set(!open);\n this.activeIndex.set(next);\n (open ? this.onClose : this.onOpen).emit({ index });\n }\n\n /** Panels by value: open when the value (or one of the values) is theirs. */\n isValueActive(value: unknown): boolean {\n const current = this.value();\n return Array.isArray(current) ? current.includes(value) : current !== undefined && current !== null && current === value;\n }\n\n togglePanel(panel: WuAccordionPanel): void {\n const value = panel.value();\n const open = this.isValueActive(value);\n const current = this.value();\n let next: unknown;\n if (this.multiple()) {\n const list: unknown[] = Array.isArray(current) ? current : current === undefined || current === null ? [] : [current];\n next = open ? list.filter((v) => v !== value) : [...list, value];\n } else {\n next = open ? null : value;\n }\n this.value.set(next);\n (open ? this.onClose : this.onOpen).emit({ index: this.panels().indexOf(panel), value });\n }\n\n /** Arrow keys, Home and End move focus between the headers (the WAI-ARIA accordion pattern). */\n moveFocus(from: { headerEl(): HTMLButtonElement }, key: string): boolean {\n const headers = Array.from(this.el.nativeElement.querySelectorAll<HTMLButtonElement>('.wu-accordion-header:not(:disabled)'));\n const current = headers.indexOf(from.headerEl());\n if (current < 0 || !headers.length) return false;\n const n = headers.length;\n const target = key === 'ArrowDown' ? (current + 1) % n : key === 'ArrowUp' ? (current - 1 + n) % n : key === 'Home' ? 0 : key === 'End' ? n - 1 : -1;\n if (target < 0) return false;\n headers[target].focus();\n return true;\n }\n}\n\n/** One section of a `wu-accordion`: `header` text, projected content, `disabled`, and `[(selected)]` to open it from outside. */\n@Component({\n selector: 'wu-accordion-tab, wu-accordiontab, wu-accordionTab',\n standalone: true,\n imports: [NgTemplateOutlet],\n templateUrl: './accordion-tab.component.html',\n styleUrl: './accordion.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionTab {\n private readonly slotTemplates = contentChildren(WuTemplate);\n private readonly headerRef = contentChild('header', { read: TemplateRef, descendants: false });\n readonly headerTemplate = computed(() => this.headerRef() || ɵfindTemplate(this.slotTemplates(), 'header'));\n private readonly contentRef = contentChild('content', { read: TemplateRef, descendants: false });\n readonly contentTemplate = computed(() => this.contentRef() || ɵfindTemplate(this.slotTemplates(), 'content'));\n readonly header = input<string>();\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Two-way: `[(selected)]`. */\n readonly selected = model(false);\n\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n readonly active = computed(() => (this.accordion ? this.accordion.isActive(this) : this.selected()));\n readonly classes = computed(() =>\n this.active() ? 'wu-accordion-tab wu-accordion-tab-active p-accordionpanel p-accordionpanel-active' : 'wu-accordion-tab p-accordionpanel'\n );\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this.disabled()) return;\n if (this.accordion) this.accordion.toggle(this);\n else this.selected.set(!this.selected());\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/**\n * One section when the accordion is written by value: `<wu-accordion-panel value=\"a\" [disabled]=\"…\">` with a\n * `wu-accordion-header` and a `wu-accordion-content` inside.\n */\n@Component({\n selector: 'wu-accordion-panel, wu-accordionpanel',\n standalone: true,\n template: '<ng-content></ng-content>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'wu-accordion-tab p-accordionpanel',\n '[class.wu-accordion-tab-active]': 'active()',\n '[class.p-accordionpanel-active]': 'active()',\n },\n})\nexport class WuAccordionPanel {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly value = input<any>();\n readonly disabled = input(false, { transform: booleanAttribute });\n\n private readonly accordion = inject(WuAccordion, { optional: true });\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Open state when used without a wu-accordion. */\n private readonly own = signal(false);\n readonly headerId = ɵuniqueId('wu-accordion-header');\n readonly contentId = ɵuniqueId('wu-accordion-content');\n readonly active = computed(() => (this.accordion ? this.accordion.isValueActive(this.value()) : this.own()));\n\n headerEl(): HTMLButtonElement {\n return this.el.nativeElement.querySelector('.wu-accordion-header') as HTMLButtonElement;\n }\n\n toggle(): void {\n if (this.disabled()) return;\n if (this.accordion) this.accordion.togglePanel(this);\n else this.own.set(!this.own());\n }\n\n onKeydown(event: KeyboardEvent): void {\n if (this.accordion && this.accordion.moveFocus(this, event.key)) event.preventDefault();\n }\n}\n\n/** The header button of a `wu-accordion-panel`; its content is the title. */\n@Component({\n selector: 'wu-accordion-header, wu-accordionheader',\n standalone: true,\n template: `\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"panel?.headerId\"\n [attr.aria-expanded]=\"panel?.active() ?? false\"\n [attr.aria-controls]=\"panel?.contentId\"\n [disabled]=\"panel?.disabled() ?? false\"\n (click)=\"panel?.toggle()\"\n (keydown)=\"panel?.onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\"><ng-content></ng-content></span>\n </button>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionHeader {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n\n/** The collapsible content of a `wu-accordion-panel`. */\n@Component({\n selector: 'wu-accordion-content, wu-accordioncontent',\n standalone: true,\n template: `\n <div class=\"wu-accordion-content-container p-accordioncontent\" role=\"region\" [id]=\"panel?.contentId\" [attr.aria-labelledby]=\"panel?.headerId\" [attr.inert]=\"panel?.active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\"><ng-content></ng-content></div>\n </div>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuAccordionContent {\n readonly panel = inject(WuAccordionPanel, { optional: true });\n}\n","<div [class]=\"classes()\">\n <button\n type=\"button\"\n class=\"wu-accordion-header p-accordionheader\"\n [id]=\"headerId\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n [disabled]=\"disabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n >\n <svg class=\"wu-accordion-toggle-icon p-accordionheader-toggle-icon\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 6l4 4 4-4\"></path></svg>\n <span class=\"wu-accordion-header-text\">\n @if (headerTemplate(); as t) {\n <ng-container *ngTemplateOutlet=\"t\"></ng-container>\n } @else {\n {{ header() }}\n }\n </span>\n </button>\n <div class=\"wu-accordion-content-container p-accordioncontent\" [id]=\"contentId\" role=\"region\" [attr.aria-labelledby]=\"headerId\" [attr.inert]=\"active() ? null : ''\">\n <div class=\"wu-accordion-content-inner\">\n <div class=\"wu-accordion-content p-accordioncontent-content\">\n <ng-content></ng-content>\n @if (contentTemplate() && active()) {\n <ng-container *ngTemplateOutlet=\"contentTemplate()\"></ng-container>\n }\n </div>\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuTemplate } from '@wirabyte/ui/config';\nimport { WuAccordion, WuAccordionContent, WuAccordionHeader, WuAccordionPanel, WuAccordionTab } from './accordion.component';\n\nconst ALL = [WuAccordion, WuAccordionTab, WuAccordionPanel, WuAccordionHeader, WuAccordionContent, WuTemplate];\n\n/** For NgModule apps. Standalone apps can import `WuAccordion` and `WuAccordionTab` (or the panel components) directly. */\n@NgModule({\n imports: ALL,\n exports: ALL,\n})\nexport class WuAccordionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["ɵassertSupportedAngular","ɵWU_SKIP_VERSION_CHECK","ɵfindTemplate","ɵuniqueId"],"mappings":";;;;;AAMA;;;AAGG;AACG,SAAU,aAAa,CAAC,CAAU,EAAA;AACtC,IAAA,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS;AAAE,QAAA,OAAO,IAAI;IAC9C,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,MAAM;AAAE,QAAA,OAAO,SAAS;AAC5D,IAAA,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,OAAO;AAAE,QAAA,OAAO,KAAK;AAC9C,IAAA,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;AACnB,IAAA,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAAE,OAAO,CAAA,EAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA,EAAA,CAAI;AACpD,IAAA,OAAO,MAAM,CAAC,CAAC,CAAC;AAClB;;ACIA;;;;;;AAMG;MAaU,WAAW,CAAA;AAoCtB,IAAA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,EAAA,CAAA;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;AEtQD,MAAM,GAAG,GAAG,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAC;AAE9G;MAKa,iBAAiB,CAAA;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAjB,iBAAiB,EAAA,OAAA,EAAA,CAPjB,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CAAhG,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAA,EAAA,CAAA,CAAA;gHAOhG,iBAAiB,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,GAAG;AACZ,oBAAA,OAAO,EAAE,GAAG;AACb,iBAAA;;;ACVD;;AAEG;;"}
@@ -363,11 +363,11 @@ class WuAlertDialog extends ɵWuAlertDialogBase {
363
363
  inject(_WuStyleLoader).load('inputtext', _WU_INPUTTEXT_CSS);
364
364
  }
365
365
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuAlertDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
366
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: WuAlertDialog, isStandalone: true, selector: "wu-alertdialog", usesInheritance: true, ngImport: i0, template: "@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media(max-width:575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media(prefers-reduced-motion:reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
366
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: WuAlertDialog, isStandalone: true, selector: "wu-alertdialog", usesInheritance: true, ngImport: i0, template: "@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{font-family:var(--wu-heading-font-family);margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media(max-width:575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media(prefers-reduced-motion:reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
367
367
  }
368
368
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: WuAlertDialog, decorators: [{
369
369
  type: Component,
370
- args: [{ selector: 'wu-alertdialog', standalone: true, imports: [NgClass], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media(max-width:575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media(prefers-reduced-motion:reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"] }]
370
+ args: [{ selector: 'wu-alertdialog', standalone: true, imports: [NgClass], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (rendered) {\n <dialog\n #mask\n role=\"alertdialog\"\n class=\"wu-alert-mask\"\n [class.wu-alert-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"o.title ? titleId : null\"\n [attr.aria-describedby]=\"o.text || o.html ? textId : null\"\n [attr.aria-busy]=\"loading || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancelEvent($event)\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n >\n <div #popup tabindex=\"-1\" class=\"wu-alert\" [ngClass]=\"part('popup')\" [style.width]=\"popupWidth\">\n @if (o.showCloseButton) {\n <button type=\"button\" class=\"wu-alert-close\" [attr.aria-label]=\"t.close\" (click)=\"dismiss('close')\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </button>\n }\n\n @for (r of runs; track r) {\n @if (icon) {\n <div class=\"wu-alert-icon\" [ngClass]=\"'wu-alert-icon-' + icon\" [style.color]=\"o.iconColor || null\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 80 80\">\n <circle class=\"wu-alert-halo\" cx=\"40\" cy=\"40\" r=\"40\"></circle>\n <circle class=\"wu-alert-ring\" cx=\"40\" cy=\"40\" r=\"36\"></circle>\n @switch (icon) {\n @case ('success') {\n <path class=\"wu-alert-mark\" d=\"M25 41l10 10 21-22\"></path>\n }\n @case ('error') {\n <path class=\"wu-alert-mark\" d=\"M29 29l22 22\"></path>\n <path class=\"wu-alert-mark wu-alert-mark-2\" d=\"M51 29L29 51\"></path>\n }\n @case ('warning') {\n <path class=\"wu-alert-mark\" d=\"M40 22v22\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"55\" r=\"3.5\"></circle>\n }\n @case ('info') {\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"25\" r=\"3.5\"></circle>\n <path class=\"wu-alert-mark\" d=\"M40 36v22\"></path>\n }\n @case ('question') {\n <path class=\"wu-alert-mark\" d=\"M31 31a9 9 0 1 1 13 8c-3 1.8-4 3.4-4 6.5\"></path>\n <circle class=\"wu-alert-dot\" cx=\"40\" cy=\"56\" r=\"3.5\"></circle>\n }\n }\n </svg>\n </div>\n }\n }\n\n @if (o.title) {\n <h2 class=\"wu-alert-title\" [ngClass]=\"part('title')\" [id]=\"titleId\">{{ o.title }}</h2>\n }\n @if (o.html) {\n <div class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\" [innerHTML]=\"o.html\"></div>\n } @else if (o.text) {\n <p class=\"wu-alert-text\" [ngClass]=\"part('htmlContainer')\" [id]=\"textId\">{{ o.text }}</p>\n }\n\n @if (o.input) {\n <div class=\"wu-alert-input\">\n @if (o.inputLabel && o.input !== 'checkbox') {\n <label class=\"wu-alert-label\" [attr.for]=\"titleId + '-field'\">{{ o.inputLabel }}</label>\n }\n @if (isTextInput) {\n <input\n [id]=\"titleId + '-field'\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [type]=\"o.input\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n [attr.aria-invalid]=\"validation ? true : null\"\n (input)=\"typed($event)\"\n />\n } @else if (o.input === 'textarea') {\n <textarea\n [id]=\"titleId + '-field'\"\n rows=\"4\"\n class=\"wu-alert-field wu-inputtext p-inputtext\"\n [value]=\"inputValue\"\n [attr.placeholder]=\"o.inputPlaceholder || null\"\n (input)=\"typed($event)\"\n ></textarea>\n } @else if (o.input === 'select') {\n <select [id]=\"titleId + '-field'\" class=\"wu-alert-field\" (change)=\"typed($event)\">\n @if (o.inputPlaceholder) {\n <option value=\"\" disabled [selected]=\"!inputValue\">{{ o.inputPlaceholder }}</option>\n }\n @for (opt of options; track opt.value) {\n <option [value]=\"opt.value\" [selected]=\"opt.value === inputValue\">{{ opt.label }}</option>\n }\n </select>\n } @else if (o.input === 'radio') {\n <div class=\"wu-alert-choices\" role=\"radiogroup\">\n @for (opt of options; track opt.value; let i = $index) {\n <label class=\"wu-alert-choice\">\n <input\n type=\"radio\"\n [name]=\"titleId + '-radio'\"\n [value]=\"opt.value\"\n [checked]=\"opt.value === inputValue\"\n [class.wu-alert-field]=\"i === 0\"\n (change)=\"typed($event)\"\n />\n {{ opt.label }}\n </label>\n }\n </div>\n } @else if (o.input === 'checkbox') {\n <label class=\"wu-alert-choice wu-alert-choices\">\n <input type=\"checkbox\" class=\"wu-alert-field\" [checked]=\"!!inputValue\" (change)=\"typed($event)\" />\n {{ o.inputPlaceholder || o.inputLabel }}\n </label>\n }\n </div>\n }\n\n @if (validation) {\n <div class=\"wu-alert-validation\" role=\"alert\">{{ validation }}</div>\n }\n @if (loading) {\n <div class=\"wu-alert-loader\" role=\"status\" [attr.aria-label]=\"t.loading\"><span class=\"wu-alert-spinner\"></span></div>\n }\n\n @if (hasActions) {\n <div class=\"wu-alert-actions\">\n @for (b of actions; track b) {\n @switch (b) {\n @case ('confirm') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-confirm\"\n [ngClass]=\"part('confirmButton')\"\n [class.wu-alert-custom]=\"!!o.confirmButtonColor\"\n [style.background]=\"o.confirmButtonColor || null\"\n [style.border-color]=\"o.confirmButtonColor || null\"\n (click)=\"confirm()\"\n >{{ confirmText }}</button>\n }\n @case ('deny') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-deny\"\n [ngClass]=\"part('denyButton')\"\n [class.wu-alert-custom]=\"!!o.denyButtonColor\"\n [style.background]=\"o.denyButtonColor || null\"\n [style.border-color]=\"o.denyButtonColor || null\"\n (click)=\"deny()\"\n >{{ denyText }}</button>\n }\n @case ('cancel') {\n <button\n type=\"button\"\n class=\"wu-alert-button wu-alert-cancel\"\n [ngClass]=\"part('cancelButton')\"\n [class.wu-alert-custom]=\"!!o.cancelButtonColor\"\n [style.background]=\"o.cancelButtonColor || null\"\n [style.border-color]=\"o.cancelButtonColor || null\"\n (click)=\"dismiss('cancel')\"\n >{{ cancelText }}</button>\n }\n }\n }\n </div>\n }\n\n @if (o.footer) {\n <div class=\"wu-alert-footer\" [innerHTML]=\"o.footer\"></div>\n }\n @if (o.timer && o.timerProgressBar) {\n <div class=\"wu-alert-timer\"><span [style.animation-duration.ms]=\"o.timer\"></span></div>\n }\n </div>\n </dialog>\n}\n", styles: ["@layer wiraui.components{wu-alertdialog{display:contents}.wu-alert-mask[open]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:1rem;border:0;background:transparent;overflow:hidden}.wu-alert-mask::backdrop{background:var(--wu-mask);animation:wu-alert-fade .15s ease-out}.wu-alert-leaving::backdrop{opacity:0;transition:opacity .15s ease-in}.wu-alert{position:relative;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:var(--wu-alert-width);max-width:100%;max-height:100%;padding:var(--wu-alert-padding);overflow-y:auto;border:1px solid var(--wu-dialog-border);border-radius:var(--wu-alert-radius);background:var(--wu-dialog-bg);color:var(--wu-text);box-shadow:var(--wu-dialog-shadow);font-family:var(--wu-font-family);font-size:var(--wu-font-size);text-align:center;animation:wu-alert-pop .25s cubic-bezier(.2,.9,.3,1.25)}.wu-alert *,.wu-alert *:before,.wu-alert *:after{box-sizing:border-box}.wu-alert-leaving .wu-alert{opacity:0;transform:scale(.95);transition:opacity .15s ease-in,transform .15s ease-in}.wu-alert-close{position:absolute;top:.5rem;right:.5rem;display:inline-grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:50%;background:transparent;color:var(--wu-text-muted);cursor:pointer}.wu-alert-close:hover{background:var(--wu-hover-bg);color:var(--wu-text)}.wu-alert-close svg{width:1rem;height:1rem}.wu-alert-icon{flex:none;width:var(--wu-alert-icon-size);height:var(--wu-alert-icon-size);margin:.25rem 0 1rem;color:var(--_icon, var(--wu-info-color))}.wu-alert-icon-success{--_icon: var(--wu-success-color)}.wu-alert-icon-error{--_icon: var(--wu-danger-color)}.wu-alert-icon-warning{--_icon: var(--wu-warn-color)}.wu-alert-icon-info{--_icon: var(--wu-info-color)}.wu-alert-icon-question{--_icon: var(--wu-help-color)}.wu-alert-icon svg{display:block;width:100%;height:100%;overflow:visible}.wu-alert-halo{fill:currentColor;opacity:.12;transform-origin:center;animation:wu-alert-halo .45s ease-out}.wu-alert-ring,.wu-alert-mark{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}.wu-alert-ring{stroke-width:3;stroke-dasharray:227;stroke-dashoffset:0;transform:rotate(-90deg);transform-origin:center;animation:wu-alert-draw-ring .5s ease-out both}.wu-alert-mark{stroke-width:5;stroke-dasharray:60;stroke-dashoffset:0;animation:wu-alert-draw .35s .35s ease-out both}.wu-alert-mark-2{animation-delay:.5s}.wu-alert-dot{fill:currentColor;transform-origin:center;animation:wu-alert-dot .3s .55s ease-out both}.wu-alert-icon-error svg,.wu-alert-icon-warning svg{animation:wu-alert-nudge .45s .7s ease-in-out}.wu-alert-title{font-family:var(--wu-heading-font-family);margin:0 0 .5rem;color:var(--wu-text);font-size:var(--wu-alert-title-size);font-weight:600;line-height:1.3;overflow-wrap:anywhere}.wu-alert-text{max-width:100%;margin:0;color:var(--wu-text-muted);line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}.wu-alert-input{display:flex;flex-direction:column;gap:.5rem;align-self:stretch;margin-top:1rem;text-align:left}.wu-alert-input .wu-inputtext,.wu-alert-input select.wu-alert-field{width:100%}.wu-alert-input select.wu-alert-field{min-height:calc(var(--wu-field-padding-y) * 2 + 1.5em);padding:var(--wu-field-padding-y) var(--wu-field-padding-x);border:var(--wu-field-border-width) solid var(--wu-field-border);border-radius:var(--wu-input-radius);background:var(--wu-field-bg);color:var(--wu-field-color);font:inherit}.wu-alert-choice{display:flex;align-items:center;gap:.5rem;cursor:pointer}.wu-alert-choice input{width:1.125rem;height:1.125rem;margin:0;accent-color:var(--wu-primary-color)}.wu-alert-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem}.wu-alert-validation{display:flex;align-items:center;justify-content:center;gap:.375rem;align-self:stretch;margin-top:.75rem;padding:.5rem .75rem;border-radius:var(--wu-radius-md);background:var(--wu-danger-bg);color:var(--wu-danger-text);font-size:.875em}.wu-alert-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.5rem}.wu-alert-button{min-width:6rem;min-height:2.5rem;padding:var(--wu-button-padding-y) calc(var(--wu-button-padding-x) * 1.25);border:1px solid transparent;border-radius:var(--wu-button-radius);font:inherit;font-weight:var(--wu-button-font-weight);cursor:pointer;touch-action:manipulation;transition:filter var(--wu-transition),box-shadow var(--wu-transition)}.wu-alert-button:hover{filter:brightness(.94)}.wu-alert-button:focus-visible,.wu-alert-close:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-alert-confirm{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-alert-deny{border-color:var(--wu-danger-color);background:var(--wu-danger-color);color:var(--wu-danger-contrast)}.wu-alert-cancel{border-color:var(--wu-button-secondary-border);background:var(--wu-button-secondary-bg);color:var(--wu-button-secondary-color)}.wu-alert-button.wu-alert-custom{color:#fff}.wu-alert-loader{display:grid;place-items:center;margin-top:1.5rem;min-height:2.5rem}.wu-alert-spinner{width:2.25rem;height:2.25rem;border:3px solid color-mix(in srgb,var(--wu-primary-color) 20%,transparent);border-top-color:var(--wu-primary-color);border-radius:50%;animation:wu-alert-spin .8s linear infinite}.wu-alert-footer{align-self:stretch;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--wu-border);color:var(--wu-text-muted);font-size:.875em}.wu-alert-timer{position:absolute;right:0;bottom:0;left:0;height:.25rem;overflow:hidden;border-radius:0 0 var(--wu-alert-radius) var(--wu-alert-radius)}.wu-alert-timer span{display:block;height:100%;background:color-mix(in srgb,var(--wu-primary-color) 45%,transparent);transform-origin:left;animation:wu-alert-timer linear forwards}@media(max-width:575.98px){.wu-alert-mask[open]{padding:.75rem}.wu-alert{width:100%!important}.wu-alert-actions{align-self:stretch}.wu-alert-button{flex:1 1 0;min-width:0;min-height:2.75rem}}@keyframes wu-alert-pop{0%{opacity:0;transform:scale(.7)}}@keyframes wu-alert-fade{0%{opacity:0}}@keyframes wu-alert-halo{0%{opacity:0;transform:scale(.4)}}@keyframes wu-alert-draw-ring{0%{stroke-dashoffset:227}}@keyframes wu-alert-draw{0%{stroke-dashoffset:60}}@keyframes wu-alert-dot{0%{opacity:0;transform:scale(0)}}@keyframes wu-alert-nudge{25%{transform:translate(-4px)}50%{transform:translate(4px)}75%{transform:translate(-2px)}}@keyframes wu-alert-spin{to{transform:rotate(360deg)}}@keyframes wu-alert-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@media(prefers-reduced-motion:reduce){.wu-alert,.wu-alert-mask::backdrop,.wu-alert-halo,.wu-alert-ring,.wu-alert-mark,.wu-alert-dot,.wu-alert-icon svg{animation:none}.wu-alert-spinner{animation-duration:2s}}}\n"] }]
371
371
  }], ctorParameters: () => [] });
372
372
 
373
373
  /** For NgModule apps; nothing to declare in templates, as alerts are opened from code (`WuAlertService`, `WuAlert`). */