@loomui-ng/ui 0.0.0-stage → 0.1.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 (270) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +46 -2
  3. package/accordion/README.md +38 -0
  4. package/alert/README.md +32 -0
  5. package/alert-dialog/README.md +37 -0
  6. package/aspect-ratio/README.md +24 -0
  7. package/attachment/README.md +40 -0
  8. package/avatar/README.md +34 -0
  9. package/badge/README.md +29 -0
  10. package/breadcrumb/README.md +33 -0
  11. package/bubble/README.md +32 -0
  12. package/button/README.md +31 -0
  13. package/button-group/README.md +30 -0
  14. package/calendar/README.md +35 -0
  15. package/card/README.md +41 -0
  16. package/carousel/README.md +41 -0
  17. package/chart/README.md +25 -0
  18. package/checkbox/README.md +31 -0
  19. package/collapsible/README.md +31 -0
  20. package/combobox/README.md +47 -0
  21. package/command/README.md +44 -0
  22. package/context-menu/README.md +36 -0
  23. package/data-table/README.md +39 -0
  24. package/date-picker/README.md +23 -0
  25. package/dialog/README.md +52 -0
  26. package/direction/README.md +19 -0
  27. package/drawer/README.md +37 -0
  28. package/dropdown-menu/README.md +46 -0
  29. package/empty/README.md +38 -0
  30. package/fesm2022/loomui-ng-ui-accordion.mjs +555 -0
  31. package/fesm2022/loomui-ng-ui-accordion.mjs.map +1 -0
  32. package/fesm2022/loomui-ng-ui-alert-dialog.mjs +652 -0
  33. package/fesm2022/loomui-ng-ui-alert-dialog.mjs.map +1 -0
  34. package/fesm2022/loomui-ng-ui-alert.mjs +286 -0
  35. package/fesm2022/loomui-ng-ui-alert.mjs.map +1 -0
  36. package/fesm2022/loomui-ng-ui-aspect-ratio.mjs +97 -0
  37. package/fesm2022/loomui-ng-ui-aspect-ratio.mjs.map +1 -0
  38. package/fesm2022/loomui-ng-ui-attachment.mjs +713 -0
  39. package/fesm2022/loomui-ng-ui-attachment.mjs.map +1 -0
  40. package/fesm2022/loomui-ng-ui-avatar.mjs +561 -0
  41. package/fesm2022/loomui-ng-ui-avatar.mjs.map +1 -0
  42. package/fesm2022/loomui-ng-ui-badge.mjs +102 -0
  43. package/fesm2022/loomui-ng-ui-badge.mjs.map +1 -0
  44. package/fesm2022/loomui-ng-ui-breadcrumb.mjs +520 -0
  45. package/fesm2022/loomui-ng-ui-breadcrumb.mjs.map +1 -0
  46. package/fesm2022/loomui-ng-ui-bubble.mjs +386 -0
  47. package/fesm2022/loomui-ng-ui-bubble.mjs.map +1 -0
  48. package/fesm2022/loomui-ng-ui-button-group.mjs +193 -0
  49. package/fesm2022/loomui-ng-ui-button-group.mjs.map +1 -0
  50. package/fesm2022/loomui-ng-ui-button.mjs +162 -0
  51. package/fesm2022/loomui-ng-ui-button.mjs.map +1 -0
  52. package/fesm2022/loomui-ng-ui-calendar.mjs +681 -0
  53. package/fesm2022/loomui-ng-ui-calendar.mjs.map +1 -0
  54. package/fesm2022/loomui-ng-ui-card.mjs +461 -0
  55. package/fesm2022/loomui-ng-ui-card.mjs.map +1 -0
  56. package/fesm2022/loomui-ng-ui-carousel.mjs +532 -0
  57. package/fesm2022/loomui-ng-ui-carousel.mjs.map +1 -0
  58. package/fesm2022/loomui-ng-ui-chart.mjs +373 -0
  59. package/fesm2022/loomui-ng-ui-chart.mjs.map +1 -0
  60. package/fesm2022/loomui-ng-ui-checkbox.mjs +265 -0
  61. package/fesm2022/loomui-ng-ui-checkbox.mjs.map +1 -0
  62. package/fesm2022/loomui-ng-ui-collapsible.mjs +274 -0
  63. package/fesm2022/loomui-ng-ui-collapsible.mjs.map +1 -0
  64. package/fesm2022/loomui-ng-ui-combobox.mjs +971 -0
  65. package/fesm2022/loomui-ng-ui-combobox.mjs.map +1 -0
  66. package/fesm2022/loomui-ng-ui-command.mjs +982 -0
  67. package/fesm2022/loomui-ng-ui-command.mjs.map +1 -0
  68. package/fesm2022/loomui-ng-ui-context-menu.mjs +1359 -0
  69. package/fesm2022/loomui-ng-ui-context-menu.mjs.map +1 -0
  70. package/fesm2022/loomui-ng-ui-data-table.mjs +535 -0
  71. package/fesm2022/loomui-ng-ui-data-table.mjs.map +1 -0
  72. package/fesm2022/loomui-ng-ui-date-picker.mjs +312 -0
  73. package/fesm2022/loomui-ng-ui-date-picker.mjs.map +1 -0
  74. package/fesm2022/loomui-ng-ui-dialog.mjs +508 -0
  75. package/fesm2022/loomui-ng-ui-dialog.mjs.map +1 -0
  76. package/fesm2022/loomui-ng-ui-direction.mjs +112 -0
  77. package/fesm2022/loomui-ng-ui-direction.mjs.map +1 -0
  78. package/fesm2022/loomui-ng-ui-drawer.mjs +590 -0
  79. package/fesm2022/loomui-ng-ui-drawer.mjs.map +1 -0
  80. package/fesm2022/loomui-ng-ui-dropdown-menu.mjs +1322 -0
  81. package/fesm2022/loomui-ng-ui-dropdown-menu.mjs.map +1 -0
  82. package/fesm2022/loomui-ng-ui-empty.mjs +408 -0
  83. package/fesm2022/loomui-ng-ui-empty.mjs.map +1 -0
  84. package/fesm2022/loomui-ng-ui-field.mjs +630 -0
  85. package/fesm2022/loomui-ng-ui-field.mjs.map +1 -0
  86. package/fesm2022/loomui-ng-ui-hover-card.mjs +230 -0
  87. package/fesm2022/loomui-ng-ui-hover-card.mjs.map +1 -0
  88. package/fesm2022/loomui-ng-ui-icon.mjs +498 -0
  89. package/fesm2022/loomui-ng-ui-icon.mjs.map +1 -0
  90. package/fesm2022/loomui-ng-ui-input-group.mjs +463 -0
  91. package/fesm2022/loomui-ng-ui-input-group.mjs.map +1 -0
  92. package/fesm2022/loomui-ng-ui-input-otp.mjs +586 -0
  93. package/fesm2022/loomui-ng-ui-input-otp.mjs.map +1 -0
  94. package/fesm2022/loomui-ng-ui-input.mjs +289 -0
  95. package/fesm2022/loomui-ng-ui-input.mjs.map +1 -0
  96. package/fesm2022/loomui-ng-ui-item.mjs +598 -0
  97. package/fesm2022/loomui-ng-ui-item.mjs.map +1 -0
  98. package/fesm2022/loomui-ng-ui-kbd.mjs +129 -0
  99. package/fesm2022/loomui-ng-ui-kbd.mjs.map +1 -0
  100. package/fesm2022/loomui-ng-ui-label.mjs +68 -0
  101. package/fesm2022/loomui-ng-ui-label.mjs.map +1 -0
  102. package/fesm2022/loomui-ng-ui-marker.mjs +234 -0
  103. package/fesm2022/loomui-ng-ui-marker.mjs.map +1 -0
  104. package/fesm2022/loomui-ng-ui-menubar.mjs +1523 -0
  105. package/fesm2022/loomui-ng-ui-menubar.mjs.map +1 -0
  106. package/fesm2022/loomui-ng-ui-message-scroller.mjs +519 -0
  107. package/fesm2022/loomui-ng-ui-message-scroller.mjs.map +1 -0
  108. package/fesm2022/loomui-ng-ui-message.mjs +408 -0
  109. package/fesm2022/loomui-ng-ui-message.mjs.map +1 -0
  110. package/fesm2022/loomui-ng-ui-native-select.mjs +389 -0
  111. package/fesm2022/loomui-ng-ui-native-select.mjs.map +1 -0
  112. package/fesm2022/loomui-ng-ui-navigation-menu.mjs +609 -0
  113. package/fesm2022/loomui-ng-ui-navigation-menu.mjs.map +1 -0
  114. package/fesm2022/loomui-ng-ui-pagination.mjs +611 -0
  115. package/fesm2022/loomui-ng-ui-pagination.mjs.map +1 -0
  116. package/fesm2022/loomui-ng-ui-popover.mjs +358 -0
  117. package/fesm2022/loomui-ng-ui-popover.mjs.map +1 -0
  118. package/fesm2022/loomui-ng-ui-progress.mjs +159 -0
  119. package/fesm2022/loomui-ng-ui-progress.mjs.map +1 -0
  120. package/fesm2022/loomui-ng-ui-questionnaire.mjs +1012 -0
  121. package/fesm2022/loomui-ng-ui-questionnaire.mjs.map +1 -0
  122. package/fesm2022/loomui-ng-ui-radio-group.mjs +399 -0
  123. package/fesm2022/loomui-ng-ui-radio-group.mjs.map +1 -0
  124. package/fesm2022/loomui-ng-ui-resizable.mjs +518 -0
  125. package/fesm2022/loomui-ng-ui-resizable.mjs.map +1 -0
  126. package/fesm2022/loomui-ng-ui-scroll-area.mjs +135 -0
  127. package/fesm2022/loomui-ng-ui-scroll-area.mjs.map +1 -0
  128. package/fesm2022/loomui-ng-ui-select.mjs +863 -0
  129. package/fesm2022/loomui-ng-ui-select.mjs.map +1 -0
  130. package/fesm2022/loomui-ng-ui-separator.mjs +114 -0
  131. package/fesm2022/loomui-ng-ui-separator.mjs.map +1 -0
  132. package/fesm2022/loomui-ng-ui-sheet.mjs +530 -0
  133. package/fesm2022/loomui-ng-ui-sheet.mjs.map +1 -0
  134. package/fesm2022/loomui-ng-ui-sidebar.mjs +1918 -0
  135. package/fesm2022/loomui-ng-ui-sidebar.mjs.map +1 -0
  136. package/fesm2022/loomui-ng-ui-skeleton.mjs +69 -0
  137. package/fesm2022/loomui-ng-ui-skeleton.mjs.map +1 -0
  138. package/fesm2022/loomui-ng-ui-slider.mjs +390 -0
  139. package/fesm2022/loomui-ng-ui-slider.mjs.map +1 -0
  140. package/fesm2022/loomui-ng-ui-spinner.mjs +85 -0
  141. package/fesm2022/loomui-ng-ui-spinner.mjs.map +1 -0
  142. package/fesm2022/loomui-ng-ui-switch.mjs +212 -0
  143. package/fesm2022/loomui-ng-ui-switch.mjs.map +1 -0
  144. package/fesm2022/loomui-ng-ui-table.mjs +559 -0
  145. package/fesm2022/loomui-ng-ui-table.mjs.map +1 -0
  146. package/fesm2022/loomui-ng-ui-tabs.mjs +544 -0
  147. package/fesm2022/loomui-ng-ui-tabs.mjs.map +1 -0
  148. package/fesm2022/loomui-ng-ui-textarea.mjs +206 -0
  149. package/fesm2022/loomui-ng-ui-textarea.mjs.map +1 -0
  150. package/fesm2022/loomui-ng-ui-toast.mjs +432 -0
  151. package/fesm2022/loomui-ng-ui-toast.mjs.map +1 -0
  152. package/fesm2022/loomui-ng-ui-toggle-group.mjs +477 -0
  153. package/fesm2022/loomui-ng-ui-toggle-group.mjs.map +1 -0
  154. package/fesm2022/loomui-ng-ui-toggle.mjs +219 -0
  155. package/fesm2022/loomui-ng-ui-toggle.mjs.map +1 -0
  156. package/fesm2022/loomui-ng-ui-tooltip.mjs +240 -0
  157. package/fesm2022/loomui-ng-ui-tooltip.mjs.map +1 -0
  158. package/fesm2022/loomui-ng-ui-typography.mjs +129 -0
  159. package/fesm2022/loomui-ng-ui-typography.mjs.map +1 -0
  160. package/fesm2022/loomui-ng-ui-utils.mjs +1533 -0
  161. package/fesm2022/loomui-ng-ui-utils.mjs.map +1 -0
  162. package/fesm2022/loomui-ng-ui.mjs +4 -0
  163. package/fesm2022/loomui-ng-ui.mjs.map +1 -0
  164. package/field/README.md +43 -0
  165. package/hover-card/README.md +31 -0
  166. package/icon/README.md +42 -0
  167. package/input/README.md +26 -0
  168. package/input-group/README.md +40 -0
  169. package/input-otp/README.md +35 -0
  170. package/item/README.md +33 -0
  171. package/kbd/README.md +21 -0
  172. package/label/README.md +24 -0
  173. package/marker/README.md +24 -0
  174. package/menubar/README.md +40 -0
  175. package/message/README.md +32 -0
  176. package/message-scroller/README.md +40 -0
  177. package/native-select/README.md +26 -0
  178. package/navigation-menu/README.md +39 -0
  179. package/package.json +325 -3
  180. package/pagination/README.md +37 -0
  181. package/popover/README.md +37 -0
  182. package/progress/README.md +25 -0
  183. package/questionnaire/README.md +52 -0
  184. package/radio-group/README.md +33 -0
  185. package/resizable/README.md +37 -0
  186. package/scroll-area/README.md +25 -0
  187. package/select/README.md +45 -0
  188. package/separator/README.md +28 -0
  189. package/sheet/README.md +38 -0
  190. package/sidebar/README.md +60 -0
  191. package/skeleton/README.md +21 -0
  192. package/slider/README.md +29 -0
  193. package/spinner/README.md +15 -0
  194. package/styles/loomui.css +330 -0
  195. package/switch/README.md +29 -0
  196. package/table/README.md +31 -0
  197. package/tabs/README.md +42 -0
  198. package/textarea/README.md +28 -0
  199. package/toast/README.md +27 -0
  200. package/toggle/README.md +27 -0
  201. package/toggle-group/README.md +37 -0
  202. package/tooltip/README.md +31 -0
  203. package/types/loomui-ng-ui-accordion.d.ts +141 -0
  204. package/types/loomui-ng-ui-alert-dialog.d.ts +175 -0
  205. package/types/loomui-ng-ui-alert.d.ts +77 -0
  206. package/types/loomui-ng-ui-aspect-ratio.d.ts +31 -0
  207. package/types/loomui-ng-ui-attachment.d.ts +192 -0
  208. package/types/loomui-ng-ui-avatar.d.ts +147 -0
  209. package/types/loomui-ng-ui-badge.d.ts +32 -0
  210. package/types/loomui-ng-ui-breadcrumb.d.ts +118 -0
  211. package/types/loomui-ng-ui-bubble.d.ts +100 -0
  212. package/types/loomui-ng-ui-button-group.d.ts +51 -0
  213. package/types/loomui-ng-ui-button.d.ts +57 -0
  214. package/types/loomui-ng-ui-calendar.d.ts +171 -0
  215. package/types/loomui-ng-ui-card.d.ts +123 -0
  216. package/types/loomui-ng-ui-carousel.d.ts +140 -0
  217. package/types/loomui-ng-ui-chart.d.ts +95 -0
  218. package/types/loomui-ng-ui-checkbox.d.ts +62 -0
  219. package/types/loomui-ng-ui-collapsible.d.ts +74 -0
  220. package/types/loomui-ng-ui-combobox.d.ts +229 -0
  221. package/types/loomui-ng-ui-command.d.ts +231 -0
  222. package/types/loomui-ng-ui-context-menu.d.ts +288 -0
  223. package/types/loomui-ng-ui-data-table.d.ts +111 -0
  224. package/types/loomui-ng-ui-date-picker.d.ts +63 -0
  225. package/types/loomui-ng-ui-dialog.d.ts +127 -0
  226. package/types/loomui-ng-ui-direction.d.ts +42 -0
  227. package/types/loomui-ng-ui-drawer.d.ts +149 -0
  228. package/types/loomui-ng-ui-dropdown-menu.d.ts +258 -0
  229. package/types/loomui-ng-ui-empty.d.ts +109 -0
  230. package/types/loomui-ng-ui-field.d.ts +169 -0
  231. package/types/loomui-ng-ui-hover-card.d.ts +62 -0
  232. package/types/loomui-ng-ui-icon.d.ts +156 -0
  233. package/types/loomui-ng-ui-input-group.d.ts +130 -0
  234. package/types/loomui-ng-ui-input-otp.d.ts +149 -0
  235. package/types/loomui-ng-ui-input.d.ts +89 -0
  236. package/types/loomui-ng-ui-item.d.ts +157 -0
  237. package/types/loomui-ng-ui-kbd.d.ts +36 -0
  238. package/types/loomui-ng-ui-label.d.ts +19 -0
  239. package/types/loomui-ng-ui-marker.d.ts +61 -0
  240. package/types/loomui-ng-ui-menubar.d.ts +321 -0
  241. package/types/loomui-ng-ui-message-scroller.d.ts +138 -0
  242. package/types/loomui-ng-ui-message.d.ts +109 -0
  243. package/types/loomui-ng-ui-native-select.d.ts +84 -0
  244. package/types/loomui-ng-ui-navigation-menu.d.ts +160 -0
  245. package/types/loomui-ng-ui-pagination.d.ts +130 -0
  246. package/types/loomui-ng-ui-popover.d.ts +90 -0
  247. package/types/loomui-ng-ui-progress.d.ts +39 -0
  248. package/types/loomui-ng-ui-questionnaire.d.ts +274 -0
  249. package/types/loomui-ng-ui-radio-group.d.ts +109 -0
  250. package/types/loomui-ng-ui-resizable.d.ts +121 -0
  251. package/types/loomui-ng-ui-scroll-area.d.ts +44 -0
  252. package/types/loomui-ng-ui-select.d.ts +204 -0
  253. package/types/loomui-ng-ui-separator.d.ts +35 -0
  254. package/types/loomui-ng-ui-sheet.d.ts +124 -0
  255. package/types/loomui-ng-ui-sidebar.d.ts +485 -0
  256. package/types/loomui-ng-ui-skeleton.d.ts +20 -0
  257. package/types/loomui-ng-ui-slider.d.ts +103 -0
  258. package/types/loomui-ng-ui-spinner.d.ts +19 -0
  259. package/types/loomui-ng-ui-switch.d.ts +56 -0
  260. package/types/loomui-ng-ui-table.d.ts +148 -0
  261. package/types/loomui-ng-ui-tabs.d.ts +148 -0
  262. package/types/loomui-ng-ui-textarea.d.ts +52 -0
  263. package/types/loomui-ng-ui-toast.d.ts +97 -0
  264. package/types/loomui-ng-ui-toggle-group.d.ts +138 -0
  265. package/types/loomui-ng-ui-toggle.d.ts +63 -0
  266. package/types/loomui-ng-ui-tooltip.d.ts +63 -0
  267. package/types/loomui-ng-ui-typography.d.ts +42 -0
  268. package/types/loomui-ng-ui-utils.d.ts +392 -0
  269. package/types/loomui-ng-ui.d.ts +5 -0
  270. package/typography/README.md +29 -0
