yukit-web 0.10.6 → 0.10.8

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