@forgeroute/ui 0.5.16 → 0.5.17

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 (340) hide show
  1. package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
  2. package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
  3. package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
  4. package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
  5. package/fesm2022/forgeroute-ui-alert.mjs +223 -0
  6. package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
  7. package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
  8. package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
  9. package/fesm2022/forgeroute-ui-badge.mjs +158 -0
  10. package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
  11. package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
  12. package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
  13. package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
  14. package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
  15. package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
  16. package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
  17. package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
  18. package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
  19. package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
  20. package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
  21. package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
  22. package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
  23. package/fesm2022/forgeroute-ui-charts.mjs +1 -1
  24. package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
  25. package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
  26. package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
  27. package/fesm2022/forgeroute-ui-chip.mjs +379 -0
  28. package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
  29. package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
  30. package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
  31. package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
  32. package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
  33. package/fesm2022/forgeroute-ui-columns.mjs +351 -0
  34. package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
  35. package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
  36. package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
  37. package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
  38. package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
  39. package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
  40. package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
  41. package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
  42. package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
  43. package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
  44. package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
  45. package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
  46. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
  47. package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
  48. package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
  49. package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
  50. package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
  51. package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
  52. package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
  53. package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
  54. package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
  55. package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
  56. package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
  57. package/fesm2022/forgeroute-ui-divider.mjs +111 -0
  58. package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
  59. package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
  60. package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
  61. package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
  62. package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
  63. package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
  64. package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
  65. package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
  66. package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
  67. package/fesm2022/forgeroute-ui-error.mjs +93 -0
  68. package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
  69. package/fesm2022/forgeroute-ui-fade.mjs +117 -0
  70. package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
  71. package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
  72. package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
  73. package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
  74. package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
  75. package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
  76. package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
  77. package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
  78. package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
  79. package/fesm2022/forgeroute-ui-form.mjs +139 -0
  80. package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
  81. package/fesm2022/forgeroute-ui-hint.mjs +47 -0
  82. package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
  83. package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
  84. package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
  85. package/fesm2022/forgeroute-ui-icon.mjs +311 -0
  86. package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
  87. package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
  88. package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
  89. package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
  90. package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
  91. package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
  92. package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
  93. package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
  94. package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
  95. package/fesm2022/forgeroute-ui-layout.mjs +18 -0
  96. package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
  97. package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
  98. package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
  99. package/fesm2022/forgeroute-ui-list.mjs +866 -0
  100. package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
  101. package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
  102. package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
  103. package/fesm2022/forgeroute-ui-map.mjs +5 -1
  104. package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
  105. package/fesm2022/forgeroute-ui-maps.mjs +2 -1
  106. package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
  107. package/fesm2022/forgeroute-ui-media.mjs +4615 -0
  108. package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
  109. package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
  110. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  111. package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
  112. package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
  113. package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
  114. package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
  115. package/fesm2022/forgeroute-ui-notes.mjs +768 -0
  116. package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
  117. package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
  118. package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
  119. package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
  120. package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
  121. package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
  122. package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
  123. package/fesm2022/forgeroute-ui-page.mjs +317 -0
  124. package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
  125. package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
  126. package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
  127. package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
  128. package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
  129. package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
  130. package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
  131. package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
  132. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
  133. package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
  134. package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
  135. package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
  136. package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
  137. package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
  138. package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
  139. package/fesm2022/forgeroute-ui-print.mjs +76 -0
  140. package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
  141. package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
  142. package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
  143. package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
  144. package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
  145. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
  146. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
  147. package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
  148. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  149. package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
  150. package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
  151. package/fesm2022/forgeroute-ui-radio.mjs +911 -0
  152. package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
  153. package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
  154. package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
  155. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
  156. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
  157. package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
  158. package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
  159. package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
  160. package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
  161. package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
  162. package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
  163. package/fesm2022/forgeroute-ui-select.mjs +498 -0
  164. package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
  165. package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
  166. package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
  167. package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
  168. package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
  169. package/fesm2022/forgeroute-ui-shell.mjs +981 -0
  170. package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
  171. package/fesm2022/forgeroute-ui-show.mjs +129 -0
  172. package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
  173. package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
  174. package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
  175. package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
  176. package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
  177. package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
  178. package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
  179. package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
  180. package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
  181. package/fesm2022/forgeroute-ui-square.mjs +15 -1
  182. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  183. package/fesm2022/forgeroute-ui-stack.mjs +233 -0
  184. package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
  185. package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
  186. package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
  187. package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
  188. package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
  189. package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
  190. package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
  191. package/fesm2022/forgeroute-ui-star.mjs +184 -0
  192. package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
  193. package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
  194. package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
  195. package/fesm2022/forgeroute-ui-stripe.mjs +14 -1
  196. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  197. package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
  198. package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
  199. package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
  200. package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
  201. package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
  202. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
  203. package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
  204. package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
  205. package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
  206. package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
  207. package/fesm2022/forgeroute-ui-text.mjs +195 -0
  208. package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
  209. package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
  210. package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
  211. package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
  212. package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
  213. package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
  214. package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
  215. package/fesm2022/forgeroute-ui-toast.mjs +507 -0
  216. package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
  217. package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
  218. package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
  219. package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
  220. package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
  221. package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
  222. package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
  223. package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
  224. package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
  225. package/fesm2022/forgeroute-ui.mjs +105 -70663
  226. package/package.json +417 -1
  227. package/types/forgeroute-ui-action-bar.d.ts +74 -0
  228. package/types/forgeroute-ui-address-input.d.ts +354 -0
  229. package/types/forgeroute-ui-alert.d.ts +89 -0
  230. package/types/forgeroute-ui-avatar.d.ts +85 -0
  231. package/types/forgeroute-ui-badge.d.ts +45 -0
  232. package/types/forgeroute-ui-bar-row.d.ts +90 -0
  233. package/types/forgeroute-ui-boards.d.ts +575 -0
  234. package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
  235. package/types/forgeroute-ui-business-hours.d.ts +191 -0
  236. package/types/forgeroute-ui-calendar.d.ts +544 -0
  237. package/types/forgeroute-ui-card-list-item.d.ts +186 -0
  238. package/types/forgeroute-ui-charts.d.ts +1 -1
  239. package/types/forgeroute-ui-checkbox.d.ts +270 -0
  240. package/types/forgeroute-ui-chip.d.ts +125 -0
  241. package/types/forgeroute-ui-color-input.d.ts +160 -0
  242. package/types/forgeroute-ui-column-filter.d.ts +130 -0
  243. package/types/forgeroute-ui-columns.d.ts +150 -0
  244. package/types/forgeroute-ui-combobox.d.ts +252 -0
  245. package/types/forgeroute-ui-confirm.d.ts +34 -0
  246. package/types/forgeroute-ui-contact-picker.d.ts +173 -0
  247. package/types/forgeroute-ui-conversations.d.ts +993 -0
  248. package/types/forgeroute-ui-copy-field.d.ts +122 -0
  249. package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
  250. package/types/forgeroute-ui-date-input.d.ts +101 -0
  251. package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
  252. package/types/forgeroute-ui-datetime-input.d.ts +97 -0
  253. package/types/forgeroute-ui-detail-card.d.ts +252 -0
  254. package/types/forgeroute-ui-discount-selector.d.ts +57 -0
  255. package/types/forgeroute-ui-divider.d.ts +40 -0
  256. package/types/forgeroute-ui-dropdown.d.ts +156 -0
  257. package/types/forgeroute-ui-editor.d.ts +873 -0
  258. package/types/forgeroute-ui-empty-state.d.ts +29 -0
  259. package/types/forgeroute-ui-error-state.d.ts +38 -0
  260. package/types/forgeroute-ui-error.d.ts +29 -0
  261. package/types/forgeroute-ui-fade.d.ts +39 -0
  262. package/types/forgeroute-ui-file-input.d.ts +337 -0
  263. package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
  264. package/types/forgeroute-ui-form-row.d.ts +30 -0
  265. package/types/forgeroute-ui-form-section.d.ts +18 -0
  266. package/types/forgeroute-ui-form.d.ts +68 -0
  267. package/types/forgeroute-ui-hint.d.ts +10 -0
  268. package/types/forgeroute-ui-icon-picker.d.ts +122 -0
  269. package/types/forgeroute-ui-icon.d.ts +95 -0
  270. package/types/forgeroute-ui-image-preview.d.ts +88 -0
  271. package/types/forgeroute-ui-keypad.d.ts +73 -0
  272. package/types/forgeroute-ui-kpi-card.d.ts +161 -0
  273. package/types/forgeroute-ui-language-switcher.d.ts +41 -0
  274. package/types/forgeroute-ui-layout.d.ts +13 -0
  275. package/types/forgeroute-ui-list-item.d.ts +253 -0
  276. package/types/forgeroute-ui-list.d.ts +282 -0
  277. package/types/forgeroute-ui-live-region.d.ts +49 -0
  278. package/types/forgeroute-ui-map.d.ts +1 -1
  279. package/types/forgeroute-ui-maps.d.ts +1 -1
  280. package/types/forgeroute-ui-media.d.ts +1221 -0
  281. package/types/forgeroute-ui-messaging.d.ts +6 -1
  282. package/types/forgeroute-ui-more-menu.d.ts +91 -0
  283. package/types/forgeroute-ui-multi-select.d.ts +119 -0
  284. package/types/forgeroute-ui-notes.d.ts +172 -0
  285. package/types/forgeroute-ui-notification-bell.d.ts +135 -0
  286. package/types/forgeroute-ui-offline-banner.d.ts +44 -0
  287. package/types/forgeroute-ui-option-card.d.ts +106 -0
  288. package/types/forgeroute-ui-page.d.ts +115 -0
  289. package/types/forgeroute-ui-pagination.d.ts +55 -0
  290. package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
  291. package/types/forgeroute-ui-password-requirements.d.ts +89 -0
  292. package/types/forgeroute-ui-payments.d.ts +1818 -0
  293. package/types/forgeroute-ui-pdf.d.ts +1 -1
  294. package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
  295. package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
  296. package/types/forgeroute-ui-print.d.ts +40 -0
  297. package/types/forgeroute-ui-progress-bar.d.ts +88 -0
  298. package/types/forgeroute-ui-progress-ring.d.ts +102 -0
  299. package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
  300. package/types/forgeroute-ui-quickbooks.d.ts +4 -1
  301. package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
  302. package/types/forgeroute-ui-radio.d.ts +311 -0
  303. package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
  304. package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
  305. package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
  306. package/types/forgeroute-ui-search-input.d.ts +93 -0
  307. package/types/forgeroute-ui-section-header.d.ts +149 -0
  308. package/types/forgeroute-ui-select.d.ts +183 -0
  309. package/types/forgeroute-ui-setup.d.ts +775 -0
  310. package/types/forgeroute-ui-share-menu.d.ts +99 -0
  311. package/types/forgeroute-ui-shell.d.ts +173 -0
  312. package/types/forgeroute-ui-show.d.ts +40 -0
  313. package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
  314. package/types/forgeroute-ui-skeleton.d.ts +51 -0
  315. package/types/forgeroute-ui-skip-link.d.ts +51 -0
  316. package/types/forgeroute-ui-snackbar.d.ts +50 -0
  317. package/types/forgeroute-ui-square.d.ts +3 -1
  318. package/types/forgeroute-ui-stack.d.ts +99 -0
  319. package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
  320. package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
  321. package/types/forgeroute-ui-star-rating.d.ts +151 -0
  322. package/types/forgeroute-ui-star.d.ts +46 -0
  323. package/types/forgeroute-ui-stepper.d.ts +273 -0
  324. package/types/forgeroute-ui-stripe.d.ts +3 -1
  325. package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
  326. package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
  327. package/types/forgeroute-ui-table-types.d.ts +624 -0
  328. package/types/forgeroute-ui-text-input.d.ts +359 -0
  329. package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
  330. package/types/forgeroute-ui-text.d.ts +76 -0
  331. package/types/forgeroute-ui-textarea-input.d.ts +174 -0
  332. package/types/forgeroute-ui-time-input.d.ts +105 -0
  333. package/types/forgeroute-ui-timeline.d.ts +196 -0
  334. package/types/forgeroute-ui-toast.d.ts +131 -0
  335. package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
  336. package/types/forgeroute-ui-toggle.d.ts +92 -0
  337. package/types/forgeroute-ui-tooltip.d.ts +36 -0
  338. package/types/forgeroute-ui-utils.d.ts +210 -0
  339. package/types/forgeroute-ui.d.ts +106 -19539
  340. package/fesm2022/forgeroute-ui.mjs.map +0 -1
