@tresjs/leches 0.15.0-next.3 → 1.0.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 (31) hide show
  1. package/dist/components/BooleanControl.vue.d.ts +7 -18
  2. package/dist/components/ButtonControl.vue.d.ts +5 -16
  3. package/dist/components/ColorControl.vue.d.ts +7 -18
  4. package/dist/components/ControlInput.vue.d.ts +7 -17
  5. package/dist/components/ControlLabel.vue.d.ts +5 -16
  6. package/dist/components/FPSGraph.vue.d.ts +7 -16
  7. package/dist/components/Folder.vue.d.ts +9 -16
  8. package/dist/components/GraphControl.vue.d.ts +9 -0
  9. package/dist/components/NumberControl.vue.d.ts +7 -18
  10. package/dist/components/SelectControl.vue.d.ts +7 -18
  11. package/dist/components/SliderControl.vue.d.ts +7 -18
  12. package/dist/components/TextControl.vue.d.ts +7 -18
  13. package/dist/components/TresLeches.vue.d.ts +38 -12
  14. package/dist/components/VectorControl.vue.d.ts +7 -18
  15. package/dist/composables/useControls.d.ts +8 -10
  16. package/dist/composables/useDraggable/component.d.ts +3 -3
  17. package/dist/composables/useDraggable/index.d.ts +21 -6
  18. package/dist/index.d.ts +2 -4
  19. package/dist/tresleches.js +2667 -829
  20. package/dist/types/index.d.ts +77 -0
  21. package/dist/utils/index.d.ts +1 -2
  22. package/package.json +61 -64
  23. package/dist/components/Graph.vue.d.ts +0 -21
  24. package/dist/components/Perf.vue.d.ts +0 -2
  25. package/dist/components/performance-monitor/Pane.vue.d.ts +0 -22
  26. package/dist/components/performance-monitor/Tree.vue.d.ts +0 -42
  27. package/dist/components/performance-monitor/index.vue.d.ts +0 -21
  28. package/dist/composables/usePerf.d.ts +0 -37
  29. package/dist/style.css +0 -8
  30. package/dist/tresleches.umd.cjs +0 -8
  31. package/dist/utils/perf.d.ts +0 -6
@@ -1,22 +1,11 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesBooleanControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ control: LechesBooleanControl;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  change: (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- label: string;
9
- control: Control;
10
- }>>> & {
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  onChange?: ((...args: any[]) => any) | undefined;
12
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
11
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,18 +1,7 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesButtonControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- label: string;
7
- control: Control;
8
- }>>>, {}, {}>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('vue').PropType<T[K]>;
16
- required: true;
17
- };
4
+ control: LechesButtonControl;
18
5
  };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
7
+ export default _default;
@@ -1,22 +1,11 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ control: LechesControl;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  change: (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- label: string;
9
- control: Control;
10
- }>>> & {
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  onChange?: ((...args: any[]) => any) | undefined;
12
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
11
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,20 +1,10 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- control: Control;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import { LechesControlUnion } from '../types';
2
+ type __VLS_Props = {
3
+ control: LechesControlUnion;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
6
  change: (...args: any[]) => void;
6
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
- control: Control;
8
- }>>> & {
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
8
  onChange?: ((...args: any[]) => any) | undefined;
10
- }, {}, {}>;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
10
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToRuntimeProps<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,18 +1,7 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- label: string;
7
- control: Control;
8
- }>>>, {}, {}>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('vue').PropType<T[K]>;
16
- required: true;
17
- };
4
+ control: LechesControl;
18
5
  };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
7
+ export default _default;
@@ -1,18 +1,9 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- label: string;
7
- control: Control;
8
- }>>>, {}, {}>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('vue').PropType<T[K]>;
16
- required: true;
17
- };
4
+ control: LechesControl;
18
5
  };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
