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

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 (85) hide show
  1. package/README.md +2 -2
  2. package/dist/composables/index.js +9 -5
  3. package/dist/composables/index.js.map +1 -1
  4. package/dist/nuxt/module.json +1 -1
  5. package/dist/nuxt/module.mjs +1 -1
  6. package/dist/plugins/.turbo/turbo-lint.log +2 -10
  7. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +33 -22
  8. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +2 -2
  9. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +12 -21
  10. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +172 -22
  11. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +15 -22
  12. package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +0 -21
  13. package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +12 -21
  14. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +35 -25
  15. package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +12 -21
  16. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +93 -20
  17. package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue.d.ts +4 -1
  18. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +1 -1
  19. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +179 -25
  20. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +2 -2
  21. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +15 -22
  22. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +13 -22
  23. package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue.d.ts +9 -21
  24. package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +22 -13
  25. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +8 -12
  26. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +114 -22
  27. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +13 -3
  28. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +0 -47
  29. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +0 -36
  30. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +4 -5
  31. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +0 -30
  32. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +0 -39
  33. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +0 -38
  34. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +2 -2
  35. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +37 -25
  36. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +14 -3
  37. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +93 -20
  38. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +27 -37
  39. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +19 -23
  40. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +26 -15
  41. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +181 -25
  42. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +2 -2
  43. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +15 -22
  44. package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.mjs +15 -5
  45. package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +18 -6
  46. package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.d.ts +2 -2
  47. package/dist/plugins/MagicMenu/src/utils/modeDelayDefaults.mjs +2 -2
  48. package/dist/plugins/MagicModal/src/components/MagicModal.vue +3 -3
  49. package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +0 -38
  50. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +1 -1
  51. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +5 -10
  52. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue.d.ts +4 -1
  53. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +3 -9
  54. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +0 -33
  55. package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +1 -10
  56. package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +4 -10
  57. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +2 -2
  58. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +0 -20
  59. package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +14 -12
  60. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +27 -22
  61. package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -1
  62. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue.d.ts +4 -1
  63. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +1 -1
  64. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +0 -45
  65. package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +1 -1
  66. package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +1 -1
  67. package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +1 -1
  68. package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +1 -1
  69. package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +1 -1
  70. package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +1 -1
  71. package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +1 -1
  72. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +1 -1
  73. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +14 -22
  74. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +14 -22
  75. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +45 -20
  76. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +18 -24
  77. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +2 -2
  78. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue.d.ts +59 -10
  79. package/dist/plugins/MagicToast/src/components/MagicToastView.vue +2 -2
  80. package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +28 -22
  81. package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +2 -2
  82. package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +5 -5
  83. package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +1 -0
  84. package/dist/plugins/MagicToast/src/composables/useMagicToast.mjs +10 -2
  85. package/package.json +8 -6
