ropav 0.1.7 → 0.1.8

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.
Files changed (153) hide show
  1. package/README.md +1 -1
  2. package/dist/ancestry.js +136 -0
  3. package/dist/calendar.css +173 -0
  4. package/dist/calendar.js +714 -0
  5. package/dist/calendar2.js +37 -0
  6. package/dist/chevron-left.js +12 -0
  7. package/dist/color-picker.js +38 -88
  8. package/dist/combobox.css +251 -0
  9. package/dist/combobox.js +410 -0
  10. package/dist/components/calendar/calendar.d.ts +30 -0
  11. package/dist/components/calendar/calendarBehavior.d.ts +49 -0
  12. package/dist/components/calendar/index.d.ts +3 -0
  13. package/dist/components/calendar/index.js +3 -0
  14. package/dist/components/calendar/types.d.ts +53 -0
  15. package/dist/components/calendar/useCalendar.d.ts +24 -0
  16. package/dist/components/color-picker/useColorPickerDrag.d.ts +1 -1
  17. package/dist/components/color-picker/useColorPickerSaturation.d.ts +1 -1
  18. package/dist/components/color-picker/useColorPickerSlider.d.ts +1 -1
  19. package/dist/components/combobox/combobox.d.ts +29 -0
  20. package/dist/components/combobox/comboboxModel.d.ts +4 -0
  21. package/dist/components/combobox/index.d.ts +3 -0
  22. package/dist/components/combobox/index.js +2 -0
  23. package/dist/components/combobox/types.d.ts +43 -0
  24. package/dist/components/combobox/useCombobox.d.ts +45 -0
  25. package/dist/components/date-picker/date-picker.d.ts +33 -0
  26. package/dist/components/date-picker/datePickerModel.d.ts +10 -0
  27. package/dist/components/date-picker/index.d.ts +4 -0
  28. package/dist/components/date-picker/index.js +2 -0
  29. package/dist/components/date-picker/types.d.ts +57 -0
  30. package/dist/components/date-picker/useDatePicker.d.ts +29 -0
  31. package/dist/components/date-picker/useDatePickerValueState.d.ts +21 -0
  32. package/dist/components/dropdown-menu/dropdown-menu-content.d.ts +2 -2
  33. package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +2 -2
  34. package/dist/components/dropdown-menu/dropdown-menu.d.ts +2 -2
  35. package/dist/components/dropdown-menu/dropdownMenuContext.d.ts +7 -18
  36. package/dist/components/dropdown-menu/dropdownMenuInteraction.d.ts +3 -3
  37. package/dist/components/dropdown-menu/dropdownMenuInteractionTypes.d.ts +58 -29
  38. package/dist/components/dropdown-menu/useDropdownMenuDataController.d.ts +4 -3
  39. package/dist/components/dropdown-menu/useDropdownMenuDataRegistration.d.ts +6 -4
  40. package/dist/components/dropdown-menu/useDropdownMenuPresentation.d.ts +3 -4
  41. package/dist/components/dropdown-menu/useDropdownMenuTargetBindings.d.ts +5 -5
  42. package/dist/components/dropzone/dropzone.d.ts +31 -0
  43. package/dist/components/dropzone/dropzoneModel.d.ts +16 -0
  44. package/dist/components/dropzone/index.d.ts +3 -0
  45. package/dist/components/dropzone/index.js +2 -0
  46. package/dist/components/dropzone/types.d.ts +56 -0
  47. package/dist/components/dropzone/useDropzone.d.ts +25 -0
  48. package/dist/components/file-input/file-input.d.ts +29 -0
  49. package/dist/components/file-input/index.d.ts +3 -0
  50. package/dist/components/file-input/index.js +2 -0
  51. package/dist/components/file-input/types.d.ts +37 -0
  52. package/dist/components/file-input/useFileInput.d.ts +15 -0
  53. package/dist/components/floating/index.js +1 -1
  54. package/dist/components/floating/useFloatingPosition.d.ts +1 -13
  55. package/dist/components/floating/useFloatingTargetLifecycle.d.ts +32 -0
  56. package/dist/components/floating/useHoverDisclosure.d.ts +10 -0
  57. package/dist/components/hover-card/hover-card.d.ts +25 -0
  58. package/dist/components/hover-card/index.d.ts +3 -0
  59. package/dist/components/hover-card/index.js +2 -0
  60. package/dist/components/hover-card/types.d.ts +45 -0
  61. package/dist/components/hover-card/useHoverCard.d.ts +22 -0
  62. package/dist/components/hover-card/useHoverCardDisclosure.d.ts +19 -0
  63. package/dist/components/multi-select/index.d.ts +3 -0
  64. package/dist/components/multi-select/index.js +2 -0
  65. package/dist/components/multi-select/multi-select.d.ts +30 -0
  66. package/dist/components/multi-select/multiSelectModel.d.ts +3 -0
  67. package/dist/components/multi-select/types.d.ts +49 -0
  68. package/dist/components/multi-select/useMultiSelect.d.ts +46 -0
  69. package/dist/components/number-input/useNumberInput.d.ts +1 -3
  70. package/dist/components/popover/usePopoverBindings.d.ts +3 -6
  71. package/dist/components/scroll-area/useScrollArea.d.ts +4 -4
  72. package/dist/components/scroll-area/useScrollAreaAttributes.d.ts +3 -3
  73. package/dist/components/scroll-area/useScrollAreaPointer.d.ts +1 -1
  74. package/dist/components/segmented-control/index.d.ts +3 -0
  75. package/dist/components/segmented-control/index.js +2 -0
  76. package/dist/components/segmented-control/segmented-control.d.ts +26 -0
  77. package/dist/components/segmented-control/types.d.ts +47 -0
  78. package/dist/components/segmented-control/useSegmentedControl.d.ts +15 -0
  79. package/dist/components/select/useSelect.d.ts +31 -19
  80. package/dist/components/slider/useRangeSlider.d.ts +1 -1
  81. package/dist/components/slider/useRangeSliderPointer.d.ts +1 -1
  82. package/dist/components/tags-input/index.d.ts +3 -0
  83. package/dist/components/tags-input/index.js +2 -0
  84. package/dist/components/tags-input/tags-input.d.ts +27 -0
  85. package/dist/components/tags-input/tagsInputModel.d.ts +12 -0
  86. package/dist/components/tags-input/types.d.ts +37 -0
  87. package/dist/components/tags-input/useTagsInput.d.ts +23 -0
  88. package/dist/components/tooltip/useTooltipTargetBindings.d.ts +12 -0
  89. package/dist/date-picker.css +49 -0
  90. package/dist/date-picker.js +809 -0
  91. package/dist/dialog.js +9 -20
  92. package/dist/direction.js +6 -0
  93. package/dist/dropdown-menu.css +21 -3
  94. package/dist/dropdown-menu.js +341 -261
  95. package/dist/dropzone.css +135 -0
  96. package/dist/dropzone.js +431 -0
  97. package/dist/file-input.css +135 -0
  98. package/dist/file-input.js +198 -0
  99. package/dist/hover-card.css +80 -0
  100. package/dist/hover-card.js +402 -0
  101. package/dist/index.d.ts +9 -0
  102. package/dist/index.js +14 -3
  103. package/dist/internal/composables/useOverlayLayer.d.ts +12 -0
  104. package/dist/modal.js +1 -1
  105. package/dist/multi-select.css +316 -0
  106. package/dist/multi-select.js +481 -0
  107. package/dist/nativeChoice.js +169 -0
  108. package/dist/number-input.css +18 -18
  109. package/dist/number-input.js +36 -38
  110. package/dist/pagination.js +1 -10
  111. package/dist/pointerSession.js +130 -0
  112. package/dist/popover.css +21 -3
  113. package/dist/popover.js +37 -62
  114. package/dist/scroll-area.js +52 -62
  115. package/dist/segmented-control.css +176 -0
  116. package/dist/segmented-control.js +382 -0
  117. package/dist/select.css +50 -48
  118. package/dist/select.js +121 -271
  119. package/dist/slider.js +70 -129
  120. package/dist/tags-input.css +197 -0
  121. package/dist/tags-input.js +380 -0
  122. package/dist/tooltip.js +35 -30
  123. package/dist/useEditableOptionList.js +216 -0
  124. package/dist/useFlatOptionCollection.js +134 -0
  125. package/dist/useFloatingPosition.js +4 -160
  126. package/dist/useFloatingTargetLifecycle.js +127 -0
  127. package/dist/useFormControl.js +1 -0
  128. package/dist/{floating.js → useHoverDisclosure.js} +338 -421
  129. package/dist/useNativeChoiceTransaction.js +46 -0
  130. package/dist/useNativeFileSelection.js +86 -0
  131. package/dist/useOverlayZIndex.js +246 -15
  132. package/dist/utils/date.d.ts +13 -0
  133. package/dist/utils/dateAvailability.d.ts +7 -0
  134. package/dist/utils/dom/ancestry.d.ts +1 -0
  135. package/dist/utils/dom/direction.d.ts +2 -0
  136. package/dist/utils/dom/files.d.ts +3 -0
  137. package/dist/utils/dom/nativeChoice.d.ts +17 -0
  138. package/dist/utils/dom/pointerSession.d.ts +20 -0
  139. package/dist/utils/dom/scroll.d.ts +2 -1
  140. package/dist/utils/optionFilter.d.ts +5 -0
  141. package/docs/public-floating-api.md +7 -4
  142. package/docs/public-styles-api.md +25 -12
  143. package/package.json +39 -3
  144. package/src/styles/_mixins.scss +26 -0
  145. package/src/styles/styles-manifest.json +1 -2
  146. package/dist/components/floating/hoverDisclosureInteractionModel.d.ts +0 -42
  147. package/dist/components/floating/useHoverDisclosureInteractions.d.ts +0 -32
  148. package/dist/components/floating/useHoverDisclosureOpenState.d.ts +0 -25
  149. package/dist/components/floating/useHoverDisclosureTargetBinding.d.ts +0 -27
  150. package/dist/components/select/useSelectNativeControl.d.ts +0 -9
  151. package/dist/components/select/useSelectNativeValue.d.ts +0 -9
  152. package/dist/pointer.js +0 -9
  153. package/dist/utils/dom/pointer.d.ts +0 -2
