@ojiepermana/angular 21.3.4 → 22.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/component/accordion/README.md +195 -0
- package/component/alert/README.md +182 -0
- package/component/alert-dialog/README.md +239 -0
- package/component/aspect-ratio/README.md +112 -0
- package/component/avatar/README.md +176 -0
- package/component/badge/README.md +133 -0
- package/component/breadcrumb/README.md +216 -0
- package/component/button/README.md +139 -0
- package/component/button-group/README.md +208 -0
- package/component/calendar/README.md +132 -0
- package/component/card/README.md +220 -0
- package/component/carousel/README.md +276 -0
- package/component/checkbox/README.md +149 -0
- package/component/collapsible/README.md +195 -0
- package/component/combobox/README.md +198 -0
- package/component/command/README.md +275 -0
- package/component/composer/README.md +235 -0
- package/component/composer/package.json +4 -0
- package/component/context-menu/README.md +267 -0
- package/component/date-picker/README.md +177 -0
- package/component/dialog/README.md +237 -0
- package/component/drawer/README.md +145 -0
- package/component/dropdown-menu/README.md +311 -0
- package/component/editor/README.md +136 -0
- package/component/editor/package.json +4 -0
- package/component/empty/README.md +183 -0
- package/component/empty/package.json +4 -0
- package/component/form/README.md +210 -0
- package/component/hover-card/README.md +146 -0
- package/component/hover-card/package.json +4 -0
- package/component/input/README.md +159 -0
- package/component/input-group/README.md +239 -0
- package/component/input-otp/README.md +278 -0
- package/component/input-otp/package.json +4 -0
- package/component/item/README.md +247 -0
- package/component/kanban/README.md +81 -0
- package/component/kanban/package.json +4 -0
- package/component/kbd/README.md +139 -0
- package/component/kbd/package.json +4 -0
- package/component/label/README.md +136 -0
- package/component/menubar/README.md +269 -0
- package/component/menubar/package.json +4 -0
- package/component/native-select/README.md +176 -0
- package/component/native-select/package.json +4 -0
- package/component/navigation-menu/README.md +160 -0
- package/component/navigation-menu/package.json +4 -0
- package/component/pagination/README.md +144 -0
- package/component/pillbox/README.md +67 -0
- package/component/pillbox/package.json +4 -0
- package/component/popover/README.md +43 -0
- package/component/progress/README.md +160 -0
- package/component/radio/README.md +209 -0
- package/component/resizable/README.md +168 -0
- package/component/resizable/package.json +4 -0
- package/component/scroll-area/README.md +143 -0
- package/component/select/README.md +174 -0
- package/component/separator/README.md +170 -0
- package/component/sheet/README.md +183 -0
- package/component/skeleton/README.md +158 -0
- package/component/slider/README.md +207 -0
- package/component/spinner/README.md +160 -0
- package/component/spinner/package.json +4 -0
- package/component/switch/README.md +166 -0
- package/component/table/README.md +291 -0
- package/component/tabs/README.md +219 -0
- package/component/textarea/README.md +154 -0
- package/component/timeline/README.md +94 -0
- package/component/timeline/package.json +4 -0
- package/component/toast/README.md +321 -0
- package/component/toggle/README.md +131 -0
- package/component/toggle/package.json +4 -0
- package/component/toggle-group/README.md +206 -0
- package/component/toggle-group/package.json +4 -0
- package/component/tooltip/README.md +211 -0
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +45 -30
- package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +95 -61
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-alert.mjs +30 -21
- package/fesm2022/ojiepermana-angular-component-alert.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +11 -7
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +50 -34
- package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-badge.mjs +9 -6
- package/fesm2022/ojiepermana-angular-component-badge.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +49 -35
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +25 -17
- package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-button.mjs +11 -7
- package/fesm2022/ojiepermana-angular-component-button.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +23 -13
- package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-card.mjs +51 -36
- package/fesm2022/ojiepermana-angular-component-card.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +66 -42
- package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-chart.mjs +494 -283
- package/fesm2022/ojiepermana-angular-component-chart.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +23 -13
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +28 -20
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +27 -18
- package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-command.mjs +77 -52
- package/fesm2022/ojiepermana-angular-component-command.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-composer.mjs +352 -0
- package/fesm2022/ojiepermana-angular-component-composer.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +9 -6
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +34 -19
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +55 -38
- package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +108 -74
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-editor.mjs +717 -0
- package/fesm2022/ojiepermana-angular-component-editor.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-empty.mjs +145 -0
- package/fesm2022/ojiepermana-angular-component-empty.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-form.mjs +200 -42
- package/fesm2022/ojiepermana-angular-component-form.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +297 -0
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +48 -33
- package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +514 -0
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input.mjs +7 -5
- package/fesm2022/ojiepermana-angular-component-input.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-item.mjs +76 -53
- package/fesm2022/ojiepermana-angular-component-item.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +314 -0
- package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +55 -0
- package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-label.mjs +9 -6
- package/fesm2022/ojiepermana-angular-component-label.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +308 -0
- package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +67 -0
- package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +413 -0
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +65 -31
- package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +812 -0
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-popover.mjs +18 -12
- package/fesm2022/ojiepermana-angular-component-popover.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-progress.mjs +17 -10
- package/fesm2022/ojiepermana-angular-component-progress.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-radio.mjs +47 -17
- package/fesm2022/ojiepermana-angular-component-radio.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +481 -0
- package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +15 -9
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-select.mjs +71 -26
- package/fesm2022/ojiepermana-angular-component-select.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-separator.mjs +11 -7
- package/fesm2022/ojiepermana-angular-component-separator.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +91 -42
- package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +7 -5
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-slider.mjs +401 -7
- package/fesm2022/ojiepermana-angular-component-slider.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +60 -0
- package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-switch.mjs +47 -15
- package/fesm2022/ojiepermana-angular-component-switch.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-table.mjs +56 -40
- package/fesm2022/ojiepermana-angular-component-table.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +58 -38
- package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +8 -6
- package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -0
- package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toast.mjs +28 -4
- package/fesm2022/ojiepermana-angular-component-toast.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +289 -0
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +82 -0
- package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +304 -6
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-component-utils.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-component.mjs +45 -24
- package/fesm2022/ojiepermana-angular-layout-component.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-services.mjs +7 -5
- package/fesm2022/ojiepermana-angular-layout-services.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-shell.mjs +3 -3
- package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +9 -6
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout-token.mjs.map +1 -1
- package/fesm2022/{ojiepermana-angular-layout-empty.mjs → ojiepermana-angular-layout-type-empty.mjs} +4 -4
- package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +1 -0
- package/fesm2022/{ojiepermana-angular-layout-horizontal.mjs → ojiepermana-angular-layout-type-horizontal.mjs} +26 -17
- package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +1 -0
- package/fesm2022/{ojiepermana-angular-layout-vertical.mjs → ojiepermana-angular-layout-type-vertical.mjs} +28 -18
- package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout.mjs +74 -50
- package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +11 -7
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-item.mjs +27 -16
- package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +29 -20
- package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +71 -43
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +261 -24
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme-services.mjs +19 -11
- package/fesm2022/ojiepermana-angular-theme-services.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme-token.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme.mjs +19 -11
- package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -1
- package/generator/api/bin/src/emit/client.js +4 -2
- package/generator/api/bin/src/writer/index.js +2 -2
- package/generator/guide/bin/schematics/build/index.js +3 -2
- package/generator/guide/bin/src/engine/component.js +2 -2
- package/generator/guide/bin/src/engine/index.js +3 -3
- package/generator/guide/bin/src/engine/render.js +10 -5
- package/layout/type/empty/package.json +4 -0
- package/layout/type/horizontal/package.json +4 -0
- package/layout/type/vertical/package.json +4 -0
- package/navigation/topbar/README.md +196 -0
- package/package.json +89 -25
- package/theme/README.md +110 -3
- package/theme/styles/integrations/material/autocomplete.css +178 -0
- package/theme/styles/integrations/material/button.css +468 -0
- package/theme/styles/integrations/material/dialog.css +152 -0
- package/theme/styles/integrations/material/select.css +175 -0
- package/theme/styles/integrations/material/slide-toggle.css +234 -0
- package/theme/styles/integrations/material/slider.css +194 -0
- package/theme/styles/integrations/material/tabs.css +229 -0
- package/theme/styles/integrations/material.css +70 -60
- package/types/ojiepermana-angular-component-combobox.d.ts +1 -2
- package/types/ojiepermana-angular-component-composer.d.ts +90 -0
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +2 -0
- package/types/ojiepermana-angular-component-editor.d.ts +123 -0
- package/types/ojiepermana-angular-component-empty.d.ts +50 -0
- package/types/ojiepermana-angular-component-form.d.ts +52 -3
- package/types/ojiepermana-angular-component-hover-card.d.ts +74 -0
- package/types/ojiepermana-angular-component-input-otp.d.ts +136 -0
- package/types/ojiepermana-angular-component-kanban.d.ts +70 -0
- package/types/ojiepermana-angular-component-kbd.d.ts +16 -0
- package/types/ojiepermana-angular-component-menubar.d.ts +67 -0
- package/types/ojiepermana-angular-component-native-select.d.ts +26 -0
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +96 -0
- package/types/ojiepermana-angular-component-pagination.d.ts +10 -4
- package/types/ojiepermana-angular-component-pillbox.d.ts +157 -0
- package/types/ojiepermana-angular-component-radio.d.ts +7 -1
- package/types/ojiepermana-angular-component-resizable.d.ts +99 -0
- package/types/ojiepermana-angular-component-select.d.ts +17 -5
- package/types/ojiepermana-angular-component-sheet.d.ts +3 -1
- package/types/ojiepermana-angular-component-slider.d.ts +59 -1
- package/types/ojiepermana-angular-component-spinner.d.ts +13 -0
- package/types/ojiepermana-angular-component-switch.d.ts +13 -3
- package/types/ojiepermana-angular-component-timeline.d.ts +63 -0
- package/types/ojiepermana-angular-component-toast.d.ts +12 -3
- package/types/ojiepermana-angular-component-toggle-group.d.ts +89 -0
- package/types/ojiepermana-angular-component-toggle.d.ts +25 -0
- package/types/ojiepermana-angular-component-tooltip.d.ts +72 -5
- package/types/{ojiepermana-angular-layout-horizontal.d.ts → ojiepermana-angular-layout-type-horizontal.d.ts} +3 -3
- package/types/{ojiepermana-angular-layout-vertical.d.ts → ojiepermana-angular-layout-type-vertical.d.ts} +3 -3
- package/types/ojiepermana-angular-layout.d.ts +5 -5
- package/types/ojiepermana-angular-navigation-item.d.ts +1 -1
- package/types/ojiepermana-angular-navigation-service.d.ts +7 -7
- package/types/ojiepermana-angular-navigation-sidebar.d.ts +8 -8
- package/types/ojiepermana-angular-navigation-topbar.d.ts +24 -4
- package/types/ojiepermana-angular-navigation-types.d.ts +14 -8
- package/fesm2022/ojiepermana-angular-layout-empty.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-horizontal.mjs.map +0 -1
- package/fesm2022/ojiepermana-angular-layout-vertical.mjs.map +0 -1
- package/layout/empty/package.json +0 -4
- package/layout/horizontal/package.json +0 -4
- package/layout/vertical/package.json +0 -4
- /package/types/{ojiepermana-angular-layout-empty.d.ts → ojiepermana-angular-layout-type-empty.d.ts} +0 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { inject, ElementRef, input, Directive, contentChildren, signal, computed, ChangeDetectionStrategy, Component, TemplateRef, output, ViewContainerRef, DestroyRef, forwardRef } from '@angular/core';
|
|
5
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
|
+
import { cn } from '@ojiepermana/angular/component/utils';
|
|
7
|
+
import { merge } from 'rxjs';
|
|
8
|
+
import { filter } from 'rxjs/operators';
|
|
9
|
+
|
|
10
|
+
function position(align, side) {
|
|
11
|
+
const originX = align === 'start' ? 'start' : align === 'end' ? 'end' : 'center';
|
|
12
|
+
if (side === 'bottom') {
|
|
13
|
+
return {
|
|
14
|
+
originX,
|
|
15
|
+
originY: 'bottom',
|
|
16
|
+
overlayX: originX,
|
|
17
|
+
overlayY: 'top',
|
|
18
|
+
offsetY: 8,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
originX,
|
|
23
|
+
originY: 'top',
|
|
24
|
+
overlayX: originX,
|
|
25
|
+
overlayY: 'bottom',
|
|
26
|
+
offsetY: -8,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
class NavigationMenuRootItem {
|
|
30
|
+
elementRef = inject(ElementRef);
|
|
31
|
+
disabled = input(false, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
33
|
+
isWithin(container) {
|
|
34
|
+
return container.contains(this.elementRef.nativeElement);
|
|
35
|
+
}
|
|
36
|
+
focus() {
|
|
37
|
+
this.elementRef.nativeElement.focus();
|
|
38
|
+
}
|
|
39
|
+
containsTarget(target) {
|
|
40
|
+
return target instanceof Node && this.elementRef.nativeElement.contains(target);
|
|
41
|
+
}
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuRootItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuRootItem, isStandalone: true, inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuRootItem, decorators: [{
|
|
46
|
+
type: Directive
|
|
47
|
+
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
48
|
+
class NavigationMenuComponent {
|
|
49
|
+
class = input('', /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
51
|
+
ariaLabel = input('Main navigation', /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
53
|
+
loop = input(true, /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "loop" }] : /* istanbul ignore next */ []));
|
|
55
|
+
items = contentChildren(NavigationMenuRootItem, { ...(ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {}), descendants: true });
|
|
56
|
+
host = inject(ElementRef);
|
|
57
|
+
activeItem = signal(null, /* @ts-ignore */
|
|
58
|
+
...(ngDevMode ? [{ debugName: "activeItem" }] : /* istanbul ignore next */ []));
|
|
59
|
+
openTrigger = signal(null, /* @ts-ignore */
|
|
60
|
+
...(ngDevMode ? [{ debugName: "openTrigger" }] : /* istanbul ignore next */ []));
|
|
61
|
+
classes = computed(() => cn('relative z-10 flex max-w-max flex-1 items-center justify-center', this.class()), /* @ts-ignore */
|
|
62
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
63
|
+
setActiveItem(item) {
|
|
64
|
+
if (item.disabled()) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.activeItem.set(item);
|
|
68
|
+
}
|
|
69
|
+
tabIndexFor(item) {
|
|
70
|
+
if (item.disabled()) {
|
|
71
|
+
return -1;
|
|
72
|
+
}
|
|
73
|
+
const enabledItems = this.enabledItems();
|
|
74
|
+
if (enabledItems.length === 0) {
|
|
75
|
+
return -1;
|
|
76
|
+
}
|
|
77
|
+
const activeItem = this.activeItem();
|
|
78
|
+
const resolvedActiveItem = activeItem && enabledItems.includes(activeItem) ? activeItem : enabledItems[0];
|
|
79
|
+
return resolvedActiveItem === item ? 0 : -1;
|
|
80
|
+
}
|
|
81
|
+
hasOpenTrigger(except) {
|
|
82
|
+
const currentOpenTrigger = this.openTrigger();
|
|
83
|
+
return !!currentOpenTrigger && currentOpenTrigger !== except;
|
|
84
|
+
}
|
|
85
|
+
notifyOpen(trigger) {
|
|
86
|
+
const currentOpenTrigger = this.openTrigger();
|
|
87
|
+
if (currentOpenTrigger && currentOpenTrigger !== trigger) {
|
|
88
|
+
currentOpenTrigger.close({ restoreFocus: false });
|
|
89
|
+
}
|
|
90
|
+
this.openTrigger.set(trigger);
|
|
91
|
+
this.setActiveItem(trigger);
|
|
92
|
+
}
|
|
93
|
+
notifyClosed(trigger) {
|
|
94
|
+
if (this.openTrigger() === trigger) {
|
|
95
|
+
this.openTrigger.set(null);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
onKeydown(event) {
|
|
99
|
+
const currentItem = this.resolveItem(event.target);
|
|
100
|
+
if (!currentItem) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (event.key === 'ArrowDown' && currentItem instanceof NavigationMenuTriggerDirective) {
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
currentItem.open({ focusFirstItem: true });
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (event.key === 'Home' || event.key === 'End') {
|
|
109
|
+
event.preventDefault();
|
|
110
|
+
this.moveFocus(currentItem, event.key === 'Home' ? 'start' : 'end');
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {
|
|
114
|
+
event.preventDefault();
|
|
115
|
+
this.moveFocus(currentItem, event.key === 'ArrowRight' ? 'next' : 'previous');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
enabledItems() {
|
|
119
|
+
return this.items().filter((item) => !item.disabled() && item.isWithin(this.host.nativeElement));
|
|
120
|
+
}
|
|
121
|
+
resolveItem(target) {
|
|
122
|
+
return this.enabledItems().find((item) => item.containsTarget(target)) ?? null;
|
|
123
|
+
}
|
|
124
|
+
moveFocus(currentItem, direction) {
|
|
125
|
+
const enabledItems = this.enabledItems();
|
|
126
|
+
if (enabledItems.length === 0) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const currentIndex = enabledItems.indexOf(currentItem);
|
|
130
|
+
if (currentIndex === -1) {
|
|
131
|
+
enabledItems[0]?.focus();
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const nextItem = direction === 'start'
|
|
135
|
+
? enabledItems[0]
|
|
136
|
+
: direction === 'end'
|
|
137
|
+
? enabledItems[enabledItems.length - 1]
|
|
138
|
+
: enabledItems[this.nextIndex(currentIndex, direction === 'next' ? this.horizontalStep() : -this.horizontalStep(), enabledItems.length)];
|
|
139
|
+
if (!nextItem || nextItem === currentItem) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const currentOpenTrigger = this.openTrigger();
|
|
143
|
+
if (!currentOpenTrigger) {
|
|
144
|
+
nextItem.focus();
|
|
145
|
+
this.setActiveItem(nextItem);
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (nextItem instanceof NavigationMenuTriggerDirective) {
|
|
149
|
+
nextItem.open({ focusFirstItem: true });
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
currentOpenTrigger.close({ restoreFocus: false });
|
|
153
|
+
this.setActiveItem(nextItem);
|
|
154
|
+
queueMicrotask(() => nextItem.focus());
|
|
155
|
+
}
|
|
156
|
+
nextIndex(currentIndex, delta, length) {
|
|
157
|
+
const rawIndex = currentIndex + delta;
|
|
158
|
+
if (this.loop()) {
|
|
159
|
+
return (rawIndex + length) % length;
|
|
160
|
+
}
|
|
161
|
+
return Math.max(0, Math.min(length - 1, rawIndex));
|
|
162
|
+
}
|
|
163
|
+
horizontalStep() {
|
|
164
|
+
return getComputedStyle(this.host.nativeElement).direction === 'rtl' ? -1 : 1;
|
|
165
|
+
}
|
|
166
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
167
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: NavigationMenuComponent, isStandalone: true, selector: "ui-navigation-menu", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, loop: { classPropertyName: "loop", publicName: "loop", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($any($event))" }, properties: { "class": "classes()", "attr.role": "\"navigation\"", "attr.aria-label": "ariaLabel() || null" } }, queries: [{ propertyName: "items", predicate: NavigationMenuRootItem, descendants: true, isSignal: true }], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
168
|
+
}
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuComponent, decorators: [{
|
|
170
|
+
type: Component,
|
|
171
|
+
args: [{
|
|
172
|
+
selector: 'ui-navigation-menu',
|
|
173
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
174
|
+
host: {
|
|
175
|
+
'[class]': 'classes()',
|
|
176
|
+
'[attr.role]': '"navigation"',
|
|
177
|
+
'[attr.aria-label]': 'ariaLabel() || null',
|
|
178
|
+
'(keydown)': 'onKeydown($any($event))',
|
|
179
|
+
},
|
|
180
|
+
template: `<ng-content />`,
|
|
181
|
+
}]
|
|
182
|
+
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => NavigationMenuRootItem), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
183
|
+
class NavigationMenuListComponent {
|
|
184
|
+
class = input('', /* @ts-ignore */
|
|
185
|
+
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
186
|
+
classes = computed(() => cn('group flex flex-1 list-none items-center justify-center gap-1', this.class()), /* @ts-ignore */
|
|
187
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
188
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
189
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuListComponent, isStandalone: true, selector: "ui-navigation-menu-list", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"menubar\"" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
190
|
+
}
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuListComponent, decorators: [{
|
|
192
|
+
type: Component,
|
|
193
|
+
args: [{
|
|
194
|
+
selector: 'ui-navigation-menu-list',
|
|
195
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
196
|
+
host: {
|
|
197
|
+
'[class]': 'classes()',
|
|
198
|
+
'[attr.role]': '"menubar"',
|
|
199
|
+
},
|
|
200
|
+
template: `<ng-content />`,
|
|
201
|
+
}]
|
|
202
|
+
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
203
|
+
class NavigationMenuItemComponent {
|
|
204
|
+
class = input('', /* @ts-ignore */
|
|
205
|
+
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
206
|
+
classes = computed(() => cn('relative', this.class()), /* @ts-ignore */
|
|
207
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
209
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuItemComponent, isStandalone: true, selector: "ui-navigation-menu-item", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
210
|
+
}
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuItemComponent, decorators: [{
|
|
212
|
+
type: Component,
|
|
213
|
+
args: [{
|
|
214
|
+
selector: 'ui-navigation-menu-item',
|
|
215
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
216
|
+
host: {
|
|
217
|
+
'[class]': 'classes()',
|
|
218
|
+
},
|
|
219
|
+
template: `<ng-content />`,
|
|
220
|
+
}]
|
|
221
|
+
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
222
|
+
class NavigationMenuContentDirective {
|
|
223
|
+
template = inject(TemplateRef);
|
|
224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
225
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: NavigationMenuContentDirective, isStandalone: true, selector: "ng-template[uiNavigationMenuContent]", exportAs: ["uiNavigationMenuContent"], ngImport: i0 });
|
|
226
|
+
}
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuContentDirective, decorators: [{
|
|
228
|
+
type: Directive,
|
|
229
|
+
args: [{
|
|
230
|
+
selector: 'ng-template[uiNavigationMenuContent]',
|
|
231
|
+
exportAs: 'uiNavigationMenuContent',
|
|
232
|
+
}]
|
|
233
|
+
}] });
|
|
234
|
+
class NavigationMenuTriggerDirective extends NavigationMenuRootItem {
|
|
235
|
+
uiNavigationMenuTrigger = input.required(/* @ts-ignore */
|
|
236
|
+
...(ngDevMode ? [{ debugName: "uiNavigationMenuTrigger" }] : /* istanbul ignore next */ []));
|
|
237
|
+
align = input('start', /* @ts-ignore */
|
|
238
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
239
|
+
class = input('', /* @ts-ignore */
|
|
240
|
+
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
241
|
+
openedChange = output();
|
|
242
|
+
isOpen = signal(false, /* @ts-ignore */
|
|
243
|
+
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
244
|
+
overlay = inject(Overlay);
|
|
245
|
+
vcr = inject(ViewContainerRef);
|
|
246
|
+
navigationMenu = inject(NavigationMenuComponent, { optional: true });
|
|
247
|
+
destroyRef = inject(DestroyRef);
|
|
248
|
+
overlayRef = null;
|
|
249
|
+
classes = computed(() => cn('group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors', 'after:mb-0.5 after:ml-2 after:inline-block after:h-2 after:w-2 after:shrink-0 after:rotate-45 after:border-b after:border-r after:border-current after:transition-transform after:content-[""]', 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', 'disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:after:-rotate-135', this.class()), /* @ts-ignore */
|
|
250
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
251
|
+
toggle() {
|
|
252
|
+
if (this.disabled()) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
this.isOpen() ? this.close() : this.open();
|
|
256
|
+
}
|
|
257
|
+
open(options = {}) {
|
|
258
|
+
if (this.isOpen() || this.disabled()) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
this.navigationMenu?.notifyOpen(this);
|
|
262
|
+
const overlayRef = this.overlay.create({
|
|
263
|
+
positionStrategy: this.overlay
|
|
264
|
+
.position()
|
|
265
|
+
.flexibleConnectedTo(this.elementRef)
|
|
266
|
+
.withFlexibleDimensions(false)
|
|
267
|
+
.withPush(false)
|
|
268
|
+
.withPositions([position(this.align(), 'bottom'), position(this.align(), 'top')]),
|
|
269
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
270
|
+
hasBackdrop: false,
|
|
271
|
+
panelClass: 'ui-navigation-menu-panel',
|
|
272
|
+
});
|
|
273
|
+
const portal = new TemplatePortal(this.uiNavigationMenuTrigger().template, this.vcr);
|
|
274
|
+
overlayRef.attach(portal);
|
|
275
|
+
this.overlayRef = overlayRef;
|
|
276
|
+
merge(overlayRef
|
|
277
|
+
.outsidePointerEvents()
|
|
278
|
+
.pipe(filter((event) => !this.elementRef.nativeElement.contains(event.target))), overlayRef.keydownEvents().pipe(filter((event) => event.key === 'Escape')), overlayRef.detachments())
|
|
279
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
280
|
+
.subscribe(() => this.close());
|
|
281
|
+
this.isOpen.set(true);
|
|
282
|
+
this.openedChange.emit(true);
|
|
283
|
+
if (options.focusFirstItem) {
|
|
284
|
+
queueMicrotask(() => this.focusFirstItem());
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
close(options = {}) {
|
|
288
|
+
const { restoreFocus = true } = options;
|
|
289
|
+
if (!this.isOpen()) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
const overlayRef = this.overlayRef;
|
|
293
|
+
this.overlayRef = null;
|
|
294
|
+
this.isOpen.set(false);
|
|
295
|
+
this.openedChange.emit(false);
|
|
296
|
+
this.navigationMenu?.notifyClosed(this);
|
|
297
|
+
overlayRef?.dispose();
|
|
298
|
+
if (restoreFocus) {
|
|
299
|
+
this.elementRef.nativeElement.focus();
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
tabIndex() {
|
|
303
|
+
return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);
|
|
304
|
+
}
|
|
305
|
+
openFromKeyboard(event, focusFirstItem) {
|
|
306
|
+
if (this.disabled()) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
event.preventDefault();
|
|
310
|
+
this.open({ focusFirstItem });
|
|
311
|
+
}
|
|
312
|
+
syncActiveState() {
|
|
313
|
+
this.navigationMenu?.setActiveItem(this);
|
|
314
|
+
}
|
|
315
|
+
openFromHover() {
|
|
316
|
+
if (this.disabled() || !this.navigationMenu?.hasOpenTrigger(this)) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
this.open();
|
|
320
|
+
}
|
|
321
|
+
focusFirstItem() {
|
|
322
|
+
const overlayElement = this.overlayRef?.overlayElement;
|
|
323
|
+
if (!overlayElement) {
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
const firstItem = overlayElement.querySelector('a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])');
|
|
327
|
+
firstItem?.focus();
|
|
328
|
+
}
|
|
329
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuTriggerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
330
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuTriggerDirective, isStandalone: true, selector: "[uiNavigationMenuTrigger]", inputs: { uiNavigationMenuTrigger: { classPropertyName: "uiNavigationMenuTrigger", publicName: "uiNavigationMenuTrigger", isSignal: true, isRequired: true, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "click": "toggle()", "keydown.enter": "openFromKeyboard($any($event), false)", "keydown.space": "openFromKeyboard($any($event), false)", "keydown.arrowDown": "openFromKeyboard($any($event), true)", "focus": "syncActiveState()", "mouseenter": "openFromHover()" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.aria-haspopup": "\"menu\"", "attr.aria-expanded": "isOpen()", "attr.data-state": "isOpen() ? \"open\" : \"closed\"", "attr.tabindex": "tabIndex()", "attr.disabled": "disabled() ? \"\" : null" } }, providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuTriggerDirective) }], exportAs: ["uiNavigationMenuTrigger"], usesInheritance: true, ngImport: i0 });
|
|
331
|
+
}
|
|
332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuTriggerDirective, decorators: [{
|
|
333
|
+
type: Directive,
|
|
334
|
+
args: [{
|
|
335
|
+
selector: '[uiNavigationMenuTrigger]',
|
|
336
|
+
exportAs: 'uiNavigationMenuTrigger',
|
|
337
|
+
providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuTriggerDirective) }],
|
|
338
|
+
host: {
|
|
339
|
+
'[class]': 'classes()',
|
|
340
|
+
'[attr.role]': '"menuitem"',
|
|
341
|
+
'[attr.aria-haspopup]': '"menu"',
|
|
342
|
+
'[attr.aria-expanded]': 'isOpen()',
|
|
343
|
+
'[attr.data-state]': 'isOpen() ? "open" : "closed"',
|
|
344
|
+
'[attr.tabindex]': 'tabIndex()',
|
|
345
|
+
'[attr.disabled]': 'disabled() ? "" : null',
|
|
346
|
+
'(click)': 'toggle()',
|
|
347
|
+
'(keydown.enter)': 'openFromKeyboard($any($event), false)',
|
|
348
|
+
'(keydown.space)': 'openFromKeyboard($any($event), false)',
|
|
349
|
+
'(keydown.arrowDown)': 'openFromKeyboard($any($event), true)',
|
|
350
|
+
'(focus)': 'syncActiveState()',
|
|
351
|
+
'(mouseenter)': 'openFromHover()',
|
|
352
|
+
},
|
|
353
|
+
}]
|
|
354
|
+
}], propDecorators: { uiNavigationMenuTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiNavigationMenuTrigger", required: true }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
|
|
355
|
+
class NavigationMenuLinkDirective extends NavigationMenuRootItem {
|
|
356
|
+
class = input('', /* @ts-ignore */
|
|
357
|
+
...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
358
|
+
variant = input('content', /* @ts-ignore */
|
|
359
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
360
|
+
navigationMenu = inject(NavigationMenuComponent, { optional: true });
|
|
361
|
+
classes = computed(() => this.variant() === 'trigger'
|
|
362
|
+
? cn('inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors', 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', 'aria-disabled:pointer-events-none aria-disabled:opacity-50', this.class())
|
|
363
|
+
: cn('block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors', 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring', 'aria-disabled:pointer-events-none aria-disabled:opacity-50', this.class()), /* @ts-ignore */
|
|
364
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
365
|
+
tabIndex() {
|
|
366
|
+
if (this.variant() !== 'trigger') {
|
|
367
|
+
return this.disabled() ? -1 : 0;
|
|
368
|
+
}
|
|
369
|
+
return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);
|
|
370
|
+
}
|
|
371
|
+
focus() {
|
|
372
|
+
if (this.variant() === 'trigger' && this.elementRef.nativeElement.tabIndex < 0) {
|
|
373
|
+
this.elementRef.nativeElement.tabIndex = 0;
|
|
374
|
+
}
|
|
375
|
+
super.focus();
|
|
376
|
+
}
|
|
377
|
+
syncActiveState() {
|
|
378
|
+
if (this.variant() === 'trigger') {
|
|
379
|
+
this.navigationMenu?.setActiveItem(this);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
preventDisabled(event) {
|
|
383
|
+
if (this.disabled()) {
|
|
384
|
+
event.preventDefault();
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuLinkDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
388
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: NavigationMenuLinkDirective, isStandalone: true, selector: "a[uiNavigationMenuLink], button[uiNavigationMenuLink]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focus": "syncActiveState()", "click": "preventDisabled($any($event))" }, properties: { "class": "classes()", "attr.role": "\"menuitem\"", "attr.tabindex": "tabIndex()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.data-variant": "variant()" } }, providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuLinkDirective) }], exportAs: ["uiNavigationMenuLink"], usesInheritance: true, ngImport: i0 });
|
|
389
|
+
}
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NavigationMenuLinkDirective, decorators: [{
|
|
391
|
+
type: Directive,
|
|
392
|
+
args: [{
|
|
393
|
+
selector: 'a[uiNavigationMenuLink], button[uiNavigationMenuLink]',
|
|
394
|
+
exportAs: 'uiNavigationMenuLink',
|
|
395
|
+
providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuLinkDirective) }],
|
|
396
|
+
host: {
|
|
397
|
+
'[class]': 'classes()',
|
|
398
|
+
'[attr.role]': '"menuitem"',
|
|
399
|
+
'[attr.tabindex]': 'tabIndex()',
|
|
400
|
+
'[attr.aria-disabled]': 'disabled() ? "true" : null',
|
|
401
|
+
'[attr.data-variant]': 'variant()',
|
|
402
|
+
'(focus)': 'syncActiveState()',
|
|
403
|
+
'(click)': 'preventDisabled($any($event))',
|
|
404
|
+
},
|
|
405
|
+
}]
|
|
406
|
+
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Generated bundle index. Do not edit.
|
|
410
|
+
*/
|
|
411
|
+
|
|
412
|
+
export { NavigationMenuComponent, NavigationMenuContentDirective, NavigationMenuItemComponent, NavigationMenuLinkDirective, NavigationMenuListComponent, NavigationMenuRootItem, NavigationMenuTriggerDirective };
|
|
413
|
+
//# sourceMappingURL=ojiepermana-angular-component-navigation-menu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular-component-navigation-menu.mjs","sources":["../../../projects/angular/component/navigation-menu/navigation-menu.component.ts","../../../projects/angular/component/navigation-menu/ojiepermana-angular-component-navigation-menu.ts"],"sourcesContent":["import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Directive,\n ElementRef,\n TemplateRef,\n ViewContainerRef,\n computed,\n contentChildren,\n forwardRef,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { cn } from '@ojiepermana/angular/component/utils';\nimport { merge } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nexport type NavigationMenuAlign = 'start' | 'center' | 'end';\nexport type NavigationMenuLinkVariant = 'trigger' | 'content';\n\nfunction position(align: NavigationMenuAlign, side: 'bottom' | 'top'): ConnectedPosition {\n const originX = align === 'start' ? 'start' : align === 'end' ? 'end' : 'center';\n\n if (side === 'bottom') {\n return {\n originX,\n originY: 'bottom',\n overlayX: originX,\n overlayY: 'top',\n offsetY: 8,\n };\n }\n\n return {\n originX,\n originY: 'top',\n overlayX: originX,\n overlayY: 'bottom',\n offsetY: -8,\n };\n}\n\n@Directive()\nexport abstract class NavigationMenuRootItem {\n protected readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly disabled = input<boolean>(false);\n\n isWithin(container: HTMLElement): boolean {\n return container.contains(this.elementRef.nativeElement);\n }\n\n focus(): void {\n this.elementRef.nativeElement.focus();\n }\n\n containsTarget(target: EventTarget | null): boolean {\n return target instanceof Node && this.elementRef.nativeElement.contains(target);\n }\n}\n\n@Component({\n selector: 'ui-navigation-menu',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"navigation\"',\n '[attr.aria-label]': 'ariaLabel() || null',\n '(keydown)': 'onKeydown($any($event))',\n },\n template: `<ng-content />`,\n})\nexport class NavigationMenuComponent {\n readonly class = input<string>('');\n readonly ariaLabel = input<string>('Main navigation');\n readonly loop = input<boolean>(true);\n\n private readonly items = contentChildren(NavigationMenuRootItem, { descendants: true });\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly activeItem = signal<NavigationMenuRootItem | null>(null);\n private readonly openTrigger = signal<NavigationMenuTriggerDirective | null>(null);\n\n protected readonly classes = computed(() =>\n cn('relative z-10 flex max-w-max flex-1 items-center justify-center', this.class()),\n );\n\n setActiveItem(item: NavigationMenuRootItem): void {\n if (item.disabled()) {\n return;\n }\n\n this.activeItem.set(item);\n }\n\n tabIndexFor(item: NavigationMenuRootItem): number {\n if (item.disabled()) {\n return -1;\n }\n\n const enabledItems = this.enabledItems();\n\n if (enabledItems.length === 0) {\n return -1;\n }\n\n const activeItem = this.activeItem();\n const resolvedActiveItem = activeItem && enabledItems.includes(activeItem) ? activeItem : enabledItems[0];\n\n return resolvedActiveItem === item ? 0 : -1;\n }\n\n hasOpenTrigger(except?: NavigationMenuTriggerDirective): boolean {\n const currentOpenTrigger = this.openTrigger();\n return !!currentOpenTrigger && currentOpenTrigger !== except;\n }\n\n notifyOpen(trigger: NavigationMenuTriggerDirective): void {\n const currentOpenTrigger = this.openTrigger();\n\n if (currentOpenTrigger && currentOpenTrigger !== trigger) {\n currentOpenTrigger.close({ restoreFocus: false });\n }\n\n this.openTrigger.set(trigger);\n this.setActiveItem(trigger);\n }\n\n notifyClosed(trigger: NavigationMenuTriggerDirective): void {\n if (this.openTrigger() === trigger) {\n this.openTrigger.set(null);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const currentItem = this.resolveItem(event.target);\n\n if (!currentItem) {\n return;\n }\n\n if (event.key === 'ArrowDown' && currentItem instanceof NavigationMenuTriggerDirective) {\n event.preventDefault();\n currentItem.open({ focusFirstItem: true });\n return;\n }\n\n if (event.key === 'Home' || event.key === 'End') {\n event.preventDefault();\n this.moveFocus(currentItem, event.key === 'Home' ? 'start' : 'end');\n return;\n }\n\n if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.moveFocus(currentItem, event.key === 'ArrowRight' ? 'next' : 'previous');\n }\n }\n\n private enabledItems(): NavigationMenuRootItem[] {\n return this.items().filter((item) => !item.disabled() && item.isWithin(this.host.nativeElement));\n }\n\n private resolveItem(target: EventTarget | null): NavigationMenuRootItem | null {\n return this.enabledItems().find((item) => item.containsTarget(target)) ?? null;\n }\n\n private moveFocus(currentItem: NavigationMenuRootItem, direction: 'previous' | 'next' | 'start' | 'end'): void {\n const enabledItems = this.enabledItems();\n\n if (enabledItems.length === 0) {\n return;\n }\n\n const currentIndex = enabledItems.indexOf(currentItem);\n\n if (currentIndex === -1) {\n enabledItems[0]?.focus();\n return;\n }\n\n const nextItem =\n direction === 'start'\n ? enabledItems[0]\n : direction === 'end'\n ? enabledItems[enabledItems.length - 1]\n : enabledItems[\n this.nextIndex(\n currentIndex,\n direction === 'next' ? this.horizontalStep() : -this.horizontalStep(),\n enabledItems.length,\n )\n ];\n\n if (!nextItem || nextItem === currentItem) {\n return;\n }\n\n const currentOpenTrigger = this.openTrigger();\n\n if (!currentOpenTrigger) {\n nextItem.focus();\n this.setActiveItem(nextItem);\n return;\n }\n\n if (nextItem instanceof NavigationMenuTriggerDirective) {\n nextItem.open({ focusFirstItem: true });\n return;\n }\n\n currentOpenTrigger.close({ restoreFocus: false });\n this.setActiveItem(nextItem);\n queueMicrotask(() => nextItem.focus());\n }\n\n private nextIndex(currentIndex: number, delta: number, length: number): number {\n const rawIndex = currentIndex + delta;\n\n if (this.loop()) {\n return (rawIndex + length) % length;\n }\n\n return Math.max(0, Math.min(length - 1, rawIndex));\n }\n\n private horizontalStep(): number {\n return getComputedStyle(this.host.nativeElement).direction === 'rtl' ? -1 : 1;\n }\n}\n\n@Component({\n selector: 'ui-navigation-menu-list',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"menubar\"',\n },\n template: `<ng-content />`,\n})\nexport class NavigationMenuListComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn('group flex flex-1 list-none items-center justify-center gap-1', this.class()),\n );\n}\n\n@Component({\n selector: 'ui-navigation-menu-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `<ng-content />`,\n})\nexport class NavigationMenuItemComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() => cn('relative', this.class()));\n}\n\n@Directive({\n selector: 'ng-template[uiNavigationMenuContent]',\n exportAs: 'uiNavigationMenuContent',\n})\nexport class NavigationMenuContentDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n@Directive({\n selector: '[uiNavigationMenuTrigger]',\n exportAs: 'uiNavigationMenuTrigger',\n providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuTriggerDirective) }],\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"menuitem\"',\n '[attr.aria-haspopup]': '\"menu\"',\n '[attr.aria-expanded]': 'isOpen()',\n '[attr.data-state]': 'isOpen() ? \"open\" : \"closed\"',\n '[attr.tabindex]': 'tabIndex()',\n '[attr.disabled]': 'disabled() ? \"\" : null',\n '(click)': 'toggle()',\n '(keydown.enter)': 'openFromKeyboard($any($event), false)',\n '(keydown.space)': 'openFromKeyboard($any($event), false)',\n '(keydown.arrowDown)': 'openFromKeyboard($any($event), true)',\n '(focus)': 'syncActiveState()',\n '(mouseenter)': 'openFromHover()',\n },\n})\nexport class NavigationMenuTriggerDirective extends NavigationMenuRootItem {\n readonly uiNavigationMenuTrigger = input.required<NavigationMenuContentDirective>();\n readonly align = input<NavigationMenuAlign>('start');\n readonly class = input<string>('');\n\n readonly openedChange = output<boolean>();\n readonly isOpen = signal(false);\n\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly navigationMenu = inject(NavigationMenuComponent, { optional: true });\n private readonly destroyRef = inject(DestroyRef);\n\n private overlayRef: OverlayRef | null = null;\n\n protected readonly classes = computed(() =>\n cn(\n 'group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors',\n 'after:mb-0.5 after:ml-2 after:inline-block after:h-2 after:w-2 after:shrink-0 after:rotate-45 after:border-b after:border-r after:border-current after:transition-transform after:content-[\"\"]',\n 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n 'disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:after:-rotate-135',\n this.class(),\n ),\n );\n\n toggle(): void {\n if (this.disabled()) {\n return;\n }\n\n this.isOpen() ? this.close() : this.open();\n }\n\n open(options: { focusFirstItem?: boolean } = {}): void {\n if (this.isOpen() || this.disabled()) {\n return;\n }\n\n this.navigationMenu?.notifyOpen(this);\n\n const overlayRef = this.overlay.create({\n positionStrategy: this.overlay\n .position()\n .flexibleConnectedTo(this.elementRef)\n .withFlexibleDimensions(false)\n .withPush(false)\n .withPositions([position(this.align(), 'bottom'), position(this.align(), 'top')]),\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n hasBackdrop: false,\n panelClass: 'ui-navigation-menu-panel',\n });\n\n const portal = new TemplatePortal(this.uiNavigationMenuTrigger().template, this.vcr);\n\n overlayRef.attach(portal);\n this.overlayRef = overlayRef;\n\n merge(\n overlayRef\n .outsidePointerEvents()\n .pipe(filter((event) => !this.elementRef.nativeElement.contains(event.target as Node))),\n overlayRef.keydownEvents().pipe(filter((event) => event.key === 'Escape')),\n overlayRef.detachments(),\n )\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.close());\n\n this.isOpen.set(true);\n this.openedChange.emit(true);\n\n if (options.focusFirstItem) {\n queueMicrotask(() => this.focusFirstItem());\n }\n }\n\n close(options: { restoreFocus?: boolean } = {}): void {\n const { restoreFocus = true } = options;\n\n if (!this.isOpen()) {\n return;\n }\n\n const overlayRef = this.overlayRef;\n this.overlayRef = null;\n this.isOpen.set(false);\n this.openedChange.emit(false);\n this.navigationMenu?.notifyClosed(this);\n overlayRef?.dispose();\n\n if (restoreFocus) {\n this.elementRef.nativeElement.focus();\n }\n }\n\n protected tabIndex(): number {\n return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);\n }\n\n protected openFromKeyboard(event: KeyboardEvent, focusFirstItem: boolean): void {\n if (this.disabled()) {\n return;\n }\n\n event.preventDefault();\n this.open({ focusFirstItem });\n }\n\n protected syncActiveState(): void {\n this.navigationMenu?.setActiveItem(this);\n }\n\n protected openFromHover(): void {\n if (this.disabled() || !this.navigationMenu?.hasOpenTrigger(this)) {\n return;\n }\n\n this.open();\n }\n\n private focusFirstItem(): void {\n const overlayElement = this.overlayRef?.overlayElement;\n\n if (!overlayElement) {\n return;\n }\n\n const firstItem = overlayElement.querySelector<HTMLElement>(\n 'a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])',\n );\n\n firstItem?.focus();\n }\n}\n\n@Directive({\n selector: 'a[uiNavigationMenuLink], button[uiNavigationMenuLink]',\n exportAs: 'uiNavigationMenuLink',\n providers: [{ provide: NavigationMenuRootItem, useExisting: forwardRef(() => NavigationMenuLinkDirective) }],\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"menuitem\"',\n '[attr.tabindex]': 'tabIndex()',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.data-variant]': 'variant()',\n '(focus)': 'syncActiveState()',\n '(click)': 'preventDisabled($any($event))',\n },\n})\nexport class NavigationMenuLinkDirective extends NavigationMenuRootItem {\n readonly class = input<string>('');\n readonly variant = input<NavigationMenuLinkVariant>('content');\n\n private readonly navigationMenu = inject(NavigationMenuComponent, { optional: true });\n\n protected readonly classes = computed(() =>\n this.variant() === 'trigger'\n ? cn(\n 'inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors',\n 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n this.class(),\n )\n : cn(\n 'block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors',\n 'hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n this.class(),\n ),\n );\n\n protected tabIndex(): number {\n if (this.variant() !== 'trigger') {\n return this.disabled() ? -1 : 0;\n }\n\n return this.navigationMenu?.tabIndexFor(this) ?? (this.disabled() ? -1 : 0);\n }\n\n override focus(): void {\n if (this.variant() === 'trigger' && this.elementRef.nativeElement.tabIndex < 0) {\n this.elementRef.nativeElement.tabIndex = 0;\n }\n\n super.focus();\n }\n\n protected syncActiveState(): void {\n if (this.variant() === 'trigger') {\n this.navigationMenu?.setActiveItem(this);\n }\n }\n\n protected preventDisabled(event: MouseEvent): void {\n if (this.disabled()) {\n event.preventDefault();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA0BA,SAAS,QAAQ,CAAC,KAA0B,EAAE,IAAsB,EAAA;IAClE,MAAM,OAAO,GAAG,KAAK,KAAK,OAAO,GAAG,OAAO,GAAG,KAAK,KAAK,KAAK,GAAG,KAAK,GAAG,QAAQ;AAEhF,IAAA,IAAI,IAAI,KAAK,QAAQ,EAAE;QACrB,OAAO;YACL,OAAO;AACP,YAAA,OAAO,EAAE,QAAQ;AACjB,YAAA,QAAQ,EAAE,OAAO;AACjB,YAAA,QAAQ,EAAE,KAAK;AACf,YAAA,OAAO,EAAE,CAAC;SACX;IACH;IAEA,OAAO;QACL,OAAO;AACP,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,QAAQ,EAAE,OAAO;AACjB,QAAA,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,CAAC,CAAC;KACZ;AACH;MAGsB,sBAAsB,CAAA;AACvB,IAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;IAElE,QAAQ,GAAG,KAAK,CAAU,KAAK;iFAAC;AAEzC,IAAA,QAAQ,CAAC,SAAsB,EAAA;QAC7B,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa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