7
+ containerRef: HTMLDivElement;
8
+ }, HTMLDivElement>;
9
+ export default _default;
@@ -1,18 +1,11 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- controls: Control[];
1
+ import { LechesControlUnion } from '../types';
2
+ type __VLS_Props = {
3
+ controls: LechesControlUnion[];
4
4
  label: string | number;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- controls: Control[];
7
- label: string | number;
8
- }>>>, {}, {}>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('vue').PropType<T[K]>;
16
- required: true;
17
- };
18
5
  };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ open: (...args: any[]) => void;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onOpen?: ((...args: any[]) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { LechesGraphControl } from '../types';
2
+ type __VLS_Props = {
3
+ label: string;
4
+ control: LechesGraphControl;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
7
+ containerRef: HTMLDivElement;
8
+ }, HTMLDivElement>;
9
+ export default _default;
@@ -1,22 +1,11 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesNumberControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ control: LechesNumberControl;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  change: (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- label: string;
9
- control: Control;
10
- }>>> & {
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  onChange?: ((...args: any[]) => any) | undefined;
12
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
11
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,22 +1,11 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ control: LechesControl;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  change: (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- label: string;
9
- control: Control;
10
- }>>> & {
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  onChange?: ((...args: any[]) => any) | undefined;
12
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
11
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,22 +1,11 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesNumberControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ control: LechesNumberControl;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  change: (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- label: string;
9
- control: Control;
10
- }>>> & {
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  onChange?: ((...args: any[]) => any) | undefined;
12
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
11
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,22 +1,11 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ control: LechesControl;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  change: (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- label: string;
9
- control: Control;
10
- }>>> & {
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  onChange?: ((...args: any[]) => any) | undefined;
12
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
11
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,15 +1,41 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- uuid?: string | undefined;
3
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
- uuid?: string | undefined;
5
- }>>>, {}, {}>;
1
+ import { LechesControlUnion } from '../types';
2
+ type __VLS_Props = {
3
+ uuid?: string;
4
+ collapsed?: boolean;
5
+ float?: boolean;
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: Readonly<{
10
+ default: () => any;
11
+ }> & {
12
+ default: () => any;
13
+ };
14
+ refs: {
15
+ paneRef: HTMLDivElement;
16
+ handleRef: HTMLDivElement;
17
+ scrollContainer: HTMLDivElement;
18
+ slotsRef: HTMLDivElement;
19
+ };
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
24
+ [x: string]: LechesControlUnion;
25
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
+ uuid: string;
27
+ collapsed: boolean;
28
+ float: boolean;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
30
+ paneRef: HTMLDivElement;
31
+ handleRef: HTMLDivElement;
32
+ scrollContainer: HTMLDivElement;
33
+ slotsRef: HTMLDivElement;
34
+ }, HTMLDivElement>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
6
36
  export default _default;
7
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
- type __VLS_TypePropsToRuntimeProps<T> = {
9
- [K in keyof T]-?: {} extends Pick<T, K> ? {
10
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
- } : {
12
- type: import('vue').PropType<T[K]>;
13
- required: true;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
14
40
  };
15
41
  };
@@ -1,22 +1,11 @@
1
- import type { Control } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { LechesVectorControl } from '../types';
2
+ type __VLS_Props = {
3
3
  label: string;
4
- control: Control;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ control: LechesVectorControl;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
7
  change: (...args: any[]) => void;
7
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- label: string;
9
- control: Control;
10
- }>>> & {
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  onChange?: ((...args: any[]) => any) | undefined;
12
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
11
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,18 +1,16 @@
1
- import type { ToRefs } from 'vue';
2
- import type { Control } from '../types';
1
+ import { Ref } from 'vue';
2
+ import { LechesControlUnion } from '../types';
3
3
  export declare const CONTROLS_CONTEXT_KEY: unique symbol;
4
- export declare function useControlsProvider(uuid?: string): {
5
- [key: string]: Control;
6
- };
4
+ export declare function useControlsProvider(uuid?: string): Record<string, LechesControlUnion>;
7
5
  export declare const dispose: (uuid?: string) => void;
8
6
  export declare const useControls: (folderNameOrParams: string | {
9
7
  [key: string]: any;
10
8
  }, paramsOrOptions?: {
11
9
  [key: string]: any;
12
10
  } | {
13
- uuid?: string | undefined;
14
- } | undefined, options?: {
15
11
  uuid?: string;
16
- }) => Control | ToRefs<{
17
- [key: string]: Control;
18
- }>;
12
+ }, options?: {
13
+ uuid?: string;
14
+ }) => {
15
+ [key: string]: Ref<any>;
16
+ };
@@ -1,5 +1,5 @@
1
- import type { UseDraggableOptions } from '@vueuse/core';
2
- import type { RenderableComponent } from '.';
1
+ import { UseDraggableOptions } from '@vueuse/core';
2
+ import { RenderableComponent } from '.';
3
3
  export interface UseDraggableProps extends UseDraggableOptions, RenderableComponent {
4
4
  /**
5
5
  * When provided, use `useStorage` to preserve element's position
@@ -12,4 +12,4 @@ export interface UseDraggableProps extends UseDraggableOptions, RenderableCompon
12
12
  */
13
13
  storageType?: 'local' | 'session';
14
14
  }
15
- export declare const UseDraggable: import("vue").DefineComponent<UseDraggableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<UseDraggableProps>, {}, {}>;
15
+ export declare const UseDraggable: import('vue').DefineComponent<UseDraggableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UseDraggableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,4 @@
1
- import type { MaybeRefOrGetter } from '@vueuse/shared';
1
+ import { MaybeRefOrGetter } from '@vueuse/shared';
2
2
  export declare const defaultWindow: (Window & typeof globalThis) | undefined;
3
3
  export interface Position {
4
4
  x: number;
@@ -89,13 +89,28 @@ export interface UseDraggableOptions {
89
89
  * @param options
90
90
  */
91
91
  export declare function useDraggable(target: MaybeRefOrGetter<HTMLElement | SVGElement | null | undefined>, options?: UseDraggableOptions): {
92
- position: import("vue").Ref<{
92
+ position: import('vue').Ref<{
93
+ x: number;
94
+ y: number;
95
+ }, Position | {
96
+ x: number;
97
+ y: number;
98
+ }>;
99
+ isDragging: import('vue').ComputedRef<boolean>;
100
+ style: import('vue').ComputedRef<string>;
101
+ x: import('vue').Ref<number, number>;
102
+ y: import('vue').Ref<number, number>;
103
+ } | {
104
+ position: import('vue').Ref<{
105
+ x: number;
106
+ y: number;
107
+ }, Position | {
93
108
  x: number;
94
109
  y: number;
95
110
  }>;
96
- isDragging: import("vue").ComputedRef<boolean>;
97
- style: import("vue").ComputedRef<string>;
98
- x: import("vue").Ref<number>;
99
- y: import("vue").Ref<number>;
111
+ isDragging: import('vue').ComputedRef<boolean>;
112
+ style: import('vue').ComputedRef<string>;
113
+ x: import('vue').Ref<number, number>;
114
+ y: import('vue').Ref<number, number>;
100
115
  };
101
116
  export type UseDraggableReturn = ReturnType<typeof useDraggable>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import TresLeches from './components/TresLeches.vue';
2
- import Perf from './components/Perf.vue';
1
+ import { default as TresLeches } from './components/TresLeches.vue';
3
2
  import { useControls, useControlsProvider } from './composables/useControls';
4
- import { usePerf } from './composables/usePerf';
5
- export { TresLeches, useControls, useControlsProvider, usePerf, Perf };
3
+ export { TresLeches, useControls, useControlsProvider };