@@ -0,0 +1,43 @@
1
+ import { InputHTMLAttributes } from 'vue';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ export interface ComboboxOption {
4
+ label: string;
5
+ value: string | number;
6
+ disabled?: boolean;
7
+ }
8
+ export type ComboboxFilter = (option: ComboboxOption, searchValue: string) => boolean;
9
+ export type ComboboxRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
10
+ export type ComboboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
11
+ export interface ComboboxOptionSlotProps {
12
+ option: ComboboxOption;
13
+ selected: boolean;
14
+ highlighted: boolean;
15
+ }
16
+ export interface ComboboxEmptySlotProps {
17
+ searchValue: string;
18
+ }
19
+ export interface ComboboxProps extends StylesApiProps<ComboboxPart> {
20
+ id?: string;
21
+ name?: string;
22
+ form?: string;
23
+ modelValue?: string | number | null;
24
+ defaultValue?: string | number | null;
25
+ options?: ComboboxOption[];
26
+ filter?: ComboboxFilter | false;
27
+ size?: ComboboxSize;
28
+ radius?: ComboboxRadius;
29
+ placeholder?: string;
30
+ clearable?: boolean;
31
+ clearLabel?: string;
32
+ toggleLabel?: string;
33
+ disabled?: boolean;
34
+ required?: boolean;
35
+ invalid?: boolean;
36
+ ariaLabel?: string;
37
+ describedby?: string;
38
+ labelledby?: string;
39
+ inputAttrs?: InputHTMLAttributes;
40
+ validationMessage?: string;
41
+ }
42
+ export declare const comboboxParts: readonly ["root", "input", "indicator", "clear", "toggle", "content", "option", "empty"];
43
+ export type ComboboxPart = (typeof comboboxParts)[number];
@@ -0,0 +1,45 @@
1
+ import { CSSProperties, ComputedRef, Ref, SelectHTMLAttributes } from 'vue';
2
+ import { ControlState } from '../../internal/composables/useControlState.js';
3
+ import { FlatOptionState } from '../../internal/composables/useFlatOptionCollection.js';
4
+ import { ComponentElementRef } from '../../utils/dom/componentRef.js';
5
+ import { FloatingPlacement, FloatingSide } from '../floating/types.js';
6
+ import { ComboboxValue } from './comboboxModel.js';
7
+ import { ComboboxOption, ComboboxProps } from './types.js';
8
+ export interface ComboboxControl {
9
+ templateRefs: {
10
+ root: Ref<HTMLElement | null>;
11
+ input: Ref<HTMLInputElement | null>;
12
+ native: Ref<HTMLSelectElement | null>;
13
+ };
14
+ nativeSelectAttrs: ComputedRef<SelectHTMLAttributes>;
15
+ isOpen: Ref<boolean>;
16
+ popupId: string;
17
+ listboxId: string;
18
+ control: ControlState;
19
+ visibleOptions: ComputedRef<ComboboxOption[]>;
20
+ renderedOptions: ComputedRef<readonly FlatOptionState<ComboboxOption>[]>;
21
+ activeDescendantId: ComputedRef<string | undefined>;
22
+ rootClass: ComputedRef<string[]>;
23
+ floatingStyle: Readonly<Ref<CSSProperties>>;
24
+ actualPlacement: Readonly<Ref<FloatingPlacement>>;
25
+ placementSide: ComputedRef<FloatingSide>;
26
+ searchValue: Ref<string>;
27
+ displayLabel: ComputedRef<string>;
28
+ canClear: ComputedRef<boolean>;
29
+ setDropdownElement: (elementRef: ComponentElementRef) => void;
30
+ toggle: () => void;
31
+ selectOption: (option: ComboboxOption) => void;
32
+ clearSelection: () => void;
33
+ onOptionMouseenter: (option: ComboboxOption) => void;
34
+ onFocusout: (event: FocusEvent) => void;
35
+ onInput: (event: Event) => void;
36
+ onInputFocus: () => void;
37
+ onInputClick: () => void;
38
+ onInputKeydown: (event: KeyboardEvent) => void;
39
+ }
40
+ interface ComboboxCallbacks {
41
+ valueChange: (value: ComboboxValue) => void;
42
+ search: (searchValue: string) => void;
43
+ }
44
+ export declare function useCombobox(props: Readonly<ComboboxProps>, callbacks: ComboboxCallbacks): ComboboxControl;
45
+ export {};
@@ -0,0 +1,33 @@
1
+ import { DatePickerDaySlotProps, DatePickerProps } from './types.js';
2
+ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<DatePickerProps & {
4
+ "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
5
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
6
+ onChange?: ((value: Date | null) => any) | undefined;
7
+ }> & (typeof globalThis extends {
8
+ __VLS_PROPS_FALLBACK: infer P;
9
+ } ? P : {});
10
+ expose: (exposed: import('vue').ShallowUnwrapRef<{
11
+ nativeElement: import('vue').ComputedRef<HTMLInputElement | null>;
12
+ focus: () => void | undefined;
13
+ open: () => void;
14
+ }>) => void;
15
+ attrs: any;
16
+ slots: {
17
+ day?(props: DatePickerDaySlotProps): unknown;
18
+ 'clear-icon'?(): unknown;
19
+ 'calendar-icon'?(): unknown;
20
+ 'previous-icon'?(): unknown;
21
+ 'next-icon'?(): unknown;
22
+ };
23
+ emit: ((evt: "update:modelValue", value: Date | null) => void) & ((evt: "update:open", open: boolean) => void) & ((evt: "change", value: Date | null) => void);
24
+ }>) => import('vue').VNode & {
25
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
26
+ };
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
30
+ [K in keyof T]: T[K];
31
+ } : {
32
+ [K in keyof T as K]: T[K];
33
+ }) & {};
@@ -0,0 +1,10 @@
1
+ export declare const defaultDatePickerFormat: Intl.DateTimeFormatOptions;
2
+ export declare function formatDatePickerValue(value: Date | null, locale?: string, format?: Intl.DateTimeFormatOptions): string;
3
+ /**
4
+ * Parses ISO date keys or supported locale values produced by `formatDatePickerValue`.
5
+ *
6
+ * Locale parsing supports Gregorian, ISO 8601, and Buddhist date-only formats.
7
+ * Two-digit years resolve to the corresponding Gregorian year from 2000 through 2099.
8
+ */
9
+ export declare function parseDatePickerValue(value: string, locale?: string, format?: Intl.DateTimeFormatOptions): Date | null;
10
+ export declare function normalizeDatePickerValue(value: Date | null | undefined): Date | null;
@@ -0,0 +1,4 @@
1
+ export { default as DatePicker } from './date-picker.js';
2
+ export { datePickerParts } from './types.js';
3
+ export type { DatePickerDaySlotProps, DatePickerFormat, DatePickerParse, DatePickerPart, DatePickerProps, } from './types.js';
4
+ export { defaultDatePickerFormat, formatDatePickerValue, normalizeDatePickerValue, parseDatePickerValue, } from './datePickerModel.js';
@@ -0,0 +1,2 @@
1
+ import { a as normalizeDatePickerValue, i as formatDatePickerValue, n as date_picker_default, o as parseDatePickerValue, r as defaultDatePickerFormat, t as datePickerParts } from "../../date-picker.js";
2
+ export { date_picker_default as DatePicker, datePickerParts, defaultDatePickerFormat, formatDatePickerValue, normalizeDatePickerValue, parseDatePickerValue };
@@ -0,0 +1,57 @@
1
+ import { InputHTMLAttributes } from 'vue';
2
+ import { StylesApiProps } from '../../styles-api.js';
3
+ import { CalendarDaySlotProps, CalendarDisabledDates, CalendarRadius, CalendarSize, CalendarWeekdayFormat } from '../calendar/types.js';
4
+ import { InputRadius, InputSize } from '../input/types.js';
5
+ import { PopoverPlacement } from '../popover/types.js';
6
+ export declare const datePickerParts: readonly ["root", "control", "input", "clear", "indicator", "content", "calendar", "calendarHeader", "calendarControl", "calendarMonthLabel", "calendarWeekdays", "calendarWeekday", "calendarGrid", "calendarWeek", "calendarDayCell", "calendarDay"];
7
+ export type DatePickerPart = (typeof datePickerParts)[number];
8
+ export type DatePickerFormat = (date: Date) => string;
9
+ export type DatePickerParse = (value: string) => Date | null;
10
+ export type DatePickerDaySlotProps = CalendarDaySlotProps;
11
+ export interface DatePickerProps extends StylesApiProps<DatePickerPart> {
12
+ id?: string;
13
+ name?: string;
14
+ form?: string;
15
+ modelValue?: Date | null;
16
+ defaultValue?: Date | null;
17
+ defaultMonth?: Date;
18
+ open?: boolean;
19
+ locale?: string;
20
+ dateFormat?: Intl.DateTimeFormatOptions;
21
+ formatDate?: DatePickerFormat;
22
+ parseDate?: DatePickerParse;
23
+ firstDayOfWeek?: number;
24
+ weekdayFormat?: CalendarWeekdayFormat;
25
+ min?: Date;
26
+ max?: Date;
27
+ disabledDates?: CalendarDisabledDates;
28
+ fixedWeeks?: boolean;
29
+ hideOutsideDates?: boolean;
30
+ allowInput?: boolean;
31
+ clearable?: boolean;
32
+ closeOnSelect?: boolean;
33
+ disabled?: boolean;
34
+ readonly?: boolean;
35
+ required?: boolean;
36
+ invalid?: boolean;
37
+ valid?: boolean;
38
+ size?: InputSize;
39
+ radius?: InputRadius;
40
+ calendarSize?: CalendarSize;
41
+ calendarRadius?: CalendarRadius;
42
+ placeholder?: string;
43
+ ariaLabel?: string;
44
+ describedby?: string;
45
+ labelledby?: string;
46
+ inputAttrs?: InputHTMLAttributes;
47
+ validationMessage?: string;
48
+ invalidDateMessage?: string;
49
+ clearLabel?: string;
50
+ toggleLabel?: string;
51
+ calendarAriaLabel?: string;
52
+ previousLabel?: string;
53
+ nextLabel?: string;
54
+ placement?: PopoverPlacement;
55
+ keepMounted?: boolean;
56
+ popoverId?: string;
57
+ }
@@ -0,0 +1,29 @@
1
+ import { InputHTMLAttributes } from 'vue';
2
+ import { DatePickerProps } from './types.js';
3
+ interface DatePickerEmitters {
4
+ value: (value: Date | null) => void;
5
+ change: (value: Date | null) => void;
6
+ open: (open: boolean) => void;
7
+ }
8
+ interface DatePickerElements {
9
+ getInput: () => HTMLInputElement | null;
10
+ focusCalendar: () => void;
11
+ }
12
+ export declare function useDatePicker(props: Readonly<DatePickerProps>, emit: DatePickerEmitters, elements: DatePickerElements): {
13
+ control: import('../../internal/composables/useControlState.js').ControlState;
14
+ selectedDate: import('vue').ComputedRef<Date | null>;
15
+ inputValue: import('vue').ShallowRef<string, string>;
16
+ isInvalid: import('vue').ComputedRef<boolean>;
17
+ effectiveValidationMessage: import('vue').ComputedRef<string | undefined>;
18
+ rootClass: import('vue').ComputedRef<string[]>;
19
+ canClear: import('vue').ComputedRef<boolean>;
20
+ getInputTriggerAttrs: (slotProps: unknown) => InputHTMLAttributes;
21
+ onInputUpdate: (value: string) => void;
22
+ onCalendarKeydown: (event: KeyboardEvent) => void;
23
+ onFocusOut: (event: FocusEvent) => void;
24
+ clearFromControl: (event: MouseEvent) => void;
25
+ selectCalendarDate: (value: Date) => void;
26
+ openDatePicker: () => void;
27
+ onOpenUpdate: (open: boolean) => void;
28
+ };
29
+ export {};
@@ -0,0 +1,21 @@
1
+ import { DatePickerProps } from './types.js';
2
+ export type DatePickerValueStateProps = Pick<DatePickerProps, 'id' | 'form' | 'modelValue' | 'defaultValue' | 'locale' | 'dateFormat' | 'formatDate' | 'parseDate' | 'min' | 'max' | 'disabledDates' | 'allowInput' | 'clearable' | 'disabled' | 'readonly' | 'required' | 'invalid' | 'valid' | 'describedby' | 'labelledby' | 'validationMessage' | 'invalidDateMessage'>;
3
+ interface DatePickerValueStateOptions {
4
+ props: Readonly<DatePickerValueStateProps>;
5
+ getInput: () => HTMLInputElement | null;
6
+ onChange: (value: Date | null) => void;
7
+ }
8
+ export declare function useDatePickerValueState(options: Readonly<DatePickerValueStateOptions>): {
9
+ control: import('../../internal/composables/useControlState.js').ControlState;
10
+ selectedDate: import('vue').ComputedRef<Date | null>;
11
+ inputValue: import('vue').ShallowRef<string, string>;
12
+ isInputEditable: import('vue').ComputedRef<boolean>;
13
+ isInvalid: import('vue').ComputedRef<boolean>;
14
+ validationMessage: import('vue').ComputedRef<string | undefined>;
15
+ canClear: import('vue').ComputedRef<boolean>;
16
+ updateInput: (value: string) => void;
17
+ blurInput: () => void;
18
+ selectDate: (value: Date) => boolean;
19
+ clear: () => boolean;
20
+ };
21
+ export {};
@@ -5,8 +5,8 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
5
5
  originalEvent: KeyboardEvent;
