@maas/vue-equipment 1.0.0-beta.4 → 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 (78) hide show
  1. package/README.md +2 -2
  2. package/dist/nuxt/module.json +1 -1
  3. package/dist/plugins/.turbo/turbo-lint.log +2 -10
  4. package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +33 -22
  5. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue +2 -2
  6. package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +12 -21
  7. package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +139 -24
  8. package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +15 -22
  9. package/dist/plugins/MagicCommand/src/components/MagicCommandContent.vue.d.ts +0 -21
  10. package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +12 -21
  11. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +34 -28
  12. package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +12 -21
  13. package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +60 -22
  14. package/dist/plugins/MagicCommand/src/components/MagicCommandRenderer.vue.d.ts +4 -1
  15. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue +1 -1
  16. package/dist/plugins/MagicCommand/src/components/MagicCommandTrigger.vue.d.ts +144 -25
  17. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +2 -2
  18. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +15 -22
  19. package/dist/plugins/MagicCookie/src/components/MagicCookieItem.vue.d.ts +13 -22
  20. package/dist/plugins/MagicCookie/src/components/MagicCookieProvider.vue.d.ts +9 -21
  21. package/dist/plugins/MagicCookie/src/components/MagicCookieView.vue.d.ts +22 -13
  22. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue +8 -12
  23. package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +114 -22
  24. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +13 -3
  25. package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +0 -47
  26. package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +0 -36
  27. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue +2 -3
  28. package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +0 -30
  29. package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +0 -39
  30. package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +0 -38
  31. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +2 -2
  32. package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +36 -28
  33. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue +14 -3
  34. package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +60 -22
  35. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue +27 -37
  36. package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +19 -23
  37. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue +26 -15
  38. package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +146 -25
  39. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +2 -2
  40. package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +15 -22
  41. package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.mjs +15 -5
  42. package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +18 -6
  43. package/dist/plugins/MagicModal/src/components/MagicModal.vue +3 -3
  44. package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +0 -38
  45. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue +1 -1
  46. package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +5 -10
  47. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudio.vue.d.ts +4 -1
  48. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue +3 -9
  49. package/dist/plugins/MagicPlayer/src/components/MagicPlayerAudioControls.vue.d.ts +0 -33
  50. package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +1 -10
  51. package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +4 -10
  52. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue +2 -2
  53. package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +0 -20
  54. package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +14 -12
  55. package/dist/plugins/MagicPlayer/src/components/MagicPlayerProvider.vue.d.ts +27 -22
  56. package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -1
  57. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideo.vue.d.ts +4 -1
  58. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue +1 -1
  59. package/dist/plugins/MagicPlayer/src/components/MagicPlayerVideoControls.vue.d.ts +0 -45
  60. package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +1 -1
  61. package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +1 -1
  62. package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +1 -1
  63. package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +1 -1
  64. package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +1 -1
  65. package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +1 -1
  66. package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +1 -1
  67. package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +1 -1
  68. package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +14 -22
  69. package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +14 -22
  70. package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +45 -37
  71. package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +18 -24
  72. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue +2 -2
  73. package/dist/plugins/MagicToast/src/components/MagicToastProvider.vue.d.ts +59 -10
  74. package/dist/plugins/MagicToast/src/components/MagicToastView.vue +2 -2
  75. package/dist/plugins/MagicToast/src/components/MagicToastView.vue.d.ts +28 -22
  76. package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +2 -2
  77. package/dist/plugins/MagicToast/src/composables/private/useToastCallback.mjs +2 -2
  78. package/package.json +4 -2
@@ -1,17 +1,53 @@
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: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
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<{
15
51
  asChild: {
16
52
  type: BooleanConstructor;
17
53
  default: boolean;
@@ -46,24 +82,26 @@ declare function __VLS_template(): {
46
82
  }>, {}, {}, {}, {
47
83
  asChild: boolean;
48
84
  as: import("@maas/vue-primitive").ElementOrComponent;
49
- }> | null;
50
- };
51
- rootEl: any;
85
+ }>): void;
86
+ }) | undefined;
52
87
  };
53
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
54
- 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>;
55
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
56
- export default _default;
57
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
- type __VLS_TypePropsToOption<T> = {
59
- [K in keyof T]-?: {} extends Pick<T, K> ? {
60
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
- } : {
62
- type: import('vue').PropType<T[K]>;
63
- required: true;
64
- };
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;
65
96
  };
66
- type __VLS_WithTemplateSlots<T, S> = T & {
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 & {
67
105
  new (): {
68
106
  $slots: S;
69
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,16 +8,123 @@ 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: boolean | undefined;
15
- triggerDisabled: boolean;
16
- }): any;
11
+ declare const elRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
12
+ asChild: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
17
15
  };
18
- refs: {
19
- elRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
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;
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<{
20
128
  asChild: {
21
129
  type: BooleanConstructor;
22
130
  default: boolean;
@@ -51,24 +159,35 @@ declare function __VLS_template(): {
51
159
  }>, {}, {}, {}, {
52
160
  asChild: boolean;
53
161
  as: import("@maas/vue-primitive").ElementOrComponent;
54
- }> | null;
55
- };
56
- rootEl: any;
162
+ }>): void;
163
+ }) | undefined;
57
164
  };
