@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
@@ -2,10 +2,10 @@ import { Directive, inject, TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class ScDrawerPortal {
4
4
  templateRef = inject(TemplateRef);
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawerPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.5", type: ScDrawerPortal, isStandalone: true, selector: "ng-template[scDrawerPortal]", ngImport: i0 });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawerPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: ScDrawerPortal, isStandalone: true, selector: "ng-template[scDrawerPortal]", ngImport: i0 });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawerPortal, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawerPortal, decorators: [{
9
9
  type: Directive,
10
10
  args: [{
11
11
  selector: 'ng-template[scDrawerPortal]',
@@ -83,8 +83,8 @@ export class ScDrawerProvider {
83
83
  closeDrawer() {
84
84
  this.open.set(false);
85
85
  }
86
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawerProvider, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.1.5", type: ScDrawerProvider, isStandalone: true, selector: "div[scDrawerProvider]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { attributes: { "data-slot": "drawer-provider" }, properties: { "class": "class()" } }, queries: [{ propertyName: "drawerPortal", first: true, predicate: ScDrawerPortal, 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: ScDrawerProvider, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.0", type: ScDrawerProvider, isStandalone: true, selector: "div[scDrawerProvider]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { attributes: { "data-slot": "drawer-provider" }, properties: { "class": "class()" } }, queries: [{ propertyName: "drawerPortal", first: true, predicate: ScDrawerPortal, 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 ScDrawerProvider {
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: ScDrawerProvider, decorators: [{
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawerProvider, decorators: [{
102
102
  type: Component,
103
103
  args: [{
104
104
  selector: 'div[scDrawerProvider]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScDrawerTitle {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('text-foreground text-base font-medium', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawerTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScDrawerTitle, isStandalone: true, selector: "h2[scDrawerTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "drawer-title" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawerTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScDrawerTitle, isStandalone: true, selector: "h2[scDrawerTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "drawer-title" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawerTitle, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawerTitle, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'h2[scDrawerTitle]',
@@ -9,10 +9,10 @@ export class ScDrawerTrigger {
9
9
  openDrawer() {
10
10
  this.drawer.open.set(true);
11
11
  }
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawerTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScDrawerTrigger, isStandalone: true, selector: "button[scDrawerTrigger]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "drawer-trigger", "type": "button" }, listeners: { "click": "openDrawer()" }, properties: { "class": "class()", "attr.aria-expanded": "drawer.open()" } }, ngImport: i0 });
12
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawerTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScDrawerTrigger, isStandalone: true, selector: "button[scDrawerTrigger]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "drawer-trigger", "type": "button" }, listeners: { "click": "openDrawer()" }, properties: { "class": "class()", "attr.aria-expanded": "drawer.open()" } }, ngImport: i0 });
14
14
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawerTrigger, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawerTrigger, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
18
  selector: 'button[scDrawerTrigger]',
@@ -27,10 +27,10 @@ export class ScDrawer {
27
27
  this.drawer.onDrawerAnimationComplete();
28
28
  }
29
29
  }
30
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
31
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScDrawer, isStandalone: true, selector: "div[scDrawer]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "drawer", "role": "dialog", "aria-modal": "true" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "attr.data-direction": "drawer.direction()", "attr.data-idle": "state() === \"idle\" ? \"\" : null", "attr.data-open": "state() === \"open\" ? \"\" : null", "attr.data-closed": "state() === \"closed\" ? \"\" : null", "class": "class()" } }, ngImport: i0 });
30
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
31
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScDrawer, isStandalone: true, selector: "div[scDrawer]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "drawer", "role": "dialog", "aria-modal": "true" }, listeners: { "animationend": "onAnimationEnd($event)" }, properties: { "attr.data-direction": "drawer.direction()", "attr.data-idle": "state() === \"idle\" ? \"\" : null", "attr.data-open": "state() === \"open\" ? \"\" : null", "attr.data-closed": "state() === \"closed\" ? \"\" : null", "class": "class()" } }, ngImport: i0 });
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScDrawer, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScDrawer, decorators: [{
34
34
  type: Directive,
35
35
  args: [{
36
36
  selector: 'div[scDrawer]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScEmptyBody {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('gap-2.5 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScEmptyBody, isStandalone: true, selector: "div[scEmptyBody]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-body" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScEmptyBody, isStandalone: true, selector: "div[scEmptyBody]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-body" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyBody, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyBody, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scEmptyBody]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScEmptyDescription {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('text-sm/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScEmptyDescription, isStandalone: true, selector: "div[scEmptyDescription]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-description" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScEmptyDescription, isStandalone: true, selector: "div[scEmptyDescription]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-description" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyDescription, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyDescription, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scEmptyDescription]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScEmptyHeader {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('gap-2 flex max-w-sm flex-col items-center', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScEmptyHeader, isStandalone: true, selector: "div[scEmptyHeader]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-header" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScEmptyHeader, isStandalone: true, selector: "div[scEmptyHeader]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-header" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyHeader, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyHeader, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scEmptyHeader]',
@@ -17,10 +17,10 @@ export class ScEmptyMedia {
17
17
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
18
18
  variant = input('default', ...(ngDevMode ? [{ debugName: "variant" }] : []));
19
19
  class = computed(() => cn(emptyMediaVariants({ variant: this.variant() }), this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
20
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScEmptyMedia, isStandalone: true, selector: "div[scEmptyMedia]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-icon" }, properties: { "attr.data-variant": "variant()", "class": "class()" } }, ngImport: i0 });
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScEmptyMedia, isStandalone: true, selector: "div[scEmptyMedia]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-icon" }, properties: { "attr.data-variant": "variant()", "class": "class()" } }, ngImport: i0 });
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyMedia, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyMedia, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  selector: 'div[scEmptyMedia]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScEmptyTitle {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('text-sm font-medium tracking-tight', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScEmptyTitle, isStandalone: true, selector: "div[scEmptyTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-title" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScEmptyTitle, isStandalone: true, selector: "div[scEmptyTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty-title" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmptyTitle, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmptyTitle, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scEmptyTitle]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScEmpty {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('gap-4 rounded-xl border-dashed p-6 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmpty, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScEmpty, isStandalone: true, selector: "div[scEmpty]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmpty, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScEmpty, isStandalone: true, selector: "div[scEmpty]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "empty" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScEmpty, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScEmpty, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'div[scEmpty]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScFieldBody {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('gap-0.5 group/field-body flex flex-1 flex-col leading-snug', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldBody, isStandalone: true, selector: "[scFieldBody]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-body" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFieldBody, isStandalone: true, selector: "[scFieldBody]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-body" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldBody, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldBody, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[scFieldBody]',
@@ -3,11 +3,11 @@ import { cn } from '../../utils';
3
3
  import * as i0 from "@angular/core";
4
4
  export class ScFieldDescription {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
- class = computed(() => cn('text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance', 'last:mt-0 nth-last-2:-mt-1', '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldDescription, isStandalone: true, selector: "[scFieldDescription]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-description" }, properties: { "class": "class()" } }, ngImport: i0 });
6
+ class = computed(() => cn('text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-[orientation=horizontal]/field:text-balance', 'last:mt-0 nth-last-2:-mt-1', '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFieldDescription, isStandalone: true, selector: "[scFieldDescription]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-description" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldDescription, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldDescription, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[scFieldDescription]',
@@ -1 +1 @@
1
- {"version":3,"file":"field-description.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field-description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,kBAAkB;IACpB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,mKAAmK,EACnK,4BAA4B,EAC5B,mEAAmE,EACnE,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAVS,kBAAkB;2FAAlB,kBAAkB;;2FAAlB,kBAAkB;kBAP9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,mBAAmB;wBAChC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scFieldDescription]',\n host: {\n 'data-slot': 'field-description',\n '[class]': 'class()',\n },\n})\nexport class ScFieldDescription {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance',\n 'last:mt-0 nth-last-2:-mt-1',\n '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',\n this.classInput(),\n ),\n );\n}\n"]}
1
+ {"version":3,"file":"field-description.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field-description.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,kBAAkB;IACpB,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,iKAAiK,EACjK,4BAA4B,EAC5B,mEAAmE,EACnE,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGAVS,kBAAkB;2FAAlB,kBAAkB;;2FAAlB,kBAAkB;kBAP9B,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,IAAI,EAAE;wBACJ,WAAW,EAAE,mBAAmB;wBAChC,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scFieldDescription]',\n host: {\n 'data-slot': 'field-description',\n '[class]': 'class()',\n },\n})\nexport class ScFieldDescription {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-[orientation=horizontal]/field:text-balance',\n 'last:mt-0 nth-last-2:-mt-1',\n '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScFieldError {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('text-destructive text-sm font-normal', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldError, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldError, isStandalone: true, selector: "[scFieldError]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "alert", "data-slot": "field-error" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldError, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFieldError, isStandalone: true, selector: "[scFieldError]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "alert", "data-slot": "field-error" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldError, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldError, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[scFieldError]',
@@ -3,11 +3,11 @@ import { cn } from '../../utils';
3
3
  import * as i0 from "@angular/core";
4
4
  export class ScFieldGroup {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
- class = computed(() => cn('gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldGroup, isStandalone: true, selector: "[scFieldGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-group" }, properties: { "class": "class()" } }, ngImport: i0 });
6
+ class = computed(() => cn('gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFieldGroup, isStandalone: true, selector: "[scFieldGroup]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-group" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldGroup, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldGroup, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[scFieldGroup]',
@@ -1 +1 @@
1
- {"version":3,"file":"field-group.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,wIAAwI,EACxI,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,YAAY;2FAAZ,YAAY;;2FAAZ,YAAY;kBAPxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scFieldGroup]',\n host: {\n 'data-slot': 'field-group',\n '[class]': 'class()',\n },\n})\nexport class ScFieldGroup {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col',\n this.classInput(),\n ),\n );\n}\n"]}
1
+ {"version":3,"file":"field-group.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AASjC,MAAM,OAAO,YAAY;IACd,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IAEzC,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CACA,sIAAsI,EACtI,IAAI,CAAC,UAAU,EAAE,CAClB,iDACF,CAAC;uGARS,YAAY;2FAAZ,YAAY;;2FAAZ,YAAY;kBAPxB,SAAS;mBAAC;oBACT,QAAQ,EAAE,gBAAgB;oBAC1B,IAAI,EAAE;wBACJ,WAAW,EAAE,aAAa;wBAC1B,SAAS,EAAE,SAAS;qBACrB;iBACF","sourcesContent":["import { computed, Directive, input } from '@angular/core';\nimport { cn } from '../../utils';\n\n@Directive({\n selector: '[scFieldGroup]',\n host: {\n 'data-slot': 'field-group',\n '[class]': 'class()',\n },\n})\nexport class ScFieldGroup {\n readonly classInput = input<string>('', { alias: 'class' });\n\n protected readonly class = computed(() =>\n cn(\n 'gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col',\n this.classInput(),\n ),\n );\n}\n"]}
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScFieldSeparator {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldSeparator, isStandalone: true, selector: "[scFieldSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-separator" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFieldSeparator, isStandalone: true, selector: "[scFieldSeparator]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-separator" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldSeparator, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldSeparator, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[scFieldSeparator]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScFieldTitle {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldTitle, isStandalone: true, selector: "[scFieldTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-title" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFieldTitle, isStandalone: true, selector: "[scFieldTitle]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field-title" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldTitle, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldTitle, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[scFieldTitle]',
@@ -7,9 +7,9 @@ import * as i0 from "@angular/core";
7
7
  const fieldVariants = cva('gap-2 group/field flex w-full data-[invalid=true]:text-destructive', {
8
8
  variants: {
9
9
  orientation: {
10
- vertical: 'flex-col [&>*]:w-full [&>.sr-only]:w-auto',
11
- horizontal: 'flex-row items-center [&>[data-slot=label]]:flex-auto has-[>[data-slot=field-body]]:items-start has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',
12
- responsive: 'flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=label]]:flex-auto @md/field-group:has-[>[data-slot=field-body]]:items-start @md/field-group:has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',
10
+ vertical: 'flex-col *:w-full [&>.sr-only]:w-auto',
11
+ horizontal: 'flex-row items-center *:data-[slot=label]:flex-auto has-[>[data-slot=field-body]]:items-start has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',
12
+ responsive: 'flex-col *:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:*:data-[slot=label]:flex-auto @md/field-group:has-[>[data-slot=field-body]]:items-start @md/field-group:has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',
13
13
  },
14
14
  },
15
15
  defaultVariants: {
@@ -43,15 +43,15 @@ export class ScField {
43
43
  return this.formField()?.state().disabled() ?? false;
44
44
  }, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
45
45
  class = computed(() => cn(fieldVariants({ orientation: this.orientation() }), this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
46
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScField, deps: [], target: i0.ɵɵFactoryTarget.Directive });
47
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.5", type: ScField, isStandalone: true, selector: "div[scField], label[scField]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, invalidInput: { classPropertyName: "invalidInput", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field" }, properties: { "attr.role": "role()", "attr.id": "id()", "attr.data-orientation": "orientation()", "attr.data-invalid": "invalid()", "attr.data-disabled": "disabled()", "class": "class()" } }, providers: [
46
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScField, deps: [], target: i0.ɵɵFactoryTarget.Directive });
47
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.0", type: ScField, isStandalone: true, selector: "div[scField], label[scField]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, invalidInput: { classPropertyName: "invalidInput", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "field" }, properties: { "attr.role": "role()", "attr.id": "id()", "attr.data-orientation": "orientation()", "attr.data-invalid": "invalid()", "attr.data-disabled": "disabled()", "class": "class()" } }, providers: [
48
48
  {
49
49
  provide: SC_FIELD,
50
50
  useExisting: ScField,
51
51
  },
52
52
  ], queries: [{ propertyName: "formField", first: true, predicate: FormField, descendants: true, isSignal: true }], ngImport: i0 });
53
53
  }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScField, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScField, decorators: [{
55
55
  type: Directive,
56
56
  args: [{
57
57
  selector: 'div[scField], label[scField]',
@@ -1 +1 @@
1
- {"version":3,"file":"field.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAA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;4BACjB,WAAW,SAAS;yBACrB;qBACF;iBACF;+jBAU2C,SAAS","sourcesContent":["import { _IdGenerator } from '@angular/cdk/a11y';\nimport {\n computed,\n contentChild,\n Directive,\n ElementRef,\n inject,\n InjectionToken,\n input,\n} from '@angular/core';\nimport { FormField } from '@angular/forms/signals';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils';\n\nconst fieldVariants = cva(\n 'gap-2 group/field flex w-full data-[invalid=true]:text-destructive',\n {\n variants: {\n orientation: {\n vertical: 'flex-col [&>*]:w-full [&>.sr-only]:w-auto',\n horizontal:\n 'flex-row items-center [&>[data-slot=label]]:flex-auto has-[>[data-slot=field-body]]:items-start has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',\n responsive:\n 'flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=label]]:flex-auto @md/field-group:has-[>[data-slot=field-body]]:items-start @md/field-group:has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',\n },\n },\n defaultVariants: {\n orientation: 'vertical',\n },\n },\n);\n\nexport type ScFieldVariants = VariantProps<typeof fieldVariants>;\n\nexport interface ScFieldContext {\n id: () => string;\n}\n\nexport const SC_FIELD = new InjectionToken<ScFieldContext>('SC_FIELD');\n\n@Directive({\n selector: 'div[scField], label[scField]',\n host: {\n '[attr.role]': 'role()',\n 'data-slot': 'field',\n '[attr.id]': 'id()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-invalid]': 'invalid()',\n '[attr.data-disabled]': 'disabled()',\n '[class]': 'class()',\n },\n providers: [\n {\n provide: SC_FIELD,\n useExisting: ScField,\n },\n ],\n})\nexport class ScField implements ScFieldContext {\n private readonly elementRef = inject(ElementRef<HTMLElement>);\n\n readonly id = input(inject(_IdGenerator).getId('sc-field-'));\n readonly classInput = input<string>('', { alias: 'class' });\n readonly orientation = input<ScFieldVariants['orientation']>('vertical');\n readonly invalidInput = input<boolean>(false, { alias: 'invalid' });\n readonly disabledInput = input<boolean>(false, { alias: 'disabled' });\n\n private readonly formField = contentChild(FormField);\n\n protected readonly role = computed(() => {\n // Only LABEL preserves native semantics, DIV gets role=\"group\"\n const tagName = this.elementRef.nativeElement.tagName;\n return tagName === 'LABEL' ? null : 'group';\n });\n\n readonly invalid = computed(() => {\n if (this.invalidInput()) return true;\n return (\n (this.formField()?.state().touched() &&\n this.formField()?.state().invalid()) ??\n false\n );\n });\n\n readonly disabled = computed(() => {\n if (this.disabledInput()) return true;\n return this.formField()?.state().disabled() ?? false;\n });\n\n protected readonly class = computed(() =>\n cn(fieldVariants({ orientation: this.orientation() }), this.classInput()),\n );\n}\n"]}
1
+ {"version":3,"file":"field.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/field/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,UAAU,EACV,MAAM,EACN,cAAc,EACd,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;;AAEjC,MAAM,aAAa,GAAG,GAAG,CACvB,oEAAoE,EACpE;IACE,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,QAAQ,EAAE,uCAAuC;YACjD,UAAU,EACR,oKAAoK;YACtK,UAAU,EACR,mTAAmT;SACtT;KACF;IACD,eAAe,EAAE;QACf,WAAW,EAAE,UAAU;KACxB;CACF,CACF,CAAC;AAQF,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAiB,UAAU,CAAC,CAAC;AAoBvE,MAAM,OAAO,OAAO;IACD,UAAU,GAAG,MAAM,CAAC,CA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GAAG,QAAQ,CAAC,GAAG,EAAE,CACvC,EAAE,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,iDAC1E,CAAC;uGAjCS,OAAO;2FAAP,OAAO,m9BAPP;YACT;gBACE,OAAO,EAAE,QAAQ;gBACjB,WAAW,EAAE,OAAO;aACrB;SACF,iEAWyC,SAAS;;2FATxC,OAAO;kBAlBnB,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;oBACxC,IAAI,EAAE;wBACJ,aAAa,EAAE,QAAQ;wBACvB,WAAW,EAAE,OAAO;wBACpB,WAAW,EAAE,MAAM;wBACnB,yBAAyB,EAAE,eAAe;wBAC1C,qBAAqB,EAAE,WAAW;wBAClC,sBAAsB,EAAE,YAAY;wBACpC,SAAS,EAAE,SAAS;qBACrB;oBACD,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,QAAQ;4BACjB,WAAW,SAAS;yBACrB;qBACF;iBACF;+jBAU2C,SAAS","sourcesContent":["import { _IdGenerator } from '@angular/cdk/a11y';\nimport {\n computed,\n contentChild,\n Directive,\n ElementRef,\n inject,\n InjectionToken,\n input,\n} from '@angular/core';\nimport { FormField } from '@angular/forms/signals';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils';\n\nconst fieldVariants = cva(\n 'gap-2 group/field flex w-full data-[invalid=true]:text-destructive',\n {\n variants: {\n orientation: {\n vertical: 'flex-col *:w-full [&>.sr-only]:w-auto',\n horizontal:\n 'flex-row items-center *:data-[slot=label]:flex-auto has-[>[data-slot=field-body]]:items-start has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',\n responsive:\n 'flex-col *:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:*:data-[slot=label]:flex-auto @md/field-group:has-[>[data-slot=field-body]]:items-start @md/field-group:has-[>[data-slot=field-body]]:[&>[role=checkbox],[role=radio]]:mt-px',\n },\n },\n defaultVariants: {\n orientation: 'vertical',\n },\n },\n);\n\nexport type ScFieldVariants = VariantProps<typeof fieldVariants>;\n\nexport interface ScFieldContext {\n id: () => string;\n}\n\nexport const SC_FIELD = new InjectionToken<ScFieldContext>('SC_FIELD');\n\n@Directive({\n selector: 'div[scField], label[scField]',\n host: {\n '[attr.role]': 'role()',\n 'data-slot': 'field',\n '[attr.id]': 'id()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-invalid]': 'invalid()',\n '[attr.data-disabled]': 'disabled()',\n '[class]': 'class()',\n },\n providers: [\n {\n provide: SC_FIELD,\n useExisting: ScField,\n },\n ],\n})\nexport class ScField implements ScFieldContext {\n private readonly elementRef = inject(ElementRef<HTMLElement>);\n\n readonly id = input(inject(_IdGenerator).getId('sc-field-'));\n readonly classInput = input<string>('', { alias: 'class' });\n readonly orientation = input<ScFieldVariants['orientation']>('vertical');\n readonly invalidInput = input<boolean>(false, { alias: 'invalid' });\n readonly disabledInput = input<boolean>(false, { alias: 'disabled' });\n\n private readonly formField = contentChild(FormField);\n\n protected readonly role = computed(() => {\n // Only LABEL preserves native semantics, DIV gets role=\"group\"\n const tagName = this.elementRef.nativeElement.tagName;\n return tagName === 'LABEL' ? null : 'group';\n });\n\n readonly invalid = computed(() => {\n if (this.invalidInput()) return true;\n return (\n (this.formField()?.state().touched() &&\n this.formField()?.state().invalid()) ??\n false\n );\n });\n\n readonly disabled = computed(() => {\n if (this.disabledInput()) return true;\n return this.formField()?.state().disabled() ?? false;\n });\n\n protected readonly class = computed(() =>\n cn(fieldVariants({ orientation: this.orientation() }), this.classInput()),\n );\n}\n"]}
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScFieldset {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldset, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFieldset, isStandalone: true, selector: "fieldset[scFieldset]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "fieldset" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldset, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFieldset, isStandalone: true, selector: "fieldset[scFieldset]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "fieldset" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFieldset, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFieldset, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: 'fieldset[scFieldset]',
@@ -5,10 +5,10 @@ export class ScLegend {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  variant = input('legend', ...(ngDevMode ? [{ debugName: "variant" }] : []));
7
7
  class = computed(() => cn('mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScLegend, isStandalone: true, selector: "legend[scLegend]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "legend" }, properties: { "attr.data-variant": "variant()", "class": "class()" } }, ngImport: i0 });
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScLegend, isStandalone: true, selector: "legend[scLegend]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "legend" }, properties: { "attr.data-variant": "variant()", "class": "class()" } }, ngImport: i0 });
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScLegend, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScLegend, decorators: [{
12
12
  type: Directive,
13
13
  args: [{
14
14
  selector: 'legend[scLegend]',
@@ -7,7 +7,7 @@ export class ScFileUploadDropzone {
7
7
  elementRef = inject(ElementRef);
8
8
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
9
9
  isDragging = signal(false, ...(ngDevMode ? [{ debugName: "isDragging" }] : []));
10
- class = computed(() => cn('relative flex min-h-[150px] cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed', 'transition-colors hover:border-primary/50 hover:bg-accent/50', 'data-[dragging=true]:border-primary data-[dragging=true]:bg-accent', 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
10
+ class = computed(() => cn('relative flex min-h-[150px] cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed', 'transition-colors hover:border-primary/50 hover:bg-accent/50', 'data-[dragging=true]:border-primary data-[dragging=true]:bg-accent', 'data-disabled:pointer-events-none data-disabled:opacity-50', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
11
11
  openFilePicker() {
12
12
  if (this.fileUpload.disabled())
13
13
  return;
@@ -44,8 +44,8 @@ export class ScFileUploadDropzone {
44
44
  this.fileUpload.addFiles(files);
45
45
  }
46
46
  }
47
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadDropzone, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.1.5", type: ScFileUploadDropzone, isStandalone: true, selector: "[scFileUploadDropzone]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-dropzone" }, listeners: { "click": "openFilePicker()", "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "onDrop($event)" }, properties: { "class": "class()", "attr.data-dragging": "isDragging()", "attr.data-disabled": "fileUpload.disabled() || null" } }, ngImport: i0, template: `
47
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFileUploadDropzone, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: ScFileUploadDropzone, isStandalone: true, selector: "[scFileUploadDropzone]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-dropzone" }, listeners: { "click": "openFilePicker()", "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "onDrop($event)" }, properties: { "class": "class()", "attr.data-dragging": "isDragging()", "attr.data-disabled": "fileUpload.disabled() || null" } }, ngImport: i0, template: `
49
49
  <input
50
50
  #fileInput
51
51
  type="file"
@@ -58,7 +58,7 @@ export class ScFileUploadDropzone {
58
58
  <ng-content />
59
59
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
60
60
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadDropzone, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFileUploadDropzone, decorators: [{
62
62
  type: Component,
63
63
  args: [{
64
64
  selector: '[scFileUploadDropzone]',
@@ -1 +1 @@
1
- {"version":3,"file":"file-upload-dropzone.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/file-upload/file-upload-dropzone.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACN,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;;AA6B/C,MAAM,OAAO,oBAAoB;IACtB,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAC5B,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAExC,UAAU,GAAG,KAAK,CAAS,EAAE,uDAAI,KAAK,EAAE,OAAO,GAAG,CAAC;IACnD,UAAU,GAAG,MAAM,CAAC,KAAK,sDAAC,CAAC;IAEjB,KAAK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AC,CAAC;QAE3B,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE;YAAE,OAAO;QAEvC,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC;QACxC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;uGA1DU,oBAAoB;2FAApB,oBAAoB,4iBAzBrB;;;;;;;;;;;GAWT;;2FAcU,oBAAoB;kBA3BhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE;;;;;;;;;;;GAWT;oBACD,IAAI,EAAE;wBACJ,WAAW,EAAE,sBAAsB;wBACnC,SAAS,EAAE,SAAS;wBACpB,sBAAsB,EAAE,cAAc;wBACtC,sBAAsB,EAAE,+BAA+B;wBACvD,SAAS,EAAE,kBAAkB;wBAC7B,YAAY,EAAE,oBAAoB;wBAClC,aAAa,EAAE,qBAAqB;wBACpC,QAAQ,EAAE,gBAAgB;qBAC3B;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { SC_FILE_UPLOAD } from './file-upload';\n\n@Component({\n selector: '[scFileUploadDropzone]',\n template: `\n <input\n #fileInput\n type=\"file\"\n class=\"sr-only\"\n [multiple]=\"fileUpload.multiple()\"\n [accept]=\"fileUpload.accept()\"\n [disabled]=\"fileUpload.disabled()\"\n (change)=\"onFileSelect($event)\"\n />\n <ng-content />\n `,\n host: {\n 'data-slot': 'file-upload-dropzone',\n '[class]': 'class()',\n '[attr.data-dragging]': 'isDragging()',\n '[attr.data-disabled]': 'fileUpload.disabled() || null',\n '(click)': 'openFilePicker()',\n '(dragover)': 'onDragOver($event)',\n '(dragleave)': 'onDragLeave($event)',\n '(drop)': 'onDrop($event)',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScFileUploadDropzone {\n readonly fileUpload = inject(SC_FILE_UPLOAD);\n private readonly elementRef = inject(ElementRef);\n\n readonly classInput = input<string>('', { alias: 'class' });\n readonly isDragging = signal(false);\n\n protected readonly class = computed(() =>\n cn(\n 'relative flex min-h-[150px] cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed',\n 'transition-colors hover:border-primary/50 hover:bg-accent/50',\n 'data-[dragging=true]:border-primary data-[dragging=true]:bg-accent',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n this.classInput(),\n ),\n );\n\n openFilePicker(): void {\n if (this.fileUpload.disabled()) return;\n const input = this.elementRef.nativeElement.querySelector(\n 'input[type=\"file\"]',\n ) as HTMLInputElement;\n input?.click();\n }\n\n onFileSelect(event: Event): void {\n const input = event.target as HTMLInputElement;\n if (input.files && input.files.length > 0) {\n this.fileUpload.addFiles(input.files);\n input.value = '';\n }\n }\n\n onDragOver(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n if (!this.fileUpload.disabled()) {\n this.isDragging.set(true);\n }\n }\n\n onDragLeave(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isDragging.set(false);\n }\n\n onDrop(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isDragging.set(false);\n\n if (this.fileUpload.disabled()) return;\n\n const files = event.dataTransfer?.files;\n if (files && files.length > 0) {\n this.fileUpload.addFiles(files);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"file-upload-dropzone.js","sourceRoot":"","sources":["../../../../../../../libs/ui/src/lib/components/file-upload/file-upload-dropzone.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,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DetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { cn } from '../../utils';\nimport { SC_FILE_UPLOAD } from './file-upload';\n\n@Component({\n selector: '[scFileUploadDropzone]',\n template: `\n <input\n #fileInput\n type=\"file\"\n class=\"sr-only\"\n [multiple]=\"fileUpload.multiple()\"\n [accept]=\"fileUpload.accept()\"\n [disabled]=\"fileUpload.disabled()\"\n (change)=\"onFileSelect($event)\"\n />\n <ng-content />\n `,\n host: {\n 'data-slot': 'file-upload-dropzone',\n '[class]': 'class()',\n '[attr.data-dragging]': 'isDragging()',\n '[attr.data-disabled]': 'fileUpload.disabled() || null',\n '(click)': 'openFilePicker()',\n '(dragover)': 'onDragOver($event)',\n '(dragleave)': 'onDragLeave($event)',\n '(drop)': 'onDrop($event)',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScFileUploadDropzone {\n readonly fileUpload = inject(SC_FILE_UPLOAD);\n private readonly elementRef = inject(ElementRef);\n\n readonly classInput = input<string>('', { alias: 'class' });\n readonly isDragging = signal(false);\n\n protected readonly class = computed(() =>\n cn(\n 'relative flex min-h-[150px] cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed',\n 'transition-colors hover:border-primary/50 hover:bg-accent/50',\n 'data-[dragging=true]:border-primary data-[dragging=true]:bg-accent',\n 'data-disabled:pointer-events-none data-disabled:opacity-50',\n this.classInput(),\n ),\n );\n\n openFilePicker(): void {\n if (this.fileUpload.disabled()) return;\n const input = this.elementRef.nativeElement.querySelector(\n 'input[type=\"file\"]',\n ) as HTMLInputElement;\n input?.click();\n }\n\n onFileSelect(event: Event): void {\n const input = event.target as HTMLInputElement;\n if (input.files && input.files.length > 0) {\n this.fileUpload.addFiles(input.files);\n input.value = '';\n }\n }\n\n onDragOver(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n if (!this.fileUpload.disabled()) {\n this.isDragging.set(true);\n }\n }\n\n onDragLeave(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isDragging.set(false);\n }\n\n onDrop(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isDragging.set(false);\n\n if (this.fileUpload.disabled()) return;\n\n const files = event.dataTransfer?.files;\n if (files && files.length > 0) {\n this.fileUpload.addFiles(files);\n }\n }\n}\n"]}
@@ -11,10 +11,10 @@ export class ScFileUploadItemDelete {
11
11
  onClick() {
12
12
  this.fileUpload.removeFile(this.fileId());
13
13
  }
14
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemDelete, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFileUploadItemDelete, isStandalone: true, selector: "button[scFileUploadItemDelete]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, fileId: { classPropertyName: "fileId", publicName: "fileId", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-delete", "type": "button" }, listeners: { "click": "onClick()" }, properties: { "class": "class()" } }, ngImport: i0 });
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFileUploadItemDelete, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFileUploadItemDelete, isStandalone: true, selector: "button[scFileUploadItemDelete]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, fileId: { classPropertyName: "fileId", publicName: "fileId", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-delete", "type": "button" }, listeners: { "click": "onClick()" }, properties: { "class": "class()" } }, ngImport: i0 });
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemDelete, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFileUploadItemDelete, decorators: [{
18
18
  type: Directive,
19
19
  args: [{
20
20
  selector: 'button[scFileUploadItemDelete]',
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export class ScFileUploadItemName {
5
5
  classInput = input('', { ...(ngDevMode ? { debugName: "classInput" } : {}), alias: 'class' });
6
6
  class = computed(() => cn('flex-1 truncate text-sm font-medium', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemName, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.5", type: ScFileUploadItemName, isStandalone: true, selector: "[scFileUploadItemName]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-name" }, properties: { "class": "class()" } }, ngImport: i0 });
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFileUploadItemName, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: ScFileUploadItemName, isStandalone: true, selector: "[scFileUploadItemName]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-name" }, properties: { "class": "class()" } }, ngImport: i0 });
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemName, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFileUploadItemName, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[scFileUploadItemName]',
@@ -12,8 +12,8 @@ export class ScFileUploadItemPreview {
12
12
  return '';
13
13
  }, ...(ngDevMode ? [{ debugName: "previewUrl" }] : []));
14
14
  class = computed(() => cn('flex size-10 items-center justify-center overflow-hidden rounded bg-muted', this.classInput()), ...(ngDevMode ? [{ debugName: "class" }] : []));
15
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.5", type: ScFileUploadItemPreview, isStandalone: true, selector: "[scFileUploadItemPreview]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, file: { classPropertyName: "file", publicName: "file", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-preview" }, properties: { "class": "class()" } }, ngImport: i0, template: `
15
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFileUploadItemPreview, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: ScFileUploadItemPreview, isStandalone: true, selector: "[scFileUploadItemPreview]", inputs: { classInput: { classPropertyName: "classInput", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, file: { classPropertyName: "file", publicName: "file", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "data-slot": "file-upload-item-preview" }, properties: { "class": "class()" } }, ngImport: i0, template: `
17
17
  @if (isImage()) {
18
18
  <img
19
19
  [src]="previewUrl()"
@@ -25,7 +25,7 @@ export class ScFileUploadItemPreview {
25
25
  }
26
26
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.5", ngImport: i0, type: ScFileUploadItemPreview, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScFileUploadItemPreview, decorators: [{
29
29
  type: Component,
30
30
  args: [{
31
31
  selector: '[scFileUploadItemPreview]',