@semantic-components/ui 0.68.0 → 0.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/esm2022/lib/components/accordion/accordion-body.js +3 -3
  2. package/esm2022/lib/components/accordion/accordion-content.js +3 -3
  3. package/esm2022/lib/components/accordion/accordion-group.js +3 -3
  4. package/esm2022/lib/components/accordion/accordion-header.js +3 -3
  5. package/esm2022/lib/components/accordion/accordion-item.js +3 -3
  6. package/esm2022/lib/components/accordion/accordion-panel.js +3 -3
  7. package/esm2022/lib/components/accordion/accordion-trigger.js +4 -4
  8. package/esm2022/lib/components/accordion/accordion-trigger.js.map +1 -1
  9. package/esm2022/lib/components/alert/alert-action.js +3 -3
  10. package/esm2022/lib/components/alert/alert-description.js +3 -3
  11. package/esm2022/lib/components/alert/alert-title.js +3 -3
  12. package/esm2022/lib/components/alert/alert.js +3 -3
  13. package/esm2022/lib/components/alert-dialog/alert-dialog-action.js +3 -3
  14. package/esm2022/lib/components/alert-dialog/alert-dialog-cancel.js +3 -3
  15. package/esm2022/lib/components/alert-dialog/alert-dialog-description.js +3 -3
  16. package/esm2022/lib/components/alert-dialog/alert-dialog-footer.js +3 -3
  17. package/esm2022/lib/components/alert-dialog/alert-dialog-header.js +3 -3
  18. package/esm2022/lib/components/alert-dialog/alert-dialog-media.js +3 -3
  19. package/esm2022/lib/components/alert-dialog/alert-dialog-portal.js +3 -3
  20. package/esm2022/lib/components/alert-dialog/alert-dialog-provider.js +3 -3
  21. package/esm2022/lib/components/alert-dialog/alert-dialog-title.js +3 -3
  22. package/esm2022/lib/components/alert-dialog/alert-dialog-trigger.js +3 -3
  23. package/esm2022/lib/components/alert-dialog/alert-dialog.js +3 -3
  24. package/esm2022/lib/components/aspect-ratio/aspect-ratio.js +3 -3
  25. package/esm2022/lib/components/avatar/avatar-badge.js +3 -3
  26. package/esm2022/lib/components/avatar/avatar-fallback.js +3 -3
  27. package/esm2022/lib/components/avatar/avatar-group-count.js +3 -3
  28. package/esm2022/lib/components/avatar/avatar-group.js +3 -3
  29. package/esm2022/lib/components/avatar/avatar-image.js +3 -3
  30. package/esm2022/lib/components/avatar/avatar.js +3 -3
  31. package/esm2022/lib/components/backdrop/backdrop.js +3 -3
  32. package/esm2022/lib/components/badge/badge.js +3 -3
  33. package/esm2022/lib/components/breadcrumb/breadcrumb-ellipsis.js +4 -4
  34. package/esm2022/lib/components/breadcrumb/breadcrumb-item.js +3 -3
  35. package/esm2022/lib/components/breadcrumb/breadcrumb-link.js +3 -3
  36. package/esm2022/lib/components/breadcrumb/breadcrumb-list.js +4 -4
  37. package/esm2022/lib/components/breadcrumb/breadcrumb-list.js.map +1 -1
  38. package/esm2022/lib/components/breadcrumb/breadcrumb-page.js +3 -3
  39. package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js +4 -4
  40. package/esm2022/lib/components/breadcrumb/breadcrumb.js +3 -3
  41. package/esm2022/lib/components/button/button.js +3 -3
  42. package/esm2022/lib/components/button-group/button-group-separator.js +3 -3
  43. package/esm2022/lib/components/button-group/button-group-text.js +3 -3
  44. package/esm2022/lib/components/button-group/button-group.js +3 -3
  45. package/esm2022/lib/components/calendar/calendar-day-view.js +6 -6
  46. package/esm2022/lib/components/calendar/calendar-day-view.js.map +1 -1
  47. package/esm2022/lib/components/calendar/calendar-header.js +4 -4
  48. package/esm2022/lib/components/calendar/calendar-header.js.map +1 -1
  49. package/esm2022/lib/components/calendar/calendar-month-view.js +4 -4
  50. package/esm2022/lib/components/calendar/calendar-year-view.js +4 -4
  51. package/esm2022/lib/components/calendar/calendar.js +3 -3
  52. package/esm2022/lib/components/card/card-action.js +3 -3
  53. package/esm2022/lib/components/card/card-body.js +3 -3
  54. package/esm2022/lib/components/card/card-description.js +3 -3
  55. package/esm2022/lib/components/card/card-footer.js +3 -3
  56. package/esm2022/lib/components/card/card-header.js +3 -3
  57. package/esm2022/lib/components/card/card-title.js +3 -3
  58. package/esm2022/lib/components/card/card.js +3 -3
  59. package/esm2022/lib/components/checkbox/checkbox-field.js +3 -3
  60. package/esm2022/lib/components/checkbox/checkbox-visual.js +4 -4
  61. package/esm2022/lib/components/checkbox/checkbox-visual.js.map +1 -1
  62. package/esm2022/lib/components/checkbox/checkbox.js +3 -3
  63. package/esm2022/lib/components/collapsible/collapsible-body.js +3 -3
  64. package/esm2022/lib/components/collapsible/collapsible-content.js +3 -3
  65. package/esm2022/lib/components/collapsible/collapsible-panel.js +3 -3
  66. package/esm2022/lib/components/collapsible/collapsible-trigger.js +3 -3
  67. package/esm2022/lib/components/collapsible/collapsible.js +3 -3
  68. package/esm2022/lib/components/date-picker/date-picker.js +4 -4
  69. package/esm2022/lib/components/dialog/dialog-close.js +3 -3
  70. package/esm2022/lib/components/dialog/dialog-description.js +3 -3
  71. package/esm2022/lib/components/dialog/dialog-footer.js +3 -3
  72. package/esm2022/lib/components/dialog/dialog-header.js +3 -3
  73. package/esm2022/lib/components/dialog/dialog-portal.js +3 -3
  74. package/esm2022/lib/components/dialog/dialog-provider.js +3 -3
  75. package/esm2022/lib/components/dialog/dialog-title.js +3 -3
  76. package/esm2022/lib/components/dialog/dialog-trigger.js +3 -3
  77. package/esm2022/lib/components/dialog/dialog.js +3 -3
  78. package/esm2022/lib/components/drawer/drawer-close.js +3 -3
  79. package/esm2022/lib/components/drawer/drawer-description.js +3 -3
  80. package/esm2022/lib/components/drawer/drawer-footer.js +3 -3
  81. package/esm2022/lib/components/drawer/drawer-handle.js +3 -3
  82. package/esm2022/lib/components/drawer/drawer-header.js +3 -3
  83. package/esm2022/lib/components/drawer/drawer-portal.js +3 -3
  84. package/esm2022/lib/components/drawer/drawer-provider.js +3 -3
  85. package/esm2022/lib/components/drawer/drawer-title.js +3 -3
  86. package/esm2022/lib/components/drawer/drawer-trigger.js +3 -3
  87. package/esm2022/lib/components/drawer/drawer.js +3 -3
  88. package/esm2022/lib/components/empty/empty-body.js +3 -3
  89. package/esm2022/lib/components/empty/empty-description.js +3 -3
  90. package/esm2022/lib/components/empty/empty-header.js +3 -3
  91. package/esm2022/lib/components/empty/empty-media.js +3 -3
  92. package/esm2022/lib/components/empty/empty-title.js +3 -3
  93. package/esm2022/lib/components/empty/empty.js +3 -3
  94. package/esm2022/lib/components/field/field-body.js +3 -3
  95. package/esm2022/lib/components/field/field-description.js +4 -4
  96. package/esm2022/lib/components/field/field-description.js.map +1 -1
  97. package/esm2022/lib/components/field/field-error.js +3 -3
  98. package/esm2022/lib/components/field/field-group.js +4 -4
  99. package/esm2022/lib/components/field/field-group.js.map +1 -1
  100. package/esm2022/lib/components/field/field-separator.js +3 -3
  101. package/esm2022/lib/components/field/field-title.js +3 -3
  102. package/esm2022/lib/components/field/field.js +6 -6
  103. package/esm2022/lib/components/field/field.js.map +1 -1
  104. package/esm2022/lib/components/field/fieldset.js +3 -3
  105. package/esm2022/lib/components/field/legend.js +3 -3
  106. package/esm2022/lib/components/file-upload/file-upload-dropzone.js +4 -4
  107. package/esm2022/lib/components/file-upload/file-upload-dropzone.js.map +1 -1
  108. package/esm2022/lib/components/file-upload/file-upload-item-delete.js +3 -3
  109. package/esm2022/lib/components/file-upload/file-upload-item-name.js +3 -3
  110. package/esm2022/lib/components/file-upload/file-upload-item-preview.js +3 -3
  111. package/esm2022/lib/components/file-upload/file-upload-item-progress.js +5 -5
  112. package/esm2022/lib/components/file-upload/file-upload-item-progress.js.map +1 -1
  113. package/esm2022/lib/components/file-upload/file-upload-item-size.js +3 -3
  114. package/esm2022/lib/components/file-upload/file-upload-item.js +3 -3
  115. package/esm2022/lib/components/file-upload/file-upload-list.js +3 -3
  116. package/esm2022/lib/components/file-upload/file-upload-trigger.js +3 -3
  117. package/esm2022/lib/components/file-upload/file-upload.js +3 -3
  118. package/esm2022/lib/components/hover-card/hover-card-portal.js +3 -3
  119. package/esm2022/lib/components/hover-card/hover-card-provider.js +3 -3
  120. package/esm2022/lib/components/hover-card/hover-card-trigger.js +3 -3
  121. package/esm2022/lib/components/hover-card/hover-card.js +3 -3
  122. package/esm2022/lib/components/index.js +2 -0
  123. package/esm2022/lib/components/index.js.map +1 -1
  124. package/esm2022/lib/components/input/input.js +3 -3
  125. package/esm2022/lib/components/input-group/input-group-addon.js +3 -3
  126. package/esm2022/lib/components/input-group/input-group-button.js +3 -3
  127. package/esm2022/lib/components/input-group/input-group-text.js +3 -3
  128. package/esm2022/lib/components/input-group/input-group.js +3 -3
  129. package/esm2022/lib/components/item/item-actions.js +3 -3
  130. package/esm2022/lib/components/item/item-body.js +3 -3
  131. package/esm2022/lib/components/item/item-description.js +3 -3
  132. package/esm2022/lib/components/item/item-footer.js +3 -3
  133. package/esm2022/lib/components/item/item-group.js +3 -3
  134. package/esm2022/lib/components/item/item-header.js +3 -3
  135. package/esm2022/lib/components/item/item-media.js +3 -3
  136. package/esm2022/lib/components/item/item-separator.js +3 -3
  137. package/esm2022/lib/components/item/item-title.js +3 -3
  138. package/esm2022/lib/components/item/item.js +3 -3
  139. package/esm2022/lib/components/kbd/kbd-group.js +3 -3
  140. package/esm2022/lib/components/kbd/kbd.js +3 -3
  141. package/esm2022/lib/components/label/label.js +4 -4
  142. package/esm2022/lib/components/label/label.js.map +1 -1
  143. package/esm2022/lib/components/link/link.js +3 -3
  144. package/esm2022/lib/components/menu/menu-content.js +3 -3
  145. package/esm2022/lib/components/menu/menu-item.js +3 -3
  146. package/esm2022/lib/components/menu/menu-portal.js +3 -3
  147. package/esm2022/lib/components/menu/menu-provider.js +3 -3
  148. package/esm2022/lib/components/menu/menu-separator.js +3 -3
  149. package/esm2022/lib/components/menu/menu-trigger.js +5 -9
  150. package/esm2022/lib/components/menu/menu-trigger.js.map +1 -1
  151. package/esm2022/lib/components/menu/menu.js +5 -5
  152. package/esm2022/lib/components/menu/menu.js.map +1 -1
  153. package/esm2022/lib/components/menu-bar/menu-bar-item.js +3 -3
  154. package/esm2022/lib/components/menu-bar/menu-bar.js +3 -3
  155. package/esm2022/lib/components/native-select/native-select-container.js +3 -3
  156. package/esm2022/lib/components/native-select/native-select-icon.js +3 -3
  157. package/esm2022/lib/components/native-select/native-select-optgroup.js +3 -3
  158. package/esm2022/lib/components/native-select/native-select-option.js +3 -3
  159. package/esm2022/lib/components/native-select/native-select.js +3 -3
  160. package/esm2022/lib/components/navigation-menu/navigation-menu-content.js +3 -3
  161. package/esm2022/lib/components/navigation-menu/navigation-menu-grid.js +3 -3
  162. package/esm2022/lib/components/navigation-menu/navigation-menu-item.js +3 -3
  163. package/esm2022/lib/components/navigation-menu/navigation-menu-link.js +3 -3
  164. package/esm2022/lib/components/navigation-menu/navigation-menu-list.js +3 -3
  165. package/esm2022/lib/components/navigation-menu/navigation-menu-portal.js +3 -3
  166. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js +4 -4
  167. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js.map +1 -1
  168. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js +4 -4
  169. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js.map +1 -1
  170. package/esm2022/lib/components/navigation-menu/navigation-menu.js +3 -3
  171. package/esm2022/lib/components/pagination/pagination-ellipsis.js +3 -3
  172. package/esm2022/lib/components/pagination/pagination-first.js +3 -3
  173. package/esm2022/lib/components/pagination/pagination-item.js +3 -3
  174. package/esm2022/lib/components/pagination/pagination-last.js +3 -3
  175. package/esm2022/lib/components/pagination/pagination-link.js +3 -3
  176. package/esm2022/lib/components/pagination/pagination-list.js +3 -3
  177. package/esm2022/lib/components/pagination/pagination-next.js +3 -3
  178. package/esm2022/lib/components/pagination/pagination-page-size-select.js +3 -3
  179. package/esm2022/lib/components/pagination/pagination-previous.js +3 -3
  180. package/esm2022/lib/components/pagination/pagination.js +4 -4
  181. package/esm2022/lib/components/pagination/pagination.js.map +1 -1
  182. package/esm2022/lib/components/popover/popover-close.js +3 -3
  183. package/esm2022/lib/components/popover/popover-description.js +3 -3
  184. package/esm2022/lib/components/popover/popover-header.js +3 -3
  185. package/esm2022/lib/components/popover/popover-portal.js +3 -3
  186. package/esm2022/lib/components/popover/popover-provider.js +3 -3
  187. package/esm2022/lib/components/popover/popover-title.js +3 -3
  188. package/esm2022/lib/components/popover/popover-trigger.js +3 -3
  189. package/esm2022/lib/components/popover/popover.js +3 -3
  190. package/esm2022/lib/components/progress/progress-indicator.js +3 -3
  191. package/esm2022/lib/components/progress/progress.js +3 -3
  192. package/esm2022/lib/components/radio-group/radio-field.js +3 -3
  193. package/esm2022/lib/components/radio-group/radio-group.js +3 -3
  194. package/esm2022/lib/components/radio-group/radio.js +3 -3
  195. package/esm2022/lib/components/range-slider/range-slider-max.js +3 -3
  196. package/esm2022/lib/components/range-slider/range-slider-min.js +3 -3
  197. package/esm2022/lib/components/range-slider/range-slider-thumb-base.js +2 -2
  198. package/esm2022/lib/components/range-slider/range-slider-thumb-base.js.map +1 -1
  199. package/esm2022/lib/components/range-slider/range-slider.js +3 -3
  200. package/esm2022/lib/components/resizable/index.js +6 -0
  201. package/esm2022/lib/components/resizable/index.js.map +1 -0
  202. package/esm2022/lib/components/resizable/resizable-handle-indicator.js +20 -0
  203. package/esm2022/lib/components/resizable/resizable-handle-indicator.js.map +1 -0
  204. package/esm2022/lib/components/resizable/resizable-handle.js +116 -0
  205. package/esm2022/lib/components/resizable/resizable-handle.js.map +1 -0
  206. package/esm2022/lib/components/resizable/resizable-panel-group.js +38 -0
  207. package/esm2022/lib/components/resizable/resizable-panel-group.js.map +1 -0
  208. package/esm2022/lib/components/resizable/resizable-panel.js +39 -0
  209. package/esm2022/lib/components/resizable/resizable-panel.js.map +1 -0
  210. package/esm2022/lib/components/resizable/resizable.types.js +1 -0
  211. package/esm2022/lib/components/resizable/resizable.types.js.map +1 -0
  212. package/esm2022/lib/components/scroll-area/scroll-area.js +3 -3
  213. package/esm2022/lib/components/select/index.js +1 -1
  214. package/esm2022/lib/components/select/index.js.map +1 -1
  215. package/esm2022/lib/components/select/select-group-label.js +3 -3
  216. package/esm2022/lib/components/select/select-group.js +3 -3
  217. package/esm2022/lib/components/select/select-input.js +3 -3
  218. package/esm2022/lib/components/select/select-item-icon.js +3 -3
  219. package/esm2022/lib/components/select/select-item-indicator.js +3 -3
  220. package/esm2022/lib/components/select/select-item.js +6 -4
  221. package/esm2022/lib/components/select/select-item.js.map +1 -1
  222. package/esm2022/lib/components/select/select-label.js +29 -0
  223. package/esm2022/lib/components/select/select-label.js.map +1 -0
  224. package/esm2022/lib/components/select/select-list.js +11 -5
  225. package/esm2022/lib/components/select/select-list.js.map +1 -1
  226. package/esm2022/lib/components/select/select-popup.js +3 -3
  227. package/esm2022/lib/components/select/select-portal.js +3 -3
  228. package/esm2022/lib/components/select/select-separator.js +3 -3
  229. package/esm2022/lib/components/select/select-trigger-icon.js +3 -3
  230. package/esm2022/lib/components/select/select-trigger.js +7 -7
  231. package/esm2022/lib/components/select/select-trigger.js.map +1 -1
  232. package/esm2022/lib/components/select/select.js +19 -10
  233. package/esm2022/lib/components/select/select.js.map +1 -1
  234. package/esm2022/lib/components/separator/separator.js +3 -3
  235. package/esm2022/lib/components/sheet/sheet-close.js +3 -3
  236. package/esm2022/lib/components/sheet/sheet-description.js +3 -3
  237. package/esm2022/lib/components/sheet/sheet-footer.js +3 -3
  238. package/esm2022/lib/components/sheet/sheet-header.js +3 -3
  239. package/esm2022/lib/components/sheet/sheet-portal.js +3 -3
  240. package/esm2022/lib/components/sheet/sheet-provider.js +3 -3
  241. package/esm2022/lib/components/sheet/sheet-title.js +3 -3
  242. package/esm2022/lib/components/sheet/sheet-trigger.js +3 -3
  243. package/esm2022/lib/components/sheet/sheet.js +3 -3
  244. package/esm2022/lib/components/sidebar/index.js +28 -0
  245. package/esm2022/lib/components/sidebar/index.js.map +1 -0
  246. package/esm2022/lib/components/sidebar/sidebar-body.js +20 -0
  247. package/esm2022/lib/components/sidebar/sidebar-body.js.map +1 -0
  248. package/esm2022/lib/components/sidebar/sidebar-container.js +26 -0
  249. package/esm2022/lib/components/sidebar/sidebar-container.js.map +1 -0
  250. package/esm2022/lib/components/sidebar/sidebar-footer.js +20 -0
  251. package/esm2022/lib/components/sidebar/sidebar-footer.js.map +1 -0
  252. package/esm2022/lib/components/sidebar/sidebar-gap.js +23 -0
  253. package/esm2022/lib/components/sidebar/sidebar-gap.js.map +1 -0
  254. package/esm2022/lib/components/sidebar/sidebar-group-action.js +21 -0
  255. package/esm2022/lib/components/sidebar/sidebar-group-action.js.map +1 -0
  256. package/esm2022/lib/components/sidebar/sidebar-group-content.js +20 -0
  257. package/esm2022/lib/components/sidebar/sidebar-group-content.js.map +1 -0
  258. package/esm2022/lib/components/sidebar/sidebar-group-label.js +21 -0
  259. package/esm2022/lib/components/sidebar/sidebar-group-label.js.map +1 -0
  260. package/esm2022/lib/components/sidebar/sidebar-group.js +20 -0
  261. package/esm2022/lib/components/sidebar/sidebar-group.js.map +1 -0
  262. package/esm2022/lib/components/sidebar/sidebar-header.js +20 -0
  263. package/esm2022/lib/components/sidebar/sidebar-header.js.map +1 -0
  264. package/esm2022/lib/components/sidebar/sidebar-inner.js +20 -0
  265. package/esm2022/lib/components/sidebar/sidebar-inner.js.map +1 -0
  266. package/esm2022/lib/components/sidebar/sidebar-input.js +20 -0
  267. package/esm2022/lib/components/sidebar/sidebar-input.js.map +1 -0
  268. package/esm2022/lib/components/sidebar/sidebar-inset.js +20 -0
  269. package/esm2022/lib/components/sidebar/sidebar-inset.js.map +1 -0
  270. package/esm2022/lib/components/sidebar/sidebar-menu-action.js +24 -0
  271. package/esm2022/lib/components/sidebar/sidebar-menu-action.js.map +1 -0
  272. package/esm2022/lib/components/sidebar/sidebar-menu-badge.js +20 -0
  273. package/esm2022/lib/components/sidebar/sidebar-menu-badge.js.map +1 -0
  274. package/esm2022/lib/components/sidebar/sidebar-menu-button.js +47 -0
  275. package/esm2022/lib/components/sidebar/sidebar-menu-button.js.map +1 -0
  276. package/esm2022/lib/components/sidebar/sidebar-menu-item.js +20 -0
  277. package/esm2022/lib/components/sidebar/sidebar-menu-item.js.map +1 -0
  278. package/esm2022/lib/components/sidebar/sidebar-menu-skeleton.js +45 -0
  279. package/esm2022/lib/components/sidebar/sidebar-menu-skeleton.js.map +1 -0
  280. package/esm2022/lib/components/sidebar/sidebar-menu-sub-button.js +31 -0
  281. package/esm2022/lib/components/sidebar/sidebar-menu-sub-button.js.map +1 -0
  282. package/esm2022/lib/components/sidebar/sidebar-menu-sub-item.js +20 -0
  283. package/esm2022/lib/components/sidebar/sidebar-menu-sub-item.js.map +1 -0
  284. package/esm2022/lib/components/sidebar/sidebar-menu-sub.js +20 -0
  285. package/esm2022/lib/components/sidebar/sidebar-menu-sub.js.map +1 -0
  286. package/esm2022/lib/components/sidebar/sidebar-menu.js +20 -0
  287. package/esm2022/lib/components/sidebar/sidebar-menu.js.map +1 -0
  288. package/esm2022/lib/components/sidebar/sidebar-provider.js +102 -0
  289. package/esm2022/lib/components/sidebar/sidebar-provider.js.map +1 -0
  290. package/esm2022/lib/components/sidebar/sidebar-rail.js +27 -0
  291. package/esm2022/lib/components/sidebar/sidebar-rail.js.map +1 -0
  292. package/esm2022/lib/components/sidebar/sidebar-separator.js +20 -0
  293. package/esm2022/lib/components/sidebar/sidebar-separator.js.map +1 -0
  294. package/esm2022/lib/components/sidebar/sidebar-state.js +32 -0
  295. package/esm2022/lib/components/sidebar/sidebar-state.js.map +1 -0
  296. package/esm2022/lib/components/sidebar/sidebar-trigger.js +36 -0
  297. package/esm2022/lib/components/sidebar/sidebar-trigger.js.map +1 -0
  298. package/esm2022/lib/components/sidebar/sidebar.js +137 -0
  299. package/esm2022/lib/components/sidebar/sidebar.js.map +1 -0
  300. package/esm2022/lib/components/skeleton/skeleton.js +3 -3
  301. package/esm2022/lib/components/slider/slider.js +4 -4
  302. package/esm2022/lib/components/slider/slider.js.map +1 -1
  303. package/esm2022/lib/components/spinner/spinner.js +3 -3
  304. package/esm2022/lib/components/switch/switch-field.js +4 -4
  305. package/esm2022/lib/components/switch/switch-field.js.map +1 -1
  306. package/esm2022/lib/components/switch/switch-visual.js +3 -3
  307. package/esm2022/lib/components/switch/switch.js +3 -3
  308. package/esm2022/lib/components/table/table-body.js +3 -3
  309. package/esm2022/lib/components/table/table-caption.js +3 -3
  310. package/esm2022/lib/components/table/table-cell.js +3 -3
  311. package/esm2022/lib/components/table/table-footer.js +3 -3
  312. package/esm2022/lib/components/table/table-header-cell.js +3 -3
  313. package/esm2022/lib/components/table/table-header.js +3 -3
  314. package/esm2022/lib/components/table/table-row.js +3 -3
  315. package/esm2022/lib/components/table/table.js +3 -3
  316. package/esm2022/lib/components/tabs/tab-content.js +3 -3
  317. package/esm2022/lib/components/tabs/tab-list.js +3 -3
  318. package/esm2022/lib/components/tabs/tab-panel.js +4 -4
  319. package/esm2022/lib/components/tabs/tab-panel.js.map +1 -1
  320. package/esm2022/lib/components/tabs/tab.js +3 -3
  321. package/esm2022/lib/components/tabs/tabs.js +3 -3
  322. package/esm2022/lib/components/textarea/textarea.js +3 -3
  323. package/esm2022/lib/components/time-picker/time-picker-hours-input.js +3 -3
  324. package/esm2022/lib/components/time-picker/time-picker-input.js +3 -3
  325. package/esm2022/lib/components/time-picker/time-picker-minutes-input.js +3 -3
  326. package/esm2022/lib/components/time-picker/time-picker-period-am.js +3 -3
  327. package/esm2022/lib/components/time-picker/time-picker-period-pm.js +3 -3
  328. package/esm2022/lib/components/time-picker/time-picker-period.js +3 -3
  329. package/esm2022/lib/components/time-picker/time-picker-seconds-input.js +3 -3
  330. package/esm2022/lib/components/time-picker/time-picker-separator.js +3 -3
  331. package/esm2022/lib/components/time-picker/time-picker.js +3 -3
  332. package/esm2022/lib/components/toast/toast-action.js +3 -3
  333. package/esm2022/lib/components/toast/toast-close.js +3 -3
  334. package/esm2022/lib/components/toast/toast-description.js +3 -3
  335. package/esm2022/lib/components/toast/toast-stack.js +4 -4
  336. package/esm2022/lib/components/toast/toast-stack.js.map +1 -1
  337. package/esm2022/lib/components/toast/toast-title.js +3 -3
  338. package/esm2022/lib/components/toast/toast.js +3 -3
  339. package/esm2022/lib/components/toast/toaster.js +3 -3
  340. package/esm2022/lib/components/toggle/toggle.js +3 -3
  341. package/esm2022/lib/components/toggle-group/toggle-group-item.js +3 -3
  342. package/esm2022/lib/components/toggle-group/toggle-group.js +3 -3
  343. package/esm2022/lib/components/toolbar/toolbar-separator.js +3 -3
  344. package/esm2022/lib/components/toolbar/toolbar-widget-group.js +3 -3
  345. package/esm2022/lib/components/toolbar/toolbar-widget.js +3 -3
  346. package/esm2022/lib/components/toolbar/toolbar.js +3 -3
  347. package/esm2022/lib/components/tooltip/tooltip-manager.js +3 -3
  348. package/esm2022/lib/components/tooltip/tooltip-trigger.js +3 -3
  349. package/esm2022/lib/components/tooltip/tooltip.js +5 -13
  350. package/esm2022/lib/components/tooltip/tooltip.js.map +1 -1
  351. package/esm2022/lib/components/typography/heading.js +3 -3
  352. package/lib/components/index.d.ts +2 -0
  353. package/lib/components/menu/menu-trigger.d.ts +1 -3
  354. package/lib/components/menu/menu.d.ts +1 -1
  355. package/lib/components/pagination/pagination.d.ts +1 -1
  356. package/lib/components/range-slider/range-slider-thumb-base.d.ts +1 -1
  357. package/lib/components/resizable/index.d.ts +5 -0
  358. package/lib/components/resizable/resizable-handle-indicator.d.ts +7 -0
  359. package/lib/components/resizable/resizable-handle.d.ts +18 -0
  360. package/lib/components/resizable/resizable-panel-group.d.ts +17 -0
  361. package/lib/components/resizable/resizable-panel.d.ts +16 -0
  362. package/lib/components/resizable/resizable.types.d.ts +1 -0
  363. package/lib/components/select/index.d.ts +1 -1
  364. package/lib/components/select/select-item.d.ts +2 -0
  365. package/lib/components/select/select-label.d.ts +9 -0
  366. package/lib/components/select/select-list.d.ts +3 -1
  367. package/lib/components/select/select-trigger.d.ts +2 -2
  368. package/lib/components/select/select.d.ts +5 -4
  369. package/lib/components/sidebar/index.d.ts +27 -0
  370. package/lib/components/sidebar/sidebar-body.d.ts +7 -0
  371. package/lib/components/sidebar/sidebar-container.d.ts +8 -0
  372. package/lib/components/sidebar/sidebar-footer.d.ts +7 -0
  373. package/lib/components/sidebar/sidebar-gap.d.ts +8 -0
  374. package/lib/components/sidebar/sidebar-group-action.d.ts +8 -0
  375. package/lib/components/sidebar/sidebar-group-content.d.ts +7 -0
  376. package/lib/components/sidebar/sidebar-group-label.d.ts +8 -0
  377. package/lib/components/sidebar/sidebar-group.d.ts +7 -0
  378. package/lib/components/sidebar/sidebar-header.d.ts +7 -0
  379. package/lib/components/sidebar/sidebar-inner.d.ts +7 -0
  380. package/lib/components/sidebar/sidebar-input.d.ts +7 -0
  381. package/lib/components/sidebar/sidebar-inset.d.ts +7 -0
  382. package/lib/components/sidebar/sidebar-menu-action.d.ts +9 -0
  383. package/lib/components/sidebar/sidebar-menu-badge.d.ts +7 -0
  384. package/lib/components/sidebar/sidebar-menu-button.d.ts +18 -0
  385. package/lib/components/sidebar/sidebar-menu-item.d.ts +7 -0
  386. package/lib/components/sidebar/sidebar-menu-skeleton.d.ts +9 -0
  387. package/lib/components/sidebar/sidebar-menu-sub-button.d.ts +9 -0
  388. package/lib/components/sidebar/sidebar-menu-sub-item.d.ts +7 -0
  389. package/lib/components/sidebar/sidebar-menu-sub.d.ts +7 -0
  390. package/lib/components/sidebar/sidebar-menu.d.ts +7 -0
  391. package/lib/components/sidebar/sidebar-provider.d.ts +19 -0
  392. package/lib/components/sidebar/sidebar-rail.d.ts +9 -0
  393. package/lib/components/sidebar/sidebar-separator.d.ts +7 -0
  394. package/lib/components/sidebar/sidebar-state.d.ts +14 -0
  395. package/lib/components/sidebar/sidebar-trigger.d.ts +12 -0
  396. package/lib/components/sidebar/sidebar.d.ts +11 -0
  397. package/package.json +1 -1
  398. package/esm2022/lib/components/select/select-value.js +0 -28
  399. package/esm2022/lib/components/select/select-value.js.map +0 -1
  400. package/lib/components/select/select-value.d.ts +0 -7
