@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
@@ -1,19 +1,25 @@
1
1
  import { Listbox } from '@angular/aria/listbox';
2
- import { ChangeDetectionStrategy, Component, computed, inject, input, ViewEncapsulation, } from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, computed, contentChildren, inject, input, ViewEncapsulation, } from '@angular/core';
3
3
  import { cn } from '../../utils';
4
+ import { ScSelectItem } from './select-item';
4
5
  import * as i0 from "@angular/core";
5
6
  import * as i1 from "@angular/aria/listbox";
6
7
  export class ScSelectList {
7
8
  listbox = inject(Listbox);
9
+ items = contentChildren(ScSelectItem, { ...(ngDevMode ? { debugName: "items" } : {}), descendants: true });
8
10
  values = computed(() => this.listbox.values(), ...(ngDevMode ? [{ debugName: "values" }] : []));
9
11
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
12
+ labelForValue(value) {
13
+ const item = this.items().find((i) => i.itemValue() === value);
14
+ return item?.itemLabel() ?? '';
15
+ }
10
16
  class = computed(() => cn('flex h-full flex-col overflow-x-hidden overflow-y-auto', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
11
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectList, deps: [], target: i0.ɵɵFactoryTarget.Component });
12
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectList, isStandalone: true, selector: "div[scSelectList]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-list" }, properties: { "class": "class()" } }, hostDirectives: [{ directive: i1.Listbox }], ngImport: i0, template: `
17
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectList, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.0", type: ScSelectList, isStandalone: true, selector: "div[scSelectList]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-list" }, properties: { "class": "class()" } }, queries: [{ propertyName: "items", predicate: ScSelectItem, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.Listbox }], ngImport: i0, template: `
13
19
  <ng-content />
14
20
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
15
21
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectList, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectList, decorators: [{
17
23
  type: Component,
18
24
  args: [{
19
25
  selector: 'div[scSelectList]',
@@ -29,5 +35,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImpor
29
35
  encapsulation: ViewEncapsulation.None,
30
36
  changeDetection: ChangeDetectionStrategy.OnPush,
31
37
  }]
32
- }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
38
+ }], propDecorators: { items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => ScSelectItem), { ...{ descendants: true }, isSignal: true }] }], classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
33
39
  //# sourceMappingURL=select-list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-list.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;;AAgBjC,MAAM,OAAO,YAAY;IACN,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAClC,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,kDAAC,CAAC;IAC/C,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,wDAAwD,EACxD,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAVS,YAAY;2FAAZ,YAAY,kWAXb;;GAET;;2FASU,YAAY;kBAdxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE;;GAET;oBACD,cAAc,EAAE,CAAC,OAAO,CAAC;oBACzB,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import { Listbox } from '@angular/aria/listbox';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Component({\n selector: 'div[scSelectList]',\n imports: [],\n template: `\n <ng-content />\n `,\n hostDirectives: [Listbox],\n host: {\n 'data-slot': 'select-list',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectList {\n private readonly listbox = inject(Listbox);\n readonly values = computed(() => this.listbox.values());\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'flex h-full flex-col overflow-x-hidden overflow-y-auto',\n this.classInput(),\n ),\n );\n}\n"]}
1
+ {"version":3,"file":"select-list.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,eAAe,EACf,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;;AAgB7C,MAAM,OAAO,YAAY;IACN,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1B,KAAK,GAAG,eAAe,CAAC,YAAY,kDAAI,WAAW,EAAE,IAAI,GAAG,CAAC;IACrE,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,kDAAC,CAAC;IAC/C,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAE5D,aAAa,CAAC,KAAc;QAC1B,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,KAAK,CAAC,CAAC;QAC/D,OAAO,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACjC,CAAC;IAEkB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,wDAAwD,EACxD,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAhBS,YAAY;2FAAZ,YAAY,2UAEkB,YAAY,6GAb3C;;GAET;;2FASU,YAAY;kBAdxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE;;GAET;oBACD,cAAc,EAAE,CAAC,OAAO,CAAC;oBACzB,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;6FAG0C,YAAY,QAAE,EAAE,WAAW,EAAE,IAAI,EAAE","sourcesContent":["import { Listbox } from '@angular/aria/listbox';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { ScSelectItem } from './select-item';\n\n@Component({\n selector: 'div[scSelectList]',\n imports: [],\n template: `\n <ng-content />\n `,\n hostDirectives: [Listbox],\n host: {\n 'data-slot': 'select-list',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectList {\n private readonly listbox = inject(Listbox);\n private readonly items = contentChildren(ScSelectItem, { descendants: true });\n readonly values = computed(() => this.listbox.values());\n readonly classInput = input<string>('', { alias: 'class' });\n\n labelForValue(value: unknown): string {\n const item = this.items().find((i) => i.itemValue() === value);\n return item?.itemLabel() ?? '';\n }\n\n protected readonly class = computed(() =>\n cn(\n 'flex h-full flex-col overflow-x-hidden overflow-y-auto',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -8,12 +8,12 @@ export class ScSelectPopup {
8
8
  class = computed(() => cn('bg-popover text-popover-foreground ring-foreground/10 relative z-50 mt-1 flex w-full max-h-44 min-w-36 flex-col rounded-lg p-1 shadow-md ring-1', this.combobox.expanded()
9
9
  ? 'opacity-100 visible transition-[max-height,opacity,visibility] duration-150 ease-out'
10
10
  : 'max-h-0 opacity-0 invisible transition-[max-height,opacity,visibility] duration-150 ease-in [transition-delay:0s,0s,150ms]', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
11
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectPopup, deps: [], target: i0.ɵɵFactoryTarget.Component });
12
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectPopup, isStandalone: true, selector: "div[scSelectPopup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-popup" }, properties: { "class": "class()" } }, ngImport: i0, template: `
11
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectPopup, deps: [], target: i0.ɵɵFactoryTarget.Component });
12
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectPopup, isStandalone: true, selector: "div[scSelectPopup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-popup" }, properties: { "class": "class()" } }, ngImport: i0, template: `
13
13
  <ng-content />