@@ -2,28 +2,19 @@ import type { MagicCommandDrawerOptions } from '../types/index.js';
2
2
  interface MagicCommandDrawerProps {
3
3
  options?: MagicCommandDrawerOptions;
4
4
  }
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {}): any;
9
- };
10
- refs: {};
11
- rootEl: any;
12
- };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandDrawerProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandDrawerProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
5
+ declare const instanceId: import("vue").MaybeRef<string>;
6
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
7
+ declare var __VLS_6: {};
8
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
9
+ default?: (props: typeof __VLS_6) => any;
10
+ }>;
11
+ declare const __VLS_self: import("vue").DefineComponent<MagicCommandDrawerProps, {
12
+ instanceId: typeof instanceId;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandDrawerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_component: import("vue").DefineComponent<MagicCommandDrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandDrawerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
16
  export default _default;
17
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
- type __VLS_TypePropsToOption<T> = {
19
- [K in keyof T]-?: {} extends Pick<T, K> ? {
20
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
- } : {
22
- type: import('vue').PropType<T[K]>;
23
- required: true;
24
- };
25
- };
26
- type __VLS_WithTemplateSlots<T, S> = T & {
17
+ type __VLS_WithSlots<T, S> = T & {
27
18
  new (): {
28
19
  $slots: S;
29
20
  };
@@ -3,33 +3,43 @@ interface MagicCommandItemProps {
3
3
  initial?: boolean;
4
4
  disabled?: boolean;
5
5
  }
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: {
9
- default?(_: {
10
- itemActive: any;
11
- itemDisabled: boolean;
12
- }): any;
13
- };
14
- refs: {
15
- elRef: any;
16
- };
17
- rootEl: any;
6
+ declare const elRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
7
+ declare const mappedId: import("vue").ComputedRef<string>;
8
+ declare const item: import("../types").CommandItem;
9
+ declare const pointerDisabled: import("vue").ComputedRef<boolean>;
10
+ declare function guardedSelect(): void;
11
+ declare function onClick(event: MouseEvent): void;
12
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
13
+ declare var __VLS_0: {
14
+ itemActive: boolean;
15
+ itemDisabled: boolean;
18
16
  };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
- export default _default;
23
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
- type __VLS_TypePropsToOption<T> = {
25
- [K in keyof T]-?: {} extends Pick<T, K> ? {
26
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
- } : {
28
- type: import('vue').PropType<T[K]>;
29
- required: true;
30
- };
17
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
18
+ default?: (props: typeof __VLS_0) => any;
19
+ }>;
20
+ type __VLS_TemplateRefs = {
21
+ elRef: typeof __VLS_nativeElements['div'];
31
22
  };
32
- type __VLS_WithTemplateSlots<T, S> = T & {
23
+ declare const __VLS_self: import("vue").DefineComponent<MagicCommandItemProps, {
24
+ elRef: typeof elRef;
25
+ mappedId: typeof mappedId;
26
+ item: typeof item;
27
+ pointerDisabled: typeof pointerDisabled;
28
+ guardedSelect: typeof guardedSelect;
29
+ onClick: typeof onClick;
30
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
31
+ click: (event: MouseEvent) => any;
32
+ }, string, import("vue").PublicProps, Readonly<MagicCommandItemProps> & Readonly<{
33
+ onClick?: ((event: MouseEvent) => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
+ declare const __VLS_component: import("vue").DefineComponent<MagicCommandItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
36
+ click: (event: MouseEvent) => any;
37
+ }, string, import("vue").PublicProps, Readonly<MagicCommandItemProps> & Readonly<{
38
+ onClick?: ((event: MouseEvent) => any) | undefined;
39
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, HTMLDivElement>;
40
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
41
+ export default _default;
42
+ type __VLS_WithSlots<T, S> = T & {
33
43
  new (): {
34
44
  $slots: S;
35
45
  };
@@ -2,28 +2,19 @@ import type { MagicCommandModalOptions } from '../types/index.js';
2
2
  interface MagicCommandProps {
3
3
  options?: MagicCommandModalOptions;
4
4
  }
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {}): any;
9
- };
10
- refs: {};
11
- rootEl: any;
12
- };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
5
+ declare const instanceId: import("vue").MaybeRef<string>;
6
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
7
+ declare var __VLS_6: {};
8
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
9
+ default?: (props: typeof __VLS_6) => any;
10
+ }>;
11
+ declare const __VLS_self: import("vue").DefineComponent<MagicCommandProps, {
12
+ instanceId: typeof instanceId;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_component: import("vue").DefineComponent<MagicCommandProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
16
  export default _default;
17
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
- type __VLS_TypePropsToOption<T> = {
19
- [K in keyof T]-?: {} extends Pick<T, K> ? {
20
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
- } : {
22
- type: import('vue').PropType<T[K]>;
23
- required: true;
24
- };
25
- };
26
- type __VLS_WithTemplateSlots<T, S> = T & {
17
+ type __VLS_WithSlots<T, S> = T & {
27
18
  new (): {
28
19
  $slots: S;
29
20
  };
@@ -1,34 +1,107 @@
1
1
  import { type MaybeRef } from 'vue';
2
+ import { Primitive } from '@maas/vue-primitive';
2
3
  import type { MagicCommandOptions } from '../types/index.js';
3
4
  interface MagicCommandProviderProps {
4
5
  id: MaybeRef<string>;
5
6
  asChild?: boolean;
6
7
  options?: MagicCommandOptions;
7
8
  }
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: {
11
- default?(_: {}): any;
9
+ declare const elRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
10
+ 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;
12
15
  };
13
- refs: {
14
- elRef: any;
16
+ as: {
17
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
18
+ default: string;
15
19
  };
16
- rootEl: any;
17
- };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandProviderProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandProviderProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
- export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToOption<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
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;
29
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;
30
87
  };
31
- type __VLS_WithTemplateSlots<T, S> = T & {
88
+ declare var __VLS_6: (Parameters<NonNullable<(typeof __VLS_5)["expose"]>>[0] | null);
89
+ declare var __VLS_7: {};
90
+ declare var __VLS_5: __VLS_PickFunctionalComponentCtx<typeof __VLS_0, typeof __VLS_2>;
91
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
92
+ default?: (props: typeof __VLS_7) => any;
93
+ }>;
94
+ type __VLS_TemplateRefs = {
95
+ elRef: typeof __VLS_6;
96
+ };
97
+ declare const __VLS_self: import("vue").DefineComponent<MagicCommandProviderProps, {
98
+ Primitive: typeof Primitive;
99
+ elRef: typeof elRef;
100
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
101
+ declare const __VLS_component: import("vue").DefineComponent<MagicCommandProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, any>;
102
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
103
+ export default _default;
104
+ type __VLS_WithSlots<T, S> = T & {
32
105
  new (): {
33
106
  $slots: S;
34
107
  };
@@ -1,2 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_TemplateRefs = {
2
+ elRef: typeof __VLS_nativeElements['div'];
3
+ };
4
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, __VLS_TemplateRefs, HTMLDivElement>;
2
5
  export default _default;
@@ -104,7 +104,7 @@ export default /* @__PURE__ */ _defineComponent({
104
104
  cursor: var(--magic-command-trigger-cursor, pointer);
105
105
  }
106
106
 
107
- .magic-menu-trigger.-disabled {
107
+ .magic-menu-trigger[data-disabled='true'] {
108
108
  pointer-events: none;
109
109
  }
110
110
  </style>
@@ -1,3 +1,4 @@
1
+ import { Primitive } from '@maas/vue-primitive';
1
2
  import type { Interaction, Action } from '../types/index.js';
2
3
  interface MagicCommandTriggerProps {
3
4
  viewId?: string;
@@ -7,33 +8,186 @@ interface MagicCommandTriggerProps {
7
8
  trigger?: Interaction[];
8
9
  asChild?: boolean;
9
10
  }
10
- declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
- slots: {
13
- default?(_: {
14
- viewActive: any;
15
- triggerDisabled: any;
16
- }): any;
17
- };
18
- refs: {
19
- elRef: any;
20
- };
21
- rootEl: any;
22
- };
23
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandTriggerProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandTriggerProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
- export default _default;
27
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
- type __VLS_TypePropsToOption<T> = {
29
- [K in keyof T]-?: {} extends Pick<T, K> ? {
30
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
- } : {
32
- type: import('vue').PropType<T[K]>;
33
- required: true;
11
+ declare const elRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
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, {}, import("vue").PublicProps, {
23
+ asChild: boolean;
24
+ as: import("@maas/vue-primitive").ElementOrComponent;
25
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
26
+ P: {};
27
+ B: {};
28
+ D: {};
29
+ C: {};
30
+ M: {};
31
+ Defaults: {};
32
+ }, Readonly<import("vue").ExtractPropTypes<{
33
+ asChild: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ as: {
38
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
39
+ default: string;
40
+ };
41
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
+ [key: string]: any;
43
+ }>, {}, {}, {}, {
44
+ asChild: boolean;
45
+ as: import("@maas/vue-primitive").ElementOrComponent;
46
+ }> | undefined, import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
47
+ asChild: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ as: {
52
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
53
+ default: string;
54
+ };
55
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
56
+ [key: string]: any;
57
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
58
+ asChild: boolean;
59
+ as: import("@maas/vue-primitive").ElementOrComponent;
60
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
61
+ P: {};
62
+ B: {};
63
+ D: {};
64
+ C: {};
65
+ M: {};
66
+ Defaults: {};
67
+ }, Readonly<import("vue").ExtractPropTypes<{
68
+ asChild: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
34
71
  };
72
+ as: {
73
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
74
+ default: string;
75
+ };
76
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
77
+ [key: string]: any;
78
+ }>, {}, {}, {}, {
79
+ asChild: boolean;
80
+ as: import("@maas/vue-primitive").ElementOrComponent;
81
+ }> | undefined>;
82
+ declare const mappedViewId: import("vue").ComputedRef<string | undefined>;
83
+ declare const view: import("../types").CommandView | undefined;
84
+ declare const mappedActive: import("vue").ComputedRef<boolean>;
85
+ declare const mappedDisabled: import("vue").ComputedRef<boolean>;
86
+ declare const onMouseenter: () => Promise<void>, onClick: (e: MouseEvent) => Promise<void>;
87
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
88
+ declare const __VLS_0: import("vue").DefineComponent<{
89
+ asChild: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ as: {
94
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
95
+ default: string;
96
+ };
97
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
98
+ [key: string]: any;
99
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
100
+ asChild: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ as: {
105
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
106
+ default: string;
107
+ };
108
+ }>>, {
109
+ asChild: boolean;
110
+ as: import("@maas/vue-primitive").ElementOrComponent;
111
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
112
+ declare const __VLS_2: import("vue/jsx-runtime").JSX.Element & {
113
+ __ctx?: ({
114
+ attrs?: any;
115
+ slots?: Readonly<{
116
+ [name: string]: import("vue").Slot<any> | undefined;
117
+ }> | undefined;
118
+ emit?: ((event: string, ...args: any[]) => void) | undefined;
119
+ } & {
120
+ props?: (Partial<{
121
+ asChild: boolean;
122
+ as: import("@maas/vue-primitive").ElementOrComponent;
123
+ }> & Omit<{
124
+ readonly asChild: boolean;
125
+ readonly as: import("@maas/vue-primitive").ElementOrComponent;
126
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "asChild" | "as"> & Record<string, unknown>) | undefined;
127
+ expose?(exposed: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
128
+ asChild: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ as: {
133
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
134
+ default: string;
135
+ };
136
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
137
+ [key: string]: any;
138
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
139
+ asChild: boolean;
140
+ as: import("@maas/vue-primitive").ElementOrComponent;
141
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
142
+ P: {};
143
+ B: {};
144
+ D: {};
145
+ C: {};
146
+ M: {};
147
+ Defaults: {};
148
+ }, Readonly<import("vue").ExtractPropTypes<{
149
+ asChild: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ as: {
154
+ type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
155
+ default: string;
156
+ };
157
+ }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
158
+ [key: string]: any;
159
+ }>, {}, {}, {}, {
160
+ asChild: boolean;
161
+ as: import("@maas/vue-primitive").ElementOrComponent;
162
+ }>): void;
163
+ }) | undefined;
164
+ };
165
+ declare var __VLS_6: (Parameters<NonNullable<(typeof __VLS_5)["expose"]>>[0] | null);
166
+ declare var __VLS_10: {
167
+ viewActive: boolean | undefined;
168
+ triggerDisabled: boolean;
35
169
  };
36
- type __VLS_WithTemplateSlots<T, S> = T & {
170
+ declare var __VLS_5: __VLS_PickFunctionalComponentCtx<typeof __VLS_0, typeof __VLS_2>;
171
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
172
+ default?: (props: typeof __VLS_10) => any;
173
+ }>;
174
+ type __VLS_TemplateRefs = {
175
+ elRef: typeof __VLS_6;
176
+ };
177
+ declare const __VLS_self: import("vue").DefineComponent<MagicCommandTriggerProps, {
178
+ Primitive: typeof Primitive;
179
+ elRef: typeof elRef;
180
+ mappedViewId: typeof mappedViewId;
181
+ view: typeof view;
182
+ mappedActive: typeof mappedActive;
183
+ mappedDisabled: typeof mappedDisabled;
184
+ onMouseenter: typeof onMouseenter;
185
+ onClick: typeof onClick;
186
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
187
+ declare const __VLS_component: import("vue").DefineComponent<MagicCommandTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, __VLS_TemplateRefs, any>;
188
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
189
+ export default _default;
190
+ type __VLS_WithSlots<T, S> = T & {
37
191
  new (): {
38
192
  $slots: S;
39
193
  };
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import { defineComponent as _defineComponent } from "vue";
3
3
  import { unref as _unref, renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
4
- const _hoisted_1 = ["id"];
4
+ const _hoisted_1 = ["data-id"];
5
5
  import { computed, inject, onBeforeUnmount, provide, useId, watch } from "vue";
6
6
  import { useCommandView } from "../composables/private/useCommandView";
7
7
  import {
@@ -47,7 +47,7 @@ export default /* @__PURE__ */ _defineComponent({
47
47
  });
48
48
  return (_ctx, _cache) => {
49
49
  return _openBlock(), _createElementBlock("div", {
50
- id: mappedId.value,
50
+ "data-id": mappedId.value,
51
51
  class: "magic-menu-view"
52
52
  }, [
53
53
  _renderSlot(_ctx.$slots, "default", {
@@ -2,30 +2,23 @@ interface MagicCommandViewProps {
2
2
  id?: string;
3
3
  initial?: boolean;
4
4
  }
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {
9
- viewActive: any;
10
- }): any;
11
- };
12
- refs: {};
13
- rootEl: any;
5
+ declare const mappedId: import("vue").ComputedRef<string>;
6
+ declare const view: import("../types").CommandView;
7
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
8
+ declare var __VLS_0: {
9
+ viewActive: boolean;
14
10
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandViewProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCommandViewProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
+ default?: (props: typeof __VLS_0) => any;
13
+ }>;
14
+ declare const __VLS_self: import("vue").DefineComponent<MagicCommandViewProps, {
15
+ mappedId: typeof mappedId;
16
+ view: typeof view;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_component: import("vue").DefineComponent<MagicCommandViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
20
  export default _default;
19
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
- type __VLS_TypePropsToOption<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
- } : {
24
- type: import('vue').PropType<T[K]>;
25
- required: true;
26
- };
27
- };
28
- type __VLS_WithTemplateSlots<T, S> = T & {
21
+ type __VLS_WithSlots<T, S> = T & {
29
22
  new (): {
30
23
  $slots: S;
31
24
  };
@@ -3,30 +3,21 @@ interface MagicCookieItemProps {
3
3
  optional?: boolean;
4
4
  maxAge?: number;
5
5
  }
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: {
9
- default?(_: {
10
- item: any;
11
- }): any;
12
- };
13
- refs: {};
14
- rootEl: any;
6
+ declare const item: import("../types").CookieItem;
7
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
8
+ declare var __VLS_0: {
9
+ item: import("../types").CookieItem;
15
10
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCookieItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCookieItemProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
12
+ default?: (props: typeof __VLS_0) => any;
13
+ }>;
14
+ declare const __VLS_self: import("vue").DefineComponent<MagicCookieItemProps, {
15
+ item: typeof item;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCookieItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_component: import("vue").DefineComponent<MagicCookieItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCookieItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
19
  export default _default;
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToOption<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('vue').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
29
- type __VLS_WithTemplateSlots<T, S> = T & {
20
+ type __VLS_WithSlots<T, S> = T & {
30
21
  new (): {
31
22
  $slots: S;
32
23
  };