@@ -0,0 +1,2006 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, Injector, NgZone, PLATFORM_ID, afterNextRender, computed, effect, inject, input, isDevMode, linkedSignal, model, numberAttribute, output, signal, untracked } from "@angular/core";
3
+ import { DOCUMENT, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
4
+ import { BadgeComponent } from "@forgeroute/ui/badge";
5
+ import { EmptyStateComponent } from "@forgeroute/ui/empty-state";
6
+ import { PillTabsComponent } from "@forgeroute/ui/pill-tabs";
7
+ import { SkeletonComponent } from "@forgeroute/ui/skeleton";
8
+ import { DEFAULT_LOCALE, UiLabelsService, safeLocale, uiFormatClock, uiFormatHour, uiText, uiWeekdayName } from "@forgeroute/ui/core";
9
+ import { ToastComponent } from "@forgeroute/ui/toast";
10
+ import { TooltipDirective } from "@forgeroute/ui/tooltip";
11
+ import { iconPath } from "@forgeroute/ui/icon";
12
+ const WEEK_DAY_LABELS = [
13
+ "Sun",
14
+ "Mon",
15
+ "Tue",
16
+ "Wed",
17
+ "Thu",
18
+ "Fri",
19
+ "Sat"
20
+ ];
21
+ function weekDayNamesFor(locale = DEFAULT_LOCALE) {
22
+ return Array.from({ length: 7 }, (_, d) => uiWeekdayName(d, "long", locale));
23
+ }
24
+ function weekDayLabelsFor(locale = DEFAULT_LOCALE) {
25
+ const loc = safeLocale(locale);
26
+ return loc === "en-US" || loc === "en" ? WEEK_DAY_LABELS : Array.from({ length: 7 }, (_, d) => uiWeekdayName(d, "short", loc));
27
+ }
28
+ function toDateStr(d) {
29
+ return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
30
+ }
31
+ function fromDateStr(dateStr) {
32
+ return /* @__PURE__ */ new Date(dateStr + "T00:00");
33
+ }
34
+ function isValidDateStr(dateStr) {
35
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(dateStr)) return false;
36
+ const d = fromDateStr(dateStr);
37
+ return !isNaN(d.getTime()) && toDateStr(d) === dateStr;
38
+ }
39
+ function buildMonthCells(anchor, todayStr) {
40
+ const y = anchor.getFullYear();
41
+ const m = anchor.getMonth();
42
+ const start = new Date(y, m, 1 - new Date(y, m, 1).getDay());
43
+ const cells = [];
44
+ for (let i = 0; i < 42; i++) {
45
+ const d = new Date(start.getFullYear(), start.getMonth(), start.getDate() + i);
46
+ const ds = toDateStr(d);
47
+ cells.push({
48
+ dateStr: ds,
49
+ dayNum: d.getDate(),
50
+ isToday: ds === todayStr,
51
+ isCurrentMonth: d.getMonth() === m,
52
+ isWeekend: d.getDay() === 0 || d.getDay() === 6
53
+ });
54
+ }
55
+ return cells;
56
+ }
57
+ function buildWeekDays(anchor, todayStr) {
58
+ const start = new Date(anchor.getFullYear(), anchor.getMonth(), anchor.getDate() - anchor.getDay());
59
+ return Array.from({ length: 7 }, (_, i) => {
60
+ const d = new Date(start.getFullYear(), start.getMonth(), start.getDate() + i);
61
+ const ds = toDateStr(d);
62
+ return {
63
+ dateStr: ds,
64
+ dayNum: d.getDate(),
65
+ isToday: ds === todayStr,
66
+ isCurrentMonth: true,
67
+ isWeekend: i === 0 || i === 6
68
+ };
69
+ });
70
+ }
71
+ function rangeFor(view, anchor, todayStr) {
72
+ if (view === "week") {
73
+ const days = buildWeekDays(anchor, todayStr);
74
+ return {
75
+ view,
76
+ start: days[0].dateStr,
77
+ end: days[6].dateStr,
78
+ anchor
79
+ };
80
+ }
81
+ if (view === "month") {
82
+ const cells = buildMonthCells(anchor, todayStr);
83
+ return {
84
+ view,
85
+ start: cells[0].dateStr,
86
+ end: cells[41].dateStr,
87
+ anchor
88
+ };
89
+ }
90
+ const y = anchor.getFullYear();
91
+ const m = anchor.getMonth();
92
+ return {
93
+ view,
94
+ start: toDateStr(new Date(y, m, 1)),
95
+ end: toDateStr(new Date(y, m + 2, 0)),
96
+ anchor
97
+ };
98
+ }
99
+ function shiftAnchor(view, anchor, direction) {
100
+ if (view === "week") return new Date(anchor.getFullYear(), anchor.getMonth(), anchor.getDate() + 7 * direction);
101
+ if (view === "agenda") return new Date(anchor.getFullYear(), anchor.getMonth() + 2 * direction, 1);
102
+ const y = anchor.getFullYear();
103
+ const m = anchor.getMonth() + direction;
104
+ const lastDay = new Date(y, m + 1, 0).getDate();
105
+ return new Date(y, m, Math.min(anchor.getDate(), lastDay));
106
+ }
107
+ const DAY_LABELS = /* @__PURE__ */ new Map();
108
+ function formatDayLabel(dateStr, locale = DEFAULT_LOCALE) {
109
+ const loc = safeLocale(locale);
110
+ let fmt = DAY_LABELS.get(loc);
111
+ if (!fmt) {
112
+ fmt = new Intl.DateTimeFormat(loc, {
113
+ weekday: "long",
114
+ month: "long",
115
+ day: "numeric",
116
+ year: "numeric"
117
+ });
118
+ DAY_LABELS.set(loc, fmt);
119
+ }
120
+ return fmt.format(fromDateStr(dateStr));
121
+ }
122
+ function periodLabelFor(view, anchor, todayStr, locale = DEFAULT_LOCALE) {
123
+ const loc = safeLocale(locale);
124
+ if (view === "week") {
125
+ const days = buildWeekDays(anchor, todayStr);
126
+ const fs = fromDateStr(days[0].dateStr);
127
+ const ls = fromDateStr(days[6].dateStr);
128
+ if (fs.getMonth() === ls.getMonth()) return fs.toLocaleDateString(loc, {
129
+ month: "long",
130
+ year: "numeric"
131
+ });
132
+ return `${fs.toLocaleDateString(loc, { month: "short" })} – ${ls.toLocaleDateString(loc, {
133
+ month: "short",
134
+ year: "numeric"
135
+ })}`;
136
+ }
137
+ if (view === "agenda") {
138
+ const start = new Date(anchor.getFullYear(), anchor.getMonth(), 1);
139
+ const end = new Date(anchor.getFullYear(), anchor.getMonth() + 1, 1);
140
+ return `${start.toLocaleDateString(loc, { month: "long" })} – ${end.toLocaleDateString(loc, {
141
+ month: "long",
142
+ year: "numeric"
143
+ })}`;
144
+ }
145
+ return anchor.toLocaleDateString(loc, {
146
+ month: "long",
147
+ year: "numeric"
148
+ });
149
+ }
150
+ function formatTime(time, locale = DEFAULT_LOCALE) {
151
+ const [h, m] = time.split(":").map(Number);
152
+ return uiFormatClock(h, m, locale);
153
+ }
154
+ function formatHour(h, locale = DEFAULT_LOCALE) {
155
+ return uiFormatHour(h, locale);
156
+ }
157
+ const MIN_EVENT_HEIGHT = 20;
158
+ function timedBox(startTime, endTime, startHour, endHour = 21) {
159
+ const gridMax = (Math.max(endHour, startHour) + 1 - startHour) * 60;
160
+ const [h, min] = (startTime ?? `${String(startHour).padStart(2, "0")}:00`).split(":").map(Number);
161
+ const s = (h - startHour) * 60 + min;
162
+ let e = s + 60;
163
+ if (endTime) {
164
+ const [eh, em] = endTime.split(":").map(Number);
165
+ e = (eh - startHour) * 60 + em;
166
+ }
167
+ const top = Math.min(Math.max(0, s), gridMax - MIN_EVENT_HEIGHT);
168
+ return {
169
+ top,
170
+ height: Math.max(MIN_EVENT_HEIGHT, Math.min(Math.max(e, 0), gridMax) - top)
171
+ };
172
+ }
173
+ function layoutLanes(boxes) {
174
+ const sorted = boxes.slice().sort((a, b) => a.top - b.top || b.height - a.height);
175
+ const result = {};
176
+ let cluster = [];
177
+ let laneEnds = [];
178
+ let clusterEnd = -1;
179
+ const flush = () => {
180
+ for (const id of cluster) result[id].lanes = laneEnds.length;
181
+ cluster = [];
182
+ laneEnds = [];
183
+ };
184
+ for (const b of sorted) {
185
+ if (cluster.length && b.top >= clusterEnd) flush();
186
+ let lane = laneEnds.findIndex((end) => end <= b.top);
187
+ if (lane === -1) {
188
+ lane = laneEnds.length;
189
+ laneEnds.push(0);
190
+ }
191
+ laneEnds[lane] = b.top + b.height;
192
+ clusterEnd = cluster.length ? Math.max(clusterEnd, b.top + b.height) : b.top + b.height;
193
+ cluster.push(b.id);
194
+ result[b.id] = {
195
+ lane,
196
+ lanes: 1
197
+ };
198
+ }
199
+ flush();
200
+ return result;
201
+ }
202
+ function periodGroup(todayStr) {
203
+ if (!isValidDateStr(todayStr)) return () => null;
204
+ const today = fromDateStr(todayStr);
205
+ const tomorrow = toDateStr(new Date(today.getFullYear(), today.getMonth(), today.getDate() + 1));
206
+ const weekEnd = toDateStr(new Date(today.getFullYear(), today.getMonth(), today.getDate() + (6 - today.getDay())));
207
+ return (dateStr) => {
208
+ if (!isValidDateStr(dateStr)) return null;
209
+ if (dateStr < todayStr) return {
210
+ key: "overdue",
211
+ label: uiText("calendar.group.overdue")
212
+ };
213
+ if (dateStr === todayStr) return {
214
+ key: "today",
215
+ label: uiText("calendar.group.today")
216
+ };
217
+ if (dateStr === tomorrow) return {
218
+ key: "tomorrow",
219
+ label: uiText("calendar.group.tomorrow")
220
+ };
221
+ if (dateStr <= weekEnd) return {
222
+ key: "this-week",
223
+ label: uiText("calendar.group.thisWeek")
224
+ };
225
+ return {
226
+ key: "later",
227
+ label: uiText("calendar.group.later")
228
+ };
229
+ };
230
+ }
231
+ function isDayLevel(level) {
232
+ return level === "low" || level === "medium" || level === "high" || level === "critical";
233
+ }
234
+ const PENDING_FOCUS_MS = 1e3;
235
+ var CalendarComponent = class CalendarComponent {
236
+ formatHour(h) {
237
+ return formatHour(h, this.labels.locale());
238
+ }
239
+ clickable(dateStr) {
240
+ return this.canCreate() && !(this.disablePast() && dateStr < this.todayStr());
241
+ }
242
+ constructor() {
243
+ this.items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
244
+ this.loading = input(false, ...ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []);
245
+ this.loadingActions = input(2, {
246
+ ...ngDevMode ? { debugName: "loadingActions" } : /* istanbul ignore next */ {},
247
+ transform: numberAttribute
248
+ });
249
+ this.view = model("month", ...ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []);
250
+ this.views = input([
251
+ "week",
252
+ "month",
253
+ "agenda"
254
+ ], ...ngDevMode ? [{ debugName: "views" }] : /* istanbul ignore next */ []);
255
+ this.anchorDate = model(/* @__PURE__ */ new Date(), ...ngDevMode ? [{ debugName: "anchorDate" }] : /* istanbul ignore next */ []);
256
+ this.filters = input([], ...ngDevMode ? [{ debugName: "filters" }] : /* istanbul ignore next */ []);
257
+ this.filterLabel = input("", ...ngDevMode ? [{ debugName: "filterLabel" }] : /* istanbul ignore next */ []);
258
+ this.filterMode = input("multi", ...ngDevMode ? [{ debugName: "filterMode" }] : /* istanbul ignore next */ []);
259
+ this.activeFilters = model([], ...ngDevMode ? [{ debugName: "activeFilters" }] : /* istanbul ignore next */ []);
260
+ this.showFilterCounts = input(false, ...ngDevMode ? [{ debugName: "showFilterCounts" }] : /* istanbul ignore next */ []);
261
+ this.canCreate = input(false, ...ngDevMode ? [{ debugName: "canCreate" }] : /* istanbul ignore next */ []);
262
+ this.disablePast = input(false, ...ngDevMode ? [{ debugName: "disablePast" }] : /* istanbul ignore next */ []);
263
+ this.today = input(null, ...ngDevMode ? [{ debugName: "today" }] : /* istanbul ignore next */ []);
264
+ this.maxVisible = input(3, ...ngDevMode ? [{ debugName: "maxVisible" }] : /* istanbul ignore next */ []);
265
+ this.chipLayout = input("inline", ...ngDevMode ? [{ debugName: "chipLayout" }] : /* istanbul ignore next */ []);
266
+ this.sortByTime = input(true, ...ngDevMode ? [{ debugName: "sortByTime" }] : /* istanbul ignore next */ []);
267
+ this.startHour = input(7, ...ngDevMode ? [{ debugName: "startHour" }] : /* istanbul ignore next */ []);
268
+ this.endHour = input(21, ...ngDevMode ? [{ debugName: "endHour" }] : /* istanbul ignore next */ []);
269
+ this.emptyMessageInput = input(null, {
270
+ ...ngDevMode ? { debugName: "emptyMessageInput" } : /* istanbul ignore next */ {},
271
+ alias: "emptyMessage"
272
+ });
273
+ this.emptyMessage = computed(() => this.emptyMessageInput() ?? this.labels.t("calendar.emptyMessage"), ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
274
+ this.dayLabelFn = input(null, ...ngDevMode ? [{ debugName: "dayLabelFn" }] : /* istanbul ignore next */ []);
275
+ this.dayDecorationFn = input(null, ...ngDevMode ? [{ debugName: "dayDecorationFn" }] : /* istanbul ignore next */ []);
276
+ this.itemActionsFn = input(null, ...ngDevMode ? [{ debugName: "itemActionsFn" }] : /* istanbul ignore next */ []);
277
+ this.agendaGroupFn = input(null, ...ngDevMode ? [{ debugName: "agendaGroupFn" }] : /* istanbul ignore next */ []);
278
+ this.rangeChange = output();
279
+ this.itemClick = output();
280
+ this.dateClick = output();
281
+ this.slotClick = output();
282
+ this.moreClick = output();
283
+ this.itemAction = output();
284
+ this.host = inject(ElementRef);
285
+ this.labels = inject(UiLabelsService);
286
+ this.weekDayLabels = computed(() => weekDayLabelsFor(this.labels.locale()), ...ngDevMode ? [{ debugName: "weekDayLabels" }] : /* istanbul ignore next */ []);
287
+ this.weekDayNames = computed(() => weekDayNamesFor(this.labels.locale()), ...ngDevMode ? [{ debugName: "weekDayNames" }] : /* istanbul ignore next */ []);
288
+ this.skeletonCells = Array.from({ length: 42 }, (_, i) => i);
289
+ this.skeletonDays = Array.from({ length: 7 }, (_, i) => i);
290
+ this.skeletonRows = Array.from({ length: 4 }, (_, i) => i);
291
+ this.loadPhase = linkedSignal({
292
+ ...ngDevMode ? { debugName: "loadPhase" } : /* istanbul ignore next */ {},
293
+ source: this.loading,
294
+ computation: (loading, prev) => {
295
+ const p = prev?.value ?? "idle";
296
+ return loading ? p === "idle" ? "first" : p : p === "first" ? "loaded" : p;
297
+ }
298
+ });
299
+ this.showOutline = computed(() => {
300
+ const phase = this.loadPhase();
301
+ return this.loading() && phase !== "loaded" && this.items().length === 0;
302
+ }, ...ngDevMode ? [{ debugName: "showOutline" }] : /* istanbul ignore next */ []);
303
+ this.loadingActionSlots = computed(() => {
304
+ const n = Number(this.loadingActions());
305
+ return Array.from({ length: Number.isFinite(n) ? Math.max(0, Math.min(6, Math.floor(n))) : 0 }, (_, i) => i);
306
+ }, ...ngDevMode ? [{ debugName: "loadingActionSlots" }] : /* istanbul ignore next */ []);
307
+ this.clockToday = signal(toDateStr(/* @__PURE__ */ new Date()), ...ngDevMode ? [{ debugName: "clockToday" }] : /* istanbul ignore next */ []);
308
+ this.todayStr = computed(() => {
309
+ const t = this.today();
310
+ return t && isValidDateStr(t) ? t : this.clockToday();
311
+ }, ...ngDevMode ? [{ debugName: "todayStr" }] : /* istanbul ignore next */ []);
312
+ this.focusedDate = signal(null, ...ngDevMode ? [{ debugName: "focusedDate" }] : /* istanbul ignore next */ []);
313
+ this.lastRangeKey = "";
314
+ this.injector = inject(Injector);
315
+ this.hours = computed(() => Array.from({ length: Math.max(1, this.endHour() - this.startHour() + 1) }, (_, i) => i + this.startHour()), ...ngDevMode ? [{ debugName: "hours" }] : /* istanbul ignore next */ []);
316
+ this.monthCells = computed(() => buildMonthCells(this.anchorDate(), this.todayStr()), ...ngDevMode ? [{ debugName: "monthCells" }] : /* istanbul ignore next */ []);
317
+ this.weekDays = computed(() => buildWeekDays(this.anchorDate(), this.todayStr()), ...ngDevMode ? [{ debugName: "weekDays" }] : /* istanbul ignore next */ []);
318
+ this.periodLabel = computed(() => periodLabelFor(this.view(), this.anchorDate(), this.todayStr(), this.labels.locale()), ...ngDevMode ? [{ debugName: "periodLabel" }] : /* istanbul ignore next */ []);
319
+ this.periodParts = computed(() => {
320
+ const label = this.periodLabel();
321
+ const i = label.lastIndexOf(" ");
322
+ return this.view() === "month" && i > 0 ? {
323
+ main: label.slice(0, i),
324
+ sub: label.slice(i + 1)
325
+ } : {
326
+ main: label,
327
+ sub: ""
328
+ };
329
+ }, ...ngDevMode ? [{ debugName: "periodParts" }] : /* istanbul ignore next */ []);
330
+ this.viewTabs = computed(() => this.views().map((v) => ({
331
+ key: v,
332
+ label: this.labels.t(v === "week" ? "calendar.view.week" : v === "month" ? "calendar.view.month" : "calendar.view.agenda")
333
+ })), ...ngDevMode ? [{ debugName: "viewTabs" }] : /* istanbul ignore next */ []);
334
+ this.typeCounts = computed(() => {
335
+ const counts = {};
336
+ for (const e of this.items()) if (e.type) counts[e.type] = (counts[e.type] ?? 0) + 1;
337
+ return counts;
338
+ }, ...ngDevMode ? [{ debugName: "typeCounts" }] : /* istanbul ignore next */ []);
339
+ this.byDate = computed(() => {
340
+ const active = this.activeFilters();
341
+ const map = {};
342
+ if (isDevMode()) {
343
+ const seen = /* @__PURE__ */ new Set();
344
+ for (const e of this.items()) {
345
+ if (seen.has(e.id)) {
346
+ console.warn(`ui-calendar: duplicate item id "${e.id}" — ids must be unique across all items (prefix them by source).`);
347
+ break;
348
+ }
349
+ seen.add(e.id);
350
+ }
351
+ }
352
+ for (const e of this.items()) {
353
+ if (active.length && !(e.type && active.includes(e.type))) continue;
354
+ (map[e.date] ??= []).push(e);
355
+ }
356
+ if (this.sortByTime()) for (const k of Object.keys(map)) map[k] = map[k].slice().sort((a, b) => (a.startTime ?? "").localeCompare(b.startTime ?? ""));
357
+ return map;
358
+ }, ...ngDevMode ? [{ debugName: "byDate" }] : /* istanbul ignore next */ []);
359
+ this.agendaGroups = computed(() => Object.entries(this.byDate()).sort(([a], [b]) => a.localeCompare(b)).map(([dateStr, items]) => ({
360
+ dateStr,
361
+ items
362
+ })), ...ngDevMode ? [{ debugName: "agendaGroups" }] : /* istanbul ignore next */ []);
363
+ this.monthRows = computed(() => {
364
+ const max = this.maxVisible();
365
+ const cells = this.monthCells().map((day) => {
366
+ const items = this.byDate()[day.dateStr] ?? [];
367
+ const deco = this.decoration(day.dateStr, items);
368
+ return {
369
+ day,
370
+ items,
371
+ visible: items.slice(0, max),
372
+ overflow: Math.max(0, items.length - max),
373
+ clickable: this.clickable(day.dateStr),
374
+ label: this.dayAriaLabel(day.dateStr, items, deco.level),
375
+ level: deco.level,
376
+ tooltip: deco.tooltip
377
+ };
378
+ });
379
+ return Array.from({ length: 6 }, (_, r) => ({
380
+ key: cells[r * 7].day.dateStr,
381
+ cells: cells.slice(r * 7, r * 7 + 7)
382
+ }));
383
+ }, ...ngDevMode ? [{ debugName: "monthRows" }] : /* istanbul ignore next */ []);
384
+ this.weekColumns = computed(() => {
385
+ const startHour = this.startHour(), endHour = this.endHour();
386
+ return this.weekDays().map((day) => {
387
+ const items = this.byDate()[day.dateStr] ?? [];
388
+ const boxes = items.filter((e) => !e.allDay && !!e.startTime).map((item) => ({
389
+ item,
390
+ ...timedBox(item.startTime, item.endTime, startHour, endHour)
391
+ }));
392
+ const lanes = layoutLanes(boxes.map((b) => ({
393
+ id: b.item.id,
394
+ top: b.top,
395
+ height: b.height
396
+ })));
397
+ const deco = this.decoration(day.dateStr, items);
398
+ return {
399
+ day,
400
+ label: formatDayLabel(day.dateStr, this.labels.locale()),
401
+ clickable: this.clickable(day.dateStr),
402
+ level: deco.level,
403
+ tooltip: deco.tooltip,
404
+ allDay: items.filter((e) => e.allDay || !e.startTime),
405
+ timed: boxes.map((b) => ({
406
+ ...b,
407
+ lane: lanes[b.item.id]
408
+ }))
409
+ };
410
+ });
411
+ }, ...ngDevMode ? [{ debugName: "weekColumns" }] : /* istanbul ignore next */ []);
412
+ this.focusDate = computed(() => {
413
+ const cells = this.monthCells();
414
+ const f = this.focusedDate();
415
+ if (f && cells.some((c) => c.dateStr === f)) return f;
416
+ return (cells.find((c) => c.isToday) ?? cells.find((c) => c.isCurrentMonth) ?? cells[0]).dateStr;
417
+ }, ...ngDevMode ? [{ debugName: "focusDate" }] : /* istanbul ignore next */ []);
418
+ this.pendingFocus = null;
419
+ this.pendingSawLoading = false;
420
+ this.actionsById = computed(() => {
421
+ const map = /* @__PURE__ */ new Map();
422
+ const fn = this.itemActionsFn();
423
+ if (!fn) return map;
424
+ for (const e of this.items()) {
425
+ const acts = fn(e);
426
+ const seen = /* @__PURE__ */ new Set();
427
+ const valid = Array.isArray(acts) ? acts.filter((a) => {
428
+ if (!a || !a.id || !a.label || seen.has(a.id)) return false;
429
+ seen.add(a.id);
430
+ return true;
431
+ }) : [];
432
+ if (valid.length) map.set(e.id, valid);
433
+ }
434
+ return map;
435
+ }, ...ngDevMode ? [{ debugName: "actionsById" }] : /* istanbul ignore next */ []);
436
+ this.uid = `ui-cal-${CalendarComponent.nextUid++}`;
437
+ this.agendaSections = computed(() => {
438
+ const fn = this.agendaGroupFn();
439
+ if (!fn) return null;
440
+ const sections = [];
441
+ for (const g of this.agendaGroups()) {
442
+ const grp = fn(g.dateStr);
443
+ const key = grp?.key ?? "";
444
+ const last = sections.at(-1);
445
+ if (last && last.key === key) last.groups.push(g);
446
+ else sections.push({
447
+ key,
448
+ label: grp?.label ?? "",
449
+ id: `${this.uid}-agenda-${sections.length}`,
450
+ groups: [g]
451
+ });
452
+ }
453
+ return sections;
454
+ }, ...ngDevMode ? [{ debugName: "agendaSections" }] : /* istanbul ignore next */ []);
455
+ this.host.nativeElement.addEventListener("pointerdown", () => {
456
+ this.pendingFocus = null;
457
+ });
458
+ effect(() => {
459
+ const loading = this.loading();
460
+ if (!this.pendingFocus) return;
461
+ if (loading) {
462
+ this.pendingSawLoading = true;
463
+ return;
464
+ }
465
+ if (!this.pendingSawLoading) return;
466
+ const target = this.pendingFocus;
467
+ this.pendingFocus = null;
468
+ this.pendingSawLoading = false;
469
+ afterNextRender(() => this.host.nativeElement.querySelector(`.month-cell[data-date="${target}"]`)?.focus(), { injector: this.injector });
470
+ });
471
+ effect(() => {
472
+ const view = this.view();
473
+ const views = this.views();
474
+ if (views.length && !views.includes(view)) {
475
+ untracked(() => this.view.set(views[0]));
476
+ return;
477
+ }
478
+ const range = rangeFor(view, this.anchorDate(), this.todayStr());
479
+ const key = `${range.view}|${range.start}|${range.end}`;
480
+ if (key === this.lastRangeKey) return;
481
+ this.lastRangeKey = key;
482
+ untracked(() => this.rangeChange.emit(range));
483
+ });
484
+ const destroyRef = inject(DestroyRef);
485
+ const zone = inject(NgZone);
486
+ const doc = inject(DOCUMENT);
487
+ let timer;
488
+ const refreshToday = () => zone.run(() => this.clockToday.set(toDateStr(/* @__PURE__ */ new Date())));
489
+ const schedule = () => {
490
+ const now = /* @__PURE__ */ new Date();
491
+ const next = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1, 0, 0, 1);
492
+ timer = setTimeout(() => {
493
+ refreshToday();
494
+ schedule();
495
+ }, next.getTime() - now.getTime());
496
+ };
497
+ const onVisible = () => {
498
+ if (doc.visibilityState === "visible") refreshToday();
499
+ };
500
+ if (!isPlatformBrowser(inject(PLATFORM_ID))) return;
501
+ zone.runOutsideAngular(() => {
502
+ schedule();
503
+ doc.addEventListener("visibilitychange", onVisible);
504
+ });
505
+ destroyRef.onDestroy(() => {
506
+ clearTimeout(timer);
507
+ doc.removeEventListener("visibilitychange", onVisible);
508
+ });
509
+ }
510
+ isFilterActive(value) {
511
+ return this.activeFilters().includes(value);
512
+ }
513
+ toggleFilter(value) {
514
+ const active = this.activeFilters();
515
+ if (this.filterMode() === "single") {
516
+ this.activeFilters.set(active.includes(value) ? [] : [value]);
517
+ return;
518
+ }
519
+ this.activeFilters.set(active.includes(value) ? active.filter((v) => v !== value) : [...active, value]);
520
+ }
521
+ clearFilters() {
522
+ this.activeFilters.set([]);
523
+ }
524
+ setView(v) {
525
+ this.view.set(v);
526
+ }
527
+ navigate(direction) {
528
+ this.focusedDate.set(null);
529
+ this.anchorDate.set(shiftAnchor(this.view(), this.anchorDate(), direction));
530
+ }
531
+ goToday() {
532
+ this.focusedDate.set(null);
533
+ this.clockToday.set(toDateStr(/* @__PURE__ */ new Date()));
534
+ this.anchorDate.set(fromDateStr(this.todayStr()));
535
+ }
536
+ dowLabel(dateStr) {
537
+ return this.weekDayLabels()[fromDateStr(dateStr).getDay()];
538
+ }
539
+ agendaDow(dateStr) {
540
+ return fromDateStr(dateStr).toLocaleDateString(safeLocale(this.labels.locale()), { weekday: "short" }).toUpperCase();
541
+ }
542
+ agendaDate(dateStr) {
543
+ return fromDateStr(dateStr).toLocaleDateString(safeLocale(this.labels.locale()), {
544
+ month: "short",
545
+ day: "numeric"
546
+ });
547
+ }
548
+ chipTime(e) {
549
+ if (e.timeLabel) return e.timeLabel;
550
+ return e.startTime && !e.allDay ? formatTime(e.startTime, this.labels.locale()) : "";
551
+ }
552
+ timeRange(e) {
553
+ return e.startTime ? formatTime(e.startTime, this.labels.locale()) + (e.endTime ? ` – ${formatTime(e.endTime, this.labels.locale())}` : "") : "";
554
+ }
555
+ itemLabel(e) {
556
+ return e.ariaLabel || [this.chipTime(e), e.title].filter(Boolean).join(" ");
557
+ }
558
+ agendaMeta(e) {
559
+ return [e.timeLabel ?? (!e.allDay && e.startTime ? this.timeRange(e) : ""), ...e.meta ?? []].filter(Boolean);
560
+ }
561
+ dayAriaLabel(dateStr, items, level = null) {
562
+ const fn = this.dayLabelFn();
563
+ if (fn) return fn(dateStr, items);
564
+ const label = formatDayLabel(dateStr, this.labels.locale());
565
+ const base = items.length ? `${label}, ${this.labels.t(items.length === 1 ? "calendar.eventCount_one" : "calendar.eventCount_other", { count: items.length })}` : label;
566
+ return level ? `${base}, ${this.levelText(level)}` : base;
567
+ }
568
+ decoration(dateStr, items) {
569
+ const d = this.dayDecorationFn()?.(dateStr, items);
570
+ return {
571
+ level: d && isDayLevel(d.level) ? d.level : null,
572
+ tooltip: d?.tooltip ?? ""
573
+ };
574
+ }
575
+ levelText(level) {
576
+ return this.labels.t(`calendar.level.${level}`);
577
+ }
578
+ static {
579
+ this.NO_ACTIONS = [];
580
+ }
581
+ actionsFor(item) {
582
+ return this.actionsById().get(item.id) ?? CalendarComponent.NO_ACTIONS;
583
+ }
584
+ actionIconD(a) {
585
+ return a.icon ? iconPath(a.icon) ?? null : null;
586
+ }
587
+ onActionClick(item, action, event) {
588
+ event.stopPropagation();
589
+ if (action.disabled) return;
590
+ this.itemAction.emit({
591
+ item,
592
+ actionId: action.id
593
+ });
594
+ }
595
+ onActionsEscape(event) {
596
+ event.stopPropagation();
597
+ event.currentTarget.parentElement?.querySelector(":scope > .event-chip, :scope > .allday-chip, :scope > .timed-event, :scope > .agenda-event")?.focus();
598
+ }
599
+ static {
600
+ this.nextUid = 0;
601
+ }
602
+ onDateClick(dateStr) {
603
+ if (this.clickable(dateStr)) this.dateClick.emit(dateStr);
604
+ }
605
+ onCellKey(event, dateStr) {
606
+ if (event.key !== "PageUp" && event.key !== "PageDown") this.pendingFocus = null;
607
+ if (event.target !== event.currentTarget || event.altKey || event.ctrlKey || event.metaKey) return;
608
+ if (event.key === "Enter" || event.key === " ") {
609
+ event.preventDefault();
610
+ this.onDateClick(dateStr);
611
+ return;
612
+ }
613
+ const d = fromDateStr(dateStr);
614
+ if (event.key === "PageUp" || event.key === "PageDown") {
615
+ event.preventDefault();
616
+ this.jumpMonths(d, (event.key === "PageUp" ? -1 : 1) * (event.shiftKey ? 12 : 1));
617
+ return;
618
+ }
619
+ const step = {
620
+ ArrowLeft: -1,
621
+ ArrowRight: 1,
622
+ ArrowUp: -7,
623
+ ArrowDown: 7,
624
+ Home: -d.getDay(),
625
+ End: 6 - d.getDay()
626
+ };
627
+ if (!(event.key in step)) return;
628
+ event.preventDefault();
629
+ const target = toDateStr(new Date(d.getFullYear(), d.getMonth(), d.getDate() + step[event.key]));
630
+ if (!this.monthCells().some((c) => c.dateStr === target)) return;
631
+ this.focusedDate.set(target);
632
+ this.host.nativeElement.querySelector(`.month-cell[data-date="${target}"]`)?.focus();
633
+ }
634
+ jumpMonths(from, months) {
635
+ const y = from.getFullYear();
636
+ const m = from.getMonth() + months;
637
+ const target = new Date(y, m, Math.min(from.getDate(), new Date(y, m + 1, 0).getDate()));
638
+ const targetStr = toDateStr(target);
639
+ this.focusedDate.set(targetStr);
640
+ this.pendingFocus = targetStr;
641
+ this.pendingSawLoading = this.loading();
642
+ this.anchorDate.set(target);
643
+ afterNextRender(() => {
644
+ this.host.nativeElement.querySelector(`.month-cell[data-date="${targetStr}"]`)?.focus();
645
+ setTimeout(() => {
646
+ if (!this.pendingSawLoading && this.pendingFocus === targetStr) this.pendingFocus = null;
647
+ }, PENDING_FOCUS_MS);
648
+ }, { injector: this.injector });
649
+ }
650
+ onAddAllDay(dateStr, event) {
651
+ event.stopPropagation();
652
+ this.onDateClick(dateStr);
653
+ }
654
+ onAddTimed(dateStr, event) {
655
+ event.stopPropagation();
656
+ if (this.clickable(dateStr)) this.slotClick.emit({
657
+ date: dateStr,
658
+ time: `${String(this.startHour()).padStart(2, "0")}:00`
659
+ });
660
+ }
661
+ onSlotClick(dateStr, event) {
662
+ if (!this.clickable(dateStr)) return;
663
+ const rect = event.currentTarget.getBoundingClientRect();
664
+ const hour = Math.min(this.endHour(), Math.max(this.startHour(), this.startHour() + Math.floor((event.clientY - rect.top) / 60)));
665
+ this.slotClick.emit({
666
+ date: dateStr,
667
+ time: `${String(hour).padStart(2, "0")}:00`
668
+ });
669
+ }
670
+ onItemClick(item, event) {
671
+ event.stopPropagation();
672
+ this.itemClick.emit(item);
673
+ }
674
+ onMoreClick(dateStr, items, event) {
675
+ event.stopPropagation();
676
+ this.moreClick.emit({
677
+ date: dateStr,
678
+ items
679
+ });
680
+ }
681
+ static {
682
+ this.ɵfac = i0.ɵɵngDeclareFactory({
683
+ minVersion: "12.0.0",
684
+ version: "22.2.2",
685
+ ngImport: i0,
686
+ type: CalendarComponent,
687
+ deps: [],
688
+ target: i0.ɵɵFactoryTarget.Component
689
+ });
690
+ }
691
+ static {
692
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
693
+ minVersion: "17.0.0",
694
+ version: "22.2.2",
695
+ type: CalendarComponent,
696
+ isStandalone: true,
697
+ selector: "ui-calendar",
698
+ inputs: {
699
+ items: {
700
+ classPropertyName: "items",
701
+ publicName: "items",
702
+ isSignal: true,
703
+ isRequired: false,
704
+ transformFunction: null
705
+ },
706
+ loading: {
707
+ classPropertyName: "loading",
708
+ publicName: "loading",
709
+ isSignal: true,
710
+ isRequired: false,
711
+ transformFunction: null
712
+ },
713
+ loadingActions: {
714
+ classPropertyName: "loadingActions",
715
+ publicName: "loadingActions",
716
+ isSignal: true,
717
+ isRequired: false,
718
+ transformFunction: null
719
+ },
720
+ view: {
721
+ classPropertyName: "view",
722
+ publicName: "view",
723
+ isSignal: true,
724
+ isRequired: false,
725
+ transformFunction: null
726
+ },
727
+ views: {
728
+ classPropertyName: "views",
729
+ publicName: "views",
730
+ isSignal: true,
731
+ isRequired: false,
732
+ transformFunction: null
733
+ },
734
+ anchorDate: {
735
+ classPropertyName: "anchorDate",
736
+ publicName: "anchorDate",
737
+ isSignal: true,
738
+ isRequired: false,
739
+ transformFunction: null
740
+ },
741
+ filters: {
742
+ classPropertyName: "filters",
743
+ publicName: "filters",
744
+ isSignal: true,
745
+ isRequired: false,
746
+ transformFunction: null
747
+ },
748
+ filterLabel: {
749
+ classPropertyName: "filterLabel",
750
+ publicName: "filterLabel",
751
+ isSignal: true,
752
+ isRequired: false,
753
+ transformFunction: null
754
+ },
755
+ filterMode: {
756
+ classPropertyName: "filterMode",
757
+ publicName: "filterMode",
758
+ isSignal: true,
759
+ isRequired: false,
760
+ transformFunction: null
761
+ },
762
+ activeFilters: {
763
+ classPropertyName: "activeFilters",
764
+ publicName: "activeFilters",
765
+ isSignal: true,
766
+ isRequired: false,
767
+ transformFunction: null
768
+ },
769
+ showFilterCounts: {
770
+ classPropertyName: "showFilterCounts",
771
+ publicName: "showFilterCounts",
772
+ isSignal: true,
773
+ isRequired: false,
774
+ transformFunction: null
775
+ },
776
+ canCreate: {
777
+ classPropertyName: "canCreate",
778
+ publicName: "canCreate",
779
+ isSignal: true,
780
+ isRequired: false,
781
+ transformFunction: null
782
+ },
783
+ disablePast: {
784
+ classPropertyName: "disablePast",
785
+ publicName: "disablePast",
786
+ isSignal: true,
787
+ isRequired: false,
788
+ transformFunction: null
789
+ },
790
+ today: {
791
+ classPropertyName: "today",
792
+ publicName: "today",
793
+ isSignal: true,
794
+ isRequired: false,
795
+ transformFunction: null
796
+ },
797
+ maxVisible: {
798
+ classPropertyName: "maxVisible",
799
+ publicName: "maxVisible",
800
+ isSignal: true,
801
+ isRequired: false,
802
+ transformFunction: null
803
+ },
804
+ chipLayout: {
805
+ classPropertyName: "chipLayout",
806
+ publicName: "chipLayout",
807
+ isSignal: true,
808
+ isRequired: false,
809
+ transformFunction: null
810
+ },
811
+ sortByTime: {
812
+ classPropertyName: "sortByTime",
813
+ publicName: "sortByTime",
814
+ isSignal: true,
815
+ isRequired: false,
816
+ transformFunction: null
817
+ },
818
+ startHour: {
819
+ classPropertyName: "startHour",
820
+ publicName: "startHour",
821
+ isSignal: true,
822
+ isRequired: false,
823
+ transformFunction: null
824
+ },
825
+ endHour: {
826
+ classPropertyName: "endHour",
827
+ publicName: "endHour",
828
+ isSignal: true,
829
+ isRequired: false,
830
+ transformFunction: null
831
+ },
832
+ emptyMessageInput: {
833
+ classPropertyName: "emptyMessageInput",
834
+ publicName: "emptyMessage",
835
+ isSignal: true,
836
+ isRequired: false,
837
+ transformFunction: null
838
+ },
839
+ dayLabelFn: {
840
+ classPropertyName: "dayLabelFn",
841
+ publicName: "dayLabelFn",
842
+ isSignal: true,
843
+ isRequired: false,
844
+ transformFunction: null
845
+ },
846
+ dayDecorationFn: {
847
+ classPropertyName: "dayDecorationFn",
848
+ publicName: "dayDecorationFn",
849
+ isSignal: true,
850
+ isRequired: false,
851
+ transformFunction: null
852
+ },
853
+ itemActionsFn: {
854
+ classPropertyName: "itemActionsFn",
855
+ publicName: "itemActionsFn",
856
+ isSignal: true,
857
+ isRequired: false,
858
+ transformFunction: null
859
+ },
860
+ agendaGroupFn: {
861
+ classPropertyName: "agendaGroupFn",
862
+ publicName: "agendaGroupFn",
863
+ isSignal: true,
864
+ isRequired: false,
865
+ transformFunction: null
866
+ }
867
+ },
868
+ outputs: {
869
+ view: "viewChange",
870
+ anchorDate: "anchorDateChange",
871
+ activeFilters: "activeFiltersChange",
872
+ rangeChange: "rangeChange",
873
+ itemClick: "itemClick",
874
+ dateClick: "dateClick",
875
+ slotClick: "slotClick",
876
+ moreClick: "moreClick",
877
+ itemAction: "itemAction"
878
+ },
879
+ ngImport: i0,
880
+ template: `
881
+ @if (showOutline()) {
882
+ <!-- First load: an outline of the whole page (toolbar, filter bar, grid) built only from decorative skeletons. One status region. -->
883
+ <div class="cal-outline" data-testid="calendar-skeleton" role="status" aria-busy="true" [attr.aria-label]="labels.t('calendar.loadingCalendar')">
884
+ <div class="cal-header">
885
+ <div class="cal-toolbar">
886
+ <div class="toolbar-left">
887
+ <div class="skel-period-wrap"><ui-skeleton class="skel-period" [height]="40" [radius]="8" /></div>
888
+ @if (!filters().length) {
889
+ <div class="nav-controls skel-nav-controls">
890
+ <ui-skeleton class="skel-nav" [height]="38" width="38px" [radius]="10" />
891
+ <ui-skeleton class="skel-nav" [height]="38" width="76px" [radius]="10" />
892
+ <ui-skeleton class="skel-nav" [height]="38" width="38px" [radius]="10" />
893
+ </div>
894
+ }
895
+ </div>
896
+ <div class="toolbar-center"></div>
897
+ <div class="toolbar-right">
898
+ @if (viewTabs().length > 1) {
899
+ <div class="skel-tabs">
900
+ @for (t of viewTabs(); track t.key) { <ui-skeleton class="skel-tab" [height]="34" width="72px" [radius]="17" /> }
901
+ </div>
902
+ }
903
+ @if (loadingActionSlots().length) {
904
+ <div class="toolbar-actions">
905
+ @for (a of loadingActionSlots(); track a) { <ui-skeleton class="skel-action" [height]="38" width="112px" [radius]="10" /> }
906
+ </div>
907
+ }
908
+ </div>
909
+ </div>
910
+ @if (filters().length) {
911
+ <div class="filter-bar">
912
+ <div class="filter-main">
913
+ @if (filterLabel()) { <ui-skeleton class="skel-filter-label" [height]="12" width="80px" [radius]="4" /> }
914
+ <div class="filter-chips">
915
+ <ui-skeleton class="skel-chip" [height]="28" width="56px" [radius]="14" />
916
+ @for (f of filters(); track f.value) { <ui-skeleton class="skel-chip" [height]="28" width="88px" [radius]="14" /> }
917
+ </div>
918
+ </div>
919
+ <div class="filter-nav">
920
+ <div class="nav-controls skel-nav-controls">
921
+ <ui-skeleton class="skel-nav" [height]="38" width="38px" [radius]="10" />
922
+ <ui-skeleton class="skel-nav" [height]="38" width="76px" [radius]="10" />
923
+ <ui-skeleton class="skel-nav" [height]="38" width="38px" [radius]="10" />
924
+ </div>
925
+ </div>
926
+ </div>
927
+ }
928
+ </div>
929
+ <div class="outline-grid">
930
+ @if (view() !== 'agenda') {
931
+ <div class="skel-dow-row">
932
+ @for (d of weekDayLabels(); track d) { <div class="skel-dow"><ui-skeleton [height]="16" width="36px" [radius]="4" /></div> }
933
+ </div>
934
+ }
935
+ @switch (view()) {
936
+ @case ('month') {
937
+ <div class="skel-month-grid">
938
+ @for (i of skeletonCells; track i) {
939
+ <div class="skel-cell">
940
+ <ui-skeleton [height]="22" width="22px" [radius]="11" />
941
+ @if (i % 3 === 0) { <ui-skeleton [height]="14" [radius]="3" /> }
942
+ @if (i % 5 === 0) { <ui-skeleton [height]="14" width="72%" [radius]="3" /> }
943
+ </div>
944
+ }
945
+ </div>
946
+ }
947
+ @case ('week') {
948
+ <div class="skel-week-grid">
949
+ @for (i of skeletonDays; track i) {
950
+ <div class="skel-cell">
951
+ <ui-skeleton [height]="14" [radius]="3" />
952
+ @if (i % 2 === 0) { <ui-skeleton [height]="48" [radius]="6" /> }
953
+ @if (i % 3 === 0) { <ui-skeleton [height]="32" width="72%" [radius]="6" /> }
954
+ </div>
955
+ }
956
+ </div>
957
+ }
958
+ @default {
959
+ <div class="skel-agenda">
960
+ @for (i of skeletonRows; track i) {
961
+ <div class="skel-row">
962
+ <ui-skeleton class="skel-row-date" [height]="40" width="64px" [radius]="6" />
963
+ <div class="skel-row-body"><ui-skeleton [height]="16" width="60%" [radius]="4" /><ui-skeleton [height]="12" width="35%" [radius]="4" /></div>
964
+ </div>
965
+ }
966
+ </div>
967
+ }
968
+ }
969
+ </div>
970
+ </div>
971
+ } @else {
972
+ <!-- Previous / Today / Next: right-aligned in the filter row when there is one, else next to the period label -->
973
+ <ng-template #navControls>
974
+ <div class="nav-controls">
975
+ <button type="button" class="btn-nav" (click)="navigate(-1)" [attr.aria-label]="labels.t('common.previous')">
976
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
977
+ </button>
978
+ <button type="button" class="btn-today" (click)="goToday()">{{ labels.t('common.today') }}</button>
979
+ <button type="button" class="btn-nav" (click)="navigate(1)" [attr.aria-label]="labels.t('common.next')">
980
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>
981
+ </button>
982
+ </div>
983
+ </ng-template>
984
+
985
+ <!-- Shared item markup: the same button is drawn on its own or, when itemActionsFn offers actions, inside a wrapper next to the action buttons
986
+ (a button can never contain buttons). -->
987
+ <ng-template #monthChip let-e>
988
+ <button type="button" class="event-chip" [class.stacked]="chipLayout() === 'stacked'" [class.has-head]="!!(e.iconPath || chipTime(e))" [style.background]="e.bgColor" [style.borderLeftColor]="e.color"
989
+ [attr.aria-label]="itemLabel(e)" [title]="e.tooltip || e.title"
990
+ (click)="onItemClick(e, $event)">
991
+ <span class="chip-head">
992
+ @if (e.iconPath) {
993
+ <svg class="chip-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path [attr.d]="e.iconPath"/></svg>
994
+ }
995
+ @if (chipTime(e); as t) { <span class="chip-time">{{ t }}</span> }
996
+ </span>
997
+ <span class="chip-title" [class.strike]="e.strike">{{ e.title }}</span>
998
+ @if (e.tag) { <span class="chip-src">{{ e.tag }}</span> }
999
+ </button>
1000
+ </ng-template>
1001
+ <ng-template #allDayChip let-e>
1002
+ <button type="button" class="allday-chip" [style.background]="e.bgColor" [style.borderLeftColor]="e.color"
1003
+ [attr.aria-label]="itemLabel(e)" [attr.title]="e.tooltip || null" (click)="onItemClick(e, $event)">{{ e.title }}</button>
1004
+ </ng-template>
1005
+ <ng-template #timedEvent let-t let-wrapped="wrapped">
1006
+ <button type="button" class="timed-event"
1007
+ [class.in-wrap]="wrapped" [style.top.px]="wrapped ? null : t.top" [style.height.px]="wrapped ? null : t.height"
1008
+ [style.left]="wrapped ? null : 'calc(' + (t.lane.lane / t.lane.lanes * 100) + '% + 2px)'"
1009
+ [style.width]="wrapped ? null : 'calc(' + (100 / t.lane.lanes) + '% - 4px)'"
1010
+ [style.background]="t.item.bgColor" [style.borderLeftColor]="t.item.color"
1011
+ [attr.aria-label]="itemLabel(t.item)" [attr.title]="t.item.tooltip || null" (click)="onItemClick(t.item, $event)">
1012
+ <span class="te-title" [class.strike]="t.item.strike">{{ t.item.title }}</span>
1013
+ @if (t.item.startTime) { <span class="te-time">{{ t.item.timeLabel || timeRange(t.item) }}</span> }
1014
+ </button>
1015
+ </ng-template>
1016
+ <ng-template #agendaRow let-e>
1017
+ <button type="button" class="agenda-event" [attr.aria-label]="e.ariaLabel || null" [attr.title]="e.tooltip || null" (click)="onItemClick(e, $event)">
1018
+ <span class="ae-color-bar" [style.background]="e.color"></span>
1019
+ <span class="ae-body">
1020
+ <span class="ae-top">
1021
+ <span class="ae-title" [class.strike]="e.strike">{{ e.title }}</span>
1022
+ @for (b of e.badges ?? []; track b.label) { <ui-badge [label]="b.label" [variant]="b.variant" /> }
1023
+ </span>
1024
+ @if (agendaMeta(e).length) {
1025
+ <span class="ae-meta">
1026
+ @for (m of agendaMeta(e); track $index) { <span class="ae-meta-item">{{ m }}</span> }
1027
+ </span>
1028
+ }
1029
+ </span>
1030
+ </button>
1031
+ </ng-template>
1032
+ <ng-template #agendaGroupTpl let-group>
1033
+ <div class="agenda-group">
1034
+ <div class="agenda-date-hdr">
1035
+ <span class="ag-dow">{{ agendaDow(group.dateStr) }}</span>
1036
+ <span class="ag-date">{{ agendaDate(group.dateStr) }}</span>
1037
+ @if (group.dateStr === todayStr()) { <ui-badge [label]="labels.t('common.today')" variant="blue" /> }
1038
+ </div>
1039
+ <div class="agenda-events">
1040
+ @for (e of group.items; track e.id) {
1041
+ @if (actionsFor(e).length) {
1042
+ <div class="item-wrap agenda-wrap">
1043
+ <ng-container *ngTemplateOutlet="agendaRow; context: { $implicit: e }" />
1044
+ <ng-container *ngTemplateOutlet="itemActionsTpl; context: { $implicit: e }" />
1045
+ </div>
1046
+ } @else {
1047
+ <ng-container *ngTemplateOutlet="agendaRow; context: { $implicit: e }" />
1048
+ }
1049
+ }
1050
+ </div>
1051
+ </div>
1052
+
1053
+ </ng-template>
1054
+ <ng-template #itemActionsTpl let-e>
1055
+ <span class="item-actions" role="group" [attr.aria-label]="labels.t('calendar.actionsFor', { name: e.title })" (keydown.escape)="onActionsEscape($event)">
1056
+ @for (a of actionsFor(e); track a.id) {
1057
+ <button type="button" class="item-action" [class.item-action--danger]="a.variant === 'danger'" [disabled]="!!a.disabled"
1058
+ [attr.aria-label]="a.label + ': ' + e.title" [attr.title]="a.label" (click)="onActionClick(e, a, $event)">
1059
+ @if (actionIconD(a); as d) {
1060
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path [attr.d]="d" /></svg>
1061
+ } @else {
1062
+ <span class="item-action-text">{{ a.label }}</span>
1063
+ }
1064
+ </button>
1065
+ }
1066
+ </span>
1067
+ </ng-template>
1068
+
1069
+ <div class="cal-header">
1070
+ <div class="cal-toolbar">
1071
+ <div class="toolbar-left">
1072
+ <h2 class="period-label" aria-live="polite" aria-atomic="true"><span class="pl-main">{{ periodParts().main }}</span>@if (periodParts().sub) {<span class="pl-sub">{{ ' ' + periodParts().sub }}</span>}</h2>
1073
+ @if (!filters().length) { <ng-container *ngTemplateOutlet="navControls" /> }
1074
+ </div>
1075
+ <div class="toolbar-center"><ng-content select="[calendar-summary]" /></div>
1076
+ <div class="toolbar-right">
1077
+ @if (viewTabs().length > 1) {
1078
+ <ui-pill-tabs [ariaLabel]="labels.t('calendar.calendarView')" name="ui-calendar-view" [tabs]="viewTabs()" [activeKey]="view()" (tabChange)="setView($any($event))" />
1079
+ }
1080
+ <div class="toolbar-actions"><ng-content select="[calendar-actions]" /></div>
1081
+ </div>
1082
+ </div>
1083
+
1084
+ @if (filters().length) {
1085
+ <div class="filter-bar">
1086
+ <div class="filter-main">
1087
+ @if (filterLabel()) { <div class="filter-bar-label">{{ filterLabel() }}</div> }
1088
+ <div class="filter-chips" role="group" [attr.aria-label]="filterLabel() || labels.t('calendar.filter')">
1089
+ <button type="button" class="filter-chip" [class.active-all]="!activeFilters().length" [attr.aria-pressed]="!activeFilters().length" (click)="clearFilters()">
1090
+ {{ labels.t('calendar.all') }}
1091
+ @if (showFilterCounts()) { <span class="chip-count">{{ items().length }}</span> }
1092
+ </button>
1093
+ @for (f of filters(); track f.value) {
1094
+ <button type="button" class="filter-chip"
1095
+ [class.active-type]="isFilterActive(f.value)"
1096
+ [attr.aria-pressed]="isFilterActive(f.value)"
1097
+ [style.--chip-color]="f.color"
1098
+ [style.--chip-bg]="f.bgColor ?? null"
1099
+ (click)="toggleFilter(f.value)">
1100
+ <span class="chip-dot" [style.background]="f.color" aria-hidden="true"></span>
1101
+ {{ f.label }}
1102
+ @if (showFilterCounts()) { <span class="chip-count">{{ typeCounts()[f.value] ?? 0 }}</span> }
1103
+ </button>
1104
+ }
1105
+ </div>
1106
+ </div>
1107
+ <div class="filter-nav"><ng-container *ngTemplateOutlet="navControls" /></div>
1108
+ </div>
1109
+ }
1110
+ </div>
1111
+
1112
+ @if (!loading()) {
1113
+ <div class="mobile-summary"><ng-content select="[calendar-summary-mobile]" /></div>
1114
+ }
1115
+
1116
+ @if (loading()) {
1117
+ <div class="cal-skeleton" aria-busy="true" [attr.aria-label]="labels.t('calendar.loadingCalendar')" role="status">
1118
+ <div class="skel-dow-row">
1119
+ @for (d of weekDayLabels(); track d) { <div class="skel-dow"><ui-skeleton [height]="16" width="36px" [radius]="4" /></div> }
1120
+ </div>
1121
+ <div class="skel-month-grid">
1122
+ @for (i of skeletonCells; track i) {
1123
+ <div class="skel-cell">
1124
+ <ui-skeleton [height]="22" width="22px" [radius]="11" />
1125
+ @if (i % 3 === 0) { <ui-skeleton [height]="14" [radius]="3" /> }
1126
+ @if (i % 5 === 0) { <ui-skeleton [height]="14" width="72%" [radius]="3" /> }
1127
+ </div>
1128
+ }
1129
+ </div>
1130
+ </div>
1131
+ } @else {
1132
+ @switch (view()) {
1133
+ @case ('month') {
1134
+ <div class="month-view">
1135
+ <div class="month-grid" role="grid" [attr.aria-label]="periodLabel()">
1136
+ <div class="month-header" role="row">
1137
+ @for (d of weekDayLabels(); track d; let i = $index) {
1138
+ <div class="month-dow" role="columnheader" [attr.aria-label]="weekDayNames()[i]">
1139
+ <span class="dow-full" aria-hidden="true">{{ d }}</span><span class="dow-short" aria-hidden="true">{{ d.slice(0, 2) }}</span>
1140
+ </div>
1141
+ }
1142
+ </div>
1143
+ @for (row of monthRows(); track row.key) {
1144
+ <div class="month-row" role="row">
1145
+ @for (c of row.cells; track c.day.dateStr) {
1146
+ <div class="month-cell" role="gridcell"
1147
+ [attr.data-date]="c.day.dateStr"
1148
+ [class.other-month]="!c.day.isCurrentMonth" [class.today]="c.day.isToday"
1149
+ [class.clickable]="c.clickable"
1150
+ [attr.tabindex]="c.day.dateStr === focusDate() ? 0 : -1"
1151
+ [attr.aria-label]="c.label"
1152
+ [attr.data-level]="c.level"
1153
+ [uiTooltip]="c.tooltip"
1154
+ [attr.aria-current]="c.day.isToday ? 'date' : null"
1155
+ (click)="onDateClick(c.day.dateStr)"
1156
+ (focus)="focusedDate.set(c.day.dateStr)"
1157
+ (keydown)="onCellKey($event, c.day.dateStr)">
1158
+ <span class="day-num" [class.today-badge]="c.day.isToday">{{ c.day.dayNum }}</span>
1159
+ <div class="cell-events">
1160
+ @for (e of c.visible; track e.id) {
1161
+ @if (actionsFor(e).length) {
1162
+ <div class="item-wrap">
1163
+ <ng-container *ngTemplateOutlet="monthChip; context: { $implicit: e }" />
1164
+ <ng-container *ngTemplateOutlet="itemActionsTpl; context: { $implicit: e }" />
1165
+ </div>
1166
+ } @else {
1167
+ <ng-container *ngTemplateOutlet="monthChip; context: { $implicit: e }" />
1168
+ }
1169
+ }
1170
+ @if (c.overflow > 0) {
1171
+ <button type="button" class="more-events" (click)="onMoreClick(c.day.dateStr, c.items, $event)">{{ labels.t('calendar.moreCount', { count: c.overflow }) }}</button>
1172
+ }
1173
+ </div>
1174
+ </div>
1175
+ }
1176
+ </div>
1177
+ }
1178
+ </div>
1179
+ </div>
1180
+ }
1181
+ @case ('week') {
1182
+ <div class="week-view">
1183
+ <div class="week-header">
1184
+ <div class="time-gutter"></div>
1185
+ @for (col of weekColumns(); track col.day.dateStr) {
1186
+ <div class="week-day-hdr" [class.today]="col.day.isToday" [attr.data-level]="col.level" [uiTooltip]="col.tooltip">
1187
+ <span class="wdh-dow">{{ dowLabel(col.day.dateStr) }}</span>
1188
+ <span class="wdh-num" [class.today-badge]="col.day.isToday">{{ col.day.dayNum }}</span>
1189
+ @if (col.level) { <span class="deco-sr">{{ levelText(col.level) }}</span> }
1190
+ </div>
1191
+ }
1192
+ </div>
1193
+ <div class="allday-row">
1194
+ <div class="time-gutter allday-label">{{ labels.t('calendar.allDay') }}</div>
1195
+ @for (col of weekColumns(); track col.day.dateStr) {
1196
+ <div class="allday-cell" [class.clickable]="col.clickable" (click)="onDateClick(col.day.dateStr)">
1197
+ @if (col.clickable) {
1198
+ <button type="button" class="slot-add" [attr.aria-label]="labels.t('calendar.addAllDayEventOn', { day: col.label })" (click)="onAddAllDay(col.day.dateStr, $event)">{{ labels.t('calendar.addButton') }}</button>
1199
+ }
1200
+ @for (e of col.allDay; track e.id) {
1201
+ @if (actionsFor(e).length) {
1202
+ <div class="item-wrap">
1203
+ <ng-container *ngTemplateOutlet="allDayChip; context: { $implicit: e }" />
1204
+ <ng-container *ngTemplateOutlet="itemActionsTpl; context: { $implicit: e }" />
1205
+ </div>
1206
+ } @else {
1207
+ <ng-container *ngTemplateOutlet="allDayChip; context: { $implicit: e }" />
1208
+ }
1209
+ }
1210
+ </div>
1211
+ }
1212
+ </div>
1213
+ <div class="week-body">
1214
+ <div class="time-col">
1215
+ @for (h of hours(); track h) { <div class="time-slot-label">{{ formatHour(h) }}</div> }
1216
+ </div>
1217
+ @for (col of weekColumns(); track col.day.dateStr) {
1218
+ <div class="day-col" [class.today]="col.day.isToday" [class.clickable]="col.clickable" (click)="onSlotClick(col.day.dateStr, $event)">
1219
+ @if (col.clickable) {
1220
+ <button type="button" class="slot-add" [attr.aria-label]="labels.t('calendar.addEventOn', { day: col.label })" (click)="onAddTimed(col.day.dateStr, $event)">{{ labels.t('calendar.addButton') }}</button>
1221
+ }
1222
+ @for (h of hours(); track h) { <div class="time-slot"></div> }
1223
+ @for (t of col.timed; track t.item.id) {
1224
+ @if (actionsFor(t.item).length) {
1225
+ <div class="item-wrap timed-wrap" [style.top.px]="t.top" [style.height.px]="t.height"
1226
+ [style.left]="'calc(' + (t.lane.lane / t.lane.lanes * 100) + '% + 2px)'"
1227
+ [style.width]="'calc(' + (100 / t.lane.lanes) + '% - 4px)'">
1228
+ <ng-container *ngTemplateOutlet="timedEvent; context: { $implicit: t, wrapped: true }" />
1229
+ <ng-container *ngTemplateOutlet="itemActionsTpl; context: { $implicit: t.item }" />
1230
+ </div>
1231
+ } @else {
1232
+ <ng-container *ngTemplateOutlet="timedEvent; context: { $implicit: t, wrapped: false }" />
1233
+ }
1234
+ }
1235
+ </div>
1236
+ }
1237
+ </div>
1238
+ </div>
1239
+ }
1240
+ @case ('agenda') {
1241
+ <div class="agenda-view">
1242
+ @if (agendaGroups().length === 0) {
1243
+ <ui-empty-state iconType="task" [message]="emptyMessage()" />
1244
+ }
1245
+ @if (agendaSections(); as sections) {
1246
+ @for (s of sections; track $index) {
1247
+ @if (s.label) {
1248
+ <section class="agenda-section" [attr.aria-labelledby]="s.id">
1249
+ <h3 class="agenda-period-hdr" [id]="s.id">{{ s.label }}</h3>
1250
+ @for (group of s.groups; track group.dateStr) {
1251
+ <ng-container *ngTemplateOutlet="agendaGroupTpl; context: { $implicit: group }" />
1252
+ }
1253
+ </section>
1254
+ } @else {
1255
+ @for (group of s.groups; track group.dateStr) {
1256
+ <ng-container *ngTemplateOutlet="agendaGroupTpl; context: { $implicit: group }" />
1257
+ }
1258
+ }
1259
+ }
1260
+ } @else {
1261
+ @for (group of agendaGroups(); track group.dateStr) {
1262
+ <ng-container *ngTemplateOutlet="agendaGroupTpl; context: { $implicit: group }" />
1263
+ }
1264
+ }
1265
+ </div>
1266
+ }
1267
+ }
1268
+ }
1269
+ }
1270
+ <ui-toast />
1271
+ `,
1272
+ isInline: true,
1273
+ styles: [":host{display:flex;flex-direction:column;gap:0;height:100%;min-height:0}.cal-header{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 2px #0f172a0a;margin-bottom:12px;flex-shrink:0}.cal-toolbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:18px 20px;gap:16px;flex-shrink:0}.toolbar-left{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;column-gap:20px;row-gap:8px;min-width:0}.toolbar-center{display:flex;align-items:center;justify-content:center;gap:10px}.toolbar-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap}.toolbar-actions:empty{display:none}ui-pill-tabs+.toolbar-actions:not(:empty){margin-left:4px;padding-left:12px;border-left:1px solid #e2e8f0;align-self:stretch}@media(max-width:480px){.toolbar-actions{flex-wrap:wrap}}.period-label{font-size:2rem;font-weight:800;line-height:1.15;letter-spacing:-.025em;color:#0f172a;margin:0;min-width:0}.pl-sub{font-weight:600;color:#64748b}.nav-controls{display:inline-flex;align-items:center}.nav-controls>*+*{margin-left:-1px}.btn-nav{width:38px;height:38px;border:1px solid #cbd5e1;background:#fff;font-family:inherit;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#475569;transition:background .12s,color .12s}.nav-controls>.btn-nav:first-child{border-radius:10px 0 0 10px}.nav-controls>.btn-nav:last-child{border-radius:0 10px 10px 0}.btn-today{padding:0 18px;height:38px;border:1px solid #cbd5e1;background:#fff;border-radius:0;font-family:inherit;position:relative;font-size:.9375rem;font-weight:600;color:#1d4ed8;cursor:pointer;transition:background .12s}.btn-nav:hover,.btn-today:hover{background:#eff6ff;color:#1d4ed8;z-index:1}.btn-nav:active,.btn-today:active{background:#dbeafe}.btn-nav:focus-visible,.btn-today:focus-visible,.filter-chip:focus-visible,.event-chip:focus-visible,.more-events:focus-visible,.allday-chip:focus-visible,.timed-event:focus-visible,.agenda-event:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.month-cell:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.slot-add:focus,.slot-add:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}.mobile-summary{display:none}.filter-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:12px 20px 14px;border-top:1px solid #eef2f7;background:#f8fafc;border-radius:0 0 12px 12px;flex-shrink:0}.filter-main{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-width:0}.filter-nav{margin-left:auto;flex-shrink:0}.filter-bar-label{font-size:.6875rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.06em}.filter-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.filter-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:20px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#475569;cursor:pointer;transition:all .12s;white-space:nowrap;font-family:inherit}.filter-chip:hover{border-color:#cbd5e1;background:#f8fafc}.filter-chip.active-all{background:#1e293b;color:#fff;border-color:#1e293b}.filter-chip.active-all .chip-count{background:#fff3;color:#fff}.filter-chip.active-type{background:var(--chip-bg, #f1f5f9);color:#1e293b;border-color:var(--chip-color);font-weight:600}.filter-chip.active-type .chip-count{background:var(--chip-color);color:#fff}.chip-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.chip-count{font-size:.6875rem;font-weight:700;background:#f1f5f9;background:color-mix(in srgb,var(--chip-color, #64748b) 14%,#fff);color:#475569;padding:1px 8px;border-radius:999px;min-width:18px;text-align:center;box-sizing:border-box}.cal-skeleton,.outline-grid,.month-view,.week-view,.agenda-view{flex:1;display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.skel-dow-row{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:12px 10px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.skel-dow{display:flex;justify-content:center}.skel-month-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,minmax(80px,1fr));flex:1}.skel-cell{border-right:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;padding:8px 6px;display:flex;flex-direction:column;gap:6px}.skel-cell:nth-child(7n){border-right:none}.cal-outline{flex:1;display:flex;flex-direction:column;min-height:0}.cal-outline ui-skeleton{display:block;flex-shrink:0}.skel-period-wrap{width:240px;max-width:100%;min-width:0}.skel-nav-controls{gap:2px}.skel-nav-controls>*+*{margin-left:0}.skel-tabs{display:flex;align-items:center;gap:6px}.skel-tabs+.toolbar-actions:not(:empty){margin-left:4px;padding-left:12px;border-left:1px solid #e2e8f0;align-self:stretch}.skel-week-grid{display:grid;grid-template-columns:repeat(7,1fr);flex:1;min-height:360px}.skel-agenda{display:flex;flex-direction:column;flex:1}.skel-row{display:flex;align-items:center;gap:16px;padding:16px 12px;border-bottom:1px solid #f1f5f9}.skel-row-body{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}.month-grid{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto}.month-header{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;position:sticky;top:0;z-index:1}.month-dow{padding:10px 8px;font-size:.75rem;font-weight:600;color:#6b7280;text-align:center;text-transform:uppercase;letter-spacing:.04em}.dow-short{display:none}.month-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));flex:1 0 120px}.month-cell{border-right:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;padding:6px 6px 4px;min-height:120px;transition:background .1s;min-width:0;box-sizing:border-box}.month-cell.clickable{cursor:pointer}.month-cell.clickable:hover{background:#f8fafc}.month-cell:nth-child(7n){border-right:none}.month-cell.other-month{background:#fafafa}.month-cell.other-month .day-num{color:#64748b}.month-cell[data-level=low]{background:#f0fdf4;box-shadow:inset 0 3px #86efac}.month-cell[data-level=medium]{background:#fefce8;box-shadow:inset 0 3px #facc15}.month-cell[data-level=high]{background:#fff7ed;box-shadow:inset 0 3px #fb923c}.month-cell[data-level=critical]{background:#fef2f2;box-shadow:inset 0 3px #ef4444}.month-cell.other-month[data-level] .day-num{color:#475569}.month-cell.today{background:#eff6ff}.day-num{display:inline-block;width:26px;height:26px;line-height:26px;text-align:center;border-radius:50%;font-size:.8125rem;font-weight:500;color:#374151;margin-bottom:4px}.today-badge{background:#2563eb;color:#fff;font-weight:700}.cell-events{display:flex;flex-direction:column;gap:2px}.event-chip{display:flex;align-items:center;gap:3px;padding:2px 6px;width:100%;box-sizing:border-box;text-align:left;font-family:inherit;border:0;border-radius:4px;border-left:3px solid transparent;font-size:.6875rem;font-weight:500;cursor:pointer;overflow:hidden}.event-chip:hover{opacity:.85}.event-chip.stacked{flex-direction:column;align-items:flex-start;gap:0}.chip-head{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}.chip-icon{flex-shrink:0}.chip-time{font-weight:700;flex-shrink:0;color:#1e293b}.chip-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1e293b;min-width:0;max-width:100%}.strike{text-decoration:line-through}.chip-src{font-size:.625rem;font-weight:700;margin-left:auto;flex-shrink:0;color:#1e293b}.more-events{font-size:.6875rem;color:#2563eb;font-weight:600;cursor:pointer;padding:1px 6px;border:0;background:none;text-align:left;font-family:inherit}.more-events:hover{text-decoration:underline}.week-view{overflow:auto}.week-header{display:grid;grid-template-columns:60px repeat(7,1fr);border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;overflow-y:scroll}.time-gutter{border-right:1px solid #e2e8f0}.week-day-hdr{display:flex;flex-direction:column;align-items:center;padding:10px 4px;border-right:1px solid #f1f5f9}.week-day-hdr[data-level=low]{background:#f0fdf4;box-shadow:inset 0 3px #86efac}.week-day-hdr[data-level=medium]{background:#fefce8;box-shadow:inset 0 3px #facc15}.week-day-hdr[data-level=high]{background:#fff7ed;box-shadow:inset 0 3px #fb923c}.week-day-hdr[data-level=critical]{background:#fef2f2;box-shadow:inset 0 3px #ef4444}.week-day-hdr.today{background:#eff6ff}.deco-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.week-day-hdr:last-child{border-right:none}.wdh-dow{font-size:.6875rem;font-weight:600;color:#6b7280;text-transform:uppercase}.wdh-num{width:28px;height:28px;line-height:28px;text-align:center;border-radius:50%;font-size:.9375rem;font-weight:600;color:#374151;margin-top:2px}.wdh-num.today-badge{background:#2563eb;color:#fff;font-weight:700}.allday-row{display:grid;grid-template-columns:60px repeat(7,1fr);border-bottom:1px solid #e2e8f0;min-height:32px;flex-shrink:0;overflow-y:scroll}.allday-label{font-size:.625rem;color:#64748b;font-weight:600;text-transform:uppercase;display:flex;align-items:center;justify-content:center}.slot-add{position:absolute;top:2px;left:2px;z-index:3;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap;font-family:inherit}.slot-add:focus,.slot-add:focus-visible{width:auto;height:auto;padding:2px 8px;clip-path:none;background:#1e293b;color:#fff;border-radius:4px;font-size:.75rem;font-weight:600}.allday-cell{position:relative;border-right:1px solid #f1f5f9;padding:3px 4px;display:flex;flex-direction:column;gap:2px;min-width:0}.allday-cell.clickable{cursor:pointer}.allday-cell:last-child{border-right:none}.allday-chip{padding:2px 6px;border:0;border-radius:4px;border-left:3px solid transparent;font-size:.6875rem;font-weight:500;color:#1e293b;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-family:inherit}.allday-chip:hover{opacity:.85}.week-body{display:grid;grid-template-columns:60px repeat(7,1fr);flex:1;overflow-y:scroll}.time-col{display:flex;flex-direction:column;border-right:1px solid #e2e8f0;flex-shrink:0}.time-slot-label{height:60px;display:flex;align-items:flex-start;justify-content:flex-end;padding:4px 8px 0 0;font-size:.6875rem;color:#64748b;font-weight:500;border-bottom:1px solid #f1f5f9;flex-shrink:0;box-sizing:border-box}.day-col{position:relative;border-right:1px solid #f1f5f9;min-width:0}.day-col.clickable{cursor:pointer}.day-col:last-child{border-right:none}.day-col.today{background:#fafbff}.time-slot{height:60px;border-bottom:1px solid #f1f5f9;box-sizing:border-box}.day-col.clickable .time-slot:hover{background:#f8fafc}.timed-event{position:absolute;min-height:20px;border:0;border-radius:6px;padding:3px 6px;overflow:hidden;cursor:pointer;box-sizing:border-box;border-left:3px solid transparent;display:flex;flex-direction:column;align-items:flex-start;gap:1px;box-shadow:0 1px 3px #00000014;text-align:left;font-family:inherit}.timed-event:hover{opacity:.85}.te-title{font-size:.6875rem;font-weight:600;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.te-time{font-size:.625rem;color:#475569}.agenda-view{overflow-y:auto}.agenda-section{display:block}.agenda-period-hdr{margin:0;padding:8px 12px;font-size:.75rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.06em;background:#f1f5f9;border-bottom:1px solid #e2e8f0;position:-webkit-sticky;position:sticky;top:0;z-index:1}.agenda-group{display:flex;border-bottom:1px solid #f1f5f9}.agenda-date-hdr{width:100px;flex-shrink:0;padding:16px 12px;display:flex;flex-direction:column;gap:4px;background:#f8fafc;border-right:2px solid #e2e8f0}.ag-dow{font-size:.6875rem;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}.ag-date{font-size:.8125rem;font-weight:600;color:#374151}.agenda-events{flex:1;display:flex;flex-direction:column;min-width:0}.agenda-event{display:flex;align-items:stretch;padding:10px 12px;cursor:pointer;border:0;border-bottom:1px solid #f8fafc;background:none;text-align:left;width:100%;font-family:inherit;transition:background .1s}.agenda-event:hover{background:#f8fafc}.agenda-event:last-child{border-bottom:none}.ae-color-bar{display:block;width:4px;border-radius:4px;flex-shrink:0;margin-right:12px}.ae-body{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.ae-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ae-title{font-size:.9375rem;font-weight:600;color:#111827}.ae-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ae-meta-item{font-size:.8125rem;color:#6b7280}.item-wrap{position:relative;display:block;min-width:0}.item-wrap.timed-wrap{position:absolute;min-height:20px}.timed-event.in-wrap{position:static;width:100%;height:100%}.item-actions{position:absolute;top:50%;right:2px;transform:translateY(-50%);display:inline-flex;gap:2px;opacity:0;pointer-events:none;z-index:2}.item-wrap:hover>.item-actions,.item-wrap:focus-within>.item-actions{opacity:1;pointer-events:auto}.agenda-wrap>.item-actions{right:12px}.item-action{min-width:20px;height:20px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;font-family:inherit;font-size:.6875rem;font-weight:600;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:4px;cursor:pointer}.item-action:hover:not(:disabled){background:#eff6ff;color:#1d4ed8}.item-action--danger{color:#b91c1c;border-color:#fecaca}.item-action--danger:hover:not(:disabled){background:#fef2f2;color:#991b1b}.item-action:disabled{opacity:.5;cursor:not-allowed}.item-action:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}@media(hover:none){.agenda-wrap>.item-actions{opacity:1;pointer-events:auto}}@media(pointer:coarse),(max-width:480px){.item-action{min-width:44px;min-height:44px}}@media(prefers-reduced-motion:reduce){.btn-nav,.btn-today,.filter-chip,.month-cell,.agenda-event{transition:none}}@media(pointer:coarse),(max-width:480px){.btn-nav,.btn-today,.filter-chip,.event-chip,.more-events,.allday-chip,.agenda-event{min-height:44px}.btn-nav{min-width:44px}}@media(max-width:768px){.cal-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 12px}.toolbar-left{flex:1 1 auto}.toolbar-right{flex:0 1 auto;min-width:0;max-width:100%}.toolbar-center{display:none}.period-label{font-size:1.625rem}.toolbar-right{justify-content:flex-end}.mobile-summary{display:block;margin-bottom:4px;flex-shrink:0}.mobile-summary:empty{display:none}.filter-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}.filter-main{flex-basis:100%}.month-view,.cal-skeleton,.outline-grid,.week-view{overflow-x:auto;-webkit-overflow-scrolling:touch}.month-grid,.skel-month-grid,.skel-week-grid,.skel-dow-row{min-width:560px}.month-row{flex-basis:80px}.month-cell{min-height:80px}.week-header,.allday-row,.week-body{min-width:640px}.agenda-date-hdr{width:76px;padding:12px 8px}.ae-title{font-size:.875rem}}@media(max-width:640px){.event-chip.stacked.has-head .chip-title{display:none}}@media(max-width:640px){.cal-toolbar{padding:14px}.period-label{font-size:1.375rem}.filter-bar{padding:10px 14px 12px}.filter-nav{width:100%;margin-left:0}.filter-nav .nav-controls{display:flex;width:100%}.filter-nav .btn-today{flex:1 1 auto}.chip-head{flex-wrap:wrap;row-gap:0;flex-shrink:1;min-width:0}.chip-time{white-space:normal;line-height:1.1;flex-shrink:1;min-width:0;overflow-wrap:anywhere}.event-chip.stacked{flex-wrap:nowrap}.month-view,.cal-skeleton,.outline-grid{overflow-x:hidden}.month-grid,.skel-month-grid,.skel-week-grid,.skel-dow-row{min-width:0}.month-dow{padding:8px 2px;font-size:.6875rem;letter-spacing:0}.month-row{flex-basis:72px}.month-cell{min-height:72px;padding:3px 2px 2px}.day-num{width:22px;height:22px;line-height:22px;font-size:.75rem;margin-bottom:2px}.cell-events{gap:1px}.event-chip{min-height:24px;padding:1px 3px;font-size:.625rem;gap:2px}.more-events{min-height:24px;padding:1px 3px;font-size:.625rem;white-space:normal;line-height:1.1;max-width:100%}}@media(max-width:480px){.dow-full{display:none}.dow-short{display:inline}}\n"],
1274
+ dependencies: [
1275
+ {
1276
+ kind: "component",
1277
+ type: BadgeComponent,
1278
+ selector: "ui-badge",
1279
+ inputs: [
1280
+ "label",
1281
+ "variant",
1282
+ "color"
1283
+ ]
1284
+ },
1285
+ {
1286
+ kind: "component",
1287
+ type: EmptyStateComponent,
1288
+ selector: "ui-empty-state",
1289
+ inputs: [
1290
+ "message",
1291
+ "title",
1292
+ "iconType"
1293
+ ]
1294
+ },
1295
+ {
1296
+ kind: "directive",
1297
+ type: NgTemplateOutlet,
1298
+ selector: "[ngTemplateOutlet]",
1299
+ inputs: [
1300
+ "ngTemplateOutletContext",
1301
+ "ngTemplateOutlet",
1302
+ "ngTemplateOutletInjector"
1303
+ ]
1304
+ },
1305
+ {
1306
+ kind: "component",
1307
+ type: PillTabsComponent,
1308
+ selector: "ui-pill-tabs",
1309
+ inputs: [
1310
+ "tabs",
1311
+ "activeKey",
1312
+ "ariaLabel",
1313
+ "name",
1314
+ "noWrap",
1315
+ "orientation",
1316
+ "controlsPanels",
1317
+ "showDescription",
1318
+ "headingLevel"
1319
+ ],
1320
+ outputs: ["tabChange"]
1321
+ },
1322
+ {
1323
+ kind: "component",
1324
+ type: SkeletonComponent,
1325
+ selector: "ui-skeleton",
1326
+ inputs: [
1327
+ "height",
1328
+ "width",
1329
+ "radius",
1330
+ "mb",
1331
+ "ariaLabel"
1332
+ ]
1333
+ },
1334
+ {
1335
+ kind: "component",
1336
+ type: ToastComponent,
1337
+ selector: "ui-toast",
1338
+ inputs: [
1339
+ "dismissible",
1340
+ "persistentLiveRegion",
1341
+ "queue",
1342
+ "countdown",
1343
+ "maxQueued",
1344
+ "countdownLabel",
1345
+ "queueLabel"
1346
+ ],
1347
+ outputs: ["action"]
1348
+ },
1349
+ {
1350
+ kind: "directive",
1351
+ type: TooltipDirective,
1352
+ selector: "[uiTooltip]",
1353
+ inputs: ["uiTooltip", "tooltipPosition"]
1354
+ }
1355
+ ],
1356
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1357
+ });
1358
+ }
1359
+ };
1360
+ i0.ɵɵngDeclareClassMetadata({
1361
+ minVersion: "12.0.0",
1362
+ version: "22.2.2",
1363
+ ngImport: i0,
1364
+ type: CalendarComponent,
1365
+ decorators: [{
1366
+ type: Component,
1367
+ args: [{
1368
+ selector: "ui-calendar",
1369
+ standalone: true,
1370
+ changeDetection: ChangeDetectionStrategy.OnPush,
1371
+ imports: [
1372
+ BadgeComponent,
1373
+ EmptyStateComponent,
1374
+ NgTemplateOutlet,
1375
+ PillTabsComponent,
1376
+ SkeletonComponent,
1377
+ ToastComponent,
1378
+ TooltipDirective
1379
+ ],
1380
+ template: `
1381
+ @if (showOutline()) {
1382
+ <!-- First load: an outline of the whole page (toolbar, filter bar, grid) built only from decorative skeletons. One status region. -->
1383
+ <div class="cal-outline" data-testid="calendar-skeleton" role="status" aria-busy="true" [attr.aria-label]="labels.t('calendar.loadingCalendar')">
1384
+ <div class="cal-header">
1385
+ <div class="cal-toolbar">
1386
+ <div class="toolbar-left">
1387
+ <div class="skel-period-wrap"><ui-skeleton class="skel-period" [height]="40" [radius]="8" /></div>
1388
+ @if (!filters().length) {
1389
+ <div class="nav-controls skel-nav-controls">
1390
+ <ui-skeleton class="skel-nav" [height]="38" width="38px" [radius]="10" />
1391
+ <ui-skeleton class="skel-nav" [height]="38" width="76px" [radius]="10" />
1392
+ <ui-skeleton class="skel-nav" [height]="38" width="38px" [radius]="10" />
1393
+ </div>
1394
+ }
1395
+ </div>
1396
+ <div class="toolbar-center"></div>
1397
+ <div class="toolbar-right">
1398
+ @if (viewTabs().length > 1) {
1399
+ <div class="skel-tabs">
1400
+ @for (t of viewTabs(); track t.key) { <ui-skeleton class="skel-tab" [height]="34" width="72px" [radius]="17" /> }
1401
+ </div>
1402
+ }
1403
+ @if (loadingActionSlots().length) {
1404
+ <div class="toolbar-actions">
1405
+ @for (a of loadingActionSlots(); track a) { <ui-skeleton class="skel-action" [height]="38" width="112px" [radius]="10" /> }
1406
+ </div>
1407
+ }
1408
+ </div>
1409
+ </div>
1410
+ @if (filters().length) {
1411
+ <div class="filter-bar">
1412
+ <div class="filter-main">
1413
+ @if (filterLabel()) { <ui-skeleton class="skel-filter-label" [height]="12" width="80px" [radius]="4" /> }
1414
+ <div class="filter-chips">
1415
+ <ui-skeleton class="skel-chip" [height]="28" width="56px" [radius]="14" />
1416
+ @for (f of filters(); track f.value) { <ui-skeleton class="skel-chip" [height]="28" width="88px" [radius]="14" /> }
1417
+ </div>
1418
+ </div>
1419
+ <div class="filter-nav">
1420
+ <div class="nav-controls skel-nav-controls">
1421
+ <ui-skeleton class="skel-nav" [height]="38" width="38px" [radius]="10" />
1422
+ <ui-skeleton class="skel-nav" [height]="38" width="76px" [radius]="10" />
1423
+ <ui-skeleton class="skel-nav" [height]="38" width="38px" [radius]="10" />
1424
+ </div>
1425
+ </div>
1426
+ </div>
1427
+ }
1428
+ </div>
1429
+ <div class="outline-grid">
1430
+ @if (view() !== 'agenda') {
1431
+ <div class="skel-dow-row">
1432
+ @for (d of weekDayLabels(); track d) { <div class="skel-dow"><ui-skeleton [height]="16" width="36px" [radius]="4" /></div> }
1433
+ </div>
1434
+ }
1435
+ @switch (view()) {
1436
+ @case ('month') {
1437
+ <div class="skel-month-grid">
1438
+ @for (i of skeletonCells; track i) {
1439
+ <div class="skel-cell">
1440
+ <ui-skeleton [height]="22" width="22px" [radius]="11" />
1441
+ @if (i % 3 === 0) { <ui-skeleton [height]="14" [radius]="3" /> }
1442
+ @if (i % 5 === 0) { <ui-skeleton [height]="14" width="72%" [radius]="3" /> }
1443
+ </div>
1444
+ }
1445
+ </div>
1446
+ }
1447
+ @case ('week') {
1448
+ <div class="skel-week-grid">
1449
+ @for (i of skeletonDays; track i) {
1450
+ <div class="skel-cell">
1451
+ <ui-skeleton [height]="14" [radius]="3" />
1452
+ @if (i % 2 === 0) { <ui-skeleton [height]="48" [radius]="6" /> }
1453
+ @if (i % 3 === 0) { <ui-skeleton [height]="32" width="72%" [radius]="6" /> }
1454
+ </div>
1455
+ }
1456
+ </div>
1457
+ }
1458
+ @default {
1459
+ <div class="skel-agenda">
1460
+ @for (i of skeletonRows; track i) {
1461
+ <div class="skel-row">
1462
+ <ui-skeleton class="skel-row-date" [height]="40" width="64px" [radius]="6" />
1463
+ <div class="skel-row-body"><ui-skeleton [height]="16" width="60%" [radius]="4" /><ui-skeleton [height]="12" width="35%" [radius]="4" /></div>
1464
+ </div>
1465
+ }
1466
+ </div>
1467
+ }
1468
+ }
1469
+ </div>
1470
+ </div>
1471
+ } @else {
1472
+ <!-- Previous / Today / Next: right-aligned in the filter row when there is one, else next to the period label -->
1473
+ <ng-template #navControls>
1474
+ <div class="nav-controls">
1475
+ <button type="button" class="btn-nav" (click)="navigate(-1)" [attr.aria-label]="labels.t('common.previous')">
1476
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
1477
+ </button>
1478
+ <button type="button" class="btn-today" (click)="goToday()">{{ labels.t('common.today') }}</button>
1479
+ <button type="button" class="btn-nav" (click)="navigate(1)" [attr.aria-label]="labels.t('common.next')">
1480
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>
1481
+ </button>
1482
+ </div>
1483
+ </ng-template>
1484
+
1485
+ <!-- Shared item markup: the same button is drawn on its own or, when itemActionsFn offers actions, inside a wrapper next to the action buttons
1486
+ (a button can never contain buttons). -->
1487
+ <ng-template #monthChip let-e>
1488
+ <button type="button" class="event-chip" [class.stacked]="chipLayout() === 'stacked'" [class.has-head]="!!(e.iconPath || chipTime(e))" [style.background]="e.bgColor" [style.borderLeftColor]="e.color"
1489
+ [attr.aria-label]="itemLabel(e)" [title]="e.tooltip || e.title"
1490
+ (click)="onItemClick(e, $event)">
1491
+ <span class="chip-head">
1492
+ @if (e.iconPath) {
1493
+ <svg class="chip-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path [attr.d]="e.iconPath"/></svg>
1494
+ }
1495
+ @if (chipTime(e); as t) { <span class="chip-time">{{ t }}</span> }
1496
+ </span>
1497
+ <span class="chip-title" [class.strike]="e.strike">{{ e.title }}</span>
1498
+ @if (e.tag) { <span class="chip-src">{{ e.tag }}</span> }
1499
+ </button>
1500
+ </ng-template>
1501
+ <ng-template #allDayChip let-e>
1502
+ <button type="button" class="allday-chip" [style.background]="e.bgColor" [style.borderLeftColor]="e.color"
1503
+ [attr.aria-label]="itemLabel(e)" [attr.title]="e.tooltip || null" (click)="onItemClick(e, $event)">{{ e.title }}</button>
1504
+ </ng-template>
1505
+ <ng-template #timedEvent let-t let-wrapped="wrapped">
1506
+ <button type="button" class="timed-event"
1507
+ [class.in-wrap]="wrapped" [style.top.px]="wrapped ? null : t.top" [style.height.px]="wrapped ? null : t.height"
1508
+ [style.left]="wrapped ? null : 'calc(' + (t.lane.lane / t.lane.lanes * 100) + '% + 2px)'"
1509
+ [style.width]="wrapped ? null : 'calc(' + (100 / t.lane.lanes) + '% - 4px)'"
1510
+ [style.background]="t.item.bgColor" [style.borderLeftColor]="t.item.color"
1511
+ [attr.aria-label]="itemLabel(t.item)" [attr.title]="t.item.tooltip || null" (click)="onItemClick(t.item, $event)">
1512
+ <span class="te-title" [class.strike]="t.item.strike">{{ t.item.title }}</span>
1513
+ @if (t.item.startTime) { <span class="te-time">{{ t.item.timeLabel || timeRange(t.item) }}</span> }
1514
+ </button>
1515
+ </ng-template>
1516
+ <ng-template #agendaRow let-e>
1517
+ <button type="button" class="agenda-event" [attr.aria-label]="e.ariaLabel || null" [attr.title]="e.tooltip || null" (click)="onItemClick(e, $event)">
1518
+ <span class="ae-color-bar" [style.background]="e.color"></span>
1519
+ <span class="ae-body">
1520
+ <span class="ae-top">
1521
+ <span class="ae-title" [class.strike]="e.strike">{{ e.title }}</span>
1522
+ @for (b of e.badges ?? []; track b.label) { <ui-badge [label]="b.label" [variant]="b.variant" /> }
1523
+ </span>
1524
+ @if (agendaMeta(e).length) {
1525
+ <span class="ae-meta">
1526
+ @for (m of agendaMeta(e); track $index) { <span class="ae-meta-item">{{ m }}</span> }
1527
+ </span>
1528
+ }
1529
+ </span>
1530
+ </button>
1531
+ </ng-template>
1532
+ <ng-template #agendaGroupTpl let-group>
1533
+ <div class="agenda-group">
1534
+ <div class="agenda-date-hdr">
1535
+ <span class="ag-dow">{{ agendaDow(group.dateStr) }}</span>
1536
+ <span class="ag-date">{{ agendaDate(group.dateStr) }}</span>
1537
+ @if (group.dateStr === todayStr()) { <ui-badge [label]="labels.t('common.today')" variant="blue" /> }
1538
+ </div>
1539
+ <div class="agenda-events">
1540
+ @for (e of group.items; track e.id) {
1541
+ @if (actionsFor(e).length) {
1542
+ <div class="item-wrap agenda-wrap">
1543
+ <ng-container *ngTemplateOutlet="agendaRow; context: { $implicit: e }" />
1544
+ <ng-container *ngTemplateOutlet="itemActionsTpl; context: { $implicit: e }" />
1545
+ </div>
1546
+ } @else {
1547
+ <ng-container *ngTemplateOutlet="agendaRow; context: { $implicit: e }" />
1548
+ }
1549
+ }
1550
+ </div>
1551
+ </div>
1552
+
1553
+ </ng-template>
1554
+ <ng-template #itemActionsTpl let-e>
1555
+ <span class="item-actions" role="group" [attr.aria-label]="labels.t('calendar.actionsFor', { name: e.title })" (keydown.escape)="onActionsEscape($event)">
1556
+ @for (a of actionsFor(e); track a.id) {
1557
+ <button type="button" class="item-action" [class.item-action--danger]="a.variant === 'danger'" [disabled]="!!a.disabled"
1558
+ [attr.aria-label]="a.label + ': ' + e.title" [attr.title]="a.label" (click)="onActionClick(e, a, $event)">
1559
+ @if (actionIconD(a); as d) {
1560
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path [attr.d]="d" /></svg>
1561
+ } @else {
1562
+ <span class="item-action-text">{{ a.label }}</span>
1563
+ }
1564
+ </button>
1565
+ }
1566
+ </span>
1567
+ </ng-template>
1568
+
1569
+ <div class="cal-header">
1570
+ <div class="cal-toolbar">
1571
+ <div class="toolbar-left">
1572
+ <h2 class="period-label" aria-live="polite" aria-atomic="true"><span class="pl-main">{{ periodParts().main }}</span>@if (periodParts().sub) {<span class="pl-sub">{{ ' ' + periodParts().sub }}</span>}</h2>
1573
+ @if (!filters().length) { <ng-container *ngTemplateOutlet="navControls" /> }
1574
+ </div>
1575
+ <div class="toolbar-center"><ng-content select="[calendar-summary]" /></div>
1576
+ <div class="toolbar-right">
1577
+ @if (viewTabs().length > 1) {
1578
+ <ui-pill-tabs [ariaLabel]="labels.t('calendar.calendarView')" name="ui-calendar-view" [tabs]="viewTabs()" [activeKey]="view()" (tabChange)="setView($any($event))" />
1579
+ }
1580
+ <div class="toolbar-actions"><ng-content select="[calendar-actions]" /></div>
1581
+ </div>
1582
+ </div>
1583
+
1584
+ @if (filters().length) {
1585
+ <div class="filter-bar">
1586
+ <div class="filter-main">
1587
+ @if (filterLabel()) { <div class="filter-bar-label">{{ filterLabel() }}</div> }
1588
+ <div class="filter-chips" role="group" [attr.aria-label]="filterLabel() || labels.t('calendar.filter')">
1589
+ <button type="button" class="filter-chip" [class.active-all]="!activeFilters().length" [attr.aria-pressed]="!activeFilters().length" (click)="clearFilters()">
1590
+ {{ labels.t('calendar.all') }}
1591
+ @if (showFilterCounts()) { <span class="chip-count">{{ items().length }}</span> }
1592
+ </button>
1593
+ @for (f of filters(); track f.value) {
1594
+ <button type="button" class="filter-chip"
1595
+ [class.active-type]="isFilterActive(f.value)"
1596
+ [attr.aria-pressed]="isFilterActive(f.value)"
1597
+ [style.--chip-color]="f.color"
1598
+ [style.--chip-bg]="f.bgColor ?? null"
1599
+ (click)="toggleFilter(f.value)">
1600
+ <span class="chip-dot" [style.background]="f.color" aria-hidden="true"></span>
1601
+ {{ f.label }}
1602
+ @if (showFilterCounts()) { <span class="chip-count">{{ typeCounts()[f.value] ?? 0 }}</span> }
1603
+ </button>
1604
+ }
1605
+ </div>
1606
+ </div>
1607
+ <div class="filter-nav"><ng-container *ngTemplateOutlet="navControls" /></div>
1608
+ </div>
1609
+ }
1610
+ </div>
1611
+
1612
+ @if (!loading()) {
1613
+ <div class="mobile-summary"><ng-content select="[calendar-summary-mobile]" /></div>
1614
+ }
1615
+
1616
+ @if (loading()) {
1617
+ <div class="cal-skeleton" aria-busy="true" [attr.aria-label]="labels.t('calendar.loadingCalendar')" role="status">
1618
+ <div class="skel-dow-row">
1619
+ @for (d of weekDayLabels(); track d) { <div class="skel-dow"><ui-skeleton [height]="16" width="36px" [radius]="4" /></div> }
1620
+ </div>
1621
+ <div class="skel-month-grid">
1622
+ @for (i of skeletonCells; track i) {
1623
+ <div class="skel-cell">
1624
+ <ui-skeleton [height]="22" width="22px" [radius]="11" />
1625
+ @if (i % 3 === 0) { <ui-skeleton [height]="14" [radius]="3" /> }
1626
+ @if (i % 5 === 0) { <ui-skeleton [height]="14" width="72%" [radius]="3" /> }
1627
+ </div>
1628
+ }
1629
+ </div>
1630
+ </div>
1631
+ } @else {
1632
+ @switch (view()) {
1633
+ @case ('month') {
1634
+ <div class="month-view">
1635
+ <div class="month-grid" role="grid" [attr.aria-label]="periodLabel()">
1636
+ <div class="month-header" role="row">
1637
+ @for (d of weekDayLabels(); track d; let i = $index) {
1638
+ <div class="month-dow" role="columnheader" [attr.aria-label]="weekDayNames()[i]">
1639
+ <span class="dow-full" aria-hidden="true">{{ d }}</span><span class="dow-short" aria-hidden="true">{{ d.slice(0, 2) }}</span>
1640
+ </div>
1641
+ }
1642
+ </div>
1643
+ @for (row of monthRows(); track row.key) {
1644
+ <div class="month-row" role="row">
1645
+ @for (c of row.cells; track c.day.dateStr) {
1646
+ <div class="month-cell" role="gridcell"
1647
+ [attr.data-date]="c.day.dateStr"
1648
+ [class.other-month]="!c.day.isCurrentMonth" [class.today]="c.day.isToday"
1649
+ [class.clickable]="c.clickable"
1650
+ [attr.tabindex]="c.day.dateStr === focusDate() ? 0 : -1"
1651
+ [attr.aria-label]="c.label"
1652
+ [attr.data-level]="c.level"
1653
+ [uiTooltip]="c.tooltip"
1654
+ [attr.aria-current]="c.day.isToday ? 'date' : null"
1655
+ (click)="onDateClick(c.day.dateStr)"
1656
+ (focus)="focusedDate.set(c.day.dateStr)"
1657
+ (keydown)="onCellKey($event, c.day.dateStr)">
1658
+ <span class="day-num" [class.today-badge]="c.day.isToday">{{ c.day.dayNum }}</span>
1659
+ <div class="cell-events">
1660
+ @for (e of c.visible; track e.id) {
1661
+ @if (actionsFor(e).length) {
1662
+ <div class="item-wrap">
1663
+ <ng-container *ngTemplateOutlet="monthChip; context: { $implicit: e }" />
1664
+ <ng-container *ngTemplateOutlet="itemActionsTpl; context: { $implicit: e }" />
1665
+ </div>
1666
+ } @else {
1667
+ <ng-container *ngTemplateOutlet="monthChip; context: { $implicit: e }" />
1668
+ }
1669
+ }
1670
+ @if (c.overflow > 0) {
1671
+ <button type="button" class="more-events" (click)="onMoreClick(c.day.dateStr, c.items, $event)">{{ labels.t('calendar.moreCount', { count: c.overflow }) }}</button>
1672
+ }
1673
+ </div>
1674
+ </div>
1675
+ }
1676
+ </div>
1677
+ }
1678
+ </div>
1679
+ </div>
1680
+ }
1681
+ @case ('week') {
1682
+ <div class="week-view">
1683
+ <div class="week-header">
1684
+ <div class="time-gutter"></div>
1685
+ @for (col of weekColumns(); track col.day.dateStr) {
1686
+ <div class="week-day-hdr" [class.today]="col.day.isToday" [attr.data-level]="col.level" [uiTooltip]="col.tooltip">
1687
+ <span class="wdh-dow">{{ dowLabel(col.day.dateStr) }}</span>
1688
+ <span class="wdh-num" [class.today-badge]="col.day.isToday">{{ col.day.dayNum }}</span>
1689
+ @if (col.level) { <span class="deco-sr">{{ levelText(col.level) }}</span> }
1690
+ </div>
1691
+ }
1692
+ </div>
1693
+ <div class="allday-row">
1694
+ <div class="time-gutter allday-label">{{ labels.t('calendar.allDay') }}</div>
1695
+ @for (col of weekColumns(); track col.day.dateStr) {
1696
+ <div class="allday-cell" [class.clickable]="col.clickable" (click)="onDateClick(col.day.dateStr)">
1697
+ @if (col.clickable) {
1698
+ <button type="button" class="slot-add" [attr.aria-label]="labels.t('calendar.addAllDayEventOn', { day: col.label })" (click)="onAddAllDay(col.day.dateStr, $event)">{{ labels.t('calendar.addButton') }}</button>
1699
+ }
1700
+ @for (e of col.allDay; track e.id) {
1701
+ @if (actionsFor(e).length) {
1702
+ <div class="item-wrap">
1703
+ <ng-container *ngTemplateOutlet="allDayChip; context: { $implicit: e }" />
1704
+ <ng-container *ngTemplateOutlet="itemActionsTpl; context: { $implicit: e }" />
1705
+ </div>
1706
+ } @else {
1707
+ <ng-container *ngTemplateOutlet="allDayChip; context: { $implicit: e }" />
1708
+ }
1709
+ }
1710
+ </div>
1711
+ }
1712
+ </div>
1713
+ <div class="week-body">
1714
+ <div class="time-col">
1715
+ @for (h of hours(); track h) { <div class="time-slot-label">{{ formatHour(h) }}</div> }
1716
+ </div>
1717
+ @for (col of weekColumns(); track col.day.dateStr) {
1718
+ <div class="day-col" [class.today]="col.day.isToday" [class.clickable]="col.clickable" (click)="onSlotClick(col.day.dateStr, $event)">
1719
+ @if (col.clickable) {
1720
+ <button type="button" class="slot-add" [attr.aria-label]="labels.t('calendar.addEventOn', { day: col.label })" (click)="onAddTimed(col.day.dateStr, $event)">{{ labels.t('calendar.addButton') }}</button>
1721
+ }
1722
+ @for (h of hours(); track h) { <div class="time-slot"></div> }
1723
+ @for (t of col.timed; track t.item.id) {
1724
+ @if (actionsFor(t.item).length) {
1725
+ <div class="item-wrap timed-wrap" [style.top.px]="t.top" [style.height.px]="t.height"
1726
+ [style.left]="'calc(' + (t.lane.lane / t.lane.lanes * 100) + '% + 2px)'"
1727
+ [style.width]="'calc(' + (100 / t.lane.lanes) + '% - 4px)'">
1728
+ <ng-container *ngTemplateOutlet="timedEvent; context: { $implicit: t, wrapped: true }" />
1729
+ <ng-container *ngTemplateOutlet="itemActionsTpl; context: { $implicit: t.item }" />
1730
+ </div>
1731
+ } @else {
1732
+ <ng-container *ngTemplateOutlet="timedEvent; context: { $implicit: t, wrapped: false }" />
1733
+ }
1734
+ }
1735
+ </div>
1736
+ }
1737
+ </div>
1738
+ </div>
1739
+ }
1740
+ @case ('agenda') {
1741
+ <div class="agenda-view">
1742
+ @if (agendaGroups().length === 0) {
1743
+ <ui-empty-state iconType="task" [message]="emptyMessage()" />
1744
+ }
1745
+ @if (agendaSections(); as sections) {
1746
+ @for (s of sections; track $index) {
1747
+ @if (s.label) {
1748
+ <section class="agenda-section" [attr.aria-labelledby]="s.id">
1749
+ <h3 class="agenda-period-hdr" [id]="s.id">{{ s.label }}</h3>
1750
+ @for (group of s.groups; track group.dateStr) {
1751
+ <ng-container *ngTemplateOutlet="agendaGroupTpl; context: { $implicit: group }" />
1752
+ }
1753
+ </section>
1754
+ } @else {
1755
+ @for (group of s.groups; track group.dateStr) {
1756
+ <ng-container *ngTemplateOutlet="agendaGroupTpl; context: { $implicit: group }" />
1757
+ }
1758
+ }
1759
+ }
1760
+ } @else {
1761
+ @for (group of agendaGroups(); track group.dateStr) {
1762
+ <ng-container *ngTemplateOutlet="agendaGroupTpl; context: { $implicit: group }" />
1763
+ }
1764
+ }
1765
+ </div>
1766
+ }
1767
+ }
1768
+ }
1769
+ }
1770
+ <ui-toast />
1771
+ `,
1772
+ styles: [":host{display:flex;flex-direction:column;gap:0;height:100%;min-height:0}.cal-header{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 2px #0f172a0a;margin-bottom:12px;flex-shrink:0}.cal-toolbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:18px 20px;gap:16px;flex-shrink:0}.toolbar-left{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;column-gap:20px;row-gap:8px;min-width:0}.toolbar-center{display:flex;align-items:center;justify-content:center;gap:10px}.toolbar-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:nowrap}.toolbar-actions:empty{display:none}ui-pill-tabs+.toolbar-actions:not(:empty){margin-left:4px;padding-left:12px;border-left:1px solid #e2e8f0;align-self:stretch}@media(max-width:480px){.toolbar-actions{flex-wrap:wrap}}.period-label{font-size:2rem;font-weight:800;line-height:1.15;letter-spacing:-.025em;color:#0f172a;margin:0;min-width:0}.pl-sub{font-weight:600;color:#64748b}.nav-controls{display:inline-flex;align-items:center}.nav-controls>*+*{margin-left:-1px}.btn-nav{width:38px;height:38px;border:1px solid #cbd5e1;background:#fff;font-family:inherit;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#475569;transition:background .12s,color .12s}.nav-controls>.btn-nav:first-child{border-radius:10px 0 0 10px}.nav-controls>.btn-nav:last-child{border-radius:0 10px 10px 0}.btn-today{padding:0 18px;height:38px;border:1px solid #cbd5e1;background:#fff;border-radius:0;font-family:inherit;position:relative;font-size:.9375rem;font-weight:600;color:#1d4ed8;cursor:pointer;transition:background .12s}.btn-nav:hover,.btn-today:hover{background:#eff6ff;color:#1d4ed8;z-index:1}.btn-nav:active,.btn-today:active{background:#dbeafe}.btn-nav:focus-visible,.btn-today:focus-visible,.filter-chip:focus-visible,.event-chip:focus-visible,.more-events:focus-visible,.allday-chip:focus-visible,.timed-event:focus-visible,.agenda-event:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.month-cell:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.slot-add:focus,.slot-add:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}.mobile-summary{display:none}.filter-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:12px 20px 14px;border-top:1px solid #eef2f7;background:#f8fafc;border-radius:0 0 12px 12px;flex-shrink:0}.filter-main{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-width:0}.filter-nav{margin-left:auto;flex-shrink:0}.filter-bar-label{font-size:.6875rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.06em}.filter-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.filter-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:20px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#475569;cursor:pointer;transition:all .12s;white-space:nowrap;font-family:inherit}.filter-chip:hover{border-color:#cbd5e1;background:#f8fafc}.filter-chip.active-all{background:#1e293b;color:#fff;border-color:#1e293b}.filter-chip.active-all .chip-count{background:#fff3;color:#fff}.filter-chip.active-type{background:var(--chip-bg, #f1f5f9);color:#1e293b;border-color:var(--chip-color);font-weight:600}.filter-chip.active-type .chip-count{background:var(--chip-color);color:#fff}.chip-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.chip-count{font-size:.6875rem;font-weight:700;background:#f1f5f9;background:color-mix(in srgb,var(--chip-color, #64748b) 14%,#fff);color:#475569;padding:1px 8px;border-radius:999px;min-width:18px;text-align:center;box-sizing:border-box}.cal-skeleton,.outline-grid,.month-view,.week-view,.agenda-view{flex:1;display:flex;flex-direction:column;min-height:0;background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.skel-dow-row{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:12px 10px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.skel-dow{display:flex;justify-content:center}.skel-month-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,minmax(80px,1fr));flex:1}.skel-cell{border-right:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;padding:8px 6px;display:flex;flex-direction:column;gap:6px}.skel-cell:nth-child(7n){border-right:none}.cal-outline{flex:1;display:flex;flex-direction:column;min-height:0}.cal-outline ui-skeleton{display:block;flex-shrink:0}.skel-period-wrap{width:240px;max-width:100%;min-width:0}.skel-nav-controls{gap:2px}.skel-nav-controls>*+*{margin-left:0}.skel-tabs{display:flex;align-items:center;gap:6px}.skel-tabs+.toolbar-actions:not(:empty){margin-left:4px;padding-left:12px;border-left:1px solid #e2e8f0;align-self:stretch}.skel-week-grid{display:grid;grid-template-columns:repeat(7,1fr);flex:1;min-height:360px}.skel-agenda{display:flex;flex-direction:column;flex:1}.skel-row{display:flex;align-items:center;gap:16px;padding:16px 12px;border-bottom:1px solid #f1f5f9}.skel-row-body{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}.month-grid{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto}.month-header{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;position:sticky;top:0;z-index:1}.month-dow{padding:10px 8px;font-size:.75rem;font-weight:600;color:#6b7280;text-align:center;text-transform:uppercase;letter-spacing:.04em}.dow-short{display:none}.month-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));flex:1 0 120px}.month-cell{border-right:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;padding:6px 6px 4px;min-height:120px;transition:background .1s;min-width:0;box-sizing:border-box}.month-cell.clickable{cursor:pointer}.month-cell.clickable:hover{background:#f8fafc}.month-cell:nth-child(7n){border-right:none}.month-cell.other-month{background:#fafafa}.month-cell.other-month .day-num{color:#64748b}.month-cell[data-level=low]{background:#f0fdf4;box-shadow:inset 0 3px #86efac}.month-cell[data-level=medium]{background:#fefce8;box-shadow:inset 0 3px #facc15}.month-cell[data-level=high]{background:#fff7ed;box-shadow:inset 0 3px #fb923c}.month-cell[data-level=critical]{background:#fef2f2;box-shadow:inset 0 3px #ef4444}.month-cell.other-month[data-level] .day-num{color:#475569}.month-cell.today{background:#eff6ff}.day-num{display:inline-block;width:26px;height:26px;line-height:26px;text-align:center;border-radius:50%;font-size:.8125rem;font-weight:500;color:#374151;margin-bottom:4px}.today-badge{background:#2563eb;color:#fff;font-weight:700}.cell-events{display:flex;flex-direction:column;gap:2px}.event-chip{display:flex;align-items:center;gap:3px;padding:2px 6px;width:100%;box-sizing:border-box;text-align:left;font-family:inherit;border:0;border-radius:4px;border-left:3px solid transparent;font-size:.6875rem;font-weight:500;cursor:pointer;overflow:hidden}.event-chip:hover{opacity:.85}.event-chip.stacked{flex-direction:column;align-items:flex-start;gap:0}.chip-head{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}.chip-icon{flex-shrink:0}.chip-time{font-weight:700;flex-shrink:0;color:#1e293b}.chip-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1e293b;min-width:0;max-width:100%}.strike{text-decoration:line-through}.chip-src{font-size:.625rem;font-weight:700;margin-left:auto;flex-shrink:0;color:#1e293b}.more-events{font-size:.6875rem;color:#2563eb;font-weight:600;cursor:pointer;padding:1px 6px;border:0;background:none;text-align:left;font-family:inherit}.more-events:hover{text-decoration:underline}.week-view{overflow:auto}.week-header{display:grid;grid-template-columns:60px repeat(7,1fr);border-bottom:1px solid #e2e8f0;background:#f8fafc;flex-shrink:0;overflow-y:scroll}.time-gutter{border-right:1px solid #e2e8f0}.week-day-hdr{display:flex;flex-direction:column;align-items:center;padding:10px 4px;border-right:1px solid #f1f5f9}.week-day-hdr[data-level=low]{background:#f0fdf4;box-shadow:inset 0 3px #86efac}.week-day-hdr[data-level=medium]{background:#fefce8;box-shadow:inset 0 3px #facc15}.week-day-hdr[data-level=high]{background:#fff7ed;box-shadow:inset 0 3px #fb923c}.week-day-hdr[data-level=critical]{background:#fef2f2;box-shadow:inset 0 3px #ef4444}.week-day-hdr.today{background:#eff6ff}.deco-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}.week-day-hdr:last-child{border-right:none}.wdh-dow{font-size:.6875rem;font-weight:600;color:#6b7280;text-transform:uppercase}.wdh-num{width:28px;height:28px;line-height:28px;text-align:center;border-radius:50%;font-size:.9375rem;font-weight:600;color:#374151;margin-top:2px}.wdh-num.today-badge{background:#2563eb;color:#fff;font-weight:700}.allday-row{display:grid;grid-template-columns:60px repeat(7,1fr);border-bottom:1px solid #e2e8f0;min-height:32px;flex-shrink:0;overflow-y:scroll}.allday-label{font-size:.625rem;color:#64748b;font-weight:600;text-transform:uppercase;display:flex;align-items:center;justify-content:center}.slot-add{position:absolute;top:2px;left:2px;z-index:3;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap;font-family:inherit}.slot-add:focus,.slot-add:focus-visible{width:auto;height:auto;padding:2px 8px;clip-path:none;background:#1e293b;color:#fff;border-radius:4px;font-size:.75rem;font-weight:600}.allday-cell{position:relative;border-right:1px solid #f1f5f9;padding:3px 4px;display:flex;flex-direction:column;gap:2px;min-width:0}.allday-cell.clickable{cursor:pointer}.allday-cell:last-child{border-right:none}.allday-chip{padding:2px 6px;border:0;border-radius:4px;border-left:3px solid transparent;font-size:.6875rem;font-weight:500;color:#1e293b;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-family:inherit}.allday-chip:hover{opacity:.85}.week-body{display:grid;grid-template-columns:60px repeat(7,1fr);flex:1;overflow-y:scroll}.time-col{display:flex;flex-direction:column;border-right:1px solid #e2e8f0;flex-shrink:0}.time-slot-label{height:60px;display:flex;align-items:flex-start;justify-content:flex-end;padding:4px 8px 0 0;font-size:.6875rem;color:#64748b;font-weight:500;border-bottom:1px solid #f1f5f9;flex-shrink:0;box-sizing:border-box}.day-col{position:relative;border-right:1px solid #f1f5f9;min-width:0}.day-col.clickable{cursor:pointer}.day-col:last-child{border-right:none}.day-col.today{background:#fafbff}.time-slot{height:60px;border-bottom:1px solid #f1f5f9;box-sizing:border-box}.day-col.clickable .time-slot:hover{background:#f8fafc}.timed-event{position:absolute;min-height:20px;border:0;border-radius:6px;padding:3px 6px;overflow:hidden;cursor:pointer;box-sizing:border-box;border-left:3px solid transparent;display:flex;flex-direction:column;align-items:flex-start;gap:1px;box-shadow:0 1px 3px #00000014;text-align:left;font-family:inherit}.timed-event:hover{opacity:.85}.te-title{font-size:.6875rem;font-weight:600;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.te-time{font-size:.625rem;color:#475569}.agenda-view{overflow-y:auto}.agenda-section{display:block}.agenda-period-hdr{margin:0;padding:8px 12px;font-size:.75rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.06em;background:#f1f5f9;border-bottom:1px solid #e2e8f0;position:-webkit-sticky;position:sticky;top:0;z-index:1}.agenda-group{display:flex;border-bottom:1px solid #f1f5f9}.agenda-date-hdr{width:100px;flex-shrink:0;padding:16px 12px;display:flex;flex-direction:column;gap:4px;background:#f8fafc;border-right:2px solid #e2e8f0}.ag-dow{font-size:.6875rem;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}.ag-date{font-size:.8125rem;font-weight:600;color:#374151}.agenda-events{flex:1;display:flex;flex-direction:column;min-width:0}.agenda-event{display:flex;align-items:stretch;padding:10px 12px;cursor:pointer;border:0;border-bottom:1px solid #f8fafc;background:none;text-align:left;width:100%;font-family:inherit;transition:background .1s}.agenda-event:hover{background:#f8fafc}.agenda-event:last-child{border-bottom:none}.ae-color-bar{display:block;width:4px;border-radius:4px;flex-shrink:0;margin-right:12px}.ae-body{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.ae-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ae-title{font-size:.9375rem;font-weight:600;color:#111827}.ae-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ae-meta-item{font-size:.8125rem;color:#6b7280}.item-wrap{position:relative;display:block;min-width:0}.item-wrap.timed-wrap{position:absolute;min-height:20px}.timed-event.in-wrap{position:static;width:100%;height:100%}.item-actions{position:absolute;top:50%;right:2px;transform:translateY(-50%);display:inline-flex;gap:2px;opacity:0;pointer-events:none;z-index:2}.item-wrap:hover>.item-actions,.item-wrap:focus-within>.item-actions{opacity:1;pointer-events:auto}.agenda-wrap>.item-actions{right:12px}.item-action{min-width:20px;height:20px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;font-family:inherit;font-size:.6875rem;font-weight:600;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:4px;cursor:pointer}.item-action:hover:not(:disabled){background:#eff6ff;color:#1d4ed8}.item-action--danger{color:#b91c1c;border-color:#fecaca}.item-action--danger:hover:not(:disabled){background:#fef2f2;color:#991b1b}.item-action:disabled{opacity:.5;cursor:not-allowed}.item-action:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}@media(hover:none){.agenda-wrap>.item-actions{opacity:1;pointer-events:auto}}@media(pointer:coarse),(max-width:480px){.item-action{min-width:44px;min-height:44px}}@media(prefers-reduced-motion:reduce){.btn-nav,.btn-today,.filter-chip,.month-cell,.agenda-event{transition:none}}@media(pointer:coarse),(max-width:480px){.btn-nav,.btn-today,.filter-chip,.event-chip,.more-events,.allday-chip,.agenda-event{min-height:44px}.btn-nav{min-width:44px}}@media(max-width:768px){.cal-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 12px}.toolbar-left{flex:1 1 auto}.toolbar-right{flex:0 1 auto;min-width:0;max-width:100%}.toolbar-center{display:none}.period-label{font-size:1.625rem}.toolbar-right{justify-content:flex-end}.mobile-summary{display:block;margin-bottom:4px;flex-shrink:0}.mobile-summary:empty{display:none}.filter-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}.filter-main{flex-basis:100%}.month-view,.cal-skeleton,.outline-grid,.week-view{overflow-x:auto;-webkit-overflow-scrolling:touch}.month-grid,.skel-month-grid,.skel-week-grid,.skel-dow-row{min-width:560px}.month-row{flex-basis:80px}.month-cell{min-height:80px}.week-header,.allday-row,.week-body{min-width:640px}.agenda-date-hdr{width:76px;padding:12px 8px}.ae-title{font-size:.875rem}}@media(max-width:640px){.event-chip.stacked.has-head .chip-title{display:none}}@media(max-width:640px){.cal-toolbar{padding:14px}.period-label{font-size:1.375rem}.filter-bar{padding:10px 14px 12px}.filter-nav{width:100%;margin-left:0}.filter-nav .nav-controls{display:flex;width:100%}.filter-nav .btn-today{flex:1 1 auto}.chip-head{flex-wrap:wrap;row-gap:0;flex-shrink:1;min-width:0}.chip-time{white-space:normal;line-height:1.1;flex-shrink:1;min-width:0;overflow-wrap:anywhere}.event-chip.stacked{flex-wrap:nowrap}.month-view,.cal-skeleton,.outline-grid{overflow-x:hidden}.month-grid,.skel-month-grid,.skel-week-grid,.skel-dow-row{min-width:0}.month-dow{padding:8px 2px;font-size:.6875rem;letter-spacing:0}.month-row{flex-basis:72px}.month-cell{min-height:72px;padding:3px 2px 2px}.day-num{width:22px;height:22px;line-height:22px;font-size:.75rem;margin-bottom:2px}.cell-events{gap:1px}.event-chip{min-height:24px;padding:1px 3px;font-size:.625rem;gap:2px}.more-events{min-height:24px;padding:1px 3px;font-size:.625rem;white-space:normal;line-height:1.1;max-width:100%}}@media(max-width:480px){.dow-full{display:none}.dow-short{display:inline}}\n"]
1773
+ }]
1774
+ }],
1775
+ ctorParameters: () => [],
1776
+ propDecorators: {
1777
+ items: [{
1778
+ type: i0.Input,
1779
+ args: [{
1780
+ isSignal: true,
1781
+ alias: "items",
1782
+ required: false
1783
+ }]
1784
+ }],
1785
+ loading: [{
1786
+ type: i0.Input,
1787
+ args: [{
1788
+ isSignal: true,
1789
+ alias: "loading",
1790
+ required: false
1791
+ }]
1792
+ }],
1793
+ loadingActions: [{
1794
+ type: i0.Input,
1795
+ args: [{
1796
+ isSignal: true,
1797
+ alias: "loadingActions",
1798
+ required: false
1799
+ }]
1800
+ }],
1801
+ view: [{
1802
+ type: i0.Input,
1803
+ args: [{
1804
+ isSignal: true,
1805
+ alias: "view",
1806
+ required: false
1807
+ }]
1808
+ }, {
1809
+ type: i0.Output,
1810
+ args: ["viewChange"]
1811
+ }],
1812
+ views: [{
1813
+ type: i0.Input,
1814
+ args: [{
1815
+ isSignal: true,
1816
+ alias: "views",
1817
+ required: false
1818
+ }]
1819
+ }],
1820
+ anchorDate: [{
1821
+ type: i0.Input,
1822
+ args: [{
1823
+ isSignal: true,
1824
+ alias: "anchorDate",
1825
+ required: false
1826
+ }]
1827
+ }, {
1828
+ type: i0.Output,
1829
+ args: ["anchorDateChange"]
1830
+ }],
1831
+ filters: [{
1832
+ type: i0.Input,
1833
+ args: [{
1834
+ isSignal: true,
1835
+ alias: "filters",
1836
+ required: false
1837
+ }]
1838
+ }],
1839
+ filterLabel: [{
1840
+ type: i0.Input,
1841
+ args: [{
1842
+ isSignal: true,
1843
+ alias: "filterLabel",
1844
+ required: false
1845
+ }]
1846
+ }],
1847
+ filterMode: [{
1848
+ type: i0.Input,
1849
+ args: [{
1850
+ isSignal: true,
1851
+ alias: "filterMode",
1852
+ required: false
1853
+ }]
1854
+ }],
1855
+ activeFilters: [{
1856
+ type: i0.Input,
1857
+ args: [{
1858
+ isSignal: true,
1859
+ alias: "activeFilters",
1860
+ required: false
1861
+ }]
1862
+ }, {
1863
+ type: i0.Output,
1864
+ args: ["activeFiltersChange"]
1865
+ }],
1866
+ showFilterCounts: [{
1867
+ type: i0.Input,
1868
+ args: [{
1869
+ isSignal: true,
1870
+ alias: "showFilterCounts",
1871
+ required: false
1872
+ }]
1873
+ }],
1874
+ canCreate: [{
1875
+ type: i0.Input,
1876
+ args: [{
1877
+ isSignal: true,
1878
+ alias: "canCreate",
1879
+ required: false
1880
+ }]
1881
+ }],
1882
+ disablePast: [{
1883
+ type: i0.Input,
1884
+ args: [{
1885
+ isSignal: true,
1886
+ alias: "disablePast",
1887
+ required: false
1888
+ }]
1889
+ }],
1890
+ today: [{
1891
+ type: i0.Input,
1892
+ args: [{
1893
+ isSignal: true,
1894
+ alias: "today",
1895
+ required: false
1896
+ }]
1897
+ }],
1898
+ maxVisible: [{
1899
+ type: i0.Input,
1900
+ args: [{
1901
+ isSignal: true,
1902
+ alias: "maxVisible",
1903
+ required: false
1904
+ }]
1905
+ }],
1906
+ chipLayout: [{
1907
+ type: i0.Input,
1908
+ args: [{
1909
+ isSignal: true,
1910
+ alias: "chipLayout",
1911
+ required: false
1912
+ }]
1913
+ }],
1914
+ sortByTime: [{
1915
+ type: i0.Input,
1916
+ args: [{
1917
+ isSignal: true,
1918
+ alias: "sortByTime",
1919
+ required: false
1920
+ }]
1921
+ }],
1922
+ startHour: [{
1923
+ type: i0.Input,
1924
+ args: [{
1925
+ isSignal: true,
1926
+ alias: "startHour",
1927
+ required: false
1928
+ }]
1929
+ }],
1930
+ endHour: [{
1931
+ type: i0.Input,
1932
+ args: [{
1933
+ isSignal: true,
1934
+ alias: "endHour",
1935
+ required: false
1936
+ }]
1937
+ }],
1938
+ emptyMessageInput: [{
1939
+ type: i0.Input,
1940
+ args: [{
1941
+ isSignal: true,
1942
+ alias: "emptyMessage",
1943
+ required: false
1944
+ }]
1945
+ }],
1946
+ dayLabelFn: [{
1947
+ type: i0.Input,
1948
+ args: [{
1949
+ isSignal: true,
1950
+ alias: "dayLabelFn",
1951
+ required: false
1952
+ }]
1953
+ }],
1954
+ dayDecorationFn: [{
1955
+ type: i0.Input,
1956
+ args: [{
1957
+ isSignal: true,
1958
+ alias: "dayDecorationFn",
1959
+ required: false
1960
+ }]
1961
+ }],
1962
+ itemActionsFn: [{
1963
+ type: i0.Input,
1964
+ args: [{
1965
+ isSignal: true,
1966
+ alias: "itemActionsFn",
1967
+ required: false
1968
+ }]
1969
+ }],
1970
+ agendaGroupFn: [{
1971
+ type: i0.Input,
1972
+ args: [{
1973
+ isSignal: true,
1974
+ alias: "agendaGroupFn",
1975
+ required: false
1976
+ }]
1977
+ }],
1978
+ rangeChange: [{
1979
+ type: i0.Output,
1980
+ args: ["rangeChange"]
1981
+ }],
1982
+ itemClick: [{
1983
+ type: i0.Output,
1984
+ args: ["itemClick"]
1985
+ }],
1986
+ dateClick: [{
1987
+ type: i0.Output,
1988
+ args: ["dateClick"]
1989
+ }],
1990
+ slotClick: [{
1991
+ type: i0.Output,
1992
+ args: ["slotClick"]
1993
+ }],
1994
+ moreClick: [{
1995
+ type: i0.Output,
1996
+ args: ["moreClick"]
1997
+ }],
1998
+ itemAction: [{
1999
+ type: i0.Output,
2000
+ args: ["itemAction"]
2001
+ }]
2002
+ }
2003
+ });
2004
+ export { CalendarComponent, periodGroup };
2005
+
2006
+ //# sourceMappingURL=forgeroute-ui-calendar.mjs.map