@maas/vue-equipment 0.21.6 → 0.22.1
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/dist/nuxt/module.json +1 -1
- package/dist/nuxt/module.mjs +7 -0
- package/dist/plugins/MagicCommand/demo/DefaultView.vue +57 -0
- package/dist/plugins/MagicCommand/demo/DefaultView.vue.d.ts +2 -0
- package/dist/plugins/MagicCommand/demo/DemoItem.vue +18 -0
- package/dist/plugins/MagicCommand/demo/DemoItem.vue.d.ts +21 -0
- package/dist/plugins/MagicCommand/demo/ProjectView.vue +55 -0
- package/dist/plugins/MagicCommand/demo/ProjectView.vue.d.ts +2 -0
- package/dist/plugins/MagicCommand/index.d.ts +8 -0
- package/dist/plugins/MagicCommand/index.mjs +28 -0
- package/dist/plugins/MagicCommand/nuxt.d.ts +0 -0
- package/dist/plugins/MagicCommand/nuxt.mjs +27 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommand.vue +180 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommand.vue.d.ts +43 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue +86 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue.d.ts +9 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue +5 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue.d.ts +9 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue +5 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue.d.ts +9 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue +5 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue.d.ts +9 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +91 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +44 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +49 -0
- package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +36 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.d.ts +22 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.mjs +61 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.d.ts +9 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.mjs +54 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.d.ts +7 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.mjs +44 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.d.ts +20 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.mjs +48 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.d.ts +6 -0
- package/dist/plugins/MagicCommand/src/composables/private/useCommandView.mjs +25 -0
- package/dist/plugins/MagicCommand/src/composables/useCommandApi.d.ts +21 -0
- package/dist/plugins/MagicCommand/src/composables/useCommandApi.mjs +85 -0
- package/dist/plugins/MagicCommand/src/composables/useCommandEmitter.d.ts +15 -0
- package/dist/plugins/MagicCommand/src/composables/useCommandEmitter.mjs +9 -0
- package/dist/plugins/MagicCommand/src/symbols/index.d.ts +5 -0
- package/dist/plugins/MagicCommand/src/symbols/index.mjs +3 -0
- package/dist/plugins/MagicCommand/src/types/index.d.ts +30 -0
- package/dist/plugins/MagicCommand/src/types/index.mjs +0 -0
- package/dist/plugins/MagicCommand/src/utils/defaultOptions.d.ts +5 -0
- package/dist/plugins/MagicCommand/src/utils/defaultOptions.mjs +23 -0
- package/dist/plugins/MagicDrawer/src/composables/useDrawerApi.mjs +3 -1
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue +2 -2
- package/dist/plugins/MagicScroll/src/components/MagicScrollMotion.vue.d.ts +2 -2
- package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.mjs +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type CommandOptions = {
|
|
2
|
+
backdrop?: boolean;
|
|
3
|
+
focusTrap?: boolean;
|
|
4
|
+
scrollLock?: boolean;
|
|
5
|
+
scrollLockPadding?: boolean;
|
|
6
|
+
teleport?: {
|
|
7
|
+
target?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
transitions?: {
|
|
11
|
+
content?: string;
|
|
12
|
+
backdrop?: string;
|
|
13
|
+
};
|
|
14
|
+
tag?: 'dialog' | 'div';
|
|
15
|
+
keys?: {
|
|
16
|
+
open?: string[] | false;
|
|
17
|
+
close?: string[] | false;
|
|
18
|
+
next?: string[] | false;
|
|
19
|
+
prev?: string[] | false;
|
|
20
|
+
};
|
|
21
|
+
loop?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type CommandEvents = {
|
|
24
|
+
beforeEnter: string;
|
|
25
|
+
enter: string;
|
|
26
|
+
afterEnter: string;
|
|
27
|
+
beforeLeave: string;
|
|
28
|
+
leave: string;
|
|
29
|
+
afterLeave: string;
|
|
30
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CommandOptions } from '../types.js';
|
|
2
|
+
import type { RequireAllNested } from '@maas/vue-equipment/utils';
|
|
3
|
+
declare const defaultOptions: RequireAllNested<CommandOptions>;
|
|
4
|
+
type DefaultOptions = typeof defaultOptions;
|
|
5
|
+
export { defaultOptions, type DefaultOptions };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const defaultOptions = {
|
|
2
|
+
backdrop: true,
|
|
3
|
+
focusTrap: true,
|
|
4
|
+
scrollLock: true,
|
|
5
|
+
scrollLockPadding: true,
|
|
6
|
+
teleport: {
|
|
7
|
+
target: "body",
|
|
8
|
+
disabled: false
|
|
9
|
+
},
|
|
10
|
+
transitions: {
|
|
11
|
+
content: "magic-command--content",
|
|
12
|
+
backdrop: "magic-command--backdrop"
|
|
13
|
+
},
|
|
14
|
+
tag: "dialog",
|
|
15
|
+
keys: {
|
|
16
|
+
open: ["Cmd+k"],
|
|
17
|
+
close: ["Escape"],
|
|
18
|
+
next: ["ArrowDown"],
|
|
19
|
+
prev: ["ArrowUp"]
|
|
20
|
+
},
|
|
21
|
+
loop: false
|
|
22
|
+
};
|
|
23
|
+
export { defaultOptions };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ref, computed, toValue } from "vue";
|
|
2
2
|
import { defu } from "defu";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
useScrollLock
|
|
5
|
+
} from "@vueuse/core";
|
|
4
6
|
import { useFocusTrap } from "@vueuse/integrations/useFocusTrap";
|
|
5
7
|
import { uuid, matchClass } from "@maas/vue-equipment/utils";
|
|
6
8
|
import { useDrawerStore } from "./private/useDrawerStore.mjs";
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
import { ScrollProgressKey } from '../symbols'
|
|
17
17
|
|
|
18
18
|
interface Props {
|
|
19
|
-
keyframes
|
|
20
|
-
offset?: number[]
|
|
19
|
+
keyframes?: MotionKeyframesDefinition
|
|
20
|
+
offset?: number[]
|
|
21
21
|
easing?: Easing
|
|
22
22
|
progress?: number
|
|
23
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type MotionKeyframesDefinition, type Easing } from 'motion';
|
|
2
2
|
interface Props {
|
|
3
|
-
keyframes
|
|
4
|
-
offset?: number[]
|
|
3
|
+
keyframes?: MotionKeyframesDefinition;
|
|
4
|
+
offset?: number[];
|
|
5
5
|
easing?: Easing;
|
|
6
6
|
progress?: number;
|
|
7
7
|
}
|
|
@@ -27,12 +27,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
27
|
translateX: number;
|
|
28
28
|
translateY: number;
|
|
29
29
|
}>>>, {
|
|
30
|
+
as: string;
|
|
30
31
|
scale: number;
|
|
31
32
|
scaleX: number;
|
|
32
33
|
scaleY: number;
|
|
33
34
|
skewX: number;
|
|
34
35
|
skewY: number;
|
|
35
|
-
as: string;
|
|
36
36
|
translateX: number;
|
|
37
37
|
translateY: number;
|
|
38
38
|
}, {}>, {
|
package/dist/plugins/index.d.ts
CHANGED
package/dist/plugins/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maas/vue-equipment",
|
|
3
3
|
"description": "A magic collection of Vue composables, plugins, components and directives",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.22.1",
|
|
5
5
|
"author": "Robin Scholz <https://github.com/robinscholz>, Christoph Jeworutzki <https://github.com/ChristophJeworutzki>",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@antfu/ni": "^0.21.12",
|