6
6
  }>) => any) | undefined;
7
7
  onPointerDownOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
8
- onInteractOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
9
8
  onFocusOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
9
+ onInteractOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
11
11
  __VLS_PROPS_FALLBACK: infer P;
12
12
  } ? P : {});
@@ -21,7 +21,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
21
21
  };
22
22
  emit: ((evt: "escapeKeyDown", event: CustomEvent<{
23
23
  originalEvent: KeyboardEvent;
24
- }>) => void) & ((evt: "pointerDownOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "interactOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "focusOutside", event: DropdownMenuInteractOutsideEvent) => void);
24
+ }>) => void) & ((evt: "pointerDownOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "focusOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "interactOutside", event: DropdownMenuInteractOutsideEvent) => void);
25
25
  }>) => import('vue').VNode & {
26
26
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
27
27
  };
@@ -5,8 +5,8 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
5
5
  originalEvent: KeyboardEvent;
6
6
  }>) => any) | undefined;
7
7
  onPointerDownOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
8
- onInteractOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
9
8
  onFocusOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
9
+ onInteractOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
11
11
  __VLS_PROPS_FALLBACK: infer P;
12
12
  } ? P : {});
@@ -21,7 +21,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
21
21
  };
22
22
  emit: ((evt: "escapeKeyDown", event: CustomEvent<{
23
23
  originalEvent: KeyboardEvent;
24
- }>) => void) & ((evt: "pointerDownOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "interactOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "focusOutside", event: DropdownMenuInteractOutsideEvent) => void);
24
+ }>) => void) & ((evt: "pointerDownOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "focusOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "interactOutside", event: DropdownMenuInteractOutsideEvent) => void);
25
25
  }>) => import('vue').VNode & {
26
26
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
27
27
  };
