@maas/vue-equipment 0.21.6 → 0.22.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.
Files changed (53) hide show
  1. package/dist/nuxt/module.json +1 -1
  2. package/dist/nuxt/module.mjs +7 -0
  3. package/dist/plugins/MagicCommand/demo/DefaultView.vue +57 -0
  4. package/dist/plugins/MagicCommand/demo/DefaultView.vue.d.ts +2 -0
  5. package/dist/plugins/MagicCommand/demo/DemoItem.vue +18 -0
  6. package/dist/plugins/MagicCommand/demo/DemoItem.vue.d.ts +21 -0
  7. package/dist/plugins/MagicCommand/demo/ProjectView.vue +55 -0
  8. package/dist/plugins/MagicCommand/demo/ProjectView.vue.d.ts +2 -0
  9. package/dist/plugins/MagicCommand/index.d.ts +8 -0
  10. package/dist/plugins/MagicCommand/index.mjs +30 -0
  11. package/dist/plugins/MagicCommand/nuxt.d.ts +0 -0
  12. package/dist/plugins/MagicCommand/nuxt.mjs +27 -0
  13. package/dist/plugins/MagicCommand/src/components/MagicCommand.vue +180 -0
  14. package/dist/plugins/MagicCommand/src/components/MagicCommand.vue.d.ts +43 -0
  15. package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue +86 -0
  16. package/dist/plugins/MagicCommand/src/components/MagicCommandBody.vue.d.ts +9 -0
  17. package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue +5 -0
  18. package/dist/plugins/MagicCommand/src/components/MagicCommandFooter.vue.d.ts +9 -0
  19. package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue +5 -0
  20. package/dist/plugins/MagicCommand/src/components/MagicCommandGroup.vue.d.ts +9 -0
  21. package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue +5 -0
  22. package/dist/plugins/MagicCommand/src/components/MagicCommandHead.vue.d.ts +9 -0
  23. package/dist/plugins/MagicCommand/src/components/MagicCommandInput.vue +12 -0
  24. package/dist/plugins/MagicCommand/src/components/MagicCommandInput.vue.d.ts +9 -0
  25. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue +92 -0
  26. package/dist/plugins/MagicCommand/src/components/MagicCommandItem.vue.d.ts +44 -0
  27. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue +56 -0
  28. package/dist/plugins/MagicCommand/src/components/MagicCommandView.vue.d.ts +36 -0
  29. package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.d.ts +22 -0
  30. package/dist/plugins/MagicCommand/src/composables/private/useCommandCallback.mjs +61 -0
  31. package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.d.ts +9 -0
  32. package/dist/plugins/MagicCommand/src/composables/private/useCommandItem.mjs +54 -0
  33. package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.d.ts +7 -0
  34. package/dist/plugins/MagicCommand/src/composables/private/useCommandScroll.mjs +44 -0
  35. package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.d.ts +20 -0
  36. package/dist/plugins/MagicCommand/src/composables/private/useCommandStore.mjs +48 -0
  37. package/dist/plugins/MagicCommand/src/composables/private/useCommandView.d.ts +6 -0
  38. package/dist/plugins/MagicCommand/src/composables/private/useCommandView.mjs +25 -0
  39. package/dist/plugins/MagicCommand/src/composables/useCommandApi.d.ts +21 -0
  40. package/dist/plugins/MagicCommand/src/composables/useCommandApi.mjs +85 -0
  41. package/dist/plugins/MagicCommand/src/composables/useCommandEmitter.d.ts +15 -0
  42. package/dist/plugins/MagicCommand/src/composables/useCommandEmitter.mjs +9 -0
  43. package/dist/plugins/MagicCommand/src/symbols/index.d.ts +5 -0
  44. package/dist/plugins/MagicCommand/src/symbols/index.mjs +3 -0
  45. package/dist/plugins/MagicCommand/src/types/index.d.ts +30 -0
  46. package/dist/plugins/MagicCommand/src/types/index.mjs +0 -0
  47. package/dist/plugins/MagicCommand/src/utils/defaultOptions.d.ts +5 -0
  48. package/dist/plugins/MagicCommand/src/utils/defaultOptions.mjs +23 -0
  49. package/dist/plugins/MagicDrawer/src/composables/useDrawerApi.mjs +3 -1
  50. package/dist/plugins/MagicScroll/src/components/MagicScrollTransform.vue.d.ts +1 -1
  51. package/dist/plugins/index.d.ts +1 -0
  52. package/dist/plugins/index.mjs +1 -0
  53. 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: false,
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 { useScrollLock } from "@vueuse/core";
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";
@@ -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
  }, {}>, {
@@ -1,3 +1,4 @@
1
+ export * from './MagicCommand/index.js';
1
2
  export * from './MagicCookie/index.js';
2
3
  export * from './MagicDrawer/index.js';
3
4
  export * from './MagicMarquee/index.js';
@@ -1,3 +1,4 @@
1
+ export * from "./MagicCommand/index.mjs";
1
2
  export * from "./MagicCookie/index.mjs";
2
3
  export * from "./MagicDrawer/index.mjs";
3
4
  export * from "./MagicMarquee/index.mjs";
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.21.6",
4
+ "version": "0.22.0",
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",