@loomui-ng/ui 0.0.0-stage → 0.1.1

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,532 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, afterNextRender, computed, inject, input, output, signal } from "@angular/core";
3
+ import { Directionality } from "@angular/cdk/bidi";
4
+ import EmblaCarousel from "embla-carousel";
5
+ import { buttonVariants } from "@loomui-ng/ui/button";
6
+ import * as i1 from "@loomui-ng/ui/utils";
7
+ import { UiElementHost, cn } from "@loomui-ng/ui/utils";
8
+ import { UiIconSvg } from "@loomui-ng/ui/icon";
9
+ var UiCarousel = class UiCarousel {
10
+ dir = inject(Directionality);
11
+ el = inject(ElementRef).nativeElement;
12
+ opts = input({}, ...ngDevMode ? [{ debugName: "opts" }] : /* istanbul ignore next */ []);
13
+ plugins = input([], ...ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []);
14
+ orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
15
+ userClass = input("", {
16
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
17
+ alias: "class"
18
+ });
19
+ ready = output();
20
+ api = signal(null, ...ngDevMode ? [{ debugName: "api" }] : /* istanbul ignore next */ []);
21
+ canPrev = signal(false, ...ngDevMode ? [{ debugName: "canPrev" }] : /* istanbul ignore next */ []);
22
+ canNext = signal(false, ...ngDevMode ? [{ debugName: "canNext" }] : /* istanbul ignore next */ []);
23
+ selectedIndex = signal(0, ...ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []);
24
+ classes = computed(() => cn("relative", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
25
+ constructor() {
26
+ afterNextRender(() => this.init());
27
+ inject(DestroyRef).onDestroy(() => this.api()?.destroy());
28
+ }
29
+ init() {
30
+ const viewport = this.el.querySelector("[data-slot=carousel-content]");
31
+ if (!viewport) return;
32
+ const api = EmblaCarousel(viewport, {
33
+ ...this.opts(),
34
+ axis: this.orientation() === "horizontal" ? "x" : "y",
35
+ direction: this.dir.value === "rtl" ? "rtl" : "ltr"
36
+ }, this.plugins());
37
+ const sync = () => {
38
+ this.canPrev.set(api.canScrollPrev());
39
+ this.canNext.set(api.canScrollNext());
40
+ this.selectedIndex.set(api.selectedScrollSnap());
41
+ };
42
+ api.on("select", sync).on("reInit", sync);
43
+ sync();
44
+ this.api.set(api);
45
+ this.ready.emit(api);
46
+ }
47
+ scrollPrev() {
48
+ this.api()?.scrollPrev();
49
+ }
50
+ scrollNext() {
51
+ this.api()?.scrollNext();
52
+ }
53
+ scrollTo(i) {
54
+ this.api()?.scrollTo(i);
55
+ }
56
+ onKey(e) {
57
+ if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
58
+ const rtl = this.dir.value === "rtl";
59
+ e.preventDefault();
60
+ e.key === "ArrowLeft" !== rtl ? this.scrollPrev() : this.scrollNext();
61
+ }
62
+ static ɵfac = i0.ɵɵngDeclareFactory({
63
+ minVersion: "12.0.0",
64
+ version: "22.2.2",
65
+ ngImport: i0,
66
+ type: UiCarousel,
67
+ deps: [],
68
+ target: i0.ɵɵFactoryTarget.Component
69
+ });
70
+ static ɵcmp = i0.ɵɵngDeclareComponent({
71
+ minVersion: "17.1.0",
72
+ version: "22.2.2",
73
+ type: UiCarousel,
74
+ isStandalone: true,
75
+ selector: "div[uiCarousel], ui-carousel",
76
+ inputs: {
77
+ opts: {
78
+ classPropertyName: "opts",
79
+ publicName: "opts",
80
+ isSignal: true,
81
+ isRequired: false,
82
+ transformFunction: null
83
+ },
84
+ plugins: {
85
+ classPropertyName: "plugins",
86
+ publicName: "plugins",
87
+ isSignal: true,
88
+ isRequired: false,
89
+ transformFunction: null
90
+ },
91
+ orientation: {
92
+ classPropertyName: "orientation",
93
+ publicName: "orientation",
94
+ isSignal: true,
95
+ isRequired: false,
96
+ transformFunction: null
97
+ },
98
+ userClass: {
99
+ classPropertyName: "userClass",
100
+ publicName: "class",
101
+ isSignal: true,
102
+ isRequired: false,
103
+ transformFunction: null
104
+ }
105
+ },
106
+ outputs: { ready: "ready" },
107
+ host: {
108
+ attributes: {
109
+ "role": "region",
110
+ "aria-roledescription": "carousel",
111
+ "data-slot": "carousel"
112
+ },
113
+ listeners: { "keydown": "onKey($event)" },
114
+ properties: {
115
+ "attr.dir": "dir.value",
116
+ "attr.class": "classes()"
117
+ }
118
+ },
119
+ exportAs: ["uiCarousel"],
120
+ hostDirectives: [{ directive: i1.UiElementHost }],
121
+ ngImport: i0,
122
+ template: `<ng-content />`,
123
+ isInline: true,
124
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
125
+ });
126
+ };
127
+ i0.ɵɵngDeclareClassMetadata({
128
+ minVersion: "12.0.0",
129
+ version: "22.2.2",
130
+ ngImport: i0,
131
+ type: UiCarousel,
132
+ decorators: [{
133
+ type: Component,
134
+ args: [{
135
+ selector: "div[uiCarousel], ui-carousel",
136
+ hostDirectives: [UiElementHost],
137
+ exportAs: "uiCarousel",
138
+ changeDetection: ChangeDetectionStrategy.OnPush,
139
+ host: {
140
+ role: "region",
141
+ "aria-roledescription": "carousel",
142
+ "data-slot": "carousel",
143
+ "[attr.dir]": "dir.value",
144
+ "[attr.class]": "classes()",
145
+ "(keydown)": "onKey($event)"
146
+ },
147
+ template: `<ng-content />`
148
+ }]
149
+ }],
150
+ ctorParameters: () => [],
151
+ propDecorators: {
152
+ opts: [{
153
+ type: i0.Input,
154
+ args: [{
155
+ isSignal: true,
156
+ alias: "opts",
157
+ required: false
158
+ }]
159
+ }],
160
+ plugins: [{
161
+ type: i0.Input,
162
+ args: [{
163
+ isSignal: true,
164
+ alias: "plugins",
165
+ required: false
166
+ }]
167
+ }],
168
+ orientation: [{
169
+ type: i0.Input,
170
+ args: [{
171
+ isSignal: true,
172
+ alias: "orientation",
173
+ required: false
174
+ }]
175
+ }],
176
+ userClass: [{
177
+ type: i0.Input,
178
+ args: [{
179
+ isSignal: true,
180
+ alias: "class",
181
+ required: false
182
+ }]
183
+ }],
184
+ ready: [{
185
+ type: i0.Output,
186
+ args: ["ready"]
187
+ }]
188
+ }
189
+ });
190
+ var UiCarouselContent = class UiCarouselContent {
191
+ root = inject(UiCarousel);
192
+ userClass = input("", {
193
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
194
+ alias: "class"
195
+ });
196
+ trackClass = computed(() => cn("flex", this.root.orientation() === "horizontal" ? "-ms-4" : "-mt-4 flex-col", this.userClass()), ...ngDevMode ? [{ debugName: "trackClass" }] : /* istanbul ignore next */ []);
197
+ static ɵfac = i0.ɵɵngDeclareFactory({
198
+ minVersion: "12.0.0",
199
+ version: "22.2.2",
200
+ ngImport: i0,
201
+ type: UiCarouselContent,
202
+ deps: [],
203
+ target: i0.ɵɵFactoryTarget.Component
204
+ });
205
+ static ɵcmp = i0.ɵɵngDeclareComponent({
206
+ minVersion: "17.1.0",
207
+ version: "22.2.2",
208
+ type: UiCarouselContent,
209
+ isStandalone: true,
210
+ selector: "div[uiCarouselContent], ui-carousel-content",
211
+ inputs: { userClass: {
212
+ classPropertyName: "userClass",
213
+ publicName: "class",
214
+ isSignal: true,
215
+ isRequired: false,
216
+ transformFunction: null
217
+ } },
218
+ host: {
219
+ attributes: { "data-slot": "carousel-content" },
220
+ classAttribute: "overflow-hidden"
221
+ },
222
+ hostDirectives: [{ directive: i1.UiElementHost }],
223
+ ngImport: i0,
224
+ template: `<div [class]="trackClass()"><ng-content /></div>`,
225
+ isInline: true,
226
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
227
+ });
228
+ };
229
+ i0.ɵɵngDeclareClassMetadata({
230
+ minVersion: "12.0.0",
231
+ version: "22.2.2",
232
+ ngImport: i0,
233
+ type: UiCarouselContent,
234
+ decorators: [{
235
+ type: Component,
236
+ args: [{
237
+ selector: "div[uiCarouselContent], ui-carousel-content",
238
+ hostDirectives: [UiElementHost],
239
+ changeDetection: ChangeDetectionStrategy.OnPush,
240
+ host: {
241
+ "data-slot": "carousel-content",
242
+ class: "overflow-hidden"
243
+ },
244
+ template: `<div [class]="trackClass()"><ng-content /></div>`
245
+ }]
246
+ }],
247
+ propDecorators: { userClass: [{
248
+ type: i0.Input,
249
+ args: [{
250
+ isSignal: true,
251
+ alias: "class",
252
+ required: false
253
+ }]
254
+ }] }
255
+ });
256
+ var UiCarouselItem = class UiCarouselItem {
257
+ root = inject(UiCarousel);
258
+ userClass = input("", {
259
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
260
+ alias: "class"
261
+ });
262
+ classes = computed(() => cn("min-w-0 shrink-0 grow-0 basis-full", this.root.orientation() === "horizontal" ? "ps-4" : "pt-4", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
263
+ static ɵfac = i0.ɵɵngDeclareFactory({
264
+ minVersion: "12.0.0",
265
+ version: "22.2.2",
266
+ ngImport: i0,
267
+ type: UiCarouselItem,
268
+ deps: [],
269
+ target: i0.ɵɵFactoryTarget.Directive
270
+ });
271
+ static ɵdir = i0.ɵɵngDeclareDirective({
272
+ minVersion: "17.1.0",
273
+ version: "22.2.2",
274
+ type: UiCarouselItem,
275
+ isStandalone: true,
276
+ selector: "div[uiCarouselItem], ui-carousel-item",
277
+ inputs: { userClass: {
278
+ classPropertyName: "userClass",
279
+ publicName: "class",
280
+ isSignal: true,
281
+ isRequired: false,
282
+ transformFunction: null
283
+ } },
284
+ host: {
285
+ attributes: {
286
+ "role": "group",
287
+ "aria-roledescription": "slide",
288
+ "data-slot": "carousel-item"
289
+ },
290
+ properties: { "attr.class": "classes()" }
291
+ },
292
+ hostDirectives: [{ directive: i1.UiElementHost }],
293
+ ngImport: i0
294
+ });
295
+ };
296
+ i0.ɵɵngDeclareClassMetadata({
297
+ minVersion: "12.0.0",
298
+ version: "22.2.2",
299
+ ngImport: i0,
300
+ type: UiCarouselItem,
301
+ decorators: [{
302
+ type: Directive,
303
+ args: [{
304
+ selector: "div[uiCarouselItem], ui-carousel-item",
305
+ hostDirectives: [UiElementHost],
306
+ host: {
307
+ role: "group",
308
+ "aria-roledescription": "slide",
309
+ "data-slot": "carousel-item",
310
+ "[attr.class]": "classes()"
311
+ }
312
+ }]
313
+ }],
314
+ propDecorators: { userClass: [{
315
+ type: i0.Input,
316
+ args: [{
317
+ isSignal: true,
318
+ alias: "class",
319
+ required: false
320
+ }]
321
+ }] }
322
+ });
323
+ var UiCarouselPrevious = class UiCarouselPrevious {
324
+ root = inject(UiCarousel);
325
+ userClass = input("", {
326
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
327
+ alias: "class"
328
+ });
329
+ icon = computed(() => this.root.orientation() === "horizontal" ? "rtl:rotate-180" : "", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
330
+ classes = computed(() => cn(buttonVariants({
331
+ variant: "outline",
332
+ size: "icon-sm"
333
+ }), "absolute touch-manipulation rounded-full", this.root.orientation() === "horizontal" ? "top-1/2 -start-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
334
+ static ɵfac = i0.ɵɵngDeclareFactory({
335
+ minVersion: "12.0.0",
336
+ version: "22.2.2",
337
+ ngImport: i0,
338
+ type: UiCarouselPrevious,
339
+ deps: [],
340
+ target: i0.ɵɵFactoryTarget.Component
341
+ });
342
+ static ɵcmp = i0.ɵɵngDeclareComponent({
343
+ minVersion: "17.1.0",
344
+ version: "22.2.2",
345
+ type: UiCarouselPrevious,
346
+ isStandalone: true,
347
+ selector: "button[uiCarouselPrevious], ui-carousel-previous",
348
+ inputs: { userClass: {
349
+ classPropertyName: "userClass",
350
+ publicName: "class",
351
+ isSignal: true,
352
+ isRequired: false,
353
+ transformFunction: null
354
+ } },
355
+ host: {
356
+ attributes: {
357
+ "type": "button",
358
+ "data-slot": "carousel-previous",
359
+ "data-variant": "outline",
360
+ "data-size": "icon-sm"
361
+ },
362
+ listeners: { "click": "root.scrollPrev()" },
363
+ properties: {
364
+ "attr.disabled": "(!root.canPrev()) ? \"\" : null",
365
+ "attr.class": "classes()"
366
+ }
367
+ },
368
+ hostDirectives: [{ directive: i1.UiElementHost }],
369
+ ngImport: i0,
370
+ template: `<svg uiIcon="arrow-left" [class]="icon()"></svg><span class="sr-only">Previous slide</span>`,
371
+ isInline: true,
372
+ dependencies: [{
373
+ kind: "directive",
374
+ type: UiIconSvg,
375
+ selector: "svg[uiIcon]",
376
+ inputs: [
377
+ "uiIcon",
378
+ "icon",
379
+ "size",
380
+ "strokeWidth",
381
+ "absoluteStrokeWidth",
382
+ "color",
383
+ "label",
384
+ "class"
385
+ ]
386
+ }],
387
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
388
+ });
389
+ };
390
+ i0.ɵɵngDeclareClassMetadata({
391
+ minVersion: "12.0.0",
392
+ version: "22.2.2",
393
+ ngImport: i0,
394
+ type: UiCarouselPrevious,
395
+ decorators: [{
396
+ type: Component,
397
+ args: [{
398
+ selector: "button[uiCarouselPrevious], ui-carousel-previous",
399
+ hostDirectives: [UiElementHost],
400
+ imports: [UiIconSvg],
401
+ changeDetection: ChangeDetectionStrategy.OnPush,
402
+ host: {
403
+ type: "button",
404
+ "data-slot": "carousel-previous",
405
+ "data-variant": "outline",
406
+ "data-size": "icon-sm",
407
+ "[attr.disabled]": "(!root.canPrev()) ? \"\" : null",
408
+ "[attr.class]": "classes()",
409
+ "(click)": "root.scrollPrev()"
410
+ },
411
+ template: `<svg uiIcon="arrow-left" [class]="icon()"></svg><span class="sr-only">Previous slide</span>`
412
+ }]
413
+ }],
414
+ propDecorators: { userClass: [{
415
+ type: i0.Input,
416
+ args: [{
417
+ isSignal: true,
418
+ alias: "class",
419
+ required: false
420
+ }]
421
+ }] }
422
+ });
423
+ var UiCarouselNext = class UiCarouselNext {
424
+ root = inject(UiCarousel);
425
+ userClass = input("", {
426
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
427
+ alias: "class"
428
+ });
429
+ icon = computed(() => this.root.orientation() === "horizontal" ? "rtl:rotate-180" : "", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
430
+ classes = computed(() => cn(buttonVariants({
431
+ variant: "outline",
432
+ size: "icon-sm"
433
+ }), "absolute touch-manipulation rounded-full", this.root.orientation() === "horizontal" ? "top-1/2 -end-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
434
+ static ɵfac = i0.ɵɵngDeclareFactory({
435
+ minVersion: "12.0.0",
436
+ version: "22.2.2",
437
+ ngImport: i0,
438
+ type: UiCarouselNext,
439
+ deps: [],
440
+ target: i0.ɵɵFactoryTarget.Component
441
+ });
442
+ static ɵcmp = i0.ɵɵngDeclareComponent({
443
+ minVersion: "17.1.0",
444
+ version: "22.2.2",
445
+ type: UiCarouselNext,
446
+ isStandalone: true,
447
+ selector: "button[uiCarouselNext], ui-carousel-next",
448
+ inputs: { userClass: {
449
+ classPropertyName: "userClass",
450
+ publicName: "class",
451
+ isSignal: true,
452
+ isRequired: false,
453
+ transformFunction: null
454
+ } },
455
+ host: {
456
+ attributes: {
457
+ "type": "button",
458
+ "data-slot": "carousel-next",
459
+ "data-variant": "outline",
460
+ "data-size": "icon-sm"
461
+ },
462
+ listeners: { "click": "root.scrollNext()" },
463
+ properties: {
464
+ "attr.disabled": "(!root.canNext()) ? \"\" : null",
465
+ "attr.class": "classes()"
466
+ }
467
+ },
468
+ hostDirectives: [{ directive: i1.UiElementHost }],
469
+ ngImport: i0,
470
+ template: `<svg uiIcon="arrow-right" [class]="icon()"></svg><span class="sr-only">Next slide</span>`,
471
+ isInline: true,
472
+ dependencies: [{
473
+ kind: "directive",
474
+ type: UiIconSvg,
475
+ selector: "svg[uiIcon]",
476
+ inputs: [
477
+ "uiIcon",
478
+ "icon",
479
+ "size",
480
+ "strokeWidth",
481
+ "absoluteStrokeWidth",
482
+ "color",
483
+ "label",
484
+ "class"
485
+ ]
486
+ }],
487
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
488
+ });
489
+ };
490
+ i0.ɵɵngDeclareClassMetadata({
491
+ minVersion: "12.0.0",
492
+ version: "22.2.2",
493
+ ngImport: i0,
494
+ type: UiCarouselNext,
495
+ decorators: [{
496
+ type: Component,
497
+ args: [{
498
+ selector: "button[uiCarouselNext], ui-carousel-next",
499
+ hostDirectives: [UiElementHost],
500
+ imports: [UiIconSvg],
501
+ changeDetection: ChangeDetectionStrategy.OnPush,
502
+ host: {
503
+ type: "button",
504
+ "data-slot": "carousel-next",
505
+ "data-variant": "outline",
506
+ "data-size": "icon-sm",
507
+ "[attr.disabled]": "(!root.canNext()) ? \"\" : null",
508
+ "[attr.class]": "classes()",
509
+ "(click)": "root.scrollNext()"
510
+ },
511
+ template: `<svg uiIcon="arrow-right" [class]="icon()"></svg><span class="sr-only">Next slide</span>`
512
+ }]
513
+ }],
514
+ propDecorators: { userClass: [{
515
+ type: i0.Input,
516
+ args: [{
517
+ isSignal: true,
518
+ alias: "class",
519
+ required: false
520
+ }]
521
+ }] }
522
+ });
523
+ const UI_CAROUSEL = [
524
+ UiCarousel,
525
+ UiCarouselContent,
526
+ UiCarouselItem,
527
+ UiCarouselPrevious,
528
+ UiCarouselNext
529
+ ];
530
+ export { UI_CAROUSEL, UiCarousel, UiCarouselContent, UiCarouselItem, UiCarouselNext, UiCarouselPrevious };
531
+
532
+ //# sourceMappingURL=loomui-ng-ui-carousel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loomui-ng-ui-carousel.mjs","names":[],"sources":["../../../libs/ui/carousel/carousel.ts"],"sourcesContent":["import {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { Directionality } from '@angular/cdk/bidi';\nimport EmblaCarousel, { type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType } from 'embla-carousel';\nimport { buttonVariants } from '@loomui-ng/ui/button';\nimport { cn } from '@loomui-ng/ui/utils';\nimport { UiIconSvg } from '@loomui-ng/ui/icon';\nimport { UiElementHost } from '@loomui-ng/ui/utils';\n\n/**\n * <div uiCarousel [opts]=\"{ loop: true }\" orientation=\"horizontal\">\n * <div uiCarouselContent>\n * <div uiCarouselItem>…</div>\n * </div>\n * <button uiCarouselPrevious></button>\n * <button uiCarouselNext></button>\n * </div>\n *\n * Observed (shadcn/Radix variant): root role=\"region\" aria-roledescription=\"carousel\"; items role=\"group\"\n * aria-roledescription=\"slide\"; prev/next are outline icon-sm buttons positioned outside the viewport, disabled at the ends.\n * Behavior is Embla's (drag/swipe/inertia); ArrowLeft/ArrowRight on the focused carousel scroll (mirrored in RTL), as in\n * shadcn's `handleKeyDown`. UNKNOWN: slide-change announcements (shadcn adds no live region).\n */\n@Component({\n selector: 'div[uiCarousel], ui-carousel', hostDirectives: [UiElementHost],\n exportAs: 'uiCarousel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n role: 'region',\n 'aria-roledescription': 'carousel',\n 'data-slot': 'carousel',\n '[attr.dir]': 'dir.value',\n '[attr.class]': 'classes()',\n '(keydown)': 'onKey($event)',\n },\n template: `<ng-content />`,\n})\nexport class UiCarousel {\n protected readonly dir = inject(Directionality);\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly opts = input<Record<string, any>>({});\n readonly plugins = input<any[]>([]);\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n readonly userClass = input<string>('', { alias: 'class' });\n /** Emits the Embla instance once initialised (for plugins/autoplay control). */\n readonly ready = output<EmblaCarouselType>();\n\n readonly api = signal<EmblaCarouselType | null>(null);\n readonly canPrev = signal(false);\n readonly canNext = signal(false);\n readonly selectedIndex = signal(0);\n protected readonly classes = computed(() => cn('relative', this.userClass()));\n\n constructor() {\n afterNextRender(() => this.init());\n inject(DestroyRef).onDestroy(() => this.api()?.destroy());\n }\n\n private init(): void {\n const viewport = this.el.querySelector<HTMLElement>('[data-slot=carousel-content]');\n if (!viewport) return;\n const api = EmblaCarousel(\n viewport,\n { ...(this.opts() as EmblaOptionsType), axis: this.orientation() === 'horizontal' ? 'x' : 'y', direction: this.dir.value === 'rtl' ? 'rtl' : 'ltr' },\n this.plugins() as EmblaPluginType[],\n );\n const sync = () => {\n this.canPrev.set(api.canScrollPrev());\n this.canNext.set(api.canScrollNext());\n this.selectedIndex.set(api.selectedScrollSnap());\n };\n api.on('select', sync).on('reInit', sync);\n sync();\n this.api.set(api);\n this.ready.emit(api);\n }\n\n scrollPrev(): void {\n this.api()?.scrollPrev();\n }\n scrollNext(): void {\n this.api()?.scrollNext();\n }\n scrollTo(i: number): void {\n this.api()?.scrollTo(i);\n }\n\n protected onKey(e: KeyboardEvent): void {\n if (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight') return;\n const rtl = this.dir.value === 'rtl';\n e.preventDefault();\n (e.key === 'ArrowLeft') !== rtl ? this.scrollPrev() : this.scrollNext();\n }\n}\n\n/** Embla viewport (overflow-hidden) wrapping the slide track. */\n@Component({\n selector: 'div[uiCarouselContent], ui-carousel-content', hostDirectives: [UiElementHost],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { 'data-slot': 'carousel-content', class: 'overflow-hidden' },\n template: `<div [class]=\"trackClass()\"><ng-content /></div>`,\n})\nexport class UiCarouselContent {\n private readonly root = inject(UiCarousel);\n readonly userClass = input<string>('', { alias: 'class' });\n protected readonly trackClass = computed(() =>\n cn('flex', this.root.orientation() === 'horizontal' ? '-ms-4' : '-mt-4 flex-col', this.userClass()),\n );\n}\n\n@Directive({\n selector: 'div[uiCarouselItem], ui-carousel-item', hostDirectives: [UiElementHost],\n host: {\n role: 'group',\n 'aria-roledescription': 'slide',\n 'data-slot': 'carousel-item',\n '[attr.class]': 'classes()',\n },\n})\nexport class UiCarouselItem {\n private readonly root = inject(UiCarousel);\n readonly userClass = input<string>('', { alias: 'class' });\n protected readonly classes = computed(() =>\n cn('min-w-0 shrink-0 grow-0 basis-full', this.root.orientation() === 'horizontal' ? 'ps-4' : 'pt-4', this.userClass()),\n );\n}\n\n\n@Component({\n selector: 'button[uiCarouselPrevious], ui-carousel-previous', hostDirectives: [UiElementHost],\n imports: [UiIconSvg],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n type: 'button',\n 'data-slot': 'carousel-previous',\n 'data-variant': 'outline',\n 'data-size': 'icon-sm',\n '[attr.disabled]': '(!root.canPrev()) ? \"\" : null',\n '[attr.class]': 'classes()',\n '(click)': 'root.scrollPrev()',\n },\n template: `<svg uiIcon=\"arrow-left\" [class]=\"icon()\"></svg><span class=\"sr-only\">Previous slide</span>`,\n})\nexport class UiCarouselPrevious {\n protected readonly root = inject(UiCarousel);\n readonly userClass = input<string>('', { alias: 'class' });\n // chevron-right drawn; flipped so it points to the start edge (and mirrors under RTL because `dir` flips `rtl:`)\n protected readonly icon = computed(() => (this.root.orientation() === 'horizontal' ? 'rtl:rotate-180' : ''));\n protected readonly classes = computed(() =>\n cn(\n buttonVariants({ variant: 'outline', size: 'icon-sm' }),\n 'absolute touch-manipulation rounded-full',\n this.root.orientation() === 'horizontal' ? 'top-1/2 -start-12 -translate-y-1/2' : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n this.userClass(),\n ),\n );\n}\n\n@Component({\n selector: 'button[uiCarouselNext], ui-carousel-next', hostDirectives: [UiElementHost],\n imports: [UiIconSvg],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n type: 'button',\n 'data-slot': 'carousel-next',\n 'data-variant': 'outline',\n 'data-size': 'icon-sm',\n '[attr.disabled]': '(!root.canNext()) ? \"\" : null',\n '[attr.class]': 'classes()',\n '(click)': 'root.scrollNext()',\n },\n template: `<svg uiIcon=\"arrow-right\" [class]=\"icon()\"></svg><span class=\"sr-only\">Next slide</span>`,\n})\nexport class UiCarouselNext {\n protected readonly root = inject(UiCarousel);\n readonly userClass = input<string>('', { alias: 'class' });\n protected readonly icon = computed(() => (this.root.orientation() === 'horizontal' ? 'rtl:rotate-180' : ''));\n protected readonly classes = computed(() =>\n cn(\n buttonVariants({ variant: 'outline', size: 'icon-sm' }),\n 'absolute touch-manipulation rounded-full',\n this.root.orientation() === 'horizontal' ? 'top-1/2 -end-12 -translate-y-1/2' : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n this.userClass(),\n ),\n );\n}\n\nexport const UI_CAROUSEL = [UiCarousel, UiCarouselContent, UiCarouselItem, UiCarouselPrevious, UiCarouselNext] as const;\n"],"mappings":";;;;;;;;AAgDA,IAAa,aAAb,MAAa,WAAU;CACF,MAAM,OAAO,cAAc;CAC7B,KAAK,OAAgC,UAAU,CAAC,CAAC;CACzD,OAAO,MAA2B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACrC,UAAU,MAAa,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC1B,cAAc,MAAiC,cAAa,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAC5D,YAAY,MAAc,IAAE;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,OAAO;CAAO,CAAA;CAE9C,QAAQ,OAAM;CAEd,MAAM,OAAiC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;CAC5C,UAAU,OAAO,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACvB,UAAU,OAAO,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CACvB,gBAAgB,OAAO,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;CACf,UAAU,eAAe,GAAG,YAAY,KAAK,UAAS,CAAE,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAE7E,cAAA;EACE,sBAAsB,KAAK,KAAI,CAAE;EACjC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