@@ -4,8 +4,8 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
4
4
  onSelect?: ((item: DropdownMenuItem, event: DropdownMenuSelectEvent) => any) | undefined;
5
5
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
6
6
  onPointerDownOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
7
- onInteractOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
8
7
  onFocusOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
8
+ onInteractOutside?: ((event: DropdownMenuInteractOutsideEvent) => any) | undefined;
9
9
  }> & (typeof globalThis extends {
10
10
  __VLS_PROPS_FALLBACK: infer P;
11
11
  } ? P : {});
@@ -16,7 +16,7 @@ declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup
16
16
  item?(props: DropdownMenuItemSlotProps): unknown;
17
17
  empty?(): unknown;
18
18
  };
19
- emit: ((evt: "select", item: DropdownMenuItem, event: DropdownMenuSelectEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "pointerDownOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "interactOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "focusOutside", event: DropdownMenuInteractOutsideEvent) => void);
19
+ emit: ((evt: "select", item: DropdownMenuItem, event: DropdownMenuSelectEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "pointerDownOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "focusOutside", event: DropdownMenuInteractOutsideEvent) => void) & ((evt: "interactOutside", event: DropdownMenuInteractOutsideEvent) => void);
20
20
  }>) => import('vue').VNode & {
21
21
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
22
22
  };
