@maas/vue-equipment 0.33.1 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/composables/index.d.mts +5 -5
- package/dist/composables/index.d.ts +5 -5
- package/dist/nuxt/module.d.mts +1 -1
- package/dist/nuxt/module.d.ts +1 -1
- package/dist/nuxt/module.json +2 -2
- package/dist/plugins/MagicAccordion/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionContent.vue.d.ts +10 -15
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionProvider.vue.d.ts +8 -12
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionTrigger.vue.d.ts +57 -31
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue +2 -3
- package/dist/plugins/MagicAccordion/src/components/MagicAccordionView.vue.d.ts +10 -14
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionState.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionTrigger.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/composables/private/useAccordionView.d.ts +1 -1
- package/dist/plugins/MagicAccordion/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicAutoSize/nuxt.d.ts +1 -1
- package/dist/plugins/MagicAutoSize/src/components/MagicAutoSize.vue.d.ts +11 -29
- package/dist/plugins/MagicCommand/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue.d.ts +10 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandDrawer.vue.d.ts +8 -12
- package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue.d.ts +8 -3
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +13 -29
- package/dist/plugins/MagicCommand/src/components/MagicCommandModal.vue.d.ts +8 -12
- package/dist/plugins/MagicCommand/src/components/MagicCommandProvider.vue.d.ts +9 -25
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +2 -2
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +11 -25
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.d.ts +7 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +1 -1
- package/dist/plugins/MagicCommand/src/types/index.d.ts +2 -2
- package/dist/plugins/MagicCommand/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicCookie/nuxt.d.ts +1 -1
- package/dist/plugins/MagicCookie/src/components/MagicCookie.vue.d.ts +13 -29
- package/dist/plugins/MagicCookie/src/composables/private/useCookieApi.d.ts +16 -4
- package/dist/plugins/MagicCookie/src/composables/useMagicCookie.d.ts +5 -3
- package/dist/plugins/MagicDraggable/index.d.ts +1 -1
- package/dist/plugins/MagicDraggable/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDraggable/src/components/MagicDraggable.vue.d.ts +13 -25
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableDrag.mjs +9 -2
- package/dist/plugins/MagicDraggable/src/composables/private/useDraggableSnap.d.ts +7 -1
- package/dist/plugins/MagicDraggable/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicDrawer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue +7 -2
- package/dist/plugins/MagicDrawer/src/components/MagicDrawer.vue.d.ts +14 -26
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerCallback.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerDrag.mjs +12 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerGuards.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerProgress.d.ts +3 -0
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerSnap.d.ts +4 -4
- package/dist/plugins/MagicDrawer/src/composables/private/useDrawerState.d.ts +1 -1
- package/dist/plugins/MagicDrawer/src/composables/useMagicDrawer.d.ts +3 -0
- package/dist/plugins/MagicDrawer/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicEmitter/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue +1 -1
- package/dist/plugins/MagicMarquee/src/components/MagicMarquee.vue.d.ts +15 -30
- package/dist/plugins/MagicMarquee/src/composables/private/useMarqueeApi.d.ts +2 -2
- package/dist/plugins/MagicMenu/nuxt.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/components/MagicMenuChannel.vue.d.ts +8 -12
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue +1 -0
- package/dist/plugins/MagicMenu/src/components/MagicMenuContent.vue.d.ts +12 -26
- package/dist/plugins/MagicMenu/src/components/MagicMenuFloat.vue.d.ts +12 -13
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue +2 -3
- package/dist/plugins/MagicMenu/src/components/MagicMenuItem.vue.d.ts +16 -18
- package/dist/plugins/MagicMenu/src/components/MagicMenuProvider.vue.d.ts +10 -12
- package/dist/plugins/MagicMenu/src/components/MagicMenuRemote.vue.d.ts +11 -15
- package/dist/plugins/MagicMenu/src/components/MagicMenuTrigger.vue.d.ts +57 -15
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue +2 -3
- package/dist/plugins/MagicMenu/src/components/MagicMenuView.vue.d.ts +8 -12
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.d.ts +2 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCallback.mjs +4 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuChannel.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuCursor.d.ts +7 -4
- package/dist/plugins/MagicMenu/src/composables/private/useMenuRemote.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuState.d.ts +1 -1
- package/dist/plugins/MagicMenu/src/composables/private/useMenuView.mjs +2 -2
- package/dist/plugins/MagicMenu/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicModal/nuxt.d.ts +1 -1
- package/dist/plugins/MagicModal/src/components/MagicModal.vue.d.ts +12 -26
- package/dist/plugins/MagicModal/src/composables/private/useModalCallback.d.ts +1 -1
- package/dist/plugins/MagicModal/src/composables/private/useModalStore.d.ts +1 -1
- package/dist/plugins/MagicModal/src/utils/defaultOptions.d.ts +1 -1
- package/dist/plugins/MagicNoise/nuxt.d.ts +1 -1
- package/dist/plugins/MagicNoise/src/components/MagicNoise.vue.d.ts +2 -23
- package/dist/plugins/MagicNoise/src/composables/private/useNoiseApi.d.ts +2 -2
- package/dist/plugins/MagicPlayer/nuxt.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayer.vue.d.ts +12 -27
- package/dist/plugins/MagicPlayer/src/components/MagicAudioPlayerControls.vue.d.ts +12 -13
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue +1 -1
- package/dist/plugins/MagicPlayer/src/components/MagicPlayer.vue.d.ts +12 -33
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerControls.vue.d.ts +21 -33
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerDisplayTime.vue.d.ts +2 -23
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerMuxPopover.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerOverlay.vue.d.ts +11 -15
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerPoster.vue.d.ts +8 -12
- package/dist/plugins/MagicPlayer/src/components/MagicPlayerTimeline.vue.d.ts +1 -10
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenEnter.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/FullscreenExit.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Pause.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Play.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOff.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/VolumeOn.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/components/icons/Waiting.vue.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerAudioApi.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerControlsApi.d.ts +17 -7
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerMediaApi.d.ts +12 -11
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerRuntime.d.ts +2 -2
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerStateEmitter.d.ts +1 -1
- package/dist/plugins/MagicPlayer/src/composables/private/usePlayerVideoApi.d.ts +3 -3
- package/dist/plugins/MagicPlayer/src/composables/useMagicPlayer.d.ts +32 -22
- package/dist/plugins/MagicScroll/nuxt.d.ts +1 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollCollision.vue.d.ts +10 -12
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +11 -25
- package/dist/plugins/MagicScroll/src/components/MagicScrollProvider.vue.d.ts +27 -43
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue +0 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollScene.vue.d.ts +13 -30
- package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +9 -39
- package/dist/plugins/MagicScroll/src/composables/private/useCollisionDetect.d.ts +29 -1
- package/dist/plugins/MagicScroll/src/composables/private/useScrollApi.d.ts +1 -1
- package/dist/plugins/MagicToast/nuxt.d.ts +1 -1
- package/dist/plugins/MagicToast/src/components/MagicToast.vue +4 -4
- package/dist/plugins/MagicToast/src/components/MagicToast.vue.d.ts +1 -10
- package/dist/plugins/MagicToast/src/components/MagicToastComponent.vue.d.ts +13 -15
- package/dist/plugins/MagicToast/src/composables/private/useToastCallback.d.ts +8 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.d.ts +1 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastInternalApi.mjs +3 -1
- package/dist/plugins/MagicToast/src/composables/private/useToastStore.d.ts +11 -1
- package/dist/plugins/MagicToast/src/composables/useMagicToast.d.ts +1 -1
- package/dist/plugins/MagicToast/src/utils/defaultOptions.mjs +1 -1
- package/dist/utils/index.d.mts +1 -3
- package/dist/utils/index.d.ts +1 -3
- package/dist/utils/index.js +2 -12
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +1 -10
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
# Vue Equipment
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
A _magic_ collection of essential Vue plugins and composables.
|
|
12
|
+
|
|
13
|
+
> “Any sufficiently advanced technology is indistinguishable from magic.”
|
|
14
|
+
> – Arthur C. Clarke
|
|
12
15
|
|
|
13
16
|
## 🚧 Disclaimer
|
|
14
17
|
|
|
@@ -12,11 +12,11 @@ interface CountdownOptions {
|
|
|
12
12
|
zeroIndexedMonths?: boolean;
|
|
13
13
|
}
|
|
14
14
|
declare function useCountdown(options: CountdownOptions, callback?: () => void): {
|
|
15
|
-
years: vue.Ref<number>;
|
|
16
|
-
days: vue.Ref<number>;
|
|
17
|
-
hours: vue.Ref<number>;
|
|
18
|
-
minutes: vue.Ref<number>;
|
|
19
|
-
seconds: vue.Ref<number>;
|
|
15
|
+
years: vue.Ref<number, number>;
|
|
16
|
+
days: vue.Ref<number, number>;
|
|
17
|
+
hours: vue.Ref<number, number>;
|
|
18
|
+
minutes: vue.Ref<number, number>;
|
|
19
|
+
seconds: vue.Ref<number, number>;
|
|
20
20
|
endDateTime: vue.ComputedRef<DateTime<true> | DateTime<false>>;
|
|
21
21
|
pad: (value: number) => string;
|
|
22
22
|
restart: () => void;
|
|
@@ -12,11 +12,11 @@ interface CountdownOptions {
|
|
|
12
12
|
zeroIndexedMonths?: boolean;
|
|
13
13
|
}
|
|
14
14
|
declare function useCountdown(options: CountdownOptions, callback?: () => void): {
|
|
15
|
-
years: vue.Ref<number>;
|
|
16
|
-
days: vue.Ref<number>;
|
|
17
|
-
hours: vue.Ref<number>;
|
|
18
|
-
minutes: vue.Ref<number>;
|
|
19
|
-
seconds: vue.Ref<number>;
|
|
15
|
+
years: vue.Ref<number, number>;
|
|
16
|
+
days: vue.Ref<number, number>;
|
|
17
|
+
hours: vue.Ref<number, number>;
|
|
18
|
+
minutes: vue.Ref<number, number>;
|
|
19
|
+
seconds: vue.Ref<number, number>;
|
|
20
20
|
endDateTime: vue.ComputedRef<DateTime<true> | DateTime<false>>;
|
|
21
21
|
pad: (value: number) => string;
|
|
22
22
|
restart: () => void;
|
package/dist/nuxt/module.d.mts
CHANGED
|
@@ -4,6 +4,6 @@ interface ModuleOptions {
|
|
|
4
4
|
plugins?: string[] | boolean;
|
|
5
5
|
composables?: string[] | boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
7
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
8
8
|
|
|
9
9
|
export { type ModuleOptions, _default as default };
|
package/dist/nuxt/module.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ interface ModuleOptions {
|
|
|
4
4
|
plugins?: string[] | boolean;
|
|
5
5
|
composables?: string[] | boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
7
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
8
8
|
|
|
9
9
|
export { type ModuleOptions, _default as default };
|
package/dist/nuxt/module.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
1
|
+
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -4,25 +4,20 @@ interface MagicAccordionContentProps {
|
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
}
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {
|
|
9
|
+
isActive: boolean | undefined;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
attrs: Partial<{}>;
|
|
10
14
|
};
|
|
11
|
-
|
|
12
|
-
declare const
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicAccordionContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicAccordionContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
18
|
export default _default;
|
|
14
|
-
|
|
15
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
20
|
new (): {
|
|
17
21
|
$slots: S;
|
|
18
22
|
};
|
|
19
23
|
};
|
|
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
|
-
};
|
|
@@ -6,22 +6,18 @@ interface MagicAccordionProviderProps {
|
|
|
6
6
|
options?: MagicAccordionOptions;
|
|
7
7
|
}
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
attrs: Partial<{}>;
|
|
10
14
|
};
|
|
11
|
-
|
|
12
|
-
declare const
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicAccordionProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicAccordionProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
18
|
export default _default;
|
|
14
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
20
|
new (): {
|
|
16
21
|
$slots: S;
|
|
17
22
|
};
|
|
18
23
|
};
|
|
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
|
-
};
|
|
@@ -6,44 +6,70 @@ interface MagicAccordionTriggerProps {
|
|
|
6
6
|
asChild?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {
|
|
11
|
+
isActive: boolean | undefined;
|
|
12
|
+
}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
elRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
asChild: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
as: {
|
|
21
|
+
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
asChild: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
as: {
|
|
32
|
+
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}>>, {
|
|
36
|
+
asChild: boolean;
|
|
37
|
+
as: import("@maas/vue-primitive").ElementOrComponent;
|
|
38
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
39
|
+
P: {};
|
|
40
|
+
B: {};
|
|
41
|
+
D: {};
|
|
42
|
+
C: {};
|
|
43
|
+
M: {};
|
|
44
|
+
Defaults: {};
|
|
45
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
asChild: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
as: {
|
|
51
|
+
type: import("vue").PropType<import("@maas/vue-primitive").ElementOrComponent>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}>, {}, {}, {}, {
|
|
57
|
+
asChild: boolean;
|
|
58
|
+
as: import("@maas/vue-primitive").ElementOrComponent;
|
|
59
|
+
}> | null;
|
|
60
|
+
};
|
|
61
|
+
attrs: Partial<{}>;
|
|
12
62
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
trigger: string;
|
|
16
|
-
asChild: boolean;
|
|
17
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicAccordionTriggerProps>, {
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
trigger: string;
|
|
20
|
-
asChild: boolean;
|
|
21
|
-
}>>>, {
|
|
63
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
64
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicAccordionTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicAccordionTriggerProps> & Readonly<{}>, {
|
|
22
65
|
asChild: boolean;
|
|
23
66
|
disabled: MaybeRef<boolean>;
|
|
24
67
|
trigger: Interaction;
|
|
25
|
-
}, {}>;
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
70
|
export default _default;
|
|
28
|
-
type __VLS_WithDefaults<P, D> = {
|
|
29
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
-
default: D[K];
|
|
31
|
-
}> : P[K];
|
|
32
|
-
};
|
|
33
|
-
type __VLS_Prettify<T> = {
|
|
34
|
-
[K in keyof T]: T[K];
|
|
35
|
-
} & {};
|
|
36
71
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
72
|
new (): {
|
|
38
73
|
$slots: S;
|
|
39
74
|
};
|
|
40
75
|
};
|
|
41
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
-
type __VLS_TypePropsToOption<T> = {
|
|
43
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
-
} : {
|
|
46
|
-
type: import('vue').PropType<T[K]>;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
|
-
import { computed, inject, onBeforeUnmount, provide } from 'vue'
|
|
11
|
+
import { computed, inject, onBeforeUnmount, provide, useId } from 'vue'
|
|
12
12
|
import { Primitive } from '@maas/vue-primitive'
|
|
13
|
-
import { uuid } from '@maas/vue-equipment/utils'
|
|
14
13
|
import {
|
|
15
14
|
MagicAccordionInstanceId,
|
|
16
15
|
MagicAccordionViewActive,
|
|
@@ -34,7 +33,7 @@ if (!instanceId) {
|
|
|
34
33
|
)
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
const mappedId = computed(() => props.id ?? `magic-accordion-view-${
|
|
36
|
+
const mappedId = computed(() => props.id ?? `magic-accordion-view-${useId()}`)
|
|
38
37
|
|
|
39
38
|
// Register view
|
|
40
39
|
const { initializeView, deleteView } = useAccordionView(instanceId)
|
|
@@ -4,24 +4,20 @@ interface MagicAccordionViewProps {
|
|
|
4
4
|
activeOnMounted?: boolean;
|
|
5
5
|
}
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
attrs: Partial<{}>;
|
|
10
14
|
};
|
|
11
|
-
|
|
12
|
-
declare const
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicAccordionViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicAccordionViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
18
|
export default _default;
|
|
14
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
20
|
new (): {
|
|
16
21
|
$slots: S;
|
|
17
22
|
};
|
|
18
23
|
};
|
|
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
|
-
};
|
|
@@ -3,5 +3,5 @@ import type { AccordionState, MagicAccordionOptions } from '../../types/index.js
|
|
|
3
3
|
export declare function useAccordionState(instanceId: MaybeRef<string>): {
|
|
4
4
|
initializeState: (options?: MagicAccordionOptions) => AccordionState;
|
|
5
5
|
deleteState: () => void;
|
|
6
|
-
accordionStateStore: Ref<AccordionState[]>;
|
|
6
|
+
accordionStateStore: Ref<AccordionState[], AccordionState[]>;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MaybeRef, type Ref } from 'vue';
|
|
2
2
|
import { Primitive } from '@maas/vue-primitive';
|
|
3
|
-
import type { Interaction } from '../../types.js';
|
|
3
|
+
import type { Interaction } from '../../types/index.js';
|
|
4
4
|
interface UseAccordionTriggerArgs {
|
|
5
5
|
instanceId: MaybeRef<string>;
|
|
6
6
|
viewId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MaybeRef } from 'vue';
|
|
2
|
-
import { type AccordionView } from '../../types.js';
|
|
2
|
+
import { type AccordionView } from '../../types/index.js';
|
|
3
3
|
type InitializeViewArgs = Pick<AccordionView, 'id' | 'active'>;
|
|
4
4
|
export declare function useAccordionView(instanceId: MaybeRef<string>): {
|
|
5
5
|
initializeView: (args: InitializeViewArgs) => AccordionView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MagicAccordionOptions } from '../types.js';
|
|
1
|
+
import type { MagicAccordionOptions } from '../types/index.js';
|
|
2
2
|
import type { RequireAllNested } from '@maas/vue-equipment/utils';
|
|
3
3
|
declare const defaultOptions: RequireAllNested<MagicAccordionOptions>;
|
|
4
4
|
export { defaultOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
1
|
+
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -5,42 +5,24 @@ interface MagicAutoSizeProps {
|
|
|
5
5
|
immediate?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
-
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
elRef: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
attrs: Partial<{}>;
|
|
9
15
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
height: boolean;
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicAutoSizeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicAutoSizeProps> & Readonly<{}>, {
|
|
13
18
|
immediate: boolean;
|
|
14
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicAutoSizeProps>, {
|
|
15
19
|
width: boolean;
|
|
16
20
|
height: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
immediate: boolean;
|
|
20
|
-
width: boolean;
|
|
21
|
-
height: boolean;
|
|
22
|
-
}, {}>;
|
|
23
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
23
|
export default _default;
|
|
25
|
-
type __VLS_WithDefaults<P, D> = {
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_Prettify<T> = {
|
|
31
|
-
[K in keyof T]: T[K];
|
|
32
|
-
} & {};
|
|
33
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
25
|
new (): {
|
|
35
26
|
$slots: S;
|
|
36
27
|
};
|
|
37
28
|
};
|
|
38
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
-
type __VLS_TypePropsToOption<T> = {
|
|
40
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
-
} : {
|
|
43
|
-
type: import('vue').PropType<T[K]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions>;
|
|
1
|
+
declare const _default: import("@nuxt/schema").NuxtModule<import("@nuxt/schema").ModuleOptions, import("@nuxt/schema").ModuleOptions, false>;
|
|
2
2
|
export default _default;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {
|
|
6
|
+
elRef: HTMLDivElement;
|
|
7
|
+
};
|
|
8
|
+
attrs: Partial<{}>;
|
|
3
9
|
};
|
|
4
|
-
|
|
5
|
-
declare const
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
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>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
6
13
|
export default _default;
|
|
7
14
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
15
|
new (): {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
|
-
import { inject, watch, onBeforeUnmount
|
|
13
|
+
import { inject, watch, onBeforeUnmount } from 'vue'
|
|
14
14
|
import { useMagicEmitter } from '@maas/vue-equipment/plugins'
|
|
15
15
|
import { useMagicDrawer } from '../../../MagicDrawer'
|
|
16
16
|
import { useMagicCommand } from '../composables/useMagicCommand'
|
|
@@ -26,7 +26,7 @@ interface MagicCommandProps {
|
|
|
26
26
|
options?: MagicCommandDrawerOptions
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
defineProps<MagicCommandProps>()
|
|
30
30
|
|
|
31
31
|
const commandId = inject(MagicCommandInstanceId, '')
|
|
32
32
|
const emitter = useMagicEmitter()
|
|
@@ -3,22 +3,18 @@ interface MagicCommandProps {
|
|
|
3
3
|
options?: MagicCommandDrawerOptions;
|
|
4
4
|
}
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
|
-
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
attrs: Partial<{}>;
|
|
7
11
|
};
|
|
8
|
-
|
|
9
|
-
declare const
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
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>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
10
15
|
export default _default;
|
|
11
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
17
|
new (): {
|
|
13
18
|
$slots: S;
|
|
14
19
|
};
|
|
15
20
|
};
|
|
16
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
-
type __VLS_TypePropsToOption<T> = {
|
|
18
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
-
} : {
|
|
21
|
-
type: import('vue').PropType<T[K]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
3
7
|
};
|
|
4
|
-
|
|
5
|
-
declare const
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
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>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
6
11
|
export default _default;
|
|
7
12
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
13
|
new (): {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
3
7
|
};
|
|
4
|
-
|
|
5
|
-
declare const
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
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>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
6
11
|
export default _default;
|
|
7
12
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
13
|
new (): {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
3
7
|
};
|
|
4
|
-
|
|
5
|
-
declare const
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
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>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
6
11
|
export default _default;
|
|
7
12
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
13
|
new (): {
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
nextTick,
|
|
19
19
|
onMounted,
|
|
20
20
|
onUnmounted,
|
|
21
|
+
useId,
|
|
21
22
|
} from 'vue'
|
|
22
|
-
import { uuid } from '@maas/vue-equipment/utils'
|
|
23
23
|
import { useEventListener, onKeyStroke } from '@vueuse/core'
|
|
24
24
|
import { useCommandStore } from '../composables/private/useCommandStore'
|
|
25
25
|
import { useCommandItem } from '../composables/private/useCommandItem'
|
|
@@ -43,7 +43,7 @@ const commandId = inject(MagicCommandInstanceId, '')
|
|
|
43
43
|
const { selectItem, activeItem } = useCommandItem(commandId)
|
|
44
44
|
|
|
45
45
|
const mappedId = computed(() => {
|
|
46
|
-
return props.id ??
|
|
46
|
+
return props.id ?? useId() ?? ''
|
|
47
47
|
})
|
|
48
48
|
|
|
49
49
|
const isActive = computed(() => {
|
|
@@ -6,41 +6,25 @@ interface MagicCommandItemProps {
|
|
|
6
6
|
keys?: string[];
|
|
7
7
|
}
|
|
8
8
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
elRef: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
attrs: Partial<{}>;
|
|
12
18
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
keys: () => string[];
|
|
16
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MagicCommandItemProps>, {
|
|
17
|
-
listener: () => string[];
|
|
18
|
-
keys: () => string[];
|
|
19
|
-
}>>>, {
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<MagicCommandItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MagicCommandItemProps> & Readonly<{}>, {
|
|
20
21
|
keys: string[];
|
|
21
22
|
listener: ("click" | "mouseenter" | "touchstart")[];
|
|
22
|
-
}, {}>;
|
|
23
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
25
|
export default _default;
|
|
25
|
-
type __VLS_WithDefaults<P, D> = {
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_Prettify<T> = {
|
|
31
|
-
[K in keyof T]: T[K];
|
|
32
|
-
} & {};
|
|
33
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
27
|
new (): {
|
|
35
28
|
$slots: S;
|
|
36
29
|
};
|
|
37
30
|
};
|
|
38
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
39
|
-
type __VLS_TypePropsToOption<T> = {
|
|
40
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
41
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
-
} : {
|
|
43
|
-
type: import('vue').PropType<T[K]>;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
};
|