@maas/vue-equipment 1.0.0-beta.5 → 1.0.0-beta.7

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 (137) hide show
  1. package/dist/composables/index.d.ts +5 -5
  2. package/dist/composables/index.js +14 -8
  3. package/dist/composables/index.js.map +1 -1
  4. package/dist/nuxt/module.json +1 -1
  5. package/dist/nuxt/module.mjs +2 -2
  6. package/dist/plugins/.turbo/turbo-lint.log +2 -2
  7. package/dist/plugins/MagicAccordion/demo/data/footer.json +1 -1
  8. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +3 -3
  9. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +2 -2
  10. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue +4 -5
  11. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +3 -157
  12. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +2 -2
  13. package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +1 -1
  14. package/dist/plugins/MagicAccordion/src/symbols/index.d.ts +2 -2
  15. package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue +11 -4
  16. package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +32 -0
  17. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +0 -4
  18. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +3 -8
  19. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue +3 -6
  20. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +3 -87
  21. package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue +7 -7
  22. package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue.d.ts +1 -4
  23. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +3 -4
  24. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +3 -157
  25. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +3 -3
  26. package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.d.ts +2 -2
  27. package/dist/plugins/MagicCommand/src/composables/private/useCommandState.mjs +1 -1
  28. package/dist/plugins/MagicCommand/src/composables/private/useCommandTrigger.d.ts +1 -1
  29. package/dist/plugins/MagicCommand/src/symbols/index.d.ts +4 -4
  30. package/dist/plugins/MagicCommand/src/types/index.d.ts +1 -1
  31. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +3 -3
  32. package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +3 -3
  33. package/dist/plugins/MagicCookie/src/symbols/index.d.ts +2 -2
  34. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +10 -12
  35. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +3 -24
  36. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.d.ts +2 -2
  37. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +3 -3
  38. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableScrollLock.mjs +2 -2
  39. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +3 -3
  40. package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.mjs +12 -15
  41. package/dist/plugins/MagicDraggable/src/types/index.d.ts +1 -1
  42. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +20 -21
  43. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +188 -0
  44. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDOM.mjs +2 -2
  45. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.d.ts +2 -2
  46. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +3 -3
  47. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +1 -1
  48. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.mjs +28 -10
  49. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +2 -2
  50. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +3 -3
  51. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.mjs +16 -14
  52. package/dist/plugins/MagicDrawer/src/composables/private/useDrawerWheel.d.ts +1 -1
  53. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +15 -15
  54. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +25 -0
  55. package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +1 -1
  56. package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.mjs +8 -2
  57. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +27 -0
  58. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +3 -6
  59. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +56 -0
  60. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue +5 -7
  61. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +53 -0
  62. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +1 -12
  63. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +3 -8
  64. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +6 -6
  65. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +1 -85
  66. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +2 -2
  67. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +3 -4
  68. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +3 -157
  69. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +3 -3
  70. package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +3 -3
  71. package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.mjs +4 -4
  72. package/dist/plugins/MagicMenu/src/composables/private/useMenuDOM.mjs +2 -2
  73. package/dist/plugins/MagicMenu/src/composables/private/useMenuTrigger.d.ts +1 -1
  74. package/dist/plugins/MagicMenu/src/symbols/index.d.ts +4 -4
  75. package/dist/plugins/MagicModal/src/components/MagicModal.vue +6 -6
  76. package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +60 -0
  77. package/dist/plugins/MagicModal/src/composables/private/useModalDOM.mjs +2 -2
  78. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +13 -13
  79. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +1 -5
  80. package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +3 -3
  81. package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.mjs +2 -2
  82. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue +14 -8
  83. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue.d.ts +1 -4
  84. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +20 -20
  85. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +34 -0
  86. package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +1 -1
  87. package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue +19 -8
  88. package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +1 -4
  89. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +35 -0
  90. package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +5 -5
  91. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue +3 -4
  92. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +6 -11
  93. package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -1
  94. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue +3 -4
  95. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue.d.ts +1 -4
  96. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +23 -24
  97. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +73 -0
  98. package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +1 -1
  99. package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +1 -1
  100. package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +1 -1
  101. package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +1 -1
  102. package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +1 -1
  103. package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +1 -1
  104. package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +1 -1
  105. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.d.ts +2 -2
  106. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.mjs +3 -3
  107. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +10 -10
  108. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.mjs +15 -9
  109. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +13 -13
  110. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.mjs +18 -11
  111. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +3 -3
  112. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.mjs +3 -3
  113. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +6 -6
  114. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.mjs +4 -4
  115. package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +20 -20
  116. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue +17 -8
  117. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +4 -10
  118. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +7 -7
  119. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +4 -10
  120. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +3 -3
  121. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +18 -10
  122. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +4 -9
  123. package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.d.ts +2 -2
  124. package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetection.mjs +3 -3
  125. package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.mjs +14 -4
  126. package/dist/plugins/MagicScroll/src/symbols/index.d.ts +1 -1
  127. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +9 -10
  128. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue.d.ts +1 -59
  129. package/dist/plugins/MagicToast/src/components/MagicToastView.vue +5 -8
  130. package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +3 -8
  131. package/dist/plugins/MagicToast/src/composables/private/useToastDrag.mjs +21 -21
  132. package/dist/plugins/MagicToast/src/composables/private/useToastScrollLock.mjs +2 -2
  133. package/dist/plugins/MagicToast/src/types/index.d.ts +1 -1
  134. package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +1 -1
  135. package/dist/utils/index.d.ts +2 -2
  136. package/dist/utils/index.js.map +1 -1
  137. package/package.json +3 -3