@@ -2,7 +2,7 @@ import { ComputedRef, InjectionKey, Ref } from 'vue';
2
2
  import { OverlayLayerContext } from '../../internal/composables/useOverlayLayer.js';
3
3
  import { ComponentElementRef } from '../../utils/dom/componentRef.js';
4
4
  import { FloatingReference } from '../floating/types.js';
5
- import { DropdownMenuInteractionFocusTarget, DropdownMenuInteractionRuntime } from './dropdownMenuInteraction.js';
5
+ import { DropdownMenuInteraction, DropdownMenuInteractionFocusTarget, DropdownMenuInteractionItem, DropdownMenuInteractionMenu, DropdownMenuInteractionSubmenu } from './dropdownMenuInteraction.js';
6
6
  import { DropdownMenuCloseOptions, DropdownMenuFocusTarget, DropdownMenuItemPrimitiveProps, DropdownMenuItemValue, DropdownMenuOpenOptions, DropdownMenuPlacement, DropdownMenuPoint, DropdownMenuSelectEvent, DropdownMenuVirtualAnchor } from './types.js';
7
7
  export type ElementReference = FloatingReference;
8
8
  export type OpenFocusTarget = DropdownMenuInteractionFocusTarget;
@@ -19,19 +19,10 @@ export interface DropdownMenuContext {
19
19
  root: DropdownMenuRootContext;
20
20
  id: string;
21
21
  element: Ref<HTMLElement | null>;
22
- activeId: ComputedRef<string | null>;
23
22
  actualPlacement: Ref<DropdownMenuPlacement>;
24
23
  parentSub?: DropdownMenuSubContext;
25
- registerItem: (item: MenuItemRegistration) => void;
26
- unregisterItem: (id: string) => void;
27
- closeSubmenus: (except?: DropdownMenuSubContext) => void;
28
- setActive: (id: string) => void;
29
- isActive: (id: string) => boolean;
30
- focus: (target?: DropdownMenuFocusTarget) => boolean;
31
- focusElement: () => void;
32
- activate: (id: string, event?: Event) => void;
33
- hover: (id: string, openSubmenu?: boolean) => void;
34
- onKeydown: (event: KeyboardEvent) => void;
24
+ interaction: DropdownMenuInteractionMenu;
25
+ connectItem: (item: MenuItemRegistration) => DropdownMenuInteractionItem;
35
26
  }
