@semantic-components/ui 0.68.0 → 0.69.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 (274) 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 +3 -3
  37. package/esm2022/lib/components/breadcrumb/breadcrumb-page.js +3 -3
  38. package/esm2022/lib/components/breadcrumb/breadcrumb-separator.js +4 -4
  39. package/esm2022/lib/components/breadcrumb/breadcrumb.js +3 -3
  40. package/esm2022/lib/components/button/button.js +3 -3
  41. package/esm2022/lib/components/button-group/button-group-separator.js +3 -3
  42. package/esm2022/lib/components/button-group/button-group-text.js +3 -3
  43. package/esm2022/lib/components/button-group/button-group.js +3 -3
  44. package/esm2022/lib/components/calendar/calendar-day-view.js +4 -4
  45. package/esm2022/lib/components/calendar/calendar-header.js +4 -4
  46. package/esm2022/lib/components/calendar/calendar-header.js.map +1 -1
  47. package/esm2022/lib/components/calendar/calendar-month-view.js +4 -4
  48. package/esm2022/lib/components/calendar/calendar-year-view.js +4 -4
  49. package/esm2022/lib/components/calendar/calendar.js +3 -3
  50. package/esm2022/lib/components/card/card-action.js +3 -3
  51. package/esm2022/lib/components/card/card-body.js +3 -3
  52. package/esm2022/lib/components/card/card-description.js +3 -3
  53. package/esm2022/lib/components/card/card-footer.js +3 -3
  54. package/esm2022/lib/components/card/card-header.js +3 -3
  55. package/esm2022/lib/components/card/card-title.js +3 -3
  56. package/esm2022/lib/components/card/card.js +3 -3
  57. package/esm2022/lib/components/checkbox/checkbox-field.js +3 -3
  58. package/esm2022/lib/components/checkbox/checkbox-visual.js +4 -4
  59. package/esm2022/lib/components/checkbox/checkbox-visual.js.map +1 -1
  60. package/esm2022/lib/components/checkbox/checkbox.js +3 -3
  61. package/esm2022/lib/components/collapsible/collapsible-body.js +3 -3
  62. package/esm2022/lib/components/collapsible/collapsible-content.js +3 -3
  63. package/esm2022/lib/components/collapsible/collapsible-panel.js +3 -3
  64. package/esm2022/lib/components/collapsible/collapsible-trigger.js +3 -3
  65. package/esm2022/lib/components/collapsible/collapsible.js +3 -3
  66. package/esm2022/lib/components/date-picker/date-picker.js +4 -4
  67. package/esm2022/lib/components/dialog/dialog-close.js +3 -3
  68. package/esm2022/lib/components/dialog/dialog-description.js +3 -3
  69. package/esm2022/lib/components/dialog/dialog-footer.js +3 -3
  70. package/esm2022/lib/components/dialog/dialog-header.js +3 -3
  71. package/esm2022/lib/components/dialog/dialog-portal.js +3 -3
  72. package/esm2022/lib/components/dialog/dialog-provider.js +3 -3
  73. package/esm2022/lib/components/dialog/dialog-title.js +3 -3
  74. package/esm2022/lib/components/dialog/dialog-trigger.js +3 -3
  75. package/esm2022/lib/components/dialog/dialog.js +3 -3
  76. package/esm2022/lib/components/drawer/drawer-close.js +3 -3
  77. package/esm2022/lib/components/drawer/drawer-description.js +3 -3
  78. package/esm2022/lib/components/drawer/drawer-footer.js +3 -3
  79. package/esm2022/lib/components/drawer/drawer-handle.js +3 -3
  80. package/esm2022/lib/components/drawer/drawer-header.js +3 -3
  81. package/esm2022/lib/components/drawer/drawer-portal.js +3 -3
  82. package/esm2022/lib/components/drawer/drawer-provider.js +3 -3
  83. package/esm2022/lib/components/drawer/drawer-title.js +3 -3
  84. package/esm2022/lib/components/drawer/drawer-trigger.js +3 -3
  85. package/esm2022/lib/components/drawer/drawer.js +3 -3
  86. package/esm2022/lib/components/empty/empty-body.js +3 -3
  87. package/esm2022/lib/components/empty/empty-description.js +3 -3
  88. package/esm2022/lib/components/empty/empty-header.js +3 -3
  89. package/esm2022/lib/components/empty/empty-media.js +3 -3
  90. package/esm2022/lib/components/empty/empty-title.js +3 -3
  91. package/esm2022/lib/components/empty/empty.js +3 -3
  92. package/esm2022/lib/components/field/field-body.js +3 -3
  93. package/esm2022/lib/components/field/field-description.js +3 -3
  94. package/esm2022/lib/components/field/field-error.js +3 -3
  95. package/esm2022/lib/components/field/field-group.js +3 -3
  96. package/esm2022/lib/components/field/field-separator.js +3 -3
  97. package/esm2022/lib/components/field/field-title.js +3 -3
  98. package/esm2022/lib/components/field/field.js +3 -3
  99. package/esm2022/lib/components/field/fieldset.js +3 -3
  100. package/esm2022/lib/components/field/legend.js +3 -3
  101. package/esm2022/lib/components/file-upload/file-upload-dropzone.js +3 -3
  102. package/esm2022/lib/components/file-upload/file-upload-item-delete.js +3 -3
  103. package/esm2022/lib/components/file-upload/file-upload-item-name.js +3 -3
  104. package/esm2022/lib/components/file-upload/file-upload-item-preview.js +3 -3
  105. package/esm2022/lib/components/file-upload/file-upload-item-progress.js +3 -3
  106. package/esm2022/lib/components/file-upload/file-upload-item-size.js +3 -3
  107. package/esm2022/lib/components/file-upload/file-upload-item.js +3 -3
  108. package/esm2022/lib/components/file-upload/file-upload-list.js +3 -3
  109. package/esm2022/lib/components/file-upload/file-upload-trigger.js +3 -3
  110. package/esm2022/lib/components/file-upload/file-upload.js +3 -3
  111. package/esm2022/lib/components/hover-card/hover-card-portal.js +3 -3
  112. package/esm2022/lib/components/hover-card/hover-card-provider.js +3 -3
  113. package/esm2022/lib/components/hover-card/hover-card-trigger.js +3 -3
  114. package/esm2022/lib/components/hover-card/hover-card.js +3 -3
  115. package/esm2022/lib/components/input/input.js +3 -3
  116. package/esm2022/lib/components/input-group/input-group-addon.js +3 -3
  117. package/esm2022/lib/components/input-group/input-group-button.js +3 -3
  118. package/esm2022/lib/components/input-group/input-group-text.js +3 -3
  119. package/esm2022/lib/components/input-group/input-group.js +3 -3
  120. package/esm2022/lib/components/item/item-actions.js +3 -3
  121. package/esm2022/lib/components/item/item-body.js +3 -3
  122. package/esm2022/lib/components/item/item-description.js +3 -3
  123. package/esm2022/lib/components/item/item-footer.js +3 -3
  124. package/esm2022/lib/components/item/item-group.js +3 -3
  125. package/esm2022/lib/components/item/item-header.js +3 -3
  126. package/esm2022/lib/components/item/item-media.js +3 -3
  127. package/esm2022/lib/components/item/item-separator.js +3 -3
  128. package/esm2022/lib/components/item/item-title.js +3 -3
  129. package/esm2022/lib/components/item/item.js +3 -3
  130. package/esm2022/lib/components/kbd/kbd-group.js +3 -3
  131. package/esm2022/lib/components/kbd/kbd.js +3 -3
  132. package/esm2022/lib/components/label/label.js +3 -3
  133. package/esm2022/lib/components/link/link.js +3 -3
  134. package/esm2022/lib/components/menu/menu-content.js +3 -3
  135. package/esm2022/lib/components/menu/menu-item.js +3 -3
  136. package/esm2022/lib/components/menu/menu-portal.js +3 -3
  137. package/esm2022/lib/components/menu/menu-provider.js +3 -3
  138. package/esm2022/lib/components/menu/menu-separator.js +3 -3
  139. package/esm2022/lib/components/menu/menu-trigger.js +3 -3
  140. package/esm2022/lib/components/menu/menu.js +4 -4
  141. package/esm2022/lib/components/menu/menu.js.map +1 -1
  142. package/esm2022/lib/components/menu-bar/menu-bar-item.js +3 -3
  143. package/esm2022/lib/components/menu-bar/menu-bar.js +3 -3
  144. package/esm2022/lib/components/native-select/native-select-container.js +3 -3
  145. package/esm2022/lib/components/native-select/native-select-icon.js +3 -3
  146. package/esm2022/lib/components/native-select/native-select-optgroup.js +3 -3
  147. package/esm2022/lib/components/native-select/native-select-option.js +3 -3
  148. package/esm2022/lib/components/native-select/native-select.js +3 -3
  149. package/esm2022/lib/components/navigation-menu/navigation-menu-content.js +3 -3
  150. package/esm2022/lib/components/navigation-menu/navigation-menu-grid.js +3 -3
  151. package/esm2022/lib/components/navigation-menu/navigation-menu-item.js +3 -3
  152. package/esm2022/lib/components/navigation-menu/navigation-menu-link.js +3 -3
  153. package/esm2022/lib/components/navigation-menu/navigation-menu-list.js +3 -3
  154. package/esm2022/lib/components/navigation-menu/navigation-menu-portal.js +3 -3
  155. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger-icon.js +3 -3
  156. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js +4 -4
  157. package/esm2022/lib/components/navigation-menu/navigation-menu-trigger.js.map +1 -1
  158. package/esm2022/lib/components/navigation-menu/navigation-menu.js +3 -3
  159. package/esm2022/lib/components/pagination/pagination-ellipsis.js +3 -3
  160. package/esm2022/lib/components/pagination/pagination-first.js +3 -3
  161. package/esm2022/lib/components/pagination/pagination-item.js +3 -3
  162. package/esm2022/lib/components/pagination/pagination-last.js +3 -3
  163. package/esm2022/lib/components/pagination/pagination-link.js +3 -3
  164. package/esm2022/lib/components/pagination/pagination-list.js +3 -3
  165. package/esm2022/lib/components/pagination/pagination-next.js +3 -3
  166. package/esm2022/lib/components/pagination/pagination-page-size-select.js +3 -3
  167. package/esm2022/lib/components/pagination/pagination-previous.js +3 -3
  168. package/esm2022/lib/components/pagination/pagination.js +3 -3
  169. package/esm2022/lib/components/popover/popover-close.js +3 -3
  170. package/esm2022/lib/components/popover/popover-description.js +3 -3
  171. package/esm2022/lib/components/popover/popover-header.js +3 -3
  172. package/esm2022/lib/components/popover/popover-portal.js +3 -3
  173. package/esm2022/lib/components/popover/popover-provider.js +3 -3
  174. package/esm2022/lib/components/popover/popover-title.js +3 -3
  175. package/esm2022/lib/components/popover/popover-trigger.js +3 -3
  176. package/esm2022/lib/components/popover/popover.js +3 -3
  177. package/esm2022/lib/components/progress/progress-indicator.js +3 -3
  178. package/esm2022/lib/components/progress/progress.js +3 -3
  179. package/esm2022/lib/components/radio-group/radio-field.js +3 -3
  180. package/esm2022/lib/components/radio-group/radio-group.js +3 -3
  181. package/esm2022/lib/components/radio-group/radio.js +3 -3
  182. package/esm2022/lib/components/range-slider/range-slider-max.js +3 -3
  183. package/esm2022/lib/components/range-slider/range-slider-min.js +3 -3
  184. package/esm2022/lib/components/range-slider/range-slider.js +3 -3
  185. package/esm2022/lib/components/scroll-area/scroll-area.js +3 -3
  186. package/esm2022/lib/components/select/index.js +1 -1
  187. package/esm2022/lib/components/select/index.js.map +1 -1
  188. package/esm2022/lib/components/select/select-group-label.js +3 -3
  189. package/esm2022/lib/components/select/select-group.js +3 -3
  190. package/esm2022/lib/components/select/select-input.js +3 -3
  191. package/esm2022/lib/components/select/select-item-icon.js +3 -3
  192. package/esm2022/lib/components/select/select-item-indicator.js +3 -3
  193. package/esm2022/lib/components/select/select-item.js +6 -4
  194. package/esm2022/lib/components/select/select-item.js.map +1 -1
  195. package/esm2022/lib/components/select/{select-value.js → select-label.js} +7 -7
  196. package/esm2022/lib/components/select/select-label.js.map +1 -0
  197. package/esm2022/lib/components/select/select-list.js +11 -5
  198. package/esm2022/lib/components/select/select-list.js.map +1 -1
  199. package/esm2022/lib/components/select/select-popup.js +3 -3
  200. package/esm2022/lib/components/select/select-portal.js +3 -3
  201. package/esm2022/lib/components/select/select-separator.js +3 -3
  202. package/esm2022/lib/components/select/select-trigger-icon.js +3 -3
  203. package/esm2022/lib/components/select/select-trigger.js +7 -7
  204. package/esm2022/lib/components/select/select-trigger.js.map +1 -1
  205. package/esm2022/lib/components/select/select.js +19 -8
  206. package/esm2022/lib/components/select/select.js.map +1 -1
  207. package/esm2022/lib/components/separator/separator.js +3 -3
  208. package/esm2022/lib/components/sheet/sheet-close.js +3 -3
  209. package/esm2022/lib/components/sheet/sheet-description.js +3 -3
  210. package/esm2022/lib/components/sheet/sheet-footer.js +3 -3
  211. package/esm2022/lib/components/sheet/sheet-header.js +3 -3
  212. package/esm2022/lib/components/sheet/sheet-portal.js +3 -3
  213. package/esm2022/lib/components/sheet/sheet-provider.js +3 -3
  214. package/esm2022/lib/components/sheet/sheet-title.js +3 -3
  215. package/esm2022/lib/components/sheet/sheet-trigger.js +3 -3
  216. package/esm2022/lib/components/sheet/sheet.js +3 -3
  217. package/esm2022/lib/components/skeleton/skeleton.js +3 -3
  218. package/esm2022/lib/components/slider/slider.js +3 -3
  219. package/esm2022/lib/components/spinner/spinner.js +3 -3
  220. package/esm2022/lib/components/switch/switch-field.js +3 -3
  221. package/esm2022/lib/components/switch/switch-visual.js +3 -3
  222. package/esm2022/lib/components/switch/switch.js +3 -3
  223. package/esm2022/lib/components/table/table-body.js +3 -3
  224. package/esm2022/lib/components/table/table-caption.js +3 -3
  225. package/esm2022/lib/components/table/table-cell.js +3 -3
  226. package/esm2022/lib/components/table/table-footer.js +3 -3
  227. package/esm2022/lib/components/table/table-header-cell.js +3 -3
  228. package/esm2022/lib/components/table/table-header.js +3 -3
  229. package/esm2022/lib/components/table/table-row.js +3 -3
  230. package/esm2022/lib/components/table/table.js +3 -3
  231. package/esm2022/lib/components/tabs/tab-content.js +3 -3
  232. package/esm2022/lib/components/tabs/tab-list.js +3 -3
  233. package/esm2022/lib/components/tabs/tab-panel.js +3 -3
  234. package/esm2022/lib/components/tabs/tab.js +3 -3
  235. package/esm2022/lib/components/tabs/tabs.js +3 -3
  236. package/esm2022/lib/components/textarea/textarea.js +3 -3
  237. package/esm2022/lib/components/time-picker/time-picker-hours-input.js +3 -3
  238. package/esm2022/lib/components/time-picker/time-picker-input.js +3 -3
  239. package/esm2022/lib/components/time-picker/time-picker-minutes-input.js +3 -3
  240. package/esm2022/lib/components/time-picker/time-picker-period-am.js +3 -3
  241. package/esm2022/lib/components/time-picker/time-picker-period-pm.js +3 -3
  242. package/esm2022/lib/components/time-picker/time-picker-period.js +3 -3
  243. package/esm2022/lib/components/time-picker/time-picker-seconds-input.js +3 -3
  244. package/esm2022/lib/components/time-picker/time-picker-separator.js +3 -3
  245. package/esm2022/lib/components/time-picker/time-picker.js +3 -3
  246. package/esm2022/lib/components/toast/toast-action.js +3 -3
  247. package/esm2022/lib/components/toast/toast-close.js +3 -3
  248. package/esm2022/lib/components/toast/toast-description.js +3 -3
  249. package/esm2022/lib/components/toast/toast-stack.js +4 -4
  250. package/esm2022/lib/components/toast/toast-stack.js.map +1 -1
  251. package/esm2022/lib/components/toast/toast-title.js +3 -3
  252. package/esm2022/lib/components/toast/toast.js +3 -3
  253. package/esm2022/lib/components/toast/toaster.js +3 -3
  254. package/esm2022/lib/components/toggle/toggle.js +3 -3
  255. package/esm2022/lib/components/toggle-group/toggle-group-item.js +3 -3
  256. package/esm2022/lib/components/toggle-group/toggle-group.js +3 -3
  257. package/esm2022/lib/components/toolbar/toolbar-separator.js +3 -3
  258. package/esm2022/lib/components/toolbar/toolbar-widget-group.js +3 -3
  259. package/esm2022/lib/components/toolbar/toolbar-widget.js +3 -3
  260. package/esm2022/lib/components/toolbar/toolbar.js +3 -3
  261. package/esm2022/lib/components/tooltip/tooltip-manager.js +3 -3
  262. package/esm2022/lib/components/tooltip/tooltip-trigger.js +3 -3
  263. package/esm2022/lib/components/tooltip/tooltip.js +3 -3
  264. package/esm2022/lib/components/typography/heading.js +3 -3
  265. package/lib/components/menu/menu.d.ts +1 -1
  266. package/lib/components/select/index.d.ts +1 -1
  267. package/lib/components/select/select-item.d.ts +2 -0
  268. package/lib/components/select/select-label.d.ts +7 -0
  269. package/lib/components/select/select-list.d.ts +3 -1
  270. package/lib/components/select/select-trigger.d.ts +2 -2
  271. package/lib/components/select/select.d.ts +5 -4
  272. package/package.json +1 -1
  273. package/esm2022/lib/components/select/select-value.js.map +0 -1
  274. package/lib/components/select/select-value.d.ts +0 -7
