@elementar-rt/components 0.6.55
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/README.md +49 -0
- package/action-required/index.d.ts +13 -0
- package/alert/index.d.ts +51 -0
- package/announcement/index.d.ts +45 -0
- package/avatar/index.d.ts +67 -0
- package/block-loader/index.d.ts +21 -0
- package/block-state/index.d.ts +33 -0
- package/brand-colors/index.d.ts +27 -0
- package/breadcrumbs/index.d.ts +104 -0
- package/card-overlay/index.d.ts +20 -0
- package/carousel/index.d.ts +75 -0
- package/code-highlighter/index.d.ts +18 -0
- package/color-picker/index.d.ts +92 -0
- package/color-scheme/index.d.ts +44 -0
- package/command-bar/index.d.ts +28 -0
- package/comment-editor/index.d.ts +194 -0
- package/comparison-slider/index.d.ts +51 -0
- package/confirm/index.d.ts +35 -0
- package/content-fade/index.d.ts +17 -0
- package/cookie-popup/index.d.ts +41 -0
- package/core/index.d.ts +252 -0
- package/country-select/index.d.ts +76 -0
- package/crop/index.d.ts +59 -0
- package/currency-select/index.d.ts +78 -0
- package/dashboard/index.d.ts +48 -0
- package/data-view/index.d.ts +127 -0
- package/date-format-select/index.d.ts +56 -0
- package/divider/index.d.ts +13 -0
- package/drawer/index.d.ts +35 -0
- package/emoji-picker/index.d.ts +49 -0
- package/expand/index.d.ts +26 -0
- package/fesm2022/elementar-rt-components-action-required.mjs +30 -0
- package/fesm2022/elementar-rt-components-action-required.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-alert.mjs +139 -0
- package/fesm2022/elementar-rt-components-alert.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-announcement.mjs +73 -0
- package/fesm2022/elementar-rt-components-announcement.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-avatar.mjs +234 -0
- package/fesm2022/elementar-rt-components-avatar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-block-loader.mjs +54 -0
- package/fesm2022/elementar-rt-components-block-loader.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-block-state.mjs +75 -0
- package/fesm2022/elementar-rt-components-block-state.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-brand-colors.mjs +78 -0
- package/fesm2022/elementar-rt-components-brand-colors.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-breadcrumbs.mjs +213 -0
- package/fesm2022/elementar-rt-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-card-overlay.mjs +55 -0
- package/fesm2022/elementar-rt-components-card-overlay.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-carousel.mjs +605 -0
- package/fesm2022/elementar-rt-components-carousel.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-code-highlighter.mjs +57 -0
- package/fesm2022/elementar-rt-components-code-highlighter.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-color-picker.mjs +708 -0
- package/fesm2022/elementar-rt-components-color-picker.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-color-scheme.mjs +106 -0
- package/fesm2022/elementar-rt-components-color-scheme.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-command-bar.mjs +59 -0
- package/fesm2022/elementar-rt-components-command-bar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-comment-editor.mjs +1039 -0
- package/fesm2022/elementar-rt-components-comment-editor.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-comparison-slider.mjs +193 -0
- package/fesm2022/elementar-rt-components-comparison-slider.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-confirm.mjs +86 -0
- package/fesm2022/elementar-rt-components-confirm.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-content-fade.mjs +35 -0
- package/fesm2022/elementar-rt-components-content-fade.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-cookie-popup.mjs +109 -0
- package/fesm2022/elementar-rt-components-cookie-popup.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-core.mjs +837 -0
- package/fesm2022/elementar-rt-components-core.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-country-select.mjs +477 -0
- package/fesm2022/elementar-rt-components-country-select.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-crop.mjs +183 -0
- package/fesm2022/elementar-rt-components-crop.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-currency-select.mjs +384 -0
- package/fesm2022/elementar-rt-components-currency-select.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-dashboard.mjs +96 -0
- package/fesm2022/elementar-rt-components-dashboard.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-data-view.mjs +302 -0
- package/fesm2022/elementar-rt-components-data-view.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-date-format-select.mjs +136 -0
- package/fesm2022/elementar-rt-components-date-format-select.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-divider.mjs +31 -0
- package/fesm2022/elementar-rt-components-divider.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-drawer.mjs +131 -0
- package/fesm2022/elementar-rt-components-drawer.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-emoji-picker.mjs +249 -0
- package/fesm2022/elementar-rt-components-emoji-picker.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-expand.mjs +60 -0
- package/fesm2022/elementar-rt-components-expand.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-filter-builder.mjs +333 -0
- package/fesm2022/elementar-rt-components-filter-builder.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-AqEghjO_.mjs +123 -0
- package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-AqEghjO_.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-CUKmZGFq.mjs +22 -0
- package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-CUKmZGFq.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-DihIRWMt.mjs +40 -0
- package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-DihIRWMt.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-divider-content.component-CjlGcU3B.mjs +17 -0
- package/fesm2022/elementar-rt-components-form-renderer-divider-content.component-CjlGcU3B.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-image-content.component-0pL2Fk0H.mjs +17 -0
- package/fesm2022/elementar-rt-components-form-renderer-image-content.component-0pL2Fk0H.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-input-field.component-X2sKvj6J.mjs +33 -0
- package/fesm2022/elementar-rt-components-form-renderer-input-field.component-X2sKvj6J.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-DWXZAA3F.mjs +38 -0
- package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-DWXZAA3F.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-select-field.component-Cx9DZoD6.mjs +39 -0
- package/fesm2022/elementar-rt-components-form-renderer-select-field.component-Cx9DZoD6.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-text-content.component-BmFyUG06.mjs +24 -0
- package/fesm2022/elementar-rt-components-form-renderer-text-content.component-BmFyUG06.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-D9KmE049.mjs +37 -0
- package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-D9KmE049.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-BroP_Q4P.mjs +35 -0
- package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-BroP_Q4P.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-nGbtVi1_.mjs +22 -0
- package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-nGbtVi1_.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-form-renderer.mjs +321 -0
- package/fesm2022/elementar-rt-components-form-renderer.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-gauge.mjs +50 -0
- package/fesm2022/elementar-rt-components-gauge.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-icon.mjs +62 -0
- package/fesm2022/elementar-rt-components-icon.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-image-resizer.mjs +159 -0
- package/fesm2022/elementar-rt-components-image-resizer.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-image-viewer.mjs +349 -0
- package/fesm2022/elementar-rt-components-image-viewer.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-incidents.mjs +259 -0
- package/fesm2022/elementar-rt-components-incidents.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-inline-text-edit.mjs +181 -0
- package/fesm2022/elementar-rt-components-inline-text-edit.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-input-mask.mjs +180 -0
- package/fesm2022/elementar-rt-components-input-mask.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-input-validator.mjs +24 -0
- package/fesm2022/elementar-rt-components-input-validator.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-kanban-board.mjs +156 -0
- package/fesm2022/elementar-rt-components-kanban-board.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-layout.mjs +188 -0
- package/fesm2022/elementar-rt-components-layout.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-logo.mjs +43 -0
- package/fesm2022/elementar-rt-components-logo.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-marquee.mjs +79 -0
- package/fesm2022/elementar-rt-components-marquee.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-micro-chart.mjs +950 -0
- package/fesm2022/elementar-rt-components-micro-chart.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-navigation.mjs +379 -0
- package/fesm2022/elementar-rt-components-navigation.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-notifications.mjs +190 -0
- package/fesm2022/elementar-rt-components-notifications.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-number-input.mjs +288 -0
- package/fesm2022/elementar-rt-components-number-input.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-overlay-scrollbar.mjs +455 -0
- package/fesm2022/elementar-rt-components-overlay-scrollbar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-overlay.mjs +112 -0
- package/fesm2022/elementar-rt-components-overlay.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-page-loading-bar.mjs +79 -0
- package/fesm2022/elementar-rt-components-page-loading-bar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-panel.mjs +105 -0
- package/fesm2022/elementar-rt-components-panel.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-password-strength.mjs +474 -0
- package/fesm2022/elementar-rt-components-password-strength.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-phone-input.mjs +637 -0
- package/fesm2022/elementar-rt-components-phone-input.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-pin-input.mjs +197 -0
- package/fesm2022/elementar-rt-components-pin-input.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-popover.mjs +262 -0
- package/fesm2022/elementar-rt-components-popover.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-radio-card.mjs +102 -0
- package/fesm2022/elementar-rt-components-radio-card.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-rail-nav.mjs +84 -0
- package/fesm2022/elementar-rt-components-rail-nav.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-resizable-container.mjs +69 -0
- package/fesm2022/elementar-rt-components-resizable-container.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-screen-loader.mjs +27 -0
- package/fesm2022/elementar-rt-components-screen-loader.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-scroll-spy.mjs +165 -0
- package/fesm2022/elementar-rt-components-scroll-spy.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-segmented.mjs +153 -0
- package/fesm2022/elementar-rt-components-segmented.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-side-panel.mjs +110 -0
- package/fesm2022/elementar-rt-components-side-panel.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-sidebar.mjs +423 -0
- package/fesm2022/elementar-rt-components-sidebar.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-signature-pad.mjs +452 -0
- package/fesm2022/elementar-rt-components-signature-pad.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-skeleton.mjs +56 -0
- package/fesm2022/elementar-rt-components-skeleton.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-splash-screen.mjs +91 -0
- package/fesm2022/elementar-rt-components-splash-screen.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-stepper.mjs +194 -0
- package/fesm2022/elementar-rt-components-stepper.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-suggestions.mjs +76 -0
- package/fesm2022/elementar-rt-components-suggestions.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-tab-panel.mjs +270 -0
- package/fesm2022/elementar-rt-components-tab-panel.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-text-editor.mjs +1025 -0
- package/fesm2022/elementar-rt-components-text-editor.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-thumbnail-maker.mjs +214 -0
- package/fesm2022/elementar-rt-components-thumbnail-maker.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-timeline.mjs +122 -0
- package/fesm2022/elementar-rt-components-timeline.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-timezone-select.mjs +351 -0
- package/fesm2022/elementar-rt-components-timezone-select.mjs.map +1 -0
- package/fesm2022/elementar-rt-components-upload.mjs +340 -0
- package/fesm2022/elementar-rt-components-upload.mjs.map +1 -0
- package/fesm2022/elementar-rt-components.mjs +6 -0
- package/fesm2022/elementar-rt-components.mjs.map +1 -0
- package/filter-builder/index.d.ts +107 -0
- package/form-renderer/index.d.ts +121 -0
- package/gauge/index.d.ts +21 -0
- package/icon/index.d.ts +17 -0
- package/image-resizer/index.d.ts +35 -0
- package/image-viewer/index.d.ts +63 -0
- package/incidents/index.d.ts +119 -0
- package/index.d.ts +2 -0
- package/inline-text-edit/index.d.ts +39 -0
- package/input-mask/index.d.ts +36 -0
- package/input-validator/index.d.ts +5 -0
- package/kanban-board/index.d.ts +68 -0
- package/layout/index.d.ts +75 -0
- package/logo/index.d.ts +21 -0
- package/marquee/index.d.ts +26 -0
- package/micro-chart/index.d.ts +193 -0
- package/navigation/index.d.ts +119 -0
- package/notifications/index.d.ts +84 -0
- package/number-input/index.d.ts +93 -0
- package/overlay/index.d.ts +12 -0
- package/overlay-scrollbar/index.d.ts +66 -0
- package/package.json +356 -0
- package/page-loading-bar/index.d.ts +20 -0
- package/panel/index.d.ts +43 -0
- package/password-strength/index.d.ts +109 -0
- package/phone-input/index.d.ts +94 -0
- package/pin-input/index.d.ts +48 -0
- package/popover/index.d.ts +75 -0
- package/radio-card/index.d.ts +37 -0
- package/rail-nav/index.d.ts +36 -0
- package/resizable-container/index.d.ts +21 -0
- package/screen-loader/index.d.ts +9 -0
- package/scroll-spy/index.d.ts +48 -0
- package/segmented/index.d.ts +54 -0
- package/side-panel/index.d.ts +42 -0
- package/sidebar/index.d.ts +143 -0
- package/signature-pad/index.d.ts +49 -0
- package/skeleton/index.d.ts +24 -0
- package/splash-screen/index.d.ts +31 -0
- package/stepper/index.d.ts +65 -0
- package/styles/_common.scss +776 -0
- package/styles/themes/cyan-orange.scss +41 -0
- package/styles/themes/default.scss +5 -0
- package/styles/themes/magenta-violet.scss +41 -0
- package/styles/themes/rose-red.scss +41 -0
- package/suggestions/index.d.ts +32 -0
- package/tab-panel/index.d.ts +96 -0
- package/text-editor/index.d.ts +191 -0
- package/thumbnail-maker/index.d.ts +35 -0
- package/timeline/index.d.ts +57 -0
- package/timezone-select/index.d.ts +72 -0
- package/upload/index.d.ts +134 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, TemplateRef, Directive, InjectionToken, ElementRef, contentChild, computed, input, booleanAttribute, ChangeDetectionStrategy, Component, Renderer2, DestroyRef, contentChildren, output, afterNextRender, forwardRef, signal } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/core';
|
|
4
|
+
import { MatRipple } from '@angular/material/core';
|
|
5
|
+
import { NgTemplateOutlet, Location } from '@angular/common';
|
|
6
|
+
import { signalStore, withState, withMethods, patchState } from '@ngrx/signals';
|
|
7
|
+
import { Router, NavigationEnd } from '@angular/router';
|
|
8
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
9
|
+
|
|
10
|
+
class NavigationItemIconDirective {
|
|
11
|
+
templateRef = inject(TemplateRef, { optional: true });
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationItemIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: NavigationItemIconDirective, isStandalone: true, selector: "[emrNavigationItemIcon]", host: { classAttribute: "emr-navigation-item-icon" }, exportAs: ["emrNavigationItemIcon"], ngImport: i0 });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationItemIconDirective, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
selector: '[emrNavigationItemIcon]',
|
|
19
|
+
exportAs: 'emrNavigationItemIcon',
|
|
20
|
+
host: {
|
|
21
|
+
'class': 'emr-navigation-item-icon'
|
|
22
|
+
}
|
|
23
|
+
}]
|
|
24
|
+
}] });
|
|
25
|
+
|
|
26
|
+
const NAVIGATION = new InjectionToken('NAVIGATION');
|
|
27
|
+
const NAVIGATION_GROUP = new InjectionToken('NAVIGATION_GROUP');
|
|
28
|
+
|
|
29
|
+
const initialState = {
|
|
30
|
+
activeKey: null,
|
|
31
|
+
activeGroupKey: null
|
|
32
|
+
};
|
|
33
|
+
const NavigationStore = signalStore(withState(initialState), withMethods((store) => ({
|
|
34
|
+
setActiveKey(activeKey) {
|
|
35
|
+
patchState(store, {
|
|
36
|
+
activeKey
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
setActiveGroupKey(activeGroupKey) {
|
|
40
|
+
patchState(store, {
|
|
41
|
+
activeGroupKey
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
})));
|
|
45
|
+
|
|
46
|
+
let nextKey = 0;
|
|
47
|
+
class NavigationItemComponent {
|
|
48
|
+
store = inject(NavigationStore);
|
|
49
|
+
_navigation = inject(NAVIGATION);
|
|
50
|
+
_elementRef = inject(ElementRef);
|
|
51
|
+
parentGroup = inject(NAVIGATION_GROUP, { optional: true });
|
|
52
|
+
iconRef = contentChild(NavigationItemIconDirective, ...(ngDevMode ? [{ debugName: "iconRef" }] : []));
|
|
53
|
+
active = computed(() => {
|
|
54
|
+
return this.store.activeKey() === this.key();
|
|
55
|
+
}, ...(ngDevMode ? [{ debugName: "active" }] : []));
|
|
56
|
+
get api() {
|
|
57
|
+
return {
|
|
58
|
+
isActive: () => this.active()
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
key = input(`emr-navigation-item-${nextKey++}`, ...(ngDevMode ? [{ debugName: "key" }] : []));
|
|
62
|
+
forceActive = input(false, ...(ngDevMode ? [{ debugName: "forceActive", transform: booleanAttribute }] : [{
|
|
63
|
+
transform: booleanAttribute
|
|
64
|
+
}]));
|
|
65
|
+
badgeTextOnly = input(false, ...(ngDevMode ? [{ debugName: "badgeTextOnly", transform: booleanAttribute }] : [{
|
|
66
|
+
transform: booleanAttribute
|
|
67
|
+
}]));
|
|
68
|
+
click(event) {
|
|
69
|
+
if (!this.key()) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
this._navigation.itemClicked.emit(this.key());
|
|
73
|
+
this.store.setActiveKey(this.key());
|
|
74
|
+
if (this.parentGroup) {
|
|
75
|
+
this.store.setActiveGroupKey(this.parentGroup.key());
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.store.setActiveGroupKey(null);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
get _hostElement() {
|
|
82
|
+
return this._elementRef;
|
|
83
|
+
}
|
|
84
|
+
get iconRefTemplate() {
|
|
85
|
+
return this.iconRef()?.templateRef;
|
|
86
|
+
}
|
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: NavigationItemComponent, isStandalone: true, selector: "emr-navigation-item,[emr-navigation-item]", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, forceActive: { classPropertyName: "forceActive", publicName: "forceActive", isSignal: true, isRequired: false, transformFunction: null }, badgeTextOnly: { classPropertyName: "badgeTextOnly", publicName: "badgeTextOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "click($event)" }, properties: { "class.is-active": "forceActive() || active()", "class.is-badge-text-only": "badgeTextOnly()" }, classAttribute: "emr-navigation-item" }, queries: [{ propertyName: "iconRef", first: true, predicate: NavigationItemIconDirective, descendants: true, isSignal: true }], exportAs: ["emrNavigationItem"], ngImport: i0, template: "<div class=\"inner\" matRipple>\r\n <div class=\"icon\">\r\n <ng-content select=\"[emrNavigationItemIcon]\"/>\r\n @if (iconRef()) {\r\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\r\n }\r\n </div>\r\n <span class=\"text grow\"><ng-content/></span>\r\n <div class=\"badge\">\r\n <ng-content select=\"[emrNavigationItemBadge]\"/>\r\n </div>\r\n</div>\r\n", styles: [":host{display:block;text-decoration:none;position:relative}:host .inner{display:flex;align-items:center;min-width:0;white-space:nowrap;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;margin:0;width:var(--emr-navigation-item-width);background-color:var(--emr-navigation-item-bg);min-height:var(--emr-navigation-item-height);padding:var(--emr-navigation-item-padding);font-size:var(--emr-navigation-item-font-size);border-radius:var(--emr-navigation-item-border-radius);font-weight:var(--emr-navigation-item-font-weight);color:var(--emr-navigation-item-color);gap:var(--emr-navigation-item-gap);border:var(--emr-navigation-item-border-width) solid var(--emr-navigation-item-border-color)}:host:hover{text-decoration:none}:host:hover .inner{transition:background-color .2s;background-color:var(--emr-navigation-item-hover-bg);color:var(--emr-navigation-item-hover-color)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:calc(var(--spacing, .25rem) * 5);min-width:calc(var(--spacing, .25rem) * 5);align-items:center;justify-content:center;font-size:var(--text-xs);padding:0 calc(var(--spacing, .25rem) * 1.5);font-weight:700}:host .badge:empty{display:none}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--text-2xs);background:var(--color-surface-tint);color:var(--color-on-primary)}:host .icon{position:relative;left:-1px;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--emr-navigation-item-icon-width);color:var(--emr-navigation-item-icon-color)}:host .icon:empty{display:none}:host.is-active .inner,:host.is-active:hover .inner{background-color:var(--emr-navigation-item-active-bg);color:var(--emr-navigation-item-active-color)}:host:not(.is-active):hover{text-decoration:none}:host:not(.is-active):hover .icon{color:var(--emr-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--emr-navigation-item-active-icon-color)}:host-context([data-appearance=secondary]){--emr-navigation-item-border-radius: calc(infinity * 1px);--emr-navigation-item-height: calc(var(--spacing, .25rem) * 11);--emr-navigation-item-active-bg: var(--color-background)}:host-context([data-appearance=secondary]).is-active{--emr-navigation-item-border-color: var(--color-neutral-900)}:host-context(.emr-navigation-group-menu) .inner{margin:var(--emr-navigation-nested-item-margin);width:calc(var(--emr-navigation-item-width) - var(--emr-navigation-nested-item-margin));background-color:var(--emr-navigation-nested-item-bg);min-height:var(--emr-navigation-nested-item-height);padding:var(--emr-navigation-nested-item-padding);color:var(--emr-navigation-nested-item-color)}:host-context(.emr-navigation-group-menu):hover .inner{background-color:var(--emr-navigation-nested-item-hover-bg);color:var(--emr-navigation-nested-item-hover-color)}:host-context(.emr-navigation-group-menu).is-active .inner,:host-context(.emr-navigation-group-menu).is-active:hover .inner{background-color:var(--emr-navigation-nested-item-active-bg);color:var(--emr-navigation-nested-item-active-color)}:host-context(.emr-navigation-group-menu):not(:last-child):before{content:\"\";position:absolute;top:0;left:20px;bottom:-10px;width:1px;background:var(--emr-navigation-group-tree-lines-color);z-index:0}:host-context(.emr-navigation-group-menu):after{content:\"\";position:absolute;top:0;left:20px;width:calc(var(--emr-navigation-nested-item-height) / 1.5);height:calc(var(--emr-navigation-nested-item-height) / 2);border-bottom-left-radius:calc(var(--emr-navigation-nested-item-height) / 4);border-left:1px solid var(--emr-navigation-group-tree-lines-color);border-bottom:1px solid var(--emr-navigation-group-tree-lines-color)}:host-context(html.dark [data-appearance=secondary]).is-active{--emr-navigation-item-border-color: var(--color-neutral-400);--emr-navigation-item-active-color: var(--color-neutral-300)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
89
|
+
}
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationItemComponent, decorators: [{
|
|
91
|
+
type: Component,
|
|
92
|
+
args: [{ selector: 'emr-navigation-item,[emr-navigation-item]', exportAs: 'emrNavigationItem', imports: [
|
|
93
|
+
MatRipple,
|
|
94
|
+
NgTemplateOutlet
|
|
95
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
96
|
+
'class': 'emr-navigation-item',
|
|
97
|
+
'[class.is-active]': 'forceActive() || active()',
|
|
98
|
+
'[class.is-badge-text-only]': 'badgeTextOnly()',
|
|
99
|
+
'(click)': 'click($event)'
|
|
100
|
+
}, template: "<div class=\"inner\" matRipple>\r\n <div class=\"icon\">\r\n <ng-content select=\"[emrNavigationItemIcon]\"/>\r\n @if (iconRef()) {\r\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\r\n }\r\n </div>\r\n <span class=\"text grow\"><ng-content/></span>\r\n <div class=\"badge\">\r\n <ng-content select=\"[emrNavigationItemBadge]\"/>\r\n </div>\r\n</div>\r\n", styles: [":host{display:block;text-decoration:none;position:relative}:host .inner{display:flex;align-items:center;min-width:0;white-space:nowrap;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;margin:0;width:var(--emr-navigation-item-width);background-color:var(--emr-navigation-item-bg);min-height:var(--emr-navigation-item-height);padding:var(--emr-navigation-item-padding);font-size:var(--emr-navigation-item-font-size);border-radius:var(--emr-navigation-item-border-radius);font-weight:var(--emr-navigation-item-font-weight);color:var(--emr-navigation-item-color);gap:var(--emr-navigation-item-gap);border:var(--emr-navigation-item-border-width) solid var(--emr-navigation-item-border-color)}:host:hover{text-decoration:none}:host:hover .inner{transition:background-color .2s;background-color:var(--emr-navigation-item-hover-bg);color:var(--emr-navigation-item-hover-color)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:calc(var(--spacing, .25rem) * 5);min-width:calc(var(--spacing, .25rem) * 5);align-items:center;justify-content:center;font-size:var(--text-xs);padding:0 calc(var(--spacing, .25rem) * 1.5);font-weight:700}:host .badge:empty{display:none}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--text-2xs);background:var(--color-surface-tint);color:var(--color-on-primary)}:host .icon{position:relative;left:-1px;display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--emr-navigation-item-icon-width);color:var(--emr-navigation-item-icon-color)}:host .icon:empty{display:none}:host.is-active .inner,:host.is-active:hover .inner{background-color:var(--emr-navigation-item-active-bg);color:var(--emr-navigation-item-active-color)}:host:not(.is-active):hover{text-decoration:none}:host:not(.is-active):hover .icon{color:var(--emr-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--emr-navigation-item-active-icon-color)}:host-context([data-appearance=secondary]){--emr-navigation-item-border-radius: calc(infinity * 1px);--emr-navigation-item-height: calc(var(--spacing, .25rem) * 11);--emr-navigation-item-active-bg: var(--color-background)}:host-context([data-appearance=secondary]).is-active{--emr-navigation-item-border-color: var(--color-neutral-900)}:host-context(.emr-navigation-group-menu) .inner{margin:var(--emr-navigation-nested-item-margin);width:calc(var(--emr-navigation-item-width) - var(--emr-navigation-nested-item-margin));background-color:var(--emr-navigation-nested-item-bg);min-height:var(--emr-navigation-nested-item-height);padding:var(--emr-navigation-nested-item-padding);color:var(--emr-navigation-nested-item-color)}:host-context(.emr-navigation-group-menu):hover .inner{background-color:var(--emr-navigation-nested-item-hover-bg);color:var(--emr-navigation-nested-item-hover-color)}:host-context(.emr-navigation-group-menu).is-active .inner,:host-context(.emr-navigation-group-menu).is-active:hover .inner{background-color:var(--emr-navigation-nested-item-active-bg);color:var(--emr-navigation-nested-item-active-color)}:host-context(.emr-navigation-group-menu):not(:last-child):before{content:\"\";position:absolute;top:0;left:20px;bottom:-10px;width:1px;background:var(--emr-navigation-group-tree-lines-color);z-index:0}:host-context(.emr-navigation-group-menu):after{content:\"\";position:absolute;top:0;left:20px;width:calc(var(--emr-navigation-nested-item-height) / 1.5);height:calc(var(--emr-navigation-nested-item-height) / 2);border-bottom-left-radius:calc(var(--emr-navigation-nested-item-height) / 4);border-left:1px solid var(--emr-navigation-group-tree-lines-color);border-bottom:1px solid var(--emr-navigation-group-tree-lines-color)}:host-context(html.dark [data-appearance=secondary]).is-active{--emr-navigation-item-border-color: var(--color-neutral-400);--emr-navigation-item-active-color: var(--color-neutral-300)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
101
|
+
}], propDecorators: { iconRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NavigationItemIconDirective), { isSignal: true }] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], forceActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceActive", required: false }] }], badgeTextOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeTextOnly", required: false }] }] } });
|
|
102
|
+
|
|
103
|
+
class NavigationComponent {
|
|
104
|
+
store = inject(NavigationStore);
|
|
105
|
+
_elementRef = inject(ElementRef);
|
|
106
|
+
_renderer = inject(Renderer2);
|
|
107
|
+
location = inject(Location);
|
|
108
|
+
router = inject(Router);
|
|
109
|
+
destroyRef = inject(DestroyRef);
|
|
110
|
+
_items = contentChildren(NavigationItemComponent, ...(ngDevMode ? [{ debugName: "_items", descendants: true }] : [{ descendants: true }]));
|
|
111
|
+
activeKey = input(...(ngDevMode ? [undefined, { debugName: "activeKey" }] : []));
|
|
112
|
+
appearance = input(...(ngDevMode ? [undefined, { debugName: "appearance" }] : []));
|
|
113
|
+
activateByRoute = input(false, ...(ngDevMode ? [{ debugName: "activateByRoute", transform: booleanAttribute }] : [{
|
|
114
|
+
transform: booleanAttribute
|
|
115
|
+
}]));
|
|
116
|
+
autoScrollToActiveItem = input(false, ...(ngDevMode ? [{ debugName: "autoScrollToActiveItem", transform: booleanAttribute }] : [{
|
|
117
|
+
transform: booleanAttribute
|
|
118
|
+
}]));
|
|
119
|
+
itemClicked = output();
|
|
120
|
+
constructor() {
|
|
121
|
+
// scroll to the active item if it is not visible in the viewport
|
|
122
|
+
afterNextRender(() => {
|
|
123
|
+
if (!this.autoScrollToActiveItem()) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
this._items().forEach((item) => {
|
|
127
|
+
if (item.active()) {
|
|
128
|
+
let parentElement = this._elementRef.nativeElement.parentNode || null;
|
|
129
|
+
const itemElement = item._hostElement.nativeElement;
|
|
130
|
+
while (parentElement !== null) {
|
|
131
|
+
if (this._hasScroll(parentElement)) {
|
|
132
|
+
if (!this._isScrolledIntoView(itemElement, parentElement)) {
|
|
133
|
+
const parentRect = parentElement.getBoundingClientRect();
|
|
134
|
+
const elementRect = itemElement.getBoundingClientRect();
|
|
135
|
+
parentElement.scrollTop = elementRect.top - parentRect.height / 2;
|
|
136
|
+
}
|
|
137
|
+
parentElement = null;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
parentElement = parentElement.parentNode || null;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
ngAfterContentInit() {
|
|
148
|
+
if (!this.activateByRoute()) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
this.findActiveItemByRoute();
|
|
152
|
+
this.router
|
|
153
|
+
.events
|
|
154
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
155
|
+
.subscribe((event) => {
|
|
156
|
+
if (event instanceof NavigationEnd) {
|
|
157
|
+
this.findActiveItemByRoute();
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
ngOnChanges(changes) {
|
|
162
|
+
if (changes['activeKey']) {
|
|
163
|
+
this.store.setActiveKey(changes['activeKey'].currentValue);
|
|
164
|
+
}
|
|
165
|
+
if (changes['appearance']) {
|
|
166
|
+
this._renderer.setAttribute(this._elementRef.nativeElement, 'data-appearance', changes['appearance'].currentValue);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
_hasScroll(element) {
|
|
170
|
+
if (!element.getBoundingClientRect) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
return Math.ceil(element.scrollHeight) > Math.ceil(element.getBoundingClientRect().height);
|
|
174
|
+
}
|
|
175
|
+
_isScrolledIntoView(element, parent) {
|
|
176
|
+
const elementRect = element.getBoundingClientRect();
|
|
177
|
+
const parentRect = parent.getBoundingClientRect();
|
|
178
|
+
return (elementRect.top >= 0) && (elementRect.bottom <= parentRect.height);
|
|
179
|
+
}
|
|
180
|
+
findActiveItemByRoute() {
|
|
181
|
+
const activeItem = this._items().find((item) => {
|
|
182
|
+
const element = item._hostElement.nativeElement;
|
|
183
|
+
if (element.tagName === 'A') {
|
|
184
|
+
const href = element.getAttribute('href');
|
|
185
|
+
if (href) {
|
|
186
|
+
if (href === this.location.path()) {
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
189
|
+
return href !== '/' && this.location.path().includes(href);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return null;
|
|
193
|
+
});
|
|
194
|
+
if (activeItem) {
|
|
195
|
+
this.store.setActiveKey(activeItem.key());
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
199
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.10", type: NavigationComponent, isStandalone: true, selector: "emr-navigation", inputs: { activeKey: { classPropertyName: "activeKey", publicName: "activeKey", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, activateByRoute: { classPropertyName: "activateByRoute", publicName: "activateByRoute", isSignal: true, isRequired: false, transformFunction: null }, autoScrollToActiveItem: { classPropertyName: "autoScrollToActiveItem", publicName: "autoScrollToActiveItem", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClicked: "itemClicked" }, host: { classAttribute: "emr-navigation" }, providers: [
|
|
200
|
+
NavigationStore,
|
|
201
|
+
{
|
|
202
|
+
provide: NAVIGATION,
|
|
203
|
+
useExisting: forwardRef(() => NavigationComponent),
|
|
204
|
+
}
|
|
205
|
+
], queries: [{ propertyName: "_items", predicate: NavigationItemComponent, descendants: true, isSignal: true }], exportAs: ["emrNavigation"], usesOnChanges: true, ngImport: i0, template: "<ng-content/>\r\n", styles: [":host{--emr-navigation-bg: inherit;--emr-navigation-items-gap: calc(var(--spacing, .25rem) * .5);--emr-navigation-item-width: 100%;--emr-navigation-item-bg: transparent;--emr-navigation-item-height: calc(var(--spacing, .25rem) * 12);--emr-navigation-item-padding: 0 calc(var(--spacing, .25rem) * 4);--emr-navigation-item-font-size: .875rem;--emr-navigation-item-border-radius: calc(infinity * 1px);--emr-navigation-item-border-width: 1px;--emr-navigation-item-border-color: transparent;--emr-navigation-item-font-weight: 500;--emr-navigation-item-color: var(--color-secondary);--emr-navigation-item-hover-bg: var(--color-neutral-300);--emr-navigation-item-active-bg: var(--color-secondary-container);--emr-navigation-item-hover-color: var(--color-on-secondary-fixed);--emr-navigation-item-active-color: var(--color-on-secondary-fixed);--emr-navigation-item-icon-font-size: 1.5rem;--emr-navigation-item-icon-color: var(--color-secondary-700);--emr-navigation-item-icon-width: 27px;--emr-navigation-item-hover-icon-color: var(--color-secondary-800);--emr-navigation-item-active-icon-color: var(--color-secondary-950);--emr-navigation-item-icon-size: calc(var(--spacing, .25rem) * 6);--emr-navigation-item-gap: calc(var(--spacing, .25rem) * 2.5);--emr-navigation-item-has-icon-padding-start: calc(var(--spacing, .25rem) * 2.5);--emr-navigation-heading-color: var(--color-neutral-900);--emr-navigation-heading-font-size: var(--text-2xs);--emr-navigation-heading-font-weight: 700;--emr-navigation-heading-padding: 0 calc(var(--spacing, .25rem) * 4);--emr-navigation-heading-margin-bottom: calc(var(--spacing, .25rem) * 2);--emr-navigation-heading-after-margin: calc(var(--spacing, .25rem) * 8);--emr-navigation-heading-text-transform: uppercase;--emr-navigation-divider-height: 1px;--emr-navigation-divider-bg: var(--color-border);--emr-navigation-divider-margin: calc(var(--spacing, .25rem) * 6) 0;--emr-navigation-group-toggle-has-icon-padding-end: calc(var(--spacing, .25rem) * 2);--emr-navigation-group-toggle-icon-color: var(--color-neutral-400);--emr-navigation-group-toggle-icon-position-end: calc(var(--spacing, .25rem) * 3);--emr-navigation-group-toggle-icon-size: calc(var(--spacing, .25rem) * 4);--emr-navigation-group-menu-padding-start: 0;--emr-navigation-group-toggle-bg: transparent;--emr-navigation-group-toggle-active-bg: var(--color-neutral-300);--emr-navigation-group-toggle-active-color: var(--emr-navigation-item-active-color);--emr-navigation-nested-item-bg: transparent;--emr-navigation-nested-item-height: calc(var(--spacing, .25rem) * 10);--emr-navigation-nested-item-padding: 0 calc(var(--spacing, .25rem) * 4);--emr-navigation-nested-item-margin: 0 0 0 52px;--emr-navigation-nested-item-border-radius: 0;--emr-navigation-nested-item-color: var(--color-secondary-600);--emr-navigation-nested-item-hover-bg: var(--color-neutral-200);--emr-navigation-nested-item-active-bg: var(--color-secondary-fixed);--emr-navigation-nested-item-hover-color: var(--color-on-secondary-fixed);--emr-navigation-nested-item-active-color: var(--color-on-secondary-fixed);--emr-navigation-nested-item-indicator-width: calc(var(--spacing, .25rem) * 3.5);--emr-navigation-nested-item-indicator-height: calc(var(--spacing, .25rem) * .5);--emr-navigation-nested-item-indicator-bg: var(--color-neutral-500);--emr-navigation-nested-item-indicator-position-start: calc(calc(var(--spacing, .25rem) * 2.5) * -1);--emr-navigation-group-active-bg: transparent;--emr-navigation-group-border-radius: 0;--emr-navigation-group-tree-lines-color: var(--color-border);--emr-navigation-heading-text-align: start;display:flex;flex-direction:column;gap:var(--emr-navigation-items-gap);background:var(--emr-navigation-bg)}:host ::ng-deep .emr-navigation-group-toggle-icon{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host ::ng-deep>*+.emr-navigation-heading{margin-top:var(--emr-navigation-heading-after-margin)}:host-context(html.dark){--emr-navigation-item-color: var(--color-neutral-300);--emr-navigation-item-icon-color: var(--color-neutral-400);--emr-navigation-item-hover-bg: var(--color-neutral-700);--emr-navigation-item-active-bg: var(--color-primary-300);--emr-navigation-item-hover-color: var(--color-neutral-100);--emr-navigation-item-hover-icon-color: var(--color-neutral-100);--emr-navigation-item-active-color: var(--color-neutral-950);--emr-navigation-item-active-icon-color: var(--color-neutral-950);--emr-navigation-heading-color: var(--color-neutral-200);--emr-navigation-nested-item-color: var(--color-neutral-300);--emr-navigation-nested-item-hover-bg: var(--color-neutral-700);--emr-navigation-nested-item-hover-color: var(--color-neutral-100);--emr-navigation-group-toggle-active-bg: var(--color-neutral-800);--emr-navigation-group-toggle-active-color: var(--color-neutral-100);--emr-navigation-group-toggle-hover-bg: var(--color-neutral-800)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
206
|
+
}
|
|
207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationComponent, decorators: [{
|
|
208
|
+
type: Component,
|
|
209
|
+
args: [{ selector: 'emr-navigation', exportAs: 'emrNavigation', providers: [
|
|
210
|
+
NavigationStore,
|
|
211
|
+
{
|
|
212
|
+
provide: NAVIGATION,
|
|
213
|
+
useExisting: forwardRef(() => NavigationComponent),
|
|
214
|
+
}
|
|
215
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
216
|
+
'class': 'emr-navigation'
|
|
217
|
+
}, template: "<ng-content/>\r\n", styles: [":host{--emr-navigation-bg: inherit;--emr-navigation-items-gap: calc(var(--spacing, .25rem) * .5);--emr-navigation-item-width: 100%;--emr-navigation-item-bg: transparent;--emr-navigation-item-height: calc(var(--spacing, .25rem) * 12);--emr-navigation-item-padding: 0 calc(var(--spacing, .25rem) * 4);--emr-navigation-item-font-size: .875rem;--emr-navigation-item-border-radius: calc(infinity * 1px);--emr-navigation-item-border-width: 1px;--emr-navigation-item-border-color: transparent;--emr-navigation-item-font-weight: 500;--emr-navigation-item-color: var(--color-secondary);--emr-navigation-item-hover-bg: var(--color-neutral-300);--emr-navigation-item-active-bg: var(--color-secondary-container);--emr-navigation-item-hover-color: var(--color-on-secondary-fixed);--emr-navigation-item-active-color: var(--color-on-secondary-fixed);--emr-navigation-item-icon-font-size: 1.5rem;--emr-navigation-item-icon-color: var(--color-secondary-700);--emr-navigation-item-icon-width: 27px;--emr-navigation-item-hover-icon-color: var(--color-secondary-800);--emr-navigation-item-active-icon-color: var(--color-secondary-950);--emr-navigation-item-icon-size: calc(var(--spacing, .25rem) * 6);--emr-navigation-item-gap: calc(var(--spacing, .25rem) * 2.5);--emr-navigation-item-has-icon-padding-start: calc(var(--spacing, .25rem) * 2.5);--emr-navigation-heading-color: var(--color-neutral-900);--emr-navigation-heading-font-size: var(--text-2xs);--emr-navigation-heading-font-weight: 700;--emr-navigation-heading-padding: 0 calc(var(--spacing, .25rem) * 4);--emr-navigation-heading-margin-bottom: calc(var(--spacing, .25rem) * 2);--emr-navigation-heading-after-margin: calc(var(--spacing, .25rem) * 8);--emr-navigation-heading-text-transform: uppercase;--emr-navigation-divider-height: 1px;--emr-navigation-divider-bg: var(--color-border);--emr-navigation-divider-margin: calc(var(--spacing, .25rem) * 6) 0;--emr-navigation-group-toggle-has-icon-padding-end: calc(var(--spacing, .25rem) * 2);--emr-navigation-group-toggle-icon-color: var(--color-neutral-400);--emr-navigation-group-toggle-icon-position-end: calc(var(--spacing, .25rem) * 3);--emr-navigation-group-toggle-icon-size: calc(var(--spacing, .25rem) * 4);--emr-navigation-group-menu-padding-start: 0;--emr-navigation-group-toggle-bg: transparent;--emr-navigation-group-toggle-active-bg: var(--color-neutral-300);--emr-navigation-group-toggle-active-color: var(--emr-navigation-item-active-color);--emr-navigation-nested-item-bg: transparent;--emr-navigation-nested-item-height: calc(var(--spacing, .25rem) * 10);--emr-navigation-nested-item-padding: 0 calc(var(--spacing, .25rem) * 4);--emr-navigation-nested-item-margin: 0 0 0 52px;--emr-navigation-nested-item-border-radius: 0;--emr-navigation-nested-item-color: var(--color-secondary-600);--emr-navigation-nested-item-hover-bg: var(--color-neutral-200);--emr-navigation-nested-item-active-bg: var(--color-secondary-fixed);--emr-navigation-nested-item-hover-color: var(--color-on-secondary-fixed);--emr-navigation-nested-item-active-color: var(--color-on-secondary-fixed);--emr-navigation-nested-item-indicator-width: calc(var(--spacing, .25rem) * 3.5);--emr-navigation-nested-item-indicator-height: calc(var(--spacing, .25rem) * .5);--emr-navigation-nested-item-indicator-bg: var(--color-neutral-500);--emr-navigation-nested-item-indicator-position-start: calc(calc(var(--spacing, .25rem) * 2.5) * -1);--emr-navigation-group-active-bg: transparent;--emr-navigation-group-border-radius: 0;--emr-navigation-group-tree-lines-color: var(--color-border);--emr-navigation-heading-text-align: start;display:flex;flex-direction:column;gap:var(--emr-navigation-items-gap);background:var(--emr-navigation-bg)}:host ::ng-deep .emr-navigation-group-toggle-icon{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:host ::ng-deep>*+.emr-navigation-heading{margin-top:var(--emr-navigation-heading-after-margin)}:host-context(html.dark){--emr-navigation-item-color: var(--color-neutral-300);--emr-navigation-item-icon-color: var(--color-neutral-400);--emr-navigation-item-hover-bg: var(--color-neutral-700);--emr-navigation-item-active-bg: var(--color-primary-300);--emr-navigation-item-hover-color: var(--color-neutral-100);--emr-navigation-item-hover-icon-color: var(--color-neutral-100);--emr-navigation-item-active-color: var(--color-neutral-950);--emr-navigation-item-active-icon-color: var(--color-neutral-950);--emr-navigation-heading-color: var(--color-neutral-200);--emr-navigation-nested-item-color: var(--color-neutral-300);--emr-navigation-nested-item-hover-bg: var(--color-neutral-700);--emr-navigation-nested-item-hover-color: var(--color-neutral-100);--emr-navigation-group-toggle-active-bg: var(--color-neutral-800);--emr-navigation-group-toggle-active-color: var(--color-neutral-100);--emr-navigation-group-toggle-hover-bg: var(--color-neutral-800)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
218
|
+
}], ctorParameters: () => [], propDecorators: { _items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NavigationItemComponent), { ...{ descendants: true }, isSignal: true }] }], activeKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeKey", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], activateByRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "activateByRoute", required: false }] }], autoScrollToActiveItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoScrollToActiveItem", required: false }] }], itemClicked: [{ type: i0.Output, args: ["itemClicked"] }] } });
|
|
219
|
+
|
|
220
|
+
class NavigationHeadingComponent {
|
|
221
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationHeadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
222
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: NavigationHeadingComponent, isStandalone: true, selector: "emr-navigation-heading", host: { classAttribute: "emr-navigation-heading" }, exportAs: ["emrNavigationHeading"], ngImport: i0, template: "<ng-content/>\r\n", styles: [":host{display:block;text-transform:var(--emr-navigation-heading-text-transform);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--emr-navigation-heading-color);font-size:var(--emr-navigation-heading-font-size);font-weight:var(--emr-navigation-heading-font-weight);padding:var(--emr-navigation-heading-padding);margin-bottom:var(--emr-navigation-heading-margin-bottom);text-align:var(--emr-navigation-heading-text-align);height:calc(var(--spacing) * 6);align-items:center}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
223
|
+
}
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationHeadingComponent, decorators: [{
|
|
225
|
+
type: Component,
|
|
226
|
+
args: [{ selector: 'emr-navigation-heading', exportAs: 'emrNavigationHeading', host: {
|
|
227
|
+
'class': 'emr-navigation-heading'
|
|
228
|
+
}, template: "<ng-content/>\r\n", styles: [":host{display:block;text-transform:var(--emr-navigation-heading-text-transform);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--emr-navigation-heading-color);font-size:var(--emr-navigation-heading-font-size);font-weight:var(--emr-navigation-heading-font-weight);padding:var(--emr-navigation-heading-padding);margin-bottom:var(--emr-navigation-heading-margin-bottom);text-align:var(--emr-navigation-heading-text-align);height:calc(var(--spacing) * 6);align-items:center}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
229
|
+
}] });
|
|
230
|
+
|
|
231
|
+
class NavigationDividerComponent {
|
|
232
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
233
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: NavigationDividerComponent, isStandalone: true, selector: "emr-navigation-divider", host: { classAttribute: "emr-navigation-divider" }, exportAs: ["emrNavigationDivider"], ngImport: i0, template: '', isInline: true, styles: [":host{display:block;height:var(--emr-navigation-divider-height);background-color:var(--emr-navigation-divider-bg);margin:var(--emr-navigation-divider-margin)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
234
|
+
}
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationDividerComponent, decorators: [{
|
|
236
|
+
type: Component,
|
|
237
|
+
args: [{ selector: 'emr-navigation-divider', exportAs: 'emrNavigationDivider', template: '', host: {
|
|
238
|
+
'class': 'emr-navigation-divider'
|
|
239
|
+
}, styles: [":host{display:block;height:var(--emr-navigation-divider-height);background-color:var(--emr-navigation-divider-bg);margin:var(--emr-navigation-divider-margin)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
240
|
+
}] });
|
|
241
|
+
|
|
242
|
+
let nextId = 0;
|
|
243
|
+
class NavigationGroupComponent {
|
|
244
|
+
key = signal(`emr-navigation-group-${nextId++}`, ...(ngDevMode ? [{ debugName: "key" }] : []));
|
|
245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
246
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: NavigationGroupComponent, isStandalone: true, selector: "emr-navigation-group", host: { classAttribute: "emr-navigation-group" }, providers: [
|
|
247
|
+
{
|
|
248
|
+
provide: NAVIGATION_GROUP,
|
|
249
|
+
useExisting: forwardRef(() => NavigationGroupComponent)
|
|
250
|
+
}
|
|
251
|
+
], exportAs: ["emrNavigationGroup"], ngImport: i0, template: "<ng-content select=\"emr-navigation-group-toggle\"/>\r\n<ng-content select=\"emr-navigation-group-menu\"/>\r\n", styles: [":host{display:block;border-radius:var(--emr-navigation-group-border-radius)}:host:has(.emr-navigation-group-toggle.is-active){background:var(--emr-navigation-group-active-bg)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
|
|
252
|
+
}
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationGroupComponent, decorators: [{
|
|
254
|
+
type: Component,
|
|
255
|
+
args: [{ selector: 'emr-navigation-group', exportAs: 'emrNavigationGroup', providers: [
|
|
256
|
+
{
|
|
257
|
+
provide: NAVIGATION_GROUP,
|
|
258
|
+
useExisting: forwardRef(() => NavigationGroupComponent)
|
|
259
|
+
}
|
|
260
|
+
], host: {
|
|
261
|
+
'class': 'emr-navigation-group'
|
|
262
|
+
}, template: "<ng-content select=\"emr-navigation-group-toggle\"/>\r\n<ng-content select=\"emr-navigation-group-menu\"/>\r\n", styles: [":host{display:block;border-radius:var(--emr-navigation-group-border-radius)}:host:has(.emr-navigation-group-toggle.is-active){background:var(--emr-navigation-group-active-bg)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
263
|
+
}] });
|
|
264
|
+
|
|
265
|
+
class NavigationGroupMenuComponent {
|
|
266
|
+
store = inject(NavigationStore);
|
|
267
|
+
_group = inject(NAVIGATION_GROUP);
|
|
268
|
+
active = computed(() => {
|
|
269
|
+
return this.store.activeGroupKey() === this._group.key();
|
|
270
|
+
}, ...(ngDevMode ? [{ debugName: "active" }] : []));
|
|
271
|
+
_items = contentChildren(NavigationItemComponent, ...(ngDevMode ? [{ debugName: "_items", descendants: true }] : [{ descendants: true }]));
|
|
272
|
+
hasActiveItemInGroup = computed(() => {
|
|
273
|
+
return this._items().filter(itemComponent => this.store.activeKey() === itemComponent.key()).length > 0;
|
|
274
|
+
}, ...(ngDevMode ? [{ debugName: "hasActiveItemInGroup" }] : []));
|
|
275
|
+
ngAfterContentInit() {
|
|
276
|
+
this._detectGroupIsActive();
|
|
277
|
+
}
|
|
278
|
+
_detectGroupIsActive() {
|
|
279
|
+
if (this.hasActiveItemInGroup() && !this.active()) {
|
|
280
|
+
this.store.setActiveGroupKey(this._group.key());
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
if (this.store.activeGroupKey() === this._group.key()) {
|
|
284
|
+
this.store.setActiveGroupKey(null);
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
this.store.setActiveGroupKey(this._group.key());
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationGroupMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
292
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.10", type: NavigationGroupMenuComponent, isStandalone: true, selector: "emr-navigation-group-menu", host: { properties: { "class.is-active": "active()" }, classAttribute: "emr-navigation-group-menu" }, queries: [{ propertyName: "_items", predicate: NavigationItemComponent, descendants: true, isSignal: true }], exportAs: ["emrNavigationGroupMenu"], ngImport: i0, template: "<div class=\"inner\">\r\n <ng-content/>\r\n</div>\r\n", styles: [":host{position:relative;padding-inline-start:var(--emr-navigation-group-menu-padding-start);grid-template-rows:0fr;display:grid}:host .inner{display:flex;flex-direction:column;gap:var(--emr-navigation-items-gap);overflow:hidden}:host(.is-active){grid-template-rows:1fr;margin-top:var(--emr-navigation-item-space-y)}:host(.is-active) .inner{padding:calc(var(--emr-navigation-items-gap) * 2) 0 var(--emr-navigation-items-gap) 0}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
293
|
+
}
|
|
294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationGroupMenuComponent, decorators: [{
|
|
295
|
+
type: Component,
|
|
296
|
+
args: [{ selector: 'emr-navigation-group-menu', exportAs: 'emrNavigationGroupMenu', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
297
|
+
'class': 'emr-navigation-group-menu',
|
|
298
|
+
'[class.is-active]': 'active()'
|
|
299
|
+
}, template: "<div class=\"inner\">\r\n <ng-content/>\r\n</div>\r\n", styles: [":host{position:relative;padding-inline-start:var(--emr-navigation-group-menu-padding-start);grid-template-rows:0fr;display:grid}:host .inner{display:flex;flex-direction:column;gap:var(--emr-navigation-items-gap);overflow:hidden}:host(.is-active){grid-template-rows:1fr;margin-top:var(--emr-navigation-item-space-y)}:host(.is-active) .inner{padding:calc(var(--emr-navigation-items-gap) * 2) 0 var(--emr-navigation-items-gap) 0}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
300
|
+
}], propDecorators: { _items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NavigationItemComponent), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
301
|
+
|
|
302
|
+
class NavigationGroupToggleIconDirective {
|
|
303
|
+
templateRef = inject(TemplateRef, { optional: true });
|
|
304
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationGroupToggleIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
305
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: NavigationGroupToggleIconDirective, isStandalone: true, selector: "[emrNavigationGroupToggleIcon]", host: { classAttribute: "emr-navigation-group-toggle-icon" }, exportAs: ["emrNavigationGroupToggleIcon"], ngImport: i0 });
|
|
306
|
+
}
|
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationGroupToggleIconDirective, decorators: [{
|
|
308
|
+
type: Directive,
|
|
309
|
+
args: [{
|
|
310
|
+
selector: '[emrNavigationGroupToggleIcon]',
|
|
311
|
+
exportAs: 'emrNavigationGroupToggleIcon',
|
|
312
|
+
host: {
|
|
313
|
+
'class': 'emr-navigation-group-toggle-icon'
|
|
314
|
+
}
|
|
315
|
+
}]
|
|
316
|
+
}] });
|
|
317
|
+
|
|
318
|
+
class NavigationGroupToggleComponent {
|
|
319
|
+
store = inject(NavigationStore);
|
|
320
|
+
_group = inject(NAVIGATION_GROUP);
|
|
321
|
+
iconRef = contentChild(NavigationGroupToggleIconDirective, ...(ngDevMode ? [{ debugName: "iconRef" }] : []));
|
|
322
|
+
active = computed(() => {
|
|
323
|
+
return this.store.activeGroupKey() === this._group.key();
|
|
324
|
+
}, ...(ngDevMode ? [{ debugName: "active" }] : []));
|
|
325
|
+
badgeTextOnly = input(false, ...(ngDevMode ? [{ debugName: "badgeTextOnly", transform: booleanAttribute }] : [{
|
|
326
|
+
transform: booleanAttribute
|
|
327
|
+
}]));
|
|
328
|
+
toggle(event) {
|
|
329
|
+
event.preventDefault();
|
|
330
|
+
event.stopPropagation();
|
|
331
|
+
if (this.active()) {
|
|
332
|
+
this.store.setActiveGroupKey(null);
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
this.store.setActiveGroupKey(this._group.key());
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
get iconRefTemplate() {
|
|
339
|
+
return this.iconRef()?.templateRef;
|
|
340
|
+
}
|
|
341
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationGroupToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
342
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.10", type: NavigationGroupToggleComponent, isStandalone: true, selector: "emr-navigation-group-toggle", inputs: { badgeTextOnly: { classPropertyName: "badgeTextOnly", publicName: "badgeTextOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "toggle($event)" }, properties: { "class.is-active": "active()", "class.is-badge-text-only": "badgeTextOnly()" }, classAttribute: "emr-navigation-group-toggle" }, queries: [{ propertyName: "iconRef", first: true, predicate: NavigationGroupToggleIconDirective, descendants: true, isSignal: true }], exportAs: ["emrNavigationGroupToggle"], hostDirectives: [{ directive: i1.MatRipple }], ngImport: i0, template: "<div class=\"icon\"><ng-content select=\"[emrNavigationItemIcon]\"/></div>\r\n<span class=\"text grow\"><ng-content/></span>\r\n<div class=\"badge\">\r\n <ng-content select=\"[emrNavigationItemBadge]\"/>\r\n</div>\r\n<div class=\"toggle\">\r\n <ng-content select=\"[emrNavigationGroupToggleIcon]\"/>\r\n @if (iconRef()) {\r\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\r\n }\r\n</div>\r\n", styles: [":host{display:flex;align-items:center;min-width:0;white-space:nowrap;position:relative;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--emr-navigation-group-toggle-bg);min-height:var(--emr-navigation-item-height);padding:var(--emr-navigation-item-padding);font-size:var(--emr-navigation-item-font-size);border-radius:var(--emr-navigation-item-border-radius);font-weight:var(--emr-navigation-item-font-weight);color:var(--emr-navigation-item-color);gap:var(--emr-navigation-item-gap);width:var(--emr-navigation-item-width)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:calc(var(--spacing, .25rem) * 5);min-width:calc(var(--spacing, .25rem) * 5);align-items:center;justify-content:center;font-size:var(--text-xs);padding:0 calc(var(--spacing, .25rem) * 1.5);font-weight:700}:host .badge:empty{display:none}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--text-2xs);background:var(--color-surface-tint);color:var(--color-on-primary)}:host .icon{display:inline-flex;align-items:center;justify-content:center;width:var(--emr-navigation-item-icon-width);color:var(--emr-navigation-item-icon-color);flex:none}:host .icon:empty{display:none}:host .toggle{display:inline-flex;align-items:center;justify-content:center;transition:var(--emr-transition-transform);margin-inline-end:2px}:host .toggle:empty{display:none}:host:hover{background-color:var(--emr-navigation-item-hover-bg);color:var(--emr-navigation-item-hover-color);transition:background-color .2s}:host.is-active,:host.is-active:hover{background-color:var(--emr-navigation-group-toggle-active-bg);color:var(--emr-navigation-group-toggle-active-color)}:host:not(.is-active):hover .icon{color:var(--emr-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--emr-navigation-group-toggle-active-color)}:host.is-active .toggle{transform:rotate(-180deg)}:host:has(.toggle:not(:empty)){padding-inline-end:var(--emr-navigation-group-toggle-has-icon-padding-end)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
343
|
+
}
|
|
344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationGroupToggleComponent, decorators: [{
|
|
345
|
+
type: Component,
|
|
346
|
+
args: [{ selector: 'emr-navigation-group-toggle', exportAs: 'emrNavigationGroupToggle', imports: [
|
|
347
|
+
NgTemplateOutlet
|
|
348
|
+
], hostDirectives: [
|
|
349
|
+
MatRipple
|
|
350
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
351
|
+
'class': 'emr-navigation-group-toggle',
|
|
352
|
+
'[class.is-active]': 'active()',
|
|
353
|
+
'[class.is-badge-text-only]': 'badgeTextOnly()',
|
|
354
|
+
'(click)': 'toggle($event)'
|
|
355
|
+
}, template: "<div class=\"icon\"><ng-content select=\"[emrNavigationItemIcon]\"/></div>\r\n<span class=\"text grow\"><ng-content/></span>\r\n<div class=\"badge\">\r\n <ng-content select=\"[emrNavigationItemBadge]\"/>\r\n</div>\r\n<div class=\"toggle\">\r\n <ng-content select=\"[emrNavigationGroupToggleIcon]\"/>\r\n @if (iconRef()) {\r\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\r\n }\r\n</div>\r\n", styles: [":host{display:flex;align-items:center;min-width:0;white-space:nowrap;position:relative;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(--emr-navigation-group-toggle-bg);min-height:var(--emr-navigation-item-height);padding:var(--emr-navigation-item-padding);font-size:var(--emr-navigation-item-font-size);border-radius:var(--emr-navigation-item-border-radius);font-weight:var(--emr-navigation-item-font-weight);color:var(--emr-navigation-item-color);gap:var(--emr-navigation-item-gap);width:var(--emr-navigation-item-width)}:host .text{overflow:hidden;text-overflow:ellipsis}:host .badge{display:inline-flex;flex:none;border-radius:calc(infinity * 1px);height:calc(var(--spacing, .25rem) * 5);min-width:calc(var(--spacing, .25rem) * 5);align-items:center;justify-content:center;font-size:var(--text-xs);padding:0 calc(var(--spacing, .25rem) * 1.5);font-weight:700}:host .badge:empty{display:none}:host:not(.is-badge-text-only) .badge{font-weight:600;font-size:var(--text-2xs);background:var(--color-surface-tint);color:var(--color-on-primary)}:host .icon{display:inline-flex;align-items:center;justify-content:center;width:var(--emr-navigation-item-icon-width);color:var(--emr-navigation-item-icon-color);flex:none}:host .icon:empty{display:none}:host .toggle{display:inline-flex;align-items:center;justify-content:center;transition:var(--emr-transition-transform);margin-inline-end:2px}:host .toggle:empty{display:none}:host:hover{background-color:var(--emr-navigation-item-hover-bg);color:var(--emr-navigation-item-hover-color);transition:background-color .2s}:host.is-active,:host.is-active:hover{background-color:var(--emr-navigation-group-toggle-active-bg);color:var(--emr-navigation-group-toggle-active-color)}:host:not(.is-active):hover .icon{color:var(--emr-navigation-item-hover-icon-color)}:host.is-active .icon{color:var(--emr-navigation-group-toggle-active-color)}:host.is-active .toggle{transform:rotate(-180deg)}:host:has(.toggle:not(:empty)){padding-inline-end:var(--emr-navigation-group-toggle-has-icon-padding-end)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
|
|
356
|
+
}], propDecorators: { iconRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NavigationGroupToggleIconDirective), { isSignal: true }] }], badgeTextOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeTextOnly", required: false }] }] } });
|
|
357
|
+
|
|
358
|
+
class NavigationItemBadgeDirective {
|
|
359
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationItemBadgeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
360
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: NavigationItemBadgeDirective, isStandalone: true, selector: "[emrNavigationItemBadge]", host: { classAttribute: "emr-navigation-item-badge" }, exportAs: ["emrNavigationItemBadge"], ngImport: i0 });
|
|
361
|
+
}
|
|
362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: NavigationItemBadgeDirective, decorators: [{
|
|
363
|
+
type: Directive,
|
|
364
|
+
args: [{
|
|
365
|
+
selector: '[emrNavigationItemBadge]',
|
|
366
|
+
exportAs: 'emrNavigationItemBadge',
|
|
367
|
+
standalone: true,
|
|
368
|
+
host: {
|
|
369
|
+
'class': 'emr-navigation-item-badge',
|
|
370
|
+
}
|
|
371
|
+
}]
|
|
372
|
+
}] });
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Generated bundle index. Do not edit.
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
export { NAVIGATION, NAVIGATION_GROUP, NavigationComponent, NavigationDividerComponent, NavigationGroupComponent, NavigationGroupMenuComponent, NavigationGroupToggleComponent, NavigationGroupToggleIconDirective, NavigationHeadingComponent, NavigationItemBadgeDirective, NavigationItemComponent, NavigationItemIconDirective };
|
|
379
|
+
//# sourceMappingURL=elementar-rt-components-navigation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementar-rt-components-navigation.mjs","sources":["../../../projects/components/navigation/src/navigation-item-icon.directive.ts","../../../projects/components/navigation/src/types.ts","../../../projects/components/navigation/src/navigation.store.ts","../../../projects/components/navigation/src/navigation-item/navigation-item.component.ts","../../../projects/components/navigation/src/navigation-item/navigation-item.component.html","../../../projects/components/navigation/src/navigation/navigation.component.ts","../../../projects/components/navigation/src/navigation/navigation.component.html","../../../projects/components/navigation/src/navigation-heading/navigation-heading.component.ts","../../../projects/components/navigation/src/navigation-heading/navigation-heading.component.html","../../../projects/components/navigation/src/navigation-divider/navigation-divider.component.ts","../../../projects/components/navigation/src/navigation-group/navigation-group.component.ts","../../../projects/components/navigation/src/navigation-group/navigation-group.component.html","../../../projects/components/navigation/src/navigation-group-menu/navigation-group-menu.component.ts","../../../projects/components/navigation/src/navigation-group-menu/navigation-group-menu.component.html","../../../projects/components/navigation/src/navigation-group-toggle-icon.directive.ts","../../../projects/components/navigation/src/navigation-group-toggle/navigation-group-toggle.component.ts","../../../projects/components/navigation/src/navigation-group-toggle/navigation-group-toggle.component.html","../../../projects/components/navigation/src/navigation-item-badge.directive.ts","../../../projects/components/navigation/elementar-rt-components-navigation.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNavigationItemIcon]',\r\n exportAs: 'emrNavigationItemIcon',\r\n host: {\r\n 'class': 'emr-navigation-item-icon'\r\n }\r\n})\r\nexport class NavigationItemIconDirective {\r\n public readonly templateRef = inject(TemplateRef, { optional: true });\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nexport interface NavigationItem {\r\n key: any;\r\n type: 'heading' | 'group' | 'link' | 'item' | 'divider' | string;\r\n name?: string;\r\n icon?: string;\r\n children?: NavigationItem[];\r\n link?: string;\r\n [prop: string]: any;\r\n badge?: string | number;\r\n}\r\n\r\nexport const NAVIGATION = new InjectionToken('NAVIGATION');\r\nexport const NAVIGATION_GROUP = new InjectionToken('NAVIGATION_GROUP');\r\n","import { patchState, signalStore, withMethods, withState } from '@ngrx/signals';\r\n\r\nexport interface NavigationState {\r\n activeKey: any;\r\n activeGroupKey: any;\r\n}\r\n\r\nconst initialState: NavigationState = {\r\n activeKey: null,\r\n activeGroupKey: null\r\n};\r\n\r\nexport const NavigationStore = signalStore(\r\n withState(initialState),\r\n withMethods((store) => ({\r\n setActiveKey(activeKey: any) {\r\n patchState(store, {\r\n activeKey\r\n });\r\n },\r\n setActiveGroupKey(activeGroupKey: any) {\r\n patchState(store, {\r\n activeGroupKey\r\n });\r\n },\r\n }))\r\n);\r\n","import {\r\n booleanAttribute,\r\n Component, ElementRef,\r\n inject,\r\n contentChild, TemplateRef, input, ChangeDetectionStrategy, computed\r\n} from '@angular/core';\r\nimport { NavigationItemIconDirective } from '../navigation-item-icon.directive';\r\nimport { MatRipple } from '@angular/material/core';\r\nimport { NgTemplateOutlet } from '@angular/common';\r\nimport { NAVIGATION, NAVIGATION_GROUP } from '../types';\r\nimport { NavigationComponent } from '../navigation/navigation.component';\r\nimport { NavigationStore } from '../navigation.store';\r\nimport { NavigationGroupComponent } from '../navigation-group/navigation-group.component';\r\n\r\nlet nextKey = 0;\r\n\r\n@Component({\r\n selector: 'emr-navigation-item,[emr-navigation-item]',\r\n exportAs: 'emrNavigationItem',\r\n imports: [\r\n MatRipple,\r\n NgTemplateOutlet\r\n ],\r\n templateUrl: './navigation-item.component.html',\r\n styleUrl: './navigation-item.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n 'class': 'emr-navigation-item',\r\n '[class.is-active]': 'forceActive() || active()',\r\n '[class.is-badge-text-only]': 'badgeTextOnly()',\r\n '(click)': 'click($event)'\r\n }\r\n})\r\nexport class NavigationItemComponent {\r\n private store= inject(NavigationStore);\r\n private _navigation = inject<NavigationComponent>(NAVIGATION);\r\n private _elementRef = inject(ElementRef);\r\n private parentGroup = inject<NavigationGroupComponent>(NAVIGATION_GROUP, { optional: true });\r\n\r\n protected readonly iconRef = contentChild(NavigationItemIconDirective);\r\n readonly active = computed(() => {\r\n return this.store.activeKey() === this.key();\r\n });\r\n\r\n get api() {\r\n return {\r\n isActive: () => this.active()\r\n }\r\n }\r\n\r\n readonly key = input<any>(`emr-navigation-item-${nextKey++}`);\r\n readonly forceActive = input(false, {\r\n transform: booleanAttribute\r\n });\r\n readonly badgeTextOnly = input(false, {\r\n transform: booleanAttribute\r\n });\r\n\r\n protected click(event: MouseEvent) {\r\n if (!this.key()) {\r\n return;\r\n }\r\n\r\n this._navigation.itemClicked.emit(this.key());\r\n this.store.setActiveKey(this.key());\r\n\r\n if (this.parentGroup) {\r\n this.store.setActiveGroupKey(this.parentGroup.key());\r\n } else {\r\n this.store.setActiveGroupKey(null);\r\n }\r\n }\r\n\r\n get _hostElement(): ElementRef {\r\n return this._elementRef;\r\n }\r\n\r\n protected get iconRefTemplate(): TemplateRef<any> {\r\n return this.iconRef()?.templateRef as TemplateRef<any>;\r\n }\r\n}\r\n","<div class=\"inner\" matRipple>\r\n <div class=\"icon\">\r\n <ng-content select=\"[emrNavigationItemIcon]\"/>\r\n @if (iconRef()) {\r\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\r\n }\r\n </div>\r\n <span class=\"text grow\"><ng-content/></span>\r\n <div class=\"badge\">\r\n <ng-content select=\"[emrNavigationItemBadge]\"/>\r\n </div>\r\n</div>\r\n","import {\r\n afterNextRender,\r\n Component, ElementRef,\r\n inject, Renderer2,\r\n contentChildren,\r\n SimpleChanges,\r\n input,\r\n OnChanges, output, forwardRef, AfterContentInit, booleanAttribute, ChangeDetectorRef, ChangeDetectionStrategy,\r\n DestroyRef\r\n} from '@angular/core';\r\nimport { NavigationItemComponent } from '../navigation-item/navigation-item.component';\r\nimport { NAVIGATION, NavigationItem } from '../types';\r\nimport { Location } from '@angular/common';\r\nimport { NavigationStore } from '../navigation.store';\r\nimport { NavigationEnd, Router } from '@angular/router';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\n\r\n@Component({\r\n selector: 'emr-navigation',\r\n exportAs: 'emrNavigation',\r\n templateUrl: './navigation.component.html',\r\n styleUrl: './navigation.component.scss',\r\n providers: [\r\n NavigationStore,\r\n {\r\n provide: NAVIGATION,\r\n useExisting: forwardRef(() => NavigationComponent),\r\n }\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n 'class': 'emr-navigation'\r\n }\r\n})\r\nexport class NavigationComponent implements AfterContentInit, OnChanges {\r\n private store= inject(NavigationStore);\r\n private _elementRef = inject(ElementRef);\r\n private _renderer = inject(Renderer2);\r\n private location = inject(Location);\r\n private router = inject(Router);\r\n private destroyRef = inject(DestroyRef);\r\n\r\n readonly _items = contentChildren(NavigationItemComponent, { descendants: true });\r\n\r\n activeKey = input<any>();\r\n appearance = input();\r\n activateByRoute = input(false, {\r\n transform: booleanAttribute\r\n })\r\n autoScrollToActiveItem = input(false, {\r\n transform: booleanAttribute\r\n });\r\n\r\n readonly itemClicked = output<NavigationItem>();\r\n\r\n constructor() {\r\n // scroll to the active item if it is not visible in the viewport\r\n afterNextRender(() => {\r\n if (!this.autoScrollToActiveItem()) {\r\n return;\r\n }\r\n\r\n this._items().forEach((item: NavigationItemComponent) => {\r\n if (item.active()) {\r\n let parentElement = this._elementRef.nativeElement.parentNode || null;\r\n const itemElement = item._hostElement.nativeElement as HTMLElement;\r\n\r\n while (parentElement !== null) {\r\n if (this._hasScroll(parentElement)) {\r\n if (!this._isScrolledIntoView(itemElement, parentElement)) {\r\n const parentRect = parentElement.getBoundingClientRect();\r\n const elementRect = itemElement.getBoundingClientRect();\r\n parentElement.scrollTop = elementRect.top - parentRect.height / 2;\r\n }\r\n\r\n parentElement = null;\r\n } else {\r\n parentElement = parentElement.parentNode || null;\r\n }\r\n }\r\n }\r\n });\r\n });\r\n }\r\n\r\n ngAfterContentInit() {\r\n if (!this.activateByRoute()) {\r\n return;\r\n }\r\n\r\n this.findActiveItemByRoute();\r\n this.router\r\n .events\r\n .pipe(takeUntilDestroyed(this.destroyRef))\r\n .subscribe((event: any) => {\r\n if (event instanceof NavigationEnd) {\r\n this.findActiveItemByRoute();\r\n }\r\n });\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes['activeKey']) {\r\n this.store.setActiveKey(changes['activeKey'].currentValue);\r\n }\r\n\r\n if (changes['appearance']) {\r\n this._renderer.setAttribute(this._elementRef.nativeElement, 'data-appearance', changes['appearance'].currentValue);\r\n }\r\n }\r\n\r\n private _hasScroll(element: HTMLElement): boolean {\r\n if (!element.getBoundingClientRect) {\r\n return false;\r\n }\r\n\r\n return Math.ceil(element.scrollHeight) > Math.ceil(element.getBoundingClientRect().height);\r\n }\r\n\r\n private _isScrolledIntoView(element: HTMLElement, parent: HTMLElement) {\r\n const elementRect = element.getBoundingClientRect();\r\n const parentRect = parent.getBoundingClientRect();\r\n return (elementRect.top >= 0) && (elementRect.bottom <= parentRect.height);\r\n }\r\n\r\n private findActiveItemByRoute() {\r\n const activeItem = this._items().find((item: NavigationItemComponent) => {\r\n const element = item._hostElement.nativeElement as HTMLElement;\r\n\r\n if (element.tagName === 'A') {\r\n const href = element.getAttribute('href');\r\n\r\n if (href) {\r\n if (href === this.location.path()) {\r\n return true;\r\n }\r\n\r\n return href !== '/' && this.location.path().includes(href);\r\n }\r\n }\r\n\r\n return null;\r\n });\r\n\r\n if (activeItem) {\r\n this.store.setActiveKey(activeItem.key());\r\n }\r\n }\r\n}\r\n","<ng-content/>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-navigation-heading',\r\n exportAs: 'emrNavigationHeading',\r\n templateUrl: './navigation-heading.component.html',\r\n styleUrl: './navigation-heading.component.scss',\r\n host: {\r\n 'class': 'emr-navigation-heading'\r\n }\r\n})\r\nexport class NavigationHeadingComponent {\r\n}\r\n","<ng-content/>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-navigation-divider',\r\n exportAs: 'emrNavigationDivider',\r\n template: '',\r\n styleUrl: './navigation-divider.component.scss',\r\n host: {\r\n 'class': 'emr-navigation-divider'\r\n }\r\n})\r\nexport class NavigationDividerComponent {\r\n}\r\n","import { Component, forwardRef, signal } from '@angular/core';\r\nimport { NAVIGATION_GROUP } from '../types';\r\n\r\nlet nextId = 0;\r\n\r\n@Component({\r\n selector: 'emr-navigation-group',\r\n exportAs: 'emrNavigationGroup',\r\n templateUrl: './navigation-group.component.html',\r\n styleUrl: './navigation-group.component.scss',\r\n providers: [\r\n {\r\n provide: NAVIGATION_GROUP,\r\n useExisting: forwardRef(() => NavigationGroupComponent)\r\n }\r\n ],\r\n host: {\r\n 'class': 'emr-navigation-group'\r\n }\r\n})\r\nexport class NavigationGroupComponent {\r\n readonly key = signal(`emr-navigation-group-${nextId++}`);\r\n}\r\n","<ng-content select=\"emr-navigation-group-toggle\"/>\r\n<ng-content select=\"emr-navigation-group-menu\"/>\r\n","import {\r\n AfterContentInit,\r\n ChangeDetectorRef,\r\n Component,\r\n inject,\r\n contentChildren,\r\n computed,\r\n ChangeDetectionStrategy,\r\n effect\r\n} from '@angular/core';\r\nimport { NavigationItemComponent } from '../navigation-item/navigation-item.component';\r\nimport { NAVIGATION_GROUP } from '../types';\r\nimport { NavigationGroupComponent } from '../navigation-group/navigation-group.component';\r\nimport { NavigationStore } from '../navigation.store';\r\n\r\n@Component({\r\n selector: 'emr-navigation-group-menu',\r\n exportAs: 'emrNavigationGroupMenu',\r\n templateUrl: './navigation-group-menu.component.html',\r\n styleUrl: './navigation-group-menu.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n 'class': 'emr-navigation-group-menu',\r\n '[class.is-active]': 'active()'\r\n }\r\n})\r\nexport class NavigationGroupMenuComponent implements AfterContentInit {\r\n private store= inject(NavigationStore);\r\n private _group = inject<NavigationGroupComponent>(NAVIGATION_GROUP);\r\n\r\n readonly active = computed(() => {\r\n return this.store.activeGroupKey() === this._group.key();\r\n });\r\n readonly _items = contentChildren(\r\n NavigationItemComponent, { descendants: true }\r\n );\r\n readonly hasActiveItemInGroup = computed(() => {\r\n return this._items().filter(\r\n itemComponent => this.store.activeKey() === itemComponent.key()\r\n ).length > 0\r\n });\r\n\r\n ngAfterContentInit() {\r\n this._detectGroupIsActive();\r\n }\r\n\r\n private _detectGroupIsActive() {\r\n if (this.hasActiveItemInGroup() && !this.active()) {\r\n this.store.setActiveGroupKey(this._group.key());\r\n } else {\r\n if (this.store.activeGroupKey() === this._group.key()) {\r\n this.store.setActiveGroupKey(null);\r\n } else {\r\n this.store.setActiveGroupKey(this._group.key());\r\n }\r\n }\r\n }\r\n}\r\n","<div class=\"inner\">\r\n <ng-content/>\r\n</div>\r\n","import { Directive, inject, TemplateRef } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNavigationGroupToggleIcon]',\r\n exportAs: 'emrNavigationGroupToggleIcon',\r\n host: {\r\n 'class': 'emr-navigation-group-toggle-icon'\r\n }\r\n})\r\nexport class NavigationGroupToggleIconDirective {\r\n public readonly templateRef = inject(TemplateRef, { optional: true });\r\n}\r\n","import {\r\n Component,\r\n inject,\r\n contentChild,\r\n TemplateRef,\r\n computed,\r\n ChangeDetectionStrategy,\r\n input,\r\n booleanAttribute\r\n} from '@angular/core';\r\nimport { NavigationGroupToggleIconDirective } from '../navigation-group-toggle-icon.directive';\r\nimport { MatRipple } from '@angular/material/core';\r\nimport { NgTemplateOutlet } from '@angular/common';\r\nimport { NAVIGATION_GROUP } from '../types';\r\nimport { NavigationGroupComponent } from '../navigation-group/navigation-group.component';\r\nimport { NavigationStore } from '../navigation.store';\r\n\r\n@Component({\r\n selector: 'emr-navigation-group-toggle',\r\n exportAs: 'emrNavigationGroupToggle',\r\n imports: [\r\n NgTemplateOutlet\r\n ],\r\n templateUrl: './navigation-group-toggle.component.html',\r\n styleUrl: './navigation-group-toggle.component.scss',\r\n hostDirectives: [\r\n MatRipple\r\n ],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n 'class': 'emr-navigation-group-toggle',\r\n '[class.is-active]': 'active()',\r\n '[class.is-badge-text-only]': 'badgeTextOnly()',\r\n '(click)': 'toggle($event)'\r\n }\r\n})\r\nexport class NavigationGroupToggleComponent {\r\n private store= inject(NavigationStore);\r\n private _group = inject<NavigationGroupComponent>(NAVIGATION_GROUP);\r\n\r\n readonly iconRef = contentChild(NavigationGroupToggleIconDirective);\r\n readonly active = computed(() => {\r\n return this.store.activeGroupKey() === this._group.key();\r\n });\r\n readonly badgeTextOnly = input(false, {\r\n transform: booleanAttribute\r\n });\r\n\r\n protected toggle(event: MouseEvent) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n\r\n if (this.active()) {\r\n this.store.setActiveGroupKey(null);\r\n } else {\r\n this.store.setActiveGroupKey(this._group.key());\r\n }\r\n }\r\n\r\n protected get iconRefTemplate(): TemplateRef<any> {\r\n return this.iconRef()?.templateRef as TemplateRef<any>;\r\n }\r\n}\r\n","<div class=\"icon\"><ng-content select=\"[emrNavigationItemIcon]\"/></div>\r\n<span class=\"text grow\"><ng-content/></span>\r\n<div class=\"badge\">\r\n <ng-content select=\"[emrNavigationItemBadge]\"/>\r\n</div>\r\n<div class=\"toggle\">\r\n <ng-content select=\"[emrNavigationGroupToggleIcon]\"/>\r\n @if (iconRef()) {\r\n <ng-container [ngTemplateOutlet]=\"iconRefTemplate\"/>\r\n }\r\n</div>\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrNavigationItemBadge]',\r\n exportAs: 'emrNavigationItemBadge',\r\n standalone: true,\r\n host: {\r\n 'class': 'emr-navigation-item-badge',\r\n }\r\n})\r\nexport class NavigationItemBadgeDirective {\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MASa,2BAA2B,CAAA;IACtB,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;wGAD1D,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,0BAAA,EAAA,EAAA,QAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE;AACV;AACF,iBAAA;;;MCKY,UAAU,GAAG,IAAI,cAAc,CAAC,YAAY;MAC5C,gBAAgB,GAAG,IAAI,cAAc,CAAC,kBAAkB;;ACPrE,MAAM,YAAY,GAAoB;AACpC,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,cAAc,EAAE;CACjB;AAEM,MAAM,eAAe,GAAG,WAAW,CACxC,SAAS,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