@@ -27,9 +27,9 @@ type InterpolateDraggedArgs = {
27
27
  easing?: (t: number) => number;
28
28
  };
29
29
  export declare function useDrawerSnap(args: UseDrawerSnapArgs): {
30
- snappedY: Ref<number, number>;
31
- snappedX: Ref<number, number>;
32
- activeSnapPoint: Ref<DrawerSnapPoint | undefined, DrawerSnapPoint | undefined>;
30
+ snappedY: import("vue").ShallowRef<number, number>;
31
+ snappedX: import("vue").ShallowRef<number, number>;
32
+ activeSnapPoint: import("vue").ShallowRef<DrawerSnapPoint | undefined, DrawerSnapPoint | undefined>;
33
33
  snapTo: (args: SnapToArgs) => Promise<void>;
34
34
  findClosestSnapPoint: (args: FindClosestSnapPointArgs) => number | undefined;
35
35
  interpolateDragged: (args: InterpolateDraggedArgs) => void;
@@ -1,4 +1,9 @@
1
- import { ref, computed, toValue, nextTick } from "vue";
1
+ import {
2
+ shallowRef,
3
+ computed,
4
+ toValue,
5
+ nextTick
6
+ } from "vue";
2
7
  import { computedWithControl } from "@vueuse/core";
3
8
  import { mapValue, interpolate } from "@maas/vue-equipment/utils";
4
9
  import { useMagicEmitter } from "@maas/vue-equipment/plugins";
@@ -31,22 +36,19 @@ export function useDrawerSnap(args) {
31
36
  () => toValue(snapPoints),
32
37
  () => {
33
38
  const extended = toValue(preventDragClose) ? toValue(snapPoints) : [...toValue(snapPoints), 0];
34
- const mapped = extended.reduce(
35
- (acc, current) => {
36
- const key = mapSnapPoint(current);
37
- if (key || key === 0) {
38
- acc[key] = current;
39
- }
40
- return acc;
41
- },
42
- {}
43
- );
39
+ const mapped = extended.reduce((acc, current) => {
40
+ const key = mapSnapPoint(current);
41
+ if (key || key === 0) {
42
+ acc[key] = current;
43
+ }
44
+ return acc;
45
+ }, {});
44
46
  return mapped;
45
47
  }
46
48
  );
47
- const snappedY = ref(0);
48
- const snappedX = ref(0);
49
- const activeSnapPoint = ref(void 0);
49
+ const snappedY = shallowRef(0);
50
+ const snappedX = shallowRef(0);
51
+ const activeSnapPoint = shallowRef(void 0);
50
52
  const drawerHeight = computed(() => {
51
53
  const rect = toValue(wrapperRect);
52
54
  if (rect === void 0) {
@@ -2,7 +2,7 @@ import { type Ref, type MaybeRef, type ComputedRef } from 'vue';
2
2
  import type { DrawerDefaultOptions } from '../../types/index.js';
3
3
  type UseDrawerWheelArgs = {
4
4
  id: MaybeRef<string>;
5
- elRef: Ref<HTMLElement | undefined>;
5
+ elRef: Ref<HTMLElement | null>;
6
6
  position: MaybeRef<DrawerDefaultOptions['position']>;
7
7
  disabled: ComputedRef<boolean>;
8
8
  };
@@ -1,8 +1,16 @@
1
1
  <script>
2
2
  import { defineComponent as _defineComponent } from "vue";
3
3
  import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
4
- const _hoisted_1 = { class: "magic-marquee__track" };
5
- import { ref, onMounted, onBeforeUnmount } from "vue";
4
+ const _hoisted_1 = {
5
+ ref: "parent",
6
+ class: "magic-marquee"
7
+ };
8
+ const _hoisted_2 = { class: "magic-marquee__track" };
9
+ const _hoisted_3 = {
10
+ ref: "child",
11
+ class: "magic-marquee__content"
12
+ };
13
+ import { useTemplateRef, onMounted, onBeforeUnmount } from "vue";
6
14
  import { useMarqueeApi } from "../composables/private/useMarqueeApi";
7
15
  import { useMarqueeState } from "../composables/private/useMarqueeState";
8
16
  export default /* @__PURE__ */ _defineComponent({
@@ -14,8 +22,8 @@ export default /* @__PURE__ */ _defineComponent({
14
22
  setup(__props) {
15
23
  const { deleteState, initializeState } = useMarqueeState(__props.id);
16
24
  initializeState(__props.options);
17
- const parentRef = ref(void 0);
18
- const childRef = ref(void 0);
25
+ const parentRef = useTemplateRef("parent");
26
+ const childRef = useTemplateRef("child");
19
27
  const { duplicates, initialize } = useMarqueeApi({
20
28
  child: childRef,
21
29
  parent: parentRef,
@@ -30,20 +38,12 @@ export default /* @__PURE__ */ _defineComponent({
30
38
  return (_ctx, _cache) => {
31
39
  return _openBlock(), _createElementBlock(
32
40
  "div",
33
- {
34
- ref_key: "parentRef",
35
- ref: parentRef,
36
- class: "magic-marquee"
37
- },
41
+ _hoisted_1,
38
42
  [
39
- _createElementVNode("div", _hoisted_1, [
43
+ _createElementVNode("div", _hoisted_2, [
40
44
  _createElementVNode(
41
45
  "div",
42
- {
43
- ref_key: "childRef",
44
- ref: childRef,
45
- class: "magic-marquee__content"
46
- },
46
+ _hoisted_3,
47
47
  [
48
48
  _renderSlot(_ctx.$slots, "default")
49
49
  ],
@@ -0,0 +1,25 @@
1
+ import { type MaybeRef } from 'vue';
2
+ import type { MagicMarqueeOptions } from '../types/index.js';
3
+ interface MagicMarqueeProps {
4
+ id: MaybeRef<string>;
5
+ options?: MagicMarqueeOptions;
6
+ }
7
+ declare const duplicates: import("vue").ShallowRef<number, number>;
8
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
9
+ declare var __VLS_1: {}, __VLS_3: {};
10
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_3) => any;
14
+ }>;
15
+ declare const __VLS_self: import("vue").DefineComponent<MagicMarqueeProps, {
16
+ duplicates: typeof duplicates;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMarqueeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_component: import("vue").DefineComponent<MagicMarqueeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMarqueeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -5,7 +5,7 @@ export type UseMarqueeApiParams = {
5
5
  instanceId: MaybeRef<string>;
6
6
  };
7
7
  export declare function useMarqueeApi({ child, parent, instanceId, }: UseMarqueeApiParams): {
8
- duplicates: import("vue").Ref<number, number>;
8
+ duplicates: import("vue").ShallowRef<number, number>;
9
9
  play: () => void;
10
10
  pause: () => void;
11
11
  initialize: () => Promise<void>;
@@ -1,4 +1,10 @@
1
- import { ref, computed, nextTick, watch, toValue } from "vue";
1
+ import {
2
+ shallowRef,
3
+ computed,
4
+ nextTick,
5
+ watch,
6
+ toValue
7
+ } from "vue";
2
8
  import { useElementBounding, useElementSize, useThrottleFn } from "@vueuse/core";
3
9
  import { useMarqueeState } from "./useMarqueeState.mjs";
4
10
  export function useMarqueeApi({
@@ -8,7 +14,7 @@ export function useMarqueeApi({
8
14
  }) {
9
15
  const { initializeState } = useMarqueeState(instanceId);
10
16
  const state = initializeState();
11
- const duplicates = ref(1);
17
+ const duplicates = shallowRef(1);
12
18
  const childRect = useElementBounding(child);
13
19
  const parentRect = useElementBounding(parent);
14
20
  const { width } = useElementSize(parent);
@@ -0,0 +1,27 @@
1
+ interface MagicMenuChannelProps {
2
+ id: string;
3
+ transition?: string;
4
+ }
5
+ declare const state: import("../types").MenuState;
6
+ declare const mappedId: import("vue").ComputedRef<string>;
7
+ declare const mappedTransition: import("vue").ComputedRef<string>;
8
+ declare const channel: import("../types").MenuChannel;
9
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
10
+ declare var __VLS_5: {};
11
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
+ default?: (props: typeof __VLS_5) => any;
13
+ }>;
14
+ declare const __VLS_self: import("vue").DefineComponent<MagicMenuChannelProps, {
15
+ state: typeof state;
16
+ mappedId: typeof mappedId;
17
+ mappedTransition: typeof mappedTransition;
18
+ channel: typeof channel;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuChannelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_component: import("vue").DefineComponent<MagicMenuChannelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuChannelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -4,7 +4,7 @@ import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _crea
4
4
  const _hoisted_1 = ["data-id"];
5
5
  const _hoisted_2 = ["data-pointer-disabled"];
6
6
  import {
7
- ref,
7
+ shallowRef,
8
8
  inject,
9
9
  provide,
10
10
  nextTick,
@@ -38,7 +38,6 @@ export default /* @__PURE__ */ _defineComponent({
38
38
  referenceEl: { type: null, required: false }
39
39
  },
40
40
  setup(__props) {
41
- const contentRef = ref(void 0);
42
41
  const instanceId = inject(MagicMenuInstanceId, void 0);
43
42
  const viewId = inject(MagicMenuViewId, void 0);
44
43
  if (!instanceId) {
@@ -64,8 +63,8 @@ export default /* @__PURE__ */ _defineComponent({
64
63
  return ModeTransitions[state.options.mode];
65
64
  }
66
65
  });
67
- const innerActive = ref(false);
68
- const wrapperActive = ref(false);
66
+ const innerActive = shallowRef(false);
67
+ const wrapperActive = shallowRef(false);
69
68
  const {
70
69
  lockScroll,
71
70
  unlockScroll,
@@ -182,8 +181,6 @@ export default /* @__PURE__ */ _defineComponent({
182
181
  }, _createSlots({
183
182
  default: _withCtx(() => [
184
183
  _createElementVNode("div", {
185
- ref_key: "contentRef",
186
- ref: contentRef,
187
184
  class: "magic-menu-content__inner",
188
185
  "data-pointer-disabled": pointerDisabled.value
189
186
  }, [
@@ -0,0 +1,56 @@
1
+ import { type MaybeRef, type ComponentPublicInstance } from 'vue';
2
+ import type { Middleware } from '@floating-ui/vue';
3
+ import '@maas/vue-equipment/utils/css/animations/fade-in.css';
4
+ import '@maas/vue-equipment/utils/css/animations/fade-out.css';
5
+ interface MagicMenuContentProps {
6
+ arrow?: boolean | undefined;
7
+ middleware?: Middleware[];
8
+ transition?: string;
9
+ referenceEl?: MaybeRef<HTMLElement | ComponentPublicInstance>;
10
+ }
11
+ declare const viewId: string | undefined;
12
+ declare const view: import("../types").MenuView | undefined;
13
+ declare const state: import("../types").MenuState;
14
+ declare const pointerDisabled: import("vue").ComputedRef<boolean>;
15
+ declare const mappedTransition: import("vue").ComputedRef<string>;
16
+ declare const innerActive: import("vue").ShallowRef<boolean, boolean>;
17
+ declare const wrapperActive: import("vue").ShallowRef<boolean, boolean>;
18
+ declare const onBeforeEnter: () => void, onEnter: () => void, onAfterEnter: () => void, onBeforeLeave: () => void, onLeave: () => void, onAfterLeave: () => void;
19
+ declare const coords: import("vue").Ref<{
20
+ x: number;
21
+ y: number;
22
+ }[], import("../types").Coordinates[] | {
23
+ x: number;
24
+ y: number;
25
+ }[]>;
26
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
27
+ declare var __VLS_13: {}, __VLS_15: {};
28
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
29
+ arrow?: (props: typeof __VLS_13) => any;
30
+ } & {
31
+ default?: (props: typeof __VLS_15) => any;
32
+ }>;
33
+ declare const __VLS_self: import("vue").DefineComponent<MagicMenuContentProps, {
34
+ viewId: typeof viewId;
35
+ view: typeof view;
36
+ state: typeof state;
37
+ pointerDisabled: typeof pointerDisabled;
38
+ mappedTransition: typeof mappedTransition;
39
+ innerActive: typeof innerActive;
40
+ wrapperActive: typeof wrapperActive;
41
+ onBeforeEnter: typeof onBeforeEnter;
42
+ onEnter: typeof onEnter;
43
+ onAfterEnter: typeof onAfterEnter;
44
+ onBeforeLeave: typeof onBeforeLeave;
45
+ onLeave: typeof onLeave;
46
+ onAfterLeave: typeof onAfterLeave;
47
+ coords: typeof coords;
48
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
49
+ declare const __VLS_component: import("vue").DefineComponent<MagicMenuContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
51
+ export default _default;
52
+ type __VLS_WithSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
@@ -7,7 +7,7 @@ const _hoisted_1 = {
7
7
  };
8
8
  const _hoisted_2 = ["points"];
9
9
  import {
10
- ref,
10
+ useTemplateRef,
11
11
  computed,
12
12
  inject,
13
13
  toValue
@@ -33,8 +33,8 @@ export default /* @__PURE__ */ _defineComponent({
33
33
  referenceEl: { type: null, required: false }
34
34
  },
35
35
  setup(__props) {
36
- const elRef = ref(void 0);
37
- const arrowRef = ref(void 0);
36
+ const elRef = useTemplateRef("el");
37
+ const arrowRef = useTemplateRef("arrow");
38
38
  const instanceId = inject(MagicMenuInstanceId, void 0);
39
39
  const viewId = inject(MagicMenuViewId, void 0);
40
40
  const { initializeState } = useMenuState(instanceId ?? "");
@@ -185,8 +185,7 @@ export default /* @__PURE__ */ _defineComponent({
185
185
  return _openBlock(), _createElementBlock(
186
186
  "div",
187
187
  {
188
- ref_key: "elRef",
189
- ref: elRef,
188
+ ref: "el",
190
189
  class: _normalizeClass(["magic-menu-float", placementClasses.value]),
191
190
  style: _normalizeStyle(_unref(floatingStyles))
192
191
  },
@@ -195,8 +194,7 @@ export default /* @__PURE__ */ _defineComponent({
195
194
  "div",
196
195
  {
197
196
  key: 0,
198
- ref_key: "arrowRef",
199
- ref: arrowRef,
197
+ ref: "arrow",
200
198
  class: "magic-menu-float__arrow",
201
199
  style: _normalizeStyle(arrowStyles.value)
202
200
  },
@@ -0,0 +1,53 @@
1
+ import { type MaybeRef, type ComponentPublicInstance } from 'vue';
2
+ import { type Placement, type Middleware } from '@floating-ui/vue';
3
+ interface MagicMenuFloatProps {
4
+ placement?: Placement;
5
+ middleware?: Middleware[];
6
+ arrow?: boolean;
7
+ referenceEl?: MaybeRef<HTMLElement | ComponentPublicInstance>;
8
+ }
9
+ declare const arrow: boolean;
10
+ declare const hasArrow: import("vue").ComputedRef<boolean>;
11
+ declare const floatingStyles: Readonly<import("vue").Ref<{
12
+ position: import("@floating-ui/vue").Strategy;
13
+ top: string;
14
+ left: string;
15
+ transform?: string;
16
+ willChange?: string;
17
+ }, {
18
+ position: import("@floating-ui/vue").Strategy;
19
+ top: string;
20
+ left: string;
21
+ transform?: string;
22
+ willChange?: string;
23
+ }>>;
24
+ declare const arrowStyles: import("vue").ComputedRef<{
25
+ transform?: undefined;
26
+ } | {
27
+ transform: string;
28
+ }>;
29
+ declare const placementClasses: import("vue").ComputedRef<string>;
30
+ declare const polygonPoints: import("vue").ComputedRef<"50,50 100,100 0,100" | "50,50 100,0 0,0" | "50,50 100,100 100,0" | "50,50 0,100 0,0" | undefined>;
31
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
32
+ declare var __VLS_1: {}, __VLS_3: {};
33
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
34
+ arrow?: (props: typeof __VLS_1) => any;
35
+ } & {
36
+ default?: (props: typeof __VLS_3) => any;
37
+ }>;
38
+ declare const __VLS_self: import("vue").DefineComponent<MagicMenuFloatProps, {
39
+ arrow: typeof arrow;
40
+ hasArrow: typeof hasArrow;
41
+ floatingStyles: typeof floatingStyles;
42
+ arrowStyles: typeof arrowStyles;
43
+ placementClasses: typeof placementClasses;
44
+ polygonPoints: typeof polygonPoints;
45
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuFloatProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
+ declare const __VLS_component: import("vue").DefineComponent<MagicMenuFloatProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuFloatProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
48
+ export default _default;
49
+ type __VLS_WithSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -6,15 +6,7 @@ const _hoisted_2 = {
6
6
  key: 0,
7
7
  class: "magic-menu-item__pointer-guard"
8
8
  };
9
- import {
10
- ref,
11
- computed,
12
- inject,
13
- provide,
14
- onBeforeUnmount,
15
- watch,
16
- useId
17
- } from "vue";
9
+ import { computed, inject, provide, onBeforeUnmount, watch, useId } from "vue";
18
10
  import { useMenuItem } from "../composables/private/useMenuItem";
19
11
  import { useMenuState } from "../composables/private/useMenuState";
20
12
  import { useMenuView } from "../composables/private/useMenuView";
@@ -37,7 +29,6 @@ export default /* @__PURE__ */ _defineComponent({
37
29
  const instanceId = inject(MagicMenuInstanceId, void 0);
38
30
  const viewId = inject(MagicMenuViewId, void 0);
39
31
  const contentId = inject(MagicMenuContentId, void 0);
40
- const elRef = ref(void 0);
41
32
  if (!instanceId) {
42
33
  throw new Error("MagicMenuItem must be nested inside MagicMenuProvider");
43
34
  }
@@ -101,8 +92,6 @@ export default /* @__PURE__ */ _defineComponent({
101
92
  });
102
93
  return (_ctx, _cache) => {
103
94
  return _openBlock(), _createElementBlock("div", {
104
- ref_key: "elRef",
105
- ref: elRef,
106
95
  class: "magic-menu-item",
107
96
  "data-id": mappedId.value,
108
97
  "data-disabled": _ctx.disabled,
@@ -2,7 +2,6 @@ interface MagicMenuItemProps {
2
2
  id?: string;
3
3
  disabled?: boolean;
4
4
  }
5
- declare const elRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
6
5
  declare const mappedId: import("vue").ComputedRef<string>;
7
6
  declare const item: import("../types").MenuItem;
8
7
  declare const pointerDisabled: import("vue").ComputedRef<boolean>;
@@ -10,18 +9,14 @@ declare function guardedSelect(): void;
10
9
  declare function guardedUnselect(): void;
11
10
  declare function onClick(event: MouseEvent): void;
12
11
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
13
- declare var __VLS_0: {
12
+ declare var __VLS_1: {
14
13
  itemActive: boolean;
15
14
  itemDisabled: boolean;
16
15
  };
17
16
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
18
- default?: (props: typeof __VLS_0) => any;
17
+ default?: (props: typeof __VLS_1) => any;
19
18
  }>;
20
- type __VLS_TemplateRefs = {
21
- elRef: typeof __VLS_nativeElements['div'];
22
- };
23
19
  declare const __VLS_self: import("vue").DefineComponent<MagicMenuItemProps, {
24
- elRef: typeof elRef;
25
20
  mappedId: typeof mappedId;
26
21
  item: typeof item;
27
22
  pointerDisabled: typeof pointerDisabled;
@@ -37,7 +32,7 @@ declare const __VLS_component: import("vue").DefineComponent<MagicMenuItemProps,
37
32
  click: (event: MouseEvent) => any;
38
33
  }, string, import("vue").PublicProps, Readonly<MagicMenuItemProps> & Readonly<{
39
34
  onClick?: ((event: MouseEvent) => any) | undefined;
40
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, HTMLDivElement>;
35
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
36
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
42
37
  export default _default;
43
38
  type __VLS_WithSlots<T, S> = T & {
@@ -2,7 +2,8 @@
2
2
  import { defineComponent as _defineComponent } from "vue";
3
3
  import { renderSlot as _renderSlot, unref as _unref, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
4
4
  import {
5
- ref,
5
+ useTemplateRef,
6
+ shallowRef,
6
7
  provide,
7
8
  watch,
8
9
  toValue,
@@ -24,12 +25,12 @@ export default /* @__PURE__ */ _defineComponent({
24
25
  options: { type: Object, required: false }
25
26
  },
26
27
  setup(__props) {
27
- const elRef = ref(void 0);
28
+ const elRef = useTemplateRef("el");
28
29
  const mappedOptions = defu(__props.options, defaultOptions);
29
30
  const { initializeState, deleteState } = useMenuState(__props.id);
30
31
  const state = initializeState(mappedOptions);
31
- const lastX = ref(0);
32
- const lastY = ref(0);
32
+ const lastX = shallowRef(0);
33
+ const lastY = shallowRef(0);
33
34
  const { x, y } = usePointer();
34
35
  watch(
35
36
  () => state?.input.type,
@@ -86,8 +87,7 @@ export default /* @__PURE__ */ _defineComponent({
86
87
  provide(MagicMenuInstanceId, __props.id);
87
88
  return (_ctx, _cache) => {
88
89
  return _openBlock(), _createBlock(_unref(Primitive), {
89
- ref_key: "elRef",
90
- ref: elRef,
90
+ ref: "el",
91
91
  "as-child": _ctx.asChild,
92
92
  "data-id": _ctx.id,
93
93
  class: "magic-menu-provider"
@@ -6,99 +6,15 @@ interface MagicMenuProviderProps {
6
6
  asChild?: boolean;
7
7
  options?: MagicMenuOptions;
8
8
  }
9
- declare const elRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
10
9
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
11
- declare const __VLS_0: import("vue").DefineComponent<{
12
- asChild: {
13
- type: BooleanConstructor;
14
- default: boolean;
15
- };
16
- as: {
17
- type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
18
- default: string;
19
- };
20
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
- [key: string]: any;
22
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
- asChild: {
24
- type: BooleanConstructor;
25
- default: boolean;
26
- };
27
- as: {
28
- type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
29
- default: string;
30
- };
31
- }>>, {
32
- asChild: boolean;
33
- as: import("@maas/vue-primitive").ElementOrComponent;
34
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
- declare const __VLS_2: import("vue/jsx-runtime").JSX.Element & {
36
- __ctx?: ({
37
- attrs?: any;
38
- slots?: Readonly<{
39
- [name: string]: import("vue").Slot<any> | undefined;
40
- }> | undefined;
41
- emit?: ((event: string, ...args: any[]) => void) | undefined;
42
- } & {
43
- props?: (Partial<{
44
- asChild: boolean;
45
- as: import("@maas/vue-primitive").ElementOrComponent;
46
- }> & Omit<{
47
- readonly asChild: boolean;
48
- readonly as: import("@maas/vue-primitive").ElementOrComponent;
49
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "asChild" | "as"> & Record<string, unknown>) | undefined;
50
- expose?(exposed: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
51
- asChild: {
52
- type: BooleanConstructor;
53
- default: boolean;
54
- };
55
- as: {
56
- type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
57
- default: string;
58
- };
59
- }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
60
- [key: string]: any;
61
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
62
- asChild: boolean;
63
- as: import("@maas/vue-primitive").ElementOrComponent;
64
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
65
- P: {};
66
- B: {};
67
- D: {};
68
- C: {};
69
- M: {};
70
- Defaults: {};
71
- }, Readonly<import("vue").ExtractPropTypes<{
72
- asChild: {
73
- type: BooleanConstructor;
74
- default: boolean;
75
- };
76
- as: {
77
- type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
78
- default: string;
79
- };
80
- }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
81
- [key: string]: any;
82
- }>, {}, {}, {}, {
83
- asChild: boolean;
84
- as: import("@maas/vue-primitive").ElementOrComponent;
85
- }>): void;
86
- }) | undefined;
87
- };
88
- declare var __VLS_6: (Parameters<NonNullable<(typeof __VLS_5)["expose"]>>[0] | null);
89
10
  declare var __VLS_7: {};
90
- declare var __VLS_5: __VLS_PickFunctionalComponentCtx<typeof __VLS_0, typeof __VLS_2>;
91
11
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
92
12
  default?: (props: typeof __VLS_7) => any;
93
13
  }>;
94
- type __VLS_TemplateRefs = {
95
- elRef: typeof __VLS_6;
96
- };
97
14
  declare const __VLS_self: import("vue").DefineComponent<MagicMenuProviderProps, {
98
15
  Primitive: typeof Primitive;
99
- elRef: typeof elRef;
100
16
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
101
- declare const __VLS_component: import("vue").DefineComponent<MagicMenuProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, any>;
17
+ declare const __VLS_component: import("vue").DefineComponent<MagicMenuProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicMenuProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
102
18
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
103
19
  export default _default;
104
20
  type __VLS_WithSlots<T, S> = T & {
@@ -11,12 +11,12 @@ interface MagicMenuRemoteProps {
11
11
  declare const onClick: () => void, onMouseenter: () => void;
12
12
  declare let channel: import("../types").MenuChannel;
13
13
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
14
- declare var __VLS_10: {
14
+ declare var __VLS_11: {
15
15
  channelActive: boolean;
16
16
  remoteDisabled: boolean;
17
17
  };
18
18
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
19
- default?: (props: typeof __VLS_10) => any;
19
+ default?: (props: typeof __VLS_11) => any;
20
20
  }>;
21
21
  declare const __VLS_self: import("vue").DefineComponent<MagicMenuRemoteProps, {
22
22
  Primitive: typeof Primitive;
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import { defineComponent as _defineComponent } from "vue";
3
3
  import { unref as _unref, renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
4
- import { computed, inject, ref, toValue, watch } from "vue";
4
+ import { computed, inject, useTemplateRef, toValue, watch } from "vue";
5
5
  import { Primitive } from "@maas/vue-primitive";
6
6
  import { useMenuState } from "../composables/private/useMenuState";
7
7
  import { useMenuView } from "../composables/private/useMenuView";
@@ -23,7 +23,7 @@ export default /* @__PURE__ */ _defineComponent({
23
23
  asChild: { type: Boolean, required: false }
24
24
  },
25
25
  setup(__props) {
26
- const elRef = ref(void 0);
26
+ const elRef = useTemplateRef("el");
27
27
  const injectedInstanceId = inject(MagicMenuInstanceId, void 0);
28
28
  const injectedViewId = inject(MagicMenuViewId, void 0);
29
29
  const itemId = inject(MagicMenuItemId, void 0);
@@ -94,8 +94,7 @@ export default /* @__PURE__ */ _defineComponent({
94
94
  onKeyStroke("Enter", onEnter);
95
95
  return (_ctx, _cache) => {
96
96
  return _openBlock(), _createBlock(_unref(Primitive), {
97
- ref_key: "elRef",
98
- ref: elRef,
97
+ ref: "el",
99
98
  "data-id": `${mappedViewId.value}-trigger`,
100
99
  "data-active": _unref(view)?.active,
101
100
  "data-disabled": mappedDisabled.value,