@adyen/bento-vue2 1.17.1 → 1.18.0-rc-1
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/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.d.ts +13 -7
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +3 -24
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +69 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +69 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +14 -23
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +29 -9
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -9
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +1 -1
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +5 -5
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/{listbox.css → use-cached-selected-values.css} +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +2 -2
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.4805f81f.js → base-button.f58ffaaa.js} +2 -2
- package/dist/chunks/{base-button.4805f81f.js.map → base-button.f58ffaaa.js.map} +1 -1
- package/dist/chunks/{base-modal.09914b10.js → base-modal.104e300a.js} +5 -5
- package/dist/chunks/{base-modal.09914b10.js.map → base-modal.104e300a.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.c7a0dcf3.js → button-actions-with-menu.47aed57c.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.c7a0dcf3.js.map → button-actions-with-menu.47aed57c.js.map} +1 -1
- package/dist/chunks/{button.96cc5325.js → button.709ddd9e.js} +3 -3
- package/dist/chunks/{button.96cc5325.js.map → button.709ddd9e.js.map} +1 -1
- package/dist/chunks/{calendar.12880570.js → calendar.c946deae.js} +4 -4
- package/dist/chunks/{calendar.12880570.js.map → calendar.c946deae.js.map} +1 -1
- package/dist/chunks/{checkbox.599f1016.js → checkbox.6f58ea5c.js} +3 -3
- package/dist/chunks/{checkbox.599f1016.js.map → checkbox.6f58ea5c.js.map} +1 -1
- package/dist/chunks/{controls-group.3c7f964b.js → controls-group.0eb6e40e.js} +3 -3
- package/dist/chunks/{controls-group.3c7f964b.js.map → controls-group.0eb6e40e.js.map} +1 -1
- package/dist/chunks/{copy.d01dacc8.js → copy.75f574f5.js} +4 -4
- package/dist/chunks/{copy.d01dacc8.js.map → copy.75f574f5.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.f18b1350.js → dropdown-default-textbox.ee07545a.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.f18b1350.js.map → dropdown-default-textbox.ee07545a.js.map} +1 -1
- package/dist/chunks/dropdown.4662f8ae.js +775 -0
- package/dist/chunks/dropdown.4662f8ae.js.map +1 -0
- package/dist/chunks/{error-message.21af0516.js → error-message.c20f927f.js} +2 -2
- package/dist/chunks/{error-message.21af0516.js.map → error-message.c20f927f.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.ca8f474f.js → fixed-scroller.ec9db01f.js} +2 -2
- package/dist/chunks/{fixed-scroller.ca8f474f.js.map → fixed-scroller.ec9db01f.js.map} +1 -1
- package/dist/chunks/{footer-actions.e76a978c.js → footer-actions.94b44fe4.js} +3 -3
- package/dist/chunks/{footer-actions.e76a978c.js.map → footer-actions.94b44fe4.js.map} +1 -1
- package/dist/chunks/{index.444f90de.js → index.0375524d.js} +12 -12
- package/dist/chunks/{index.444f90de.js.map → index.0375524d.js.map} +1 -1
- package/dist/chunks/{index.be0a3199.js → index.072f0d08.js} +2 -2
- package/dist/chunks/{index.be0a3199.js.map → index.072f0d08.js.map} +1 -1
- package/dist/chunks/{index.6c541a32.js → index.1b77f5a5.js} +5 -5
- package/dist/chunks/{index.6c541a32.js.map → index.1b77f5a5.js.map} +1 -1
- package/dist/chunks/{index.6f78041d.js → index.32095db1.js} +2 -2
- package/dist/chunks/{index.6f78041d.js.map → index.32095db1.js.map} +1 -1
- package/dist/chunks/{index.37a58c80.js → index.4768f397.js} +2 -2
- package/dist/chunks/{index.37a58c80.js.map → index.4768f397.js.map} +1 -1
- package/dist/chunks/{index.37ca1965.js → index.8b4ee10c.js} +6 -6
- package/dist/chunks/{index.37ca1965.js.map → index.8b4ee10c.js.map} +1 -1
- package/dist/chunks/{index.f100ce1c.js → index.b7b4b0fb.js} +3 -3
- package/dist/chunks/{index.f100ce1c.js.map → index.b7b4b0fb.js.map} +1 -1
- package/dist/chunks/{index.230b62ea.js → index.cc99e554.js} +7 -7
- package/dist/chunks/{index.230b62ea.js.map → index.cc99e554.js.map} +1 -1
- package/dist/chunks/{index.ba69cab6.js → index.d553d3d1.js} +2 -2
- package/dist/chunks/{index.ba69cab6.js.map → index.d553d3d1.js.map} +1 -1
- package/dist/chunks/{index.78379565.js → index.e02d365d.js} +6 -5
- package/dist/chunks/{index.78379565.js.map → index.e02d365d.js.map} +1 -1
- package/dist/chunks/{index.96ab659e.js → index.e90d4949.js} +3 -3
- package/dist/chunks/{index.96ab659e.js.map → index.e90d4949.js.map} +1 -1
- package/dist/chunks/{index.a6dd6aff.js → index.ee59cac5.js} +12 -11
- package/dist/chunks/{index.a6dd6aff.js.map → index.ee59cac5.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.bd35fb29.js → listbox-option-tag.05a66d82.js} +8 -7
- package/dist/chunks/{listbox-option-tag.bd35fb29.js.map → listbox-option-tag.05a66d82.js.map} +1 -1
- package/dist/chunks/{loading-button.5a640904.js → loading-button.07e45a75.js} +2 -2
- package/dist/chunks/{loading-button.5a640904.js.map → loading-button.07e45a75.js.map} +1 -1
- package/dist/chunks/{tooltip.5f2a696a.js → tooltip.de1d6ce8.js} +3 -3
- package/dist/chunks/{tooltip.5f2a696a.js.map → tooltip.de1d6ce8.js.map} +1 -1
- package/dist/chunks/{listbox.7ac5cb56.js → use-cached-selected-values.97a59dde.js} +496 -433
- package/dist/chunks/use-cached-selected-values.97a59dde.js.map +1 -0
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +12 -11
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +6 -6
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +1094 -935
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +4 -4
- package/dist/index.js +1265 -1043
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +14 -13
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +5 -5
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +5 -5
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +6 -6
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +5 -5
- package/dist/typography.js +1 -1
- package/dist/web-types.json +257 -77
- package/package.json +2 -2
- package/dist/chunks/dropdown.9d937f63.js +0 -797
- package/dist/chunks/dropdown.9d937f63.js.map +0 -1
- package/dist/chunks/listbox.7ac5cb56.js.map +0 -1
|
@@ -507,8 +507,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
507
507
|
condensed: boolean;
|
|
508
508
|
outline: boolean;
|
|
509
509
|
loading: boolean;
|
|
510
|
-
emptyState: any;
|
|
511
510
|
lazyLoadType: BentoLazyLoadType;
|
|
511
|
+
emptyState: any;
|
|
512
512
|
fitContent: boolean;
|
|
513
513
|
hasResizableColumns: boolean;
|
|
514
514
|
selectableAcrossPages: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { BentoListboxEvent,
|
|
2
|
+
import { BentoListboxEvent, BentoListboxOptions } from "../../../../../types";
|
|
3
3
|
import { BentoDropdownEvent } from '../../../dropdown.types';
|
|
4
|
-
export declare const useDropdownOptionsListbox: (selectedValue: Ref<
|
|
4
|
+
export declare const useDropdownOptionsListbox: (selectedValue: Ref<BentoListboxOptions>, multiple: Ref<boolean>, isOpen: Ref<boolean>, emit: (event: BentoListboxEvent | BentoDropdownEvent, selectedValue?: BentoListboxOptions) => void) => {
|
|
5
5
|
actions: import("vue").ComputedRef<({
|
|
6
6
|
title: string;
|
|
7
7
|
event: () => void;
|
|
@@ -11,13 +11,19 @@ export declare const useDropdownOptionsListbox: (selectedValue: Ref<BentoListbox
|
|
|
11
11
|
event: () => void;
|
|
12
12
|
disabled?: undefined;
|
|
13
13
|
})[]>;
|
|
14
|
-
internalSelectedValue: Ref<
|
|
14
|
+
internalSelectedValue: Ref<{
|
|
15
|
+
data?: unknown;
|
|
16
|
+
description?: string;
|
|
17
|
+
value: import("../../../../../types").BentoListboxValue;
|
|
18
|
+
items?: any[];
|
|
19
|
+
label: string;
|
|
20
|
+
}[]>;
|
|
15
21
|
listeners: {
|
|
16
|
-
select: (newSelectedValue:
|
|
22
|
+
select: (newSelectedValue: BentoListboxOptions) => void;
|
|
17
23
|
"show-more": () => void;
|
|
18
|
-
"tab-pressed": (newSelectedValue:
|
|
19
|
-
"space-pressed": (newSelectedValue:
|
|
20
|
-
"enter-pressed": (newSelectedValue:
|
|
24
|
+
"tab-pressed": (newSelectedValue: BentoListboxOptions) => void;
|
|
25
|
+
"space-pressed": (newSelectedValue: BentoListboxOptions) => void;
|
|
26
|
+
"enter-pressed": (newSelectedValue: BentoListboxOptions) => void;
|
|
21
27
|
};
|
|
22
28
|
onEscapeKey: () => void;
|
|
23
29
|
onOutsideDropdownClick: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { BentoListboxOptions
|
|
2
|
+
import { BentoListboxOptions } from "../../../../types";
|
|
3
3
|
import { BentoDropdownEmptyStateProps, BentoDropdownLazyLoadType, BentoDropdownSize, BentoDropdownVirtulisationOptions } from '../../dropdown.types';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
ariaLabel: {
|
|
@@ -53,7 +53,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
53
53
|
required: true;
|
|
54
54
|
};
|
|
55
55
|
selectedValue: {
|
|
56
|
-
type: PropType<
|
|
56
|
+
type: PropType<BentoListboxOptions>;
|
|
57
57
|
default: any;
|
|
58
58
|
};
|
|
59
59
|
searching: {
|
|
@@ -77,17 +77,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
77
77
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
78
78
|
"close-dropdown": () => void;
|
|
79
79
|
} & {
|
|
80
|
-
"enter-pressed": (newSelectedValue:
|
|
80
|
+
"enter-pressed": (newSelectedValue: BentoListboxOptions) => void;
|
|
81
81
|
} & {
|
|
82
82
|
"escape-pressed": () => void;
|
|
83
83
|
} & {
|
|
84
|
-
select: (newSelectedValue:
|
|
84
|
+
select: (newSelectedValue: BentoListboxOptions) => void;
|
|
85
85
|
} & {
|
|
86
86
|
"show-more": () => void;
|
|
87
87
|
} & {
|
|
88
|
-
"space-pressed": (newSelectedValue:
|
|
88
|
+
"space-pressed": (newSelectedValue: BentoListboxOptions) => void;
|
|
89
89
|
} & {
|
|
90
|
-
"tab-pressed": (newSelectedValue:
|
|
90
|
+
"tab-pressed": (newSelectedValue: BentoListboxOptions) => void;
|
|
91
91
|
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
92
92
|
ariaLabel: {
|
|
93
93
|
type: StringConstructor;
|
|
@@ -140,7 +140,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
140
140
|
required: true;
|
|
141
141
|
};
|
|
142
142
|
selectedValue: {
|
|
143
|
-
type: PropType<
|
|
143
|
+
type: PropType<BentoListboxOptions>;
|
|
144
144
|
default: any;
|
|
145
145
|
};
|
|
146
146
|
searching: {
|
|
@@ -164,13 +164,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
164
164
|
multiple: boolean;
|
|
165
165
|
loading: boolean;
|
|
166
166
|
isOptionDisabled: (optionValue: import("../../../../types").BentoListboxOptionItem) => boolean;
|
|
167
|
-
selectedValue:
|
|
167
|
+
selectedValue: BentoListboxOptions;
|
|
168
168
|
staticCategories: boolean;
|
|
169
169
|
ariaLabel: string;
|
|
170
170
|
searching: boolean;
|
|
171
|
-
emptyState: BentoDropdownEmptyStateProps;
|
|
172
171
|
hasMoreItems: boolean;
|
|
173
172
|
lazyLoadType: "button" | "none" | "automatic" | BentoDropdownLazyLoadType;
|
|
173
|
+
emptyState: BentoDropdownEmptyStateProps;
|
|
174
174
|
virtualScroll: BentoDropdownVirtulisationOptions;
|
|
175
175
|
inputSize: "DropdownInputDefault" | "DropdownInputSmall" | BentoDropdownSize;
|
|
176
176
|
}>, Record<string, (_: any) => any>>;
|
|
@@ -237,9 +237,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
237
|
isOptionDisabled: (optionValue: import("../../../../../types").BentoListboxOptionItem) => boolean;
|
|
238
238
|
staticCategories: boolean;
|
|
239
239
|
ariaLabel: string;
|
|
240
|
-
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
241
240
|
hasMoreItems: boolean;
|
|
242
241
|
lazyLoadType: "button" | "none" | "automatic" | import("../../../../../types").BentoListboxLazyLoadType;
|
|
242
|
+
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
243
243
|
virtualScroll: import("../../../../../types").BentoListboxVirtulisationOptions;
|
|
244
244
|
dynamicFiltering: boolean;
|
|
245
245
|
showSlotContentInMultiple: boolean;
|
|
@@ -249,9 +249,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
249
249
|
isOptionDisabled: (optionValue: import("../../../../../types").BentoListboxOptionItem) => boolean;
|
|
250
250
|
staticCategories: boolean;
|
|
251
251
|
ariaLabel: string;
|
|
252
|
-
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
253
252
|
hasMoreItems: boolean;
|
|
254
253
|
lazyLoadType: "button" | "none" | "automatic" | import("../../../../../types").BentoListboxLazyLoadType;
|
|
254
|
+
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
255
255
|
virtualScroll: import("../../../../../types").BentoListboxVirtulisationOptions;
|
|
256
256
|
dynamicFiltering: boolean;
|
|
257
257
|
showSlotContentInMultiple: boolean;
|
|
@@ -237,9 +237,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
237
|
isOptionDisabled: (optionValue: import("../../../../../types").BentoListboxOptionItem) => boolean;
|
|
238
238
|
staticCategories: boolean;
|
|
239
239
|
ariaLabel: string;
|
|
240
|
-
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
241
240
|
hasMoreItems: boolean;
|
|
242
241
|
lazyLoadType: "button" | "none" | "automatic" | import("../../../../../types").BentoListboxLazyLoadType;
|
|
242
|
+
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
243
243
|
virtualScroll: import("../../../../../types").BentoListboxVirtulisationOptions;
|
|
244
244
|
dynamicFiltering: boolean;
|
|
245
245
|
showSlotContentInMultiple: boolean;
|
|
@@ -237,9 +237,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
237
|
isOptionDisabled: (optionValue: import("../../../../../types").BentoListboxOptionItem) => boolean;
|
|
238
238
|
staticCategories: boolean;
|
|
239
239
|
ariaLabel: string;
|
|
240
|
-
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
241
240
|
hasMoreItems: boolean;
|
|
242
241
|
lazyLoadType: "button" | "none" | "automatic" | import("../../../../../types").BentoListboxLazyLoadType;
|
|
242
|
+
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
243
243
|
virtualScroll: import("../../../../../types").BentoListboxVirtulisationOptions;
|
|
244
244
|
dynamicFiltering: boolean;
|
|
245
245
|
showSlotContentInMultiple: boolean;
|
|
@@ -237,9 +237,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
237
|
isOptionDisabled: (optionValue: import("../../../../../types").BentoListboxOptionItem) => boolean;
|
|
238
238
|
staticCategories: boolean;
|
|
239
239
|
ariaLabel: string;
|
|
240
|
-
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
241
240
|
hasMoreItems: boolean;
|
|
242
241
|
lazyLoadType: "button" | "none" | "automatic" | import("../../../../../types").BentoListboxLazyLoadType;
|
|
242
|
+
emptyState: import("../../../../../types").BentoListboxEmptyStateProps;
|
|
243
243
|
virtualScroll: import("../../../../../types").BentoListboxVirtulisationOptions;
|
|
244
244
|
dynamicFiltering: boolean;
|
|
245
245
|
showSlotContentInMultiple: boolean;
|
package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useDisplayValue:
|
|
1
|
+
import { UseDisplayValueOptions } from './use-display-value.types';
|
|
2
|
+
export declare const useDisplayValue: ({ items, placeholder, selectedValues }: UseDisplayValueOptions) => import("vue").ComputedRef<string>;
|
package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts
CHANGED
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import { BentoListboxOptions
|
|
1
|
+
import { BentoListboxOptions } from "../../../types";
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
-
|
|
4
|
-
export interface SingleSelectOptions {
|
|
3
|
+
export interface UseDisplayValueOptions {
|
|
5
4
|
items: Ref<BentoListboxOptions>;
|
|
6
5
|
placeholder: Ref<string>;
|
|
7
|
-
|
|
8
|
-
staticCategories: boolean;
|
|
6
|
+
selectedValues: Ref<BentoListboxOptions>;
|
|
9
7
|
}
|
|
10
|
-
export interface MultiSelectOptions {
|
|
11
|
-
items: Ref<BentoListboxOptions>;
|
|
12
|
-
placeholder: Ref<string>;
|
|
13
|
-
selectedValues: Ref<BentoListboxSelectedValue>;
|
|
14
|
-
}
|
|
15
|
-
export interface CategoryMultiSelectOptions {
|
|
16
|
-
items: Ref<BentoListboxOptions>;
|
|
17
|
-
placeholder: Ref<string>;
|
|
18
|
-
selectedValues: Ref<BentoListboxSelectedValue>;
|
|
19
|
-
}
|
|
20
|
-
interface UseDisplayValueOptions {
|
|
21
|
-
items: Ref<BentoListboxOptions>;
|
|
22
|
-
placeholder: Ref<string>;
|
|
23
|
-
value: Ref<BentoListboxSelectedValue>;
|
|
24
|
-
multiple: Ref<boolean>;
|
|
25
|
-
staticCategories: Ref<boolean>;
|
|
26
|
-
}
|
|
27
|
-
export type UseDisplayValue = (options: UseDisplayValueOptions) => ComputedRef<string>;
|
|
28
|
-
export {};
|
|
@@ -239,9 +239,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
239
239
|
isOptionDisabled: (optionValue: import("../../types").BentoListboxOptionItem) => boolean;
|
|
240
240
|
staticCategories: boolean;
|
|
241
241
|
ariaLabel: string;
|
|
242
|
-
emptyState: BentoDropdownEmptyStateProps;
|
|
243
242
|
hasMoreItems: boolean;
|
|
244
243
|
lazyLoadType: "button" | "none" | "automatic" | BentoDropdownLazyLoadType;
|
|
244
|
+
emptyState: BentoDropdownEmptyStateProps;
|
|
245
245
|
virtualScroll: BentoDropdownVirtulisationOptions;
|
|
246
246
|
dynamicFiltering: boolean;
|
|
247
247
|
showSlotContentInMultiple: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoModalEvent } from "../../../modal";
|
|
3
|
-
import { BentoFilterBarModel, BentoFilterItemType, BentoFilterModel } from "
|
|
3
|
+
import { BentoFilterBarModel, BentoFilterItemType, BentoFilterModel } from "../../filter-bar.types";
|
|
4
4
|
import { AllFiltersModalEvent } from './all-filters-modal.types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
value: {
|
package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoRangeFilter } from './range-filter.vue';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoListboxSelectedValue } from "../../../../../../types";
|
|
3
|
+
import { BentoSelectFilterOptions } from '../../../../filter-bar.types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
|
+
defaultValue: {
|
|
6
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
field: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
onlySlot: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
options: {
|
|
22
|
+
type: PropType<BentoSelectFilterOptions>;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
value: {
|
|
26
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
30
|
+
input: (value: any) => void;
|
|
31
|
+
} & {
|
|
32
|
+
update: (value: any) => void;
|
|
33
|
+
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
defaultValue: {
|
|
35
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
36
|
+
default: any;
|
|
37
|
+
};
|
|
38
|
+
field: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
label: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
onlySlot: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
options: {
|
|
51
|
+
type: PropType<BentoSelectFilterOptions>;
|
|
52
|
+
default: any;
|
|
53
|
+
};
|
|
54
|
+
value: {
|
|
55
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
}>>, {
|
|
59
|
+
value: BentoListboxSelectedValue;
|
|
60
|
+
options: BentoSelectFilterOptions;
|
|
61
|
+
defaultValue: BentoListboxSelectedValue;
|
|
62
|
+
onlySlot: boolean;
|
|
63
|
+
}>, Record<string, (_: any) => any>>;
|
|
64
|
+
export default _default;
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoListboxSelectedValue } from "../../../../../../types";
|
|
3
|
+
import { BentoSelectFilterOptions } from '../../../../filter-bar.types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
|
+
defaultValue: {
|
|
6
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
field: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
onlySlot: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
options: {
|
|
22
|
+
type: PropType<BentoSelectFilterOptions>;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
value: {
|
|
26
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
30
|
+
input: (updatedProps: any) => void;
|
|
31
|
+
} & {
|
|
32
|
+
update: (updatedProps: any) => void;
|
|
33
|
+
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
defaultValue: {
|
|
35
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
36
|
+
default: any;
|
|
37
|
+
};
|
|
38
|
+
field: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
label: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
onlySlot: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
options: {
|
|
51
|
+
type: PropType<BentoSelectFilterOptions>;
|
|
52
|
+
default: any;
|
|
53
|
+
};
|
|
54
|
+
value: {
|
|
55
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
}>>, {
|
|
59
|
+
value: BentoListboxSelectedValue;
|
|
60
|
+
options: BentoSelectFilterOptions;
|
|
61
|
+
defaultValue: BentoListboxSelectedValue;
|
|
62
|
+
onlySlot: boolean;
|
|
63
|
+
}>, Record<string, (_: any) => any>>;
|
|
64
|
+
export default _default;
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
1
|
import { BentoListboxSelectedValue } from "../../../../types";
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { BentoSelectFilterOptions } from '../../filter-bar.types';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
defaultValue: {
|
|
6
6
|
type: PropType<BentoListboxSelectedValue>;
|
|
7
7
|
default: any;
|
|
@@ -26,25 +26,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
type: PropType<BentoListboxSelectedValue>;
|
|
27
27
|
default: any;
|
|
28
28
|
};
|
|
29
|
-
}, {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
isSecondaryButtonDisabled: import("vue").ComputedRef<boolean>;
|
|
35
|
-
listboxFilterId: import("vue").ComputedRef<string>;
|
|
36
|
-
noResultsMessage: import("vue").ComputedRef<string>;
|
|
37
|
-
slots: import("vue/types/v3-setup-context").Slots;
|
|
38
|
-
buttonLabel: import("vue").ComputedRef<string>;
|
|
39
|
-
buttonSecondaryLabel: import("vue").ComputedRef<string>;
|
|
40
|
-
searchTerm: import("vue").Ref<string>;
|
|
41
|
-
clearFilter: () => void;
|
|
42
|
-
closeFilter: () => void;
|
|
43
|
-
onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
|
|
44
|
-
openFilter: () => void;
|
|
45
|
-
updateFilter: () => void;
|
|
46
|
-
resetFilter: () => void;
|
|
47
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoFilterEvent[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
30
|
+
input: (updatedProps: any) => void;
|
|
31
|
+
} & {
|
|
32
|
+
update: (updatedProps: any) => void;
|
|
33
|
+
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
48
34
|
defaultValue: {
|
|
49
35
|
type: PropType<BentoListboxSelectedValue>;
|
|
50
36
|
default: any;
|
|
@@ -74,5 +60,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
60
|
options: BentoSelectFilterOptions;
|
|
75
61
|
defaultValue: BentoListboxSelectedValue;
|
|
76
62
|
onlySlot: boolean;
|
|
77
|
-
}
|
|
63
|
+
}>, Record<string, (_: any) => any> & Record<string, (_: any) => any>>;
|
|
78
64
|
export default _default;
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { BentoListboxOptionItem, BentoListboxOptions
|
|
2
|
+
import { BentoListboxOptionItem, BentoListboxOptions } from "../../../../../../../types";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
isOptionDisabled: {
|
|
5
5
|
type: PropType<(optionValue: BentoListboxOptionItem) => boolean>;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
13
|
-
"unselect-item": (value:
|
|
13
|
+
"unselect-item": (value: BentoListboxOptionItem) => void;
|
|
14
14
|
} & {
|
|
15
15
|
"unselect-category": (item: BentoListboxOptionItem) => void;
|
|
16
16
|
}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -35,10 +35,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
'b-listbox-multi-select-options__static-category-option': boolean;
|
|
36
36
|
'b-listbox-multi-select-options__category-option': boolean;
|
|
37
37
|
}>;
|
|
38
|
-
isCategory: (option: BentoListboxOptionItem) => boolean;
|
|
39
38
|
isOptionSelected: (option: any) => boolean;
|
|
40
39
|
shouldShowDescription: (option: BentoListboxOptionItem) => boolean;
|
|
41
|
-
toggleCheckboxSelection: (
|
|
40
|
+
toggleCheckboxSelection: (option: BentoListboxOptionItem) => void;
|
|
42
41
|
selectSearch: (selectedValue: any, option: any) => void;
|
|
43
42
|
BentoListboxEvent: typeof BentoListboxEvent;
|
|
44
43
|
ListboxMultiSelectOptionsEvent: typeof ListboxMultiSelectOptionsEvent;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { BentoListboxEvent, BentoListboxOptionItem, BentoListboxOptions,
|
|
2
|
+
import { BentoListboxEvent, BentoListboxLazyLoadType, BentoListboxOptionItem, BentoListboxOptions, BentoListboxValue } from "../../../../../types";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
hasMoreItems: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
4
8
|
isOptionDisabled: {
|
|
5
9
|
type: PropType<(optionValue: BentoListboxOptionItem) => boolean>;
|
|
6
10
|
default: () => false;
|
|
@@ -9,13 +13,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
13
|
type: PropType<BentoListboxOptions>;
|
|
10
14
|
required: true;
|
|
11
15
|
};
|
|
16
|
+
lazyLoadType: {
|
|
17
|
+
type: PropType<"button" | "none" | "automatic" | BentoListboxLazyLoadType>;
|
|
18
|
+
default: BentoListboxLazyLoadType;
|
|
19
|
+
validator: (value: BentoListboxLazyLoadType) => boolean;
|
|
20
|
+
};
|
|
12
21
|
searching: {
|
|
13
22
|
type: BooleanConstructor;
|
|
14
23
|
default: boolean;
|
|
15
24
|
};
|
|
16
25
|
selectedValues: {
|
|
17
|
-
type: PropType<
|
|
18
|
-
|
|
26
|
+
type: PropType<BentoListboxOptions>;
|
|
27
|
+
required: true;
|
|
19
28
|
};
|
|
20
29
|
staticCategories: {
|
|
21
30
|
type: BooleanConstructor;
|
|
@@ -30,13 +39,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
39
|
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
31
40
|
isMultiLevelSelect: import("vue").ComputedRef<boolean>;
|
|
32
41
|
flattenedItemsList: import("vue").ComputedRef<any[]>;
|
|
33
|
-
selectedItemsList: import("vue").
|
|
42
|
+
selectedItemsList: import("vue").ComputedRef<BentoListboxValue[]>;
|
|
34
43
|
selectAllCheckboxText: import("vue").ComputedRef<string>;
|
|
35
|
-
selectedOptions: import("vue").ComputedRef<
|
|
44
|
+
selectedOptions: import("vue").ComputedRef<BentoListboxOptions>;
|
|
45
|
+
showSelectAllCheckbox: import("vue").ComputedRef<boolean>;
|
|
36
46
|
slots: import("vue/types/v3-setup-context").Slots;
|
|
37
47
|
BentoListboxEvent: typeof BentoListboxEvent;
|
|
38
48
|
selectAllCategory: (category: BentoListboxOptionItem) => void;
|
|
39
|
-
toggleCheckboxSelection: (eventName: any,
|
|
49
|
+
toggleCheckboxSelection: (eventName: any, selectedOption: BentoListboxOptionItem) => void;
|
|
40
50
|
toggleSelectAll: (selectedValue: boolean) => void;
|
|
41
51
|
unselectAllCategory: (category: BentoListboxOptionItem) => void;
|
|
42
52
|
listboxListeners: {
|
|
@@ -46,6 +56,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
56
|
"keydown:end": () => void;
|
|
47
57
|
};
|
|
48
58
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoListboxEvent.SELECT[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
hasMoreItems: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
49
63
|
isOptionDisabled: {
|
|
50
64
|
type: PropType<(optionValue: BentoListboxOptionItem) => boolean>;
|
|
51
65
|
default: () => false;
|
|
@@ -54,13 +68,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
68
|
type: PropType<BentoListboxOptions>;
|
|
55
69
|
required: true;
|
|
56
70
|
};
|
|
71
|
+
lazyLoadType: {
|
|
72
|
+
type: PropType<"button" | "none" | "automatic" | BentoListboxLazyLoadType>;
|
|
73
|
+
default: BentoListboxLazyLoadType;
|
|
74
|
+
validator: (value: BentoListboxLazyLoadType) => boolean;
|
|
75
|
+
};
|
|
57
76
|
searching: {
|
|
58
77
|
type: BooleanConstructor;
|
|
59
78
|
default: boolean;
|
|
60
79
|
};
|
|
61
80
|
selectedValues: {
|
|
62
|
-
type: PropType<
|
|
63
|
-
|
|
81
|
+
type: PropType<BentoListboxOptions>;
|
|
82
|
+
required: true;
|
|
64
83
|
};
|
|
65
84
|
staticCategories: {
|
|
66
85
|
type: BooleanConstructor;
|
|
@@ -70,6 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
89
|
isOptionDisabled: (optionValue: BentoListboxOptionItem) => boolean;
|
|
71
90
|
staticCategories: boolean;
|
|
72
91
|
searching: boolean;
|
|
73
|
-
|
|
92
|
+
hasMoreItems: boolean;
|
|
93
|
+
lazyLoadType: "button" | "none" | "automatic" | BentoListboxLazyLoadType;
|
|
74
94
|
}>;
|
|
75
95
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { BentoListboxEvent, BentoListboxOptions
|
|
2
|
+
import { BentoListboxEvent, BentoListboxOptions } from "../../../../../types";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
isOptionDisabled: {
|
|
5
5
|
type: PropType<(optionValue: import("../../../../../types").BentoListboxOptionItem) => boolean>;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
selectedValue: {
|
|
13
|
-
type: PropType<
|
|
13
|
+
type: PropType<BentoListboxOptions>;
|
|
14
14
|
default: any;
|
|
15
15
|
};
|
|
16
16
|
staticCategories: {
|
|
@@ -20,9 +20,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
}, {
|
|
21
21
|
BentoListboxEvent: typeof BentoListboxEvent;
|
|
22
22
|
listboxItemRef: import("vue").Ref<any[]>;
|
|
23
|
+
selectedItem: import("vue").ComputedRef<import("../../../../../types").BentoListboxOptionItem>;
|
|
23
24
|
slots: import("vue/types/v3-setup-context").Slots;
|
|
24
25
|
hasCategories: import("vue").ComputedRef<boolean>;
|
|
25
|
-
onOptionSelected: (eventName: any) => (
|
|
26
|
+
onOptionSelected: (eventName: any) => (selectedOption: BentoListboxOptions) => void;
|
|
26
27
|
listboxListeners: {
|
|
27
28
|
"keydown:arrow-up": (event?: CustomEvent<KeyboardEvent>) => void;
|
|
28
29
|
"keydown:arrow-down": (event?: CustomEvent<KeyboardEvent>) => void;
|
|
@@ -30,10 +31,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
31
|
"keydown:end": () => void;
|
|
31
32
|
};
|
|
32
33
|
listboxOptionListeners: {
|
|
33
|
-
select: (
|
|
34
|
-
"space-pressed": (
|
|
35
|
-
"tab-pressed": (
|
|
36
|
-
"enter-pressed": (
|
|
34
|
+
select: (selectedOption: BentoListboxOptions) => void;
|
|
35
|
+
"space-pressed": (selectedOption: BentoListboxOptions) => void;
|
|
36
|
+
"tab-pressed": (selectedOption: BentoListboxOptions) => void;
|
|
37
|
+
"enter-pressed": (selectedOption: BentoListboxOptions) => void;
|
|
37
38
|
};
|
|
38
39
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, (BentoListboxEvent.SELECT | BentoListboxEvent.ENTER | BentoListboxEvent.SPACE | BentoListboxEvent.TAB)[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
39
40
|
isOptionDisabled: {
|
|
@@ -45,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
46
|
required: true;
|
|
46
47
|
};
|
|
47
48
|
selectedValue: {
|
|
48
|
-
type: PropType<
|
|
49
|
+
type: PropType<BentoListboxOptions>;
|
|
49
50
|
default: any;
|
|
50
51
|
};
|
|
51
52
|
staticCategories: {
|
|
@@ -54,7 +55,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
55
|
};
|
|
55
56
|
}>>, {
|
|
56
57
|
isOptionDisabled: (optionValue: import("../../../../../types").BentoListboxOptionItem) => boolean;
|
|
57
|
-
selectedValue:
|
|
58
|
+
selectedValue: BentoListboxOptions;
|
|
58
59
|
staticCategories: boolean;
|
|
59
60
|
}>;
|
|
60
61
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from "../../../../../types";
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export declare const useCachedSelectedValues: (items: Ref<BentoListboxOptions>, selectedValues: Ref<BentoListboxSelectedValue>, multiple: Ref<boolean>) => {
|
|
4
|
+
cachedSelectedValues: Ref<{
|
|
5
|
+
data?: unknown;
|
|
6
|
+
description?: string;
|
|
7
|
+
value: BentoListboxValue;
|
|
8
|
+
items?: any[];
|
|
9
|
+
label: string;
|
|
10
|
+
}[]>;
|
|
11
|
+
simpleSelectedValuesCache: Ref<BentoListboxSelectedValue>;
|
|
12
|
+
resetCache: () => void;
|
|
13
|
+
setCachedValues: (newSelectedValues: BentoListboxOptions) => void;
|
|
14
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as BentoListbox } from './listbox.vue';
|
|
2
2
|
export { ListboxOptionTag } from './components/listbox-option-tag';
|
|
3
3
|
export { useMultiLevelItems } from './composables/use-multi-level-items/use-multi-level-items';
|
|
4
|
+
export { useCachedSelectedValues } from './composables/use-cached-selected-values/use-cached-selected-values';
|