@@ -30,10 +30,10 @@ export class ScBackdrop {
30
30
  this.animationComplete.emit();
31
31
  }
32
32
  }
33
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBackdrop, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScBackdrop, isStandalone: true, selector: "div[scBackdrop]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { animationComplete: "animationComplete" }, host: { attributes: { "data-slot": "backdrop" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "class": "class()", "attr.data-idle": "state() === \"idle\" ? \"\" : null", "attr.data-open": "state() === \"open\" ? \"\" : null", "attr.data-closed": "state() === \"closed\" ? \"\" : null" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBackdrop, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScBackdrop, isStandalone: true, selector: "div[scBackdrop]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { animationComplete: "animationComplete" }, host: { attributes: { "data-slot": "backdrop" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "class": "class()", "attr.data-idle": "state() === \"idle\" ? \"\" : null", "attr.data-open": "state() === \"open\" ? \"\" : null", "attr.data-closed": "state() === \"closed\" ? \"\" : null" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBackdrop, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBackdrop, decorators: [{
37
37
  type: Component,
38
38
  args: [{
39
39
  selector: 'div[scBackdrop]',
@@ -21,10 +21,10 @@ export class ScBadge {
21
21
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
22
22
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : []));
23
23
  class = computed(() => cn(badgeVariants({ variant: this.variant() }), this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBadge, deps: [], target: i0.ɵɵFactoryTarget.Directive });
25
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScBadge, isStandalone: true, selector: "div[scBadge], span[scBadge]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "badge" }, properties: { "class": "class()" } }, ngImport: i0 });
24
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBadge, deps: [], target: i0.ɵɵFactoryTarget.Directive });
25
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScBadge, isStandalone: true, selector: "div[scBadge], span[scBadge]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "badge" }, properties: { "class": "class()" } }, ngImport: i0 });
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBadge, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBadge, decorators: [{
28
28
  type: Directive,
29
29
  args: [{
30
30
  selector: 'div[scBadge], span[scBadge]',
@@ -5,13 +5,13 @@ import * as i0 from "@angular/core";
5
5
  export class ScBreadcrumbEllipsis {
6
6
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
7
7
  class = computed(() => cn('flex size-9 items-center justify-center', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbEllipsis, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScBreadcrumbEllipsis, isStandalone: true, selector: "span[scBreadcrumbEllipsis]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-ellipsis", "role": "presentation", "aria-hidden": "true" }, properties: { "class": "class()" } }, ngImport: i0, template: `
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbEllipsis, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScBreadcrumbEllipsis, isStandalone: true, selector: "span[scBreadcrumbEllipsis]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-ellipsis", "role": "presentation", "aria-hidden": "true" }, properties: { "class": "class()" } }, ngImport: i0, template: `
10
10
  <svg siEllipsisIcon class="size-4"></svg>
11
11
  <span class="sr-only">More</span>
12
- `, isInline: true, dependencies: [{ kind: "component", type: SiEllipsisIcon, selector: "svg[siEllipsisIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
12
+ `, isInline: true, dependencies: [{ kind: "component", type: SiEllipsisIcon, selector: "svg[siEllipsisIcon]", inputs: ["ariaHidden", "width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbEllipsis, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbEllipsis, decorators: [{
15
15
  type: Component,
16
16
  args: [{
17
17
  selector: 'span[scBreadcrumbEllipsis]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScBreadcrumbItem {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('inline-flex items-center gap-1.5', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScBreadcrumbItem, isStandalone: true, selector: "li[scBreadcrumbItem]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-item" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScBreadcrumbItem, isStandalone: true, selector: "li[scBreadcrumbItem]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-item" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbItem, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbItem, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'li[scBreadcrumbItem]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScBreadcrumbLink {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('hover:text-foreground transition-colors', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbLink, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScBreadcrumbLink, isStandalone: true, selector: "a[scBreadcrumbLink]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-link" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbLink, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScBreadcrumbLink, isStandalone: true, selector: "a[scBreadcrumbLink]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-link" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbLink, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbLink, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'a[scBreadcrumbLink]',
@@ -3,11 +3,11 @@ import { cn } from '../../utils';
3
3
  import * as i0 from "@angular/core";
4
4
  export class ScBreadcrumbList {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
- class = computed(() => cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScBreadcrumbList, isStandalone: true, selector: "ol[scBreadcrumbList]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-list" }, properties: { "class": "class()" } }, ngImport: i0 });
6
+ class = computed(() => cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScBreadcrumbList, isStandalone: true, selector: "ol[scBreadcrumbList]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-list" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbList, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbList, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'ol[scBreadcrumbList]',
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-list.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/breadcrumb/breadcrumb-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,gBAAgB;IAClB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,0FAA0F,EAC1F,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,gBAAgB;2FAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAP5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,iBAAiB;wBAC9B,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'ol[scBreadcrumbList]',\n host: {\n 'data-slot': 'breadcrumb-list',\n '[class]': 'class()',\n },\n})\nexport class ScBreadcrumbList {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5',\n this.classInput(),\n ),\n );\n}\n"]}
1
+ {"version":3,"file":"breadcrumb-list.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/breadcrumb/breadcrumb-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,gBAAgB;IAClB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,8FAA8F,EAC9F,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,gBAAgB;2FAAhB,gBAAgB;;2FAAhB,gBAAgB;kBAP5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,iBAAiB;wBAC9B,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'ol[scBreadcrumbList]',\n host: {\n 'data-slot': 'breadcrumb-list',\n '[class]': 'class()',\n },\n})\nexport class ScBreadcrumbList {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScBreadcrumbPage {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('text-foreground font-normal', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbPage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScBreadcrumbPage, isStandalone: true, selector: "span[scBreadcrumbPage]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-page", "role": "link", "aria-disabled": "true", "aria-current": "page" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbPage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScBreadcrumbPage, isStandalone: true, selector: "span[scBreadcrumbPage]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-page", "role": "link", "aria-disabled": "true", "aria-current": "page" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbPage, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbPage, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'span[scBreadcrumbPage]',
@@ -5,14 +5,14 @@ import * as i0 from "@angular/core";
5
5
  export class ScBreadcrumbSeparator {
6
6
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
7
7
  class = computed(() => cn('[&>svg]:size-3.5', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScBreadcrumbSeparator, isStandalone: true, selector: "li[scBreadcrumbSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-separator", "role": "presentation", "aria-hidden": "true" }, properties: { "class": "class()" } }, ngImport: i0, template: `
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScBreadcrumbSeparator, isStandalone: true, selector: "li[scBreadcrumbSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "breadcrumb-separator", "role": "presentation", "aria-hidden": "true" }, properties: { "class": "class()" } }, ngImport: i0, template: `
10
10
  <ng-content>
11
11
  <svg siChevronRightIcon></svg>
12
12
  </ng-content>
13
- `, isInline: true, dependencies: [{ kind: "component", type: SiChevronRightIcon, selector: "svg[siChevronRightIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
13
+ `, isInline: true, dependencies: [{ kind: "component", type: SiChevronRightIcon, selector: "svg[siChevronRightIcon]", inputs: ["ariaHidden", "width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumbSeparator, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumbSeparator, decorators: [{
16
16
  type: Component,
17
17
  args: [{
18
18
  selector: 'li[scBreadcrumbSeparator]',
@@ -1,10 +1,10 @@
1
1
  import { Directive } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class ScBreadcrumb {
4
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Directive });
5
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScBreadcrumb, isStandalone: true, selector: "nav[scBreadcrumb]", host: { attributes: { "data-slot": "breadcrumb", "aria-label": "breadcrumb" } }, ngImport: i0 });
4
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Directive });
5
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: ScBreadcrumb, isStandalone: true, selector: "nav[scBreadcrumb]", host: { attributes: { "data-slot": "breadcrumb", "aria-label": "breadcrumb" } }, ngImport: i0 });
6
6
  }
7
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScBreadcrumb, decorators: [{
7
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScBreadcrumb, decorators: [{
8
8
  type: Directive,
9
9
  args: [{
10
10
  selector: 'nav[scBreadcrumb]',
@@ -35,10 +35,10 @@ export class ScButton {
35
35
  type = input('button', ...(ngDevMode ? [{ debugName: "type" }] : []));
36
36
  disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
37
37
  class = computed(() => cn(buttonVariants({ variant: this.variant(), size: this.size() }), this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
38
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScButton, isStandalone: true, selector: "button[scButton]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button" }, properties: { "attr.type": "type()", "disabled": "disabled()", "attr.aria-disabled": "disabled() || null", "class": "class()" } }, ngImport: i0 });
38
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScButton, isStandalone: true, selector: "button[scButton]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button" }, properties: { "attr.type": "type()", "disabled": "disabled()", "attr.aria-disabled": "disabled() || null", "class": "class()" } }, ngImport: i0 });
40
40
  }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScButton, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScButton, decorators: [{
42
42
  type: Directive,
43
43
  args: [{
44
44
  selector: 'button[scButton]',
@@ -5,10 +5,10 @@ export class ScButtonGroupSeparator {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  orientation = input('vertical', ...(ngDevMode ? [{ debugName: "orientation" }] : []));
7
7
  class = computed(() => cn('bg-input relative self-stretch data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScButtonGroupSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScButtonGroupSeparator, isStandalone: true, selector: "div[scButtonGroupSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button-group-separator", "role": "separator" }, properties: { "attr.aria-orientation": "orientation()", "attr.data-orientation": "orientation()", "class": "class()" } }, ngImport: i0 });
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScButtonGroupSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScButtonGroupSeparator, isStandalone: true, selector: "div[scButtonGroupSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button-group-separator", "role": "separator" }, properties: { "attr.aria-orientation": "orientation()", "attr.data-orientation": "orientation()", "class": "class()" } }, ngImport: i0 });
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScButtonGroupSeparator, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScButtonGroupSeparator, decorators: [{
12
12
  type: Directive,
13
13
  args: [{
14
14
  selector: 'div[scButtonGroupSeparator]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScButtonGroupText {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn("bg-muted gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none", this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScButtonGroupText, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScButtonGroupText, isStandalone: true, selector: "div[scButtonGroupText]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button-group-text" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScButtonGroupText, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScButtonGroupText, isStandalone: true, selector: "div[scButtonGroupText]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button-group-text" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScButtonGroupText, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScButtonGroupText, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scButtonGroupText]',
@@ -17,10 +17,10 @@ export class ScButtonGroup {
17
17
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
18
18
  orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : []));
19
19
  class = computed(() => cn(buttonGroupVariants({ orientation: this.orientation() }), this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
20
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScButtonGroup, isStandalone: true, selector: "div[scButtonGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button-group", "role": "group" }, properties: { "class": "class()" } }, ngImport: i0 });
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScButtonGroup, isStandalone: true, selector: "div[scButtonGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "button-group", "role": "group" }, properties: { "class": "class()" } }, ngImport: i0 });
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScButtonGroup, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScButtonGroup, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  selector: 'div[scButtonGroup]',
@@ -163,8 +163,8 @@ export class ScCalendarDayView {
163
163
  this.monthScrollUp.emit();
164
164
  setTimeout(() => this._dayButtons()[this._dayButtons().length - 1]?.element.focus());
165
165
  }
166
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendarDayView, deps: [], target: i0.ɵɵFactoryTarget.Component });
167
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: ScCalendarDayView, isStandalone: true, selector: "[scCalendarDayView]", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateSelected: "dateSelected", monthScrollUp: "monthScrollUp", monthScrollDown: "monthScrollDown" }, viewQueries: [{ propertyName: "_dayButtons", predicate: GridCellWidget, descendants: true, isSignal: true }], ngImport: i0, template: `
166
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendarDayView, deps: [], target: i0.ɵɵFactoryTarget.Component });
167
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: ScCalendarDayView, isStandalone: true, selector: "[scCalendarDayView]", inputs: { viewDate: { classPropertyName: "viewDate", publicName: "viewDate", isSignal: true, isRequired: true, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, weekDays: { classPropertyName: "weekDays", publicName: "weekDays", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dateSelected: "dateSelected", monthScrollUp: "monthScrollUp", monthScrollDown: "monthScrollDown" }, viewQueries: [{ propertyName: "_dayButtons", predicate: GridCellWidget, descendants: true, isSignal: true }], ngImport: i0, template: `
168
168
  <table
169
169
  ngGrid
170
170
  tabindex="0"
@@ -180,7 +180,7 @@ export class ScCalendarDayView {
180
180
  @for (day of weekDays(); track day) {
181
181
  <th
182
182
  scope="col"
183
- class="w-9 rounded-md text-[0.8rem] font-normal text-muted-foreground"
183
+ class="text-muted-foreground w-9 rounded-md text-[0.8rem] font-normal"
184
184
  >
185
185
  {{ day }}
186
186
  </th>
@@ -236,9 +236,9 @@ export class ScCalendarDayView {
236
236
  }
237
237
  </tbody>
238
238
  </table>
239
- `, isInline: true, dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "enableRangeSelection"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "orientation", "wrap", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "directive", type: GridCellWidget, selector: "[ngGridCellWidget]", inputs: ["id", "widgetType", "disabled", "focusTarget", "tabindex"], outputs: ["onActivate", "onDeactivate"], exportAs: ["ngGridCellWidget"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
239
+ `, isInline: true, dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "enableRangeSelection"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "orientation", "wrap", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "directive", type: GridCellWidget, selector: "[ngGridCellWidget]", inputs: ["id", "widgetType", "disabled", "focusTarget", "tabindex"], outputs: ["activated", "deactivated"], exportAs: ["ngGridCellWidget"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
240
240
  }
241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendarDayView, decorators: [{
241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendarDayView, decorators: [{
242
242
  type: Component,
243
243
  args: [{
244
244
  selector: '[scCalendarDayView]',
@@ -259,7 +259,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImpor
259
259
  @for (day of weekDays(); track day) {
260
260
  <th
261
261
  scope="col"
262
- class="w-9 rounded-md text-[0.8rem] font-normal text-muted-foreground"
262
+ class="text-muted-foreground w-9 rounded-md text-[0.8rem] font-normal"
263
263
  >
264
264
  {{ day }}
265
265
  </th>
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-day-view.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/calendar/calendar-day-view.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;;AA0FjD,MAAM,OAAO,iBAAiB;IACX,WAAW,GAAG,YAAY,CAAC,cAAc,uDAAC,CAAC;IAEnD,QAAQ,GAAG,KAAK,CAAC,QAAQ,mDAAsB,CAAC;IAChD,IAAI,GAAG,KAAK,CAAC,QAAQ,+CAAmC,CAAC;IACzD,KAAK,GAAG,KAAK,CAAkB,SAAS,iDAAC,CAAC;IAC1C,QAAQ,GAAG,KAAK,CAAuB,EAAE,oDAAC,CAAC;IAC3C,OAAO,GAAG,KAAK,CAAiC,SAAS,mDAAC,CAAC;IAC3D,OAAO,GAAG,KAAK,CAAiC,SAAS,m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,iBAAiB;2FAAjB,iBAAiB,olCACgB,cAAc,gEA7EhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwET,4DAzES,IAAI,yNAAE,OAAO,uGAAE,QAAQ,+PAAE,cAAc;;2FA6EtC,iBAAiB;kBA/E7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,CAAC;oBAClD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwET;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;gGAE6C,cAAc","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n output,\n viewChildren,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { Grid, GridRow, GridCell, GridCellWidget } from '@angular/aria/grid';\nimport { cn } from '../../utils';\nimport { Temporal } from '@js-temporal/polyfill';\nimport { ScCalendarValue, ScDateRange } from './calendar';\n\ninterface DayInfo {\n date: Temporal.PlainDate;\n isToday: boolean;\n isOutsideMonth: boolean;\n disabled: boolean;\n selected: ReturnType<typeof signal<boolean>>;\n}\n\n@Component({\n selector: '[scCalendarDayView]',\n imports: [Grid, GridRow, GridCell, GridCellWidget],\n template: `\n <table\n ngGrid\n tabindex=\"0\"\n class=\"w-full border-collapse\"\n colWrap=\"continuous\"\n rowWrap=\"nowrap\"\n [enableSelection]=\"mode() !== 'multiple'\"\n selectionMode=\"explicit\"\n (keydown)=\"handleKeyDown($event)\"\n >\n <thead>\n <tr class=\"flex\">\n @for (day of weekDays(); track day) {\n <th\n scope=\"col\"\n class=\"w-9 rounded-md text-[0.8rem] font-normal text-muted-foreground\"\n >\n {{ day }}\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @for (week of weeks(); track $index) {\n <tr ngGridRow class=\"mt-2 flex w-full\">\n @for (day of week; track day?.date?.toString() ?? $index) {\n @if (day) {\n <td\n ngGridCell\n class=\"relative p-0 text-center text-sm\"\n [disabled]=\"day.disabled || day.isOutsideMonth\"\n [(selected)]=\"day.selected\"\n >\n <button\n ngGridCellWidget\n type=\"button\"\n [class]=\"getDayClass(day)\"\n [attr.aria-label]=\"\n day.date.toLocaleString('en-US', {\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n })\n \"\n [attr.data-today]=\"day.isToday || null\"\n [attr.data-selected]=\"isSelected(day.date) || null\"\n [attr.data-outside]=\"day.isOutsideMonth || null\"\n [attr.data-disabled]=\"day.disabled || null\"\n [attr.data-range-start]=\"isRangeStart(day.date) || null\"\n [attr.data-range-end]=\"isRangeEnd(day.date) || null\"\n [attr.data-range-middle]=\"isRangeMiddle(day.date) || null\"\n [attr.data-day]=\"day.date.day\"\n (click)=\"handleDateClick(day.date)\"\n >\n {{ day.date.day }}\n </button>\n </td>\n } @else {\n <td\n ngGridCell\n class=\"relative p-0 text-center text-sm\"\n disabled\n >\n <span class=\"size-9\"></span>\n </td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScCalendarDayView {\n private readonly _dayButtons = viewChildren(GridCellWidget);\n\n readonly viewDate = input.required<Temporal.PlainDate>();\n readonly mode = input.required<'single' | 'multiple' | 'range'>();\n readonly value = input<ScCalendarValue>(undefined);\n readonly disabled = input<Temporal.PlainDate[]>([]);\n readonly minDate = input<Temporal.PlainDate | undefined>(undefined);\n readonly maxDate = input<Temporal.PlainDate | undefined>(undefined);\n\n readonly dateSelected = output<Temporal.PlainDate>();\n readonly monthScrollUp = output<void>();\n readonly monthScrollDown = output<void>();\n\n readonly weekDays = input(['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']);\n\n protected readonly weeks = computed(() => {\n const date = this.viewDate();\n const year = date.year;\n const month = date.month;\n\n const firstDay = new Temporal.PlainDate(year, month, 1);\n const daysInMonth = firstDay.daysInMonth;\n // dayOfWeek: 1=Mon..7=Sun; %7 gives 0=Sun like JS Date.getDay()\n const firstDayOfWeek = firstDay.dayOfWeek % 7;\n\n const days: (DayInfo | null)[][] = [];\n let currentWeek: (DayInfo | null)[] = [];\n\n // Add days from previous month to fill the first week\n for (let i = 0; i < firstDayOfWeek; i++) {\n const prevDate = firstDay.subtract({ days: firstDayOfWeek - i });\n currentWeek.push(this.createDayInfo(prevDate, true));\n }\n\n // Add days of the month\n for (let day = 1; day <= daysInMonth; day++) {\n const currentDate = new Temporal.PlainDate(year, month, day);\n currentWeek.push(this.createDayInfo(currentDate, false));\n\n if (currentWeek.length === 7) {\n days.push(currentWeek);\n currentWeek = [];\n }\n }\n\n // Add days from next month to fill the last week\n if (currentWeek.length > 0) {\n const nextMonthFirst = firstDay.add({ months: 1 });\n let nextDay = 0;\n while (currentWeek.length < 7) {\n const nextDate = nextMonthFirst.add({ days: nextDay++ });\n currentWeek.push(this.createDayInfo(nextDate, true));\n }\n days.push(currentWeek);\n }\n\n return days;\n });\n\n private createDayInfo(\n date: Temporal.PlainDate,\n isOutsideMonth: boolean,\n ): DayInfo {\n const today = Temporal.Now.plainDateISO();\n const isToday = date.equals(today);\n const disabled = this.isDateDisabled(date);\n\n return {\n date,\n isToday,\n isOutsideMonth,\n disabled,\n selected: signal(this.isSelected(date)),\n };\n }\n\n private isDateDisabled(date: Temporal.PlainDate): boolean {\n const disabledDates = this.disabled();\n const min = this.minDate();\n const max = this.maxDate();\n\n if (min && Temporal.PlainDate.compare(date, min) < 0) return true;\n if (max && Temporal.PlainDate.compare(date, max) > 0) return true;\n\n return disabledDates.some((d) => d.equals(date));\n }\n\n private getRange(): ScDateRange {\n return (\n (this.value() as ScDateRange | undefined) ?? {\n from: undefined,\n to: undefined,\n }\n );\n }\n\n protected isSelected(date: Temporal.PlainDate): boolean {\n const mode = this.mode();\n\n if (mode === 'single') {\n const selected = this.value() as Temporal.PlainDate | undefined;\n return selected ? date.equals(selected) : false;\n }\n\n if (mode === 'multiple') {\n const dates = (this.value() as Temporal.PlainDate[] | undefined) ?? [];\n return dates.some((d) => date.equals(d));\n }\n\n if (mode === 'range') {\n const range = this.getRange();\n if (range.from && date.equals(range.from)) return true;\n if (range.to && date.equals(range.to)) return true;\n if (\n range.from &&\n range.to &&\n Temporal.PlainDate.compare(date, range.from) > 0 &&\n Temporal.PlainDate.compare(date, range.to) < 0\n )\n return true;\n }\n\n return false;\n }\n\n protected isRangeStart(date: Temporal.PlainDate): boolean {\n if (this.mode() !== 'range') return false;\n const range = this.getRange();\n return range.from ? date.equals(range.from) : false;\n }\n\n protected isRangeEnd(date: Temporal.PlainDate): boolean {\n if (this.mode() !== 'range') return false;\n const range = this.getRange();\n return range.to ? date.equals(range.to) : false;\n }\n\n protected isRangeMiddle(date: Temporal.PlainDate): boolean {\n if (this.mode() !== 'range') return false;\n const range = this.getRange();\n if (!range.from || !range.to) return false;\n return (\n Temporal.PlainDate.compare(date, range.from) > 0 &&\n Temporal.PlainDate.compare(date, range.to) < 0\n );\n }\n\n protected getDayClass(day: DayInfo): string {\n const isSelectedDay = this.isSelected(day.date);\n const isRangeMiddleDay = this.isRangeMiddle(day.date);\n\n return cn(\n 'inline-flex size-9 items-center justify-center rounded-md text-sm font-normal',\n 'ring-offset-background transition-colors',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'hover:bg-accent hover:text-accent-foreground',\n 'disabled:pointer-events-none disabled:opacity-50',\n day.isToday && !isSelectedDay && 'bg-accent text-accent-foreground',\n isSelectedDay &&\n !isRangeMiddleDay &&\n 'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground',\n isRangeMiddleDay && 'bg-accent text-accent-foreground rounded-none',\n day.isOutsideMonth && 'text-muted-foreground opacity-50',\n day.disabled && 'text-muted-foreground opacity-50',\n );\n }\n\n protected handleDateClick(date: Temporal.PlainDate): void {\n this.dateSelected.emit(date);\n }\n\n protected handleKeyDown(event: KeyboardEvent): void {\n const day = Number((event.target as Element).getAttribute('data-day'));\n if (!day) return;\n\n const viewDate = this.viewDate();\n const daysInMonth = viewDate.daysInMonth;\n\n // Only handle edge cases where we need to scroll to prev/next month\n if (day > 7 && day <= daysInMonth - 7) return;\n\n const arrowLeft = event.key === 'ArrowLeft';\n const arrowRight = event.key === 'ArrowRight';\n const arrowUp = event.key === 'ArrowUp';\n const arrowDown = event.key === 'ArrowDown';\n\n if ((day === 1 && arrowLeft) || (day <= 7 && arrowUp)) {\n this.scrollUp();\n }\n\n if (\n (day === daysInMonth && arrowRight) ||\n (day > daysInMonth - 7 && arrowDown)\n ) {\n this.scrollDown();\n }\n }\n\n private scrollDown(): void {\n this.monthScrollDown.emit();\n setTimeout(() => this._dayButtons()[0]?.element.focus());\n }\n\n private scrollUp(): void {\n this.monthScrollUp.emit();\n setTimeout(() =>\n this._dayButtons()[this._dayButtons().length - 1]?.element.focus(),\n );\n }\n}\n"]}
1
+ {"version":3,"file":"calendar-day-view.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/calendar/calendar-day-view.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;;AA0FjD,MAAM,OAAO,iBAAiB;IACX,WAAW,GAAG,YAAY,CAAC,cAAc,uDAAC,CAAC;IAEnD,QAAQ,GAAG,KAAK,CA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AAE,CAAC,CAAC;IAC3D,CAAC;IAEO,QAAQ;QACd,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QAC1B,UAAU,CAAC,GAAG,EAAE,CACd,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,CACnE,CAAC;IACJ,CAAC;uGAjNU,iBAAiB;2FAAjB,iBAAiB,olCACgB,cAAc,gEA7EhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwET,4DAzES,IAAI,yNAAE,OAAO,uGAAE,QAAQ,+PAAE,cAAc;;2FA6EtC,iBAAiB;kBA/E7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,CAAC;oBAClD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwET;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;gGAE6C,cAAc","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n output,\n viewChildren,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { Grid, GridRow, GridCell, GridCellWidget } from '@angular/aria/grid';\nimport { cn } from '../../utils';\nimport { Temporal } from '@js-temporal/polyfill';\nimport { ScCalendarValue, ScDateRange } from './calendar';\n\ninterface DayInfo {\n date: Temporal.PlainDate;\n isToday: boolean;\n isOutsideMonth: boolean;\n disabled: boolean;\n selected: ReturnType<typeof signal<boolean>>;\n}\n\n@Component({\n selector: '[scCalendarDayView]',\n imports: [Grid, GridRow, GridCell, GridCellWidget],\n template: `\n <table\n ngGrid\n tabindex=\"0\"\n class=\"w-full border-collapse\"\n colWrap=\"continuous\"\n rowWrap=\"nowrap\"\n [enableSelection]=\"mode() !== 'multiple'\"\n selectionMode=\"explicit\"\n (keydown)=\"handleKeyDown($event)\"\n >\n <thead>\n <tr class=\"flex\">\n @for (day of weekDays(); track day) {\n <th\n scope=\"col\"\n class=\"text-muted-foreground w-9 rounded-md text-[0.8rem] font-normal\"\n >\n {{ day }}\n </th>\n }\n </tr>\n </thead>\n <tbody>\n @for (week of weeks(); track $index) {\n <tr ngGridRow class=\"mt-2 flex w-full\">\n @for (day of week; track day?.date?.toString() ?? $index) {\n @if (day) {\n <td\n ngGridCell\n class=\"relative p-0 text-center text-sm\"\n [disabled]=\"day.disabled || day.isOutsideMonth\"\n [(selected)]=\"day.selected\"\n >\n <button\n ngGridCellWidget\n type=\"button\"\n [class]=\"getDayClass(day)\"\n [attr.aria-label]=\"\n day.date.toLocaleString('en-US', {\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n })\n \"\n [attr.data-today]=\"day.isToday || null\"\n [attr.data-selected]=\"isSelected(day.date) || null\"\n [attr.data-outside]=\"day.isOutsideMonth || null\"\n [attr.data-disabled]=\"day.disabled || null\"\n [attr.data-range-start]=\"isRangeStart(day.date) || null\"\n [attr.data-range-end]=\"isRangeEnd(day.date) || null\"\n [attr.data-range-middle]=\"isRangeMiddle(day.date) || null\"\n [attr.data-day]=\"day.date.day\"\n (click)=\"handleDateClick(day.date)\"\n >\n {{ day.date.day }}\n </button>\n </td>\n } @else {\n <td\n ngGridCell\n class=\"relative p-0 text-center text-sm\"\n disabled\n >\n <span class=\"size-9\"></span>\n </td>\n }\n }\n </tr>\n }\n </tbody>\n </table>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScCalendarDayView {\n private readonly _dayButtons = viewChildren(GridCellWidget);\n\n readonly viewDate = input.required<Temporal.PlainDate>();\n readonly mode = input.required<'single' | 'multiple' | 'range'>();\n readonly value = input<ScCalendarValue>(undefined);\n readonly disabled = input<Temporal.PlainDate[]>([]);\n readonly minDate = input<Temporal.PlainDate | undefined>(undefined);\n readonly maxDate = input<Temporal.PlainDate | undefined>(undefined);\n\n readonly dateSelected = output<Temporal.PlainDate>();\n readonly monthScrollUp = output<void>();\n readonly monthScrollDown = output<void>();\n\n readonly weekDays = input(['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']);\n\n protected readonly weeks = computed(() => {\n const date = this.viewDate();\n const year = date.year;\n const month = date.month;\n\n const firstDay = new Temporal.PlainDate(year, month, 1);\n const daysInMonth = firstDay.daysInMonth;\n // dayOfWeek: 1=Mon..7=Sun; %7 gives 0=Sun like JS Date.getDay()\n const firstDayOfWeek = firstDay.dayOfWeek % 7;\n\n const days: (DayInfo | null)[][] = [];\n let currentWeek: (DayInfo | null)[] = [];\n\n // Add days from previous month to fill the first week\n for (let i = 0; i < firstDayOfWeek; i++) {\n const prevDate = firstDay.subtract({ days: firstDayOfWeek - i });\n currentWeek.push(this.createDayInfo(prevDate, true));\n }\n\n // Add days of the month\n for (let day = 1; day <= daysInMonth; day++) {\n const currentDate = new Temporal.PlainDate(year, month, day);\n currentWeek.push(this.createDayInfo(currentDate, false));\n\n if (currentWeek.length === 7) {\n days.push(currentWeek);\n currentWeek = [];\n }\n }\n\n // Add days from next month to fill the last week\n if (currentWeek.length > 0) {\n const nextMonthFirst = firstDay.add({ months: 1 });\n let nextDay = 0;\n while (currentWeek.length < 7) {\n const nextDate = nextMonthFirst.add({ days: nextDay++ });\n currentWeek.push(this.createDayInfo(nextDate, true));\n }\n days.push(currentWeek);\n }\n\n return days;\n });\n\n private createDayInfo(\n date: Temporal.PlainDate,\n isOutsideMonth: boolean,\n ): DayInfo {\n const today = Temporal.Now.plainDateISO();\n const isToday = date.equals(today);\n const disabled = this.isDateDisabled(date);\n\n return {\n date,\n isToday,\n isOutsideMonth,\n disabled,\n selected: signal(this.isSelected(date)),\n };\n }\n\n private isDateDisabled(date: Temporal.PlainDate): boolean {\n const disabledDates = this.disabled();\n const min = this.minDate();\n const max = this.maxDate();\n\n if (min && Temporal.PlainDate.compare(date, min) < 0) return true;\n if (max && Temporal.PlainDate.compare(date, max) > 0) return true;\n\n return disabledDates.some((d) => d.equals(date));\n }\n\n private getRange(): ScDateRange {\n return (\n (this.value() as ScDateRange | undefined) ?? {\n from: undefined,\n to: undefined,\n }\n );\n }\n\n protected isSelected(date: Temporal.PlainDate): boolean {\n const mode = this.mode();\n\n if (mode === 'single') {\n const selected = this.value() as Temporal.PlainDate | undefined;\n return selected ? date.equals(selected) : false;\n }\n\n if (mode === 'multiple') {\n const dates = (this.value() as Temporal.PlainDate[] | undefined) ?? [];\n return dates.some((d) => date.equals(d));\n }\n\n if (mode === 'range') {\n const range = this.getRange();\n if (range.from && date.equals(range.from)) return true;\n if (range.to && date.equals(range.to)) return true;\n if (\n range.from &&\n range.to &&\n Temporal.PlainDate.compare(date, range.from) > 0 &&\n Temporal.PlainDate.compare(date, range.to) < 0\n )\n return true;\n }\n\n return false;\n }\n\n protected isRangeStart(date: Temporal.PlainDate): boolean {\n if (this.mode() !== 'range') return false;\n const range = this.getRange();\n return range.from ? date.equals(range.from) : false;\n }\n\n protected isRangeEnd(date: Temporal.PlainDate): boolean {\n if (this.mode() !== 'range') return false;\n const range = this.getRange();\n return range.to ? date.equals(range.to) : false;\n }\n\n protected isRangeMiddle(date: Temporal.PlainDate): boolean {\n if (this.mode() !== 'range') return false;\n const range = this.getRange();\n if (!range.from || !range.to) return false;\n return (\n Temporal.PlainDate.compare(date, range.from) > 0 &&\n Temporal.PlainDate.compare(date, range.to) < 0\n );\n }\n\n protected getDayClass(day: DayInfo): string {\n const isSelectedDay = this.isSelected(day.date);\n const isRangeMiddleDay = this.isRangeMiddle(day.date);\n\n return cn(\n 'inline-flex size-9 items-center justify-center rounded-md text-sm font-normal',\n 'ring-offset-background transition-colors',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2',\n 'hover:bg-accent hover:text-accent-foreground',\n 'disabled:pointer-events-none disabled:opacity-50',\n day.isToday && !isSelectedDay && 'bg-accent text-accent-foreground',\n isSelectedDay &&\n !isRangeMiddleDay &&\n 'bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground',\n isRangeMiddleDay && 'bg-accent text-accent-foreground rounded-none',\n day.isOutsideMonth && 'text-muted-foreground opacity-50',\n day.disabled && 'text-muted-foreground opacity-50',\n );\n }\n\n protected handleDateClick(date: Temporal.PlainDate): void {\n this.dateSelected.emit(date);\n }\n\n protected handleKeyDown(event: KeyboardEvent): void {\n const day = Number((event.target as Element).getAttribute('data-day'));\n if (!day) return;\n\n const viewDate = this.viewDate();\n const daysInMonth = viewDate.daysInMonth;\n\n // Only handle edge cases where we need to scroll to prev/next month\n if (day > 7 && day <= daysInMonth - 7) return;\n\n const arrowLeft = event.key === 'ArrowLeft';\n const arrowRight = event.key === 'ArrowRight';\n const arrowUp = event.key === 'ArrowUp';\n const arrowDown = event.key === 'ArrowDown';\n\n if ((day === 1 && arrowLeft) || (day <= 7 && arrowUp)) {\n this.scrollUp();\n }\n\n if (\n (day === daysInMonth && arrowRight) ||\n (day > daysInMonth - 7 && arrowDown)\n ) {\n this.scrollDown();\n }\n }\n\n private scrollDown(): void {\n this.monthScrollDown.emit();\n setTimeout(() => this._dayButtons()[0]?.element.focus());\n }\n\n private scrollUp(): void {\n this.monthScrollUp.emit();\n setTimeout(() =>\n this._dayButtons()[this._dayButtons().length - 1]?.element.focus(),\n );\n }\n}\n"]}
@@ -11,8 +11,8 @@ export class ScCalendarHeader {
11
11
  previous = output();
12
12
  next = output();
13
13
  headerClick = output();
14
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendarHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScCalendarHeader, isStandalone: true, selector: "[scCalendarHeader]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, previousLabel: { classPropertyName: "previousLabel", publicName: "previousLabel", isSignal: true, isRequired: true, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: true, transformFunction: null }, headerLabel: { classPropertyName: "headerLabel", publicName: "headerLabel", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { previous: "previous", next: "next", headerClick: "headerClick" }, ngImport: i0, template: `
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendarHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScCalendarHeader, isStandalone: true, selector: "[scCalendarHeader]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, previousLabel: { classPropertyName: "previousLabel", publicName: "previousLabel", isSignal: true, isRequired: true, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: true, transformFunction: null }, headerLabel: { classPropertyName: "headerLabel", publicName: "headerLabel", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { previous: "previous", next: "next", headerClick: "headerClick" }, ngImport: i0, template: `
16
16
  <div class="relative flex items-center justify-center pt-1">
17
17
  <button
18
18
  scButton
@@ -45,9 +45,9 @@ export class ScCalendarHeader {
45
45
  <svg siChevronRightIcon class="size-4"></svg>
46
46
  </button>
47
47
  </div>
48
- `, isInline: true, dependencies: [{ kind: "directive", type: ScButton, selector: "button[scButton]", inputs: ["class", "variant", "size", "type", "disabled"] }, { kind: "component", type: SiChevronLeftIcon, selector: "svg[siChevronLeftIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }, { kind: "component", type: SiChevronRightIcon, selector: "svg[siChevronRightIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
48
+ `, isInline: true, dependencies: [{ kind: "directive", type: ScButton, selector: "button[scButton]", inputs: ["class", "variant", "size", "type", "disabled"] }, { kind: "component", type: SiChevronLeftIcon, selector: "svg[siChevronLeftIcon]", inputs: ["ariaHidden", "width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }, { kind: "component", type: SiChevronRightIcon, selector: "svg[siChevronRightIcon]", inputs: ["ariaHidden", "width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendarHeader, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendarHeader, decorators: [{
51
51
  type: Component,
52
52
  args: [{
53
53
  selector: '[scCalendarHeader]',
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-header.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/calendar/calendar-header.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,KAAK,EACL,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;;AA0CtC,MAAM,OAAO,gBAAgB;IAClB,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAU,CAAC;IACjC,aAAa,GAAG,KAAK,CAAC,QAAQ,wDAAU,CAAC;IACzC,SAAS,GAAG,KAAK,CAAC,QAAQ,oDAAU,CAAC;IACrC,WAAW,GAAG,KAAK,CAAC,QAAQ,sDAAU,CAAC;IACvC,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC,CAAC;IAEjC,QAAQ,GAAG,MAAM,EAAQ,CAAC;IAC1B,IAAI,GAAG,MAAM,EAAQ,CAAC;IACtB,WAAW,GAAG,MAAM,EAAQ,CAAC;uGAT3B,gBAAgB;2FAAhB,gBAAgB,0zBArCjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCT,4DAlCS,QAAQ,uHAAE,iBAAiB,kLAAE,kBAAkB;;2FAsC9C,gBAAgB;kBAxC5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,CAAC;oBAC1D,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCT;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n input,\n output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ScButton } from '../button';\nimport {\n SiChevronLeftIcon,\n SiChevronRightIcon,\n} from '@semantic-icons/lucide-icons';\n\n@Component({\n selector: '[scCalendarHeader]',\n imports: [ScButton, SiChevronLeftIcon, SiChevronRightIcon],\n template: `\n <div class=\"relative flex items-center justify-center pt-1\">\n <button\n scButton\n variant=\"outline\"\n size=\"icon-sm\"\n class=\"absolute left-1\"\n (click)=\"previous.emit()\"\n [attr.aria-label]=\"previousLabel()\"\n >\n <svg siChevronLeftIcon class=\"size-4\"></svg>\n </button>\n <button\n scButton\n variant=\"ghost\"\n size=\"sm\"\n (click)=\"headerClick.emit()\"\n [attr.aria-label]=\"headerLabel()\"\n [attr.aria-expanded]=\"expanded()\"\n >\n {{ label() }}\n </button>\n <button\n scButton\n variant=\"outline\"\n size=\"icon-sm\"\n class=\"absolute right-1\"\n (click)=\"next.emit()\"\n [attr.aria-label]=\"nextLabel()\"\n >\n <svg siChevronRightIcon class=\"size-4\"></svg>\n </button>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScCalendarHeader {\n readonly label = input.required<string>();\n readonly previousLabel = input.required<string>();\n readonly nextLabel = input.required<string>();\n readonly headerLabel = input.required<string>();\n readonly expanded = input<boolean>(false);\n\n readonly previous = output<void>();\n readonly next = output<void>();\n readonly headerClick = output<void>();\n}\n"]}
1
+ {"version":3,"file":"calendar-header.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/calendar/calendar-header.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,KAAK,EACL,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;;AA0CtC,MAAM,OAAO,gBAAgB;IAClB,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAU,CAAC;IACjC,aAAa,GAAG,KAAK,CAAC,QAAQ,wDAAU,CAAC;IACzC,SAAS,GAAG,KAAK,CAAC,QAAQ,oDAAU,CAAC;IACrC,WAAW,GAAG,KAAK,CAAC,QAAQ,sDAAU,CAAC;IACvC,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC,CAAC;IAEjC,QAAQ,GAAG,MAAM,EAAQ,CAAC;IAC1B,IAAI,GAAG,MAAM,EAAQ,CAAC;IACtB,WAAW,GAAG,MAAM,EAAQ,CAAC;uGAT3B,gBAAgB;2FAAhB,gBAAgB,0zBArCjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCT,4DAlCS,QAAQ,uHAAE,iBAAiB,gMAAE,kBAAkB;;2FAsC9C,gBAAgB;kBAxC5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,CAAC;oBAC1D,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCT;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n input,\n output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ScButton } from '../button';\nimport {\n SiChevronLeftIcon,\n SiChevronRightIcon,\n} from '@semantic-icons/lucide-icons';\n\n@Component({\n selector: '[scCalendarHeader]',\n imports: [ScButton, SiChevronLeftIcon, SiChevronRightIcon],\n template: `\n <div class=\"relative flex items-center justify-center pt-1\">\n <button\n scButton\n variant=\"outline\"\n size=\"icon-sm\"\n class=\"absolute left-1\"\n (click)=\"previous.emit()\"\n [attr.aria-label]=\"previousLabel()\"\n >\n <svg siChevronLeftIcon class=\"size-4\"></svg>\n </button>\n <button\n scButton\n variant=\"ghost\"\n size=\"sm\"\n (click)=\"headerClick.emit()\"\n [attr.aria-label]=\"headerLabel()\"\n [attr.aria-expanded]=\"expanded()\"\n >\n {{ label() }}\n </button>\n <button\n scButton\n variant=\"outline\"\n size=\"icon-sm\"\n class=\"absolute right-1\"\n (click)=\"next.emit()\"\n [attr.aria-label]=\"nextLabel()\"\n >\n <svg siChevronRightIcon class=\"size-4\"></svg>\n </button>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScCalendarHeader {\n readonly label = input.required<string>();\n readonly previousLabel = input.required<string>();\n readonly nextLabel = input.required<string>();\n readonly headerLabel = input.required<string>();\n readonly expanded = input<boolean>(false);\n\n readonly previous = output<void>();\n readonly next = output<void>();\n readonly headerClick = output<void>();\n}\n"]}
@@ -91,8 +91,8 @@ export class ScCalendarMonthView {
91
91
  this.yearScrollUp.emit();
92
92
  setTimeout(() => this._monthButtons()[this._monthButtons().length - 1]?.element.focus());
93
93
  }
94
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendarMonthView, deps: [], target: i0.ɵɵFactoryTarget.Component });
95
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: ScCalendarMonthView, isStandalone: true, selector: "[scCalendarMonthView]", inputs: { year: { classPropertyName: "year", publicName: "year", isSignal: true, isRequired: true, transformFunction: null }, selectedMonth: { classPropertyName: "selectedMonth", publicName: "selectedMonth", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { monthSelected: "monthSelected", yearScrollUp: "yearScrollUp", yearScrollDown: "yearScrollDown" }, viewQueries: [{ propertyName: "_monthButtons", predicate: GridCellWidget, descendants: true, isSignal: true }], ngImport: i0, template: `
94
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendarMonthView, deps: [], target: i0.ɵɵFactoryTarget.Component });
95
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: ScCalendarMonthView, isStandalone: true, selector: "[scCalendarMonthView]", inputs: { year: { classPropertyName: "year", publicName: "year", isSignal: true, isRequired: true, transformFunction: null }, selectedMonth: { classPropertyName: "selectedMonth", publicName: "selectedMonth", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { monthSelected: "monthSelected", yearScrollUp: "yearScrollUp", yearScrollDown: "yearScrollDown" }, viewQueries: [{ propertyName: "_monthButtons", predicate: GridCellWidget, descendants: true, isSignal: true }], ngImport: i0, template: `
96
96
  <table
97
97
  ngGrid
98
98
  tabindex="0"
@@ -131,9 +131,9 @@ export class ScCalendarMonthView {
131
131
  }
132
132
  </tbody>
133
133
  </table>
134
- `, isInline: true, dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "enableRangeSelection"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "orientation", "wrap", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "directive", type: GridCellWidget, selector: "[ngGridCellWidget]", inputs: ["id", "widgetType", "disabled", "focusTarget", "tabindex"], outputs: ["onActivate", "onDeactivate"], exportAs: ["ngGridCellWidget"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
134
+ `, isInline: true, dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "enableRangeSelection"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "orientation", "wrap", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "directive", type: GridCellWidget, selector: "[ngGridCellWidget]", inputs: ["id", "widgetType", "disabled", "focusTarget", "tabindex"], outputs: ["activated", "deactivated"], exportAs: ["ngGridCellWidget"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
135
135
  }
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendarMonthView, decorators: [{
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendarMonthView, decorators: [{
137
137
  type: Component,
138
138
  args: [{
139
139
  selector: '[scCalendarMonthView]',
@@ -80,8 +80,8 @@ export class ScCalendarYearView {
80
80
  this.decadeScrollUp.emit();
81
81
  setTimeout(() => this._yearButtons()[this._yearButtons().length - 1]?.element.focus());
82
82
  }
83
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendarYearView, deps: [], target: i0.ɵɵFactoryTarget.Component });
84
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: ScCalendarYearView, isStandalone: true, selector: "[scCalendarYearView]", inputs: { decadeStart: { classPropertyName: "decadeStart", publicName: "decadeStart", isSignal: true, isRequired: true, transformFunction: null }, selectedYear: { classPropertyName: "selectedYear", publicName: "selectedYear", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { yearSelected: "yearSelected", decadeScrollUp: "decadeScrollUp", decadeScrollDown: "decadeScrollDown" }, viewQueries: [{ propertyName: "_yearButtons", predicate: GridCellWidget, descendants: true, isSignal: true }], ngImport: i0, template: `
83
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendarYearView, deps: [], target: i0.ɵɵFactoryTarget.Component });
84
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: ScCalendarYearView, isStandalone: true, selector: "[scCalendarYearView]", inputs: { decadeStart: { classPropertyName: "decadeStart", publicName: "decadeStart", isSignal: true, isRequired: true, transformFunction: null }, selectedYear: { classPropertyName: "selectedYear", publicName: "selectedYear", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { yearSelected: "yearSelected", decadeScrollUp: "decadeScrollUp", decadeScrollDown: "decadeScrollDown" }, viewQueries: [{ propertyName: "_yearButtons", predicate: GridCellWidget, descendants: true, isSignal: true }], ngImport: i0, template: `
85
85
  <table
86
86
  ngGrid
87
87
  tabindex="0"
@@ -120,9 +120,9 @@ export class ScCalendarYearView {
120
120
  }
121
121
  </tbody>
122
122
  </table>
123
- `, isInline: true, dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "enableRangeSelection"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "orientation", "wrap", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "directive", type: GridCellWidget, selector: "[ngGridCellWidget]", inputs: ["id", "widgetType", "disabled", "focusTarget", "tabindex"], outputs: ["onActivate", "onDeactivate"], exportAs: ["ngGridCellWidget"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
123
+ `, isInline: true, dependencies: [{ kind: "directive", type: Grid, selector: "[ngGrid]", inputs: ["enableSelection", "disabled", "softDisabled", "focusMode", "rowWrap", "colWrap", "multi", "selectionMode", "enableRangeSelection"], exportAs: ["ngGrid"] }, { kind: "directive", type: GridRow, selector: "[ngGridRow]", inputs: ["rowIndex"], exportAs: ["ngGridRow"] }, { kind: "directive", type: GridCell, selector: "[ngGridCell]", inputs: ["id", "role", "rowSpan", "colSpan", "rowIndex", "colIndex", "disabled", "selected", "selectable", "orientation", "wrap", "tabindex"], outputs: ["selectedChange"], exportAs: ["ngGridCell"] }, { kind: "directive", type: GridCellWidget, selector: "[ngGridCellWidget]", inputs: ["id", "widgetType", "disabled", "focusTarget", "tabindex"], outputs: ["activated", "deactivated"], exportAs: ["ngGridCellWidget"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
124
124
  }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendarYearView, decorators: [{
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendarYearView, decorators: [{
126
126
  type: Component,
127
127
  args: [{
128
128
  selector: '[scCalendarYearView]',
@@ -147,8 +147,8 @@ export class ScCalendar {
147
147
  this.viewDate.set(new Temporal.PlainDate(year, current.month, 1));
148
148
  this.viewMode.set('month');
149
149
  }
150
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
151
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: ScCalendar, isStandalone: true, selector: "sc-calendar", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "data-slot": "calendar", "role": "application" }, properties: { "class": "class()", "attr.aria-label": "\"Calendar\"" } }, ngImport: i0, template: `
150
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendar, deps: [], target: i0.ɵɵFactoryTarget.Component });
151
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: ScCalendar, isStandalone: true, selector: "sc-calendar", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "data-slot": "calendar", "role": "application" }, properties: { "class": "class()", "attr.aria-label": "\"Calendar\"" } }, ngImport: i0, template: `
152
152
  <div class="flex flex-col gap-4">
153
153
  <!-- Header with navigation -->
154
154
  <div
@@ -204,7 +204,7 @@ export class ScCalendar {
204
204
  </div>
205
205
  `, isInline: true, dependencies: [{ kind: "component", type: ScCalendarDayView, selector: "[scCalendarDayView]", inputs: ["viewDate", "mode", "value", "disabled", "minDate", "maxDate", "weekDays"], outputs: ["dateSelected", "monthScrollUp", "monthScrollDown"] }, { kind: "component", type: ScCalendarMonthView, selector: "[scCalendarMonthView]", inputs: ["year", "selectedMonth"], outputs: ["monthSelected", "yearScrollUp", "yearScrollDown"] }, { kind: "component", type: ScCalendarYearView, selector: "[scCalendarYearView]", inputs: ["decadeStart", "selectedYear"], outputs: ["yearSelected", "decadeScrollUp", "decadeScrollDown"] }, { kind: "component", type: ScCalendarHeader, selector: "[scCalendarHeader]", inputs: ["label", "previousLabel", "nextLabel", "headerLabel", "expanded"], outputs: ["previous", "next", "headerClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
206
206
  }
207
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCalendar, decorators: [{
207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCalendar, decorators: [{
208
208
  type: Component,
209
209
  args: [{
210
210
  selector: 'sc-calendar',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScCardAction {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCardAction, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScCardAction, isStandalone: true, selector: "div[scCardAction]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "card-action" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCardAction, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScCardAction, isStandalone: true, selector: "div[scCardAction]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "card-action" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCardAction, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCardAction, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scCardAction]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScCardBody {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('px-4 group-data-[size=sm]/card:px-3', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCardBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScCardBody, isStandalone: true, selector: "div[scCardBody]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "card-body" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCardBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScCardBody, isStandalone: true, selector: "div[scCardBody]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "card-body" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScCardBody, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScCardBody, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scCardBody]',