14
14
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectPopup, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectPopup, decorators: [{
17
17
  type: Component,
18
18
  args: [{
19
19
  selector: 'div[scSelectPopup]',
@@ -2,10 +2,10 @@ import { Directive, inject, TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class ScSelectPortal {
4
4
  templateRef = inject(TemplateRef);
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScSelectPortal, isStandalone: true, selector: "ng-template[scSelectPortal]", ngImport: i0 });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: ScSelectPortal, isStandalone: true, selector: "ng-template[scSelectPortal]", ngImport: i0 });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectPortal, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectPortal, decorators: [{
9
9
  type: Directive,
10
10
  args: [{
11
11
  selector: 'ng-template[scSelectPortal]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScSelectSeparator {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('bg-border -mx-1 my-1 h-px', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectSeparator, isStandalone: true, selector: "[scSelectSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-separator", "role": "separator", "aria-orientation": "horizontal" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectSeparator, isStandalone: true, selector: "[scSelectSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-separator", "role": "separator", "aria-orientation": "horizontal" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectSeparator, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectSeparator, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[scSelectSeparator]',
@@ -6,10 +6,10 @@ export class ScSelectTriggerIcon {
6
6
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
7
7
  combobox = inject(Combobox);
8
8
  class = computed(() => cn('text-muted-foreground pointer-events-none size-4 shrink-0 transition-transform duration-150', this.combobox.expanded() && 'rotate-180', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectTriggerIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectTriggerIcon, isStandalone: true, selector: "svg[scSelectTriggerIcon]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-trigger-icon" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectTriggerIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectTriggerIcon, isStandalone: true, selector: "svg[scSelectTriggerIcon]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-trigger-icon" }, properties: { "class": "class()" } }, ngImport: i0 });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectTriggerIcon, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectTriggerIcon, decorators: [{
13
13
  type: Directive,
14
14
  args: [{
15
15
  selector: 'svg[scSelectTriggerIcon]',
@@ -9,12 +9,12 @@ import * as i0 from "@angular/core";
9
9
  export class ScSelectTrigger {
10
10
  elementRef = inject(ElementRef);
11
11
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
12
- ariaLabel = input('', { ...(ngDevMode ? { debugName: "ariaLabel" } : {}), alias: 'aria-label' });
13
12
  select = inject(forwardRef(() => ScSelect));
13
+ ariaLabel = computed(() => this.select.ariaLabel(), ...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
14
14
  placeholder = computed(() => this.select.placeholder(), ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
15
- class = computed(() => cn('border-input dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 flex h-8 w-full items-center justify-between gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors select-none outline-none focus-visible:ring-3 has-[[aria-disabled=true]]:cursor-not-allowed has-[[aria-disabled=true]]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
16
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectTrigger, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectTrigger, isStandalone: true, selector: "div[scSelectTrigger]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-trigger" }, properties: { "class": "class()" } }, ngImport: i0, template: `
15
+ class = computed(() => cn('border-input dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 flex h-8 w-full items-center justify-between gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors select-none outline-none focus-visible:ring-3 has-aria-disabled:cursor-not-allowed has-aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:data-[slot=select-label]:line-clamp-1 *:data-[slot=select-label]:flex *:data-[slot=select-label]:items-center *:data-[slot=select-label]:gap-1.5', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectTrigger, deps: [], target: i0.ɵɵFactoryTarget.Component });
17
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectTrigger, isStandalone: true, selector: "div[scSelectTrigger]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-trigger" }, properties: { "class": "class()" } }, ngImport: i0, template: `
18
18
  <ng-content />
19
19
  <input
20
20
  scSelectInput
@@ -22,9 +22,9 @@ export class ScSelectTrigger {
22
22
  [placeholder]="placeholder()"
23
23
  />
24
24
  <svg scSelectTriggerIcon siChevronDownIcon aria-hidden="true"></svg>
25
- `, isInline: true, dependencies: [{ kind: "component", type: ScSelectInput, selector: "input[scSelectInput]", inputs: ["class"] }, { kind: "directive", type: ScSelectTriggerIcon, selector: "svg[scSelectTriggerIcon]", inputs: ["class"] }, { kind: "component", type: SiChevronDownIcon, selector: "svg[siChevronDownIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
25
+ `, isInline: true, dependencies: [{ kind: "component", type: ScSelectInput, selector: "input[scSelectInput]", inputs: ["class"] }, { kind: "directive", type: ScSelectTriggerIcon, selector: "svg[scSelectTriggerIcon]", inputs: ["class"] }, { kind: "component", type: SiChevronDownIcon, selector: "svg[siChevronDownIcon]", inputs: ["ariaHidden", "width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectTrigger, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectTrigger, decorators: [{
28
28
  type: Component,
29
29
  args: [{
30
30
  selector: 'div[scSelectTrigger]',
@@ -45,5 +45,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImpor
45
45
  encapsulation: ViewEncapsulation.None,
46
46
  changeDetection: ChangeDetectionStrategy.OnPush,
47
47
  }]
48
- }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }] } });
48
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
49
49
  //# sourceMappingURL=select-trigger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-trigger.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAqC5D,2CAA2C;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;;AAjBpC,MAAM,OAAO,eAAe;IACjB,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IACzD,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,SAAS,GAAG,KAAK,CAAS,EAAE,sDAAI,KAAK,EAAE,YAAY,GAAG,CAAC;IAE/C,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpD,WAAW,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,uDAAC,CAAC;IAE9C,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,gkBAAgkB,EAChkB,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAbS,eAAe;2FAAf,eAAe,gcAhBhB;;;;;;;;GAQT,4DATS,aAAa,oFAAE,mBAAmB,wFAAE,iBAAiB;;2FAiBpD,eAAe;kBAnB3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,OAAO,EAAE,CAAC,aAAa,EAAE,mBAAmB,EAAE,iBAAiB,CAAC;oBAChE,QAAQ,EAAE;;;;;;;;GAQT;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,gBAAgB;wBAC7B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n forwardRef,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SiChevronDownIcon } from '@semantic-icons/lucide-icons';\nimport { cn } from '../../utils';\n\nimport { ScSelectInput } from './select-input';\nimport { ScSelectTriggerIcon } from './select-trigger-icon';\n\n@Component({\n selector: 'div[scSelectTrigger]',\n imports: [ScSelectInput, ScSelectTriggerIcon, SiChevronDownIcon],\n template: `\n <ng-content />\n <input\n scSelectInput\n [attr.aria-label]=\"ariaLabel()\"\n [placeholder]=\"placeholder()\"\n />\n <svg scSelectTriggerIcon siChevronDownIcon aria-hidden=\"true\"></svg>\n `,\n host: {\n 'data-slot': 'select-trigger',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectTrigger {\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly classInput = input<string>('', { alias: 'class' });\n readonly ariaLabel = input<string>('', { alias: 'aria-label' });\n\n private readonly select = inject(forwardRef(() => ScSelect));\n readonly placeholder = computed(() => this.select.placeholder());\n\n protected readonly class = computed(() =>\n cn(\n 'border-input dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 flex h-8 w-full items-center justify-between gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors select-none outline-none focus-visible:ring-3 has-[[aria-disabled=true]]:cursor-not-allowed has-[[aria-disabled=true]]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5',\n this.classInput(),\n ),\n );\n}\n\n// Lazy import to avoid circular dependency\nimport { ScSelect } from './select';\n"]}
1
+ {"version":3,"file":"select-trigger.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAqC5D,2CAA2C;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;;AAjBpC,MAAM,OAAO,eAAe;IACjB,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IACzD,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAE3C,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IACpD,SAAS,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,qDAAC,CAAC;IACpD,WAAW,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,uDAAC,CAAC;IAE9C,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,8iBAA8iB,EAC9iB,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAbS,eAAe;2FAAf,eAAe,2TAhBhB;;;;;;;;GAQT,4DATS,aAAa,oFAAE,mBAAmB,wFAAE,iBAAiB;;2FAiBpD,eAAe;kBAnB3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,OAAO,EAAE,CAAC,aAAa,EAAE,mBAAmB,EAAE,iBAAiB,CAAC;oBAChE,QAAQ,EAAE;;;;;;;;GAQT;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,gBAAgB;wBAC7B,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n forwardRef,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SiChevronDownIcon } from '@semantic-icons/lucide-icons';\nimport { cn } from '../../utils';\n\nimport { ScSelectInput } from './select-input';\nimport { ScSelectTriggerIcon } from './select-trigger-icon';\n\n@Component({\n selector: 'div[scSelectTrigger]',\n imports: [ScSelectInput, ScSelectTriggerIcon, SiChevronDownIcon],\n template: `\n <ng-content />\n <input\n scSelectInput\n [attr.aria-label]=\"ariaLabel()\"\n [placeholder]=\"placeholder()\"\n />\n <svg scSelectTriggerIcon siChevronDownIcon aria-hidden=\"true\"></svg>\n `,\n host: {\n 'data-slot': 'select-trigger',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectTrigger {\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly classInput = input<string>('', { alias: 'class' });\n\n private readonly select = inject(forwardRef(() => ScSelect));\n readonly ariaLabel = computed(() => this.select.ariaLabel());\n readonly placeholder = computed(() => this.select.placeholder());\n\n protected readonly class = computed(() =>\n cn(\n 'border-input dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 flex h-8 w-full items-center justify-between gap-1.5 rounded-lg border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors select-none outline-none focus-visible:ring-3 has-aria-disabled:cursor-not-allowed has-aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:data-[slot=select-label]:line-clamp-1 *:data-[slot=select-label]:flex *:data-[slot=select-label]:items-center *:data-[slot=select-label]:gap-1.5',\n this.classInput(),\n ),\n );\n}\n\n// Lazy import to avoid circular dependency\nimport { ScSelect } from './select';\n"]}
@@ -12,14 +12,24 @@ import * as i1 from "@angular/aria/combobox";
12
12
  import * as i2 from "@angular/cdk/overlay";
13
13
  export class ScSelect {
14
14
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
15
- placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
16
- value = model('', ...(ngDevMode ? [{ debugName: "value" }] : []));
15
+ placeholder = input.required(...(ngDevMode ? [{ debugName: "placeholder" }] : []));
16
+ ariaLabel = input.required({ ...(ngDevMode ? { debugName: "ariaLabel" } : {}), alias: 'aria-label' });
17
+ value = model(undefined, ...(ngDevMode ? [{ debugName: "value" }] : []));
17
18
  trigger = contentChild(ScSelectTrigger, ...(ngDevMode ? [{ debugName: "trigger" }] : []));
18
19
  content = contentChild(ScSelectList, { ...(ngDevMode ? { debugName: "content" } : {}), descendants: true });
19
20
  selectPortal = contentChild.required(ScSelectPortal);
20
21
  origin = computed(() => this.trigger()?.elementRef, ...(ngDevMode ? [{ debugName: "origin" }] : []));
21
22
  values = computed(() => this.content()?.values() ?? [], ...(ngDevMode ? [{ debugName: "values" }] : []));
22
- displayValue = computed(() => this.value() || this.placeholder(), ...(ngDevMode ? [{ debugName: "displayValue" }] : []));
23
+ label = computed(() => {
24
+ const value = this.value();
25
+ if (value == null)
26
+ return this.placeholder();
27
+ const list = this.content();
28
+ if (list) {
29
+ return list.labelForValue(value);
30
+ }
31
+ return String(value);
32
+ }, ...(ngDevMode ? [{ debugName: "label" }] : []));
23
33
  class = computed(() => cn('relative min-w-36 w-fit', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
24
34
  combobox = inject(Combobox);
25
35
  constructor() {
@@ -27,17 +37,16 @@ export class ScSelect {
27
37
  // Sync listbox selection → model
28
38
  effect(() => {
29
39
  const vals = this.values();
30
- const selected = vals.length > 0 ? String(vals[0]) : '';
40
+ const selected = vals.length > 0 ? vals[0] : undefined;
31
41
  this.value.set(selected);
32
42
  });
33
43
  }
34
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: ScSelect, isStandalone: true, selector: "div[scSelect]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "data-slot": "select" }, properties: { "class": "class()" } }, queries: [{ propertyName: "trigger", first: true, predicate: ScSelectTrigger, descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: ScSelectList, descendants: true, isSignal: true }, { propertyName: "selectPortal", first: true, predicate: ScSelectPortal, descendants: true, isSignal: true }], exportAs: ["scSelect"], hostDirectives: [{ directive: i1.Combobox }], ngImport: i0, template: `
44
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
45
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: ScSelect, isStandalone: true, selector: "div[scSelect]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "data-slot": "select" }, properties: { "class": "class()" } }, queries: [{ propertyName: "trigger", first: true, predicate: ScSelectTrigger, descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: ScSelectList, descendants: true, isSignal: true }, { propertyName: "selectPortal", first: true, predicate: ScSelectPortal, descendants: true, isSignal: true }], exportAs: ["scSelect"], hostDirectives: [{ directive: i1.Combobox, inputs: ["disabled", "disabled"] }], ngImport: i0, template: `
36
46
  <ng-content />
37
47
  <ng-template ngComboboxPopupContainer>
38
48
  @if (origin(); as origin) {
39
49
  <ng-template
40
- cdkConnectedOverlay
41
50
  [cdkConnectedOverlay]="{
42
51
  origin,
43
52
  usePopover: 'inline',
@@ -51,7 +60,7 @@ export class ScSelect {
51
60
  </ng-template>
52
61
  `, isInline: true, dependencies: [{ kind: "directive", type: ComboboxPopupContainer, selector: "ng-template[ngComboboxPopupContainer]", exportAs: ["ngComboboxPopupContainer"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
53
62
  }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelect, decorators: [{
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelect, decorators: [{
55
64
  type: Component,
56
65
  args: [{
57
66
  selector: 'div[scSelect]',
@@ -60,6 +69,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImpor
60
69
  hostDirectives: [
61
70
  {
62
71
  directive: Combobox,
72
+ inputs: ['disabled'],
63
73
  },
64
74
  ],
65
75
  template: `
@@ -67,7 +77,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImpor
67
77
  <ng-template ngComboboxPopupContainer>
68
78
  @if (origin(); as origin) {
69
79
  <ng-template
70
- cdkConnectedOverlay
71
80
  [cdkConnectedOverlay]="{
72
81
  origin,
73
82
  usePopover: 'inline',
@@ -87,7 +96,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImpor
87
96
  encapsulation: ViewEncapsulation.None,
88
97
  changeDetection: ChangeDetectionStrategy.OnPush,
89
98
  }]
90
- }], ctorParameters: () => [], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], trigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ScSelectTrigger), { isSignal: true }] }], content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ScSelectList), { ...{
99
+ }], ctorParameters: () => [], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], trigger: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ScSelectTrigger), { isSignal: true }] }], content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ScSelectList), { ...{
91
100
  descendants: true,
92
101
  }, isSignal: true }] }], selectPortal: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ScSelectPortal), { isSignal: true }] }] } });
