@adyen/bento-vue2 0.1.2 → 0.1.3
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/components/button-actions/button-actions.types.d.ts +12 -1
- package/dist/@types/components/button/components/button-actions/button-actions.vue.d.ts +2 -2
- package/dist/@types/components/card/card.types.d.ts +3 -9
- package/dist/@types/components/card/card.vue.d.ts +63 -28
- package/dist/@types/components/card/index.d.ts +1 -2
- package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +22 -1
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +2 -0
- package/dist/@types/components/data-grid/composables/useConfigSettings.d.ts +3 -1
- package/dist/@types/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +22 -0
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-multi-select/dropdown-multi-select.vue.d.ts +33 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-multi-select/index.d.ts +1 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/dropdown-option.vue.d.ts +29 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-option/index.d.ts +1 -0
- package/dist/@types/components/dropdown/components/dropdown-options-container/components/dropdown-single-select-option/dropdown-single-select-option.vue.d.ts +16 -20
- package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +14 -5
- package/dist/@types/components/dropdown/dropdown.types.d.ts +7 -6
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +39 -29
- package/dist/@types/components/dropdown/index.d.ts +1 -1
- package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -17
- package/dist/@types/components/filter-bar/components/base-filter/components/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/text-filter/text-filter.vue.d.ts +0 -9
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +0 -1
- package/dist/@types/components/input-field/input-field.vue.d.ts +1 -1
- package/dist/@types/components/pagination/components/pagination-context/pagination-context.vue.d.ts +2 -2
- package/dist/@types/components/popover/popover.vue.d.ts +2 -2
- package/dist/@types/components/search-bar/search-bar.vue.d.ts +172 -1
- package/dist/@types/components.d.ts +4 -6
- package/dist/@types/composables/index.d.ts +1 -0
- package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +8 -0
- package/dist/@types/index.d.ts +2 -0
- package/dist/index.js +2487 -2093
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/@types/components/card/components/card-image/card-image.vue.d.ts +0 -20
- package/dist/@types/components/filter-bar/components/base-filter/composables/index.d.ts +0 -9
|
@@ -5,9 +5,20 @@ export interface BentoButtonActionObject {
|
|
|
5
5
|
icon?: VueNodeElement;
|
|
6
6
|
}
|
|
7
7
|
export type BentoButtonActionsList = Array<BentoButtonActionObject>;
|
|
8
|
-
export declare enum
|
|
8
|
+
export declare enum BentoButtonActionsLayoutBasic {
|
|
9
9
|
BUTTONS_END = "buttons-end",
|
|
10
10
|
FILL_CONTAINER = "fill-container",
|
|
11
11
|
SPACE_BETWEEN = "space-between",
|
|
12
12
|
VERTICAL_STACK = "vertical-stack"
|
|
13
13
|
}
|
|
14
|
+
export declare enum BentoButtonActionsLayoutExtended {
|
|
15
|
+
BUTTONS_START = "buttons-start"
|
|
16
|
+
}
|
|
17
|
+
export declare const BentoButtonActionsLayout: {
|
|
18
|
+
BUTTONS_START: BentoButtonActionsLayoutExtended.BUTTONS_START;
|
|
19
|
+
BUTTONS_END: BentoButtonActionsLayoutBasic.BUTTONS_END;
|
|
20
|
+
FILL_CONTAINER: BentoButtonActionsLayoutBasic.FILL_CONTAINER;
|
|
21
|
+
SPACE_BETWEEN: BentoButtonActionsLayoutBasic.SPACE_BETWEEN;
|
|
22
|
+
VERTICAL_STACK: BentoButtonActionsLayoutBasic.VERTICAL_STACK;
|
|
23
|
+
};
|
|
24
|
+
export type BentoButtonActionsLayout = BentoButtonActionsLayoutBasic | BentoButtonActionsLayoutExtended;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
};
|
|
9
9
|
layout: {
|
|
10
10
|
type: PropType<BentoButtonActionsLayout>;
|
|
11
|
-
default:
|
|
11
|
+
default: import("@/components/button").BentoButtonActionsLayoutBasic;
|
|
12
12
|
validator: (layout: BentoButtonActionsLayout) => boolean;
|
|
13
13
|
};
|
|
14
14
|
}, {
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
};
|
|
25
25
|
layout: {
|
|
26
26
|
type: PropType<BentoButtonActionsLayout>;
|
|
27
|
-
default:
|
|
27
|
+
default: import("@/components/button").BentoButtonActionsLayoutBasic;
|
|
28
28
|
validator: (layout: BentoButtonActionsLayout) => boolean;
|
|
29
29
|
};
|
|
30
30
|
}>>, {
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export declare enum AdlCardPropClass {
|
|
6
|
-
CLICKABLE = "clickable",
|
|
7
|
-
WITH_FOOTER = "with-footer",
|
|
8
|
-
WITH_IMAGE = "with-image",
|
|
9
|
-
WITH_LEFT_SIDE_IMAGE = "with-left-side-image"
|
|
1
|
+
export declare enum BentoCardBackground {
|
|
2
|
+
PRIMARY = "primary",
|
|
3
|
+
SECONDARY = "secondary"
|
|
10
4
|
}
|
|
@@ -1,42 +1,77 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
|
|
3
|
+
import { BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';
|
|
4
|
+
import { BentoCardBackground } from '@/components/card/card.types';
|
|
3
5
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
|
|
5
|
-
type:
|
|
6
|
-
|
|
6
|
+
background: {
|
|
7
|
+
type: PropType<BentoCardBackground>;
|
|
8
|
+
default: BentoCardBackground;
|
|
7
9
|
};
|
|
8
|
-
|
|
9
|
-
type:
|
|
10
|
+
expandable: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
actions: {
|
|
19
|
+
type: PropType<BentoButtonActionsList>;
|
|
10
20
|
default: any;
|
|
11
21
|
};
|
|
12
|
-
|
|
13
|
-
type: PropType<
|
|
14
|
-
default:
|
|
22
|
+
actionsLayout: {
|
|
23
|
+
type: PropType<BentoButtonActionsLayout>;
|
|
24
|
+
default: import("@/components/button").BentoButtonActionsLayoutBasic;
|
|
25
|
+
validator: (value: BentoButtonActionsLayout) => boolean;
|
|
15
26
|
};
|
|
16
27
|
}, {
|
|
17
|
-
|
|
18
|
-
|
|
28
|
+
cardId: string;
|
|
29
|
+
cardConditionalClasses: import("vue").ComputedRef<{
|
|
30
|
+
[x: string]: boolean | BentoCardBackground;
|
|
31
|
+
'b-card--expandable': boolean;
|
|
32
|
+
'b-card--disabled': boolean;
|
|
33
|
+
}>;
|
|
34
|
+
cardBodyConditionalClasses: import("vue").ComputedRef<{
|
|
35
|
+
'b-card__body--expandable': boolean;
|
|
36
|
+
}>;
|
|
37
|
+
cardHeaderConditionalClasses: import("vue").ComputedRef<{
|
|
38
|
+
'b-card__header--with-body': boolean;
|
|
19
39
|
}>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
40
|
+
showCardBody: import("vue").ComputedRef<boolean>;
|
|
41
|
+
showContent: import("vue").Ref<boolean>;
|
|
42
|
+
tabIndex: import("vue").ComputedRef<0 | -1>;
|
|
43
|
+
onClick: () => void;
|
|
44
|
+
toggleExpansion: () => void;
|
|
45
|
+
hasSlot: (name: string) => boolean;
|
|
46
|
+
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
47
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
48
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("click" | "expanded")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
background: {
|
|
50
|
+
type: PropType<BentoCardBackground>;
|
|
51
|
+
default: BentoCardBackground;
|
|
52
|
+
};
|
|
53
|
+
expandable: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
actions: {
|
|
62
|
+
type: PropType<BentoButtonActionsList>;
|
|
32
63
|
default: any;
|
|
33
64
|
};
|
|
34
|
-
|
|
35
|
-
type: PropType<
|
|
36
|
-
default:
|
|
65
|
+
actionsLayout: {
|
|
66
|
+
type: PropType<BentoButtonActionsLayout>;
|
|
67
|
+
default: import("@/components/button").BentoButtonActionsLayoutBasic;
|
|
68
|
+
validator: (value: BentoButtonActionsLayout) => boolean;
|
|
37
69
|
};
|
|
38
70
|
}>>, {
|
|
39
|
-
|
|
40
|
-
|
|
71
|
+
background: BentoCardBackground;
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
actions: BentoButtonActionsList;
|
|
74
|
+
expandable: boolean;
|
|
75
|
+
actionsLayout: BentoButtonActionsLayout;
|
|
41
76
|
}>;
|
|
42
77
|
export default _default;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
import { BentoButtonVariant } from '../../../button';
|
|
2
3
|
import { BentoTypographyElement, BentoTypographyVariant } from '../../../typography';
|
|
3
4
|
import { AdlLabelPosition } from '../../../../types';
|
|
5
|
+
import { BentoColumn } from '../../data-grid.types';
|
|
4
6
|
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
columns: {
|
|
8
|
+
type: PropType<BentoColumn[]>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
5
11
|
condensed: {
|
|
6
12
|
type: BooleanConstructor;
|
|
7
13
|
default: boolean;
|
|
@@ -9,8 +15,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
15
|
}, {
|
|
10
16
|
configSettingsButtonRef: any;
|
|
11
17
|
isConfigSettingsPanelOpen: import("vue").Ref<boolean>;
|
|
18
|
+
isColumnVisibilityToggleDisabled: (fieldName: string, isMandatory: boolean) => boolean;
|
|
19
|
+
allColumnsVisbilityToggleState: import("vue").Ref<boolean>;
|
|
20
|
+
filteredColumnVisibilityColumns: import("vue").ComputedRef<BentoColumn[]>;
|
|
21
|
+
searchTerm: import("vue").Ref<string>;
|
|
22
|
+
isColumnVisibilityFilterShown: import("vue").Ref<boolean>;
|
|
23
|
+
searchBarRef: any;
|
|
12
24
|
toggleConfigSettingsPanelVisibility: () => void;
|
|
13
25
|
emitCondensedToggle: (isCompactView: boolean) => void;
|
|
26
|
+
isColumnVisible: (fieldName: string) => boolean;
|
|
27
|
+
toggleColumnVisiblity: (fieldName: string) => void;
|
|
28
|
+
toggleAllColumnVisibility: (toggleState: boolean) => void;
|
|
29
|
+
clearAction: () => void;
|
|
30
|
+
toggleColumnFilter: () => void;
|
|
14
31
|
AdlLabelPosition: typeof AdlLabelPosition;
|
|
15
32
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
16
33
|
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
@@ -32,7 +49,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
49
|
BOTTOM: import("../../../popper-container").PopperContainerPositionBasic.BOTTOM;
|
|
33
50
|
LEFT: import("../../../popper-container").PopperContainerPositionBasic.LEFT;
|
|
34
51
|
};
|
|
35
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "config-settings"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("config-settings" | "visible-columns")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
columns: {
|
|
54
|
+
type: PropType<BentoColumn[]>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
36
57
|
condensed: {
|
|
37
58
|
type: BooleanConstructor;
|
|
38
59
|
default: boolean;
|
|
@@ -18,6 +18,8 @@ export declare const useCalculateColumnWidth: (newColumns: MaybeRef<BentoColumn[
|
|
|
18
18
|
right?: boolean;
|
|
19
19
|
};
|
|
20
20
|
overflow?: import("../../data-grid.types").BentoColumnOverflow;
|
|
21
|
+
visible?: boolean;
|
|
22
|
+
mandatory?: boolean;
|
|
21
23
|
}[]>;
|
|
22
24
|
gridColumnWidthStyle: import("vue").ComputedRef<{
|
|
23
25
|
gridTemplateColumns: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { MaybeRef } from '../../../types';
|
|
2
|
-
|
|
2
|
+
import { BentoColumn } from '../data-grid.types';
|
|
3
|
+
export declare const useConfigSettings: (condensed: MaybeRef<boolean>, columnsRef: MaybeRef<BentoColumn[]>, emit: (event: string, columns: BentoColumn[]) => void) => {
|
|
3
4
|
compactView: import("vue").Ref<boolean>;
|
|
4
5
|
onConfigSettingsUpdate: (isCompactView: boolean) => boolean;
|
|
6
|
+
onColumnVisibiltyChange: (columnIndexes: string[]) => void;
|
|
5
7
|
};
|
|
@@ -10,6 +10,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
type: PropType<BentoColumn[]>;
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
|
+
columnPanel: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
13
17
|
data: {
|
|
14
18
|
type: PropType<BentoDatagridData>;
|
|
15
19
|
required: true;
|
|
@@ -103,6 +107,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
107
|
}>>>>;
|
|
104
108
|
default: any;
|
|
105
109
|
};
|
|
110
|
+
stickyPagination: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
106
114
|
selectable: {
|
|
107
115
|
type: BooleanConstructor;
|
|
108
116
|
default: boolean;
|
|
@@ -130,6 +138,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
138
|
right?: boolean;
|
|
131
139
|
};
|
|
132
140
|
overflow?: BentoColumnOverflow;
|
|
141
|
+
visible?: boolean;
|
|
142
|
+
mandatory?: boolean;
|
|
133
143
|
}[]>;
|
|
134
144
|
ariaGridHeaderText: import("vue").ComputedRef<string>;
|
|
135
145
|
conditionalTitleAttribute: (column: BentoColumn, content: unknown) => string;
|
|
@@ -155,6 +165,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
165
|
conditionalPaginationClasses: import("vue").ComputedRef<{
|
|
156
166
|
'b-data-grid__pagination--padding-left-unset': boolean;
|
|
157
167
|
'b-data-grid__pagination--padding-right-unset': boolean;
|
|
168
|
+
'b-data-grid__pagination--sticky': boolean;
|
|
158
169
|
}>;
|
|
159
170
|
onColumnWidthOverride: (newColumnWidthOverridesLookup: import("./data-grid.types").BentoColumnWidthOverridesLookup) => void;
|
|
160
171
|
onColumnResized: (resizeEvent: {
|
|
@@ -172,6 +183,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
172
183
|
DATAGRID_SELECT_FIELD_NAME: string;
|
|
173
184
|
compactView: import("vue").Ref<boolean>;
|
|
174
185
|
onConfigSettingsUpdate: (isCompactView: boolean) => boolean;
|
|
186
|
+
onColumnVisibiltyChange: (columnIndexes: string[]) => void;
|
|
175
187
|
BentoDatagridSortDirection: typeof BentoDatagridSortDirection;
|
|
176
188
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
177
189
|
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
@@ -186,6 +198,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
198
|
type: PropType<BentoColumn[]>;
|
|
187
199
|
required: true;
|
|
188
200
|
};
|
|
201
|
+
columnPanel: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
189
205
|
data: {
|
|
190
206
|
type: PropType<BentoDatagridData>;
|
|
191
207
|
required: true;
|
|
@@ -279,6 +295,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
279
295
|
}>>>>;
|
|
280
296
|
default: any;
|
|
281
297
|
};
|
|
298
|
+
stickyPagination: {
|
|
299
|
+
type: BooleanConstructor;
|
|
300
|
+
default: boolean;
|
|
301
|
+
};
|
|
282
302
|
selectable: {
|
|
283
303
|
type: BooleanConstructor;
|
|
284
304
|
default: boolean;
|
|
@@ -298,9 +318,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
298
318
|
filters: import("../filter-bar").BentoFilterBarModel;
|
|
299
319
|
hasResizableColumns: boolean;
|
|
300
320
|
sortBy: BentoDatagridSortByColumn[];
|
|
321
|
+
columnPanel: boolean;
|
|
301
322
|
getDataItemId: BentoDatagridGetDataItemIdFn;
|
|
302
323
|
isDataItemDisabled: BentoDatagridIsDataItemDisabledFn;
|
|
303
324
|
pagination: any;
|
|
325
|
+
stickyPagination: boolean;
|
|
304
326
|
selectable: boolean;
|
|
305
327
|
selection: BentoDatagridDataItemId[];
|
|
306
328
|
}>;
|
|
@@ -71,6 +71,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
onToggleDropdown: () => void;
|
|
72
72
|
onClearSearch: () => void;
|
|
73
73
|
onInputEvent: (event: Event) => void;
|
|
74
|
+
onSpaceBar: () => void;
|
|
74
75
|
hasSlot: (name: string) => boolean;
|
|
75
76
|
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("input" | "open" | "clear" | "close")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
76
77
|
additionalItemsSelected: {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
3
|
+
import type { BentoDropdownOptions, BentoDropdownSelectedValue, BentoDropdownValue } from '../../../../dropdown.types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
items: {
|
|
6
|
+
type: PropType<BentoDropdownOptions>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
selectedValues: {
|
|
10
|
+
type: PropType<BentoDropdownSelectedValue>;
|
|
11
|
+
default: BentoDropdownSelectedValue;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
isAllSelected: import("vue").ComputedRef<boolean>;
|
|
15
|
+
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
16
|
+
selectedItemsList: import("vue").Ref<BentoDropdownValue[]>;
|
|
17
|
+
selectAllCheckboxText: import("vue").ComputedRef<import("vue-i18n").default.TranslateResult>;
|
|
18
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
19
|
+
toggleCheckboxSelection: (value: BentoDropdownValue) => void;
|
|
20
|
+
toggleSelectAll: (selectedValue: boolean) => void;
|
|
21
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
items: {
|
|
23
|
+
type: PropType<BentoDropdownOptions>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
selectedValues: {
|
|
27
|
+
type: PropType<BentoDropdownSelectedValue>;
|
|
28
|
+
default: BentoDropdownSelectedValue;
|
|
29
|
+
};
|
|
30
|
+
}>>, {
|
|
31
|
+
selectedValues: BentoDropdownSelectedValue;
|
|
32
|
+
}>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoDropdownMultiSelect } from './dropdown-multi-select.vue';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
selected: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
conditionalClasses: import("vue").ComputedRef<{
|
|
12
|
+
'b-dropdown-option--disabled': boolean;
|
|
13
|
+
'b-dropdown-option--selected': boolean;
|
|
14
|
+
}>;
|
|
15
|
+
onClick: (e: Event) => void;
|
|
16
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("click" | "escape-pressed" | "enter-pressed")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
selected: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
selected: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoDropdownOption } from './dropdown-option.vue';
|
|
@@ -1,49 +1,45 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoTypographyElement } from '@/components/typography';
|
|
3
|
-
import type {
|
|
3
|
+
import type { BentoDropdownValue } from '@/components/dropdown/dropdown.types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
disabled: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
5
9
|
label: {
|
|
6
10
|
type: StringConstructor;
|
|
7
11
|
required: true;
|
|
8
12
|
};
|
|
9
|
-
value: {
|
|
10
|
-
type: PropType<BentoDropdownValue>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
13
|
selected: {
|
|
14
14
|
type: BooleanConstructor;
|
|
15
15
|
default: boolean;
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
type:
|
|
19
|
-
|
|
17
|
+
value: {
|
|
18
|
+
type: PropType<BentoDropdownValue>;
|
|
19
|
+
required: true;
|
|
20
20
|
};
|
|
21
21
|
}, {
|
|
22
|
-
conditionalClasses: import("vue").ComputedRef<{
|
|
23
|
-
'b-dropdown-single-select-option--disabled': boolean;
|
|
24
|
-
'b-dropdown-single-select-option--selected': boolean;
|
|
25
|
-
}>;
|
|
26
22
|
ariaDisabled: import("vue").ComputedRef<boolean>;
|
|
27
23
|
ariaSelected: import("vue").ComputedRef<boolean>;
|
|
28
24
|
tabIndex: import("vue").ComputedRef<0 | -1>;
|
|
29
25
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
30
26
|
onOptionSelected: () => void;
|
|
31
|
-
}, {}, {}, {}, import("vue/types/v3-component-options
|
|
27
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("select" | "escape-pressed")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
32
|
label: {
|
|
33
33
|
type: StringConstructor;
|
|
34
34
|
required: true;
|
|
35
35
|
};
|
|
36
|
-
value: {
|
|
37
|
-
type: PropType<BentoDropdownValue>;
|
|
38
|
-
required: true;
|
|
39
|
-
};
|
|
40
36
|
selected: {
|
|
41
37
|
type: BooleanConstructor;
|
|
42
38
|
default: boolean;
|
|
43
39
|
};
|
|
44
|
-
|
|
45
|
-
type:
|
|
46
|
-
|
|
40
|
+
value: {
|
|
41
|
+
type: PropType<BentoDropdownValue>;
|
|
42
|
+
required: true;
|
|
47
43
|
};
|
|
48
44
|
}>>, {
|
|
49
45
|
disabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import type { BentoDropdownIsOptionDisabled,
|
|
2
|
+
import type { BentoDropdownIsOptionDisabled, BentoDropdownOptions, BentoDropdownSelectedValue } from '../../dropdown.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
ariaLabel: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -21,12 +21,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
type: PropType<BentoDropdownOptions>;
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
|
+
multiple: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
24
28
|
open: {
|
|
25
29
|
type: BooleanConstructor;
|
|
26
30
|
required: true;
|
|
27
31
|
};
|
|
28
32
|
selectedValue: {
|
|
29
|
-
type: PropType<
|
|
33
|
+
type: PropType<BentoDropdownSelectedValue>;
|
|
30
34
|
default: any;
|
|
31
35
|
};
|
|
32
36
|
targetElement: {
|
|
@@ -52,7 +56,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
56
|
BOTTOM: import("@/components/popper-container").PopperContainerPositionBasic.BOTTOM;
|
|
53
57
|
LEFT: import("@/components/popper-container").PopperContainerPositionBasic.LEFT;
|
|
54
58
|
};
|
|
55
|
-
onOptionSelected: (
|
|
59
|
+
onOptionSelected: (selectedValue: BentoDropdownSelectedValue) => void;
|
|
56
60
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
57
61
|
ariaLabel: {
|
|
58
62
|
type: StringConstructor;
|
|
@@ -74,12 +78,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
78
|
type: PropType<BentoDropdownOptions>;
|
|
75
79
|
required: true;
|
|
76
80
|
};
|
|
81
|
+
multiple: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
77
85
|
open: {
|
|
78
86
|
type: BooleanConstructor;
|
|
79
87
|
required: true;
|
|
80
88
|
};
|
|
81
89
|
selectedValue: {
|
|
82
|
-
type: PropType<
|
|
90
|
+
type: PropType<BentoDropdownSelectedValue>;
|
|
83
91
|
default: any;
|
|
84
92
|
};
|
|
85
93
|
targetElement: {
|
|
@@ -89,7 +97,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
97
|
}>>, {
|
|
90
98
|
ariaLabel: string;
|
|
91
99
|
disabled: boolean;
|
|
100
|
+
multiple: boolean;
|
|
92
101
|
isOptionDisabled: BentoDropdownIsOptionDisabled;
|
|
93
|
-
selectedValue:
|
|
102
|
+
selectedValue: BentoDropdownSelectedValue;
|
|
94
103
|
}>;
|
|
95
104
|
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BentoSearchBarItem } from '../search-bar';
|
|
2
|
-
export type
|
|
3
|
-
export
|
|
4
|
-
|
|
2
|
+
export type BentoDropdownValue = string | number;
|
|
3
|
+
export type BentoDropdownMultiSelectValue = BentoDropdownValue[];
|
|
4
|
+
export interface BentoDropdownOptionItem extends BentoSearchBarItem {
|
|
5
|
+
value: BentoDropdownValue;
|
|
5
6
|
}
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type BentoDropdownIsOptionDisabled = (optionValue:
|
|
7
|
+
export type BentoDropdownSelectedValue = BentoDropdownValue | BentoDropdownMultiSelectValue;
|
|
8
|
+
export type BentoDropdownOptions = Array<BentoDropdownOptionItem>;
|
|
9
|
+
export type BentoDropdownIsOptionDisabled = (optionValue: BentoDropdownOptionItem) => boolean | undefined;
|