36
27
  export interface DropdownMenuSubContext {
37
28
  menuId: string;
@@ -39,9 +30,8 @@ export interface DropdownMenuSubContext {
39
30
  trigger: Ref<HTMLElement | null>;
40
31
  contentId: Ref<string | undefined>;
41
32
  actualPlacement: Ref<DropdownMenuPlacement>;
42
- pendingFocus: Ref<OpenFocusTarget>;
43
33
  menu: DropdownMenuContext | null;
44
- setOpen: (open: boolean) => void;
34
+ interaction: DropdownMenuInteractionSubmenu;
45
35
  open: (focus?: OpenFocusTarget) => void;
46
36
  close: (focusParent?: boolean) => void;
47
37
  }
@@ -54,9 +44,9 @@ export interface DropdownMenuRootContext {
54
44
  triggerId: Ref<string | undefined>;
55
45
  contentId: Ref<string | undefined>;
56
46
  reference: ComputedRef<ElementReference | null>;
57
- pendingFocus: Ref<OpenFocusTarget>;
47
+ interactionRootMenuId: string;
58
48
  layer: OverlayLayerContext;
59
- interaction: DropdownMenuInteractionRuntime;
49
+ interaction: DropdownMenuInteraction;
60
50
  open: (options?: DropdownMenuOpenOptions | DropdownMenuFocusTarget) => void;
61
51
  close: (options?: DropdownMenuCloseOptions & {
62
52
  returnFocus?: boolean;
@@ -66,8 +56,7 @@ export interface DropdownMenuRootContext {
66
56
  setTrigger: (element: HTMLElement | null, id?: string) => void;
67
57
  setReference: (reference: ElementReference | null) => void;
68
58
  setReturnFocus: (element: HTMLElement | null) => void;
69
- registerInside: (element: HTMLElement) => void;
70
- unregisterInside: (element: HTMLElement) => void;
59
+ connectInside: (element: HTMLElement) => () => void;
71
60
  }
72
61
  export interface DropdownMenuRadioGroupContext {
73
62
  value: ComputedRef<DropdownMenuItemValue | null>;
@@ -1,3 +1,3 @@
1
- import { DropdownMenuInteractionHost, DropdownMenuInteractionRuntime } from './dropdownMenuInteractionTypes.js';
2
- export type { DropdownMenuInteractionDismissalRegistration, DropdownMenuInteractionFocusTarget, DropdownMenuInteractionHost, DropdownMenuInteractionItemRegistration, DropdownMenuInteractionMenuRegistration, DropdownMenuInteractionMenuStateRegistration, DropdownMenuInteractionRuntime, } from './dropdownMenuInteractionTypes.js';
3
- export declare function useDropdownMenuInteraction(host: DropdownMenuInteractionHost): DropdownMenuInteractionRuntime;
1
+ import { DropdownMenuInteraction, DropdownMenuInteractionHost } from './dropdownMenuInteractionTypes.js';
2
+ export type { DropdownMenuInteractionDismissalRegistration, DropdownMenuInteraction, DropdownMenuInteractionFocusTarget, DropdownMenuInteractionHost, DropdownMenuInteractionItem, DropdownMenuInteractionItemOptions, DropdownMenuInteractionMenu, DropdownMenuInteractionMenuOptions, DropdownMenuInteractionSubmenu, DropdownMenuInteractionSubmenuOptions, } from './dropdownMenuInteractionTypes.js';
3
+ export declare function useDropdownMenuInteraction(host: DropdownMenuInteractionHost): DropdownMenuInteraction;
@@ -1,4 +1,5 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
+ import { OverlayLayerInteraction, OverlayLayerInteractionConnection } from '../../internal/composables/useOverlayLayer.js';
2
3
  import { DropdownMenuCloseOptions, DropdownMenuFocusTarget, DropdownMenuInteractOutsideEvent, DropdownMenuInteractOutsideTarget, DropdownMenuOpenOptions, DropdownMenuPlacement, DropdownMenuSelectEvent } from './types.js';
3
4
  export type DropdownMenuInteractionFocusTarget = DropdownMenuFocusTarget | false;
4
5
  export interface DropdownMenuInteractionMenuRegistration {
@@ -41,45 +42,73 @@ export interface DropdownMenuInteractionHost {
41
42
  disabled: Readonly<Ref<boolean>>;
42
43
  modal: Readonly<Ref<boolean>>;
43
44
  setOpen: (open: boolean) => void;
44
- isTopLayer: () => boolean;
45
+ connectLayerInteraction: (interaction: OverlayLayerInteraction) => OverlayLayerInteractionConnection;
45
46
  focusTrigger: () => void;
46
47
  beforeOpen?: () => void;
47
48
  beforeClose?: () => void;
48
49
  }
49
- export interface DropdownMenuInteractionRuntime {
50
- rootMenuId: string;
50
+ export interface DropdownMenuInteractionMenuOptions {
51
+ element: () => HTMLElement | null;
52
+ focusTarget?: () => HTMLElement | null;
53
+ placement: () => DropdownMenuPlacement;
54
+ stopKeyPropagation?: boolean;
55
+ onEscape?: (event: KeyboardEvent) => boolean;
56
+ }
57
+ export interface DropdownMenuInteractionItemOptions {
58
+ id: string;
59
+ element: () => HTMLElement | null;
60
+ textValue: () => string;
61
+ disabled: () => boolean;
62
+ order?: () => number;
63
+ submenu?: DropdownMenuInteractionSubmenu;
64
+ submenuDirection?: () => 'left' | 'right';
65
+ select?: (originalEvent: Event) => DropdownMenuSelectEvent | undefined;
66
+ closeOnSelect?: () => boolean;
67
+ }
68
+ export interface DropdownMenuInteractionItem {
69
+ active: ComputedRef<boolean>;
70
+ submenuOpen: ComputedRef<boolean>;
71
+ setActive: (focusElement?: boolean) => boolean;
72
+ openSubmenu: (focus?: DropdownMenuInteractionFocusTarget) => boolean;
73
+ closeSubmenu: (focusParent?: boolean) => boolean;
74
+ select: (originalEvent?: Event) => void;
75
+ activate: (originalEvent?: Event) => void;
76
+ hover: (openSubmenu?: boolean) => boolean;
77
+ dispose: () => void;
78
+ }
79
+ export interface DropdownMenuInteractionMenu {
80
+ activeId: ComputedRef<string | null>;
81
+ connectItem: (registration: DropdownMenuInteractionItemOptions) => DropdownMenuInteractionItem;
82
+ clearActive: () => void;
83
+ focusPending: () => boolean;
84
+ onKeydown: (event: KeyboardEvent) => void;
85
+ dispose: () => void;
86
+ }
87
+ export interface DropdownMenuInteractionSubmenu {
88
+ id: string;
89
+ open: (focus?: DropdownMenuInteractionFocusTarget) => boolean;
90
+ close: (focusParent?: boolean) => boolean;
91
+ connectContent: (options: DropdownMenuInteractionMenuOptions) => DropdownMenuInteractionMenu;
92
+ dispose: () => void;
93
+ }
94
+ export interface DropdownMenuInteractionSubmenuOptions {
95
+ id: string;
96
+ parentItemId: () => string | undefined;
97
+ isOpen: () => boolean;
98
+ setOpen: (open: boolean) => void;
99
+ }
100
+ export interface DropdownMenuInteraction {
51
101
  activeItemId: Readonly<Ref<string | null>>;
52
- activeMenuId: Readonly<Ref<string>>;
53
- pendingRootFocus: Ref<DropdownMenuInteractionFocusTarget>;
54
- registerMenu: (registration: DropdownMenuInteractionMenuRegistration) => () => void;
55
- unregisterMenu: (id: string) => void;
56
- registerMenuState: (registration: DropdownMenuInteractionMenuStateRegistration) => () => void;
57
- registerItem: (registration: DropdownMenuInteractionItemRegistration) => () => void;
58
- unregisterItem: (id: string) => void;
59
- registerInside: (element: Element) => void;
60
- unregisterInside: (element: Element) => void;
61
- registerDismissal: (registration: DropdownMenuInteractionDismissalRegistration) => () => void;
62
- getActiveId: (menuId: string) => ComputedRef<string | null>;
63
- getItem: (id: string) => DropdownMenuInteractionItemRegistration | undefined;
64
- getMenu: (id: string) => DropdownMenuInteractionMenuRegistration | undefined;
65
- isActive: (id: string) => boolean;
66
- isMenuOpen: (menuId: string) => boolean;
67
- setActive: (id: string | null, focusElement?: boolean) => boolean;
68
- focusMenu: (menuId: string, target?: DropdownMenuFocusTarget) => boolean;
69
- focusMenuElement: (menuId: string) => void;
102
+ connectRootMenu: (options: DropdownMenuInteractionMenuOptions) => DropdownMenuInteractionMenu;
103
+ connectSubmenu: (options: DropdownMenuInteractionSubmenuOptions) => DropdownMenuInteractionSubmenu;
104
+ connectInside: (element: Element) => () => void;
105
+ connectDismissal: (registration: DropdownMenuInteractionDismissalRegistration) => () => void;
70
106
  open: (options?: DropdownMenuOpenOptions | DropdownMenuFocusTarget) => void;
71
107
  close: (options?: DropdownMenuCloseOptions & {
72
108
  returnFocus?: boolean;
73
109
  }) => void;
74
110
  toggle: () => void;
75
- openMenu: (menuId: string, focus?: DropdownMenuInteractionFocusTarget) => boolean;
76
- closeMenu: (menuId: string, focusParent?: boolean) => boolean;
77
- closeSubmenus: (menuId: string, exceptMenuId?: string) => void;
78
- selectItem: (id: string, originalEvent?: Event) => void;
79
- activateItem: (id: string, originalEvent?: Event) => void;
80
- hoverItem: (id: string, openSubmenu?: boolean) => void;
81
- reconcile: (menuId?: string) => void;
82
111
  onTriggerClick: (beforeToggle?: () => void) => void;
83
112
  onTriggerKeydown: (event: KeyboardEvent, beforeOpen?: () => void) => void;
84
- onMenuKeydown: (menuId: string, event: KeyboardEvent) => void;
113
+ onMenuKeydown: (event: KeyboardEvent) => void;
85
114
  }
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { Point } from '../../utils/geometry.js';
3
3
  import { ItemPath, SubmenuFocusTarget } from './dropdown-menu-model.js';
4
- import { DropdownMenuInteractionRuntime } from './dropdownMenuInteraction.js';
4
+ import { DropdownMenuInteraction, DropdownMenuInteractionMenu } from './dropdownMenuInteraction.js';
5
5
  import { DropdownMenuItem, DropdownMenuPlacement, DropdownMenuProps, DropdownMenuSelectEvent } from './types.js';
6
6
  interface UseDropdownMenuDataControllerOptions {
7
7
  props: Readonly<DropdownMenuProps>;
@@ -10,10 +10,11 @@ interface UseDropdownMenuDataControllerOptions {
10
10
  menuId: Readonly<Ref<string>>;
11
11
  menuRef: Readonly<Ref<HTMLElement | null>>;
12
12
  actualPlacement: Readonly<Ref<DropdownMenuPlacement>>;
13
- interaction: DropdownMenuInteractionRuntime;
13
+ interaction: DropdownMenuInteraction;
14
+ rootMenu: DropdownMenuInteractionMenu;
14
15
  onSelect?: (item: DropdownMenuItem, event: DropdownMenuSelectEvent) => void;
15
16
  }
16
- export declare function useDropdownMenuDataController({ props, items, rootMenuId, menuId, menuRef, actualPlacement, interaction, onSelect, }: UseDropdownMenuDataControllerOptions): {
17
+ export declare function useDropdownMenuDataController({ props, items, rootMenuId, menuId, menuRef, actualPlacement, interaction, rootMenu, onSelect, }: UseDropdownMenuDataControllerOptions): {
17
18
  focusedPath: Ref<import('./types.js').DropdownMenuItemPath, import('./types.js').DropdownMenuItemPath>;
18
19
  focusedIndex: import('vue').ComputedRef<number>;
19
20
  activeDescendantId: import('vue').ComputedRef<string | undefined>;
@@ -1,22 +1,24 @@
1
1
  import { Ref } from 'vue';
2
2
  import { DropdownMenuDataIndex } from './dropdownMenuDataModel.js';
3
- import { DropdownMenuInteractionRuntime } from './dropdownMenuInteraction.js';
3
+ import { DropdownMenuInteraction, DropdownMenuInteractionItem, DropdownMenuInteractionMenu } from './dropdownMenuInteraction.js';
4
4
  import { DropdownMenuItem, DropdownMenuProps, DropdownMenuSelectEvent } from './types.js';
5
5
  import { ItemPath } from './dropdown-menu-model.js';
6
- type DropdownMenuDataInteraction = Pick<DropdownMenuInteractionRuntime, 'reconcile' | 'registerItem' | 'registerMenu' | 'unregisterItem' | 'unregisterMenu'>;
7
6
  interface UseDropdownMenuDataRegistrationOptions {
8
7
  props: Readonly<DropdownMenuProps>;
9
8
  items: Readonly<Ref<DropdownMenuItem[]>>;
10
9
  rootMenuId: string;
11
- interaction: DropdownMenuDataInteraction;
10
+ interaction: DropdownMenuInteraction;
11
+ rootMenu: DropdownMenuInteractionMenu;
12
12
  menuRef: Readonly<Ref<HTMLElement | null>>;
13
13
  getItemElement: (path: ItemPath) => HTMLElement | null;
14
14
  getSubmenuElement: (path: ItemPath) => HTMLElement | null;
15
15
  isSubmenuOpeningLeft: (path: ItemPath) => boolean;
16
16
  onSelect?: (item: DropdownMenuItem, event: DropdownMenuSelectEvent) => void;
17
17
  }
18
- export declare function useDropdownMenuDataRegistration({ props, items, rootMenuId, interaction, menuRef, getItemElement, getSubmenuElement, isSubmenuOpeningLeft, onSelect, }: UseDropdownMenuDataRegistrationOptions): {
18
+ export declare function useDropdownMenuDataRegistration({ props, items, rootMenuId, interaction, rootMenu, menuRef, getItemElement, getSubmenuElement, isSubmenuOpeningLeft, onSelect, }: UseDropdownMenuDataRegistrationOptions): {
19
19
  openMenuIds: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
20
20
  registrationIndex: import('vue').ShallowRef<DropdownMenuDataIndex, DropdownMenuDataIndex>;
21
+ getItemInteraction: (id: string) => DropdownMenuInteractionItem | undefined;
22
+ getMenuInteraction: (id: string) => DropdownMenuInteractionMenu | undefined;
21
23
  };
22
24
  export {};
@@ -1,9 +1,8 @@
1
1
  import { Ref } from 'vue';
2
- import { DropdownMenuInteractionRuntime } from './dropdownMenuInteraction.js';
2
+ import { DropdownMenuInteraction } from './dropdownMenuInteraction.js';
3
3
  import { DropdownMenuCloseOptions, DropdownMenuContentProps, DropdownMenuFocusTarget, DropdownMenuOpenOptions, DropdownMenuPlacement, DropdownMenuProps, DropdownMenuSlotProps, DropdownMenuTriggerProps } from './types.js';
4
4
  interface UseDropdownMenuPresentationOptions {
5
5
  props: Readonly<DropdownMenuProps>;
6
- rootMenuId: string;
7
6
  menuId: Readonly<Ref<string>>;
8
7
  isDisabled: Readonly<Ref<boolean>>;
9
8
  isVisible: Readonly<Ref<boolean>>;
@@ -11,14 +10,14 @@ interface UseDropdownMenuPresentationOptions {
11
10
  actualPlacement: Readonly<Ref<DropdownMenuPlacement>>;
12
11
  contentHasSubmenu: Readonly<Ref<boolean>>;
13
12
  activeDescendantId: Readonly<Ref<string | undefined>>;
14
- interaction: DropdownMenuInteractionRuntime;
13
+ interaction: DropdownMenuInteraction;
15
14
  resetHoverIntent: () => void;
16
15
  onMenuMousemove: (event: MouseEvent) => void;
17
16
  open: (options?: DropdownMenuOpenOptions | DropdownMenuFocusTarget) => void;
18
17
  close: (options?: DropdownMenuCloseOptions) => void;
19
18
  toggle: () => void;
20
19
  }
21
- export declare function useDropdownMenuPresentation({ props, rootMenuId, menuId, isDisabled, isVisible, isExplicitTarget, actualPlacement, contentHasSubmenu, activeDescendantId, interaction, resetHoverIntent, onMenuMousemove, open, close, toggle, }: UseDropdownMenuPresentationOptions): {
20
+ export declare function useDropdownMenuPresentation({ props, menuId, isDisabled, isVisible, isExplicitTarget, actualPlacement, contentHasSubmenu, activeDescendantId, interaction, resetHoverIntent, onMenuMousemove, open, close, toggle, }: UseDropdownMenuPresentationOptions): {
22
21
  rootClass: import('vue').ComputedRef<string[]>;
23
22
  contentClass: import('vue').ComputedRef<string[]>;
24
23
  triggerProps: import('vue').ComputedRef<DropdownMenuTriggerProps>;
@@ -1,12 +1,12 @@
1
1
  import { Ref } from 'vue';
2
+ import { FloatingTargetLifecycle } from '../floating/useFloatingTargetLifecycle.js';
2
3
  import { DropdownMenuInteractOutsideEvent, DropdownMenuInteractOutsideTarget } from './types.js';
3
- import { DropdownMenuInteractionRuntime } from './dropdownMenuInteraction.js';
4
+ import { DropdownMenuInteraction } from './dropdownMenuInteraction.js';
4
5
  interface UseDropdownMenuTargetBindingsOptions {
5
- interaction: DropdownMenuInteractionRuntime;
6
+ interaction: DropdownMenuInteraction;
6
7
  rootRef: Readonly<Ref<HTMLElement | null>>;
7
8
  menuRef: Readonly<Ref<HTMLElement | null>>;
8
- targetElement: Readonly<Ref<Element | null>>;
9
- isExplicitTarget: Readonly<Ref<boolean>>;
9
+ targetLifecycle: FloatingTargetLifecycle;
10
10
  menuId: Readonly<Ref<string>>;
11
11
  isVisible: Readonly<Ref<boolean>>;
12
12
  isDisabled: Readonly<Ref<boolean>>;
@@ -15,5 +15,5 @@ interface UseDropdownMenuTargetBindingsOptions {
15
15
  focusOutside?: (event: DropdownMenuInteractOutsideEvent) => void;
16
16
  interactOutside?: (event: DropdownMenuInteractOutsideEvent) => void;
17
17
  }
18
- export declare function useDropdownMenuTargetBindings({ interaction, rootRef, menuRef, targetElement, isExplicitTarget, menuId, isVisible, isDisabled, ignoredTargets, pointerDownOutside, focusOutside, interactOutside, }: UseDropdownMenuTargetBindingsOptions): void;
18
+ export declare function useDropdownMenuTargetBindings({ interaction, rootRef, menuRef, targetLifecycle, menuId, isVisible, isDisabled, ignoredTargets, pointerDownOutside, focusOutside, interactOutside, }: UseDropdownMenuTargetBindingsOptions): void;
19
19
  export {};