93
102
  //# sourceMappingURL=select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,MAAM,EACN,KAAK,EACL,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;;;;AAoCnD,MAAM,OAAO,QAAQ;IACV,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,WAAW,GAAG,KAAK,CAAS,EAAE,uDAAC,CAAC;IAChC,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC,CAAC;IAElB,OAAO,GAAG,YAAY,CAAC,eAAe,mDAAC,CAAC;IACxC,OAAO,GAAG,YAAY,CAAC,YAAY,oDAClD,WAAW,EAAE,IAAI,GACjB,CAAC;IACgB,YAAY,GAAG,YAAY,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAE/D,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,UAAU,kDAAC,CAAC;IACpD,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kDAAC,CAAC;IACxD,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE,wDAAC,CAAC;IACxD,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,yBAAyB,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDACjD,CAAC;IAEiB,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAE/C;QACE,MAAM,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;QAEhE,iCAAiC;QACjC,MAAM,CAAC,GAAG,EAAE;YACV,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACxD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;uGA7BU,QAAQ;2FAAR,QAAQ,snBAKqB,eAAe,0FACf,YAAY,+FAGI,cAAc,sIAlC5D;;;;;;;;;;;;;;;;;GAiBT,4DAvBmB,sBAAsB,yHAAE,aAAa,0nCAAE,gBAAgB;;2FA+BhE,QAAQ;kBAlCpB,SAAS;mBAAC;oBACT,QAAQ,EAAE,eAAe;oBACzB,QAAQ,EAAE,UAAU;oBACpB,OAAO,EAAE,CAAC,QAAQ,EAAE,sBAAsB,EAAE,aAAa,EAAE,gBAAgB,CAAC;oBAC5E,cAAc,EAAE;wBACd;4BACE,SAAS,EAAE,QAAQ;yBACpB;qBACF;oBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;GAiBT;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,QAAQ;wBACrB,SAAS,EAAE,SAAS;qBACrB;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;icAMyC,eAAe,yFACf,YAAY,QAAE;4BACpD,WAAW,EAAE,IAAI;yBAClB,2FACuD,cAAc","sourcesContent":["import { Combobox, ComboboxPopupContainer } from '@angular/aria/combobox';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SIGNAL, signalSetFn } from '@angular/core/primitives/signals';\nimport type { FormValueControl } from '@angular/forms/signals';\nimport { cn } from '../../utils';\nimport { ScSelectList } from './select-list';\nimport { ScSelectPortal } from './select-portal';\nimport { ScSelectTrigger } from './select-trigger';\n\n@Component({\n selector: 'div[scSelect]',\n exportAs: 'scSelect',\n imports: [Combobox, ComboboxPopupContainer, OverlayModule, NgTemplateOutlet],\n hostDirectives: [\n {\n directive: Combobox,\n },\n ],\n template: `\n <ng-content />\n <ng-template ngComboboxPopupContainer>\n @if (origin(); as origin) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlay]=\"{\n origin,\n usePopover: 'inline',\n matchWidth: true,\n }\"\n [cdkConnectedOverlayOpen]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"selectPortal().templateRef\" />\n </ng-template>\n }\n </ng-template>\n `,\n host: {\n 'data-slot': 'select',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelect implements FormValueControl<string> {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly placeholder = input<string>('');\n readonly value = model<string>('');\n\n private readonly trigger = contentChild(ScSelectTrigger);\n private readonly content = contentChild(ScSelectList, {\n descendants: true,\n });\n protected readonly selectPortal = contentChild.required(ScSelectPortal);\n\n readonly origin = computed(() => this.trigger()?.elementRef);\n readonly values = computed(() => this.content()?.values() ?? []);\n readonly displayValue = computed(() => this.value() || this.placeholder());\n protected readonly class = computed(() =>\n cn('relative min-w-36 w-fit', this.classInput()),\n );\n\n protected readonly combobox = inject(Combobox);\n\n constructor() {\n effect(() => signalSetFn(this.combobox.readonly[SIGNAL], true));\n\n // Sync listbox selection → model\n effect(() => {\n const vals = this.values();\n const selected = vals.length > 0 ? String(vals[0]) : '';\n this.value.set(selected);\n });\n }\n}\n"]}
