@fragiola/primitives-angular 0.0.0-stage → 0.1.0
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/CHANGELOG.md +67 -0
- package/LICENSE +21 -0
- package/README.md +54 -2
- package/fesm2022/fragiola-primitives-angular-accordion.mjs +567 -0
- package/fesm2022/fragiola-primitives-angular-accordion.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs +562 -0
- package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs +79 -0
- package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-async-list.mjs +44 -0
- package/fesm2022/fragiola-primitives-angular-async-list.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs +243 -0
- package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-autocomplete.mjs +1751 -0
- package/fesm2022/fragiola-primitives-angular-autocomplete.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-avatar.mjs +308 -0
- package/fesm2022/fragiola-primitives-angular-avatar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs +355 -0
- package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-button.mjs +156 -0
- package/fesm2022/fragiola-primitives-angular-button.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs +126 -0
- package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-calendar-view.mjs +289 -0
- package/fesm2022/fragiola-primitives-angular-calendar-view.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-calendar.mjs +1222 -0
- package/fesm2022/fragiola-primitives-angular-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-carousel.mjs +1031 -0
- package/fesm2022/fragiola-primitives-angular-carousel.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-cascade-select.mjs +1391 -0
- package/fesm2022/fragiola-primitives-angular-cascade-select.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs +221 -0
- package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-checkbox.mjs +474 -0
- package/fesm2022/fragiola-primitives-angular-checkbox.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-clipboard.mjs +389 -0
- package/fesm2022/fragiola-primitives-angular-clipboard.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-collapsible.mjs +314 -0
- package/fesm2022/fragiola-primitives-angular-collapsible.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-area.mjs +609 -0
- package/fesm2022/fragiola-primitives-angular-color-area.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-field.mjs +675 -0
- package/fesm2022/fragiola-primitives-angular-color-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs +572 -0
- package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-picker.mjs +528 -0
- package/fesm2022/fragiola-primitives-angular-color-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-slider.mjs +868 -0
- package/fesm2022/fragiola-primitives-angular-color-slider.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs +503 -0
- package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-swatch.mjs +141 -0
- package/fesm2022/fragiola-primitives-angular-color-swatch.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-color-wheel.mjs +554 -0
- package/fesm2022/fragiola-primitives-angular-color-wheel.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs +247 -0
- package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-combobox.mjs +2083 -0
- package/fesm2022/fragiola-primitives-angular-combobox.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-command-virtual.mjs +263 -0
- package/fesm2022/fragiola-primitives-angular-command-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-command.mjs +977 -0
- package/fesm2022/fragiola-primitives-angular-command.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-context-menu.mjs +1012 -0
- package/fesm2022/fragiola-primitives-angular-context-menu.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-field.mjs +1030 -0
- package/fesm2022/fragiola-primitives-angular-date-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs +511 -0
- package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-picker.mjs +991 -0
- package/fesm2022/fragiola-primitives-angular-date-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-range-field.mjs +847 -0
- package/fesm2022/fragiola-primitives-angular-date-range-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs +260 -0
- package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs +128 -0
- package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-dialog.mjs +1076 -0
- package/fesm2022/fragiola-primitives-angular-dialog.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-direction.mjs +82 -0
- package/fesm2022/fragiola-primitives-angular-direction.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-drawer.mjs +890 -0
- package/fesm2022/fragiola-primitives-angular-drawer.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-drop-zone.mjs +189 -0
- package/fesm2022/fragiola-primitives-angular-drop-zone.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-editable.mjs +955 -0
- package/fesm2022/fragiola-primitives-angular-editable.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-field.mjs +929 -0
- package/fesm2022/fragiola-primitives-angular-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-fieldset.mjs +164 -0
- package/fesm2022/fragiola-primitives-angular-fieldset.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-file-upload.mjs +1370 -0
- package/fesm2022/fragiola-primitives-angular-file-upload.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-form.mjs +162 -0
- package/fesm2022/fragiola-primitives-angular-form.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-hover-card.mjs +906 -0
- package/fesm2022/fragiola-primitives-angular-hover-card.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-internal.mjs +980 -0
- package/fesm2022/fragiola-primitives-angular-internal.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-label.mjs +65 -0
- package/fesm2022/fragiola-primitives-angular-label.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-link.mjs +109 -0
- package/fesm2022/fragiola-primitives-angular-link.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs +657 -0
- package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-listbox.mjs +851 -0
- package/fesm2022/fragiola-primitives-angular-listbox.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-menu.mjs +2258 -0
- package/fesm2022/fragiola-primitives-angular-menu.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-menubar.mjs +303 -0
- package/fesm2022/fragiola-primitives-angular-menubar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-meter.mjs +410 -0
- package/fesm2022/fragiola-primitives-angular-meter.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-month-calendar.mjs +1066 -0
- package/fesm2022/fragiola-primitives-angular-month-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-month-picker.mjs +514 -0
- package/fesm2022/fragiola-primitives-angular-month-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs +163 -0
- package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs +177 -0
- package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs +216 -0
- package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs +1413 -0
- package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-number-field.mjs +1210 -0
- package/fesm2022/fragiola-primitives-angular-number-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-otp-field.mjs +751 -0
- package/fesm2022/fragiola-primitives-angular-otp-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-pagination.mjs +758 -0
- package/fesm2022/fragiola-primitives-angular-pagination.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-password-input.mjs +542 -0
- package/fesm2022/fragiola-primitives-angular-password-input.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-popover.mjs +1011 -0
- package/fesm2022/fragiola-primitives-angular-popover.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-progress.mjs +472 -0
- package/fesm2022/fragiola-primitives-angular-progress.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-radio-group.mjs +321 -0
- package/fesm2022/fragiola-primitives-angular-radio-group.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-radio.mjs +273 -0
- package/fesm2022/fragiola-primitives-angular-radio.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-range-calendar.mjs +108 -0
- package/fesm2022/fragiola-primitives-angular-range-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-rating.mjs +643 -0
- package/fesm2022/fragiola-primitives-angular-rating.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-render.mjs +1 -0
- package/fesm2022/fragiola-primitives-angular-scroll-area.mjs +553 -0
- package/fesm2022/fragiola-primitives-angular-scroll-area.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-search-field.mjs +487 -0
- package/fesm2022/fragiola-primitives-angular-search-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-segmented-control.mjs +762 -0
- package/fesm2022/fragiola-primitives-angular-segmented-control.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-select-virtual.mjs +246 -0
- package/fesm2022/fragiola-primitives-angular-select-virtual.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-select.mjs +1433 -0
- package/fesm2022/fragiola-primitives-angular-select.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-separator.mjs +102 -0
- package/fesm2022/fragiola-primitives-angular-separator.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-slider.mjs +1090 -0
- package/fesm2022/fragiola-primitives-angular-slider.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-steps.mjs +819 -0
- package/fesm2022/fragiola-primitives-angular-steps.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-switch.mjs +422 -0
- package/fesm2022/fragiola-primitives-angular-switch.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-tabs.mjs +726 -0
- package/fesm2022/fragiola-primitives-angular-tabs.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-tag-group.mjs +768 -0
- package/fesm2022/fragiola-primitives-angular-tag-group.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-tags-input.mjs +1126 -0
- package/fesm2022/fragiola-primitives-angular-tags-input.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-time-field.mjs +187 -0
- package/fesm2022/fragiola-primitives-angular-time-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-time-range-field.mjs +188 -0
- package/fesm2022/fragiola-primitives-angular-time-range-field.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-toast.mjs +744 -0
- package/fesm2022/fragiola-primitives-angular-toast.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-toggle-group.mjs +245 -0
- package/fesm2022/fragiola-primitives-angular-toggle-group.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-toggle.mjs +229 -0
- package/fesm2022/fragiola-primitives-angular-toggle.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-toolbar.mjs +623 -0
- package/fesm2022/fragiola-primitives-angular-toolbar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-tooltip.mjs +975 -0
- package/fesm2022/fragiola-primitives-angular-tooltip.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-year-calendar.mjs +163 -0
- package/fesm2022/fragiola-primitives-angular-year-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-year-picker.mjs +177 -0
- package/fesm2022/fragiola-primitives-angular-year-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs +163 -0
- package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs +177 -0
- package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs.map +1 -0
- package/fesm2022/fragiola-primitives-angular.mjs +94 -0
- package/package.json +437 -3
- package/types/fragiola-primitives-angular-accordion.d.ts +154 -0
- package/types/fragiola-primitives-angular-alert-dialog.d.ts +176 -0
- package/types/fragiola-primitives-angular-aspect-ratio.d.ts +25 -0
- package/types/fragiola-primitives-angular-async-list.d.ts +32 -0
- package/types/fragiola-primitives-angular-autocomplete-virtual.d.ts +82 -0
- package/types/fragiola-primitives-angular-autocomplete.d.ts +496 -0
- package/types/fragiola-primitives-angular-avatar.d.ts +94 -0
- package/types/fragiola-primitives-angular-breadcrumbs.d.ts +62 -0
- package/types/fragiola-primitives-angular-button.d.ts +66 -0
- package/types/fragiola-primitives-angular-calendar-preset.d.ts +35 -0
- package/types/fragiola-primitives-angular-calendar-view.d.ts +80 -0
- package/types/fragiola-primitives-angular-calendar.d.ts +414 -0
- package/types/fragiola-primitives-angular-carousel.d.ts +300 -0
- package/types/fragiola-primitives-angular-cascade-select.d.ts +404 -0
- package/types/fragiola-primitives-angular-checkbox-group.d.ts +74 -0
- package/types/fragiola-primitives-angular-checkbox.d.ts +111 -0
- package/types/fragiola-primitives-angular-clipboard.d.ts +106 -0
- package/types/fragiola-primitives-angular-collapsible.d.ts +88 -0
- package/types/fragiola-primitives-angular-color-area.d.ts +174 -0
- package/types/fragiola-primitives-angular-color-field.d.ts +174 -0
- package/types/fragiola-primitives-angular-color-picker-popover.d.ts +180 -0
- package/types/fragiola-primitives-angular-color-picker.d.ts +137 -0
- package/types/fragiola-primitives-angular-color-slider.d.ts +228 -0
- package/types/fragiola-primitives-angular-color-swatch-picker.d.ts +146 -0
- package/types/fragiola-primitives-angular-color-swatch.d.ts +43 -0
- package/types/fragiola-primitives-angular-color-wheel.d.ts +144 -0
- package/types/fragiola-primitives-angular-combobox-virtual.d.ts +84 -0
- package/types/fragiola-primitives-angular-combobox.d.ts +582 -0
- package/types/fragiola-primitives-angular-command-virtual.d.ts +93 -0
- package/types/fragiola-primitives-angular-command.d.ts +283 -0
- package/types/fragiola-primitives-angular-context-menu.d.ts +278 -0
- package/types/fragiola-primitives-angular-date-field.d.ts +486 -0
- package/types/fragiola-primitives-angular-date-picker-input.d.ts +139 -0
- package/types/fragiola-primitives-angular-date-picker.d.ts +331 -0
- package/types/fragiola-primitives-angular-date-range-field.d.ts +333 -0
- package/types/fragiola-primitives-angular-date-range-picker-input.d.ts +89 -0
- package/types/fragiola-primitives-angular-date-range-picker.d.ts +35 -0
- package/types/fragiola-primitives-angular-dialog.d.ts +359 -0
- package/types/fragiola-primitives-angular-direction.d.ts +31 -0
- package/types/fragiola-primitives-angular-drawer.d.ts +242 -0
- package/types/fragiola-primitives-angular-drop-zone.d.ts +68 -0
- package/types/fragiola-primitives-angular-editable.d.ts +219 -0
- package/types/fragiola-primitives-angular-field.d.ts +397 -0
- package/types/fragiola-primitives-angular-fieldset.d.ts +47 -0
- package/types/fragiola-primitives-angular-file-upload.d.ts +351 -0
- package/types/fragiola-primitives-angular-form.d.ts +44 -0
- package/types/fragiola-primitives-angular-hover-card.d.ts +279 -0
- package/types/fragiola-primitives-angular-internal.d.ts +695 -0
- package/types/fragiola-primitives-angular-label.d.ts +14 -0
- package/types/fragiola-primitives-angular-link.d.ts +33 -0
- package/types/fragiola-primitives-angular-listbox-virtual.d.ts +193 -0
- package/types/fragiola-primitives-angular-listbox.d.ts +237 -0
- package/types/fragiola-primitives-angular-menu.d.ts +758 -0
- package/types/fragiola-primitives-angular-menubar.d.ts +76 -0
- package/types/fragiola-primitives-angular-meter.d.ts +117 -0
- package/types/fragiola-primitives-angular-month-calendar.d.ts +380 -0
- package/types/fragiola-primitives-angular-month-picker.d.ts +183 -0
- package/types/fragiola-primitives-angular-month-range-calendar.d.ts +54 -0
- package/types/fragiola-primitives-angular-month-range-picker.d.ts +56 -0
- package/types/fragiola-primitives-angular-multiple-calendar.d.ts +73 -0
- package/types/fragiola-primitives-angular-navigation-menu.d.ts +355 -0
- package/types/fragiola-primitives-angular-number-field.d.ts +305 -0
- package/types/fragiola-primitives-angular-otp-field.d.ts +210 -0
- package/types/fragiola-primitives-angular-pagination.d.ts +239 -0
- package/types/fragiola-primitives-angular-password-input.d.ts +149 -0
- package/types/fragiola-primitives-angular-popover.d.ts +303 -0
- package/types/fragiola-primitives-angular-progress.d.ts +126 -0
- package/types/fragiola-primitives-angular-radio-group.d.ts +123 -0
- package/types/fragiola-primitives-angular-radio.d.ts +67 -0
- package/types/fragiola-primitives-angular-range-calendar.d.ts +33 -0
- package/types/fragiola-primitives-angular-rating.d.ts +195 -0
- package/types/fragiola-primitives-angular-render.d.ts +2 -0
- package/types/fragiola-primitives-angular-scroll-area.d.ts +134 -0
- package/types/fragiola-primitives-angular-search-field.d.ts +129 -0
- package/types/fragiola-primitives-angular-segmented-control.d.ts +232 -0
- package/types/fragiola-primitives-angular-select-virtual.d.ts +81 -0
- package/types/fragiola-primitives-angular-select.d.ts +403 -0
- package/types/fragiola-primitives-angular-separator.d.ts +32 -0
- package/types/fragiola-primitives-angular-slider.d.ts +297 -0
- package/types/fragiola-primitives-angular-steps.d.ts +194 -0
- package/types/fragiola-primitives-angular-switch.d.ts +102 -0
- package/types/fragiola-primitives-angular-tabs.d.ts +215 -0
- package/types/fragiola-primitives-angular-tag-group.d.ts +232 -0
- package/types/fragiola-primitives-angular-tags-input.d.ts +318 -0
- package/types/fragiola-primitives-angular-time-field.d.ts +63 -0
- package/types/fragiola-primitives-angular-time-range-field.d.ts +65 -0
- package/types/fragiola-primitives-angular-toast.d.ts +196 -0
- package/types/fragiola-primitives-angular-toggle-group.d.ts +89 -0
- package/types/fragiola-primitives-angular-toggle.d.ts +86 -0
- package/types/fragiola-primitives-angular-toolbar.d.ts +187 -0
- package/types/fragiola-primitives-angular-tooltip.d.ts +330 -0
- package/types/fragiola-primitives-angular-year-calendar.d.ts +54 -0
- package/types/fragiola-primitives-angular-year-picker.d.ts +56 -0
- package/types/fragiola-primitives-angular-year-range-calendar.d.ts +54 -0
- package/types/fragiola-primitives-angular-year-range-picker.d.ts +56 -0
- package/types/fragiola-primitives-angular.d.ts +94 -0
|
@@ -0,0 +1,1413 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { DestroyRef, Directive, InjectionToken, afterRenderEffect, booleanAttribute, computed, effect, inject, input, linkedSignal, numberAttribute, output, signal, untracked } from "@angular/core";
|
|
3
|
+
import { conditionalView, controllable, createPresence, dataAttributes, dataValue, dataValues, injectFlush, injectHost, injectId, injectProvidedDirection, mountPortal, placementSignal, portalOptions, positionOverlay, registerHost, writeAttributes } from "@fragiola/primitives-angular/internal";
|
|
4
|
+
import { activationDirection } from "@fragiola/primitives/collection";
|
|
5
|
+
import { createHoverIntent } from "@fragiola/primitives/hover";
|
|
6
|
+
import { getTabbables, nextTabbableAfter } from "@fragiola/primitives/focus";
|
|
7
|
+
import { getDirection } from "@fragiola/primitives/direction";
|
|
8
|
+
import { openOverlaySession } from "@fragiola/primitives/overlay";
|
|
9
|
+
import { isInHoverBridge, watchPointerExit } from "@fragiola/primitives/pointer";
|
|
10
|
+
const NAVIGATION_MENU_CONTENT = new InjectionToken("NAVIGATION_MENU_CONTENT");
|
|
11
|
+
var NavigationMenuRoot = class NavigationMenuRoot {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
14
|
+
this.valueChange = output();
|
|
15
|
+
this.defaultValue = input(null, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.valueChangeDetails = output();
|
|
17
|
+
this.delay = input(50, {
|
|
18
|
+
...ngDevMode ? { debugName: "delay" } : /* istanbul ignore next */ {},
|
|
19
|
+
transform: numberAttribute
|
|
20
|
+
});
|
|
21
|
+
this.closeDelay = input(50, {
|
|
22
|
+
...ngDevMode ? { debugName: "closeDelay" } : /* istanbul ignore next */ {},
|
|
23
|
+
transform: numberAttribute
|
|
24
|
+
});
|
|
25
|
+
this.orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
26
|
+
this.loopFocus = input(true, {
|
|
27
|
+
...ngDevMode ? { debugName: "loopFocus" } : /* istanbul ignore next */ {},
|
|
28
|
+
transform: booleanAttribute
|
|
29
|
+
});
|
|
30
|
+
this.nested = inject(NAVIGATION_MENU_CONTENT, { optional: true }) !== null;
|
|
31
|
+
this.element = injectHost();
|
|
32
|
+
this.flush = injectFlush();
|
|
33
|
+
this.selection = controllable(this.value, this.valueChange, () => this.defaultValue(), (value, details) => this.valueChangeDetails.emit({
|
|
34
|
+
value,
|
|
35
|
+
details
|
|
36
|
+
}));
|
|
37
|
+
this.current = this.selection.value;
|
|
38
|
+
this.open = computed(() => this.current() !== null, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
39
|
+
this.lastValue = linkedSignal({
|
|
40
|
+
...ngDevMode ? { debugName: "lastValue" } : /* istanbul ignore next */ {},
|
|
41
|
+
source: this.current,
|
|
42
|
+
computation: (value, previous) => value ?? previous?.value ?? null
|
|
43
|
+
});
|
|
44
|
+
this.triggers = /* @__PURE__ */ new Map();
|
|
45
|
+
this.version = signal(0, ...ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []);
|
|
46
|
+
this.activeTrigger = computed(() => {
|
|
47
|
+
this.version();
|
|
48
|
+
const shown = this.lastValue();
|
|
49
|
+
return shown === null ? null : this.triggers.get(shown) ?? null;
|
|
50
|
+
}, ...ngDevMode ? [{ debugName: "activeTrigger" }] : /* istanbul ignore next */ []);
|
|
51
|
+
this.activationDirection = signal("none", ...ngDevMode ? [{ debugName: "activationDirection" }] : /* istanbul ignore next */ []);
|
|
52
|
+
this.openedBy = {
|
|
53
|
+
by: "press",
|
|
54
|
+
at: 0
|
|
55
|
+
};
|
|
56
|
+
this.lastReason = { current: null };
|
|
57
|
+
this.pendingHover = null;
|
|
58
|
+
this.pendingFocus = null;
|
|
59
|
+
this.layered = signal(false, ...ngDevMode ? [{ debugName: "layered" }] : /* istanbul ignore next */ []);
|
|
60
|
+
this.positioner = signal(null, ...ngDevMode ? [{ debugName: "positioner" }] : /* istanbul ignore next */ []);
|
|
61
|
+
this.popup = signal(null, ...ngDevMode ? [{ debugName: "popup" }] : /* istanbul ignore next */ []);
|
|
62
|
+
this.viewport = signal(null, ...ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []);
|
|
63
|
+
this.arrow = signal(null, ...ngDevMode ? [{ debugName: "arrow" }] : /* istanbul ignore next */ []);
|
|
64
|
+
this.placed = placementSignal({
|
|
65
|
+
side: "bottom",
|
|
66
|
+
align: "center"
|
|
67
|
+
});
|
|
68
|
+
this.size = signal(null, {
|
|
69
|
+
...ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {},
|
|
70
|
+
equal: (a, b) => a?.width === b?.width && a?.height === b?.height
|
|
71
|
+
});
|
|
72
|
+
this.presence = createPresence(this.open, this.popup);
|
|
73
|
+
this.hover = createHoverIntent({
|
|
74
|
+
open: () => {
|
|
75
|
+
const item = this.pendingHover;
|
|
76
|
+
if (item !== null) {
|
|
77
|
+
this.setValue(item, "trigger-hover", void 0, "hover");
|
|
78
|
+
this.flush();
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
close: () => {
|
|
82
|
+
this.setValue(null, "trigger-hover");
|
|
83
|
+
this.flush();
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
this.state = computed(() => ({
|
|
87
|
+
open: this.open(),
|
|
88
|
+
orientation: this.orientation(),
|
|
89
|
+
nested: this.nested
|
|
90
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
91
|
+
this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
92
|
+
this.requested = void 0;
|
|
93
|
+
inject(DestroyRef).onDestroy(() => this.hover.cancel());
|
|
94
|
+
let previous = untracked(this.current);
|
|
95
|
+
effect(() => {
|
|
96
|
+
const value = this.current();
|
|
97
|
+
untracked(() => {
|
|
98
|
+
if (value !== previous && value !== this.requested) {
|
|
99
|
+
this.pendingFocus = null;
|
|
100
|
+
if (value !== null) this.openedBy = {
|
|
101
|
+
by: "press",
|
|
102
|
+
at: performance.now()
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
previous = value;
|
|
106
|
+
this.requested = void 0;
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
setValue(next, reason, event, by) {
|
|
111
|
+
const previous = untracked(this.current);
|
|
112
|
+
if (previous === next) return;
|
|
113
|
+
if (next !== null) this.openedBy = {
|
|
114
|
+
by: by ?? "press",
|
|
115
|
+
at: performance.now()
|
|
116
|
+
};
|
|
117
|
+
if (reason !== "list-navigation") this.pendingFocus = null;
|
|
118
|
+
this.requested = next;
|
|
119
|
+
this.activationDirection.set(previous !== null && next !== null ? activationDirection(this.triggers.get(previous), this.triggers.get(next), untracked(this.orientation)) : "none");
|
|
120
|
+
this.lastReason.current = reason;
|
|
121
|
+
this.selection.set(next, {
|
|
122
|
+
reason,
|
|
123
|
+
event
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
registerTrigger(value, element) {
|
|
127
|
+
this.triggers.set(value, element);
|
|
128
|
+
this.version.update((count) => count + 1);
|
|
129
|
+
return () => {
|
|
130
|
+
if (this.triggers.get(value) === element) {
|
|
131
|
+
this.triggers.delete(value);
|
|
132
|
+
this.version.update((count) => count + 1);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
static {
|
|
137
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
138
|
+
minVersion: "12.0.0",
|
|
139
|
+
version: "22.2.6",
|
|
140
|
+
ngImport: i0,
|
|
141
|
+
type: NavigationMenuRoot,
|
|
142
|
+
deps: [],
|
|
143
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
static {
|
|
147
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
148
|
+
minVersion: "17.1.0",
|
|
149
|
+
version: "22.2.6",
|
|
150
|
+
type: NavigationMenuRoot,
|
|
151
|
+
isStandalone: true,
|
|
152
|
+
selector: "[navigationMenuRoot]",
|
|
153
|
+
inputs: {
|
|
154
|
+
value: {
|
|
155
|
+
classPropertyName: "value",
|
|
156
|
+
publicName: "value",
|
|
157
|
+
isSignal: true,
|
|
158
|
+
isRequired: false,
|
|
159
|
+
transformFunction: null
|
|
160
|
+
},
|
|
161
|
+
defaultValue: {
|
|
162
|
+
classPropertyName: "defaultValue",
|
|
163
|
+
publicName: "defaultValue",
|
|
164
|
+
isSignal: true,
|
|
165
|
+
isRequired: false,
|
|
166
|
+
transformFunction: null
|
|
167
|
+
},
|
|
168
|
+
delay: {
|
|
169
|
+
classPropertyName: "delay",
|
|
170
|
+
publicName: "delay",
|
|
171
|
+
isSignal: true,
|
|
172
|
+
isRequired: false,
|
|
173
|
+
transformFunction: null
|
|
174
|
+
},
|
|
175
|
+
closeDelay: {
|
|
176
|
+
classPropertyName: "closeDelay",
|
|
177
|
+
publicName: "closeDelay",
|
|
178
|
+
isSignal: true,
|
|
179
|
+
isRequired: false,
|
|
180
|
+
transformFunction: null
|
|
181
|
+
},
|
|
182
|
+
orientation: {
|
|
183
|
+
classPropertyName: "orientation",
|
|
184
|
+
publicName: "orientation",
|
|
185
|
+
isSignal: true,
|
|
186
|
+
isRequired: false,
|
|
187
|
+
transformFunction: null
|
|
188
|
+
},
|
|
189
|
+
loopFocus: {
|
|
190
|
+
classPropertyName: "loopFocus",
|
|
191
|
+
publicName: "loopFocus",
|
|
192
|
+
isSignal: true,
|
|
193
|
+
isRequired: false,
|
|
194
|
+
transformFunction: null
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
outputs: {
|
|
198
|
+
valueChange: "valueChange",
|
|
199
|
+
valueChangeDetails: "valueChangeDetails"
|
|
200
|
+
},
|
|
201
|
+
host: {
|
|
202
|
+
attributes: { "data-primitives-part": "navigation-menu-root" },
|
|
203
|
+
properties: { "attr.data-orientation": "orientation()" }
|
|
204
|
+
},
|
|
205
|
+
exportAs: ["navigationMenuRoot"],
|
|
206
|
+
ngImport: i0
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
211
|
+
minVersion: "12.0.0",
|
|
212
|
+
version: "22.2.6",
|
|
213
|
+
ngImport: i0,
|
|
214
|
+
type: NavigationMenuRoot,
|
|
215
|
+
decorators: [{
|
|
216
|
+
type: Directive,
|
|
217
|
+
args: [{
|
|
218
|
+
selector: "[navigationMenuRoot]",
|
|
219
|
+
exportAs: "navigationMenuRoot",
|
|
220
|
+
host: {
|
|
221
|
+
"data-primitives-part": "navigation-menu-root",
|
|
222
|
+
"[attr.data-orientation]": "orientation()"
|
|
223
|
+
}
|
|
224
|
+
}]
|
|
225
|
+
}],
|
|
226
|
+
ctorParameters: () => [],
|
|
227
|
+
propDecorators: {
|
|
228
|
+
value: [{
|
|
229
|
+
type: i0.Input,
|
|
230
|
+
args: [{
|
|
231
|
+
isSignal: true,
|
|
232
|
+
alias: "value",
|
|
233
|
+
required: false
|
|
234
|
+
}]
|
|
235
|
+
}],
|
|
236
|
+
valueChange: [{
|
|
237
|
+
type: i0.Output,
|
|
238
|
+
args: ["valueChange"]
|
|
239
|
+
}],
|
|
240
|
+
defaultValue: [{
|
|
241
|
+
type: i0.Input,
|
|
242
|
+
args: [{
|
|
243
|
+
isSignal: true,
|
|
244
|
+
alias: "defaultValue",
|
|
245
|
+
required: false
|
|
246
|
+
}]
|
|
247
|
+
}],
|
|
248
|
+
valueChangeDetails: [{
|
|
249
|
+
type: i0.Output,
|
|
250
|
+
args: ["valueChangeDetails"]
|
|
251
|
+
}],
|
|
252
|
+
delay: [{
|
|
253
|
+
type: i0.Input,
|
|
254
|
+
args: [{
|
|
255
|
+
isSignal: true,
|
|
256
|
+
alias: "delay",
|
|
257
|
+
required: false
|
|
258
|
+
}]
|
|
259
|
+
}],
|
|
260
|
+
closeDelay: [{
|
|
261
|
+
type: i0.Input,
|
|
262
|
+
args: [{
|
|
263
|
+
isSignal: true,
|
|
264
|
+
alias: "closeDelay",
|
|
265
|
+
required: false
|
|
266
|
+
}]
|
|
267
|
+
}],
|
|
268
|
+
orientation: [{
|
|
269
|
+
type: i0.Input,
|
|
270
|
+
args: [{
|
|
271
|
+
isSignal: true,
|
|
272
|
+
alias: "orientation",
|
|
273
|
+
required: false
|
|
274
|
+
}]
|
|
275
|
+
}],
|
|
276
|
+
loopFocus: [{
|
|
277
|
+
type: i0.Input,
|
|
278
|
+
args: [{
|
|
279
|
+
isSignal: true,
|
|
280
|
+
alias: "loopFocus",
|
|
281
|
+
required: false
|
|
282
|
+
}]
|
|
283
|
+
}]
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
var NavigationMenuArrow = class NavigationMenuArrow {
|
|
287
|
+
constructor() {
|
|
288
|
+
this.root = inject(NavigationMenuRoot);
|
|
289
|
+
this.state = this.root.placed.asReadonly();
|
|
290
|
+
this.data = computed(() => {
|
|
291
|
+
const open = this.root.open();
|
|
292
|
+
return dataValues({
|
|
293
|
+
...this.state(),
|
|
294
|
+
open,
|
|
295
|
+
closed: !open
|
|
296
|
+
});
|
|
297
|
+
}, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
298
|
+
registerHost(this.root.arrow);
|
|
299
|
+
}
|
|
300
|
+
static {
|
|
301
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
302
|
+
minVersion: "12.0.0",
|
|
303
|
+
version: "22.2.6",
|
|
304
|
+
ngImport: i0,
|
|
305
|
+
type: NavigationMenuArrow,
|
|
306
|
+
deps: [],
|
|
307
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
static {
|
|
311
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
312
|
+
minVersion: "14.0.0",
|
|
313
|
+
version: "22.2.6",
|
|
314
|
+
type: NavigationMenuArrow,
|
|
315
|
+
isStandalone: true,
|
|
316
|
+
selector: "[navigationMenuArrow]",
|
|
317
|
+
host: {
|
|
318
|
+
attributes: {
|
|
319
|
+
"aria-hidden": "true",
|
|
320
|
+
"data-primitives-part": "navigation-menu-arrow"
|
|
321
|
+
},
|
|
322
|
+
properties: {
|
|
323
|
+
"attr.data-open": "data().open",
|
|
324
|
+
"attr.data-closed": "data().closed",
|
|
325
|
+
"attr.data-side": "data().side",
|
|
326
|
+
"attr.data-align": "data().align"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
exportAs: ["navigationMenuArrow"],
|
|
330
|
+
ngImport: i0
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
335
|
+
minVersion: "12.0.0",
|
|
336
|
+
version: "22.2.6",
|
|
337
|
+
ngImport: i0,
|
|
338
|
+
type: NavigationMenuArrow,
|
|
339
|
+
decorators: [{
|
|
340
|
+
type: Directive,
|
|
341
|
+
args: [{
|
|
342
|
+
selector: "[navigationMenuArrow]",
|
|
343
|
+
exportAs: "navigationMenuArrow",
|
|
344
|
+
host: {
|
|
345
|
+
"aria-hidden": "true",
|
|
346
|
+
"data-primitives-part": "navigation-menu-arrow",
|
|
347
|
+
"[attr.data-open]": "data().open",
|
|
348
|
+
"[attr.data-closed]": "data().closed",
|
|
349
|
+
"[attr.data-side]": "data().side",
|
|
350
|
+
"[attr.data-align]": "data().align"
|
|
351
|
+
}
|
|
352
|
+
}]
|
|
353
|
+
}],
|
|
354
|
+
ctorParameters: () => []
|
|
355
|
+
});
|
|
356
|
+
var NavigationMenuBackdrop = class NavigationMenuBackdrop {
|
|
357
|
+
constructor() {
|
|
358
|
+
this.root = inject(NavigationMenuRoot);
|
|
359
|
+
this.state = computed(() => ({ open: this.root.open() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
360
|
+
this.data = computed(() => {
|
|
361
|
+
const open = this.root.open();
|
|
362
|
+
const status = this.root.presence.status();
|
|
363
|
+
return dataValues({
|
|
364
|
+
open,
|
|
365
|
+
closed: !open,
|
|
366
|
+
"starting-style": status === "starting",
|
|
367
|
+
"ending-style": status === "ending"
|
|
368
|
+
});
|
|
369
|
+
}, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
370
|
+
}
|
|
371
|
+
static {
|
|
372
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
373
|
+
minVersion: "12.0.0",
|
|
374
|
+
version: "22.2.6",
|
|
375
|
+
ngImport: i0,
|
|
376
|
+
type: NavigationMenuBackdrop,
|
|
377
|
+
deps: [],
|
|
378
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
static {
|
|
382
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
383
|
+
minVersion: "14.0.0",
|
|
384
|
+
version: "22.2.6",
|
|
385
|
+
type: NavigationMenuBackdrop,
|
|
386
|
+
isStandalone: true,
|
|
387
|
+
selector: "[navigationMenuBackdrop]",
|
|
388
|
+
host: {
|
|
389
|
+
attributes: {
|
|
390
|
+
"aria-hidden": "true",
|
|
391
|
+
"data-primitives-part": "navigation-menu-backdrop"
|
|
392
|
+
},
|
|
393
|
+
properties: {
|
|
394
|
+
"attr.data-open": "data().open",
|
|
395
|
+
"attr.data-closed": "data().closed",
|
|
396
|
+
"attr.data-starting-style": "data()['starting-style']",
|
|
397
|
+
"attr.data-ending-style": "data()['ending-style']"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
exportAs: ["navigationMenuBackdrop"],
|
|
401
|
+
ngImport: i0
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
406
|
+
minVersion: "12.0.0",
|
|
407
|
+
version: "22.2.6",
|
|
408
|
+
ngImport: i0,
|
|
409
|
+
type: NavigationMenuBackdrop,
|
|
410
|
+
decorators: [{
|
|
411
|
+
type: Directive,
|
|
412
|
+
args: [{
|
|
413
|
+
selector: "[navigationMenuBackdrop]",
|
|
414
|
+
exportAs: "navigationMenuBackdrop",
|
|
415
|
+
host: {
|
|
416
|
+
"aria-hidden": "true",
|
|
417
|
+
"data-primitives-part": "navigation-menu-backdrop",
|
|
418
|
+
"[attr.data-open]": "data().open",
|
|
419
|
+
"[attr.data-closed]": "data().closed",
|
|
420
|
+
"[attr.data-starting-style]": "data()['starting-style']",
|
|
421
|
+
"[attr.data-ending-style]": "data()['ending-style']"
|
|
422
|
+
}
|
|
423
|
+
}]
|
|
424
|
+
}]
|
|
425
|
+
});
|
|
426
|
+
var NavigationMenuItem = class NavigationMenuItem {
|
|
427
|
+
constructor() {
|
|
428
|
+
this.root = inject(NavigationMenuRoot);
|
|
429
|
+
this.generated = injectId("primitives-navigation-menu-item");
|
|
430
|
+
this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
431
|
+
this.itemValue = computed(() => this.value() ?? this.generated, ...ngDevMode ? [{ debugName: "itemValue" }] : /* istanbul ignore next */ []);
|
|
432
|
+
this.contentId = `${this.generated}-content`;
|
|
433
|
+
this.content = signal(null, ...ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []);
|
|
434
|
+
this.open = computed(() => this.root.current() === this.itemValue(), ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
435
|
+
}
|
|
436
|
+
static {
|
|
437
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
438
|
+
minVersion: "12.0.0",
|
|
439
|
+
version: "22.2.6",
|
|
440
|
+
ngImport: i0,
|
|
441
|
+
type: NavigationMenuItem,
|
|
442
|
+
deps: [],
|
|
443
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
static {
|
|
447
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
448
|
+
minVersion: "17.1.0",
|
|
449
|
+
version: "22.2.6",
|
|
450
|
+
type: NavigationMenuItem,
|
|
451
|
+
isStandalone: true,
|
|
452
|
+
selector: "[navigationMenuItem]",
|
|
453
|
+
inputs: { value: {
|
|
454
|
+
classPropertyName: "value",
|
|
455
|
+
publicName: "value",
|
|
456
|
+
isSignal: true,
|
|
457
|
+
isRequired: false,
|
|
458
|
+
transformFunction: null
|
|
459
|
+
} },
|
|
460
|
+
host: { attributes: { "data-primitives-part": "navigation-menu-item" } },
|
|
461
|
+
exportAs: ["navigationMenuItem"],
|
|
462
|
+
ngImport: i0
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
467
|
+
minVersion: "12.0.0",
|
|
468
|
+
version: "22.2.6",
|
|
469
|
+
ngImport: i0,
|
|
470
|
+
type: NavigationMenuItem,
|
|
471
|
+
decorators: [{
|
|
472
|
+
type: Directive,
|
|
473
|
+
args: [{
|
|
474
|
+
selector: "[navigationMenuItem]",
|
|
475
|
+
exportAs: "navigationMenuItem",
|
|
476
|
+
host: { "data-primitives-part": "navigation-menu-item" }
|
|
477
|
+
}]
|
|
478
|
+
}],
|
|
479
|
+
propDecorators: { value: [{
|
|
480
|
+
type: i0.Input,
|
|
481
|
+
args: [{
|
|
482
|
+
isSignal: true,
|
|
483
|
+
alias: "value",
|
|
484
|
+
required: false
|
|
485
|
+
}]
|
|
486
|
+
}] }
|
|
487
|
+
});
|
|
488
|
+
var NavigationMenuContent = class NavigationMenuContent {
|
|
489
|
+
constructor() {
|
|
490
|
+
this.root = inject(NavigationMenuRoot);
|
|
491
|
+
this.item = inject(NavigationMenuItem);
|
|
492
|
+
this.open = computed(() => {
|
|
493
|
+
const value = this.root.current();
|
|
494
|
+
const item = this.item.itemValue();
|
|
495
|
+
return value === item || value === null && this.root.lastValue() === item;
|
|
496
|
+
}, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
497
|
+
this.view = { element: null };
|
|
498
|
+
this.presence = createPresence(this.open, computed(() => this.view.element?.() ?? null));
|
|
499
|
+
this.state = computed(() => ({
|
|
500
|
+
open: this.open(),
|
|
501
|
+
activationDirection: this.root.activationDirection()
|
|
502
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
503
|
+
const root = this.root;
|
|
504
|
+
const item = this.item;
|
|
505
|
+
const presence = this.presence;
|
|
506
|
+
const element = conditionalView(computed(() => presence.mounted() && root.viewport() !== null), (rendered) => untracked(root.viewport)?.appendChild(rendered));
|
|
507
|
+
this.view.element = element;
|
|
508
|
+
inject(DestroyRef).onDestroy(() => {
|
|
509
|
+
const rendered = untracked(element);
|
|
510
|
+
rendered?.parentNode?.removeChild(rendered);
|
|
511
|
+
});
|
|
512
|
+
effect(() => {
|
|
513
|
+
const rendered = element();
|
|
514
|
+
item.content.set(rendered);
|
|
515
|
+
if (rendered === null) return;
|
|
516
|
+
const state = this.state();
|
|
517
|
+
const status = presence.status();
|
|
518
|
+
writeAttributes(rendered, {
|
|
519
|
+
id: item.contentId,
|
|
520
|
+
"data-primitives-part": "navigation-menu-content",
|
|
521
|
+
...dataAttributes({
|
|
522
|
+
open: state.open,
|
|
523
|
+
closed: !state.open,
|
|
524
|
+
"activation-direction": state.activationDirection,
|
|
525
|
+
"starting-style": status === "starting",
|
|
526
|
+
"ending-style": status === "ending"
|
|
527
|
+
})
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
afterRenderEffect(() => {
|
|
531
|
+
const rendered = element();
|
|
532
|
+
if (!item.open() || rendered === null || !root.layered()) return;
|
|
533
|
+
untracked(() => {
|
|
534
|
+
if (root.pendingFocus === item.itemValue()) {
|
|
535
|
+
root.pendingFocus = null;
|
|
536
|
+
getTabbables(rendered)[0]?.focus();
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
});
|
|
540
|
+
afterRenderEffect((onCleanup) => {
|
|
541
|
+
const rendered = element();
|
|
542
|
+
if (!item.open() || rendered === null) return;
|
|
543
|
+
untracked(() => {
|
|
544
|
+
const measure = () => root.size.set({
|
|
545
|
+
width: rendered.offsetWidth,
|
|
546
|
+
height: rendered.offsetHeight
|
|
547
|
+
});
|
|
548
|
+
measure();
|
|
549
|
+
const View = rendered.ownerDocument.defaultView?.ResizeObserver;
|
|
550
|
+
if (View === void 0) return;
|
|
551
|
+
const observer = new View(measure);
|
|
552
|
+
observer.observe(rendered);
|
|
553
|
+
onCleanup(() => observer.disconnect());
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
static {
|
|
558
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
559
|
+
minVersion: "12.0.0",
|
|
560
|
+
version: "22.2.6",
|
|
561
|
+
ngImport: i0,
|
|
562
|
+
type: NavigationMenuContent,
|
|
563
|
+
deps: [],
|
|
564
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
static {
|
|
568
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
569
|
+
minVersion: "14.0.0",
|
|
570
|
+
version: "22.2.6",
|
|
571
|
+
type: NavigationMenuContent,
|
|
572
|
+
isStandalone: true,
|
|
573
|
+
selector: "[navigationMenuContent]",
|
|
574
|
+
providers: [{
|
|
575
|
+
provide: NAVIGATION_MENU_CONTENT,
|
|
576
|
+
useValue: true
|
|
577
|
+
}],
|
|
578
|
+
exportAs: ["navigationMenuContent"],
|
|
579
|
+
ngImport: i0
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
584
|
+
minVersion: "12.0.0",
|
|
585
|
+
version: "22.2.6",
|
|
586
|
+
ngImport: i0,
|
|
587
|
+
type: NavigationMenuContent,
|
|
588
|
+
decorators: [{
|
|
589
|
+
type: Directive,
|
|
590
|
+
args: [{
|
|
591
|
+
selector: "[navigationMenuContent]",
|
|
592
|
+
exportAs: "navigationMenuContent",
|
|
593
|
+
providers: [{
|
|
594
|
+
provide: NAVIGATION_MENU_CONTENT,
|
|
595
|
+
useValue: true
|
|
596
|
+
}]
|
|
597
|
+
}]
|
|
598
|
+
}],
|
|
599
|
+
ctorParameters: () => []
|
|
600
|
+
});
|
|
601
|
+
var NavigationMenuIcon = class NavigationMenuIcon {
|
|
602
|
+
constructor() {
|
|
603
|
+
this.item = inject(NavigationMenuItem);
|
|
604
|
+
this.state = computed(() => ({ open: this.item.open() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
605
|
+
this.popupOpen = computed(() => dataValue(this.item.open()), ...ngDevMode ? [{ debugName: "popupOpen" }] : /* istanbul ignore next */ []);
|
|
606
|
+
}
|
|
607
|
+
static {
|
|
608
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
609
|
+
minVersion: "12.0.0",
|
|
610
|
+
version: "22.2.6",
|
|
611
|
+
ngImport: i0,
|
|
612
|
+
type: NavigationMenuIcon,
|
|
613
|
+
deps: [],
|
|
614
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
static {
|
|
618
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
619
|
+
minVersion: "14.0.0",
|
|
620
|
+
version: "22.2.6",
|
|
621
|
+
type: NavigationMenuIcon,
|
|
622
|
+
isStandalone: true,
|
|
623
|
+
selector: "[navigationMenuIcon]",
|
|
624
|
+
host: {
|
|
625
|
+
attributes: {
|
|
626
|
+
"aria-hidden": "true",
|
|
627
|
+
"data-primitives-part": "navigation-menu-icon"
|
|
628
|
+
},
|
|
629
|
+
properties: { "attr.data-popup-open": "popupOpen()" }
|
|
630
|
+
},
|
|
631
|
+
exportAs: ["navigationMenuIcon"],
|
|
632
|
+
ngImport: i0
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
637
|
+
minVersion: "12.0.0",
|
|
638
|
+
version: "22.2.6",
|
|
639
|
+
ngImport: i0,
|
|
640
|
+
type: NavigationMenuIcon,
|
|
641
|
+
decorators: [{
|
|
642
|
+
type: Directive,
|
|
643
|
+
args: [{
|
|
644
|
+
selector: "[navigationMenuIcon]",
|
|
645
|
+
exportAs: "navigationMenuIcon",
|
|
646
|
+
host: {
|
|
647
|
+
"aria-hidden": "true",
|
|
648
|
+
"data-primitives-part": "navigation-menu-icon",
|
|
649
|
+
"[attr.data-popup-open]": "popupOpen()"
|
|
650
|
+
}
|
|
651
|
+
}]
|
|
652
|
+
}]
|
|
653
|
+
});
|
|
654
|
+
var NavigationMenuLink = class NavigationMenuLink {
|
|
655
|
+
constructor() {
|
|
656
|
+
this.active = input(false, {
|
|
657
|
+
...ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {},
|
|
658
|
+
transform: booleanAttribute
|
|
659
|
+
});
|
|
660
|
+
this.state = computed(() => ({ active: this.active() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
661
|
+
this.dataActive = computed(() => dataValue(this.active()), ...ngDevMode ? [{ debugName: "dataActive" }] : /* istanbul ignore next */ []);
|
|
662
|
+
}
|
|
663
|
+
static {
|
|
664
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
665
|
+
minVersion: "12.0.0",
|
|
666
|
+
version: "22.2.6",
|
|
667
|
+
ngImport: i0,
|
|
668
|
+
type: NavigationMenuLink,
|
|
669
|
+
deps: [],
|
|
670
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
static {
|
|
674
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
675
|
+
minVersion: "17.1.0",
|
|
676
|
+
version: "22.2.6",
|
|
677
|
+
type: NavigationMenuLink,
|
|
678
|
+
isStandalone: true,
|
|
679
|
+
selector: "[navigationMenuLink]",
|
|
680
|
+
inputs: { active: {
|
|
681
|
+
classPropertyName: "active",
|
|
682
|
+
publicName: "active",
|
|
683
|
+
isSignal: true,
|
|
684
|
+
isRequired: false,
|
|
685
|
+
transformFunction: null
|
|
686
|
+
} },
|
|
687
|
+
host: {
|
|
688
|
+
attributes: { "data-primitives-part": "navigation-menu-link" },
|
|
689
|
+
properties: {
|
|
690
|
+
"attr.aria-current": "active() ? 'page' : null",
|
|
691
|
+
"attr.data-active": "dataActive()"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
exportAs: ["navigationMenuLink"],
|
|
695
|
+
ngImport: i0
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
};
|
|
699
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
700
|
+
minVersion: "12.0.0",
|
|
701
|
+
version: "22.2.6",
|
|
702
|
+
ngImport: i0,
|
|
703
|
+
type: NavigationMenuLink,
|
|
704
|
+
decorators: [{
|
|
705
|
+
type: Directive,
|
|
706
|
+
args: [{
|
|
707
|
+
selector: "[navigationMenuLink]",
|
|
708
|
+
exportAs: "navigationMenuLink",
|
|
709
|
+
host: {
|
|
710
|
+
"data-primitives-part": "navigation-menu-link",
|
|
711
|
+
"[attr.aria-current]": "active() ? 'page' : null",
|
|
712
|
+
"[attr.data-active]": "dataActive()"
|
|
713
|
+
}
|
|
714
|
+
}]
|
|
715
|
+
}],
|
|
716
|
+
propDecorators: { active: [{
|
|
717
|
+
type: i0.Input,
|
|
718
|
+
args: [{
|
|
719
|
+
isSignal: true,
|
|
720
|
+
alias: "active",
|
|
721
|
+
required: false
|
|
722
|
+
}]
|
|
723
|
+
}] }
|
|
724
|
+
});
|
|
725
|
+
const ITEM_TARGETS = ":scope > [data-primitives-part=\"navigation-menu-item\"] > :is([data-primitives-part=\"navigation-menu-trigger\"], [data-primitives-part=\"navigation-menu-link\"])";
|
|
726
|
+
var NavigationMenuList = class NavigationMenuList {
|
|
727
|
+
constructor() {
|
|
728
|
+
this.root = inject(NavigationMenuRoot);
|
|
729
|
+
this.host = injectHost();
|
|
730
|
+
this.direction = injectProvidedDirection();
|
|
731
|
+
}
|
|
732
|
+
onKeyDown(event) {
|
|
733
|
+
const targets = [...this.host.querySelectorAll(ITEM_TARGETS)].filter((target) => !target.disabled);
|
|
734
|
+
const index = targets.indexOf(event.target);
|
|
735
|
+
if (index === -1 || event.defaultPrevented) return;
|
|
736
|
+
const rtl = getDirection(this.host, this.direction()) === "rtl";
|
|
737
|
+
const loop = this.root.loopFocus();
|
|
738
|
+
const [next, previous] = this.root.orientation() === "horizontal" ? rtl ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"] : ["ArrowDown", "ArrowUp"];
|
|
739
|
+
let target = null;
|
|
740
|
+
if (event.key === next) target = index + 1 < targets.length ? index + 1 : loop ? 0 : index;
|
|
741
|
+
else if (event.key === previous) target = index > 0 ? index - 1 : loop ? targets.length - 1 : index;
|
|
742
|
+
else if (event.key === "Home") target = 0;
|
|
743
|
+
else if (event.key === "End") target = targets.length - 1;
|
|
744
|
+
if (target === null) return;
|
|
745
|
+
event.preventDefault();
|
|
746
|
+
targets[target]?.focus();
|
|
747
|
+
}
|
|
748
|
+
static {
|
|
749
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
750
|
+
minVersion: "12.0.0",
|
|
751
|
+
version: "22.2.6",
|
|
752
|
+
ngImport: i0,
|
|
753
|
+
type: NavigationMenuList,
|
|
754
|
+
deps: [],
|
|
755
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
static {
|
|
759
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
760
|
+
minVersion: "14.0.0",
|
|
761
|
+
version: "22.2.6",
|
|
762
|
+
type: NavigationMenuList,
|
|
763
|
+
isStandalone: true,
|
|
764
|
+
selector: "[navigationMenuList]",
|
|
765
|
+
host: {
|
|
766
|
+
attributes: { "data-primitives-part": "navigation-menu-list" },
|
|
767
|
+
listeners: { "keydown": "onKeyDown($event)" },
|
|
768
|
+
properties: { "attr.data-orientation": "root.orientation()" }
|
|
769
|
+
},
|
|
770
|
+
exportAs: ["navigationMenuList"],
|
|
771
|
+
ngImport: i0
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
776
|
+
minVersion: "12.0.0",
|
|
777
|
+
version: "22.2.6",
|
|
778
|
+
ngImport: i0,
|
|
779
|
+
type: NavigationMenuList,
|
|
780
|
+
decorators: [{
|
|
781
|
+
type: Directive,
|
|
782
|
+
args: [{
|
|
783
|
+
selector: "[navigationMenuList]",
|
|
784
|
+
exportAs: "navigationMenuList",
|
|
785
|
+
host: {
|
|
786
|
+
"data-primitives-part": "navigation-menu-list",
|
|
787
|
+
"[attr.data-orientation]": "root.orientation()",
|
|
788
|
+
"(keydown)": "onKeyDown($event)"
|
|
789
|
+
}
|
|
790
|
+
}]
|
|
791
|
+
}]
|
|
792
|
+
});
|
|
793
|
+
const RETURNS_FOCUS = /* @__PURE__ */ new Set(["escape-key"]);
|
|
794
|
+
var NavigationMenuPopup = class NavigationMenuPopup {
|
|
795
|
+
constructor() {
|
|
796
|
+
this.root = inject(NavigationMenuRoot);
|
|
797
|
+
this.state = computed(() => ({
|
|
798
|
+
open: this.root.open(),
|
|
799
|
+
...this.root.placed()
|
|
800
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
801
|
+
this.data = computed(() => {
|
|
802
|
+
const status = this.root.presence.status();
|
|
803
|
+
const state = this.state();
|
|
804
|
+
return dataValues({
|
|
805
|
+
...state,
|
|
806
|
+
closed: !state.open,
|
|
807
|
+
"starting-style": status === "starting",
|
|
808
|
+
"ending-style": status === "ending"
|
|
809
|
+
});
|
|
810
|
+
}, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
811
|
+
this.width = computed(() => {
|
|
812
|
+
const size = this.root.size();
|
|
813
|
+
return size ? `${size.width}px` : null;
|
|
814
|
+
}, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
815
|
+
this.height = computed(() => {
|
|
816
|
+
const size = this.root.size();
|
|
817
|
+
return size ? `${size.height}px` : null;
|
|
818
|
+
}, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
819
|
+
this.popup = registerHost(this.root.popup);
|
|
820
|
+
const root = this.root;
|
|
821
|
+
const popup = this.popup;
|
|
822
|
+
afterRenderEffect((onCleanup) => {
|
|
823
|
+
const open = root.open();
|
|
824
|
+
const positioner = root.positioner();
|
|
825
|
+
if (!open) return;
|
|
826
|
+
untracked(() => {
|
|
827
|
+
const doc = popup.ownerDocument;
|
|
828
|
+
const own = positioner ?? popup;
|
|
829
|
+
const session = openOverlaySession(doc, {
|
|
830
|
+
elements: () => [own],
|
|
831
|
+
ignore: () => [root.element],
|
|
832
|
+
owner: () => [untracked(root.activeTrigger)],
|
|
833
|
+
dismiss: (reason, event) => {
|
|
834
|
+
root.setValue(null, reason, event);
|
|
835
|
+
root.flush();
|
|
836
|
+
},
|
|
837
|
+
focusOut: () => [root.element],
|
|
838
|
+
returnFocus: {
|
|
839
|
+
when: RETURNS_FOCUS,
|
|
840
|
+
reason: () => root.lastReason.current ?? "none",
|
|
841
|
+
to: () => own.contains(doc.activeElement) ? untracked(root.activeTrigger) : false
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
root.layered.set(true);
|
|
845
|
+
const hoverOpened = () => root.openedBy.by === "hover" && untracked(root.activeTrigger) !== null;
|
|
846
|
+
const onMove = (event) => {
|
|
847
|
+
const trigger = untracked(root.activeTrigger);
|
|
848
|
+
if (event.pointerType === "touch" || !hoverOpened() || trigger === null) return;
|
|
849
|
+
const target = event.target;
|
|
850
|
+
if (isInHoverBridge({
|
|
851
|
+
x: event.clientX,
|
|
852
|
+
y: event.clientY
|
|
853
|
+
}, trigger, own) || target instanceof Node && session.elementsAbove().some((element) => element.contains(target))) root.hover.cancel();
|
|
854
|
+
else root.hover.leave(untracked(root.closeDelay));
|
|
855
|
+
};
|
|
856
|
+
doc.addEventListener("pointermove", onMove);
|
|
857
|
+
const stopExit = watchPointerExit(doc, () => {
|
|
858
|
+
if (hoverOpened()) root.hover.leave(untracked(root.closeDelay));
|
|
859
|
+
});
|
|
860
|
+
onCleanup(() => {
|
|
861
|
+
root.layered.set(false);
|
|
862
|
+
doc.removeEventListener("pointermove", onMove);
|
|
863
|
+
stopExit();
|
|
864
|
+
root.hover.cancel();
|
|
865
|
+
session.end();
|
|
866
|
+
});
|
|
867
|
+
});
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
onKeyDown(event) {
|
|
871
|
+
const trigger = this.root.activeTrigger();
|
|
872
|
+
const popup = this.popup;
|
|
873
|
+
if (event.key !== "Tab" || trigger === null || event.defaultPrevented || !popup.contains(event.target)) return;
|
|
874
|
+
const tabbables = getTabbables(popup);
|
|
875
|
+
const active = popup.ownerDocument.activeElement;
|
|
876
|
+
if (event.shiftKey && active === tabbables[0]) {
|
|
877
|
+
event.preventDefault();
|
|
878
|
+
trigger.focus();
|
|
879
|
+
} else if (!event.shiftKey && active === tabbables.at(-1)) {
|
|
880
|
+
const next = nextTabbableAfter(trigger, [this.root.positioner(), popup]);
|
|
881
|
+
if (next) {
|
|
882
|
+
event.preventDefault();
|
|
883
|
+
next.focus();
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
static {
|
|
888
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
889
|
+
minVersion: "12.0.0",
|
|
890
|
+
version: "22.2.6",
|
|
891
|
+
ngImport: i0,
|
|
892
|
+
type: NavigationMenuPopup,
|
|
893
|
+
deps: [],
|
|
894
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
static {
|
|
898
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
899
|
+
minVersion: "14.0.0",
|
|
900
|
+
version: "22.2.6",
|
|
901
|
+
type: NavigationMenuPopup,
|
|
902
|
+
isStandalone: true,
|
|
903
|
+
selector: "[navigationMenuPopup]",
|
|
904
|
+
host: {
|
|
905
|
+
attributes: { "data-primitives-part": "navigation-menu-popup" },
|
|
906
|
+
listeners: { "keydown": "onKeyDown($event)" },
|
|
907
|
+
properties: {
|
|
908
|
+
"attr.data-open": "data().open",
|
|
909
|
+
"attr.data-closed": "data().closed",
|
|
910
|
+
"attr.data-side": "data().side",
|
|
911
|
+
"attr.data-align": "data().align",
|
|
912
|
+
"attr.data-starting-style": "data()['starting-style']",
|
|
913
|
+
"attr.data-ending-style": "data()['ending-style']",
|
|
914
|
+
"style.--popup-width": "width()",
|
|
915
|
+
"style.--popup-height": "height()"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
exportAs: ["navigationMenuPopup"],
|
|
919
|
+
ngImport: i0
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
924
|
+
minVersion: "12.0.0",
|
|
925
|
+
version: "22.2.6",
|
|
926
|
+
ngImport: i0,
|
|
927
|
+
type: NavigationMenuPopup,
|
|
928
|
+
decorators: [{
|
|
929
|
+
type: Directive,
|
|
930
|
+
args: [{
|
|
931
|
+
selector: "[navigationMenuPopup]",
|
|
932
|
+
exportAs: "navigationMenuPopup",
|
|
933
|
+
host: {
|
|
934
|
+
"data-primitives-part": "navigation-menu-popup",
|
|
935
|
+
"[attr.data-open]": "data().open",
|
|
936
|
+
"[attr.data-closed]": "data().closed",
|
|
937
|
+
"[attr.data-side]": "data().side",
|
|
938
|
+
"[attr.data-align]": "data().align",
|
|
939
|
+
"[attr.data-starting-style]": "data()['starting-style']",
|
|
940
|
+
"[attr.data-ending-style]": "data()['ending-style']",
|
|
941
|
+
"[style.--popup-width]": "width()",
|
|
942
|
+
"[style.--popup-height]": "height()",
|
|
943
|
+
"(keydown)": "onKeyDown($event)"
|
|
944
|
+
}
|
|
945
|
+
}]
|
|
946
|
+
}],
|
|
947
|
+
ctorParameters: () => []
|
|
948
|
+
});
|
|
949
|
+
var NavigationMenuPortal = class NavigationMenuPortal {
|
|
950
|
+
constructor() {
|
|
951
|
+
this.options = input({}, {
|
|
952
|
+
...ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {},
|
|
953
|
+
alias: "navigationMenuPortal",
|
|
954
|
+
transform: portalOptions
|
|
955
|
+
});
|
|
956
|
+
mountPortal(inject(NavigationMenuRoot).presence.mounted, this.options);
|
|
957
|
+
}
|
|
958
|
+
static {
|
|
959
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
960
|
+
minVersion: "12.0.0",
|
|
961
|
+
version: "22.2.6",
|
|
962
|
+
ngImport: i0,
|
|
963
|
+
type: NavigationMenuPortal,
|
|
964
|
+
deps: [],
|
|
965
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
static {
|
|
969
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
970
|
+
minVersion: "17.1.0",
|
|
971
|
+
version: "22.2.6",
|
|
972
|
+
type: NavigationMenuPortal,
|
|
973
|
+
isStandalone: true,
|
|
974
|
+
selector: "[navigationMenuPortal]",
|
|
975
|
+
inputs: { options: {
|
|
976
|
+
classPropertyName: "options",
|
|
977
|
+
publicName: "navigationMenuPortal",
|
|
978
|
+
isSignal: true,
|
|
979
|
+
isRequired: false,
|
|
980
|
+
transformFunction: null
|
|
981
|
+
} },
|
|
982
|
+
ngImport: i0
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
987
|
+
minVersion: "12.0.0",
|
|
988
|
+
version: "22.2.6",
|
|
989
|
+
ngImport: i0,
|
|
990
|
+
type: NavigationMenuPortal,
|
|
991
|
+
decorators: [{
|
|
992
|
+
type: Directive,
|
|
993
|
+
args: [{ selector: "[navigationMenuPortal]" }]
|
|
994
|
+
}],
|
|
995
|
+
ctorParameters: () => [],
|
|
996
|
+
propDecorators: { options: [{
|
|
997
|
+
type: i0.Input,
|
|
998
|
+
args: [{
|
|
999
|
+
isSignal: true,
|
|
1000
|
+
alias: "navigationMenuPortal",
|
|
1001
|
+
required: false
|
|
1002
|
+
}]
|
|
1003
|
+
}] }
|
|
1004
|
+
});
|
|
1005
|
+
var NavigationMenuPositioner = class NavigationMenuPositioner {
|
|
1006
|
+
constructor() {
|
|
1007
|
+
this.root = inject(NavigationMenuRoot);
|
|
1008
|
+
this.side = input(void 0, ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
|
|
1009
|
+
this.align = input(void 0, ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
|
|
1010
|
+
this.sideOffset = input(void 0, ...ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []);
|
|
1011
|
+
this.alignOffset = input(void 0, ...ngDevMode ? [{ debugName: "alignOffset" }] : /* istanbul ignore next */ []);
|
|
1012
|
+
this.collisionPadding = input(void 0, ...ngDevMode ? [{ debugName: "collisionPadding" }] : /* istanbul ignore next */ []);
|
|
1013
|
+
this.anchor = input(void 0, ...ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []);
|
|
1014
|
+
this.state = computed(() => ({
|
|
1015
|
+
open: this.root.open(),
|
|
1016
|
+
...this.root.placed()
|
|
1017
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
1018
|
+
this.data = computed(() => dataValues({
|
|
1019
|
+
...this.state(),
|
|
1020
|
+
closed: !this.state().open
|
|
1021
|
+
}), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
1022
|
+
this.width = computed(() => {
|
|
1023
|
+
const size = this.root.size();
|
|
1024
|
+
return size ? `${size.width}px` : null;
|
|
1025
|
+
}, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
1026
|
+
this.height = computed(() => {
|
|
1027
|
+
const size = this.root.size();
|
|
1028
|
+
return size ? `${size.height}px` : null;
|
|
1029
|
+
}, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
1030
|
+
const root = this.root;
|
|
1031
|
+
const positioner = registerHost(root.positioner);
|
|
1032
|
+
positionOverlay(this, {
|
|
1033
|
+
side: "bottom",
|
|
1034
|
+
align: "center"
|
|
1035
|
+
}, {
|
|
1036
|
+
anchor: root.activeTrigger,
|
|
1037
|
+
positioner,
|
|
1038
|
+
arrow: root.arrow,
|
|
1039
|
+
mounted: root.presence.mounted
|
|
1040
|
+
}, root.placed);
|
|
1041
|
+
}
|
|
1042
|
+
static {
|
|
1043
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1044
|
+
minVersion: "12.0.0",
|
|
1045
|
+
version: "22.2.6",
|
|
1046
|
+
ngImport: i0,
|
|
1047
|
+
type: NavigationMenuPositioner,
|
|
1048
|
+
deps: [],
|
|
1049
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
static {
|
|
1053
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1054
|
+
minVersion: "17.1.0",
|
|
1055
|
+
version: "22.2.6",
|
|
1056
|
+
type: NavigationMenuPositioner,
|
|
1057
|
+
isStandalone: true,
|
|
1058
|
+
selector: "[navigationMenuPositioner]",
|
|
1059
|
+
inputs: {
|
|
1060
|
+
side: {
|
|
1061
|
+
classPropertyName: "side",
|
|
1062
|
+
publicName: "side",
|
|
1063
|
+
isSignal: true,
|
|
1064
|
+
isRequired: false,
|
|
1065
|
+
transformFunction: null
|
|
1066
|
+
},
|
|
1067
|
+
align: {
|
|
1068
|
+
classPropertyName: "align",
|
|
1069
|
+
publicName: "align",
|
|
1070
|
+
isSignal: true,
|
|
1071
|
+
isRequired: false,
|
|
1072
|
+
transformFunction: null
|
|
1073
|
+
},
|
|
1074
|
+
sideOffset: {
|
|
1075
|
+
classPropertyName: "sideOffset",
|
|
1076
|
+
publicName: "sideOffset",
|
|
1077
|
+
isSignal: true,
|
|
1078
|
+
isRequired: false,
|
|
1079
|
+
transformFunction: null
|
|
1080
|
+
},
|
|
1081
|
+
alignOffset: {
|
|
1082
|
+
classPropertyName: "alignOffset",
|
|
1083
|
+
publicName: "alignOffset",
|
|
1084
|
+
isSignal: true,
|
|
1085
|
+
isRequired: false,
|
|
1086
|
+
transformFunction: null
|
|
1087
|
+
},
|
|
1088
|
+
collisionPadding: {
|
|
1089
|
+
classPropertyName: "collisionPadding",
|
|
1090
|
+
publicName: "collisionPadding",
|
|
1091
|
+
isSignal: true,
|
|
1092
|
+
isRequired: false,
|
|
1093
|
+
transformFunction: null
|
|
1094
|
+
},
|
|
1095
|
+
anchor: {
|
|
1096
|
+
classPropertyName: "anchor",
|
|
1097
|
+
publicName: "anchor",
|
|
1098
|
+
isSignal: true,
|
|
1099
|
+
isRequired: false,
|
|
1100
|
+
transformFunction: null
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
host: {
|
|
1104
|
+
attributes: {
|
|
1105
|
+
"role": "presentation",
|
|
1106
|
+
"data-primitives-part": "navigation-menu-positioner"
|
|
1107
|
+
},
|
|
1108
|
+
properties: {
|
|
1109
|
+
"attr.data-open": "data().open",
|
|
1110
|
+
"attr.data-closed": "data().closed",
|
|
1111
|
+
"attr.data-side": "data().side",
|
|
1112
|
+
"attr.data-align": "data().align",
|
|
1113
|
+
"style.--positioner-width": "width()",
|
|
1114
|
+
"style.--positioner-height": "height()"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
exportAs: ["navigationMenuPositioner"],
|
|
1118
|
+
ngImport: i0
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1123
|
+
minVersion: "12.0.0",
|
|
1124
|
+
version: "22.2.6",
|
|
1125
|
+
ngImport: i0,
|
|
1126
|
+
type: NavigationMenuPositioner,
|
|
1127
|
+
decorators: [{
|
|
1128
|
+
type: Directive,
|
|
1129
|
+
args: [{
|
|
1130
|
+
selector: "[navigationMenuPositioner]",
|
|
1131
|
+
exportAs: "navigationMenuPositioner",
|
|
1132
|
+
host: {
|
|
1133
|
+
role: "presentation",
|
|
1134
|
+
"data-primitives-part": "navigation-menu-positioner",
|
|
1135
|
+
"[attr.data-open]": "data().open",
|
|
1136
|
+
"[attr.data-closed]": "data().closed",
|
|
1137
|
+
"[attr.data-side]": "data().side",
|
|
1138
|
+
"[attr.data-align]": "data().align",
|
|
1139
|
+
"[style.--positioner-width]": "width()",
|
|
1140
|
+
"[style.--positioner-height]": "height()"
|
|
1141
|
+
}
|
|
1142
|
+
}]
|
|
1143
|
+
}],
|
|
1144
|
+
ctorParameters: () => [],
|
|
1145
|
+
propDecorators: {
|
|
1146
|
+
side: [{
|
|
1147
|
+
type: i0.Input,
|
|
1148
|
+
args: [{
|
|
1149
|
+
isSignal: true,
|
|
1150
|
+
alias: "side",
|
|
1151
|
+
required: false
|
|
1152
|
+
}]
|
|
1153
|
+
}],
|
|
1154
|
+
align: [{
|
|
1155
|
+
type: i0.Input,
|
|
1156
|
+
args: [{
|
|
1157
|
+
isSignal: true,
|
|
1158
|
+
alias: "align",
|
|
1159
|
+
required: false
|
|
1160
|
+
}]
|
|
1161
|
+
}],
|
|
1162
|
+
sideOffset: [{
|
|
1163
|
+
type: i0.Input,
|
|
1164
|
+
args: [{
|
|
1165
|
+
isSignal: true,
|
|
1166
|
+
alias: "sideOffset",
|
|
1167
|
+
required: false
|
|
1168
|
+
}]
|
|
1169
|
+
}],
|
|
1170
|
+
alignOffset: [{
|
|
1171
|
+
type: i0.Input,
|
|
1172
|
+
args: [{
|
|
1173
|
+
isSignal: true,
|
|
1174
|
+
alias: "alignOffset",
|
|
1175
|
+
required: false
|
|
1176
|
+
}]
|
|
1177
|
+
}],
|
|
1178
|
+
collisionPadding: [{
|
|
1179
|
+
type: i0.Input,
|
|
1180
|
+
args: [{
|
|
1181
|
+
isSignal: true,
|
|
1182
|
+
alias: "collisionPadding",
|
|
1183
|
+
required: false
|
|
1184
|
+
}]
|
|
1185
|
+
}],
|
|
1186
|
+
anchor: [{
|
|
1187
|
+
type: i0.Input,
|
|
1188
|
+
args: [{
|
|
1189
|
+
isSignal: true,
|
|
1190
|
+
alias: "anchor",
|
|
1191
|
+
required: false
|
|
1192
|
+
}]
|
|
1193
|
+
}]
|
|
1194
|
+
}
|
|
1195
|
+
});
|
|
1196
|
+
const PATIENT_CLICK = 500;
|
|
1197
|
+
var NavigationMenuTrigger = class NavigationMenuTrigger {
|
|
1198
|
+
constructor() {
|
|
1199
|
+
this.root = inject(NavigationMenuRoot);
|
|
1200
|
+
this.item = inject(NavigationMenuItem);
|
|
1201
|
+
this.host = injectHost();
|
|
1202
|
+
this.direction = injectProvidedDirection();
|
|
1203
|
+
this.disabled = input(false, {
|
|
1204
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1205
|
+
transform: booleanAttribute
|
|
1206
|
+
});
|
|
1207
|
+
this.state = computed(() => ({
|
|
1208
|
+
open: this.item.open(),
|
|
1209
|
+
disabled: this.disabled()
|
|
1210
|
+
}), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
|
|
1211
|
+
this.data = computed(() => dataValues({
|
|
1212
|
+
"popup-open": this.item.open(),
|
|
1213
|
+
disabled: this.disabled()
|
|
1214
|
+
}), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
|
|
1215
|
+
let unregister = null;
|
|
1216
|
+
effect(() => {
|
|
1217
|
+
const value = this.item.itemValue();
|
|
1218
|
+
unregister?.();
|
|
1219
|
+
unregister = this.root.registerTrigger(value, this.host);
|
|
1220
|
+
});
|
|
1221
|
+
inject(DestroyRef).onDestroy(() => unregister?.());
|
|
1222
|
+
}
|
|
1223
|
+
onPointerEnter(event) {
|
|
1224
|
+
if (this.disabled() || event.pointerType === "touch") return;
|
|
1225
|
+
const root = this.root;
|
|
1226
|
+
if (root.current() !== null) {
|
|
1227
|
+
root.hover.cancel();
|
|
1228
|
+
if (!this.item.open()) {
|
|
1229
|
+
root.setValue(this.item.itemValue(), "trigger-hover", event, "hover");
|
|
1230
|
+
root.flush();
|
|
1231
|
+
}
|
|
1232
|
+
return;
|
|
1233
|
+
}
|
|
1234
|
+
root.pendingHover = this.item.itemValue();
|
|
1235
|
+
root.hover.enter(root.delay());
|
|
1236
|
+
}
|
|
1237
|
+
onPointerLeave(event) {
|
|
1238
|
+
if (event.pointerType === "touch") return;
|
|
1239
|
+
const root = this.root;
|
|
1240
|
+
if (root.current() === null && root.pendingHover === this.item.itemValue()) {
|
|
1241
|
+
root.pendingHover = null;
|
|
1242
|
+
root.hover.cancel();
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
onClick(event) {
|
|
1246
|
+
if (this.disabled()) return;
|
|
1247
|
+
const root = this.root;
|
|
1248
|
+
root.hover.cancel();
|
|
1249
|
+
const opened = root.openedBy;
|
|
1250
|
+
if (this.item.open()) {
|
|
1251
|
+
if (opened.by === "hover" && performance.now() - opened.at < PATIENT_CLICK) {
|
|
1252
|
+
opened.by = "press";
|
|
1253
|
+
return;
|
|
1254
|
+
}
|
|
1255
|
+
root.setValue(null, "trigger-press", event);
|
|
1256
|
+
} else root.setValue(this.item.itemValue(), "trigger-press", event, "press");
|
|
1257
|
+
root.flush();
|
|
1258
|
+
}
|
|
1259
|
+
onKeyDown(event) {
|
|
1260
|
+
if (this.disabled()) return;
|
|
1261
|
+
const root = this.root;
|
|
1262
|
+
const rtl = getDirection(this.host, this.direction()) === "rtl";
|
|
1263
|
+
const openKey = root.orientation() === "horizontal" ? "ArrowDown" : rtl ? "ArrowLeft" : "ArrowRight";
|
|
1264
|
+
const content = this.item.content();
|
|
1265
|
+
if (event.key === openKey) {
|
|
1266
|
+
event.preventDefault();
|
|
1267
|
+
event.stopPropagation();
|
|
1268
|
+
root.hover.cancel();
|
|
1269
|
+
if (this.item.open() && content) {
|
|
1270
|
+
getTabbables(content)[0]?.focus();
|
|
1271
|
+
return;
|
|
1272
|
+
}
|
|
1273
|
+
root.pendingFocus = this.item.itemValue();
|
|
1274
|
+
root.setValue(this.item.itemValue(), "list-navigation", event, "press");
|
|
1275
|
+
root.flush();
|
|
1276
|
+
return;
|
|
1277
|
+
}
|
|
1278
|
+
if (event.key === "Tab" && !event.shiftKey && this.item.open() && content) {
|
|
1279
|
+
const first = getTabbables(content)[0];
|
|
1280
|
+
if (first) {
|
|
1281
|
+
event.preventDefault();
|
|
1282
|
+
first.focus();
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
static {
|
|
1287
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1288
|
+
minVersion: "12.0.0",
|
|
1289
|
+
version: "22.2.6",
|
|
1290
|
+
ngImport: i0,
|
|
1291
|
+
type: NavigationMenuTrigger,
|
|
1292
|
+
deps: [],
|
|
1293
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
static {
|
|
1297
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1298
|
+
minVersion: "17.1.0",
|
|
1299
|
+
version: "22.2.6",
|
|
1300
|
+
type: NavigationMenuTrigger,
|
|
1301
|
+
isStandalone: true,
|
|
1302
|
+
selector: "[navigationMenuTrigger]",
|
|
1303
|
+
inputs: { disabled: {
|
|
1304
|
+
classPropertyName: "disabled",
|
|
1305
|
+
publicName: "disabled",
|
|
1306
|
+
isSignal: true,
|
|
1307
|
+
isRequired: false,
|
|
1308
|
+
transformFunction: null
|
|
1309
|
+
} },
|
|
1310
|
+
host: {
|
|
1311
|
+
attributes: {
|
|
1312
|
+
"type": "button",
|
|
1313
|
+
"data-primitives-part": "navigation-menu-trigger"
|
|
1314
|
+
},
|
|
1315
|
+
listeners: {
|
|
1316
|
+
"pointerenter": "onPointerEnter($event)",
|
|
1317
|
+
"pointerleave": "onPointerLeave($event)",
|
|
1318
|
+
"click": "onClick($event)",
|
|
1319
|
+
"keydown": "onKeyDown($event)"
|
|
1320
|
+
},
|
|
1321
|
+
properties: {
|
|
1322
|
+
"attr.disabled": "disabled() ? '' : null",
|
|
1323
|
+
"attr.aria-expanded": "item.open()",
|
|
1324
|
+
"attr.aria-controls": "item.open() ? item.contentId : null",
|
|
1325
|
+
"attr.data-popup-open": "data()['popup-open']",
|
|
1326
|
+
"attr.data-disabled": "data().disabled"
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
exportAs: ["navigationMenuTrigger"],
|
|
1330
|
+
ngImport: i0
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
};
|
|
1334
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1335
|
+
minVersion: "12.0.0",
|
|
1336
|
+
version: "22.2.6",
|
|
1337
|
+
ngImport: i0,
|
|
1338
|
+
type: NavigationMenuTrigger,
|
|
1339
|
+
decorators: [{
|
|
1340
|
+
type: Directive,
|
|
1341
|
+
args: [{
|
|
1342
|
+
selector: "[navigationMenuTrigger]",
|
|
1343
|
+
exportAs: "navigationMenuTrigger",
|
|
1344
|
+
host: {
|
|
1345
|
+
type: "button",
|
|
1346
|
+
"data-primitives-part": "navigation-menu-trigger",
|
|
1347
|
+
"[attr.disabled]": "disabled() ? '' : null",
|
|
1348
|
+
"[attr.aria-expanded]": "item.open()",
|
|
1349
|
+
"[attr.aria-controls]": "item.open() ? item.contentId : null",
|
|
1350
|
+
"[attr.data-popup-open]": "data()['popup-open']",
|
|
1351
|
+
"[attr.data-disabled]": "data().disabled",
|
|
1352
|
+
"(pointerenter)": "onPointerEnter($event)",
|
|
1353
|
+
"(pointerleave)": "onPointerLeave($event)",
|
|
1354
|
+
"(click)": "onClick($event)",
|
|
1355
|
+
"(keydown)": "onKeyDown($event)"
|
|
1356
|
+
}
|
|
1357
|
+
}]
|
|
1358
|
+
}],
|
|
1359
|
+
ctorParameters: () => [],
|
|
1360
|
+
propDecorators: { disabled: [{
|
|
1361
|
+
type: i0.Input,
|
|
1362
|
+
args: [{
|
|
1363
|
+
isSignal: true,
|
|
1364
|
+
alias: "disabled",
|
|
1365
|
+
required: false
|
|
1366
|
+
}]
|
|
1367
|
+
}] }
|
|
1368
|
+
});
|
|
1369
|
+
var NavigationMenuViewport = class NavigationMenuViewport {
|
|
1370
|
+
constructor() {
|
|
1371
|
+
registerHost(inject(NavigationMenuRoot).viewport);
|
|
1372
|
+
}
|
|
1373
|
+
static {
|
|
1374
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1375
|
+
minVersion: "12.0.0",
|
|
1376
|
+
version: "22.2.6",
|
|
1377
|
+
ngImport: i0,
|
|
1378
|
+
type: NavigationMenuViewport,
|
|
1379
|
+
deps: [],
|
|
1380
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
static {
|
|
1384
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
1385
|
+
minVersion: "14.0.0",
|
|
1386
|
+
version: "22.2.6",
|
|
1387
|
+
type: NavigationMenuViewport,
|
|
1388
|
+
isStandalone: true,
|
|
1389
|
+
selector: "[navigationMenuViewport]",
|
|
1390
|
+
host: { attributes: { "data-primitives-part": "navigation-menu-viewport" } },
|
|
1391
|
+
exportAs: ["navigationMenuViewport"],
|
|
1392
|
+
ngImport: i0
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1397
|
+
minVersion: "12.0.0",
|
|
1398
|
+
version: "22.2.6",
|
|
1399
|
+
ngImport: i0,
|
|
1400
|
+
type: NavigationMenuViewport,
|
|
1401
|
+
decorators: [{
|
|
1402
|
+
type: Directive,
|
|
1403
|
+
args: [{
|
|
1404
|
+
selector: "[navigationMenuViewport]",
|
|
1405
|
+
exportAs: "navigationMenuViewport",
|
|
1406
|
+
host: { "data-primitives-part": "navigation-menu-viewport" }
|
|
1407
|
+
}]
|
|
1408
|
+
}],
|
|
1409
|
+
ctorParameters: () => []
|
|
1410
|
+
});
|
|
1411
|
+
export { NavigationMenuArrow, NavigationMenuBackdrop, NavigationMenuContent, NavigationMenuIcon, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPopup, NavigationMenuPortal, NavigationMenuPositioner, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuViewport };
|
|
1412
|
+
|
|
1413
|
+
//# sourceMappingURL=fragiola-primitives-angular-navigation-menu.mjs.map
|