@@ -12,10 +12,10 @@ export class ScPopoverTrigger {
12
12
  togglePopover() {
13
13
  this.popover.open.update((v) => !v);
14
14
  }
15
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScPopoverTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScPopoverTrigger, isStandalone: true, selector: "button[scPopoverTrigger]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "popover-trigger" }, listeners: { "click": "togglePopover()" }, properties: { "class": "class()", "attr.aria-haspopup": "\"dialog\"", "attr.aria-expanded": "popover.open()" } }, hostDirectives: [{ directive: i1.CdkOverlayOrigin }], ngImport: i0 });
15
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScPopoverTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
16
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScPopoverTrigger, isStandalone: true, selector: "button[scPopoverTrigger]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "popover-trigger" }, listeners: { "click": "togglePopover()" }, properties: { "class": "class()", "attr.aria-haspopup": "\"dialog\"", "attr.aria-expanded": "popover.open()" } }, hostDirectives: [{ directive: i1.CdkOverlayOrigin }], ngImport: i0 });
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScPopoverTrigger, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScPopoverTrigger, decorators: [{
19
19
  type: Directive,
20
20
  args: [{
21
21
  selector: 'button[scPopoverTrigger]',
@@ -22,12 +22,12 @@ export class ScPopover {
22
22
  this.popover.onPopoverAnimationComplete();
23
23
  }
24
24
  }
25
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScPopover, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScPopover, isStandalone: true, selector: "div[scPopover]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "dialog", "data-slot": "popover" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "class": "class()", "attr.data-open": "state() === \"open\" ? true : null", "attr.data-closed": "state() === \"closed\" ? true : null", "attr.data-side": "popover.side()" } }, ngImport: i0, template: `
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScPopover, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScPopover, isStandalone: true, selector: "div[scPopover]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "dialog", "data-slot": "popover" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "class": "class()", "attr.data-open": "state() === \"open\" ? true : null", "attr.data-closed": "state() === \"closed\" ? true : null", "attr.data-side": "popover.side()" } }, ngImport: i0, template: `
27
27
  <ng-content />
28
28
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScPopover, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScPopover, decorators: [{
31
31
  type: Component,
32
32
  args: [{
33
33
  selector: 'div[scPopover]',
@@ -6,10 +6,10 @@ export class ScProgressIndicator {
6
6
  progress = inject(ScProgress);
7
7
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
8
8
  class = computed(() => cn('bg-primary size-full flex-1 transition-all', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScProgressIndicator, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScProgressIndicator, isStandalone: true, selector: "[scProgressIndicator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "progress-indicator" }, properties: { "class": "class()", "style.transform": "\"translateX(-\" + (100 - progress.percentage()) + \"%)\"" } }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScProgressIndicator, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScProgressIndicator, isStandalone: true, selector: "[scProgressIndicator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "progress-indicator" }, properties: { "class": "class()", "style.transform": "\"translateX(-\" + (100 - progress.percentage()) + \"%)\"" } }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScProgressIndicator, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScProgressIndicator, decorators: [{
13
13
  type: Component,
14
14
  args: [{
15
15
  selector: '[scProgressIndicator]',
@@ -21,12 +21,12 @@ export class ScProgress {
21
21
  return val >= maxVal ? 'complete' : 'loading';
22
22
  }, ...(ngDevMode ? [{ debugName: "state" }] : []));
23
23
  class = computed(() => cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScProgress, isStandalone: true, selector: "[scProgress]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "progressbar", "data-slot": "progress" }, properties: { "class": "class()", "attr.aria-valuemin": "0", "attr.aria-valuemax": "max()", "attr.aria-valuenow": "value()", "attr.data-state": "state()" } }, ngImport: i0, template: `
24
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScProgress, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScProgress, isStandalone: true, selector: "[scProgress]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "progressbar", "data-slot": "progress" }, properties: { "class": "class()", "attr.aria-valuemin": "0", "attr.aria-valuemax": "max()", "attr.aria-valuenow": "value()", "attr.data-state": "state()" } }, ngImport: i0, template: `
26
26
  <div scProgressIndicator></div>
27
27
  `, isInline: true, dependencies: [{ kind: "component", type: ScProgressIndicator, selector: "[scProgressIndicator]", inputs: ["class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScProgress, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScProgress, decorators: [{
30
30
  type: Component,
31
31
  args: [{
32
32
  selector: '[scProgress]',
@@ -12,12 +12,12 @@ export class ScRadioField {
12
12
  return tagName === 'LABEL' ? null : 'group';
13
13
  }, ...(ngDevMode ? [{ debugName: "role" }] : []));
14
14
  class = computed(() => cn('relative inline-flex items-start gap-2', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
15
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRadioField, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScRadioField, isStandalone: true, selector: "div[scRadioField], label[scRadioField]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "radio-field" }, properties: { "attr.role": "role()", "class": "class()" } }, providers: [{ provide: SC_FIELD, useExisting: ScRadioField }], ngImport: i0, template: `
15
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRadioField, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScRadioField, isStandalone: true, selector: "div[scRadioField], label[scRadioField]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "radio-field" }, properties: { "attr.role": "role()", "class": "class()" } }, providers: [{ provide: SC_FIELD, useExisting: ScRadioField }], ngImport: i0, template: `
17
17
  <ng-content />
18
18
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRadioField, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRadioField, decorators: [{
21
21
  type: Component,
22
22
  args: [{
23
23
  selector: 'div[scRadioField], label[scRadioField]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScRadioGroup {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('grid gap-2', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRadioGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScRadioGroup, isStandalone: true, selector: "div[scRadioGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "radio-group", "role": "radiogroup" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRadioGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScRadioGroup, isStandalone: true, selector: "div[scRadioGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "radio-group", "role": "radiogroup" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRadioGroup, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRadioGroup, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scRadioGroup]',
@@ -5,10 +5,10 @@ export const SC_RADIO = 'SC_RADIO';
5
5
  export class ScRadio {
6
6
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
7
7
  class = computed(() => cn('relative', 'appearance-none', 'aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50', "[&::before]:content-['']", '[&::before]:absolute [&::before]:top-1/2 [&::before]:left-1/2 [&::before]:-translate-x-1/2 [&::before]:-translate-y-1/2 [&::before]:size-2.5 [&::before]:rounded-full [&::before]:bg-primary [&::before]:opacity-0 [&::before]:transform [&::before]:scale-0 [&::before]:transition-all [&::before]:duration-200', 'checked:[&::before]:opacity-100 checked:[&::before]:scale-100', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRadio, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScRadio, isStandalone: true, selector: "input[type=\"radio\"][scRadio]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "radio" }, properties: { "class": "class()" } }, exportAs: ["SC_RADIO"], ngImport: i0 });
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRadio, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScRadio, isStandalone: true, selector: "input[type=\"radio\"][scRadio]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "radio" }, properties: { "class": "class()" } }, exportAs: ["SC_RADIO"], ngImport: i0 });
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRadio, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRadio, decorators: [{
12
12
  type: Directive,
13
13
  args: [{
14
14
  selector: 'input[type="radio"][scRadio]',
@@ -16,10 +16,10 @@ export class ScRangeSliderMax {
16
16
  el.value = String(clamped);
17
17
  }
18
18
  }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSliderMax, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScRangeSliderMax, isStandalone: true, selector: "input[scRangeSliderMax]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "range" }, listeners: { "input": "onInput($event)" }, properties: { "min": "rangeSlider.min()", "max": "rangeSlider.max()", "step": "rangeSlider.step()", "disabled": "rangeSlider.disabled()", "value": "rangeSlider.maxValue()", "class": "class()" } }, ngImport: i0 });
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRangeSliderMax, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScRangeSliderMax, isStandalone: true, selector: "input[scRangeSliderMax]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "range" }, listeners: { "input": "onInput($event)" }, properties: { "min": "rangeSlider.min()", "max": "rangeSlider.max()", "step": "rangeSlider.step()", "disabled": "rangeSlider.disabled()", "value": "rangeSlider.maxValue()", "class": "class()" } }, ngImport: i0 });
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSliderMax, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRangeSliderMax, decorators: [{
23
23
  type: Directive,
24
24
  args: [{
25
25
  selector: 'input[scRangeSliderMax]',
@@ -16,10 +16,10 @@ export class ScRangeSliderMin {
16
16
  el.value = String(clamped);
17
17
  }
18
18
  }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSliderMin, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScRangeSliderMin, isStandalone: true, selector: "input[scRangeSliderMin]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "range" }, listeners: { "input": "onInput($event)" }, properties: { "min": "rangeSlider.min()", "max": "rangeSlider.max()", "step": "rangeSlider.step()", "disabled": "rangeSlider.disabled()", "value": "rangeSlider.minValue()", "class": "class()" } }, ngImport: i0 });
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRangeSliderMin, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScRangeSliderMin, isStandalone: true, selector: "input[scRangeSliderMin]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "range" }, listeners: { "input": "onInput($event)" }, properties: { "min": "rangeSlider.min()", "max": "rangeSlider.max()", "step": "rangeSlider.step()", "disabled": "rangeSlider.disabled()", "value": "rangeSlider.minValue()", "class": "class()" } }, ngImport: i0 });
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSliderMin, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRangeSliderMin, decorators: [{
23
23
  type: Directive,
24
24
  args: [{
25
25
  selector: 'input[scRangeSliderMin]',
@@ -44,10 +44,10 @@ export class ScRangeSlider {
44
44
  clampMax(val) {
45
45
  return Math.max(val, this.minValue());
46
46
  }
47
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSlider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
48
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScRangeSlider, isStandalone: true, selector: "div[scRangeSlider]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { minValue: "minValueChange", maxValue: "maxValueChange" }, host: { listeners: { "pointerdown": "onPointerDown($event)" }, properties: { "class": "class()", "style.--min-percent": "minPercentCss()", "style.--max-percent": "maxPercentCss()" } }, ngImport: i0 });
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRangeSlider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
48
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScRangeSlider, isStandalone: true, selector: "div[scRangeSlider]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { minValue: "minValueChange", maxValue: "maxValueChange" }, host: { listeners: { "pointerdown": "onPointerDown($event)" }, properties: { "class": "class()", "style.--min-percent": "minPercentCss()", "style.--max-percent": "maxPercentCss()" } }, ngImport: i0 });
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScRangeSlider, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScRangeSlider, decorators: [{
51
51
  type: Directive,
52
52
  args: [{
53
53
  selector: 'div[scRangeSlider]',
@@ -4,12 +4,12 @@ import * as i0 from "@angular/core";
4
4
  export class ScScrollArea {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('overflow-auto', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScScrollArea, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScScrollArea, isStandalone: true, selector: "div[scScrollArea]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "scroll-area" }, properties: { "class": "class()" } }, ngImport: i0, template: `
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScScrollArea, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScScrollArea, isStandalone: true, selector: "div[scScrollArea]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "scroll-area" }, properties: { "class": "class()" } }, ngImport: i0, template: `
9
9
  <ng-content />
10
10
  `, isInline: true, styles: ["[data-slot=scroll-area]{scrollbar-width:thin;scrollbar-color:transparent transparent}[data-slot=scroll-area]:hover{scrollbar-color:var(--color-border) transparent}[data-slot=scroll-area]::-webkit-scrollbar{width:8px;height:8px}[data-slot=scroll-area]::-webkit-scrollbar-thumb{background-color:transparent;border-radius:9999px}[data-slot=scroll-area]:hover::-webkit-scrollbar-thumb{background-color:var(--color-border)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScScrollArea, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScScrollArea, decorators: [{
13
13
  type: Component,
14
14
  args: [{ selector: 'div[scScrollArea]', host: {
15
15
  'data-slot': 'scroll-area',
@@ -1,7 +1,7 @@
1
1
  export { ScSelect } from './select';
2
2
  export { ScSelectItemIcon } from './select-item-icon';
3
3
  export { ScSelectTrigger } from './select-trigger';
4
- export { ScSelectValue } from './select-value';
4
+ export { ScSelectLabel } from './select-label';
5
5
  export { ScSelectPortal } from './select-portal';
6
6
  export { ScSelectPopup } from './select-popup';
7
7
  export { ScSelectList } from './select-list';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { ScSelect } from './select';\nexport { ScSelectItemIcon } from './select-item-icon';\nexport { ScSelectTrigger } from './select-trigger';\nexport { ScSelectValue } from './select-value';\nexport { ScSelectPortal } from './select-portal';\nexport { ScSelectPopup } from './select-popup';\nexport { ScSelectList } from './select-list';\nexport { ScSelectItem } from './select-item';\nexport { ScSelectGroup } from './select-group';\nexport { ScSelectGroupLabel } from './select-group-label';\nexport { ScSelectSeparator } from './select-separator';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export { ScSelect } from './select';\nexport { ScSelectItemIcon } from './select-item-icon';\nexport { ScSelectTrigger } from './select-trigger';\nexport { ScSelectLabel } from './select-label';\nexport { ScSelectPortal } from './select-portal';\nexport { ScSelectPopup } from './select-popup';\nexport { ScSelectList } from './select-list';\nexport { ScSelectItem } from './select-item';\nexport { ScSelectGroup } from './select-group';\nexport { ScSelectGroupLabel } from './select-group-label';\nexport { ScSelectSeparator } from './select-separator';\n"]}
@@ -4,12 +4,12 @@ import * as i0 from "@angular/core";
4
4
  export class ScSelectGroupLabel {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('text-muted-foreground px-2 py-1.5 text-xs font-medium', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectGroupLabel, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectGroupLabel, isStandalone: true, selector: "div[scSelectGroupLabel]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-group-label" }, properties: { "class": "class()" } }, ngImport: i0, template: `
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectGroupLabel, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectGroupLabel, isStandalone: true, selector: "div[scSelectGroupLabel]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-group-label" }, properties: { "class": "class()" } }, ngImport: i0, template: `
9
9
  <ng-content />
10
10
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectGroupLabel, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectGroupLabel, decorators: [{
13
13
  type: Component,
14
14
  args: [{
15
15
  selector: 'div[scSelectGroupLabel]',
@@ -4,12 +4,12 @@ import * as i0 from "@angular/core";
4
4
  export class ScSelectGroup {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('flex flex-col', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectGroup, isStandalone: true, selector: "div[scSelectGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-group" }, properties: { "class": "class()" } }, ngImport: i0, template: `
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectGroup, isStandalone: true, selector: "div[scSelectGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-group" }, properties: { "class": "class()" } }, ngImport: i0, template: `
9
9
  <ng-content />
10
10
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectGroup, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectGroup, decorators: [{
13
13
  type: Component,
14
14
  args: [{
15
15
  selector: 'div[scSelectGroup]',
@@ -6,10 +6,10 @@ import * as i1 from "@angular/aria/combobox";
6
6
  export class ScSelectInput {
7
7
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
8
8
  class = computed(() => cn('absolute inset-0 h-full w-full cursor-pointer border-none bg-transparent opacity-0 outline-none', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectInput, isStandalone: true, selector: "input[scSelectInput]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-input" }, properties: { "class": "class()" } }, hostDirectives: [{ directive: i1.ComboboxInput }], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectInput, isStandalone: true, selector: "input[scSelectInput]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-input" }, properties: { "class": "class()" } }, hostDirectives: [{ directive: i1.ComboboxInput }], ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectInput, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectInput, decorators: [{
13
13
  type: Component,
14
14
  args: [{
15
15
  selector: 'input[scSelectInput]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScSelectItemIcon {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('text-muted-foreground size-4 shrink-0', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItemIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectItemIcon, isStandalone: true, selector: "svg[scSelectItemIcon]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item-icon", "aria-hidden": "true" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectItemIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectItemIcon, isStandalone: true, selector: "svg[scSelectItemIcon]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item-icon", "aria-hidden": "true" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItemIcon, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectItemIcon, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'svg[scSelectItemIcon]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScSelectItemIndicator {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('pointer-events-none absolute right-2 flex size-4 items-center justify-center opacity-0 [[aria-selected=true]>&]:opacity-100', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItemIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectItemIndicator, isStandalone: true, selector: "svg[scSelectItemIndicator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item-indicator" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectItemIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectItemIndicator, isStandalone: true, selector: "svg[scSelectItemIndicator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item-indicator" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItemIndicator, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectItemIndicator, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'svg[scSelectItemIndicator]',
@@ -9,6 +9,8 @@ export class ScSelectItem {
9
9
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
10
10
  option = inject(Option);
11
11
  elementRef = inject(ElementRef);
12
+ itemValue = computed(() => this.option.value(), ...(ngDevMode ? [{ debugName: "itemValue" }] : []));
13
+ itemLabel = computed(() => this.option.label() || '', ...(ngDevMode ? [{ debugName: "itemLabel" }] : []));
12
14
  constructor() {
13
15
  effect(() => {
14
16
  if (this.option.active()) {
@@ -17,13 +19,13 @@ export class ScSelectItem {
17
19
  });
18
20
  }
19
21
  class = computed(() => cn('relative flex w-full cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden', 'data-[active=true]:bg-accent data-[active=true]:text-accent-foreground', 'aria-selected:bg-accent/50 aria-selected:text-accent-foreground', 'data-disabled:pointer-events-none data-disabled:opacity-50', '[&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
20
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectItem, isStandalone: true, selector: "div[scSelectItem]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item" }, properties: { "class": "class()" } }, hostDirectives: [{ directive: i1.Option, inputs: ["value", "value", "label", "label"] }], ngImport: i0, template: `
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
23
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectItem, isStandalone: true, selector: "div[scSelectItem]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-item" }, properties: { "class": "class()" } }, hostDirectives: [{ directive: i1.Option, inputs: ["value", "value", "label", "label"] }], ngImport: i0, template: `
22
24
  <ng-content />
23
25
  <svg scSelectItemIndicator siCheckIcon aria-hidden="true"></svg>
24
- `, isInline: true, dependencies: [{ kind: "directive", type: ScSelectItemIndicator, selector: "svg[scSelectItemIndicator]", inputs: ["class"] }, { kind: "component", type: SiCheckIcon, selector: "svg[siCheckIcon]", inputs: ["width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
26
+ `, isInline: true, dependencies: [{ kind: "directive", type: ScSelectItemIndicator, selector: "svg[scSelectItemIndicator]", inputs: ["class"] }, { kind: "component", type: SiCheckIcon, selector: "svg[siCheckIcon]", inputs: ["ariaHidden", "width", "height", "viewBox", "fill", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
25
27
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectItem, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectItem, decorators: [{
27
29
  type: Component,
28
30
  args: [{
29
31
  selector: 'div[scSelectItem]',
@@ -1 +1 @@
1
- {"version":3,"file":"select-item.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;;AAsBhE,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAE3C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IAE1E;QACE,MAAM,CAAC,GAAG,EAAE;YACV,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC;gBACzB,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAEkB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,yHAAyH,EACzH,wEAAwE,EACxE,iEAAiE,EACjE,4DAA4D,EAC5D,iFAAiF,EACjF,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAvBS,YAAY;2FAAZ,YAAY,+YAjBb;;;GAGT,4DAJS,qBAAqB,0FAAE,WAAW;;2FAkBjC,YAAY;kBApBxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,OAAO,EAAE,CAAC,qBAAqB,EAAE,WAAW,CAAC;oBAC7C,QAAQ,EAAE;;;GAGT;oBACD,cAAc,EAAE;wBACd;4BACE,SAAS,EAAE,MAAM;4BACjB,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;yBAC3B;qBACF;oBACD,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 { Option } from '@angular/aria/listbox';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SiCheckIcon } from '@semantic-icons/lucide-icons';\nimport { cn } from '../../utils';\n\nimport { ScSelectItemIndicator } from './select-item-indicator';\n\n@Component({\n selector: 'div[scSelectItem]',\n imports: [ScSelectItemIndicator, SiCheckIcon],\n template: `\n <ng-content />\n <svg scSelectItemIndicator siCheckIcon aria-hidden=\"true\"></svg>\n `,\n hostDirectives: [\n {\n directive: Option,\n inputs: ['value', 'label'],\n },\n ],\n host: {\n 'data-slot': 'select-item',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectItem {\n readonly classInput = input<string>('', { alias: 'class' });\n\n private readonly option = inject(Option);\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n effect(() => {\n if (this.option.active()) {\n this.elementRef.nativeElement.scrollIntoView({ block: 'nearest' });\n }\n });\n }\n\n protected readonly class = computed(() =>\n cn(\n 'relative flex w-full cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden',\n 'data-[active=true]:bg-accent data-[active=true]:text-accent-foreground',\n 'aria-selected:bg-accent/50 aria-selected:text-accent-foreground',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n '[&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n this.classInput(),\n ),\n );\n}\n"]}
1
+ {"version":3,"file":"select-item.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;;AAsBhE,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAE3C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC;IAEjE,SAAS,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,qDAAC,CAAC;IAChD,SAAS,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,qDAAC,CAAC;IAE/D;QACE,MAAM,CAAC,GAAG,EAAE;YACV,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC;gBACzB,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAEkB,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,yHAAyH,EACzH,wEAAwE,EACxE,iEAAiE,EACjE,4DAA4D,EAC5D,iFAAiF,EACjF,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGA1BS,YAAY;2FAAZ,YAAY,+YAjBb;;;GAGT,4DAJS,qBAAqB,0FAAE,WAAW;;2FAkBjC,YAAY;kBApBxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;oBAC7B,OAAO,EAAE,CAAC,qBAAqB,EAAE,WAAW,CAAC;oBAC7C,QAAQ,EAAE;;;GAGT;oBACD,cAAc,EAAE;wBACd;4BACE,SAAS,EAAE,MAAM;4BACjB,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;yBAC3B;qBACF;oBACD,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 { Option } from '@angular/aria/listbox';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SiCheckIcon } from '@semantic-icons/lucide-icons';\nimport { cn } from '../../utils';\n\nimport { ScSelectItemIndicator } from './select-item-indicator';\n\n@Component({\n selector: 'div[scSelectItem]',\n imports: [ScSelectItemIndicator, SiCheckIcon],\n template: `\n <ng-content />\n <svg scSelectItemIndicator siCheckIcon aria-hidden=\"true\"></svg>\n `,\n hostDirectives: [\n {\n directive: Option,\n inputs: ['value', 'label'],\n },\n ],\n host: {\n 'data-slot': 'select-item',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectItem {\n readonly classInput = input<string>('', { alias: 'class' });\n\n private readonly option = inject(Option);\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly itemValue = computed(() => this.option.value());\n readonly itemLabel = computed(() => this.option.label() || '');\n\n constructor() {\n effect(() => {\n if (this.option.active()) {\n this.elementRef.nativeElement.scrollIntoView({ block: 'nearest' });\n }\n });\n }\n\n protected readonly class = computed(() =>\n cn(\n 'relative flex w-full cursor-default select-none items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden',\n 'data-[active=true]:bg-accent data-[active=true]:text-accent-foreground',\n 'aria-selected:bg-accent/50 aria-selected:text-accent-foreground',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n '[&_svg:not([class*=size-])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -1,28 +1,28 @@
1
1
  import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation, } from '@angular/core';
2
2
  import { cn } from '../../utils';
3
3
  import * as i0 from "@angular/core";
4
- export class ScSelectValue {
4
+ export class ScSelectLabel {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('pointer-events-none', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectValue, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScSelectValue, isStandalone: true, selector: "span[scSelectValue]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-value" }, properties: { "class": "class()" } }, ngImport: i0, template: `
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectLabel, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScSelectLabel, isStandalone: true, selector: "span[scSelectLabel], div[scSelectLabel]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "select-label" }, properties: { "class": "class()" } }, ngImport: i0, template: `
9
9
  <ng-content />
10
10
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScSelectValue, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScSelectLabel, decorators: [{
13
13
  type: Component,
14
14
  args: [{
15
- selector: 'span[scSelectValue]',
15
+ selector: 'span[scSelectLabel], div[scSelectLabel]',
16
16
  imports: [],
17
17
  template: `
18
18
  <ng-content />
19
19
  `,
20
20
  host: {
21
- 'data-slot': 'select-value',
21
+ 'data-slot': 'select-label',
22
22
  '[class]': 'class()',
23
23
  },
24
24
  encapsulation: ViewEncapsulation.None,
25
25
  changeDetection: ChangeDetectionStrategy.OnPush,
26
26
  }]
27
27
  }], propDecorators: { classInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
28
- //# sourceMappingURL=select-value.js.map
28
+ //# sourceMappingURL=select-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-label.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/select/select-label.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAejC,MAAM,OAAO,aAAa;IACf,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,qBAAqB,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC7C,CAAC;uGALS,aAAa;2FAAb,aAAa,4UAVd;;GAET;;2FAQU,aAAa;kBAbzB,SAAS;mBAAC;oBACT,QAAQ,EAAE,yCAAyC;oBACnD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE;;GAET;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,cAAc;wBAC3B,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 input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\n\n@Component({\n selector: 'span[scSelectLabel], div[scSelectLabel]',\n imports: [],\n template: `\n <ng-content />\n `,\n host: {\n 'data-slot': 'select-label',\n '[class]': 'class()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScSelectLabel {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn('pointer-events-none', this.classInput()),\n );\n}\n"]}
@@ -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]',