1
+ {"version":3,"file":"select.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select.ts"],"names":[],"mappings":"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","sourcesContent":["import { Combobox, ComboboxPopupContainer } from '@angular/aria/combobox';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n effect,\n inject,\n input,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SIGNAL, signalSetFn } from '@angular/core/primitives/signals';\nimport type { FormValueControl } from '@angular/forms/signals';\nimport { cn } from '../../utils';\nimport { ScSelectList } from './select-list';\nimport { ScSelectPortal } from './select-portal';\nimport { ScSelectTrigger } from './select-trigger';\n\n@Component({\n selector: 'div[scSelect]',\n exportAs: 'scSelect',\n imports: [Combobox, ComboboxPopupContainer, OverlayModule, NgTemplateOutlet],\n hostDirectives: [\n {\n directive: Combobox,\n inputs: ['disabled'],\n },\n ],\n template: `\n <ng-content />\n <ng-template ngComboboxPopupContainer>\n @if (origin(); as origin) {\n <ng-template\n [cdkConnectedOverlay]=\"{\n origin,\n usePopover: 'inline',\n matchWidth: true,\n }\"\n [cdkConnectedOverlayOpen]=\"true\"\n >\n <ng-container [ngTemplateOutlet]=\"selectPortal().templateRef\" />\n </ng-template>\n }\n </ng-template>\n `,\n host: {\n 'data-slot': 'select',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelect implements FormValueControl<unknown> {\n readonly classInput = input<string>('', { alias: 'class' });\n readonly placeholder = input.required<string>();\n readonly ariaLabel = input.required<string>({ alias: 'aria-label' });\n readonly value = model<unknown>(undefined);\n\n private readonly trigger = contentChild(ScSelectTrigger);\n private readonly content = contentChild(ScSelectList, {\n descendants: true,\n });\n protected readonly selectPortal = contentChild.required(ScSelectPortal);\n\n readonly origin = computed(() => this.trigger()?.elementRef);\n readonly values = computed(() => this.content()?.values() ?? []);\n readonly label = computed(() => {\n const value = this.value();\n if (value == null) return this.placeholder();\n const list = this.content();\n if (list) {\n return list.labelForValue(value);\n }\n return String(value);\n });\n protected readonly class = computed(() =>\n cn('relative min-w-36 w-fit', this.classInput()),\n );\n\n protected readonly combobox = inject(Combobox);\n\n constructor() {\n effect(() => signalSetFn(this.combobox.readonly[SIGNAL], true));\n\n // Sync listbox selection → model\n effect(() => {\n const vals = this.values();\n const selected = vals.length > 0 ? vals[0] : undefined;\n this.value.set(selected);\n });\n }\n}\n"]}
@@ -6,10 +6,10 @@ export class ScSeparator {
6
6
  orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : []));