@@ -0,0 +1,863 @@
1
+ import { FocusKeyManager } from "@angular/cdk/a11y";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, Directive, ElementRef, booleanAttribute, computed, contentChildren, effect, forwardRef, inject, input, model, signal } from "@angular/core";
4
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
5
+ import * as i1 from "@loomui-ng/ui/utils";
6
+ import { UiElementHost, UiLayerRoot, UiPopperContentBase, cn } from "@loomui-ng/ui/utils";
7
+ import { UiIconSvg } from "@loomui-ng/ui/icon";
8
+ const TRIGGER_CLASS = "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 ps-2.5 pe-2 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";
9
+ const CONTENT_CLASS = "relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95";
10
+ const ITEM_CLASS = "relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2";
11
+ var UiSelect = class UiSelect extends UiLayerRoot {
12
+ value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
13
+ disabled = input(false, {
14
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
15
+ transform: booleanAttribute
16
+ });
17
+ invalid = input(false, {
18
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
19
+ transform: booleanAttribute
20
+ });
21
+ cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
22
+ isDisabled = computed(() => this.disabled() || this.cvaDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
23
+ items = contentChildren(forwardRef(() => UiSelectItem), {
24
+ ...ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {},
25
+ descendants: true
26
+ });
27
+ manager = signal(null, ...ngDevMode ? [{ debugName: "manager" }] : /* istanbul ignore next */ []);
28
+ keyboardOpen = false;
29
+ selectedLabel = computed(() => this.items().find((i) => i.value() === this.value())?.label() ?? "", ...ngDevMode ? [{ debugName: "selectedLabel" }] : /* istanbul ignore next */ []);
30
+ onChange = () => {};
31
+ onTouched = () => {};
32
+ choose(v) {
33
+ this.value.set(v);
34
+ this.onChange(v);
35
+ this.close();
36
+ }
37
+ writeValue(v) {
38
+ this.value.set(v ?? "");
39
+ }
40
+ registerOnChange(fn) {
41
+ this.onChange = fn;
42
+ }
43
+ registerOnTouched(fn) {
44
+ this.onTouched = fn;
45
+ }
46
+ setDisabledState(d) {
47
+ this.cvaDisabled.set(d);
48
+ }
49
+ static ɵfac = i0.ɵɵngDeclareFactory({
50
+ minVersion: "12.0.0",
51
+ version: "22.2.2",
52
+ ngImport: i0,
53
+ type: UiSelect,
54
+ deps: null,
55
+ target: i0.ɵɵFactoryTarget.Directive
56
+ });
57
+ static ɵdir = i0.ɵɵngDeclareDirective({
58
+ minVersion: "17.2.0",
59
+ version: "22.2.2",
60
+ type: UiSelect,
61
+ isStandalone: true,
62
+ selector: "[uiSelect], ui-select",
63
+ inputs: {
64
+ value: {
65
+ classPropertyName: "value",
66
+ publicName: "value",
67
+ isSignal: true,
68
+ isRequired: false,
69
+ transformFunction: null
70
+ },
71
+ disabled: {
72
+ classPropertyName: "disabled",
73
+ publicName: "disabled",
74
+ isSignal: true,
75
+ isRequired: false,
76
+ transformFunction: null
77
+ },
78
+ invalid: {
79
+ classPropertyName: "invalid",
80
+ publicName: "invalid",
81
+ isSignal: true,
82
+ isRequired: false,
83
+ transformFunction: null
84
+ }
85
+ },
86
+ outputs: { value: "valueChange" },
87
+ providers: [{
88
+ provide: NG_VALUE_ACCESSOR,
89
+ useExisting: forwardRef(() => UiSelect),
90
+ multi: true
91
+ }],
92
+ queries: [{
93
+ propertyName: "items",
94
+ predicate: i0.forwardRef(() => UiSelectItem),
95
+ descendants: true,
96
+ isSignal: true
97
+ }],
98
+ exportAs: ["uiSelect"],
99
+ usesInheritance: true,
100
+ hostDirectives: [{ directive: i1.UiElementHost }],
101
+ ngImport: i0
102
+ });
103
+ };
104
+ i0.ɵɵngDeclareClassMetadata({
105
+ minVersion: "12.0.0",
106
+ version: "22.2.2",
107
+ ngImport: i0,
108
+ type: UiSelect,
109
+ decorators: [{
110
+ type: Directive,
111
+ args: [{
112
+ selector: "[uiSelect], ui-select",
113
+ hostDirectives: [UiElementHost],
114
+ exportAs: "uiSelect",
115
+ providers: [{
116
+ provide: NG_VALUE_ACCESSOR,
117
+ useExisting: forwardRef(() => UiSelect),
118
+ multi: true
119
+ }]
120
+ }]
121
+ }],
122
+ propDecorators: {
123
+ value: [{
124
+ type: i0.Input,
125
+ args: [{
126
+ isSignal: true,
127
+ alias: "value",
128
+ required: false
129
+ }]
130
+ }, {
131
+ type: i0.Output,
132
+ args: ["valueChange"]
133
+ }],
134
+ disabled: [{
135
+ type: i0.Input,
136
+ args: [{
137
+ isSignal: true,
138
+ alias: "disabled",
139
+ required: false
140
+ }]
141
+ }],
142
+ invalid: [{
143
+ type: i0.Input,
144
+ args: [{
145
+ isSignal: true,
146
+ alias: "invalid",
147
+ required: false
148
+ }]
149
+ }],
150
+ items: [{
151
+ type: i0.ContentChildren,
152
+ args: [forwardRef(() => UiSelectItem), {
153
+ descendants: true,
154
+ isSignal: true
155
+ }]
156
+ }]
157
+ }
158
+ });
159
+ var UiSelectTrigger = class UiSelectTrigger {
160
+ root = inject(UiSelect);
161
+ size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
162
+ userClass = input("", {
163
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
164
+ alias: "class"
165
+ });
166
+ classes = computed(() => cn(TRIGGER_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
167
+ constructor() {
168
+ this.root.trigger.set(inject(ElementRef).nativeElement);
169
+ }
170
+ onClick() {
171
+ this.root.keyboardOpen = false;
172
+ this.root.toggle();
173
+ }
174
+ onKeydown(e) {
175
+ if ([
176
+ "Enter",
177
+ " ",
178
+ "ArrowDown",
179
+ "ArrowUp"
180
+ ].includes(e.key)) {
181
+ e.preventDefault();
182
+ this.root.keyboardOpen = true;
183
+ this.root.open.set(true);
184
+ }
185
+ }
186
+ static ɵfac = i0.ɵɵngDeclareFactory({
187
+ minVersion: "12.0.0",
188
+ version: "22.2.2",
189
+ ngImport: i0,
190
+ type: UiSelectTrigger,
191
+ deps: [],
192
+ target: i0.ɵɵFactoryTarget.Component
193
+ });
194
+ static ɵcmp = i0.ɵɵngDeclareComponent({
195
+ minVersion: "17.1.0",
196
+ version: "22.2.2",
197
+ type: UiSelectTrigger,
198
+ isStandalone: true,
199
+ selector: "button[uiSelectTrigger], ui-select-trigger",
200
+ inputs: {
201
+ size: {
202
+ classPropertyName: "size",
203
+ publicName: "size",
204
+ isSignal: true,
205
+ isRequired: false,
206
+ transformFunction: null
207
+ },
208
+ userClass: {
209
+ classPropertyName: "userClass",
210
+ publicName: "class",
211
+ isSignal: true,
212
+ isRequired: false,
213
+ transformFunction: null
214
+ }
215
+ },
216
+ host: {
217
+ attributes: {
218
+ "type": "button",
219
+ "role": "combobox",
220
+ "aria-autocomplete": "none",
221
+ "data-slot": "select-trigger"
222
+ },
223
+ listeners: {
224
+ "click": "onClick()",
225
+ "keydown": "onKeydown($event)",
226
+ "blur": "root.onTouched()"
227
+ },
228
+ properties: {
229
+ "attr.aria-controls": "root.id",
230
+ "attr.aria-expanded": "root.open()",
231
+ "attr.aria-invalid": "root.invalid() ? \"true\" : null",
232
+ "attr.data-state": "root.open() ? \"open\" : \"closed\"",
233
+ "attr.data-placeholder": "root.value() === \"\" ? \"\" : null",
234
+ "attr.data-size": "size()",
235
+ "attr.data-disabled": "root.isDisabled() ? \"\" : null",
236
+ "attr.disabled": "(root.isDisabled()) ? \"\" : null",
237
+ "attr.class": "classes()"
238
+ }
239
+ },
240
+ hostDirectives: [{ directive: i1.UiElementHost }],
241
+ ngImport: i0,
242
+ template: `
243
+ <ng-content />
244
+ <svg uiIcon="chevron-down" class="pointer-events-none size-4 text-muted-foreground"></svg>
245
+ `,
246
+ isInline: true,
247
+ dependencies: [{
248
+ kind: "directive",
249
+ type: UiIconSvg,
250
+ selector: "svg[uiIcon]",
251
+ inputs: [
252
+ "uiIcon",
253
+ "icon",
254
+ "size",
255
+ "strokeWidth",
256
+ "absoluteStrokeWidth",
257
+ "color",
258
+ "label",
259
+ "class"
260
+ ]
261
+ }],
262
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
263
+ });
264
+ };
265
+ i0.ɵɵngDeclareClassMetadata({
266
+ minVersion: "12.0.0",
267
+ version: "22.2.2",
268
+ ngImport: i0,
269
+ type: UiSelectTrigger,
270
+ decorators: [{
271
+ type: Component,
272
+ args: [{
273
+ selector: "button[uiSelectTrigger], ui-select-trigger",
274
+ hostDirectives: [UiElementHost],
275
+ imports: [UiIconSvg],
276
+ changeDetection: ChangeDetectionStrategy.OnPush,
277
+ host: {
278
+ type: "button",
279
+ role: "combobox",
280
+ "aria-autocomplete": "none",
281
+ "data-slot": "select-trigger",
282
+ "[attr.aria-controls]": "root.id",
283
+ "[attr.aria-expanded]": "root.open()",
284
+ "[attr.aria-invalid]": "root.invalid() ? \"true\" : null",
285
+ "[attr.data-state]": "root.open() ? \"open\" : \"closed\"",
286
+ "[attr.data-placeholder]": "root.value() === \"\" ? \"\" : null",
287
+ "[attr.data-size]": "size()",
288
+ "[attr.data-disabled]": "root.isDisabled() ? \"\" : null",
289
+ "[attr.disabled]": "(root.isDisabled()) ? \"\" : null",
290
+ "[attr.class]": "classes()",
291
+ "(click)": "onClick()",
292
+ "(keydown)": "onKeydown($event)",
293
+ "(blur)": "root.onTouched()"
294
+ },
295
+ template: `
296
+ <ng-content />
297
+ <svg uiIcon="chevron-down" class="pointer-events-none size-4 text-muted-foreground"></svg>
298
+ `
299
+ }]
300
+ }],
301
+ ctorParameters: () => [],
302
+ propDecorators: {
303
+ size: [{
304
+ type: i0.Input,
305
+ args: [{
306
+ isSignal: true,
307
+ alias: "size",
308
+ required: false
309
+ }]
310
+ }],
311
+ userClass: [{
312
+ type: i0.Input,
313
+ args: [{
314
+ isSignal: true,
315
+ alias: "class",
316
+ required: false
317
+ }]
318
+ }]
319
+ }
320
+ });
321
+ var UiSelectValue = class UiSelectValue {
322
+ root = inject(UiSelect);
323
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
324
+ text = computed(() => this.root.selectedLabel() || this.placeholder(), ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
325
+ static ɵfac = i0.ɵɵngDeclareFactory({
326
+ minVersion: "12.0.0",
327
+ version: "22.2.2",
328
+ ngImport: i0,
329
+ type: UiSelectValue,
330
+ deps: [],
331
+ target: i0.ɵɵFactoryTarget.Directive
332
+ });
333
+ static ɵdir = i0.ɵɵngDeclareDirective({
334
+ minVersion: "17.1.0",
335
+ version: "22.2.2",
336
+ type: UiSelectValue,
337
+ isStandalone: true,
338
+ selector: "[uiSelectValue], ui-select-value",
339
+ inputs: { placeholder: {
340
+ classPropertyName: "placeholder",
341
+ publicName: "placeholder",
342
+ isSignal: true,
343
+ isRequired: false,
344
+ transformFunction: null
345
+ } },
346
+ host: {
347
+ attributes: { "data-slot": "select-value" },
348
+ properties: { "textContent": "text()" },
349
+ styleAttribute: "pointer-events: none"
350
+ },
351
+ hostDirectives: [{ directive: i1.UiElementHost }],
352
+ ngImport: i0
353
+ });
354
+ };
355
+ i0.ɵɵngDeclareClassMetadata({
356
+ minVersion: "12.0.0",
357
+ version: "22.2.2",
358
+ ngImport: i0,
359
+ type: UiSelectValue,
360
+ decorators: [{
361
+ type: Directive,
362
+ args: [{
363
+ selector: "[uiSelectValue], ui-select-value",
364
+ hostDirectives: [UiElementHost],
365
+ host: {
366
+ "data-slot": "select-value",
367
+ style: "pointer-events: none",
368
+ "[textContent]": "text()"
369
+ }
370
+ }]
371
+ }],
372
+ propDecorators: { placeholder: [{
373
+ type: i0.Input,
374
+ args: [{
375
+ isSignal: true,
376
+ alias: "placeholder",
377
+ required: false
378
+ }]
379
+ }] }
380
+ });
381
+ var UiSelectContent = class UiSelectContent extends UiPopperContentBase {
382
+ root = inject(UiSelect);
383
+ varPrefix = "--radix-select";
384
+ classes = computed(() => cn(CONTENT_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
385
+ manager = null;
386
+ constructor() {
387
+ super();
388
+ this.matchTriggerWidth = true;
389
+ this.init();
390
+ }
391
+ onAttached() {
392
+ this.manager = new FocusKeyManager([...this.root.items()]).withVerticalOrientation().withHomeAndEnd().withTypeAhead(150).skipPredicate((i) => i.disabled);
393
+ this.root.manager.set(this.manager);
394
+ queueMicrotask(() => {
395
+ const selected = this.root.items().findIndex((i) => i.value() === this.root.value() && !i.disabled);
396
+ if (selected >= 0) this.manager?.setActiveItem(selected);
397
+ else this.manager?.setFirstItemActive();
398
+ });
399
+ }
400
+ onDetached() {
401
+ this.manager = null;
402
+ this.root.manager.set(null);
403
+ }
404
+ onKeydown(e) {
405
+ if (e.key === "Tab") return e.preventDefault();
406
+ if (e.key === "Enter" || e.key === " ") {
407
+ e.preventDefault();
408
+ this.manager?.activeItem?.choose();
409
+ return;
410
+ }
411
+ this.manager?.onKeydown(e);
412
+ }
413
+ static ɵfac = i0.ɵɵngDeclareFactory({
414
+ minVersion: "12.0.0",
415
+ version: "22.2.2",
416
+ ngImport: i0,
417
+ type: UiSelectContent,
418
+ deps: [],
419
+ target: i0.ɵɵFactoryTarget.Directive
420
+ });
421
+ static ɵdir = i0.ɵɵngDeclareDirective({
422
+ minVersion: "14.0.0",
423
+ version: "22.2.2",
424
+ type: UiSelectContent,
425
+ isStandalone: true,
426
+ selector: "[uiSelectContent], ui-select-content",
427
+ host: {
428
+ attributes: {
429
+ "role": "listbox",
430
+ "data-slot": "select-content",
431
+ "tabindex": "-1"
432
+ },
433
+ listeners: { "keydown": "onKeydown($event)" },
434
+ properties: {
435
+ "id": "root.id",
436
+ "attr.data-state": "root.state()",
437
+ "attr.dir": "dir.value",
438
+ "attr.class": "classes()"
439
+ }
440
+ },
441
+ usesInheritance: true,
442
+ hostDirectives: [{ directive: i1.UiElementHost }],
443
+ ngImport: i0
444
+ });
445
+ };
446
+ i0.ɵɵngDeclareClassMetadata({
447
+ minVersion: "12.0.0",
448
+ version: "22.2.2",
449
+ ngImport: i0,
450
+ type: UiSelectContent,
451
+ decorators: [{
452
+ type: Directive,
453
+ args: [{
454
+ selector: "[uiSelectContent], ui-select-content",
455
+ hostDirectives: [UiElementHost],
456
+ host: {
457
+ role: "listbox",
458
+ "data-slot": "select-content",
459
+ tabindex: "-1",
460
+ "[id]": "root.id",
461
+ "[attr.data-state]": "root.state()",
462
+ "[attr.dir]": "dir.value",
463
+ "[attr.class]": "classes()",
464
+ "(keydown)": "onKeydown($event)"
465
+ }
466
+ }]
467
+ }],
468
+ ctorParameters: () => []
469
+ });
470
+ var UiSelectGroup = class UiSelectGroup {
471
+ userClass = input("", {
472
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
473
+ alias: "class"
474
+ });
475
+ classes = computed(() => cn("scroll-my-1 p-1", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
476
+ static ɵfac = i0.ɵɵngDeclareFactory({
477
+ minVersion: "12.0.0",
478
+ version: "22.2.2",
479
+ ngImport: i0,
480
+ type: UiSelectGroup,
481
+ deps: [],
482
+ target: i0.ɵɵFactoryTarget.Directive
483
+ });
484
+ static ɵdir = i0.ɵɵngDeclareDirective({
485
+ minVersion: "17.1.0",
486
+ version: "22.2.2",
487
+ type: UiSelectGroup,
488
+ isStandalone: true,
489
+ selector: "[uiSelectGroup], ui-select-group",
490
+ inputs: { userClass: {
491
+ classPropertyName: "userClass",
492
+ publicName: "class",
493
+ isSignal: true,
494
+ isRequired: false,
495
+ transformFunction: null
496
+ } },
497
+ host: {
498
+ attributes: {
499
+ "role": "group",
500
+ "data-slot": "select-group"
501
+ },
502
+ properties: { "attr.class": "classes()" }
503
+ },
504
+ hostDirectives: [{ directive: i1.UiElementHost }],
505
+ ngImport: i0
506
+ });
507
+ };
508
+ i0.ɵɵngDeclareClassMetadata({
509
+ minVersion: "12.0.0",
510
+ version: "22.2.2",
511
+ ngImport: i0,
512
+ type: UiSelectGroup,
513
+ decorators: [{
514
+ type: Directive,
515
+ args: [{
516
+ selector: "[uiSelectGroup], ui-select-group",
517
+ hostDirectives: [UiElementHost],
518
+ host: {
519
+ role: "group",
520
+ "data-slot": "select-group",
521
+ "[attr.class]": "classes()"
522
+ }
523
+ }]
524
+ }],
525
+ propDecorators: { userClass: [{
526
+ type: i0.Input,
527
+ args: [{
528
+ isSignal: true,
529
+ alias: "class",
530
+ required: false
531
+ }]
532
+ }] }
533
+ });
534
+ var UiSelectLabel = class UiSelectLabel {
535
+ userClass = input("", {
536
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
537
+ alias: "class"
538
+ });
539
+ classes = computed(() => cn("px-1.5 py-1 text-xs text-muted-foreground", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
540
+ static ɵfac = i0.ɵɵngDeclareFactory({
541
+ minVersion: "12.0.0",
542
+ version: "22.2.2",
543
+ ngImport: i0,
544
+ type: UiSelectLabel,
545
+ deps: [],
546
+ target: i0.ɵɵFactoryTarget.Directive
547
+ });
548
+ static ɵdir = i0.ɵɵngDeclareDirective({
549
+ minVersion: "17.1.0",
550
+ version: "22.2.2",
551
+ type: UiSelectLabel,
552
+ isStandalone: true,
553
+ selector: "[uiSelectLabel], ui-select-label",
554
+ inputs: { userClass: {
555
+ classPropertyName: "userClass",
556
+ publicName: "class",
557
+ isSignal: true,
558
+ isRequired: false,
559
+ transformFunction: null
560
+ } },
561
+ host: {
562
+ attributes: { "data-slot": "select-label" },
563
+ properties: { "attr.class": "classes()" }
564
+ },
565
+ hostDirectives: [{ directive: i1.UiElementHost }],
566
+ ngImport: i0
567
+ });
568
+ };
569
+ i0.ɵɵngDeclareClassMetadata({
570
+ minVersion: "12.0.0",
571
+ version: "22.2.2",
572
+ ngImport: i0,
573
+ type: UiSelectLabel,
574
+ decorators: [{
575
+ type: Directive,
576
+ args: [{
577
+ selector: "[uiSelectLabel], ui-select-label",
578
+ hostDirectives: [UiElementHost],
579
+ host: {
580
+ "data-slot": "select-label",
581
+ "[attr.class]": "classes()"
582
+ }
583
+ }]
584
+ }],
585
+ propDecorators: { userClass: [{
586
+ type: i0.Input,
587
+ args: [{
588
+ isSignal: true,
589
+ alias: "class",
590
+ required: false
591
+ }]
592
+ }] }
593
+ });
594
+ var UiSelectSeparator = class UiSelectSeparator {
595
+ userClass = input("", {
596
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
597
+ alias: "class"
598
+ });
599
+ classes = computed(() => cn("pointer-events-none -mx-1 my-1 h-px bg-border", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
600
+ static ɵfac = i0.ɵɵngDeclareFactory({
601
+ minVersion: "12.0.0",
602
+ version: "22.2.2",
603
+ ngImport: i0,
604
+ type: UiSelectSeparator,
605
+ deps: [],
606
+ target: i0.ɵɵFactoryTarget.Directive
607
+ });
608
+ static ɵdir = i0.ɵɵngDeclareDirective({
609
+ minVersion: "17.1.0",
610
+ version: "22.2.2",
611
+ type: UiSelectSeparator,
612
+ isStandalone: true,
613
+ selector: "[uiSelectSeparator], ui-select-separator",
614
+ inputs: { userClass: {
615
+ classPropertyName: "userClass",
616
+ publicName: "class",
617
+ isSignal: true,
618
+ isRequired: false,
619
+ transformFunction: null
620
+ } },
621
+ host: {
622
+ attributes: {
623
+ "role": "separator",
624
+ "aria-orientation": "horizontal",
625
+ "data-slot": "select-separator"
626
+ },
627
+ properties: { "attr.class": "classes()" }
628
+ },
629
+ hostDirectives: [{ directive: i1.UiElementHost }],
630
+ ngImport: i0
631
+ });
632
+ };
633
+ i0.ɵɵngDeclareClassMetadata({
634
+ minVersion: "12.0.0",
635
+ version: "22.2.2",
636
+ ngImport: i0,
637
+ type: UiSelectSeparator,
638
+ decorators: [{
639
+ type: Directive,
640
+ args: [{
641
+ selector: "[uiSelectSeparator], ui-select-separator",
642
+ hostDirectives: [UiElementHost],
643
+ host: {
644
+ role: "separator",
645
+ "aria-orientation": "horizontal",
646
+ "data-slot": "select-separator",
647
+ "[attr.class]": "classes()"
648
+ }
649
+ }]
650
+ }],
651
+ propDecorators: { userClass: [{
652
+ type: i0.Input,
653
+ args: [{
654
+ isSignal: true,
655
+ alias: "class",
656
+ required: false
657
+ }]
658
+ }] }
659
+ });
660
+ var UiSelectItem = class UiSelectItem {
661
+ root = inject(UiSelect);
662
+ el = inject(ElementRef).nativeElement;
663
+ value = input("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
664
+ disabledInput = input(false, {
665
+ ...ngDevMode ? { debugName: "disabledInput" } : /* istanbul ignore next */ {},
666
+ alias: "disabled",
667
+ transform: booleanAttribute
668
+ });
669
+ userClass = input("", {
670
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
671
+ alias: "class"
672
+ });
673
+ highlighted = signal(false, ...ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []);
674
+ selected = computed(() => this.root.value() === this.value(), ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
675
+ classes = computed(() => cn(ITEM_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
676
+ label = signal("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
677
+ constructor() {
678
+ effect(() => {
679
+ this.value();
680
+ queueMicrotask(() => this.label.set((this.el.querySelector("span")?.textContent ?? "").trim()));
681
+ });
682
+ }
683
+ get disabled() {
684
+ return this.disabledInput();
685
+ }
686
+ focus() {
687
+ this.el.focus();
688
+ }
689
+ getLabel() {
690
+ return this.label();
691
+ }
692
+ onPointerMove() {
693
+ if (this.disabled || this.highlighted()) return;
694
+ this.root.manager()?.setActiveItem(this);
695
+ }
696
+ choose() {
697
+ if (!this.disabled) this.root.choose(this.value());
698
+ }
699
+ static ɵfac = i0.ɵɵngDeclareFactory({
700
+ minVersion: "12.0.0",
701
+ version: "22.2.2",
702
+ ngImport: i0,
703
+ type: UiSelectItem,
704
+ deps: [],
705
+ target: i0.ɵɵFactoryTarget.Component
706
+ });
707
+ static ɵcmp = i0.ɵɵngDeclareComponent({
708
+ minVersion: "17.0.0",
709
+ version: "22.2.2",
710
+ type: UiSelectItem,
711
+ isStandalone: true,
712
+ selector: "[uiSelectItem], ui-select-item",
713
+ inputs: {
714
+ value: {
715
+ classPropertyName: "value",
716
+ publicName: "value",
717
+ isSignal: true,
718
+ isRequired: false,
719
+ transformFunction: null
720
+ },
721
+ disabledInput: {
722
+ classPropertyName: "disabledInput",
723
+ publicName: "disabled",
724
+ isSignal: true,
725
+ isRequired: false,
726
+ transformFunction: null
727
+ },
728
+ userClass: {
729
+ classPropertyName: "userClass",
730
+ publicName: "class",
731
+ isSignal: true,
732
+ isRequired: false,
733
+ transformFunction: null
734
+ }
735
+ },
736
+ host: {
737
+ attributes: {
738
+ "role": "option",
739
+ "tabindex": "-1",
740
+ "data-slot": "select-item"
741
+ },
742
+ listeners: {
743
+ "focus": "highlighted.set(true)",
744
+ "blur": "highlighted.set(false)",
745
+ "pointermove": "onPointerMove()",
746
+ "click": "choose()"
747
+ },
748
+ properties: {
749
+ "attr.aria-selected": "selected()",
750
+ "attr.data-state": "selected() ? \"checked\" : \"unchecked\"",
751
+ "attr.data-disabled": "disabled ? \"\" : null",
752
+ "attr.aria-disabled": "disabled ? \"true\" : null",
753
+ "attr.data-highlighted": "highlighted() ? \"\" : null",
754
+ "attr.class": "classes()"
755
+ }
756
+ },
757
+ hostDirectives: [{ directive: i1.UiElementHost }],
758
+ ngImport: i0,
759
+ template: `
760
+ <span><ng-content /></span>
761
+ <span class="pointer-events-none absolute end-2 flex size-4 items-center justify-center" data-slot="select-item-indicator">
762
+ @if (selected()) {
763
+ <svg uiIcon="check"></svg>
764
+ }
765
+ </span>
766
+ `,
767
+ isInline: true,
768
+ dependencies: [{
769
+ kind: "directive",
770
+ type: UiIconSvg,
771
+ selector: "svg[uiIcon]",
772
+ inputs: [
773
+ "uiIcon",
774
+ "icon",
775
+ "size",
776
+ "strokeWidth",
777
+ "absoluteStrokeWidth",
778
+ "color",
779
+ "label",
780
+ "class"
781
+ ]
782
+ }],
783
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
784
+ });
785
+ };
786
+ i0.ɵɵngDeclareClassMetadata({
787
+ minVersion: "12.0.0",
788
+ version: "22.2.2",
789
+ ngImport: i0,
790
+ type: UiSelectItem,
791
+ decorators: [{
792
+ type: Component,
793
+ args: [{
794
+ selector: "[uiSelectItem], ui-select-item",
795
+ hostDirectives: [UiElementHost],
796
+ imports: [UiIconSvg],
797
+ changeDetection: ChangeDetectionStrategy.OnPush,
798
+ host: {
799
+ role: "option",
800
+ tabindex: "-1",
801
+ "data-slot": "select-item",
802
+ "[attr.aria-selected]": "selected()",
803
+ "[attr.data-state]": "selected() ? \"checked\" : \"unchecked\"",
804
+ "[attr.data-disabled]": "disabled ? \"\" : null",
805
+ "[attr.aria-disabled]": "disabled ? \"true\" : null",
806
+ "[attr.data-highlighted]": "highlighted() ? \"\" : null",
807
+ "[attr.class]": "classes()",
808
+ "(focus)": "highlighted.set(true)",
809
+ "(blur)": "highlighted.set(false)",
810
+ "(pointermove)": "onPointerMove()",
811
+ "(click)": "choose()"
812
+ },
813
+ template: `
814
+ <span><ng-content /></span>
815
+ <span class="pointer-events-none absolute end-2 flex size-4 items-center justify-center" data-slot="select-item-indicator">
816
+ @if (selected()) {
817
+ <svg uiIcon="check"></svg>
818
+ }
819
+ </span>
820
+ `
821
+ }]
822
+ }],
823
+ ctorParameters: () => [],
824
+ propDecorators: {
825
+ value: [{
826
+ type: i0.Input,
827
+ args: [{
828
+ isSignal: true,
829
+ alias: "value",
830
+ required: false
831
+ }]
832
+ }],
833
+ disabledInput: [{
834
+ type: i0.Input,
835
+ args: [{
836
+ isSignal: true,
837
+ alias: "disabled",
838
+ required: false
839
+ }]
840
+ }],
841
+ userClass: [{
842
+ type: i0.Input,
843
+ args: [{
844
+ isSignal: true,
845
+ alias: "class",
846
+ required: false
847
+ }]
848
+ }]
849
+ }
850
+ });
851
+ const UI_SELECT = [
852
+ UiSelect,
853
+ UiSelectTrigger,
854
+ UiSelectValue,
855
+ UiSelectContent,
856
+ UiSelectGroup,
857
+ UiSelectLabel,
858
+ UiSelectSeparator,
859
+ UiSelectItem
860
+ ];
861
+ export { UI_SELECT, UiSelect, UiSelectContent, UiSelectGroup, UiSelectItem, UiSelectLabel, UiSelectSeparator, UiSelectTrigger, UiSelectValue };
862
+
863
+ //# sourceMappingURL=loomui-ng-ui-select.mjs.map