@adyen/bento-vue2 0.0.3 → 0.0.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.
- package/dist/@types/components/button/button.vue.d.ts +4 -1
- package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +1 -1
- package/dist/@types/components/click-outside/click-outside.d.ts +13 -0
- package/dist/@types/components/click-outside/index.d.ts +1 -0
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -1
- package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +2 -2
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
- package/dist/@types/components/popover/components/popover-title/popover-title.vue.d.ts +28 -0
- package/dist/@types/components/popover/popover.vue.d.ts +2 -5
- package/dist/@types/components/popper-container/popper-container.utils.d.ts +1 -1
- package/dist/@types/components/popper-container/popper-container.vue.d.ts +10 -1
- package/dist/@types/components/tooltip/components/tooltip-container.vue.d.ts +70 -0
- package/dist/@types/components/tooltip/index.d.ts +1 -1
- package/dist/@types/components/tooltip/tooltip.vue.d.ts +8 -31
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/directives/click-outside/directive.d.ts +6 -0
- package/dist/@types/directives/click-outside/index.d.ts +1 -0
- package/dist/@types/directives/click-outside/on-click-outside.d.ts +3 -0
- package/dist/@types/directives/click-outside/types.d.ts +8 -0
- package/dist/@types/directives/click-outside/useEventListener/index.d.ts +7 -0
- package/dist/@types/directives/click-outside/useEventListener/types.d.ts +6 -0
- package/dist/@types/directives/click-outside/utils.d.ts +6 -0
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/types/elements.d.ts +8 -0
- package/dist/@types/types/functions.d.ts +2 -0
- package/dist/@types/types/index.d.ts +3 -0
- package/dist/@types/types/refs.d.ts +4 -0
- package/dist/@types/types/utils-events.d.ts +3 -0
- package/dist/index.js +1240 -1057
- package/dist/index.js.map +1 -1
- package/dist/web-types.json +145 -34
- package/package.json +3 -3
- package/dist/@types/types/vue-node-element.d.ts +0 -2
|
@@ -31,7 +31,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
[x: string]: boolean;
|
|
32
32
|
}>;
|
|
33
33
|
onClickButton: () => void;
|
|
34
|
-
|
|
34
|
+
onFocusButton: () => void;
|
|
35
|
+
onBlurButton: () => void;
|
|
36
|
+
onKeydownEscButton: () => void;
|
|
37
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("blur" | "click" | "focus" | "keydown.esc")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
35
38
|
disabled: {
|
|
36
39
|
type: BooleanConstructor;
|
|
37
40
|
default: boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const BentoClickOutside: import("vue").DefineComponent<{
|
|
2
|
+
el: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, () => import("vue").VNode, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "handler"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
el: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
el: string;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './click-outside';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MaybeRef } from '../../../../types
|
|
1
|
+
import { MaybeRef } from '../../../../types';
|
|
2
2
|
import { BentoColumn } from '../../data-grid.types';
|
|
3
3
|
import { CalculateColumnWidthOptions } from './useCalculateColumnWidth.types';
|
|
4
4
|
export declare const DEFAULT_COLUMN_WIDTH = 100;
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
default: any;
|
|
27
27
|
};
|
|
28
28
|
targetElement: {
|
|
29
|
-
type: PropType<import("
|
|
29
|
+
type: PropType<import("../../../..").VueNodeElement>;
|
|
30
30
|
required: true;
|
|
31
31
|
};
|
|
32
32
|
}, {
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
default: any;
|
|
76
76
|
};
|
|
77
77
|
targetElement: {
|
|
78
|
-
type: PropType<import("
|
|
78
|
+
type: PropType<import("../../../..").VueNodeElement>;
|
|
79
79
|
required: true;
|
|
80
80
|
};
|
|
81
81
|
}>>, {
|
|
@@ -26,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
displayValue: import("vue").ComputedRef<string>;
|
|
27
27
|
dropdownOptionsContainerId: string;
|
|
28
28
|
inputContainerRef: any;
|
|
29
|
+
closeOpenedDropdown: () => void;
|
|
29
30
|
toggleDropdown: () => void;
|
|
30
31
|
onOptionSelected: (selectedOption: AdlDropdownOptionItem) => void;
|
|
31
32
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -59,6 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
onClickDismissFilter: () => void;
|
|
60
60
|
onClickApply: () => void;
|
|
61
61
|
onClickClear: () => void;
|
|
62
|
+
onClickOutside: () => void;
|
|
62
63
|
filterButtonRef: any;
|
|
63
64
|
BentoButtonVariant: typeof BentoButtonVariant;
|
|
64
65
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("open" | "close" | "clear" | "dismiss" | "apply")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
isImageTitle: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
isStrongest: import("vue").ComputedRef<boolean>;
|
|
13
|
+
titleVariant: import("vue").ComputedRef<BentoTypographyVariant.BODY | BentoTypographyVariant.SUBTITLE>;
|
|
14
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
15
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
isImageTitle: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
title: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
}>>, {
|
|
25
|
+
title: string;
|
|
26
|
+
isImageTitle: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { PopperContainerAriaRole } from '@/components/popper-container';
|
|
3
3
|
import { BentoPopoverPositions } from './popover.types';
|
|
4
|
-
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
5
4
|
import { BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';
|
|
6
5
|
declare const _default: import("vue").DefineComponent<{
|
|
7
6
|
actions: {
|
|
@@ -51,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
50
|
default: any;
|
|
52
51
|
};
|
|
53
52
|
targetElement: {
|
|
54
|
-
type: PropType<import("
|
|
53
|
+
type: PropType<import("../..").VueNodeElement>;
|
|
55
54
|
required: true;
|
|
56
55
|
};
|
|
57
56
|
}, {
|
|
@@ -63,8 +62,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
62
|
'b-popover__content--with-title': boolean;
|
|
64
63
|
}>;
|
|
65
64
|
computedAriaLabel: import("vue").ComputedRef<string>;
|
|
66
|
-
BentoTypographyElement: typeof BentoTypographyElement;
|
|
67
|
-
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
68
65
|
PopperContainerAriaRole: typeof PopperContainerAriaRole;
|
|
69
66
|
dismissPopover: () => void;
|
|
70
67
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "dismiss"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -115,7 +112,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
112
|
default: any;
|
|
116
113
|
};
|
|
117
114
|
targetElement: {
|
|
118
|
-
type: PropType<import("
|
|
115
|
+
type: PropType<import("../..").VueNodeElement>;
|
|
119
116
|
required: true;
|
|
120
117
|
};
|
|
121
118
|
}>>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VueNodeElement } from '../../types
|
|
1
|
+
import type { VueNodeElement } from '../../types';
|
|
2
2
|
import { ExtendedModifiers, FallbackPositionProp, PopperContainerArrowProp } from './popper-container.types';
|
|
3
3
|
export declare const getArrowModifier: (arrow: VueNodeElement, arrowProps: PopperContainerArrowProp) => {
|
|
4
4
|
name: string;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { PositioningStrategy } from '@popperjs/core';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
import { ExtendedModifiers, FallbackPositionProp, PopperContainerAriaRole, PopperContainerArrowProp, PopperContainerPosition } from './popper-container.types';
|
|
4
|
-
import { VueNodeElement } from '@/types
|
|
4
|
+
import type { VueNodeElement } from '@/types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
id: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
6
10
|
ariaLabel: {
|
|
7
11
|
type: StringConstructor;
|
|
8
12
|
default: any;
|
|
@@ -59,6 +63,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
63
|
updatePopperOptions(options: any): void;
|
|
60
64
|
updateModifiers(): void;
|
|
61
65
|
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
id: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: any;
|
|
69
|
+
};
|
|
62
70
|
ariaLabel: {
|
|
63
71
|
type: StringConstructor;
|
|
64
72
|
default: any;
|
|
@@ -104,6 +112,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
112
|
};
|
|
105
113
|
}>>, {
|
|
106
114
|
offset: number[];
|
|
115
|
+
id: string;
|
|
107
116
|
position: PopperContainerPosition;
|
|
108
117
|
ariaLabel: string;
|
|
109
118
|
modifiers: unknown[];
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PopperContainerAriaRole } from '@/components/popper-container';
|
|
3
|
+
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
targetElement: {
|
|
10
|
+
type: PropType<import("../../..").VueNodeElement>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
position: {
|
|
14
|
+
type: PropType<import("@/components/popper-container").PopperContainerPositionBasic>;
|
|
15
|
+
default: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
16
|
+
validator: (value: unknown) => boolean;
|
|
17
|
+
};
|
|
18
|
+
offset: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
content: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
isShown: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
32
|
+
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
33
|
+
PopperContainerAriaRole: typeof PopperContainerAriaRole;
|
|
34
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
35
|
+
[x: string]: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
tabIndex: import("vue").ComputedRef<number>;
|
|
38
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
id: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: any;
|
|
42
|
+
};
|
|
43
|
+
targetElement: {
|
|
44
|
+
type: PropType<import("../../..").VueNodeElement>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
position: {
|
|
48
|
+
type: PropType<import("@/components/popper-container").PopperContainerPositionBasic>;
|
|
49
|
+
default: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
50
|
+
validator: (value: unknown) => boolean;
|
|
51
|
+
};
|
|
52
|
+
offset: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
content: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
isShown: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>>, {
|
|
65
|
+
offset: number;
|
|
66
|
+
id: string;
|
|
67
|
+
position: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
68
|
+
isShown: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as BentoTooltip } from './tooltip.vue';
|
|
1
|
+
export { default as BentoTooltip } from './components/tooltip-container.vue';
|
|
2
2
|
export { BentoTooltipPosition, BentoTooltipState } from './tooltip.types';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { PopperContainerAriaRole } from '../popper-container';
|
|
3
|
-
import { BentoTypographyElement, BentoTypographyVariant } from '../typography';
|
|
4
2
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
|
|
6
|
-
type:
|
|
3
|
+
component: {
|
|
4
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
7
5
|
required: true;
|
|
8
6
|
};
|
|
9
7
|
position: {
|
|
@@ -11,30 +9,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
9
|
default: import("../popper-container").PopperContainerPositionBasic;
|
|
12
10
|
validator: (value: unknown) => boolean;
|
|
13
11
|
};
|
|
14
|
-
offset: {
|
|
15
|
-
type: NumberConstructor;
|
|
16
|
-
default: number;
|
|
17
|
-
};
|
|
18
12
|
content: {
|
|
19
13
|
type: StringConstructor;
|
|
20
14
|
required: true;
|
|
21
15
|
};
|
|
22
|
-
isShown: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
16
|
}, {
|
|
27
|
-
BentoTypographyElement: typeof BentoTypographyElement;
|
|
28
|
-
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
29
|
-
PopperContainerAriaRole: typeof PopperContainerAriaRole;
|
|
30
17
|
id: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
isShown: import("vue").Ref<boolean>;
|
|
19
|
+
target: any;
|
|
20
|
+
openTooltip: () => void;
|
|
21
|
+
closeTooltip: () => void;
|
|
35
22
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
-
|
|
37
|
-
type:
|
|
23
|
+
component: {
|
|
24
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
38
25
|
required: true;
|
|
39
26
|
};
|
|
40
27
|
position: {
|
|
@@ -42,21 +29,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
29
|
default: import("../popper-container").PopperContainerPositionBasic;
|
|
43
30
|
validator: (value: unknown) => boolean;
|
|
44
31
|
};
|
|
45
|
-
offset: {
|
|
46
|
-
type: NumberConstructor;
|
|
47
|
-
default: number;
|
|
48
|
-
};
|
|
49
32
|
content: {
|
|
50
33
|
type: StringConstructor;
|
|
51
34
|
required: true;
|
|
52
35
|
};
|
|
53
|
-
isShown: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
36
|
}>>, {
|
|
58
|
-
offset: number;
|
|
59
37
|
position: import("../popper-container").PopperContainerPositionBasic;
|
|
60
|
-
isShown: boolean;
|
|
61
38
|
}>;
|
|
62
39
|
export default _default;
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
BentoButtonActions,
|
|
21
21
|
BentoButtonGroup,
|
|
22
22
|
BentoCheckbox,
|
|
23
|
+
BentoClickOutside,
|
|
23
24
|
BentoDataGrid,
|
|
24
25
|
BentoInputField,
|
|
25
26
|
BentoLink,
|
|
@@ -58,6 +59,7 @@ declare module 'vue' {
|
|
|
58
59
|
BentoButtonGroup: typeof BentoButtonGroup;
|
|
59
60
|
BentoButtonActions: typeof BentoButtonActions;
|
|
60
61
|
BentoCheckbox: typeof BentoCheckbox;
|
|
62
|
+
BentoClickOutside: typeof BentoClickOutside;
|
|
61
63
|
BentoDataGrid: typeof BentoDataGrid;
|
|
62
64
|
BentoInputField: typeof BentoInputField;
|
|
63
65
|
BentoLink: typeof BentoLink;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './directive';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { MaybeElementRef } from '../../types';
|
|
2
|
+
import type { OnClickOutsideHandler, OnClickOutsideOptions } from './types';
|
|
3
|
+
export declare function onClickOutside<T extends OnClickOutsideOptions>(target: MaybeElementRef, handler: OnClickOutsideHandler, options?: T): () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MaybeElementRef } from '@/types';
|
|
2
|
+
export interface OnClickOutsideOptions {
|
|
3
|
+
ignore?: (MaybeElementRef | string)[];
|
|
4
|
+
capture?: boolean;
|
|
5
|
+
detectIframe?: boolean;
|
|
6
|
+
window?: Window;
|
|
7
|
+
}
|
|
8
|
+
export declare type OnClickOutsideHandler = (evt: PointerEvent | FocusEvent) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Fn, MaybeComputedRef } from '../../../types';
|
|
2
|
+
import type { Arrayable, GeneralEventListener } from './types';
|
|
3
|
+
export declare function useEventListener<E extends keyof WindowEventMap>(event: Arrayable<E>, listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
4
|
+
export declare function useEventListener<E extends keyof WindowEventMap>(target: Window, event: Arrayable<E>, listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
5
|
+
export declare function useEventListener<E extends keyof DocumentEventMap>(target: DocumentOrShadowRoot, event: Arrayable<E>, listener: Arrayable<(this: Document, ev: DocumentEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
6
|
+
export declare function useEventListener<Names extends string, EventType = Event>(target: EventTarget, event: Arrayable<Names>, listener: Arrayable<GeneralEventListener<EventType>>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
7
|
+
export declare function useEventListener<EventType = Event>(target: MaybeComputedRef<EventTarget | null | undefined>, event: Arrayable<string>, listener: Arrayable<GeneralEventListener<EventType>>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MaybeComputedElementRef, MaybeElement } from '../../types';
|
|
2
|
+
export declare const defaultWindow: Window & typeof globalThis;
|
|
3
|
+
export declare const isIOS: boolean;
|
|
4
|
+
export declare function resolveUnref<T>(r: any): T;
|
|
5
|
+
export declare function unrefElement<T extends MaybeElement>(elRef: MaybeComputedElementRef<T>): any;
|
|
6
|
+
export declare const noop: () => void;
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import BentoVue from './install';
|
|
|
2
2
|
export * from './components/button';
|
|
3
3
|
export * from './components/data-grid';
|
|
4
4
|
export * from './components/checkbox';
|
|
5
|
+
export * from './components/click-outside';
|
|
5
6
|
export * from './components/filter-bar';
|
|
6
7
|
export * from './components/input-field';
|
|
7
8
|
export * from './components/loading-indicator';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
import { MaybeComputedRef, MaybeRef } from './refs';
|
|
4
|
+
export declare type VueInstance = ComponentPublicInstance;
|
|
5
|
+
export declare type VueNodeElement = Vue | Element | (Vue | Element)[] | undefined;
|
|
6
|
+
export declare type MaybeElement = HTMLElement | SVGElement | VueInstance | undefined | null;
|
|
7
|
+
export declare type MaybeElementRef<T extends MaybeElement = MaybeElement> = MaybeRef<T>;
|
|
8
|
+
export declare type MaybeComputedElementRef<T extends MaybeElement = MaybeElement> = MaybeComputedRef<T>;
|