yukit-web 0.10.6 → 0.10.7
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.
- package/fesm2022/yukit-web-chart.mjs +807 -552
- package/fesm2022/yukit-web-chart.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert.mjs +199 -91
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-badge.mjs +78 -44
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button.mjs +137 -67
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-card.mjs +318 -136
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-command.mjs +752 -260
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-empty.mjs +280 -121
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-field.mjs +670 -301
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input.mjs +62 -30
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-item.mjs +545 -227
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-label.mjs +60 -28
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-marker.mjs +165 -74
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-message.mjs +277 -112
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-popover.mjs +358 -133
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-progress.mjs +126 -58
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-select.mjs +1059 -351
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-separator.mjs +61 -31
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-slider.mjs +139 -59
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-switch.mjs +326 -94
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-table.mjs +374 -177
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-typography.mjs +461 -202
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-utils.mjs +131 -253
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
- package/fesm2022/yukit-web.mjs +24457 -9670
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +9 -9
- package/types/yukit-web-chart.d.ts +184 -125
- package/types/yukit-web-helm-accordion.d.ts +49 -28
- package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
- package/types/yukit-web-helm-alert.d.ts +30 -32
- package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
- package/types/yukit-web-helm-attachment.d.ts +97 -69
- package/types/yukit-web-helm-autocomplete.d.ts +205 -79
- package/types/yukit-web-helm-avatar.d.ts +44 -39
- package/types/yukit-web-helm-badge.d.ts +18 -17
- package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
- package/types/yukit-web-helm-bubble.d.ts +54 -40
- package/types/yukit-web-helm-button-group.d.ts +29 -22
- package/types/yukit-web-helm-button.d.ts +41 -31
- package/types/yukit-web-helm-calendar.d.ts +157 -85
- package/types/yukit-web-helm-card.d.ts +38 -42
- package/types/yukit-web-helm-carousel.d.ts +105 -73
- package/types/yukit-web-helm-checkbox.d.ts +117 -58
- package/types/yukit-web-helm-collapsible.d.ts +34 -19
- package/types/yukit-web-helm-combobox.d.ts +355 -150
- package/types/yukit-web-helm-command.d.ts +140 -73
- package/types/yukit-web-helm-context-menu.d.ts +48 -27
- package/types/yukit-web-helm-date-picker.d.ts +852 -556
- package/types/yukit-web-helm-dialog.d.ts +106 -78
- package/types/yukit-web-helm-drawer.d.ts +90 -61
- package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
- package/types/yukit-web-helm-empty.d.ts +38 -42
- package/types/yukit-web-helm-field.d.ts +122 -91
- package/types/yukit-web-helm-hover-card.d.ts +39 -27
- package/types/yukit-web-helm-input-group.d.ts +63 -41
- package/types/yukit-web-helm-input-otp.d.ts +38 -35
- package/types/yukit-web-helm-input.d.ts +19 -12
- package/types/yukit-web-helm-item.d.ts +90 -82
- package/types/yukit-web-helm-kbd.d.ts +10 -15
- package/types/yukit-web-helm-label.d.ts +14 -11
- package/types/yukit-web-helm-marker.d.ts +26 -27
- package/types/yukit-web-helm-menubar.d.ts +61 -32
- package/types/yukit-web-helm-message.d.ts +34 -38
- package/types/yukit-web-helm-native-select.d.ts +102 -61
- package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
- package/types/yukit-web-helm-pagination.d.ts +344 -166
- package/types/yukit-web-helm-popover.d.ts +62 -42
- package/types/yukit-web-helm-progress.d.ts +27 -20
- package/types/yukit-web-helm-radio-group.d.ts +121 -63
- package/types/yukit-web-helm-resizable.d.ts +46 -24
- package/types/yukit-web-helm-scroll-area.d.ts +6 -10
- package/types/yukit-web-helm-select.d.ts +231 -114
- package/types/yukit-web-helm-separator.d.ts +15 -12
- package/types/yukit-web-helm-sheet.d.ts +94 -65
- package/types/yukit-web-helm-sidebar.d.ts +322 -232
- package/types/yukit-web-helm-skeleton.d.ts +6 -10
- package/types/yukit-web-helm-slider.d.ts +33 -13
- package/types/yukit-web-helm-sonner.d.ts +112 -51
- package/types/yukit-web-helm-spinner.d.ts +24 -17
- package/types/yukit-web-helm-switch.d.ts +89 -51
- package/types/yukit-web-helm-table.d.ts +38 -42
- package/types/yukit-web-helm-tabs.d.ts +116 -60
- package/types/yukit-web-helm-textarea.d.ts +19 -12
- package/types/yukit-web-helm-toggle-group.d.ts +81 -32
- package/types/yukit-web-helm-toggle.d.ts +39 -21
- package/types/yukit-web-helm-tooltip.d.ts +21 -16
- package/types/yukit-web-helm-typography.d.ts +62 -77
- package/types/yukit-web-helm-utils.d.ts +8 -11
- package/types/yukit-web.d.ts +5092 -2351
|
@@ -1,207 +1,252 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import * as i1 from
|
|
5
|
-
import { HlmSheetImports } from
|
|
6
|
-
import {
|
|
7
|
-
import * as i1$
|
|
8
|
-
import { HlmInput } from
|
|
9
|
-
import * as i1$
|
|
10
|
-
import { BrnTooltip, provideBrnTooltipDefaultOptions } from
|
|
11
|
-
import {
|
|
12
|
-
import { cva } from
|
|
13
|
-
import * as i1$
|
|
14
|
-
import { HlmSkeletonImports } from
|
|
15
|
-
import * as i1$
|
|
16
|
-
import { HlmSeparator } from
|
|
17
|
-
import { NgIcon, provideIcons } from
|
|
18
|
-
import { lucidePanelLeft } from
|
|
19
|
-
import * as i1
|
|
20
|
-
import {
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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(
|
|
31
|
+
const HlmSidebarConfigToken = new InjectionToken("HlmSidebarConfig");
|
|
33
32
|
function provideHlmSidebarConfig(config) {
|
|
34
|
-
|
|
33
|
+
return {
|
|
34
|
+
provide: HlmSidebarConfigToken,
|
|
35
|
+
useValue: {
|
|
36
|
+
...defaultConfig,
|
|
37
|
+
...config
|
|
38
|
+
}
|
|
39
|
+
};
|
|
35
40
|
}
|
|
36
41
|
function injectHlmSidebarConfig() {
|
|
37
|
-
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
-
`,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
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
|
-
`,
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
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
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
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
|
-
`,
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
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
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
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
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
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
|
-
|
|
1880
|
+
|
|
1881
|
+
//# sourceMappingURL=yukit-web-helm-sidebar.mjs.map
|