@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,1918 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DestroyRef, Directive, booleanAttribute, computed, inject, input, model, signal } from "@angular/core";
3
+ import { NgTemplateOutlet } from "@angular/common";
4
+ import { cva } from "class-variance-authority";
5
+ import { buttonVariants } from "@loomui-ng/ui/button";
6
+ import * as i2 from "@loomui-ng/ui/sheet";
7
+ import { UI_SHEET } from "@loomui-ng/ui/sheet";
8
+ import * as i1 from "@loomui-ng/ui/utils";
9
+ import { UiElementHost, cn } from "@loomui-ng/ui/utils";
10
+ import { UiIconSvg } from "@loomui-ng/ui/icon";
11
+ var UiSidebarProvider = class UiSidebarProvider {
12
+ open = model(true, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
13
+ openMobile = model(false, ...ngDevMode ? [{ debugName: "openMobile" }] : /* istanbul ignore next */ []);
14
+ width = input("16rem", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
15
+ shortcut = input("b", ...ngDevMode ? [{ debugName: "shortcut" }] : /* istanbul ignore next */ []);
16
+ userClass = input("", {
17
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
18
+ alias: "class"
19
+ });
20
+ isMobile = signal(false, ...ngDevMode ? [{ debugName: "isMobile" }] : /* istanbul ignore next */ []);
21
+ state = computed(() => this.open() ? "expanded" : "collapsed", ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
22
+ classes = computed(() => cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
23
+ constructor() {
24
+ if (typeof matchMedia !== "undefined") {
25
+ const mq = matchMedia("(max-width: 767px)");
26
+ const update = () => this.isMobile.set(mq.matches);
27
+ update();
28
+ mq.addEventListener("change", update);
29
+ inject(DestroyRef).onDestroy(() => mq.removeEventListener("change", update));
30
+ }
31
+ }
32
+ toggle() {
33
+ if (this.isMobile()) this.openMobile.update((v) => !v);
34
+ else this.open.update((v) => !v);
35
+ }
36
+ onKey(e) {
37
+ if (e.key.toLowerCase() === this.shortcut() && (e.metaKey || e.ctrlKey)) {
38
+ e.preventDefault();
39
+ this.toggle();
40
+ }
41
+ }
42
+ static ɵfac = i0.ɵɵngDeclareFactory({
43
+ minVersion: "12.0.0",
44
+ version: "22.2.2",
45
+ ngImport: i0,
46
+ type: UiSidebarProvider,
47
+ deps: [],
48
+ target: i0.ɵɵFactoryTarget.Directive
49
+ });
50
+ static ɵdir = i0.ɵɵngDeclareDirective({
51
+ minVersion: "17.1.0",
52
+ version: "22.2.2",
53
+ type: UiSidebarProvider,
54
+ isStandalone: true,
55
+ selector: "[uiSidebarProvider], ui-sidebar-provider",
56
+ inputs: {
57
+ open: {
58
+ classPropertyName: "open",
59
+ publicName: "open",
60
+ isSignal: true,
61
+ isRequired: false,
62
+ transformFunction: null
63
+ },
64
+ openMobile: {
65
+ classPropertyName: "openMobile",
66
+ publicName: "openMobile",
67
+ isSignal: true,
68
+ isRequired: false,
69
+ transformFunction: null
70
+ },
71
+ width: {
72
+ classPropertyName: "width",
73
+ publicName: "width",
74
+ isSignal: true,
75
+ isRequired: false,
76
+ transformFunction: null
77
+ },
78
+ shortcut: {
79
+ classPropertyName: "shortcut",
80
+ publicName: "shortcut",
81
+ isSignal: true,
82
+ isRequired: false,
83
+ transformFunction: null
84
+ },
85
+ userClass: {
86
+ classPropertyName: "userClass",
87
+ publicName: "class",
88
+ isSignal: true,
89
+ isRequired: false,
90
+ transformFunction: null
91
+ }
92
+ },
93
+ outputs: {
94
+ open: "openChange",
95
+ openMobile: "openMobileChange"
96
+ },
97
+ host: {
98
+ attributes: { "data-slot": "sidebar-wrapper" },
99
+ listeners: { "document:keydown": "onKey($event)" },
100
+ properties: {
101
+ "style": "{\"--sidebar-width\": width(), \"--sidebar-width-icon\": \"3rem\"}",
102
+ "attr.class": "classes()"
103
+ }
104
+ },
105
+ exportAs: ["uiSidebarProvider"],
106
+ hostDirectives: [{ directive: i1.UiElementHost }],
107
+ ngImport: i0
108
+ });
109
+ };
110
+ i0.ɵɵngDeclareClassMetadata({
111
+ minVersion: "12.0.0",
112
+ version: "22.2.2",
113
+ ngImport: i0,
114
+ type: UiSidebarProvider,
115
+ decorators: [{
116
+ type: Directive,
117
+ args: [{
118
+ selector: "[uiSidebarProvider], ui-sidebar-provider",
119
+ hostDirectives: [UiElementHost],
120
+ exportAs: "uiSidebarProvider",
121
+ host: {
122
+ "data-slot": "sidebar-wrapper",
123
+ "[style]": "{\"--sidebar-width\": width(), \"--sidebar-width-icon\": \"3rem\"}",
124
+ "[attr.class]": "classes()",
125
+ "(document:keydown)": "onKey($event)"
126
+ }
127
+ }]
128
+ }],
129
+ ctorParameters: () => [],
130
+ propDecorators: {
131
+ open: [{
132
+ type: i0.Input,
133
+ args: [{
134
+ isSignal: true,
135
+ alias: "open",
136
+ required: false
137
+ }]
138
+ }, {
139
+ type: i0.Output,
140
+ args: ["openChange"]
141
+ }],
142
+ openMobile: [{
143
+ type: i0.Input,
144
+ args: [{
145
+ isSignal: true,
146
+ alias: "openMobile",
147
+ required: false
148
+ }]
149
+ }, {
150
+ type: i0.Output,
151
+ args: ["openMobileChange"]
152
+ }],
153
+ width: [{
154
+ type: i0.Input,
155
+ args: [{
156
+ isSignal: true,
157
+ alias: "width",
158
+ required: false
159
+ }]
160
+ }],
161
+ shortcut: [{
162
+ type: i0.Input,
163
+ args: [{
164
+ isSignal: true,
165
+ alias: "shortcut",
166
+ required: false
167
+ }]
168
+ }],
169
+ userClass: [{
170
+ type: i0.Input,
171
+ args: [{
172
+ isSignal: true,
173
+ alias: "class",
174
+ required: false
175
+ }]
176
+ }]
177
+ }
178
+ });
179
+ var UiSidebar = class UiSidebar {
180
+ provider = inject(UiSidebarProvider);
181
+ side = input("left", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
182
+ variant = input("sidebar", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
183
+ collapsible = input("offcanvas", ...ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []);
184
+ userClass = input("", {
185
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
186
+ alias: "class"
187
+ });
188
+ hostState = computed(() => this.provider.state(), ...ngDevMode ? [{ debugName: "hostState" }] : /* istanbul ignore next */ []);
189
+ hostCollapsible = computed(() => this.provider.state() === "collapsed" ? this.collapsible() : "", ...ngDevMode ? [{ debugName: "hostCollapsible" }] : /* istanbul ignore next */ []);
190
+ hostClasses = computed(() => this.collapsible() === "none" || this.provider.isMobile() ? cn("contents", this.userClass()) : cn("group peer hidden text-sidebar-foreground md:block", this.userClass()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
191
+ staticClasses = computed(() => cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", this.userClass()), ...ngDevMode ? [{ debugName: "staticClasses" }] : /* istanbul ignore next */ []);
192
+ floating = computed(() => this.variant() === "floating" || this.variant() === "inset", ...ngDevMode ? [{ debugName: "floating" }] : /* istanbul ignore next */ []);
193
+ gapClasses = computed(() => cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180", this.floating() ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"), ...ngDevMode ? [{ debugName: "gapClasses" }] : /* istanbul ignore next */ []);
194
+ containerClasses = computed(() => cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", this.side() === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", this.floating() ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l"), ...ngDevMode ? [{ debugName: "containerClasses" }] : /* istanbul ignore next */ []);
195
+ static ɵfac = i0.ɵɵngDeclareFactory({
196
+ minVersion: "12.0.0",
197
+ version: "22.2.2",
198
+ ngImport: i0,
199
+ type: UiSidebar,
200
+ deps: [],
201
+ target: i0.ɵɵFactoryTarget.Component
202
+ });
203
+ static ɵcmp = i0.ɵɵngDeclareComponent({
204
+ minVersion: "17.0.0",
205
+ version: "22.2.2",
206
+ type: UiSidebar,
207
+ isStandalone: true,
208
+ selector: "[uiSidebar], ui-sidebar",
209
+ inputs: {
210
+ side: {
211
+ classPropertyName: "side",
212
+ publicName: "side",
213
+ isSignal: true,
214
+ isRequired: false,
215
+ transformFunction: null
216
+ },
217
+ variant: {
218
+ classPropertyName: "variant",
219
+ publicName: "variant",
220
+ isSignal: true,
221
+ isRequired: false,
222
+ transformFunction: null
223
+ },
224
+ collapsible: {
225
+ classPropertyName: "collapsible",
226
+ publicName: "collapsible",
227
+ isSignal: true,
228
+ isRequired: false,
229
+ transformFunction: null
230
+ },
231
+ userClass: {
232
+ classPropertyName: "userClass",
233
+ publicName: "class",
234
+ isSignal: true,
235
+ isRequired: false,
236
+ transformFunction: null
237
+ }
238
+ },
239
+ host: {
240
+ attributes: { "data-slot": "sidebar" },
241
+ properties: {
242
+ "attr.class": "hostClasses()",
243
+ "attr.data-state": "hostState()",
244
+ "attr.data-collapsible": "hostCollapsible()",
245
+ "attr.data-variant": "variant()",
246
+ "attr.data-side": "side()"
247
+ }
248
+ },
249
+ exportAs: ["uiSidebar"],
250
+ hostDirectives: [{ directive: i1.UiElementHost }],
251
+ ngImport: i0,
252
+ template: `
253
+ <ng-template #body><ng-content /></ng-template>
254
+ @if (collapsible() === 'none') {
255
+ <div data-sidebar="sidebar" [class]="staticClasses()">
256
+ <ng-container [ngTemplateOutlet]="body" />
257
+ </div>
258
+ } @else if (provider.isMobile()) {
259
+ <div uiSheet class="contents" [(open)]="provider.openMobile">
260
+ <div
261
+ uiSheetContent
262
+ data-sidebar="sidebar"
263
+ data-mobile="true"
264
+ [side]="side()"
265
+ [showCloseButton]="false"
266
+ class="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
267
+ style="--sidebar-width: 18rem"
268
+ >
269
+ <h2 uiSheetTitle class="sr-only">Sidebar</h2>
270
+ <div class="flex h-full w-full flex-col"><ng-container [ngTemplateOutlet]="body" /></div>
271
+ </div>
272
+ </div>
273
+ } @else {
274
+ <div data-slot="sidebar-gap" [class]="gapClasses()"></div>
275
+ <div data-slot="sidebar-container" [class]="containerClasses()">
276
+ <div
277
+ data-sidebar="sidebar"
278
+ data-slot="sidebar-inner"
279
+ class="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm"
280
+ >
281
+ <ng-container [ngTemplateOutlet]="body" />
282
+ </div>
283
+ </div>
284
+ }
285
+ `,
286
+ isInline: true,
287
+ dependencies: [
288
+ {
289
+ kind: "directive",
290
+ type: NgTemplateOutlet,
291
+ selector: "[ngTemplateOutlet]",
292
+ inputs: [
293
+ "ngTemplateOutletContext",
294
+ "ngTemplateOutlet",
295
+ "ngTemplateOutletInjector"
296
+ ]
297
+ },
298
+ {
299
+ kind: "directive",
300
+ type: i2.UiSheet,
301
+ selector: "[uiSheet], ui-sheet",
302
+ exportAs: ["uiSheet"]
303
+ },
304
+ {
305
+ kind: "directive",
306
+ type: i2.UiSheetContent,
307
+ selector: "[uiSheetContent], ui-sheet-content",
308
+ inputs: ["side", "showCloseButton"]
309
+ },
310
+ {
311
+ kind: "directive",
312
+ type: i2.UiSheetTitle,
313
+ selector: "[uiSheetTitle], ui-sheet-title",
314
+ inputs: ["class"]
315
+ }
316
+ ],
317
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
318
+ });
319
+ };
320
+ i0.ɵɵngDeclareClassMetadata({
321
+ minVersion: "12.0.0",
322
+ version: "22.2.2",
323
+ ngImport: i0,
324
+ type: UiSidebar,
325
+ decorators: [{
326
+ type: Component,
327
+ args: [{
328
+ selector: "[uiSidebar], ui-sidebar",
329
+ hostDirectives: [UiElementHost],
330
+ exportAs: "uiSidebar",
331
+ imports: [NgTemplateOutlet, UI_SHEET],
332
+ changeDetection: ChangeDetectionStrategy.OnPush,
333
+ host: {
334
+ "data-slot": "sidebar",
335
+ "[attr.class]": "hostClasses()",
336
+ "[attr.data-state]": "hostState()",
337
+ "[attr.data-collapsible]": "hostCollapsible()",
338
+ "[attr.data-variant]": "variant()",
339
+ "[attr.data-side]": "side()"
340
+ },
341
+ template: `
342
+ <ng-template #body><ng-content /></ng-template>
343
+ @if (collapsible() === 'none') {
344
+ <div data-sidebar="sidebar" [class]="staticClasses()">
345
+ <ng-container [ngTemplateOutlet]="body" />
346
+ </div>
347
+ } @else if (provider.isMobile()) {
348
+ <div uiSheet class="contents" [(open)]="provider.openMobile">
349
+ <div
350
+ uiSheetContent
351
+ data-sidebar="sidebar"
352
+ data-mobile="true"
353
+ [side]="side()"
354
+ [showCloseButton]="false"
355
+ class="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
356
+ style="--sidebar-width: 18rem"
357
+ >
358
+ <h2 uiSheetTitle class="sr-only">Sidebar</h2>
359
+ <div class="flex h-full w-full flex-col"><ng-container [ngTemplateOutlet]="body" /></div>
360
+ </div>
361
+ </div>
362
+ } @else {
363
+ <div data-slot="sidebar-gap" [class]="gapClasses()"></div>
364
+ <div data-slot="sidebar-container" [class]="containerClasses()">
365
+ <div
366
+ data-sidebar="sidebar"
367
+ data-slot="sidebar-inner"
368
+ class="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm"
369
+ >
370
+ <ng-container [ngTemplateOutlet]="body" />
371
+ </div>
372
+ </div>
373
+ }
374
+ `
375
+ }]
376
+ }],
377
+ propDecorators: {
378
+ side: [{
379
+ type: i0.Input,
380
+ args: [{
381
+ isSignal: true,
382
+ alias: "side",
383
+ required: false
384
+ }]
385
+ }],
386
+ variant: [{
387
+ type: i0.Input,
388
+ args: [{
389
+ isSignal: true,
390
+ alias: "variant",
391
+ required: false
392
+ }]
393
+ }],
394
+ collapsible: [{
395
+ type: i0.Input,
396
+ args: [{
397
+ isSignal: true,
398
+ alias: "collapsible",
399
+ required: false
400
+ }]
401
+ }],
402
+ userClass: [{
403
+ type: i0.Input,
404
+ args: [{
405
+ isSignal: true,
406
+ alias: "class",
407
+ required: false
408
+ }]
409
+ }]
410
+ }
411
+ });
412
+ var UiSidebarTrigger = class UiSidebarTrigger {
413
+ provider = inject(UiSidebarProvider);
414
+ userClass = input("", {
415
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
416
+ alias: "class"
417
+ });
418
+ classes = computed(() => cn(buttonVariants({
419
+ variant: "ghost",
420
+ size: "icon-sm"
421
+ }), "size-7", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
422
+ static ɵfac = i0.ɵɵngDeclareFactory({
423
+ minVersion: "12.0.0",
424
+ version: "22.2.2",
425
+ ngImport: i0,
426
+ type: UiSidebarTrigger,
427
+ deps: [],
428
+ target: i0.ɵɵFactoryTarget.Component
429
+ });
430
+ static ɵcmp = i0.ɵɵngDeclareComponent({
431
+ minVersion: "17.1.0",
432
+ version: "22.2.2",
433
+ type: UiSidebarTrigger,
434
+ isStandalone: true,
435
+ selector: "button[uiSidebarTrigger], ui-sidebar-trigger",
436
+ inputs: { userClass: {
437
+ classPropertyName: "userClass",
438
+ publicName: "class",
439
+ isSignal: true,
440
+ isRequired: false,
441
+ transformFunction: null
442
+ } },
443
+ host: {
444
+ attributes: {
445
+ "type": "button",
446
+ "data-sidebar": "trigger",
447
+ "data-slot": "sidebar-trigger"
448
+ },
449
+ listeners: { "click": "provider.toggle()" },
450
+ properties: { "attr.class": "classes()" }
451
+ },
452
+ hostDirectives: [{ directive: i1.UiElementHost }],
453
+ ngImport: i0,
454
+ template: `<svg uiIcon="panel-left" class="rtl:rotate-180"></svg><span class="sr-only">Toggle Sidebar</span>`,
455
+ isInline: true,
456
+ dependencies: [{
457
+ kind: "directive",
458
+ type: UiIconSvg,
459
+ selector: "svg[uiIcon]",
460
+ inputs: [
461
+ "uiIcon",
462
+ "icon",
463
+ "size",
464
+ "strokeWidth",
465
+ "absoluteStrokeWidth",
466
+ "color",
467
+ "label",
468
+ "class"
469
+ ]
470
+ }],
471
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
472
+ });
473
+ };
474
+ i0.ɵɵngDeclareClassMetadata({
475
+ minVersion: "12.0.0",
476
+ version: "22.2.2",
477
+ ngImport: i0,
478
+ type: UiSidebarTrigger,
479
+ decorators: [{
480
+ type: Component,
481
+ args: [{
482
+ selector: "button[uiSidebarTrigger], ui-sidebar-trigger",
483
+ hostDirectives: [UiElementHost],
484
+ imports: [UiIconSvg],
485
+ changeDetection: ChangeDetectionStrategy.OnPush,
486
+ host: {
487
+ type: "button",
488
+ "data-sidebar": "trigger",
489
+ "data-slot": "sidebar-trigger",
490
+ "[attr.class]": "classes()",
491
+ "(click)": "provider.toggle()"
492
+ },
493
+ template: `<svg uiIcon="panel-left" class="rtl:rotate-180"></svg><span class="sr-only">Toggle Sidebar</span>`
494
+ }]
495
+ }],
496
+ propDecorators: { userClass: [{
497
+ type: i0.Input,
498
+ args: [{
499
+ isSignal: true,
500
+ alias: "class",
501
+ required: false
502
+ }]
503
+ }] }
504
+ });
505
+ var UiSidebarRail = class UiSidebarRail {
506
+ provider = inject(UiSidebarProvider);
507
+ userClass = input("", {
508
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
509
+ alias: "class"
510
+ });
511
+ classes = computed(() => cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "in-data-[side=left]:in-data-[state=collapsed]:cursor-e-resize in-data-[side=right]:in-data-[state=collapsed]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=right][data-collapsible=offcanvas]_&]:-left-2", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
512
+ static ɵfac = i0.ɵɵngDeclareFactory({
513
+ minVersion: "12.0.0",
514
+ version: "22.2.2",
515
+ ngImport: i0,
516
+ type: UiSidebarRail,
517
+ deps: [],
518
+ target: i0.ɵɵFactoryTarget.Directive
519
+ });
520
+ static ɵdir = i0.ɵɵngDeclareDirective({
521
+ minVersion: "17.1.0",
522
+ version: "22.2.2",
523
+ type: UiSidebarRail,
524
+ isStandalone: true,
525
+ selector: "button[uiSidebarRail], ui-sidebar-rail",
526
+ inputs: { userClass: {
527
+ classPropertyName: "userClass",
528
+ publicName: "class",
529
+ isSignal: true,
530
+ isRequired: false,
531
+ transformFunction: null
532
+ } },
533
+ host: {
534
+ attributes: {
535
+ "type": "button",
536
+ "aria-label": "Toggle Sidebar",
537
+ "tabindex": "-1",
538
+ "title": "Toggle Sidebar",
539
+ "data-sidebar": "rail",
540
+ "data-slot": "sidebar-rail"
541
+ },
542
+ listeners: { "click": "provider.toggle()" },
543
+ properties: { "attr.class": "classes()" }
544
+ },
545
+ hostDirectives: [{ directive: i1.UiElementHost }],
546
+ ngImport: i0
547
+ });
548
+ };
549
+ i0.ɵɵngDeclareClassMetadata({
550
+ minVersion: "12.0.0",
551
+ version: "22.2.2",
552
+ ngImport: i0,
553
+ type: UiSidebarRail,
554
+ decorators: [{
555
+ type: Directive,
556
+ args: [{
557
+ selector: "button[uiSidebarRail], ui-sidebar-rail",
558
+ hostDirectives: [UiElementHost],
559
+ host: {
560
+ type: "button",
561
+ "aria-label": "Toggle Sidebar",
562
+ tabindex: "-1",
563
+ title: "Toggle Sidebar",
564
+ "data-sidebar": "rail",
565
+ "data-slot": "sidebar-rail",
566
+ "[attr.class]": "classes()",
567
+ "(click)": "provider.toggle()"
568
+ }
569
+ }]
570
+ }],
571
+ propDecorators: { userClass: [{
572
+ type: i0.Input,
573
+ args: [{
574
+ isSignal: true,
575
+ alias: "class",
576
+ required: false
577
+ }]
578
+ }] }
579
+ });
580
+ var UiSidebarInset = class UiSidebarInset {
581
+ userClass = input("", {
582
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
583
+ alias: "class"
584
+ });
585
+ classes = computed(() => cn("relative flex w-full flex-1 flex-col bg-background", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
586
+ static ɵfac = i0.ɵɵngDeclareFactory({
587
+ minVersion: "12.0.0",
588
+ version: "22.2.2",
589
+ ngImport: i0,
590
+ type: UiSidebarInset,
591
+ deps: [],
592
+ target: i0.ɵɵFactoryTarget.Directive
593
+ });
594
+ static ɵdir = i0.ɵɵngDeclareDirective({
595
+ minVersion: "17.1.0",
596
+ version: "22.2.2",
597
+ type: UiSidebarInset,
598
+ isStandalone: true,
599
+ selector: "[uiSidebarInset], ui-sidebar-inset",
600
+ inputs: { userClass: {
601
+ classPropertyName: "userClass",
602
+ publicName: "class",
603
+ isSignal: true,
604
+ isRequired: false,
605
+ transformFunction: null
606
+ } },
607
+ host: {
608
+ attributes: { "data-slot": "sidebar-inset" },
609
+ properties: { "attr.class": "classes()" }
610
+ },
611
+ hostDirectives: [{ directive: i1.UiElementHost }],
612
+ ngImport: i0
613
+ });
614
+ };
615
+ i0.ɵɵngDeclareClassMetadata({
616
+ minVersion: "12.0.0",
617
+ version: "22.2.2",
618
+ ngImport: i0,
619
+ type: UiSidebarInset,
620
+ decorators: [{
621
+ type: Directive,
622
+ args: [{
623
+ selector: "[uiSidebarInset], ui-sidebar-inset",
624
+ hostDirectives: [UiElementHost],
625
+ host: {
626
+ "data-slot": "sidebar-inset",
627
+ "[attr.class]": "classes()"
628
+ }
629
+ }]
630
+ }],
631
+ propDecorators: { userClass: [{
632
+ type: i0.Input,
633
+ args: [{
634
+ isSignal: true,
635
+ alias: "class",
636
+ required: false
637
+ }]
638
+ }] }
639
+ });
640
+ var UiSidebarHeader = class UiSidebarHeader {
641
+ userClass = input("", {
642
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
643
+ alias: "class"
644
+ });
645
+ classes = computed(() => cn("flex flex-col gap-2 p-2", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
646
+ static ɵfac = i0.ɵɵngDeclareFactory({
647
+ minVersion: "12.0.0",
648
+ version: "22.2.2",
649
+ ngImport: i0,
650
+ type: UiSidebarHeader,
651
+ deps: [],
652
+ target: i0.ɵɵFactoryTarget.Directive
653
+ });
654
+ static ɵdir = i0.ɵɵngDeclareDirective({
655
+ minVersion: "17.1.0",
656
+ version: "22.2.2",
657
+ type: UiSidebarHeader,
658
+ isStandalone: true,
659
+ selector: "[uiSidebarHeader], ui-sidebar-header",
660
+ inputs: { userClass: {
661
+ classPropertyName: "userClass",
662
+ publicName: "class",
663
+ isSignal: true,
664
+ isRequired: false,
665
+ transformFunction: null
666
+ } },
667
+ host: {
668
+ attributes: {
669
+ "data-slot": "sidebar-header",
670
+ "data-sidebar": "header"
671
+ },
672
+ properties: { "attr.class": "classes()" }
673
+ },
674
+ hostDirectives: [{ directive: i1.UiElementHost }],
675
+ ngImport: i0
676
+ });
677
+ };
678
+ i0.ɵɵngDeclareClassMetadata({
679
+ minVersion: "12.0.0",
680
+ version: "22.2.2",
681
+ ngImport: i0,
682
+ type: UiSidebarHeader,
683
+ decorators: [{
684
+ type: Directive,
685
+ args: [{
686
+ selector: "[uiSidebarHeader], ui-sidebar-header",
687
+ hostDirectives: [UiElementHost],
688
+ host: {
689
+ "data-slot": "sidebar-header",
690
+ "data-sidebar": "header",
691
+ "[attr.class]": "classes()"
692
+ }
693
+ }]
694
+ }],
695
+ propDecorators: { userClass: [{
696
+ type: i0.Input,
697
+ args: [{
698
+ isSignal: true,
699
+ alias: "class",
700
+ required: false
701
+ }]
702
+ }] }
703
+ });
704
+ var UiSidebarFooter = class UiSidebarFooter {
705
+ userClass = input("", {
706
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
707
+ alias: "class"
708
+ });
709
+ classes = computed(() => cn("flex flex-col gap-2 p-2", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
710
+ static ɵfac = i0.ɵɵngDeclareFactory({
711
+ minVersion: "12.0.0",
712
+ version: "22.2.2",
713
+ ngImport: i0,
714
+ type: UiSidebarFooter,
715
+ deps: [],
716
+ target: i0.ɵɵFactoryTarget.Directive
717
+ });
718
+ static ɵdir = i0.ɵɵngDeclareDirective({
719
+ minVersion: "17.1.0",
720
+ version: "22.2.2",
721
+ type: UiSidebarFooter,
722
+ isStandalone: true,
723
+ selector: "[uiSidebarFooter], ui-sidebar-footer",
724
+ inputs: { userClass: {
725
+ classPropertyName: "userClass",
726
+ publicName: "class",
727
+ isSignal: true,
728
+ isRequired: false,
729
+ transformFunction: null
730
+ } },
731
+ host: {
732
+ attributes: {
733
+ "data-slot": "sidebar-footer",
734
+ "data-sidebar": "footer"
735
+ },
736
+ properties: { "attr.class": "classes()" }
737
+ },
738
+ hostDirectives: [{ directive: i1.UiElementHost }],
739
+ ngImport: i0
740
+ });
741
+ };
742
+ i0.ɵɵngDeclareClassMetadata({
743
+ minVersion: "12.0.0",
744
+ version: "22.2.2",
745
+ ngImport: i0,
746
+ type: UiSidebarFooter,
747
+ decorators: [{
748
+ type: Directive,
749
+ args: [{
750
+ selector: "[uiSidebarFooter], ui-sidebar-footer",
751
+ hostDirectives: [UiElementHost],
752
+ host: {
753
+ "data-slot": "sidebar-footer",
754
+ "data-sidebar": "footer",
755
+ "[attr.class]": "classes()"
756
+ }
757
+ }]
758
+ }],
759
+ propDecorators: { userClass: [{
760
+ type: i0.Input,
761
+ args: [{
762
+ isSignal: true,
763
+ alias: "class",
764
+ required: false
765
+ }]
766
+ }] }
767
+ });
768
+ var UiSidebarContent = class UiSidebarContent {
769
+ userClass = input("", {
770
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
771
+ alias: "class"
772
+ });
773
+ classes = computed(() => cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
774
+ static ɵfac = i0.ɵɵngDeclareFactory({
775
+ minVersion: "12.0.0",
776
+ version: "22.2.2",
777
+ ngImport: i0,
778
+ type: UiSidebarContent,
779
+ deps: [],
780
+ target: i0.ɵɵFactoryTarget.Directive
781
+ });
782
+ static ɵdir = i0.ɵɵngDeclareDirective({
783
+ minVersion: "17.1.0",
784
+ version: "22.2.2",
785
+ type: UiSidebarContent,
786
+ isStandalone: true,
787
+ selector: "[uiSidebarContent], ui-sidebar-content",
788
+ inputs: { userClass: {
789
+ classPropertyName: "userClass",
790
+ publicName: "class",
791
+ isSignal: true,
792
+ isRequired: false,
793
+ transformFunction: null
794
+ } },
795
+ host: {
796
+ attributes: {
797
+ "data-slot": "sidebar-content",
798
+ "data-sidebar": "content"
799
+ },
800
+ properties: { "attr.class": "classes()" }
801
+ },
802
+ hostDirectives: [{ directive: i1.UiElementHost }],
803
+ ngImport: i0
804
+ });
805
+ };
806
+ i0.ɵɵngDeclareClassMetadata({
807
+ minVersion: "12.0.0",
808
+ version: "22.2.2",
809
+ ngImport: i0,
810
+ type: UiSidebarContent,
811
+ decorators: [{
812
+ type: Directive,
813
+ args: [{
814
+ selector: "[uiSidebarContent], ui-sidebar-content",
815
+ hostDirectives: [UiElementHost],
816
+ host: {
817
+ "data-slot": "sidebar-content",
818
+ "data-sidebar": "content",
819
+ "[attr.class]": "classes()"
820
+ }
821
+ }]
822
+ }],
823
+ propDecorators: { userClass: [{
824
+ type: i0.Input,
825
+ args: [{
826
+ isSignal: true,
827
+ alias: "class",
828
+ required: false
829
+ }]
830
+ }] }
831
+ });
832
+ var UiSidebarSeparator = class UiSidebarSeparator {
833
+ userClass = input("", {
834
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
835
+ alias: "class"
836
+ });
837
+ classes = computed(() => cn("mx-2 block h-px w-auto shrink-0 bg-sidebar-border", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
838
+ static ɵfac = i0.ɵɵngDeclareFactory({
839
+ minVersion: "12.0.0",
840
+ version: "22.2.2",
841
+ ngImport: i0,
842
+ type: UiSidebarSeparator,
843
+ deps: [],
844
+ target: i0.ɵɵFactoryTarget.Directive
845
+ });
846
+ static ɵdir = i0.ɵɵngDeclareDirective({
847
+ minVersion: "17.1.0",
848
+ version: "22.2.2",
849
+ type: UiSidebarSeparator,
850
+ isStandalone: true,
851
+ selector: "[uiSidebarSeparator], ui-sidebar-separator",
852
+ inputs: { userClass: {
853
+ classPropertyName: "userClass",
854
+ publicName: "class",
855
+ isSignal: true,
856
+ isRequired: false,
857
+ transformFunction: null
858
+ } },
859
+ host: {
860
+ attributes: {
861
+ "data-slot": "sidebar-separator",
862
+ "data-sidebar": "separator",
863
+ "role": "separator"
864
+ },
865
+ properties: { "attr.class": "classes()" }
866
+ },
867
+ hostDirectives: [{ directive: i1.UiElementHost }],
868
+ ngImport: i0
869
+ });
870
+ };
871
+ i0.ɵɵngDeclareClassMetadata({
872
+ minVersion: "12.0.0",
873
+ version: "22.2.2",
874
+ ngImport: i0,
875
+ type: UiSidebarSeparator,
876
+ decorators: [{
877
+ type: Directive,
878
+ args: [{
879
+ selector: "[uiSidebarSeparator], ui-sidebar-separator",
880
+ hostDirectives: [UiElementHost],
881
+ host: {
882
+ "data-slot": "sidebar-separator",
883
+ "data-sidebar": "separator",
884
+ role: "separator",
885
+ "[attr.class]": "classes()"
886
+ }
887
+ }]
888
+ }],
889
+ propDecorators: { userClass: [{
890
+ type: i0.Input,
891
+ args: [{
892
+ isSignal: true,
893
+ alias: "class",
894
+ required: false
895
+ }]
896
+ }] }
897
+ });
898
+ var UiSidebarGroup = class UiSidebarGroup {
899
+ userClass = input("", {
900
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
901
+ alias: "class"
902
+ });
903
+ classes = computed(() => cn("relative flex w-full min-w-0 flex-col p-2", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
904
+ static ɵfac = i0.ɵɵngDeclareFactory({
905
+ minVersion: "12.0.0",
906
+ version: "22.2.2",
907
+ ngImport: i0,
908
+ type: UiSidebarGroup,
909
+ deps: [],
910
+ target: i0.ɵɵFactoryTarget.Directive
911
+ });
912
+ static ɵdir = i0.ɵɵngDeclareDirective({
913
+ minVersion: "17.1.0",
914
+ version: "22.2.2",
915
+ type: UiSidebarGroup,
916
+ isStandalone: true,
917
+ selector: "[uiSidebarGroup], ui-sidebar-group",
918
+ inputs: { userClass: {
919
+ classPropertyName: "userClass",
920
+ publicName: "class",
921
+ isSignal: true,
922
+ isRequired: false,
923
+ transformFunction: null
924
+ } },
925
+ host: {
926
+ attributes: {
927
+ "data-slot": "sidebar-group",
928
+ "data-sidebar": "group"
929
+ },
930
+ properties: { "attr.class": "classes()" }
931
+ },
932
+ hostDirectives: [{ directive: i1.UiElementHost }],
933
+ ngImport: i0
934
+ });
935
+ };
936
+ i0.ɵɵngDeclareClassMetadata({
937
+ minVersion: "12.0.0",
938
+ version: "22.2.2",
939
+ ngImport: i0,
940
+ type: UiSidebarGroup,
941
+ decorators: [{
942
+ type: Directive,
943
+ args: [{
944
+ selector: "[uiSidebarGroup], ui-sidebar-group",
945
+ hostDirectives: [UiElementHost],
946
+ host: {
947
+ "data-slot": "sidebar-group",
948
+ "data-sidebar": "group",
949
+ "[attr.class]": "classes()"
950
+ }
951
+ }]
952
+ }],
953
+ propDecorators: { userClass: [{
954
+ type: i0.Input,
955
+ args: [{
956
+ isSignal: true,
957
+ alias: "class",
958
+ required: false
959
+ }]
960
+ }] }
961
+ });
962
+ var UiSidebarGroupLabel = class UiSidebarGroupLabel {
963
+ userClass = input("", {
964
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
965
+ alias: "class"
966
+ });
967
+ classes = computed(() => cn("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>ui-icon]:size-4 [&>svg]:shrink-0 [&>ui-icon]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
968
+ static ɵfac = i0.ɵɵngDeclareFactory({
969
+ minVersion: "12.0.0",
970
+ version: "22.2.2",
971
+ ngImport: i0,
972
+ type: UiSidebarGroupLabel,
973
+ deps: [],
974
+ target: i0.ɵɵFactoryTarget.Directive
975
+ });
976
+ static ɵdir = i0.ɵɵngDeclareDirective({
977
+ minVersion: "17.1.0",
978
+ version: "22.2.2",
979
+ type: UiSidebarGroupLabel,
980
+ isStandalone: true,
981
+ selector: "[uiSidebarGroupLabel], ui-sidebar-group-label",
982
+ inputs: { userClass: {
983
+ classPropertyName: "userClass",
984
+ publicName: "class",
985
+ isSignal: true,
986
+ isRequired: false,
987
+ transformFunction: null
988
+ } },
989
+ host: {
990
+ attributes: {
991
+ "data-slot": "sidebar-group-label",
992
+ "data-sidebar": "group-label"
993
+ },
994
+ properties: { "attr.class": "classes()" }
995
+ },
996
+ hostDirectives: [{ directive: i1.UiElementHost }],
997
+ ngImport: i0
998
+ });
999
+ };
1000
+ i0.ɵɵngDeclareClassMetadata({
1001
+ minVersion: "12.0.0",
1002
+ version: "22.2.2",
1003
+ ngImport: i0,
1004
+ type: UiSidebarGroupLabel,
1005
+ decorators: [{
1006
+ type: Directive,
1007
+ args: [{
1008
+ selector: "[uiSidebarGroupLabel], ui-sidebar-group-label",
1009
+ hostDirectives: [UiElementHost],
1010
+ host: {
1011
+ "data-slot": "sidebar-group-label",
1012
+ "data-sidebar": "group-label",
1013
+ "[attr.class]": "classes()"
1014
+ }
1015
+ }]
1016
+ }],
1017
+ propDecorators: { userClass: [{
1018
+ type: i0.Input,
1019
+ args: [{
1020
+ isSignal: true,
1021
+ alias: "class",
1022
+ required: false
1023
+ }]
1024
+ }] }
1025
+ });
1026
+ var UiSidebarGroupAction = class UiSidebarGroupAction {
1027
+ disabled = input(false, {
1028
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1029
+ transform: booleanAttribute
1030
+ });
1031
+ userClass = input("", {
1032
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1033
+ alias: "class"
1034
+ });
1035
+ classes = computed(() => cn("absolute top-3.5 end-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>ui-icon]:size-4 [&>svg]:shrink-0 [&>ui-icon]:shrink-0 after:absolute after:-inset-2 md:after:hidden group-data-[collapsible=icon]:hidden", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1036
+ static ɵfac = i0.ɵɵngDeclareFactory({
1037
+ minVersion: "12.0.0",
1038
+ version: "22.2.2",
1039
+ ngImport: i0,
1040
+ type: UiSidebarGroupAction,
1041
+ deps: [],
1042
+ target: i0.ɵɵFactoryTarget.Directive
1043
+ });
1044
+ static ɵdir = i0.ɵɵngDeclareDirective({
1045
+ minVersion: "17.1.0",
1046
+ version: "22.2.2",
1047
+ type: UiSidebarGroupAction,
1048
+ isStandalone: true,
1049
+ selector: "button[uiSidebarGroupAction], ui-sidebar-group-action",
1050
+ inputs: {
1051
+ disabled: {
1052
+ classPropertyName: "disabled",
1053
+ publicName: "disabled",
1054
+ isSignal: true,
1055
+ isRequired: false,
1056
+ transformFunction: null
1057
+ },
1058
+ userClass: {
1059
+ classPropertyName: "userClass",
1060
+ publicName: "class",
1061
+ isSignal: true,
1062
+ isRequired: false,
1063
+ transformFunction: null
1064
+ }
1065
+ },
1066
+ host: {
1067
+ attributes: {
1068
+ "data-slot": "sidebar-group-action",
1069
+ "data-sidebar": "group-action",
1070
+ "type": "button"
1071
+ },
1072
+ properties: {
1073
+ "attr.disabled": "disabled() ? \"\" : null",
1074
+ "attr.class": "classes()"
1075
+ }
1076
+ },
1077
+ hostDirectives: [{ directive: i1.UiElementHost }],
1078
+ ngImport: i0
1079
+ });
1080
+ };
1081
+ i0.ɵɵngDeclareClassMetadata({
1082
+ minVersion: "12.0.0",
1083
+ version: "22.2.2",
1084
+ ngImport: i0,
1085
+ type: UiSidebarGroupAction,
1086
+ decorators: [{
1087
+ type: Directive,
1088
+ args: [{
1089
+ selector: "button[uiSidebarGroupAction], ui-sidebar-group-action",
1090
+ hostDirectives: [UiElementHost],
1091
+ host: {
1092
+ "[attr.disabled]": "disabled() ? \"\" : null",
1093
+ "data-slot": "sidebar-group-action",
1094
+ "data-sidebar": "group-action",
1095
+ type: "button",
1096
+ "[attr.class]": "classes()"
1097
+ }
1098
+ }]
1099
+ }],
1100
+ propDecorators: {
1101
+ disabled: [{
1102
+ type: i0.Input,
1103
+ args: [{
1104
+ isSignal: true,
1105
+ alias: "disabled",
1106
+ required: false
1107
+ }]
1108
+ }],
1109
+ userClass: [{
1110
+ type: i0.Input,
1111
+ args: [{
1112
+ isSignal: true,
1113
+ alias: "class",
1114
+ required: false
1115
+ }]
1116
+ }]
1117
+ }
1118
+ });
1119
+ var UiSidebarGroupContent = class UiSidebarGroupContent {
1120
+ userClass = input("", {
1121
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1122
+ alias: "class"
1123
+ });
1124
+ classes = computed(() => cn("w-full text-sm", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1125
+ static ɵfac = i0.ɵɵngDeclareFactory({
1126
+ minVersion: "12.0.0",
1127
+ version: "22.2.2",
1128
+ ngImport: i0,
1129
+ type: UiSidebarGroupContent,
1130
+ deps: [],
1131
+ target: i0.ɵɵFactoryTarget.Directive
1132
+ });
1133
+ static ɵdir = i0.ɵɵngDeclareDirective({
1134
+ minVersion: "17.1.0",
1135
+ version: "22.2.2",
1136
+ type: UiSidebarGroupContent,
1137
+ isStandalone: true,
1138
+ selector: "[uiSidebarGroupContent], ui-sidebar-group-content",
1139
+ inputs: { userClass: {
1140
+ classPropertyName: "userClass",
1141
+ publicName: "class",
1142
+ isSignal: true,
1143
+ isRequired: false,
1144
+ transformFunction: null
1145
+ } },
1146
+ host: {
1147
+ attributes: {
1148
+ "data-slot": "sidebar-group-content",
1149
+ "data-sidebar": "group-content"
1150
+ },
1151
+ properties: { "attr.class": "classes()" }
1152
+ },
1153
+ hostDirectives: [{ directive: i1.UiElementHost }],
1154
+ ngImport: i0
1155
+ });
1156
+ };
1157
+ i0.ɵɵngDeclareClassMetadata({
1158
+ minVersion: "12.0.0",
1159
+ version: "22.2.2",
1160
+ ngImport: i0,
1161
+ type: UiSidebarGroupContent,
1162
+ decorators: [{
1163
+ type: Directive,
1164
+ args: [{
1165
+ selector: "[uiSidebarGroupContent], ui-sidebar-group-content",
1166
+ hostDirectives: [UiElementHost],
1167
+ host: {
1168
+ "data-slot": "sidebar-group-content",
1169
+ "data-sidebar": "group-content",
1170
+ "[attr.class]": "classes()"
1171
+ }
1172
+ }]
1173
+ }],
1174
+ propDecorators: { userClass: [{
1175
+ type: i0.Input,
1176
+ args: [{
1177
+ isSignal: true,
1178
+ alias: "class",
1179
+ required: false
1180
+ }]
1181
+ }] }
1182
+ });
1183
+ var UiSidebarMenu = class UiSidebarMenu {
1184
+ userClass = input("", {
1185
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1186
+ alias: "class"
1187
+ });
1188
+ classes = computed(() => cn("flex w-full min-w-0 flex-col gap-1 list-none m-0 p-0", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1189
+ static ɵfac = i0.ɵɵngDeclareFactory({
1190
+ minVersion: "12.0.0",
1191
+ version: "22.2.2",
1192
+ ngImport: i0,
1193
+ type: UiSidebarMenu,
1194
+ deps: [],
1195
+ target: i0.ɵɵFactoryTarget.Directive
1196
+ });
1197
+ static ɵdir = i0.ɵɵngDeclareDirective({
1198
+ minVersion: "17.1.0",
1199
+ version: "22.2.2",
1200
+ type: UiSidebarMenu,
1201
+ isStandalone: true,
1202
+ selector: "ul[uiSidebarMenu], ui-sidebar-menu",
1203
+ inputs: { userClass: {
1204
+ classPropertyName: "userClass",
1205
+ publicName: "class",
1206
+ isSignal: true,
1207
+ isRequired: false,
1208
+ transformFunction: null
1209
+ } },
1210
+ host: {
1211
+ attributes: {
1212
+ "data-slot": "sidebar-menu",
1213
+ "data-sidebar": "menu"
1214
+ },
1215
+ properties: { "attr.class": "classes()" }
1216
+ },
1217
+ hostDirectives: [{ directive: i1.UiElementHost }],
1218
+ ngImport: i0
1219
+ });
1220
+ };
1221
+ i0.ɵɵngDeclareClassMetadata({
1222
+ minVersion: "12.0.0",
1223
+ version: "22.2.2",
1224
+ ngImport: i0,
1225
+ type: UiSidebarMenu,
1226
+ decorators: [{
1227
+ type: Directive,
1228
+ args: [{
1229
+ selector: "ul[uiSidebarMenu], ui-sidebar-menu",
1230
+ hostDirectives: [UiElementHost],
1231
+ host: {
1232
+ "data-slot": "sidebar-menu",
1233
+ "data-sidebar": "menu",
1234
+ "[attr.class]": "classes()"
1235
+ }
1236
+ }]
1237
+ }],
1238
+ propDecorators: { userClass: [{
1239
+ type: i0.Input,
1240
+ args: [{
1241
+ isSignal: true,
1242
+ alias: "class",
1243
+ required: false
1244
+ }]
1245
+ }] }
1246
+ });
1247
+ var UiSidebarMenuItem = class UiSidebarMenuItem {
1248
+ userClass = input("", {
1249
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1250
+ alias: "class"
1251
+ });
1252
+ classes = computed(() => cn("group/menu-item relative", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1253
+ static ɵfac = i0.ɵɵngDeclareFactory({
1254
+ minVersion: "12.0.0",
1255
+ version: "22.2.2",
1256
+ ngImport: i0,
1257
+ type: UiSidebarMenuItem,
1258
+ deps: [],
1259
+ target: i0.ɵɵFactoryTarget.Directive
1260
+ });
1261
+ static ɵdir = i0.ɵɵngDeclareDirective({
1262
+ minVersion: "17.1.0",
1263
+ version: "22.2.2",
1264
+ type: UiSidebarMenuItem,
1265
+ isStandalone: true,
1266
+ selector: "li[uiSidebarMenuItem], ui-sidebar-menu-item",
1267
+ inputs: { userClass: {
1268
+ classPropertyName: "userClass",
1269
+ publicName: "class",
1270
+ isSignal: true,
1271
+ isRequired: false,
1272
+ transformFunction: null
1273
+ } },
1274
+ host: {
1275
+ attributes: {
1276
+ "data-slot": "sidebar-menu-item",
1277
+ "data-sidebar": "menu-item"
1278
+ },
1279
+ properties: { "attr.class": "classes()" }
1280
+ },
1281
+ hostDirectives: [{ directive: i1.UiElementHost }],
1282
+ ngImport: i0
1283
+ });
1284
+ };
1285
+ i0.ɵɵngDeclareClassMetadata({
1286
+ minVersion: "12.0.0",
1287
+ version: "22.2.2",
1288
+ ngImport: i0,
1289
+ type: UiSidebarMenuItem,
1290
+ decorators: [{
1291
+ type: Directive,
1292
+ args: [{
1293
+ selector: "li[uiSidebarMenuItem], ui-sidebar-menu-item",
1294
+ hostDirectives: [UiElementHost],
1295
+ host: {
1296
+ "data-slot": "sidebar-menu-item",
1297
+ "data-sidebar": "menu-item",
1298
+ "[attr.class]": "classes()"
1299
+ }
1300
+ }]
1301
+ }],
1302
+ propDecorators: { userClass: [{
1303
+ type: i0.Input,
1304
+ args: [{
1305
+ isSignal: true,
1306
+ alias: "class",
1307
+ required: false
1308
+ }]
1309
+ }] }
1310
+ });
1311
+ var UiSidebarMenuAction = class UiSidebarMenuAction {
1312
+ disabled = input(false, {
1313
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1314
+ transform: booleanAttribute
1315
+ });
1316
+ userClass = input("", {
1317
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1318
+ alias: "class"
1319
+ });
1320
+ classes = computed(() => cn("absolute top-1.5 end-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>ui-icon]:size-4 [&>svg]:shrink-0 [&>ui-icon]:shrink-0 after:absolute after:-inset-2 md:after:hidden peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 group-data-[collapsible=icon]:hidden", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1321
+ static ɵfac = i0.ɵɵngDeclareFactory({
1322
+ minVersion: "12.0.0",
1323
+ version: "22.2.2",
1324
+ ngImport: i0,
1325
+ type: UiSidebarMenuAction,
1326
+ deps: [],
1327
+ target: i0.ɵɵFactoryTarget.Directive
1328
+ });
1329
+ static ɵdir = i0.ɵɵngDeclareDirective({
1330
+ minVersion: "17.1.0",
1331
+ version: "22.2.2",
1332
+ type: UiSidebarMenuAction,
1333
+ isStandalone: true,
1334
+ selector: "button[uiSidebarMenuAction], ui-sidebar-menu-action",
1335
+ inputs: {
1336
+ disabled: {
1337
+ classPropertyName: "disabled",
1338
+ publicName: "disabled",
1339
+ isSignal: true,
1340
+ isRequired: false,
1341
+ transformFunction: null
1342
+ },
1343
+ userClass: {
1344
+ classPropertyName: "userClass",
1345
+ publicName: "class",
1346
+ isSignal: true,
1347
+ isRequired: false,
1348
+ transformFunction: null
1349
+ }
1350
+ },
1351
+ host: {
1352
+ attributes: {
1353
+ "data-slot": "sidebar-menu-action",
1354
+ "data-sidebar": "menu-action",
1355
+ "type": "button"
1356
+ },
1357
+ properties: {
1358
+ "attr.disabled": "disabled() ? \"\" : null",
1359
+ "attr.class": "classes()"
1360
+ }
1361
+ },
1362
+ hostDirectives: [{ directive: i1.UiElementHost }],
1363
+ ngImport: i0
1364
+ });
1365
+ };
1366
+ i0.ɵɵngDeclareClassMetadata({
1367
+ minVersion: "12.0.0",
1368
+ version: "22.2.2",
1369
+ ngImport: i0,
1370
+ type: UiSidebarMenuAction,
1371
+ decorators: [{
1372
+ type: Directive,
1373
+ args: [{
1374
+ selector: "button[uiSidebarMenuAction], ui-sidebar-menu-action",
1375
+ hostDirectives: [UiElementHost],
1376
+ host: {
1377
+ "[attr.disabled]": "disabled() ? \"\" : null",
1378
+ "data-slot": "sidebar-menu-action",
1379
+ "data-sidebar": "menu-action",
1380
+ type: "button",
1381
+ "[attr.class]": "classes()"
1382
+ }
1383
+ }]
1384
+ }],
1385
+ propDecorators: {
1386
+ disabled: [{
1387
+ type: i0.Input,
1388
+ args: [{
1389
+ isSignal: true,
1390
+ alias: "disabled",
1391
+ required: false
1392
+ }]
1393
+ }],
1394
+ userClass: [{
1395
+ type: i0.Input,
1396
+ args: [{
1397
+ isSignal: true,
1398
+ alias: "class",
1399
+ required: false
1400
+ }]
1401
+ }]
1402
+ }
1403
+ });
1404
+ var UiSidebarMenuBadge = class UiSidebarMenuBadge {
1405
+ userClass = input("", {
1406
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1407
+ alias: "class"
1408
+ });
1409
+ classes = computed(() => cn("pointer-events-none absolute end-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 group-data-[collapsible=icon]:hidden", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1410
+ static ɵfac = i0.ɵɵngDeclareFactory({
1411
+ minVersion: "12.0.0",
1412
+ version: "22.2.2",
1413
+ ngImport: i0,
1414
+ type: UiSidebarMenuBadge,
1415
+ deps: [],
1416
+ target: i0.ɵɵFactoryTarget.Directive
1417
+ });
1418
+ static ɵdir = i0.ɵɵngDeclareDirective({
1419
+ minVersion: "17.1.0",
1420
+ version: "22.2.2",
1421
+ type: UiSidebarMenuBadge,
1422
+ isStandalone: true,
1423
+ selector: "[uiSidebarMenuBadge], ui-sidebar-menu-badge",
1424
+ inputs: { userClass: {
1425
+ classPropertyName: "userClass",
1426
+ publicName: "class",
1427
+ isSignal: true,
1428
+ isRequired: false,
1429
+ transformFunction: null
1430
+ } },
1431
+ host: {
1432
+ attributes: {
1433
+ "data-slot": "sidebar-menu-badge",
1434
+ "data-sidebar": "menu-badge"
1435
+ },
1436
+ properties: { "attr.class": "classes()" }
1437
+ },
1438
+ hostDirectives: [{ directive: i1.UiElementHost }],
1439
+ ngImport: i0
1440
+ });
1441
+ };
1442
+ i0.ɵɵngDeclareClassMetadata({
1443
+ minVersion: "12.0.0",
1444
+ version: "22.2.2",
1445
+ ngImport: i0,
1446
+ type: UiSidebarMenuBadge,
1447
+ decorators: [{
1448
+ type: Directive,
1449
+ args: [{
1450
+ selector: "[uiSidebarMenuBadge], ui-sidebar-menu-badge",
1451
+ hostDirectives: [UiElementHost],
1452
+ host: {
1453
+ "data-slot": "sidebar-menu-badge",
1454
+ "data-sidebar": "menu-badge",
1455
+ "[attr.class]": "classes()"
1456
+ }
1457
+ }]
1458
+ }],
1459
+ propDecorators: { userClass: [{
1460
+ type: i0.Input,
1461
+ args: [{
1462
+ isSignal: true,
1463
+ alias: "class",
1464
+ required: false
1465
+ }]
1466
+ }] }
1467
+ });
1468
+ var UiSidebarMenuSub = class UiSidebarMenuSub {
1469
+ userClass = input("", {
1470
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1471
+ alias: "class"
1472
+ });
1473
+ classes = computed(() => cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-s border-sidebar-border px-2.5 py-0.5 list-none group-data-[collapsible=icon]:hidden", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1474
+ static ɵfac = i0.ɵɵngDeclareFactory({
1475
+ minVersion: "12.0.0",
1476
+ version: "22.2.2",
1477
+ ngImport: i0,
1478
+ type: UiSidebarMenuSub,
1479
+ deps: [],
1480
+ target: i0.ɵɵFactoryTarget.Directive
1481
+ });
1482
+ static ɵdir = i0.ɵɵngDeclareDirective({
1483
+ minVersion: "17.1.0",
1484
+ version: "22.2.2",
1485
+ type: UiSidebarMenuSub,
1486
+ isStandalone: true,
1487
+ selector: "ul[uiSidebarMenuSub], ui-sidebar-menu-sub",
1488
+ inputs: { userClass: {
1489
+ classPropertyName: "userClass",
1490
+ publicName: "class",
1491
+ isSignal: true,
1492
+ isRequired: false,
1493
+ transformFunction: null
1494
+ } },
1495
+ host: {
1496
+ attributes: {
1497
+ "data-slot": "sidebar-menu-sub",
1498
+ "data-sidebar": "menu-sub"
1499
+ },
1500
+ properties: { "attr.class": "classes()" }
1501
+ },
1502
+ hostDirectives: [{ directive: i1.UiElementHost }],
1503
+ ngImport: i0
1504
+ });
1505
+ };
1506
+ i0.ɵɵngDeclareClassMetadata({
1507
+ minVersion: "12.0.0",
1508
+ version: "22.2.2",
1509
+ ngImport: i0,
1510
+ type: UiSidebarMenuSub,
1511
+ decorators: [{
1512
+ type: Directive,
1513
+ args: [{
1514
+ selector: "ul[uiSidebarMenuSub], ui-sidebar-menu-sub",
1515
+ hostDirectives: [UiElementHost],
1516
+ host: {
1517
+ "data-slot": "sidebar-menu-sub",
1518
+ "data-sidebar": "menu-sub",
1519
+ "[attr.class]": "classes()"
1520
+ }
1521
+ }]
1522
+ }],
1523
+ propDecorators: { userClass: [{
1524
+ type: i0.Input,
1525
+ args: [{
1526
+ isSignal: true,
1527
+ alias: "class",
1528
+ required: false
1529
+ }]
1530
+ }] }
1531
+ });
1532
+ var UiSidebarMenuSubItem = class UiSidebarMenuSubItem {
1533
+ userClass = input("", {
1534
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1535
+ alias: "class"
1536
+ });
1537
+ classes = computed(() => cn("group/menu-sub-item relative", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1538
+ static ɵfac = i0.ɵɵngDeclareFactory({
1539
+ minVersion: "12.0.0",
1540
+ version: "22.2.2",
1541
+ ngImport: i0,
1542
+ type: UiSidebarMenuSubItem,
1543
+ deps: [],
1544
+ target: i0.ɵɵFactoryTarget.Directive
1545
+ });
1546
+ static ɵdir = i0.ɵɵngDeclareDirective({
1547
+ minVersion: "17.1.0",
1548
+ version: "22.2.2",
1549
+ type: UiSidebarMenuSubItem,
1550
+ isStandalone: true,
1551
+ selector: "li[uiSidebarMenuSubItem], ui-sidebar-menu-sub-item",
1552
+ inputs: { userClass: {
1553
+ classPropertyName: "userClass",
1554
+ publicName: "class",
1555
+ isSignal: true,
1556
+ isRequired: false,
1557
+ transformFunction: null
1558
+ } },
1559
+ host: {
1560
+ attributes: {
1561
+ "data-slot": "sidebar-menu-sub-item",
1562
+ "data-sidebar": "menu-sub-item"
1563
+ },
1564
+ properties: { "attr.class": "classes()" }
1565
+ },
1566
+ hostDirectives: [{ directive: i1.UiElementHost }],
1567
+ ngImport: i0
1568
+ });
1569
+ };
1570
+ i0.ɵɵngDeclareClassMetadata({
1571
+ minVersion: "12.0.0",
1572
+ version: "22.2.2",
1573
+ ngImport: i0,
1574
+ type: UiSidebarMenuSubItem,
1575
+ decorators: [{
1576
+ type: Directive,
1577
+ args: [{
1578
+ selector: "li[uiSidebarMenuSubItem], ui-sidebar-menu-sub-item",
1579
+ hostDirectives: [UiElementHost],
1580
+ host: {
1581
+ "data-slot": "sidebar-menu-sub-item",
1582
+ "data-sidebar": "menu-sub-item",
1583
+ "[attr.class]": "classes()"
1584
+ }
1585
+ }]
1586
+ }],
1587
+ propDecorators: { userClass: [{
1588
+ type: i0.Input,
1589
+ args: [{
1590
+ isSignal: true,
1591
+ alias: "class",
1592
+ required: false
1593
+ }]
1594
+ }] }
1595
+ });
1596
+ const sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pe-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>ui-icon]:size-4 [&>svg]:shrink-0 [&>ui-icon]:shrink-0", {
1597
+ variants: {
1598
+ variant: {
1599
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
1600
+ outline: "bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"
1601
+ },
1602
+ size: {
1603
+ default: "h-8 text-sm",
1604
+ sm: "h-7 text-xs",
1605
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
1606
+ }
1607
+ },
1608
+ defaultVariants: {
1609
+ variant: "default",
1610
+ size: "default"
1611
+ }
1612
+ });
1613
+ var UiSidebarMenuButton = class UiSidebarMenuButton {
1614
+ disabled = input(false, {
1615
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1616
+ transform: booleanAttribute
1617
+ });
1618
+ provider = inject(UiSidebarProvider);
1619
+ isActive = input(false, {
1620
+ ...ngDevMode ? { debugName: "isActive" } : /* istanbul ignore next */ {},
1621
+ transform: booleanAttribute
1622
+ });
1623
+ variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
1624
+ size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
1625
+ tooltip = input("", ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
1626
+ userClass = input("", {
1627
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1628
+ alias: "class"
1629
+ });
1630
+ tooltipText = computed(() => this.tooltip() && this.provider.state() === "collapsed" && !this.provider.isMobile() ? this.tooltip() : null, ...ngDevMode ? [{ debugName: "tooltipText" }] : /* istanbul ignore next */ []);
1631
+ classes = computed(() => cn(sidebarMenuButtonVariants({
1632
+ variant: this.variant(),
1633
+ size: this.size()
1634
+ }), this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1635
+ static ɵfac = i0.ɵɵngDeclareFactory({
1636
+ minVersion: "12.0.0",
1637
+ version: "22.2.2",
1638
+ ngImport: i0,
1639
+ type: UiSidebarMenuButton,
1640
+ deps: [],
1641
+ target: i0.ɵɵFactoryTarget.Directive
1642
+ });
1643
+ static ɵdir = i0.ɵɵngDeclareDirective({
1644
+ minVersion: "17.1.0",
1645
+ version: "22.2.2",
1646
+ type: UiSidebarMenuButton,
1647
+ isStandalone: true,
1648
+ selector: "button[uiSidebarMenuButton], a[uiSidebarMenuButton], ui-sidebar-menu-button",
1649
+ inputs: {
1650
+ disabled: {
1651
+ classPropertyName: "disabled",
1652
+ publicName: "disabled",
1653
+ isSignal: true,
1654
+ isRequired: false,
1655
+ transformFunction: null
1656
+ },
1657
+ isActive: {
1658
+ classPropertyName: "isActive",
1659
+ publicName: "isActive",
1660
+ isSignal: true,
1661
+ isRequired: false,
1662
+ transformFunction: null
1663
+ },
1664
+ variant: {
1665
+ classPropertyName: "variant",
1666
+ publicName: "variant",
1667
+ isSignal: true,
1668
+ isRequired: false,
1669
+ transformFunction: null
1670
+ },
1671
+ size: {
1672
+ classPropertyName: "size",
1673
+ publicName: "size",
1674
+ isSignal: true,
1675
+ isRequired: false,
1676
+ transformFunction: null
1677
+ },
1678
+ tooltip: {
1679
+ classPropertyName: "tooltip",
1680
+ publicName: "tooltip",
1681
+ isSignal: true,
1682
+ isRequired: false,
1683
+ transformFunction: null
1684
+ },
1685
+ userClass: {
1686
+ classPropertyName: "userClass",
1687
+ publicName: "class",
1688
+ isSignal: true,
1689
+ isRequired: false,
1690
+ transformFunction: null
1691
+ }
1692
+ },
1693
+ host: {
1694
+ attributes: {
1695
+ "data-slot": "sidebar-menu-button",
1696
+ "data-sidebar": "menu-button"
1697
+ },
1698
+ properties: {
1699
+ "attr.disabled": "disabled() ? \"\" : null",
1700
+ "attr.data-size": "size()",
1701
+ "attr.data-active": "isActive()",
1702
+ "attr.aria-current": "isActive() ? \"page\" : null",
1703
+ "attr.title": "tooltipText()",
1704
+ "attr.class": "classes()"
1705
+ }
1706
+ },
1707
+ hostDirectives: [{ directive: i1.UiElementHost }],
1708
+ ngImport: i0
1709
+ });
1710
+ };
1711
+ i0.ɵɵngDeclareClassMetadata({
1712
+ minVersion: "12.0.0",
1713
+ version: "22.2.2",
1714
+ ngImport: i0,
1715
+ type: UiSidebarMenuButton,
1716
+ decorators: [{
1717
+ type: Directive,
1718
+ args: [{
1719
+ selector: "button[uiSidebarMenuButton], a[uiSidebarMenuButton], ui-sidebar-menu-button",
1720
+ hostDirectives: [UiElementHost],
1721
+ host: {
1722
+ "[attr.disabled]": "disabled() ? \"\" : null",
1723
+ "data-slot": "sidebar-menu-button",
1724
+ "data-sidebar": "menu-button",
1725
+ "[attr.data-size]": "size()",
1726
+ "[attr.data-active]": "isActive()",
1727
+ "[attr.aria-current]": "isActive() ? \"page\" : null",
1728
+ "[attr.title]": "tooltipText()",
1729
+ "[attr.class]": "classes()"
1730
+ }
1731
+ }]
1732
+ }],
1733
+ propDecorators: {
1734
+ disabled: [{
1735
+ type: i0.Input,
1736
+ args: [{
1737
+ isSignal: true,
1738
+ alias: "disabled",
1739
+ required: false
1740
+ }]
1741
+ }],
1742
+ isActive: [{
1743
+ type: i0.Input,
1744
+ args: [{
1745
+ isSignal: true,
1746
+ alias: "isActive",
1747
+ required: false
1748
+ }]
1749
+ }],
1750
+ variant: [{
1751
+ type: i0.Input,
1752
+ args: [{
1753
+ isSignal: true,
1754
+ alias: "variant",
1755
+ required: false
1756
+ }]
1757
+ }],
1758
+ size: [{
1759
+ type: i0.Input,
1760
+ args: [{
1761
+ isSignal: true,
1762
+ alias: "size",
1763
+ required: false
1764
+ }]
1765
+ }],
1766
+ tooltip: [{
1767
+ type: i0.Input,
1768
+ args: [{
1769
+ isSignal: true,
1770
+ alias: "tooltip",
1771
+ required: false
1772
+ }]
1773
+ }],
1774
+ userClass: [{
1775
+ type: i0.Input,
1776
+ args: [{
1777
+ isSignal: true,
1778
+ alias: "class",
1779
+ required: false
1780
+ }]
1781
+ }]
1782
+ }
1783
+ });
1784
+ var UiSidebarMenuSubButton = class UiSidebarMenuSubButton {
1785
+ isActive = input(false, {
1786
+ ...ngDevMode ? { debugName: "isActive" } : /* istanbul ignore next */ {},
1787
+ transform: booleanAttribute
1788
+ });
1789
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
1790
+ userClass = input("", {
1791
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
1792
+ alias: "class"
1793
+ });
1794
+ classes = computed(() => cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>ui-icon]:size-4 [&>svg]:shrink-0 [&>ui-icon]:shrink-0 [&>svg]:text-sidebar-accent-foreground [&>ui-icon]:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground group-data-[collapsible=icon]:hidden", this.size() === "sm" ? "text-xs" : "text-sm", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
1795
+ static ɵfac = i0.ɵɵngDeclareFactory({
1796
+ minVersion: "12.0.0",
1797
+ version: "22.2.2",
1798
+ ngImport: i0,
1799
+ type: UiSidebarMenuSubButton,
1800
+ deps: [],
1801
+ target: i0.ɵɵFactoryTarget.Directive
1802
+ });
1803
+ static ɵdir = i0.ɵɵngDeclareDirective({
1804
+ minVersion: "17.1.0",
1805
+ version: "22.2.2",
1806
+ type: UiSidebarMenuSubButton,
1807
+ isStandalone: true,
1808
+ selector: "a[uiSidebarMenuSubButton], button[uiSidebarMenuSubButton], ui-sidebar-menu-sub-button",
1809
+ inputs: {
1810
+ isActive: {
1811
+ classPropertyName: "isActive",
1812
+ publicName: "isActive",
1813
+ isSignal: true,
1814
+ isRequired: false,
1815
+ transformFunction: null
1816
+ },
1817
+ size: {
1818
+ classPropertyName: "size",
1819
+ publicName: "size",
1820
+ isSignal: true,
1821
+ isRequired: false,
1822
+ transformFunction: null
1823
+ },
1824
+ userClass: {
1825
+ classPropertyName: "userClass",
1826
+ publicName: "class",
1827
+ isSignal: true,
1828
+ isRequired: false,
1829
+ transformFunction: null
1830
+ }
1831
+ },
1832
+ host: {
1833
+ attributes: {
1834
+ "data-slot": "sidebar-menu-sub-button",
1835
+ "data-sidebar": "menu-sub-button"
1836
+ },
1837
+ properties: {
1838
+ "attr.data-size": "size()",
1839
+ "attr.data-active": "isActive()",
1840
+ "attr.class": "classes()"
1841
+ }
1842
+ },
1843
+ hostDirectives: [{ directive: i1.UiElementHost }],
1844
+ ngImport: i0
1845
+ });
1846
+ };
1847
+ i0.ɵɵngDeclareClassMetadata({
1848
+ minVersion: "12.0.0",
1849
+ version: "22.2.2",
1850
+ ngImport: i0,
1851
+ type: UiSidebarMenuSubButton,
1852
+ decorators: [{
1853
+ type: Directive,
1854
+ args: [{
1855
+ selector: "a[uiSidebarMenuSubButton], button[uiSidebarMenuSubButton], ui-sidebar-menu-sub-button",
1856
+ hostDirectives: [UiElementHost],
1857
+ host: {
1858
+ "data-slot": "sidebar-menu-sub-button",
1859
+ "data-sidebar": "menu-sub-button",
1860
+ "[attr.data-size]": "size()",
1861
+ "[attr.data-active]": "isActive()",
1862
+ "[attr.class]": "classes()"
1863
+ }
1864
+ }]
1865
+ }],
1866
+ propDecorators: {
1867
+ isActive: [{
1868
+ type: i0.Input,
1869
+ args: [{
1870
+ isSignal: true,
1871
+ alias: "isActive",
1872
+ required: false
1873
+ }]
1874
+ }],
1875
+ size: [{
1876
+ type: i0.Input,
1877
+ args: [{
1878
+ isSignal: true,
1879
+ alias: "size",
1880
+ required: false
1881
+ }]
1882
+ }],
1883
+ userClass: [{
1884
+ type: i0.Input,
1885
+ args: [{
1886
+ isSignal: true,
1887
+ alias: "class",
1888
+ required: false
1889
+ }]
1890
+ }]
1891
+ }
1892
+ });
1893
+ const UI_SIDEBAR = [
1894
+ UiSidebarProvider,
1895
+ UiSidebar,
1896
+ UiSidebarTrigger,
1897
+ UiSidebarRail,
1898
+ UiSidebarInset,
1899
+ UiSidebarHeader,
1900
+ UiSidebarFooter,
1901
+ UiSidebarContent,
1902
+ UiSidebarSeparator,
1903
+ UiSidebarGroup,
1904
+ UiSidebarGroupLabel,
1905
+ UiSidebarGroupAction,
1906
+ UiSidebarGroupContent,
1907
+ UiSidebarMenu,
1908
+ UiSidebarMenuItem,
1909
+ UiSidebarMenuButton,
1910
+ UiSidebarMenuAction,
1911
+ UiSidebarMenuBadge,
1912
+ UiSidebarMenuSub,
1913
+ UiSidebarMenuSubItem,
1914
+ UiSidebarMenuSubButton
1915
+ ];
1916
+ export { UI_SIDEBAR, UiSidebar, UiSidebarContent, UiSidebarFooter, UiSidebarGroup, UiSidebarGroupAction, UiSidebarGroupContent, UiSidebarGroupLabel, UiSidebarHeader, UiSidebarInset, UiSidebarMenu, UiSidebarMenuAction, UiSidebarMenuBadge, UiSidebarMenuButton, UiSidebarMenuItem, UiSidebarMenuSub, UiSidebarMenuSubButton, UiSidebarMenuSubItem, UiSidebarProvider, UiSidebarRail, UiSidebarSeparator, UiSidebarTrigger, sidebarMenuButtonVariants };
1917
+
1918
+ //# sourceMappingURL=loomui-ng-ui-sidebar.mjs.map