58
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
59
- 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>;
60
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
61
- export default _default;
62
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
63
- type __VLS_TypePropsToOption<T> = {
64
- [K in keyof T]-?: {} extends Pick<T, K> ? {
65
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
66
- } : {
67
- type: import('vue').PropType<T[K]>;
68
- required: true;
69
- };
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;
70
169
  };
71
- 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 & {
72
191
  new (): {
73
192
  $slots: S;
74
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: boolean;
10
- }): any;
11
- };
12
- refs: {};
13
- rootEl: HTMLDivElement;
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: import("../types").CookieItem;
11
- }): any;
12
- };
13
- refs: {};
14
- rootEl: HTMLDivElement;
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
  };
@@ -4,28 +4,16 @@ type MagicCookieProviderProps = {
4
4
  id: MaybeRef<string>;
5
5
  options?: MagicCookieOptions;
6
6
  };
7
- declare function __VLS_template(): {
8
- attrs: Partial<{}>;
9
- slots: {
10
- default?(_: {}): any;
11
- };
12
- refs: {};
13
- rootEl: any;
14
- };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCookieProviderProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<MagicCookieProviderProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
7
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
8
+ declare var __VLS_6: {};
9
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
10
+ default?: (props: typeof __VLS_6) => any;
11
+ }>;
12
+ declare const __VLS_self: import("vue").DefineComponent<MagicCookieProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCookieProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_component: import("vue").DefineComponent<MagicCookieProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCookieProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
15
  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 & {
16
+ type __VLS_WithSlots<T, S> = T & {
29
17
  new (): {
30
18
  $slots: S;
31
19
  };
@@ -1,20 +1,29 @@
1
+ import { AutoSize } from '@maas/vue-autosize';
1
2
  import '@maas/vue-equipment/utils/css/animations/fade-in.css';
2
3
  import '@maas/vue-equipment/utils/css/animations/auto-size-out.css';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- default?(_: {
7
- viewActive: boolean;
8
- }): any;
9
- };
10
- refs: {};
11
- rootEl: HTMLDivElement;
4
+ declare const state: import("../types").CookieState;
5
+ declare const onBeforeEnter: () => void, onEnter: () => void, onAfterEnter: () => Promise<void>, onBeforeLeave: () => void, onLeave: () => void, onAfterLeave: () => void;
6
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
7
+ declare var __VLS_19: {
8
+ viewActive: boolean;
12
9
  };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
10
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
11
+ default?: (props: typeof __VLS_19) => any;
12
+ }>;
13
+ declare const __VLS_self: import("vue").DefineComponent<{}, {
14
+ AutoSize: typeof AutoSize;
15
+ state: typeof state;
16
+ onBeforeEnter: typeof onBeforeEnter;
17
+ onEnter: typeof onEnter;
18
+ onAfterEnter: typeof onAfterEnter;
19
+ onBeforeLeave: typeof onBeforeLeave;
20
+ onLeave: typeof onLeave;
21
+ onAfterLeave: typeof onAfterLeave;
22
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
24
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
25
  export default _default;
17
- type __VLS_WithTemplateSlots<T, S> = T & {
26
+ type __VLS_WithSlots<T, S> = T & {
18
27
  new (): {
19
28
  $slots: S;
20
29
  };
@@ -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, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, normalizeStyle as _normalizeStyle, withCtx as _withCtx, createBlock as _createBlock, createElementVNode as _createElementVNode, mergeProps as _mergeProps } from "vue";
4
- const _hoisted_1 = ["id"];
4
+ const _hoisted_1 = ["data-id", "data-dragging", "data-disabled"];
5
5
  const _hoisted_2 = {
6
6
  key: 0,
7
7
  class: "magic-draggable__overlay"
@@ -57,15 +57,11 @@ export default /* @__PURE__ */ _defineComponent({
57
57
  }
58
58
  return (_ctx, _cache) => {
59
59
  return _openBlock(), _createElementBlock("div", _mergeProps({
60
- id: toValue(_ctx.id),
61
60
  ref: "drawerRef",
62
- class: [
63
- "magic-draggable",
64
- {
65
- "-dragging": _unref(dragging),
66
- "-disabled": disabled.value
67
- }
68
- ]
61
+ "data-id": toValue(_ctx.id),
62
+ "data-dragging": _unref(dragging),
63
+ "data-disabled": disabled.value,
64
+ class: "magic-draggable"
69
65
  }, _ctx.$attrs), [
70
66
  _createElementVNode(
71
67
  "div",
@@ -114,7 +110,7 @@ export default /* @__PURE__ */ _defineComponent({
114
110
  border: none;
115
111
  }
116
112
 
117
- .magic-draggable.-disabled {
113
+ .magic-draggable[data-disabled='true'] {
118
114
  pointer-events: none;
119
115
  }
120
116
 
@@ -136,12 +132,12 @@ export default /* @__PURE__ */ _defineComponent({
136
132
  touch-action: none;
137
133
  }
138
134
 
139
- .magic-draggable.-dragging .magic-draggable__drag {
135
+ .magic-draggable[data-dragging='true'] .magic-draggable__drag {
140
136
  cursor: grabbing;
141
137
  user-select: none;
142
138
  }
143
139
 
144
- .magic-draggable.-disabled .magic-draggable__drag {
140
+ .magic-draggable[data-disabled='true'] .magic-draggable__drag {
145
141
  cursor: default;
146
142
  }
147
143