@adyen/bento-vue2 0.4.1 → 0.5.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.
- package/dist/@types/components/button/button.demo.d.ts +6 -0
- package/dist/@types/components/button/button.vue.d.ts +1 -0
- package/dist/@types/components/button/components/button-actions/button-actions.vue.d.ts +4 -4
- package/dist/@types/components/currency/currency.vue.d.ts +9 -0
- package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -3
- package/dist/@types/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +8 -9
- package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.types.d.ts +4 -0
- package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +4 -3
- package/dist/@types/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +1 -0
- package/dist/@types/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +62 -2
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +10 -29
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +2 -2
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +3 -28
- package/dist/@types/components/header/header.types.d.ts +4 -0
- package/dist/@types/components/header/header.vue.d.ts +66 -0
- package/dist/@types/components/header/index.d.ts +1 -0
- package/dist/@types/components/internal/base-button/base-button.types.d.ts +15 -0
- package/dist/@types/components/internal/base-button/base-button.vue.d.ts +47 -0
- package/dist/@types/components/internal/base-button/index.d.ts +2 -0
- package/dist/@types/components/menu/components/index.d.ts +2 -0
- package/dist/@types/components/menu/components/menu-item/index.d.ts +2 -0
- package/dist/@types/components/menu/components/menu-item/menu-item.types.d.ts +11 -0
- package/dist/@types/components/menu/components/menu-item/menu-item.vue.d.ts +84 -0
- package/dist/@types/components/menu/components/menu-item-list/index.d.ts +1 -0
- package/dist/@types/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +49 -0
- package/dist/@types/components/menu/index.d.ts +2 -0
- package/dist/@types/components/menu/menu.types.d.ts +3 -0
- package/dist/@types/components/menu/menu.vue.d.ts +53 -0
- package/dist/@types/components/popover/popover.vue.d.ts +10 -0
- package/dist/@types/components/tooltip/tooltip.vue.d.ts +4 -5
- package/dist/@types/components.d.ts +4 -2
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/utils/ts/currency/currency.d.ts +2 -2
- package/dist/index.js +3261 -2847
- package/dist/index.js.map +1 -1
- package/dist/web-types.json +4936 -0
- package/package.json +14 -13
- package/dist/@types/components/page-header/components/title-item/title-item.vue.d.ts +0 -22
- package/dist/@types/components/page-header/index.d.ts +0 -1
- package/dist/@types/components/page-header/page-header.vue.d.ts +0 -22
- package/dist/@types/components/tooltip/index.d.ts +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoMenuItem } from '../menu-item';
|
|
3
|
+
import { BentoMenuEvent } from '../../menu.types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
data: {
|
|
6
|
+
type: PropType<BentoMenuItem[]>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
indentItems: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
id: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
focusLastElement: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
computedData: import("vue").ComputedRef<BentoMenuItem[]>;
|
|
23
|
+
focusedIndex: import("vue").Ref<number>;
|
|
24
|
+
menuItemListRef: any;
|
|
25
|
+
closeMenu: () => void;
|
|
26
|
+
focusPrevious: () => void;
|
|
27
|
+
focusNext: () => void;
|
|
28
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoMenuEvent[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
data: {
|
|
30
|
+
type: PropType<BentoMenuItem[]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
indentItems: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
id: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
focusLastElement: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}>>, {
|
|
46
|
+
indentItems: boolean;
|
|
47
|
+
focusLastElement: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoButtonVariant } from '@/components/button';
|
|
3
|
+
import { BentoMenuItem } from './components';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
data: {
|
|
6
|
+
type: PropType<BentoMenuItem[]>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
ghostButton: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
BentoButtonVariant: typeof BentoButtonVariant;
|
|
15
|
+
BentoPopoverPositions: {
|
|
16
|
+
AUTO: import("../popper-container").PopperContainerPositionExtended.AUTO;
|
|
17
|
+
AUTO_START: import("../popper-container").PopperContainerPositionExtended.AUTO_START;
|
|
18
|
+
AUTO_END: import("../popper-container").PopperContainerPositionExtended.AUTO_END;
|
|
19
|
+
TOP_START: import("../popper-container").PopperContainerPositionExtended.TOP_START;
|
|
20
|
+
TOP_END: import("../popper-container").PopperContainerPositionExtended.TOP_END;
|
|
21
|
+
RIGHT_START: import("../popper-container").PopperContainerPositionExtended.RIGHT_START;
|
|
22
|
+
RIGHT_END: import("../popper-container").PopperContainerPositionExtended.RIGHT_END;
|
|
23
|
+
BOTTOM_START: import("../popper-container").PopperContainerPositionExtended.BOTTOM_START;
|
|
24
|
+
BOTTOM_END: import("../popper-container").PopperContainerPositionExtended.BOTTOM_END;
|
|
25
|
+
LEFT_START: import("../popper-container").PopperContainerPositionExtended.LEFT_START;
|
|
26
|
+
LEFT_END: import("../popper-container").PopperContainerPositionExtended.LEFT_END;
|
|
27
|
+
TOP: import("../popper-container").PopperContainerPositionBasic.TOP;
|
|
28
|
+
RIGHT: import("../popper-container").PopperContainerPositionBasic.RIGHT;
|
|
29
|
+
BOTTOM: import("../popper-container").PopperContainerPositionBasic.BOTTOM;
|
|
30
|
+
LEFT: import("../popper-container").PopperContainerPositionBasic.LEFT;
|
|
31
|
+
};
|
|
32
|
+
menuButtonRef: any;
|
|
33
|
+
menuId: string;
|
|
34
|
+
showMenu: import("vue").Ref<boolean>;
|
|
35
|
+
computedMenuButtonVariant: import("vue").ComputedRef<BentoButtonVariant.SECONDARY | BentoButtonVariant.TERTIARY>;
|
|
36
|
+
isLastElementFocused: import("vue").Ref<boolean>;
|
|
37
|
+
onKeyDown: () => void;
|
|
38
|
+
onKeyUp: () => void;
|
|
39
|
+
closeMenu: () => void;
|
|
40
|
+
toggleShowMenu: () => void;
|
|
41
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
data: {
|
|
43
|
+
type: PropType<BentoMenuItem[]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
ghostButton: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}>>, {
|
|
51
|
+
ghostButton: boolean;
|
|
52
|
+
}>;
|
|
53
|
+
export default _default;
|
|
@@ -57,11 +57,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
type: PropType<import("../..").VueNodeElement>;
|
|
58
58
|
required: true;
|
|
59
59
|
};
|
|
60
|
+
withoutSpace: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
60
64
|
}, {
|
|
61
65
|
conditionalClasses: import("vue").ComputedRef<{
|
|
62
66
|
'b-popover--small': boolean;
|
|
63
67
|
'b-popover--with-divider': boolean;
|
|
64
68
|
'b-popover--large': boolean;
|
|
69
|
+
'b-popover--without-space': boolean;
|
|
65
70
|
}>;
|
|
66
71
|
contentConditionalClasses: import("vue").ComputedRef<{
|
|
67
72
|
'b-popover__content--with-title': boolean;
|
|
@@ -124,6 +129,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
129
|
type: PropType<import("../..").VueNodeElement>;
|
|
125
130
|
required: true;
|
|
126
131
|
};
|
|
132
|
+
withoutSpace: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
127
136
|
}>>, {
|
|
128
137
|
small: boolean;
|
|
129
138
|
position: import("@/components/popper-container").PopperContainerPosition;
|
|
@@ -137,5 +146,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
137
146
|
divider: boolean;
|
|
138
147
|
disableFocusTrap: boolean;
|
|
139
148
|
dismissible: boolean;
|
|
149
|
+
withoutSpace: boolean;
|
|
140
150
|
}>;
|
|
141
151
|
export default _default;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { PopperContainerAriaRole, PopperContainerPositionExtended } from '@/components/popper-container';
|
|
3
3
|
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
4
|
+
import { VueNodeElement } from '../../types';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
|
5
6
|
id: {
|
|
6
7
|
type: StringConstructor;
|
|
7
8
|
default: any;
|
|
8
9
|
};
|
|
9
10
|
targetElement: {
|
|
10
|
-
type: PropType<
|
|
11
|
+
type: PropType<VueNodeElement>;
|
|
11
12
|
required: true;
|
|
12
13
|
};
|
|
13
14
|
position: {
|
|
@@ -36,13 +37,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
37
|
[x: string]: boolean;
|
|
37
38
|
}>;
|
|
38
39
|
tabIndex: import("vue").ComputedRef<number>;
|
|
39
|
-
}, {}, {}, {}, import("vue/types/v3-component-options
|
|
40
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
40
41
|
id: {
|
|
41
42
|
type: StringConstructor;
|
|
42
43
|
default: any;
|
|
43
44
|
};
|
|
44
45
|
targetElement: {
|
|
45
|
-
type: PropType<
|
|
46
|
+
type: PropType<VueNodeElement>;
|
|
46
47
|
required: true;
|
|
47
48
|
};
|
|
48
49
|
position: {
|
|
@@ -69,5 +70,3 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
70
|
isShown: boolean;
|
|
70
71
|
}>;
|
|
71
72
|
export default _default;
|
|
72
|
-
export declare class Tooltip {
|
|
73
|
-
}
|
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
// AdlAccordion,
|
|
4
4
|
// AdlAccordionItem,
|
|
5
5
|
// AdlBadge,
|
|
6
|
-
// AdlPageHeader,
|
|
7
6
|
// AdlSegmentedControl,
|
|
8
7
|
// AdlSegmentedOption,
|
|
9
8
|
// AdlTab,
|
|
@@ -28,11 +27,13 @@ import {
|
|
|
28
27
|
BentoDropdownCountry,
|
|
29
28
|
BentoDropdownCurrency,
|
|
30
29
|
BentoDropdownPaymentMethod,
|
|
30
|
+
// BentoHeader,
|
|
31
31
|
BentoInfoIcon,
|
|
32
32
|
BentoInputField,
|
|
33
33
|
BentoLink,
|
|
34
34
|
BentoLoadingButton,
|
|
35
35
|
BentoLoadingIndicator,
|
|
36
|
+
BentoMenu,
|
|
36
37
|
BentoPagination,
|
|
37
38
|
BentoPaymentMethod,
|
|
38
39
|
BentoPopover,
|
|
@@ -52,7 +53,6 @@ declare module 'vue' {
|
|
|
52
53
|
// AdlAccordion: typeof AdlAccordion;
|
|
53
54
|
// AdlAccordionItem: typeof AdlAccordionItem;
|
|
54
55
|
// AdlBadge: typeof AdlBadge;
|
|
55
|
-
// AdlPageHeader: typeof AdlPageHeader;
|
|
56
56
|
// AdlSegmentedControl: typeof AdlSegmentedControl;
|
|
57
57
|
// AdlSegmentedOption: typeof AdlSegmentedOption;
|
|
58
58
|
// AdlTabs: typeof AdlTabs;
|
|
@@ -75,6 +75,7 @@ declare module 'vue' {
|
|
|
75
75
|
BentoDropdown: typeof BentoDropdown;
|
|
76
76
|
BentoDropdownAvatar: typeof BentoDropdownAvatar;
|
|
77
77
|
BentoDropdownCountry: typeof BentoDropdownCountry;
|
|
78
|
+
// BentoHeader: typeof BentoHeader;
|
|
78
79
|
BentoInfoIcon: typeof BentoInfoIcon;
|
|
79
80
|
BentoDropdownCurrency: typeof BentoDropdownCurrency;
|
|
80
81
|
BentoDropdownPaymentMethod: typeof BentoDropdownPaymentMethod;
|
|
@@ -82,6 +83,7 @@ declare module 'vue' {
|
|
|
82
83
|
BentoLink: typeof BentoLink;
|
|
83
84
|
BentoLoadingButton: typeof BentoLoadingButton;
|
|
84
85
|
BentoLoadingIndicator: typeof BentoLoadingIndicator;
|
|
86
|
+
BentoMenu: typeof BentoMenu;
|
|
85
87
|
BentoPagination: typeof BentoPagination;
|
|
86
88
|
BentoPaymentMethod: typeof BentoPaymentMethod;
|
|
87
89
|
BentoPopover: typeof BentoPopover;
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './components/info-icon';
|
|
|
14
14
|
export * from './components/input-field';
|
|
15
15
|
export * from './components/loading-indicator';
|
|
16
16
|
export * from './components/link';
|
|
17
|
+
export * from './components/menu';
|
|
17
18
|
export * from './components/pagination';
|
|
18
19
|
export * from './components/payment-method';
|
|
19
20
|
export * from './components/popover';
|
|
@@ -2,5 +2,5 @@ import { CurrencyAmount, CurrencyOptions, NumberFormatOptionsResult } from './cu
|
|
|
2
2
|
export declare const getExponent: (currencyCode: string) => number;
|
|
3
3
|
export declare const getMinorUnitsAmount: (amount: CurrencyAmount) => number;
|
|
4
4
|
export declare const getNormalizedAmount: (amount: CurrencyAmount, exponent: number) => number;
|
|
5
|
-
export declare function getNumberFormatOptions(amount: CurrencyAmount, options?: CurrencyOptions): NumberFormatOptionsResult;
|
|
6
|
-
export declare const getLocalizedCurrencyValue: (amountValue: string, currency: string, isShort?: boolean) => string;
|
|
5
|
+
export declare function getNumberFormatOptions(amount: CurrencyAmount, options?: CurrencyOptions, majorUnits?: boolean): NumberFormatOptionsResult;
|
|
6
|
+
export declare const getLocalizedCurrencyValue: (amountValue: string, currency: string, isShort?: boolean, majorUnits?: boolean) => string;
|