7
7
  decorative = input(true, ...(ngDevMode ? [{ debugName: "decorative" }] : []));
8
8
  class = computed(() => cn('shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSeparator, isStandalone: true, selector: "div[scSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "separator" }, properties: { "attr.role": "decorative() ? \"none\" : \"separator\"", "attr.aria-orientation": "decorative() ? null : orientation()", "attr.aria-hidden": "decorative() ? \"true\" : null", "attr.data-orientation": "orientation()", "class": "class()" } }, ngImport: i0 });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSeparator, isStandalone: true, selector: "div[scSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "separator" }, properties: { "attr.role": "decorative() ? \"none\" : \"separator\"", "attr.aria-orientation": "decorative() ? null : orientation()", "attr.aria-hidden": "decorative() ? \"true\" : null", "attr.data-orientation": "orientation()", "class": "class()" } }, ngImport: i0 });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSeparator, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSeparator, decorators: [{
13
13
  type: Directive,
14
14
  args: [{
15
15
  selector: 'div[scSeparator]',
@@ -12,10 +12,10 @@ export class ScSheetClose {
12
12
  closeSheet() {
13
13
  this.sheetProvider.open.set(false);
14
14
  }
15
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSheetClose, isStandalone: true, selector: "button[scSheetClose]", 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 } }, host: { attributes: { "data-slot": "sheet-close" }, listeners: { "click": "closeSheet()" }, properties: { "class": "class()" } }, ngImport: i0 });
15
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSheetClose, isStandalone: true, selector: "button[scSheetClose]", 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 } }, host: { attributes: { "data-slot": "sheet-close" }, listeners: { "click": "closeSheet()" }, properties: { "class": "class()" } }, ngImport: i0 });
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetClose, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetClose, decorators: [{
19
19
  type: Directive,
20
20
  args: [{
21
21
  selector: 'button[scSheetClose]',
@@ -6,10 +6,10 @@ export class ScSheetDescription {
6
6
  sheet = inject(ScSheet);
7
7
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
8
8
  class = computed(() => cn('text-muted-foreground text-sm', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSheetDescription, isStandalone: true, selector: "p[scSheetDescription]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-description" }, properties: { "id": "sheet.descriptionId", "class": "class()" } }, ngImport: i0 });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSheetDescription, isStandalone: true, selector: "p[scSheetDescription]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-description" }, properties: { "id": "sheet.descriptionId", "class": "class()" } }, ngImport: i0 });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetDescription, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetDescription, decorators: [{
13
13
  type: Directive,
14
14
  args: [{
15
15
  selector: 'p[scSheetDescription]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScSheetFooter {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSheetFooter, isStandalone: true, selector: "div[scSheetFooter]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-footer" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSheetFooter, isStandalone: true, selector: "div[scSheetFooter]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-footer" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetFooter, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetFooter, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scSheetFooter]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScSheetHeader {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('flex flex-col gap-2 text-center sm:text-left', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSheetHeader, isStandalone: true, selector: "div[scSheetHeader]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-header" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSheetHeader, isStandalone: true, selector: "div[scSheetHeader]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-header" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetHeader, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetHeader, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scSheetHeader]',
@@ -2,10 +2,10 @@ import { Directive, inject, TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class ScSheetPortal {
4
4
  templateRef = inject(TemplateRef);
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScSheetPortal, isStandalone: true, selector: "ng-template[scSheetPortal]", ngImport: i0 });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: ScSheetPortal, isStandalone: true, selector: "ng-template[scSheetPortal]", ngImport: i0 });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetPortal, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetPortal, decorators: [{
9
9
  type: Directive,
10
10
  args: [{
11
11
  selector: 'ng-template[scSheetPortal]',
@@ -83,8 +83,8 @@ export class ScSheetProvider {
83
83
  closeSheet() {
84
84
  this.open.set(false);
85
85
  }
86
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetProvider, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.1.5", type: ScSheetProvider, isStandalone: true, selector: "div[scSheetProvider]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { attributes: { "data-slot": "sheet-provider" }, properties: { "class": "class()" } }, queries: [{ propertyName: "sheetPortal", first: true, predicate: ScSheetPortal, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "overlayTemplate", first: true, predicate: ["overlayTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: `
86
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetProvider, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.0", type: ScSheetProvider, isStandalone: true, selector: "div[scSheetProvider]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { attributes: { "data-slot": "sheet-provider" }, properties: { "class": "class()" } }, queries: [{ propertyName: "sheetPortal", first: true, predicate: ScSheetPortal, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "overlayTemplate", first: true, predicate: ["overlayTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: `
88
88
  <ng-content />
89
89
  <ng-template #overlayTemplate>
90
90
  <div
@@ -98,7 +98,7 @@ export class ScSheetProvider {
98
98
  </ng-template>
99
99
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: OverlayModule }, { kind: "component", type: ScBackdrop, selector: "div[scBackdrop]", inputs: ["class", "open"], outputs: ["animationComplete"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
100
100
  }
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetProvider, decorators: [{
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetProvider, decorators: [{
102
102
  type: Component,
103
103
  args: [{
104
104
  selector: 'div[scSheetProvider]',
@@ -6,10 +6,10 @@ export class ScSheetTitle {
6
6
  sheet = inject(ScSheet);
7
7
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
8
8
  class = computed(() => cn('text-lg font-semibold text-foreground', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSheetTitle, isStandalone: true, selector: "h2[scSheetTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-title" }, properties: { "id": "sheet.titleId", "class": "class()" } }, ngImport: i0 });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSheetTitle, isStandalone: true, selector: "h2[scSheetTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-title" }, properties: { "id": "sheet.titleId", "class": "class()" } }, ngImport: i0 });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetTitle, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetTitle, decorators: [{
13
13
  type: Directive,
14
14
  args: [{
15
15
  selector: 'h2[scSheetTitle]',
@@ -9,10 +9,10 @@ export class ScSheetTrigger {
9
9
  openSheet() {
10
10
  this.sheetProvider.open.set(true);
11
11
  }
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSheetTrigger, isStandalone: true, selector: "button[scSheetTrigger]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-trigger" }, listeners: { "click": "openSheet()" }, properties: { "class": "class()", "attr.aria-haspopup": "\"dialog\"", "attr.aria-expanded": "sheetProvider.open()" } }, ngImport: i0 });
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSheetTrigger, isStandalone: true, selector: "button[scSheetTrigger]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet-trigger" }, listeners: { "click": "openSheet()" }, properties: { "class": "class()", "attr.aria-haspopup": "\"dialog\"", "attr.aria-expanded": "sheetProvider.open()" } }, ngImport: i0 });
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheetTrigger, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheetTrigger, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
18
  selector: 'button[scSheetTrigger]',
@@ -31,12 +31,12 @@ export class ScSheet {
31
31
  this.sheetProvider.onSheetAnimationComplete();
32
32
  }
33
33
  }
34
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheet, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSheet, isStandalone: true, selector: "div[scSheet]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet", "role": "dialog", "aria-modal": "true" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "attr.aria-labelledby": "titleId", "attr.aria-describedby": "descriptionId", "attr.data-side": "sheetProvider.side()", "attr.data-idle": "state() === \"idle\" ? \"\" : null", "attr.data-open": "state() === \"open\" ? \"\" : null", "attr.data-closed": "state() === \"closed\" ? \"\" : null", "class": "class()", "tabindex": "-1" } }, ngImport: i0, template: `
34
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheet, deps: [], target: i0.ɵɵFactoryTarget.Component });
35
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScSheet, isStandalone: true, selector: "div[scSheet]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sheet", "role": "dialog", "aria-modal": "true" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "attr.aria-labelledby": "titleId", "attr.aria-describedby": "descriptionId", "attr.data-side": "sheetProvider.side()", "attr.data-idle": "state() === \"idle\" ? \"\" : null", "attr.data-open": "state() === \"open\" ? \"\" : null", "attr.data-closed": "state() === \"closed\" ? \"\" : null", "class": "class()", "tabindex": "-1" } }, ngImport: i0, template: `
36
36
  <ng-content />
37
37
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
38
38
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSheet, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSheet, decorators: [{
40
40
  type: Component,
41
41
  args: [{
42
42
  selector: 'div[scSheet]',
@@ -0,0 +1,28 @@
1
+ export { ScSidebarProvider } from './sidebar-provider';
2
+ export { ScSidebar } from './sidebar';
3
+ export { ScSidebarContainer } from './sidebar-container';
4
+ export { ScSidebarGap } from './sidebar-gap';
5
+ export { ScSidebarInner } from './sidebar-inner';
6
+ export { ScSidebarTrigger } from './sidebar-trigger';
7
+ export { ScSidebarRail } from './sidebar-rail';
8
+ export { ScSidebarInset } from './sidebar-inset';
9
+ export { ScSidebarHeader } from './sidebar-header';
10
+ export { ScSidebarFooter } from './sidebar-footer';
11
+ export { ScSidebarBody } from './sidebar-body';
12
+ export { ScSidebarSeparator } from './sidebar-separator';
13
+ export { ScSidebarInput } from './sidebar-input';
14
+ export { ScSidebarGroup } from './sidebar-group';
15
+ export { ScSidebarGroupLabel } from './sidebar-group-label';
16
+ export { ScSidebarGroupAction } from './sidebar-group-action';
17
+ export { ScSidebarGroupContent } from './sidebar-group-content';
18
+ export { ScSidebarMenu } from './sidebar-menu';
19
+ export { ScSidebarMenuItem } from './sidebar-menu-item';
20
+ export { ScSidebarMenuButton } from './sidebar-menu-button';
21
+ export { ScSidebarMenuAction } from './sidebar-menu-action';
22
+ export { ScSidebarMenuBadge } from './sidebar-menu-badge';
23
+ export { ScSidebarMenuSkeleton } from './sidebar-menu-skeleton';
24
+ export { ScSidebarMenuSub } from './sidebar-menu-sub';
25
+ export { ScSidebarMenuSubItem } from './sidebar-menu-sub-item';
26
+ export { ScSidebarMenuSubButton } from './sidebar-menu-sub-button';
27
+ export { ScSidebarState } from './sidebar-state';
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { ScSidebarProvider } from './sidebar-provider';\nexport { ScSidebar } from './sidebar';\nexport { ScSidebarContainer } from './sidebar-container';\nexport { ScSidebarGap } from './sidebar-gap';\nexport { ScSidebarInner } from './sidebar-inner';\nexport { ScSidebarTrigger } from './sidebar-trigger';\nexport { ScSidebarRail } from './sidebar-rail';\nexport { ScSidebarInset } from './sidebar-inset';\nexport { ScSidebarHeader } from './sidebar-header';\nexport { ScSidebarFooter } from './sidebar-footer';\nexport { ScSidebarBody } from './sidebar-body';\nexport { ScSidebarSeparator } from './sidebar-separator';\nexport { ScSidebarInput } from './sidebar-input';\nexport { ScSidebarGroup } from './sidebar-group';\nexport { ScSidebarGroupLabel } from './sidebar-group-label';\nexport { ScSidebarGroupAction } from './sidebar-group-action';\nexport { ScSidebarGroupContent } from './sidebar-group-content';\nexport { ScSidebarMenu } from './sidebar-menu';\nexport { ScSidebarMenuItem } from './sidebar-menu-item';\nexport { ScSidebarMenuButton } from './sidebar-menu-button';\nexport { ScSidebarMenuAction } from './sidebar-menu-action';\nexport { ScSidebarMenuBadge } from './sidebar-menu-badge';\nexport { ScSidebarMenuSkeleton } from './sidebar-menu-skeleton';\nexport { ScSidebarMenuSub } from './sidebar-menu-sub';\nexport { ScSidebarMenuSubItem } from './sidebar-menu-sub-item';\nexport { ScSidebarMenuSubButton } from './sidebar-menu-sub-button';\nexport { ScSidebarState } from './sidebar-state';\n"]}
@@ -0,0 +1,20 @@
1
+ import { Directive, computed, input } from '@angular/core';
2
+ import { cn } from '../../utils';
3
+ import * as i0 from "@angular/core";
4
+ export class ScSidebarBody {
5
+ classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
+ class = computed(() => cn('no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSidebarBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSidebarBody, isStandalone: true, selector: "div[scSidebarBody]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "sidebar-body" }, properties: { "class": "class()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSidebarBody, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: 'div[scSidebarBody]',
14
+ host: {
15
+ 'data-slot': 'sidebar-body',
16
+ '[class]': 'class()',
17
+ },
18
+ }]
19
+ }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
20
+ //# sourceMappingURL=sidebar-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-body.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/sidebar/sidebar-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,aAAa;IACf,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,6GAA6G,EAC7G,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,aAAa;2FAAb,aAAa;;2FAAb,aAAa;kBAPzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,IAAI,EAAE;wBACJ,WAAW,EAAE,cAAc;wBAC3B,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { Directive, computed, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: 'div[scSidebarBody]',\n host: {\n 'data-slot': 'sidebar-body',\n '[class]': 'class()',\n },\n})\nexport class ScSidebarBody {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden',\n this.classInput(),\n ),\n );\n}\n"]}