@loomui-ng/ui 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +46 -2
- package/accordion/README.md +38 -0
- package/alert/README.md +32 -0
- package/alert-dialog/README.md +37 -0
- package/aspect-ratio/README.md +24 -0
- package/attachment/README.md +40 -0
- package/avatar/README.md +34 -0
- package/badge/README.md +29 -0
- package/breadcrumb/README.md +33 -0
- package/bubble/README.md +32 -0
- package/button/README.md +31 -0
- package/button-group/README.md +30 -0
- package/calendar/README.md +35 -0
- package/card/README.md +41 -0
- package/carousel/README.md +41 -0
- package/chart/README.md +25 -0
- package/checkbox/README.md +31 -0
- package/collapsible/README.md +31 -0
- package/combobox/README.md +47 -0
- package/command/README.md +44 -0
- package/context-menu/README.md +36 -0
- package/data-table/README.md +39 -0
- package/date-picker/README.md +23 -0
- package/dialog/README.md +52 -0
- package/direction/README.md +19 -0
- package/drawer/README.md +37 -0
- package/dropdown-menu/README.md +46 -0
- package/empty/README.md +38 -0
- package/fesm2022/loomui-ng-ui-accordion.mjs +555 -0
- package/fesm2022/loomui-ng-ui-accordion.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-alert-dialog.mjs +652 -0
- package/fesm2022/loomui-ng-ui-alert-dialog.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-alert.mjs +286 -0
- package/fesm2022/loomui-ng-ui-alert.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-aspect-ratio.mjs +97 -0
- package/fesm2022/loomui-ng-ui-aspect-ratio.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-attachment.mjs +713 -0
- package/fesm2022/loomui-ng-ui-attachment.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-avatar.mjs +561 -0
- package/fesm2022/loomui-ng-ui-avatar.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-badge.mjs +102 -0
- package/fesm2022/loomui-ng-ui-badge.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-breadcrumb.mjs +520 -0
- package/fesm2022/loomui-ng-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-bubble.mjs +386 -0
- package/fesm2022/loomui-ng-ui-bubble.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-button-group.mjs +193 -0
- package/fesm2022/loomui-ng-ui-button-group.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-button.mjs +162 -0
- package/fesm2022/loomui-ng-ui-button.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-calendar.mjs +681 -0
- package/fesm2022/loomui-ng-ui-calendar.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-card.mjs +461 -0
- package/fesm2022/loomui-ng-ui-card.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-carousel.mjs +532 -0
- package/fesm2022/loomui-ng-ui-carousel.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-chart.mjs +373 -0
- package/fesm2022/loomui-ng-ui-chart.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-checkbox.mjs +265 -0
- package/fesm2022/loomui-ng-ui-checkbox.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-collapsible.mjs +274 -0
- package/fesm2022/loomui-ng-ui-collapsible.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-combobox.mjs +971 -0
- package/fesm2022/loomui-ng-ui-combobox.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-command.mjs +982 -0
- package/fesm2022/loomui-ng-ui-command.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-context-menu.mjs +1359 -0
- package/fesm2022/loomui-ng-ui-context-menu.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-data-table.mjs +535 -0
- package/fesm2022/loomui-ng-ui-data-table.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-date-picker.mjs +312 -0
- package/fesm2022/loomui-ng-ui-date-picker.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-dialog.mjs +508 -0
- package/fesm2022/loomui-ng-ui-dialog.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-direction.mjs +112 -0
- package/fesm2022/loomui-ng-ui-direction.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-drawer.mjs +590 -0
- package/fesm2022/loomui-ng-ui-drawer.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-dropdown-menu.mjs +1322 -0
- package/fesm2022/loomui-ng-ui-dropdown-menu.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-empty.mjs +408 -0
- package/fesm2022/loomui-ng-ui-empty.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-field.mjs +630 -0
- package/fesm2022/loomui-ng-ui-field.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-hover-card.mjs +230 -0
- package/fesm2022/loomui-ng-ui-hover-card.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-icon.mjs +498 -0
- package/fesm2022/loomui-ng-ui-icon.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-input-group.mjs +463 -0
- package/fesm2022/loomui-ng-ui-input-group.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-input-otp.mjs +586 -0
- package/fesm2022/loomui-ng-ui-input-otp.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-input.mjs +289 -0
- package/fesm2022/loomui-ng-ui-input.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-item.mjs +598 -0
- package/fesm2022/loomui-ng-ui-item.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-kbd.mjs +129 -0
- package/fesm2022/loomui-ng-ui-kbd.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-label.mjs +68 -0
- package/fesm2022/loomui-ng-ui-label.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-marker.mjs +234 -0
- package/fesm2022/loomui-ng-ui-marker.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-menubar.mjs +1523 -0
- package/fesm2022/loomui-ng-ui-menubar.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-message-scroller.mjs +519 -0
- package/fesm2022/loomui-ng-ui-message-scroller.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-message.mjs +408 -0
- package/fesm2022/loomui-ng-ui-message.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-native-select.mjs +389 -0
- package/fesm2022/loomui-ng-ui-native-select.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-navigation-menu.mjs +609 -0
- package/fesm2022/loomui-ng-ui-navigation-menu.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-pagination.mjs +611 -0
- package/fesm2022/loomui-ng-ui-pagination.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-popover.mjs +358 -0
- package/fesm2022/loomui-ng-ui-popover.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-progress.mjs +159 -0
- package/fesm2022/loomui-ng-ui-progress.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-questionnaire.mjs +1012 -0
- package/fesm2022/loomui-ng-ui-questionnaire.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-radio-group.mjs +399 -0
- package/fesm2022/loomui-ng-ui-radio-group.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-resizable.mjs +518 -0
- package/fesm2022/loomui-ng-ui-resizable.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-scroll-area.mjs +135 -0
- package/fesm2022/loomui-ng-ui-scroll-area.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-select.mjs +863 -0
- package/fesm2022/loomui-ng-ui-select.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-separator.mjs +114 -0
- package/fesm2022/loomui-ng-ui-separator.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-sheet.mjs +530 -0
- package/fesm2022/loomui-ng-ui-sheet.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-sidebar.mjs +1918 -0
- package/fesm2022/loomui-ng-ui-sidebar.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-skeleton.mjs +69 -0
- package/fesm2022/loomui-ng-ui-skeleton.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-slider.mjs +390 -0
- package/fesm2022/loomui-ng-ui-slider.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-spinner.mjs +85 -0
- package/fesm2022/loomui-ng-ui-spinner.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-switch.mjs +212 -0
- package/fesm2022/loomui-ng-ui-switch.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-table.mjs +559 -0
- package/fesm2022/loomui-ng-ui-table.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-tabs.mjs +544 -0
- package/fesm2022/loomui-ng-ui-tabs.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-textarea.mjs +206 -0
- package/fesm2022/loomui-ng-ui-textarea.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-toast.mjs +432 -0
- package/fesm2022/loomui-ng-ui-toast.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-toggle-group.mjs +477 -0
- package/fesm2022/loomui-ng-ui-toggle-group.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-toggle.mjs +219 -0
- package/fesm2022/loomui-ng-ui-toggle.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-tooltip.mjs +240 -0
- package/fesm2022/loomui-ng-ui-tooltip.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-typography.mjs +129 -0
- package/fesm2022/loomui-ng-ui-typography.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui-utils.mjs +1533 -0
- package/fesm2022/loomui-ng-ui-utils.mjs.map +1 -0
- package/fesm2022/loomui-ng-ui.mjs +4 -0
- package/fesm2022/loomui-ng-ui.mjs.map +1 -0
- package/field/README.md +43 -0
- package/hover-card/README.md +31 -0
- package/icon/README.md +42 -0
- package/input/README.md +26 -0
- package/input-group/README.md +40 -0
- package/input-otp/README.md +35 -0
- package/item/README.md +33 -0
- package/kbd/README.md +21 -0
- package/label/README.md +24 -0
- package/marker/README.md +24 -0
- package/menubar/README.md +40 -0
- package/message/README.md +32 -0
- package/message-scroller/README.md +40 -0
- package/native-select/README.md +26 -0
- package/navigation-menu/README.md +39 -0
- package/package.json +325 -3
- package/pagination/README.md +37 -0
- package/popover/README.md +37 -0
- package/progress/README.md +25 -0
- package/questionnaire/README.md +52 -0
- package/radio-group/README.md +33 -0
- package/resizable/README.md +37 -0
- package/scroll-area/README.md +25 -0
- package/select/README.md +45 -0
- package/separator/README.md +28 -0
- package/sheet/README.md +38 -0
- package/sidebar/README.md +60 -0
- package/skeleton/README.md +21 -0
- package/slider/README.md +29 -0
- package/spinner/README.md +15 -0
- package/styles/loomui.css +330 -0
- package/switch/README.md +29 -0
- package/table/README.md +31 -0
- package/tabs/README.md +42 -0
- package/textarea/README.md +28 -0
- package/toast/README.md +27 -0
- package/toggle/README.md +27 -0
- package/toggle-group/README.md +37 -0
- package/tooltip/README.md +31 -0
- package/types/loomui-ng-ui-accordion.d.ts +141 -0
- package/types/loomui-ng-ui-alert-dialog.d.ts +175 -0
- package/types/loomui-ng-ui-alert.d.ts +77 -0
- package/types/loomui-ng-ui-aspect-ratio.d.ts +31 -0
- package/types/loomui-ng-ui-attachment.d.ts +192 -0
- package/types/loomui-ng-ui-avatar.d.ts +147 -0
- package/types/loomui-ng-ui-badge.d.ts +32 -0
- package/types/loomui-ng-ui-breadcrumb.d.ts +118 -0
- package/types/loomui-ng-ui-bubble.d.ts +100 -0
- package/types/loomui-ng-ui-button-group.d.ts +51 -0
- package/types/loomui-ng-ui-button.d.ts +57 -0
- package/types/loomui-ng-ui-calendar.d.ts +171 -0
- package/types/loomui-ng-ui-card.d.ts +123 -0
- package/types/loomui-ng-ui-carousel.d.ts +140 -0
- package/types/loomui-ng-ui-chart.d.ts +95 -0
- package/types/loomui-ng-ui-checkbox.d.ts +62 -0
- package/types/loomui-ng-ui-collapsible.d.ts +74 -0
- package/types/loomui-ng-ui-combobox.d.ts +229 -0
- package/types/loomui-ng-ui-command.d.ts +231 -0
- package/types/loomui-ng-ui-context-menu.d.ts +288 -0
- package/types/loomui-ng-ui-data-table.d.ts +111 -0
- package/types/loomui-ng-ui-date-picker.d.ts +63 -0
- package/types/loomui-ng-ui-dialog.d.ts +127 -0
- package/types/loomui-ng-ui-direction.d.ts +42 -0
- package/types/loomui-ng-ui-drawer.d.ts +149 -0
- package/types/loomui-ng-ui-dropdown-menu.d.ts +258 -0
- package/types/loomui-ng-ui-empty.d.ts +109 -0
- package/types/loomui-ng-ui-field.d.ts +169 -0
- package/types/loomui-ng-ui-hover-card.d.ts +62 -0
- package/types/loomui-ng-ui-icon.d.ts +156 -0
- package/types/loomui-ng-ui-input-group.d.ts +130 -0
- package/types/loomui-ng-ui-input-otp.d.ts +149 -0
- package/types/loomui-ng-ui-input.d.ts +89 -0
- package/types/loomui-ng-ui-item.d.ts +157 -0
- package/types/loomui-ng-ui-kbd.d.ts +36 -0
- package/types/loomui-ng-ui-label.d.ts +19 -0
- package/types/loomui-ng-ui-marker.d.ts +61 -0
- package/types/loomui-ng-ui-menubar.d.ts +321 -0
- package/types/loomui-ng-ui-message-scroller.d.ts +138 -0
- package/types/loomui-ng-ui-message.d.ts +109 -0
- package/types/loomui-ng-ui-native-select.d.ts +84 -0
- package/types/loomui-ng-ui-navigation-menu.d.ts +160 -0
- package/types/loomui-ng-ui-pagination.d.ts +130 -0
- package/types/loomui-ng-ui-popover.d.ts +90 -0
- package/types/loomui-ng-ui-progress.d.ts +39 -0
- package/types/loomui-ng-ui-questionnaire.d.ts +274 -0
- package/types/loomui-ng-ui-radio-group.d.ts +109 -0
- package/types/loomui-ng-ui-resizable.d.ts +121 -0
- package/types/loomui-ng-ui-scroll-area.d.ts +44 -0
- package/types/loomui-ng-ui-select.d.ts +204 -0
- package/types/loomui-ng-ui-separator.d.ts +35 -0
- package/types/loomui-ng-ui-sheet.d.ts +124 -0
- package/types/loomui-ng-ui-sidebar.d.ts +485 -0
- package/types/loomui-ng-ui-skeleton.d.ts +20 -0
- package/types/loomui-ng-ui-slider.d.ts +103 -0
- package/types/loomui-ng-ui-spinner.d.ts +19 -0
- package/types/loomui-ng-ui-switch.d.ts +56 -0
- package/types/loomui-ng-ui-table.d.ts +148 -0
- package/types/loomui-ng-ui-tabs.d.ts +148 -0
- package/types/loomui-ng-ui-textarea.d.ts +52 -0
- package/types/loomui-ng-ui-toast.d.ts +97 -0
- package/types/loomui-ng-ui-toggle-group.d.ts +138 -0
- package/types/loomui-ng-ui-toggle.d.ts +63 -0
- package/types/loomui-ng-ui-tooltip.d.ts +63 -0
- package/types/loomui-ng-ui-typography.d.ts +42 -0
- package/types/loomui-ng-ui-utils.d.ts +392 -0
- package/types/loomui-ng-ui.d.ts +5 -0
- package/typography/README.md +29 -0
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
import { Directionality } from "@angular/cdk/bidi";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, booleanAttribute, computed, contentChildren, forwardRef, inject, input, numberAttribute, signal } from "@angular/core";
|
|
4
|
+
import * as i1 from "@loomui-ng/ui/utils";
|
|
5
|
+
import { UiElementHost, cn, nextId } from "@loomui-ng/ui/utils";
|
|
6
|
+
import { UiIconSvg } from "@loomui-ng/ui/icon";
|
|
7
|
+
const navigationMenuClass = "group/navigation-menu relative flex flex-1 items-center justify-center";
|
|
8
|
+
const navigationMenuListClass = "group flex flex-1 list-none items-center justify-center gap-0";
|
|
9
|
+
const navigationMenuItemClass = "relative hidden md:flex";
|
|
10
|
+
const navigationMenuTriggerClass = "group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted group";
|
|
11
|
+
const navigationMenuContentClass = "top-0 start-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95";
|
|
12
|
+
const navigationMenuLinkClass = "gap-2 p-2 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4 group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted flex";
|
|
13
|
+
const navigationMenuViewportClass = "origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-(--radix-navigation-menu-viewport-width) data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90";
|
|
14
|
+
const UI_NAVIGATION_MENU_GENERATED = [];
|
|
15
|
+
var UiNavigationMenu = class UiNavigationMenu {
|
|
16
|
+
delay = input(200, {
|
|
17
|
+
...ngDevMode ? { debugName: "delay" } : /* istanbul ignore next */ {},
|
|
18
|
+
transform: numberAttribute
|
|
19
|
+
});
|
|
20
|
+
userClass = input("", {
|
|
21
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
22
|
+
alias: "class"
|
|
23
|
+
});
|
|
24
|
+
dir = inject(Directionality);
|
|
25
|
+
value = signal(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
26
|
+
triggers = contentChildren(forwardRef(() => UiNavigationMenuTrigger), {
|
|
27
|
+
...ngDevMode ? { debugName: "triggers" } : /* istanbul ignore next */ {},
|
|
28
|
+
descendants: true
|
|
29
|
+
});
|
|
30
|
+
classes = computed(() => cn(navigationMenuClass, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
31
|
+
timer;
|
|
32
|
+
constructor() {
|
|
33
|
+
inject(DestroyRef).onDestroy(() => clearTimeout(this.timer));
|
|
34
|
+
}
|
|
35
|
+
openNow(id) {
|
|
36
|
+
clearTimeout(this.timer);
|
|
37
|
+
this.value.set(id);
|
|
38
|
+
}
|
|
39
|
+
openSoon(id) {
|
|
40
|
+
clearTimeout(this.timer);
|
|
41
|
+
this.timer = this.value() ? void 0 : setTimeout(() => this.value.set(id), this.delay());
|
|
42
|
+
if (this.value()) this.value.set(id);
|
|
43
|
+
}
|
|
44
|
+
closeSoon() {
|
|
45
|
+
clearTimeout(this.timer);
|
|
46
|
+
this.timer = setTimeout(() => this.value.set(null), 150);
|
|
47
|
+
}
|
|
48
|
+
keep() {
|
|
49
|
+
clearTimeout(this.timer);
|
|
50
|
+
}
|
|
51
|
+
close() {
|
|
52
|
+
clearTimeout(this.timer);
|
|
53
|
+
this.value.set(null);
|
|
54
|
+
}
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
56
|
+
minVersion: "12.0.0",
|
|
57
|
+
version: "22.2.2",
|
|
58
|
+
ngImport: i0,
|
|
59
|
+
type: UiNavigationMenu,
|
|
60
|
+
deps: [],
|
|
61
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
62
|
+
});
|
|
63
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
64
|
+
minVersion: "17.2.0",
|
|
65
|
+
version: "22.2.2",
|
|
66
|
+
type: UiNavigationMenu,
|
|
67
|
+
isStandalone: true,
|
|
68
|
+
selector: "nav[uiNavigationMenu], ui-navigation-menu",
|
|
69
|
+
inputs: {
|
|
70
|
+
delay: {
|
|
71
|
+
classPropertyName: "delay",
|
|
72
|
+
publicName: "delay",
|
|
73
|
+
isSignal: true,
|
|
74
|
+
isRequired: false,
|
|
75
|
+
transformFunction: null
|
|
76
|
+
},
|
|
77
|
+
userClass: {
|
|
78
|
+
classPropertyName: "userClass",
|
|
79
|
+
publicName: "class",
|
|
80
|
+
isSignal: true,
|
|
81
|
+
isRequired: false,
|
|
82
|
+
transformFunction: null
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
host: {
|
|
86
|
+
attributes: {
|
|
87
|
+
"aria-label": "Main",
|
|
88
|
+
"data-slot": "navigation-menu",
|
|
89
|
+
"data-orientation": "horizontal",
|
|
90
|
+
"data-viewport": "false"
|
|
91
|
+
},
|
|
92
|
+
properties: {
|
|
93
|
+
"attr.dir": "dir.value",
|
|
94
|
+
"attr.class": "classes()"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
queries: [{
|
|
98
|
+
propertyName: "triggers",
|
|
99
|
+
predicate: i0.forwardRef(() => UiNavigationMenuTrigger),
|
|
100
|
+
descendants: true,
|
|
101
|
+
isSignal: true
|
|
102
|
+
}],
|
|
103
|
+
exportAs: ["uiNavigationMenu"],
|
|
104
|
+
hostDirectives: [{ directive: i1.UiElementHost }],
|
|
105
|
+
ngImport: i0
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
109
|
+
minVersion: "12.0.0",
|
|
110
|
+
version: "22.2.2",
|
|
111
|
+
ngImport: i0,
|
|
112
|
+
type: UiNavigationMenu,
|
|
113
|
+
decorators: [{
|
|
114
|
+
type: Directive,
|
|
115
|
+
args: [{
|
|
116
|
+
selector: "nav[uiNavigationMenu], ui-navigation-menu",
|
|
117
|
+
hostDirectives: [UiElementHost],
|
|
118
|
+
exportAs: "uiNavigationMenu",
|
|
119
|
+
host: {
|
|
120
|
+
"aria-label": "Main",
|
|
121
|
+
"data-slot": "navigation-menu",
|
|
122
|
+
"data-orientation": "horizontal",
|
|
123
|
+
"data-viewport": "false",
|
|
124
|
+
"[attr.dir]": "dir.value",
|
|
125
|
+
"[attr.class]": "classes()"
|
|
126
|
+
}
|
|
127
|
+
}]
|
|
128
|
+
}],
|
|
129
|
+
ctorParameters: () => [],
|
|
130
|
+
propDecorators: {
|
|
131
|
+
delay: [{
|
|
132
|
+
type: i0.Input,
|
|
133
|
+
args: [{
|
|
134
|
+
isSignal: true,
|
|
135
|
+
alias: "delay",
|
|
136
|
+
required: false
|
|
137
|
+
}]
|
|
138
|
+
}],
|
|
139
|
+
userClass: [{
|
|
140
|
+
type: i0.Input,
|
|
141
|
+
args: [{
|
|
142
|
+
isSignal: true,
|
|
143
|
+
alias: "class",
|
|
144
|
+
required: false
|
|
145
|
+
}]
|
|
146
|
+
}],
|
|
147
|
+
triggers: [{
|
|
148
|
+
type: i0.ContentChildren,
|
|
149
|
+
args: [forwardRef(() => UiNavigationMenuTrigger), {
|
|
150
|
+
descendants: true,
|
|
151
|
+
isSignal: true
|
|
152
|
+
}]
|
|
153
|
+
}]
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
var UiNavigationMenuList = class UiNavigationMenuList {
|
|
157
|
+
userClass = input("", {
|
|
158
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
159
|
+
alias: "class"
|
|
160
|
+
});
|
|
161
|
+
classes = computed(() => cn(navigationMenuListClass, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
163
|
+
minVersion: "12.0.0",
|
|
164
|
+
version: "22.2.2",
|
|
165
|
+
ngImport: i0,
|
|
166
|
+
type: UiNavigationMenuList,
|
|
167
|
+
deps: [],
|
|
168
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
169
|
+
});
|
|
170
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
171
|
+
minVersion: "17.1.0",
|
|
172
|
+
version: "22.2.2",
|
|
173
|
+
type: UiNavigationMenuList,
|
|
174
|
+
isStandalone: true,
|
|
175
|
+
selector: "ul[uiNavigationMenuList], ui-navigation-menu-list",
|
|
176
|
+
inputs: { userClass: {
|
|
177
|
+
classPropertyName: "userClass",
|
|
178
|
+
publicName: "class",
|
|
179
|
+
isSignal: true,
|
|
180
|
+
isRequired: false,
|
|
181
|
+
transformFunction: null
|
|
182
|
+
} },
|
|
183
|
+
host: {
|
|
184
|
+
attributes: {
|
|
185
|
+
"data-slot": "navigation-menu-list",
|
|
186
|
+
"data-orientation": "horizontal"
|
|
187
|
+
},
|
|
188
|
+
properties: { "attr.class": "classes()" }
|
|
189
|
+
},
|
|
190
|
+
hostDirectives: [{ directive: i1.UiElementHost }],
|
|
191
|
+
ngImport: i0
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
195
|
+
minVersion: "12.0.0",
|
|
196
|
+
version: "22.2.2",
|
|
197
|
+
ngImport: i0,
|
|
198
|
+
type: UiNavigationMenuList,
|
|
199
|
+
decorators: [{
|
|
200
|
+
type: Directive,
|
|
201
|
+
args: [{
|
|
202
|
+
selector: "ul[uiNavigationMenuList], ui-navigation-menu-list",
|
|
203
|
+
hostDirectives: [UiElementHost],
|
|
204
|
+
host: {
|
|
205
|
+
"data-slot": "navigation-menu-list",
|
|
206
|
+
"data-orientation": "horizontal",
|
|
207
|
+
"[attr.class]": "classes()"
|
|
208
|
+
}
|
|
209
|
+
}]
|
|
210
|
+
}],
|
|
211
|
+
propDecorators: { userClass: [{
|
|
212
|
+
type: i0.Input,
|
|
213
|
+
args: [{
|
|
214
|
+
isSignal: true,
|
|
215
|
+
alias: "class",
|
|
216
|
+
required: false
|
|
217
|
+
}]
|
|
218
|
+
}] }
|
|
219
|
+
});
|
|
220
|
+
var UiNavigationMenuItem = class UiNavigationMenuItem {
|
|
221
|
+
id = nextId("ui-nav");
|
|
222
|
+
userClass = input("", {
|
|
223
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
224
|
+
alias: "class"
|
|
225
|
+
});
|
|
226
|
+
classes = computed(() => cn(navigationMenuItemClass.replace("hidden md:flex", "flex"), this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
227
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
228
|
+
minVersion: "12.0.0",
|
|
229
|
+
version: "22.2.2",
|
|
230
|
+
ngImport: i0,
|
|
231
|
+
type: UiNavigationMenuItem,
|
|
232
|
+
deps: [],
|
|
233
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
234
|
+
});
|
|
235
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
236
|
+
minVersion: "17.1.0",
|
|
237
|
+
version: "22.2.2",
|
|
238
|
+
type: UiNavigationMenuItem,
|
|
239
|
+
isStandalone: true,
|
|
240
|
+
selector: "li[uiNavigationMenuItem], ui-navigation-menu-item",
|
|
241
|
+
inputs: { userClass: {
|
|
242
|
+
classPropertyName: "userClass",
|
|
243
|
+
publicName: "class",
|
|
244
|
+
isSignal: true,
|
|
245
|
+
isRequired: false,
|
|
246
|
+
transformFunction: null
|
|
247
|
+
} },
|
|
248
|
+
host: {
|
|
249
|
+
attributes: { "data-slot": "navigation-menu-item" },
|
|
250
|
+
properties: { "attr.class": "classes()" }
|
|
251
|
+
},
|
|
252
|
+
hostDirectives: [{ directive: i1.UiElementHost }],
|
|
253
|
+
ngImport: i0
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
257
|
+
minVersion: "12.0.0",
|
|
258
|
+
version: "22.2.2",
|
|
259
|
+
ngImport: i0,
|
|
260
|
+
type: UiNavigationMenuItem,
|
|
261
|
+
decorators: [{
|
|
262
|
+
type: Directive,
|
|
263
|
+
args: [{
|
|
264
|
+
selector: "li[uiNavigationMenuItem], ui-navigation-menu-item",
|
|
265
|
+
hostDirectives: [UiElementHost],
|
|
266
|
+
host: {
|
|
267
|
+
"data-slot": "navigation-menu-item",
|
|
268
|
+
"[attr.class]": "classes()"
|
|
269
|
+
}
|
|
270
|
+
}]
|
|
271
|
+
}],
|
|
272
|
+
propDecorators: { userClass: [{
|
|
273
|
+
type: i0.Input,
|
|
274
|
+
args: [{
|
|
275
|
+
isSignal: true,
|
|
276
|
+
alias: "class",
|
|
277
|
+
required: false
|
|
278
|
+
}]
|
|
279
|
+
}] }
|
|
280
|
+
});
|
|
281
|
+
var UiNavigationMenuTrigger = class UiNavigationMenuTrigger {
|
|
282
|
+
nav = inject(UiNavigationMenu);
|
|
283
|
+
item = inject(UiNavigationMenuItem);
|
|
284
|
+
el = inject(ElementRef).nativeElement;
|
|
285
|
+
userClass = input("", {
|
|
286
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
287
|
+
alias: "class"
|
|
288
|
+
});
|
|
289
|
+
open = computed(() => this.nav.value() === this.item.id, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
290
|
+
classes = computed(() => cn(navigationMenuTriggerClass, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
291
|
+
toggle() {
|
|
292
|
+
this.open() ? this.nav.close() : this.nav.openNow(this.item.id);
|
|
293
|
+
}
|
|
294
|
+
onEnter(e) {
|
|
295
|
+
if (e.pointerType !== "touch") this.nav.openSoon(this.item.id);
|
|
296
|
+
}
|
|
297
|
+
onLeave(e) {
|
|
298
|
+
if (e.pointerType !== "touch") this.nav.closeSoon();
|
|
299
|
+
}
|
|
300
|
+
onKeydown(e) {
|
|
301
|
+
const triggers = this.nav.triggers();
|
|
302
|
+
const i = triggers.indexOf(this);
|
|
303
|
+
const rtl = this.nav.dir.value === "rtl";
|
|
304
|
+
const next = rtl ? "ArrowLeft" : "ArrowRight";
|
|
305
|
+
const prev = rtl ? "ArrowRight" : "ArrowLeft";
|
|
306
|
+
if (e.key === "ArrowDown") {
|
|
307
|
+
e.preventDefault();
|
|
308
|
+
this.nav.openNow(this.item.id);
|
|
309
|
+
setTimeout(() => this.el.closest("li")?.querySelector("[data-slot=navigation-menu-content] a, [data-slot=navigation-menu-content] button")?.focus(), 0);
|
|
310
|
+
} else if (e.key === "Escape") this.nav.close();
|
|
311
|
+
else if (e.key === next || e.key === prev || e.key === "Home" || e.key === "End") {
|
|
312
|
+
e.preventDefault();
|
|
313
|
+
triggers[e.key === "Home" ? 0 : e.key === "End" ? triggers.length - 1 : (i + (e.key === next ? 1 : -1) + triggers.length) % triggers.length]?.el.focus();
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
317
|
+
minVersion: "12.0.0",
|
|
318
|
+
version: "22.2.2",
|
|
319
|
+
ngImport: i0,
|
|
320
|
+
type: UiNavigationMenuTrigger,
|
|
321
|
+
deps: [],
|
|
322
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
323
|
+
});
|
|
324
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
325
|
+
minVersion: "17.1.0",
|
|
326
|
+
version: "22.2.2",
|
|
327
|
+
type: UiNavigationMenuTrigger,
|
|
328
|
+
isStandalone: true,
|
|
329
|
+
selector: "button[uiNavigationMenuTrigger], ui-navigation-menu-trigger",
|
|
330
|
+
inputs: { userClass: {
|
|
331
|
+
classPropertyName: "userClass",
|
|
332
|
+
publicName: "class",
|
|
333
|
+
isSignal: true,
|
|
334
|
+
isRequired: false,
|
|
335
|
+
transformFunction: null
|
|
336
|
+
} },
|
|
337
|
+
host: {
|
|
338
|
+
attributes: {
|
|
339
|
+
"type": "button",
|
|
340
|
+
"data-slot": "navigation-menu-trigger"
|
|
341
|
+
},
|
|
342
|
+
listeners: {
|
|
343
|
+
"click": "toggle()",
|
|
344
|
+
"pointerenter": "onEnter($event)",
|
|
345
|
+
"pointerleave": "onLeave($event)",
|
|
346
|
+
"keydown": "onKeydown($event)"
|
|
347
|
+
},
|
|
348
|
+
properties: {
|
|
349
|
+
"attr.aria-expanded": "open()",
|
|
350
|
+
"attr.aria-controls": "item.id + \"-content\"",
|
|
351
|
+
"attr.data-state": "open() ? \"open\" : \"closed\"",
|
|
352
|
+
"attr.class": "classes()"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
hostDirectives: [{ directive: i1.UiElementHost }],
|
|
356
|
+
ngImport: i0,
|
|
357
|
+
template: `
|
|
358
|
+
<ng-content />
|
|
359
|
+
<svg uiIcon="chevron-down" class="relative top-px ms-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180"></svg>
|
|
360
|
+
`,
|
|
361
|
+
isInline: true,
|
|
362
|
+
dependencies: [{
|
|
363
|
+
kind: "directive",
|
|
364
|
+
type: UiIconSvg,
|
|
365
|
+
selector: "svg[uiIcon]",
|
|
366
|
+
inputs: [
|
|
367
|
+
"uiIcon",
|
|
368
|
+
"icon",
|
|
369
|
+
"size",
|
|
370
|
+
"strokeWidth",
|
|
371
|
+
"absoluteStrokeWidth",
|
|
372
|
+
"color",
|
|
373
|
+
"label",
|
|
374
|
+
"class"
|
|
375
|
+
]
|
|
376
|
+
}],
|
|
377
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
381
|
+
minVersion: "12.0.0",
|
|
382
|
+
version: "22.2.2",
|
|
383
|
+
ngImport: i0,
|
|
384
|
+
type: UiNavigationMenuTrigger,
|
|
385
|
+
decorators: [{
|
|
386
|
+
type: Component,
|
|
387
|
+
args: [{
|
|
388
|
+
selector: "button[uiNavigationMenuTrigger], ui-navigation-menu-trigger",
|
|
389
|
+
hostDirectives: [UiElementHost],
|
|
390
|
+
imports: [UiIconSvg],
|
|
391
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
392
|
+
host: {
|
|
393
|
+
type: "button",
|
|
394
|
+
"data-slot": "navigation-menu-trigger",
|
|
395
|
+
"[attr.aria-expanded]": "open()",
|
|
396
|
+
"[attr.aria-controls]": "item.id + \"-content\"",
|
|
397
|
+
"[attr.data-state]": "open() ? \"open\" : \"closed\"",
|
|
398
|
+
"[attr.class]": "classes()",
|
|
399
|
+
"(click)": "toggle()",
|
|
400
|
+
"(pointerenter)": "onEnter($event)",
|
|
401
|
+
"(pointerleave)": "onLeave($event)",
|
|
402
|
+
"(keydown)": "onKeydown($event)"
|
|
403
|
+
},
|
|
404
|
+
template: `
|
|
405
|
+
<ng-content />
|
|
406
|
+
<svg uiIcon="chevron-down" class="relative top-px ms-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180"></svg>
|
|
407
|
+
`
|
|
408
|
+
}]
|
|
409
|
+
}],
|
|
410
|
+
propDecorators: { userClass: [{
|
|
411
|
+
type: i0.Input,
|
|
412
|
+
args: [{
|
|
413
|
+
isSignal: true,
|
|
414
|
+
alias: "class",
|
|
415
|
+
required: false
|
|
416
|
+
}]
|
|
417
|
+
}] }
|
|
418
|
+
});
|
|
419
|
+
var UiNavigationMenuContent = class UiNavigationMenuContent {
|
|
420
|
+
nav = inject(UiNavigationMenu);
|
|
421
|
+
item = inject(UiNavigationMenuItem);
|
|
422
|
+
el = inject(ElementRef).nativeElement;
|
|
423
|
+
userClass = input("", {
|
|
424
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
425
|
+
alias: "class"
|
|
426
|
+
});
|
|
427
|
+
open = computed(() => this.nav.value() === this.item.id, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
428
|
+
classes = computed(() => cn(navigationMenuContentClass, "absolute z-50 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
429
|
+
onEscape() {
|
|
430
|
+
this.nav.close();
|
|
431
|
+
this.el.closest("li")?.querySelector("[data-slot=navigation-menu-trigger]")?.focus();
|
|
432
|
+
}
|
|
433
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
434
|
+
minVersion: "12.0.0",
|
|
435
|
+
version: "22.2.2",
|
|
436
|
+
ngImport: i0,
|
|
437
|
+
type: UiNavigationMenuContent,
|
|
438
|
+
deps: [],
|
|
439
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
440
|
+
});
|
|
441
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
442
|
+
minVersion: "17.1.0",
|
|
443
|
+
version: "22.2.2",
|
|
444
|
+
type: UiNavigationMenuContent,
|
|
445
|
+
isStandalone: true,
|
|
446
|
+
selector: "[uiNavigationMenuContent], ui-navigation-menu-content",
|
|
447
|
+
inputs: { userClass: {
|
|
448
|
+
classPropertyName: "userClass",
|
|
449
|
+
publicName: "class",
|
|
450
|
+
isSignal: true,
|
|
451
|
+
isRequired: false,
|
|
452
|
+
transformFunction: null
|
|
453
|
+
} },
|
|
454
|
+
host: {
|
|
455
|
+
attributes: {
|
|
456
|
+
"data-slot": "navigation-menu-content",
|
|
457
|
+
"data-orientation": "horizontal"
|
|
458
|
+
},
|
|
459
|
+
listeners: {
|
|
460
|
+
"pointerenter": "nav.keep()",
|
|
461
|
+
"pointerleave": "nav.closeSoon()",
|
|
462
|
+
"keydown.escape": "onEscape()"
|
|
463
|
+
},
|
|
464
|
+
properties: {
|
|
465
|
+
"id": "item.id + \"-content\"",
|
|
466
|
+
"attr.data-state": "open() ? \"open\" : \"closed\"",
|
|
467
|
+
"hidden": "!open()",
|
|
468
|
+
"attr.class": "classes()"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
hostDirectives: [{ directive: i1.UiElementHost }],
|
|
472
|
+
ngImport: i0
|
|
473
|
+
});
|
|
474
|
+
};
|
|
475
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
476
|
+
minVersion: "12.0.0",
|
|
477
|
+
version: "22.2.2",
|
|
478
|
+
ngImport: i0,
|
|
479
|
+
type: UiNavigationMenuContent,
|
|
480
|
+
decorators: [{
|
|
481
|
+
type: Directive,
|
|
482
|
+
args: [{
|
|
483
|
+
selector: "[uiNavigationMenuContent], ui-navigation-menu-content",
|
|
484
|
+
hostDirectives: [UiElementHost],
|
|
485
|
+
host: {
|
|
486
|
+
"data-slot": "navigation-menu-content",
|
|
487
|
+
"data-orientation": "horizontal",
|
|
488
|
+
"[id]": "item.id + \"-content\"",
|
|
489
|
+
"[attr.data-state]": "open() ? \"open\" : \"closed\"",
|
|
490
|
+
"[hidden]": "!open()",
|
|
491
|
+
"[attr.class]": "classes()",
|
|
492
|
+
"(pointerenter)": "nav.keep()",
|
|
493
|
+
"(pointerleave)": "nav.closeSoon()",
|
|
494
|
+
"(keydown.escape)": "onEscape()"
|
|
495
|
+
}
|
|
496
|
+
}]
|
|
497
|
+
}],
|
|
498
|
+
propDecorators: { userClass: [{
|
|
499
|
+
type: i0.Input,
|
|
500
|
+
args: [{
|
|
501
|
+
isSignal: true,
|
|
502
|
+
alias: "class",
|
|
503
|
+
required: false
|
|
504
|
+
}]
|
|
505
|
+
}] }
|
|
506
|
+
});
|
|
507
|
+
var UiNavigationMenuLink = class UiNavigationMenuLink {
|
|
508
|
+
nav = inject(UiNavigationMenu);
|
|
509
|
+
active = input(false, {
|
|
510
|
+
...ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {},
|
|
511
|
+
transform: booleanAttribute
|
|
512
|
+
});
|
|
513
|
+
userClass = input("", {
|
|
514
|
+
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
515
|
+
alias: "class"
|
|
516
|
+
});
|
|
517
|
+
classes = computed(() => cn(navigationMenuLinkClass, this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
518
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
519
|
+
minVersion: "12.0.0",
|
|
520
|
+
version: "22.2.2",
|
|
521
|
+
ngImport: i0,
|
|
522
|
+
type: UiNavigationMenuLink,
|
|
523
|
+
deps: [],
|
|
524
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
525
|
+
});
|
|
526
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
527
|
+
minVersion: "17.1.0",
|
|
528
|
+
version: "22.2.2",
|
|
529
|
+
type: UiNavigationMenuLink,
|
|
530
|
+
isStandalone: true,
|
|
531
|
+
selector: "a[uiNavigationMenuLink], ui-navigation-menu-link",
|
|
532
|
+
inputs: {
|
|
533
|
+
active: {
|
|
534
|
+
classPropertyName: "active",
|
|
535
|
+
publicName: "active",
|
|
536
|
+
isSignal: true,
|
|
537
|
+
isRequired: false,
|
|
538
|
+
transformFunction: null
|
|
539
|
+
},
|
|
540
|
+
userClass: {
|
|
541
|
+
classPropertyName: "userClass",
|
|
542
|
+
publicName: "class",
|
|
543
|
+
isSignal: true,
|
|
544
|
+
isRequired: false,
|
|
545
|
+
transformFunction: null
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
host: {
|
|
549
|
+
attributes: { "data-slot": "navigation-menu-link" },
|
|
550
|
+
listeners: { "click": "nav.close()" },
|
|
551
|
+
properties: {
|
|
552
|
+
"attr.data-active": "active() ? \"\" : null",
|
|
553
|
+
"attr.aria-current": "active() ? \"page\" : null",
|
|
554
|
+
"attr.class": "classes()"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
hostDirectives: [{ directive: i1.UiElementHost }],
|
|
558
|
+
ngImport: i0
|
|
559
|
+
});
|
|
560
|
+
};
|
|
561
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
562
|
+
minVersion: "12.0.0",
|
|
563
|
+
version: "22.2.2",
|
|
564
|
+
ngImport: i0,
|
|
565
|
+
type: UiNavigationMenuLink,
|
|
566
|
+
decorators: [{
|
|
567
|
+
type: Directive,
|
|
568
|
+
args: [{
|
|
569
|
+
selector: "a[uiNavigationMenuLink], ui-navigation-menu-link",
|
|
570
|
+
hostDirectives: [UiElementHost],
|
|
571
|
+
host: {
|
|
572
|
+
"data-slot": "navigation-menu-link",
|
|
573
|
+
"[attr.data-active]": "active() ? \"\" : null",
|
|
574
|
+
"[attr.aria-current]": "active() ? \"page\" : null",
|
|
575
|
+
"[attr.class]": "classes()",
|
|
576
|
+
"(click)": "nav.close()"
|
|
577
|
+
}
|
|
578
|
+
}]
|
|
579
|
+
}],
|
|
580
|
+
propDecorators: {
|
|
581
|
+
active: [{
|
|
582
|
+
type: i0.Input,
|
|
583
|
+
args: [{
|
|
584
|
+
isSignal: true,
|
|
585
|
+
alias: "active",
|
|
586
|
+
required: false
|
|
587
|
+
}]
|
|
588
|
+
}],
|
|
589
|
+
userClass: [{
|
|
590
|
+
type: i0.Input,
|
|
591
|
+
args: [{
|
|
592
|
+
isSignal: true,
|
|
593
|
+
alias: "class",
|
|
594
|
+
required: false
|
|
595
|
+
}]
|
|
596
|
+
}]
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
const UI_NAVIGATION_MENU = [
|
|
600
|
+
UiNavigationMenu,
|
|
601
|
+
UiNavigationMenuList,
|
|
602
|
+
UiNavigationMenuItem,
|
|
603
|
+
UiNavigationMenuTrigger,
|
|
604
|
+
UiNavigationMenuContent,
|
|
605
|
+
UiNavigationMenuLink
|
|
606
|
+
];
|
|
607
|
+
export { UI_NAVIGATION_MENU, UI_NAVIGATION_MENU_GENERATED, UiNavigationMenu, UiNavigationMenuContent, UiNavigationMenuItem, UiNavigationMenuLink, UiNavigationMenuList, UiNavigationMenuTrigger, navigationMenuClass, navigationMenuContentClass, navigationMenuItemClass, navigationMenuLinkClass, navigationMenuListClass, navigationMenuTriggerClass, navigationMenuViewportClass };
|
|
608
|
+
|
|
609
|
+
//# sourceMappingURL=loomui-ng-ui-navigation-menu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loomui-ng-ui-navigation-menu.mjs","names":[],"sources":["../../../libs/ui/navigation-menu/navigation-menu.ts","../../../libs/ui/navigation-menu/navigation-menu.manual.ts"],"sourcesContent":["// GENERATED by tools/gen-ui.mjs from docs/evidence/slots/navigation-menu.json.\n// Change tools/ui-specs.mjs and regenerate; hand-written parts live in ./navigation-menu.manual.ts.\nimport { Directive, computed, input } from '@angular/core';\nimport { cn } from '@loomui-ng/ui/utils';\n\nexport const navigationMenuClass =\n 'group/navigation-menu relative flex flex-1 items-center justify-center';\n\nexport const navigationMenuListClass =\n 'group flex flex-1 list-none items-center justify-center gap-0';\n\nexport const navigationMenuItemClass =\n 'relative hidden md:flex';\n\nexport const navigationMenuTriggerClass =\n 'group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted group';\n\nexport const navigationMenuContentClass =\n 'top-0 start-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95';\n\nexport const navigationMenuLinkClass =\n 'gap-2 p-2 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*=\\'size-\\'])]:size-4 group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted flex';\n\nexport const navigationMenuViewportClass =\n 'origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-(--radix-navigation-menu-viewport-width) data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90';\n\nexport const UI_NAVIGATION_MENU_GENERATED = [] as const;\n","import { Directionality } from '@angular/cdk/bidi';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n DestroyRef,\n Directive,\n ElementRef,\n forwardRef,\n inject,\n input,\n numberAttribute,\n signal,\n} from '@angular/core';\nimport { cn } from '@loomui-ng/ui/utils';\nimport { nextId } from '@loomui-ng/ui/utils';\nimport {\n navigationMenuClass,\n navigationMenuContentClass,\n navigationMenuItemClass,\n navigationMenuLinkClass,\n navigationMenuListClass,\n navigationMenuTriggerClass,\n} from './navigation-menu';\nimport { UiIconSvg } from '@loomui-ng/ui/icon';\nimport { UiElementHost } from '@loomui-ng/ui/utils';\n\n/**\n * <nav uiNavigationMenu>\n * <ul uiNavigationMenuList>\n * <li uiNavigationMenuItem>\n * <button uiNavigationMenuTrigger>Getting started</button>\n * <div uiNavigationMenuContent> <a uiNavigationMenuLink href=\"/docs\">Docs</a> </div>\n * </li>\n * <li uiNavigationMenuItem><a uiNavigationMenuLink href=\"/pricing\">Pricing</a></li>\n * </ul>\n * </nav>\n * Observed (Radix): nav[aria-label=Main][data-orientation][data-viewport], triggers with aria-expanded/data-state.\n * Deviation: always the \"viewport=false\" layout — content opens under its own item (no shared animated viewport that morphs\n * between items). Hover opens after 200ms, click toggles, Esc closes, ArrowLeft/Right move between triggers (RTL-mirrored),\n * ArrowDown opens and focuses the first link.\n */\n@Directive({\n selector: 'nav[uiNavigationMenu], ui-navigation-menu', hostDirectives: [UiElementHost],\n exportAs: 'uiNavigationMenu',\n host: {\n 'aria-label': 'Main',\n 'data-slot': 'navigation-menu',\n 'data-orientation': 'horizontal',\n 'data-viewport': 'false',\n '[attr.dir]': 'dir.value',\n '[attr.class]': 'classes()',\n },\n})\nexport class UiNavigationMenu {\n readonly delay = input(200, { transform: numberAttribute });\n readonly userClass = input<string>('', { alias: 'class' });\n readonly dir = inject(Directionality);\n readonly value = signal<string | null>(null);\n readonly triggers = contentChildren(forwardRef(() => UiNavigationMenuTrigger), { descendants: true });\n protected readonly classes = computed(() => cn(navigationMenuClass, this.userClass()));\n private timer: ReturnType<typeof setTimeout> | undefined;\n\n constructor() {\n inject(DestroyRef).onDestroy(() => clearTimeout(this.timer));\n }\n openNow(id: string): void {\n clearTimeout(this.timer);\n this.value.set(id);\n }\n openSoon(id: string): void {\n clearTimeout(this.timer);\n this.timer = this.value() ? undefined : setTimeout(() => this.value.set(id), this.delay());\n if (this.value()) this.value.set(id);\n }\n closeSoon(): void {\n clearTimeout(this.timer);\n this.timer = setTimeout(() => this.value.set(null), 150);\n }\n keep(): void {\n clearTimeout(this.timer);\n }\n close(): void {\n clearTimeout(this.timer);\n this.value.set(null);\n }\n}\n\n@Directive({\n selector: 'ul[uiNavigationMenuList], ui-navigation-menu-list', hostDirectives: [UiElementHost],\n host: { 'data-slot': 'navigation-menu-list', 'data-orientation': 'horizontal', '[attr.class]': 'classes()' },\n})\nexport class UiNavigationMenuList {\n readonly userClass = input<string>('', { alias: 'class' });\n protected readonly classes = computed(() => cn(navigationMenuListClass, this.userClass()));\n}\n\n@Directive({\n selector: 'li[uiNavigationMenuItem], ui-navigation-menu-item', hostDirectives: [UiElementHost],\n host: { 'data-slot': 'navigation-menu-item', '[attr.class]': 'classes()' },\n})\nexport class UiNavigationMenuItem {\n readonly id = nextId('ui-nav');\n readonly userClass = input<string>('', { alias: 'class' });\n // Observed item class carries `hidden md:flex` from the site header demo; the base item is just `relative`.\n protected readonly classes = computed(() => cn(navigationMenuItemClass.replace('hidden md:flex', 'flex'), this.userClass()));\n}\n\n@Component({\n selector: 'button[uiNavigationMenuTrigger], ui-navigation-menu-trigger', hostDirectives: [UiElementHost],\n imports: [UiIconSvg],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n type: 'button',\n 'data-slot': 'navigation-menu-trigger',\n '[attr.aria-expanded]': 'open()',\n '[attr.aria-controls]': 'item.id + \"-content\"',\n '[attr.data-state]': 'open() ? \"open\" : \"closed\"',\n '[attr.class]': 'classes()',\n '(click)': 'toggle()',\n '(pointerenter)': 'onEnter($event)',\n '(pointerleave)': 'onLeave($event)',\n '(keydown)': 'onKeydown($event)',\n },\n template: `\n <ng-content />\n <svg uiIcon=\"chevron-down\" class=\"relative top-px ms-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180\"></svg>\n `,\n})\nexport class UiNavigationMenuTrigger {\n protected readonly nav = inject(UiNavigationMenu);\n protected readonly item = inject(UiNavigationMenuItem);\n readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly userClass = input<string>('', { alias: 'class' });\n protected readonly open = computed(() => this.nav.value() === this.item.id);\n protected readonly classes = computed(() => cn(navigationMenuTriggerClass, this.userClass()));\n\n protected toggle(): void {\n this.open() ? this.nav.close() : this.nav.openNow(this.item.id);\n }\n protected onEnter(e: PointerEvent): void {\n if (e.pointerType !== 'touch') this.nav.openSoon(this.item.id);\n }\n protected onLeave(e: PointerEvent): void {\n if (e.pointerType !== 'touch') this.nav.closeSoon();\n }\n protected onKeydown(e: KeyboardEvent): void {\n const triggers = this.nav.triggers();\n const i = triggers.indexOf(this);\n const rtl = this.nav.dir.value === 'rtl';\n const next = rtl ? 'ArrowLeft' : 'ArrowRight';\n const prev = rtl ? 'ArrowRight' : 'ArrowLeft';\n if (e.key === 'ArrowDown') {\n e.preventDefault();\n this.nav.openNow(this.item.id);\n setTimeout(() => this.el.closest('li')?.querySelector<HTMLElement>('[data-slot=navigation-menu-content] a, [data-slot=navigation-menu-content] button')?.focus(), 0);\n } else if (e.key === 'Escape') {\n this.nav.close();\n } else if (e.key === next || e.key === prev || e.key === 'Home' || e.key === 'End') {\n e.preventDefault();\n const t = e.key === 'Home' ? 0 : e.key === 'End' ? triggers.length - 1 : (i + (e.key === next ? 1 : -1) + triggers.length) % triggers.length;\n triggers[t]?.el.focus();\n }\n }\n}\n\n@Directive({\n selector: '[uiNavigationMenuContent], ui-navigation-menu-content', hostDirectives: [UiElementHost],\n host: {\n 'data-slot': 'navigation-menu-content',\n 'data-orientation': 'horizontal',\n '[id]': 'item.id + \"-content\"',\n '[attr.data-state]': 'open() ? \"open\" : \"closed\"',\n '[hidden]': '!open()',\n '[attr.class]': 'classes()',\n '(pointerenter)': 'nav.keep()',\n '(pointerleave)': 'nav.closeSoon()',\n '(keydown.escape)': 'onEscape()',\n },\n})\nexport class UiNavigationMenuContent {\n protected readonly nav = inject(UiNavigationMenu);\n protected readonly item = inject(UiNavigationMenuItem);\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly userClass = input<string>('', { alias: 'class' });\n protected readonly open = computed(() => this.nav.value() === this.item.id);\n protected readonly classes = computed(() =>\n cn(\n navigationMenuContentClass,\n 'absolute z-50 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',\n this.userClass(),\n ),\n );\n protected onEscape(): void {\n this.nav.close();\n this.el.closest('li')?.querySelector<HTMLElement>('[data-slot=navigation-menu-trigger]')?.focus();\n }\n}\n\n@Directive({\n selector: 'a[uiNavigationMenuLink], ui-navigation-menu-link', hostDirectives: [UiElementHost],\n host: {\n 'data-slot': 'navigation-menu-link',\n '[attr.data-active]': 'active() ? \"\" : null',\n '[attr.aria-current]': 'active() ? \"page\" : null',\n '[attr.class]': 'classes()',\n '(click)': 'nav.close()',\n },\n})\nexport class UiNavigationMenuLink {\n protected readonly nav = inject(UiNavigationMenu);\n readonly active = input(false, { transform: booleanAttribute });\n readonly userClass = input<string>('', { alias: 'class' });\n protected readonly classes = computed(() => cn(navigationMenuLinkClass, this.userClass()));\n}\n\nexport const UI_NAVIGATION_MENU = [\n UiNavigationMenu,\n UiNavigationMenuList,\n UiNavigationMenuItem,\n UiNavigationMenuTrigger,\n UiNavigationMenuContent,\n UiNavigationMenuLink,\n] as const;\n"],"mappings":";;;;;;AAKA,MAAa,sBACX;AAEF,MAAa,0BACX;AAEF,MAAa,0BACX;AAEF,MAAa,6BACX;AAEF,MAAa,6BACX;AAEF,MAAa,0BACX;AAEF,MAAa,8BACX;AAEF,MAAa,+BAA+B,CAAA;AC8B5C,IAAa,mBAAb,MAAa,iBAAgB;CAClB,QAAQ,MAAM,KAAG;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAe,CAAA;CAC/C,YAAY,MAAc,IAAE;EAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;EAAI,OAAO;CAAO,CAAA;CAC9C,MAAM,OAAO,cAAc;CAC3B,QAAQ,OAAsB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CACnC,WAAW,gBAAgB,iBAAiB,uBAAuB,GAAC;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,aAAa;CAAI,CAAA;CAC/E,UAAU,eAAe,GAAG,qBAAqB,KAAK,UAAS,CAAE,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC9E;CAER,cAAA;EACE,OAAO,UAAU,CAAC,CAAC,gBAAgB,aAAa,KAAK,KAAK,CAAC;CAC7D;CACA,QAAQ,IAAU;EAChB,aAAa,KAAK,KAAK;EACvB,KAAK,MAAM,IAAI,EAAE;CACnB;CACA,SAAS,IAAU;EACjB,aAAa,KAAK,KAAK;EACvB,KAAK,QAAQ,KAAK,MAAK,IAAK,SAAY,iBAAiB,KAAK,MAAM,IAAI,EAAE,GAAG,KAAK,MAAK,CAAE;EACzF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