@adyen/bento-vue2 0.0.4 → 0.0.6
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 +1 -1
- package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +2 -2
- package/dist/@types/components/button/components/button-group.vue.d.ts +2 -2
- package/dist/@types/components/button/components/loading-button/loading-button.types.d.ts +1 -1
- package/dist/@types/components/card/card.vue.d.ts +9 -11
- package/dist/@types/components/card/components/card-image/card-image.vue.d.ts +1 -1
- package/dist/@types/components/checkbox/checkbox.types.d.ts +2 -2
- 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/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts +1 -1
- package/dist/@types/components/data-grid/data-grid.types.d.ts +5 -5
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +1 -1
- package/dist/@types/components/dropdown/components/dropdown-input-container/dropdown-input-container.vue.d.ts +1 -1
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/dropdown-option.vue.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.types.d.ts +3 -3
- 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 +2 -1
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +1 -1
- package/dist/@types/components/input-field/input-field.vue.d.ts +1 -1
- package/dist/@types/components/link/link.vue.d.ts +4 -4
- package/dist/@types/components/page-header/components/title-item/title-item.vue.d.ts +1 -1
- package/dist/@types/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +1 -1
- package/dist/@types/components/popover/components/popover-image/popover-image.vue.d.ts +1 -1
- package/dist/@types/components/popover/components/popover-title/popover-title.vue.d.ts +28 -0
- package/dist/@types/components/popover/popover.types.d.ts +1 -1
- package/dist/@types/components/popover/popover.vue.d.ts +2 -5
- package/dist/@types/components/popper-container/popper-container.types.d.ts +8 -8
- 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/profile-picture/profile-picture.vue.d.ts +7 -7
- package/dist/@types/components/radio-button/radio-button.vue.d.ts +1 -1
- package/dist/@types/components/textarea/textarea.vue.d.ts +2 -2
- package/dist/@types/components/tooltip/index.d.ts +1 -2
- package/dist/@types/components/tooltip/tooltip.vue.d.ts +22 -11
- package/dist/@types/components.d.ts +2 -2
- 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/directives/index.d.ts +2 -1
- package/dist/@types/directives/tooltip/index.d.ts +2 -0
- package/dist/@types/directives/tooltip/tooltip.d.ts +2 -0
- package/dist/@types/{components → directives}/tooltip/tooltip.types.d.ts +2 -2
- package/dist/@types/index.d.ts +1 -1
- 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/maybe-ref.d.ts +1 -1
- package/dist/@types/types/refs.d.ts +4 -0
- package/dist/@types/types/utils-events.d.ts +3 -0
- package/dist/index.js +1085 -914
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/@types/directives/tooltip.d.ts +0 -3
- package/dist/@types/types/vue-node-element.d.ts +0 -2
- package/dist/web-types.json +0 -2731
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
[x: string]: boolean;
|
|
32
32
|
}>;
|
|
33
33
|
onClickButton: () => void;
|
|
34
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "click"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
}, {}, {}, {}, 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
35
|
disabled: {
|
|
36
36
|
type: BooleanConstructor;
|
|
37
37
|
default: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { VueNodeElement } from '../../../../types
|
|
1
|
+
import type { VueNodeElement } from '../../../../types';
|
|
2
2
|
export interface BentoButtonActionObject {
|
|
3
3
|
title: string;
|
|
4
4
|
event: (event: Event) => void;
|
|
5
5
|
icon?: VueNodeElement;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type BentoButtonActionsList = Array<BentoButtonActionObject>;
|
|
8
8
|
export declare enum BentoButtonActionsLayout {
|
|
9
9
|
BUTTONS_END = "buttons-end",
|
|
10
10
|
FILL_CONTAINER = "fill-container",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
2
2
|
default: (_: {}) => any;
|
|
3
3
|
}>;
|
|
4
4
|
export default _default;
|
|
5
|
-
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
6
|
new (): {
|
|
7
7
|
$slots: S;
|
|
8
8
|
};
|
|
@@ -13,18 +13,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
type: PropType<AdlCardImagePosition>;
|
|
14
14
|
default: AdlCardImagePosition;
|
|
15
15
|
};
|
|
16
|
-
}, {}, {}, {
|
|
17
|
-
conditionalClasses(): {
|
|
18
|
-
[key: string]: boolean;
|
|
19
|
-
};
|
|
20
|
-
isClickable(): boolean;
|
|
21
|
-
showBody(): boolean;
|
|
22
|
-
showFooter(): boolean;
|
|
23
|
-
showHeaderActions(): boolean;
|
|
24
|
-
showImage(): boolean;
|
|
25
16
|
}, {
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
18
|
+
[x: string]: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
showBody: import("vue").ComputedRef<boolean>;
|
|
21
|
+
showHeaderActions: import("vue").ComputedRef<boolean>;
|
|
22
|
+
showImage: import("vue").ComputedRef<boolean>;
|
|
23
|
+
showFooter: import("vue").ComputedRef<boolean>;
|
|
24
|
+
onClickCard: () => void;
|
|
25
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
28
26
|
title: {
|
|
29
27
|
type: StringConstructor;
|
|
30
28
|
required: true;
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
-
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
src: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
required: true;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type BentoMultiCheckboxType = Array<string | number>;
|
|
2
|
+
export type BentoCheckboxType = boolean | BentoMultiCheckboxType;
|
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { BentoColumn } from '../../data-grid.types';
|
|
3
|
-
export
|
|
3
|
+
export type FlexColumnLookup = Record<BentoColumn['field'], {
|
|
4
4
|
flex: number;
|
|
5
5
|
computedWidth: number;
|
|
6
6
|
frozen: boolean;
|
|
@@ -31,8 +31,8 @@ export interface BentoDatagridDataItem {
|
|
|
31
31
|
id?: string;
|
|
32
32
|
[fieldName: string]: unknown;
|
|
33
33
|
}
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
34
|
+
export type BentoDatagridData = BentoDatagridDataItem[];
|
|
35
|
+
export type BentoDatagridDataItemId = string | number;
|
|
36
|
+
export type BentoDatagridGetDataItemIdFn = (item: BentoDatagridDataItem) => BentoDatagridDataItemId;
|
|
37
|
+
export type BentoDatagridIsDataItemDisabledFn = (item: BentoDatagridDataItem) => boolean;
|
|
38
|
+
export type BentoDatagridPaginationProps = InstanceType<typeof BentoPagination>['$props'];
|
|
@@ -186,7 +186,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
186
|
paginationNavigate: (page: number) => void;
|
|
187
187
|
onItemsPerPageChange: (itemsPerPage: number) => void;
|
|
188
188
|
body: any;
|
|
189
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("navigate" | "select" | "items-page" | "column-resize" | "
|
|
189
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("sort" | "navigate" | "select" | "items-page" | "column-resize" | "update:filters")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
190
190
|
condensed: {
|
|
191
191
|
type: BooleanConstructor;
|
|
192
192
|
default: boolean;
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
34
34
|
onCloseDropdown: () => void;
|
|
35
35
|
onToggleDropdown: () => void;
|
|
36
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
37
37
|
ariaLabel: {
|
|
38
38
|
type: StringConstructor;
|
|
39
39
|
default: any;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
}>;
|
|
20
20
|
ariaSelected: import("vue").ComputedRef<boolean>;
|
|
21
21
|
onOptionSelected: () => void;
|
|
22
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
label: {
|
|
24
24
|
type: StringConstructor;
|
|
25
25
|
required: true;
|
|
@@ -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
|
}>>, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AdlDropdownValue = string | number;
|
|
2
2
|
export interface AdlDropdownOptionItem {
|
|
3
3
|
label: string;
|
|
4
4
|
value: AdlDropdownValue;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type AdlDropdownSelectedValue = AdlDropdownValue;
|
|
7
|
+
export type AdlDropdownOptions = Array<AdlDropdownOptionItem>;
|
|
@@ -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,9 +59,10 @@ 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
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("open" | "
|
|
65
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("open" | "clear" | "close" | "dismiss" | "apply")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
65
66
|
alwaysShowNameInLabel: {
|
|
66
67
|
type: BooleanConstructor;
|
|
67
68
|
default: boolean;
|
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
inputFieldElement: any;
|
|
39
39
|
shouldDisplayStaticValueAtStart: import("vue").ComputedRef<boolean>;
|
|
40
40
|
shouldDisplayStaticValueAtEnd: import("vue").ComputedRef<boolean>;
|
|
41
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
42
42
|
disabled: {
|
|
43
43
|
type: BooleanConstructor;
|
|
44
44
|
default: boolean;
|
|
@@ -18,8 +18,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
default: (_: import("vue-router/types/router").RouterLinkSlotArgument) => any;
|
|
19
19
|
}>;
|
|
20
20
|
export default _default;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
23
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
24
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
25
|
} : {
|
|
@@ -27,12 +27,12 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
27
27
|
required: true;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
31
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
32
32
|
default: D[K];
|
|
33
33
|
} : P[K];
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
36
|
new (): {
|
|
37
37
|
$slots: S;
|
|
38
38
|
};
|
|
@@ -3,7 +3,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
-
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
title: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
required: true;
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
'b-popover-dismiss-button--on-image': boolean;
|
|
10
10
|
}>;
|
|
11
11
|
BentoButtonVariant: typeof BentoButtonVariant;
|
|
12
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
onImage: {
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
|
-
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
src: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
required: true;
|
|
@@ -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.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").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;
|
|
@@ -16,4 +16,4 @@ export declare const BentoPopoverPositions: {
|
|
|
16
16
|
BOTTOM: import("../popper-container").PopperContainerPositionBasic.BOTTOM;
|
|
17
17
|
LEFT: import("../popper-container").PopperContainerPositionBasic.LEFT;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type BentoPopoverPositions = PopperContainerPosition;
|
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
import type { Modifier, StrictModifiers } from '@popperjs/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
2
|
+
type ArrowModifier = Modifier<'arrow', unknown>;
|
|
3
|
+
type ApplyArrowHideModifier = Modifier<'applyArrowHide', unknown>;
|
|
4
|
+
type SameWidthModifier = Modifier<'sameWidth', unknown>;
|
|
5
|
+
type TrackPositionModifer = Modifier<'trackPosition', unknown>;
|
|
6
|
+
type FlipModifer = Modifier<'flip', unknown>;
|
|
7
|
+
export type ExtendedModifiers = StrictModifiers | ArrowModifier | ApplyArrowHideModifier | SameWidthModifier | TrackPositionModifer | FlipModifer;
|
|
8
8
|
export interface PopperContainerArrowProp {
|
|
9
9
|
classes?: string[];
|
|
10
10
|
padding?: string;
|
|
@@ -49,6 +49,6 @@ export declare const PopperContainerPosition: {
|
|
|
49
49
|
BOTTOM: PopperContainerPositionBasic.BOTTOM;
|
|
50
50
|
LEFT: PopperContainerPositionBasic.LEFT;
|
|
51
51
|
};
|
|
52
|
-
export
|
|
53
|
-
export
|
|
52
|
+
export type PopperContainerPosition = PopperContainerPositionBasic | PopperContainerPositionExtended;
|
|
53
|
+
export type FallbackPositionProp = PopperContainerPosition[] | PopperContainerPosition;
|
|
54
54
|
export {};
|
|
@@ -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[];
|
|
@@ -14,13 +14,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
default: AdlProfilePictureVariant;
|
|
15
15
|
validator: (value: AdlProfilePictureVariant) => boolean;
|
|
16
16
|
};
|
|
17
|
-
}, {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
}, {
|
|
18
|
+
ariaLabel: import("vue").Ref<string>;
|
|
19
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
20
|
+
[x: string]: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
initials: import("vue").ComputedRef<string>;
|
|
23
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
24
24
|
src: {
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: any;
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
onClick: () => void;
|
|
26
26
|
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
27
27
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
28
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "input"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
disabled: {
|
|
30
30
|
type: BooleanConstructor;
|
|
31
31
|
default: boolean;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
};
|
|
18
18
|
}, {}, {}, {}, {
|
|
19
19
|
onInput(event: Event): void;
|
|
20
|
-
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
label: {
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
default: string;
|
|
@@ -35,9 +35,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
37
|
}>>, {
|
|
38
|
-
description: string;
|
|
39
38
|
value: string;
|
|
40
39
|
label: string;
|
|
40
|
+
description: string;
|
|
41
41
|
placeholder: string;
|
|
42
42
|
}>;
|
|
43
43
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { BentoTooltipPosition, BentoTooltipState } from './tooltip.types';
|
|
1
|
+
export { Tooltip } from './tooltip.vue';
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { PopperContainerAriaRole } from '
|
|
3
|
-
import { BentoTypographyElement, BentoTypographyVariant } from '
|
|
2
|
+
import { PopperContainerAriaRole, PopperContainerPositionExtended } from '@/components/popper-container';
|
|
3
|
+
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
id: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
5
9
|
targetElement: {
|
|
6
|
-
type: PropType<import("../../
|
|
10
|
+
type: PropType<import("../../index.js").VueNodeElement>;
|
|
7
11
|
required: true;
|
|
8
12
|
};
|
|
9
13
|
position: {
|
|
10
|
-
type: PropType<import("
|
|
11
|
-
default: import("
|
|
14
|
+
type: PropType<import("@/components/popper-container").PopperContainerPositionBasic>;
|
|
15
|
+
default: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
12
16
|
validator: (value: unknown) => boolean;
|
|
13
17
|
};
|
|
14
18
|
offset: {
|
|
@@ -27,19 +31,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
31
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
28
32
|
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
29
33
|
PopperContainerAriaRole: typeof PopperContainerAriaRole;
|
|
30
|
-
|
|
34
|
+
PopperContainerPositionExtended: typeof PopperContainerPositionExtended;
|
|
31
35
|
conditionalClasses: import("vue").ComputedRef<{
|
|
32
36
|
[x: string]: boolean;
|
|
33
37
|
}>;
|
|
34
38
|
tabIndex: import("vue").ComputedRef<number>;
|
|
35
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
id: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
36
44
|
targetElement: {
|
|
37
|
-
type: PropType<import("../../
|
|
45
|
+
type: PropType<import("../../index.js").VueNodeElement>;
|
|
38
46
|
required: true;
|
|
39
47
|
};
|
|
40
48
|
position: {
|
|
41
|
-
type: PropType<import("
|
|
42
|
-
default: import("
|
|
49
|
+
type: PropType<import("@/components/popper-container").PopperContainerPositionBasic>;
|
|
50
|
+
default: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
43
51
|
validator: (value: unknown) => boolean;
|
|
44
52
|
};
|
|
45
53
|
offset: {
|
|
@@ -56,7 +64,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
64
|
};
|
|
57
65
|
}>>, {
|
|
58
66
|
offset: number;
|
|
59
|
-
|
|
67
|
+
id: string;
|
|
68
|
+
position: import("@/components/popper-container").PopperContainerPositionBasic;
|
|
60
69
|
isShown: boolean;
|
|
61
70
|
}>;
|
|
62
71
|
export default _default;
|
|
72
|
+
export declare class Tooltip {
|
|
73
|
+
}
|
|
@@ -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,
|
|
@@ -31,7 +32,6 @@ import {
|
|
|
31
32
|
BentoStatus,
|
|
32
33
|
BentoTag,
|
|
33
34
|
BentoToggle,
|
|
34
|
-
BentoTooltip,
|
|
35
35
|
BentoTypography,
|
|
36
36
|
} from './index';
|
|
37
37
|
|
|
@@ -58,6 +58,7 @@ declare module 'vue' {
|
|
|
58
58
|
BentoButtonGroup: typeof BentoButtonGroup;
|
|
59
59
|
BentoButtonActions: typeof BentoButtonActions;
|
|
60
60
|
BentoCheckbox: typeof BentoCheckbox;
|
|
61
|
+
BentoClickOutside: typeof BentoClickOutside;
|
|
61
62
|
BentoDataGrid: typeof BentoDataGrid;
|
|
62
63
|
BentoInputField: typeof BentoInputField;
|
|
63
64
|
BentoLink: typeof BentoLink;
|
|
@@ -69,7 +70,6 @@ declare module 'vue' {
|
|
|
69
70
|
BentoStatus: typeof BentoStatus;
|
|
70
71
|
BentoTag: typeof BentoTag;
|
|
71
72
|
BentoToggle: typeof BentoToggle;
|
|
72
|
-
BentoTooltip: typeof BentoTooltip;
|
|
73
73
|
BentoTypography: typeof BentoTypography;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -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 type OnClickOutsideHandler = (evt: PointerEvent | FocusEvent) => void;
|