@adyen/bento-vue2 0.3.0 → 0.4.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/alert/alert.vue.d.ts +1 -1
- package/dist/@types/components/button/button.vue.d.ts +1 -1
- package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +1 -1
- package/dist/@types/components/card/card.vue.d.ts +20 -1
- package/dist/@types/components/country/composables/useCountryCapital/useCountryCapital.d.ts +1 -1
- package/dist/@types/components/country/composables/useCountryName/useCountryName.d.ts +1 -1
- package/dist/@types/components/country/composables/useCountryPhoneCode/useCountryPhoneCode.d.ts +1 -1
- package/dist/@types/components/country/country.vue.d.ts +1 -1
- package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +3 -3
- package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -1
- package/dist/@types/components/data-grid/composables/useConfigSettings.d.ts +4 -4
- package/dist/@types/components/data-grid/data-grid.types.d.ts +3 -2
- package/dist/@types/components/data-grid/data-grid.vue.d.ts +5 -6
- package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
- package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +2 -2
- package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +9 -0
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +1 -1
- package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +5 -5
- package/dist/@types/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +2 -2
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +2 -2
- package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +6 -6
- package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +4 -4
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +2 -2
- package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +4 -4
- package/dist/@types/components/dropdown/dropdown.vue.d.ts +2 -1
- package/dist/@types/components/filter-bar/components/input-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +44 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +52 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +44 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +44 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/index.d.ts +1 -0
- package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +55 -0
- package/dist/@types/components/filter-bar/filter-bar.types.d.ts +34 -7
- package/dist/@types/components/internal/index.d.ts +1 -0
- package/dist/@types/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options.vue.d.ts +37 -0
- package/dist/@types/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +4 -1
- package/dist/@types/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +3 -3
- package/dist/@types/components/internal/listbox/listbox.vue.d.ts +3 -0
- package/dist/@types/components/payment-method/payment-method.vue.d.ts +1 -1
- package/dist/@types/components/popper-container/popper-container.utils.d.ts +1 -1
- package/dist/@types/components.d.ts +0 -2
- package/dist/@types/composables/initials.d.ts +1 -1
- package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +2 -2
- package/dist/@types/composables/useDynamicImport.d.ts +1 -1
- package/dist/@types/directives/click-outside/on-click-outside.d.ts +1 -1
- package/dist/@types/directives/click-outside/useEventListener/index.d.ts +1 -1
- package/dist/@types/directives/click-outside/utils.d.ts +1 -1
- package/dist/@types/directives/tooltip/tooltip.types.d.ts +1 -1
- package/dist/@types/index.d.ts +0 -1
- package/dist/@types/plugins/toastController.d.ts +1 -1
- package/dist/@types/types/listbox.d.ts +1 -1
- package/dist/@types/utils/ts/aria-label.d.ts +1 -1
- package/dist/@types/utils/ts/events.d.ts +1 -1
- package/dist/index.js +3512 -3145
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/@types/components/filter-bar/components/text-filter/index.d.ts +0 -1
- /package/dist/@types/components/filter-bar/components/{text-filter/text-filter.vue.d.ts → input-filter/input-filter.vue.d.ts} +0 -0
- /package/dist/@types/components/{avatar → internal/avatar}/avatar.vue.d.ts +0 -0
- /package/dist/@types/components/{avatar → internal/avatar}/index.d.ts +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoListboxSelectedValue } from '@/types';
|
|
3
|
+
import { BentoSelectPaymentMethodFilterOptions } from '@/components/filter-bar';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
options: {
|
|
6
|
+
type: PropType<BentoSelectPaymentMethodFilterOptions>;
|
|
7
|
+
default: any;
|
|
8
|
+
};
|
|
9
|
+
field: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
value: {
|
|
18
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
23
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
options: {
|
|
25
|
+
type: PropType<BentoSelectPaymentMethodFilterOptions>;
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
field: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
label: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
value: {
|
|
37
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
}>>, {
|
|
41
|
+
value: BentoListboxSelectedValue;
|
|
42
|
+
options: BentoSelectPaymentMethodFilterOptions;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BentoSelectTagFilter } from './select-tag-filter.vue';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoCountryVariant } from '@/components/country';
|
|
3
|
+
import { BentoListboxSelectedValue } from '@/types';
|
|
4
|
+
import { BentoSelectTagFilterOptions } from '@/components/filter-bar';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
options: {
|
|
7
|
+
type: PropType<BentoSelectTagFilterOptions>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
field: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
value: {
|
|
19
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
countryOptions: import("vue").ComputedRef<{
|
|
24
|
+
listboxItems: {
|
|
25
|
+
label: string;
|
|
26
|
+
value: import("@/types").BentoListboxValue;
|
|
27
|
+
data: import("../../../../../tag").BentoTagVariant;
|
|
28
|
+
}[];
|
|
29
|
+
multiple?: boolean;
|
|
30
|
+
isOptionDisabled?: import("@/types").BentoListboxIsOptionDisabled;
|
|
31
|
+
}>;
|
|
32
|
+
onUpdate: (selectedValue: BentoListboxSelectedValue) => void;
|
|
33
|
+
BentoCountryVariant: typeof BentoCountryVariant;
|
|
34
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "update"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
options: {
|
|
36
|
+
type: PropType<BentoSelectTagFilterOptions>;
|
|
37
|
+
default: any;
|
|
38
|
+
};
|
|
39
|
+
field: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
label: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
value: {
|
|
48
|
+
type: PropType<BentoListboxSelectedValue>;
|
|
49
|
+
default: any;
|
|
50
|
+
};
|
|
51
|
+
}>>, {
|
|
52
|
+
value: BentoListboxSelectedValue;
|
|
53
|
+
options: BentoSelectTagFilterOptions;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
@@ -1,19 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BentoAvatarListboxOptions } from '@/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types';
|
|
2
|
+
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue, OmitStrict } from '@/types';
|
|
3
|
+
import { BentoCountryListboxOptions } from '@/components/dropdown/components/variants/dropdown-country/dropdown-country.types';
|
|
4
|
+
import { BentoTagListboxOptions } from '@/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types';
|
|
5
|
+
import { BentoCountryVariant } from '@/components/country';
|
|
6
|
+
import { BentoCurrencyListboxOptions } from '@/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types';
|
|
7
|
+
import { BentoPaymentMethodListboxOptions } from '@/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types';
|
|
2
8
|
export interface BentoSelectFilterOptions {
|
|
3
9
|
listboxItems: BentoListboxOptions;
|
|
4
10
|
multiple?: boolean;
|
|
5
11
|
isOptionDisabled?: BentoListboxIsOptionDisabled;
|
|
6
12
|
}
|
|
7
|
-
export type
|
|
13
|
+
export type BentoSelectAvatarFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
14
|
+
listboxItems: BentoAvatarListboxOptions;
|
|
15
|
+
};
|
|
16
|
+
export type BentoSelectCountryFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
17
|
+
listboxItems: BentoCountryListboxOptions;
|
|
18
|
+
variant: BentoCountryVariant;
|
|
19
|
+
};
|
|
20
|
+
export type BentoSelectCurrencyFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
21
|
+
listboxItems: BentoCurrencyListboxOptions;
|
|
22
|
+
};
|
|
23
|
+
export type BentoSelectTagFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
24
|
+
listboxItems: BentoTagListboxOptions;
|
|
25
|
+
};
|
|
26
|
+
export type BentoSelectPaymentMethodFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {
|
|
27
|
+
listboxItems: BentoPaymentMethodListboxOptions;
|
|
28
|
+
};
|
|
29
|
+
export type BentoInputFilterValue = string | null;
|
|
8
30
|
export type BentoSelectFilterValue = BentoListboxSelectedValue;
|
|
9
31
|
export type BentoBooleanFilterValue = string | null;
|
|
10
|
-
export type BentoFilterBarValue =
|
|
11
|
-
export type BentoFilterOptions = BentoSelectFilterOptions | undefined;
|
|
32
|
+
export type BentoFilterBarValue = BentoInputFilterValue | BentoSelectFilterValue | BentoBooleanFilterValue;
|
|
33
|
+
export type BentoFilterOptions = BentoSelectFilterOptions | BentoSelectAvatarFilterOptions | BentoSelectCountryFilterOptions | BentoSelectCurrencyFilterOptions | BentoSelectPaymentMethodFilterOptions | BentoSelectTagFilterOptions | undefined;
|
|
12
34
|
export declare enum BentoFilterItemType {
|
|
13
|
-
|
|
14
|
-
SELECT = "BentoSelectFilter",
|
|
35
|
+
INPUT = "BentoInputFilter",
|
|
15
36
|
BOOLEAN = "BentoBooleanFilter",
|
|
16
|
-
RANGE = "BentoRangeFilter"
|
|
37
|
+
RANGE = "BentoRangeFilter",
|
|
38
|
+
SELECT = "BentoSelectFilter",
|
|
39
|
+
SELECT_AVATAR = "BentoSelectAvatarFilter",
|
|
40
|
+
SELECT_COUNTRY = "BentoSelectCountryFilter",
|
|
41
|
+
SELECT_CURRENCY = "BentoSelectCurrencyFilter",
|
|
42
|
+
SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter",
|
|
43
|
+
SELECT_TAG = "BentoSelectTagFilter"
|
|
17
44
|
}
|
|
18
45
|
export interface BentoFilterModel {
|
|
19
46
|
field: string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
3
|
+
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxValue } from '@/types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
isOptionDisabled: {
|
|
6
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
7
|
+
default: () => false;
|
|
8
|
+
};
|
|
9
|
+
items: {
|
|
10
|
+
type: PropType<BentoListboxOptions>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
selectedItemsList: {
|
|
14
|
+
type: PropType<BentoListboxValue[]>;
|
|
15
|
+
default: () => any[];
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
toggleCheckboxSelection: (value: BentoListboxValue) => void;
|
|
19
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
20
|
+
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("select" | "toggle-checkbox-selection")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
isOptionDisabled: {
|
|
22
|
+
type: PropType<BentoListboxIsOptionDisabled>;
|
|
23
|
+
default: () => false;
|
|
24
|
+
};
|
|
25
|
+
items: {
|
|
26
|
+
type: PropType<BentoListboxOptions>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
selectedItemsList: {
|
|
30
|
+
type: PropType<BentoListboxValue[]>;
|
|
31
|
+
default: () => any[];
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
isOptionDisabled: BentoListboxIsOptionDisabled;
|
|
35
|
+
selectedItemsList: BentoListboxValue[];
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoTypographyElement } from '@/components/typography';
|
|
3
|
-
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from '@/types';
|
|
3
|
+
import { BentoListboxIsOptionDisabled, BentoListboxOptionItem, BentoListboxOptions, BentoListboxSelectedValue, BentoListboxValue } from '@/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
isOptionDisabled: {
|
|
6
6
|
type: PropType<BentoListboxIsOptionDisabled>;
|
|
@@ -20,9 +20,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
}, {
|
|
22
22
|
isAllSelected: import("vue").ComputedRef<boolean>;
|
|
23
|
+
isAllItemsIncludingDisabled: import("vue").ComputedRef<boolean>;
|
|
24
|
+
isAnOptionSelected: import("vue").ComputedRef<boolean>;
|
|
23
25
|
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
24
26
|
selectedItemsList: import("vue").Ref<BentoListboxValue[]>;
|
|
25
27
|
selectAllCheckboxText: import("vue").ComputedRef<import("vue-i18n").default.TranslateResult>;
|
|
28
|
+
selectedOptions: import("vue").ComputedRef<BentoListboxOptionItem[]>;
|
|
26
29
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
27
30
|
toggleCheckboxSelection: (value: BentoListboxValue) => void;
|
|
28
31
|
toggleSelectAll: (selectedValue: boolean) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { BentoListboxOptionItem } from '@/types';
|
|
3
|
-
import { BentoTagVariant } from '
|
|
4
|
-
import { BentoTypographyElement } from '
|
|
3
|
+
import { BentoTagVariant } from '@/components/tag';
|
|
4
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
option: {
|
|
7
7
|
type: PropType<BentoListboxOptionItem>;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
}, {
|
|
11
11
|
variant: import("vue").ComputedRef<BentoTagVariant>;
|
|
12
12
|
BentoTypographyElement: typeof BentoTypographyElement;
|
|
13
|
-
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
14
14
|
option: {
|
|
15
15
|
type: PropType<BentoListboxOptionItem>;
|
|
16
16
|
required: true;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { BentoListboxIsOptionDisabled, BentoListboxOptions, BentoListboxSelectedValue } from '@/types';
|
|
3
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
ariaLabel: {
|
|
5
6
|
type: StringConstructor;
|
|
@@ -30,7 +31,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
31
|
default: any;
|
|
31
32
|
};
|
|
32
33
|
}, {
|
|
34
|
+
isSearchResultEmpty: import("vue").ComputedRef<boolean>;
|
|
33
35
|
onOptionSelected: (selectedValue: BentoListboxSelectedValue) => void;
|
|
36
|
+
BentoTypographyElement: typeof BentoTypographyElement;
|
|
34
37
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "select"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
35
38
|
ariaLabel: {
|
|
36
39
|
type: StringConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { BentoTypographyElement } from '
|
|
2
|
+
import { BentoTypographyElement } from '@/components/typography';
|
|
3
3
|
import { BentoPaymentMethodType } from './payment-method.types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
type: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VueNodeElement } from '
|
|
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;
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
|
|
13
13
|
// Bento
|
|
14
14
|
BentoAlert,
|
|
15
|
-
BentoAvatar,
|
|
16
15
|
BentoButton,
|
|
17
16
|
BentoButtonActions,
|
|
18
17
|
BentoButtonGroup,
|
|
@@ -62,7 +61,6 @@ declare module 'vue' {
|
|
|
62
61
|
|
|
63
62
|
// Bento
|
|
64
63
|
BentoAlert: typeof BentoAlert;
|
|
65
|
-
BentoAvatar: typeof BentoAvatar;
|
|
66
64
|
BentoButton: typeof BentoButton;
|
|
67
65
|
BentoButtonGroup: typeof BentoButtonGroup;
|
|
68
66
|
BentoButtonActions: typeof BentoButtonActions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type { Fn } from '
|
|
3
|
-
import { BentoListboxMultiSelectValue, BentoListboxOptions } from '
|
|
2
|
+
import type { Fn } from '@/types';
|
|
3
|
+
import { BentoListboxMultiSelectValue, BentoListboxOptions } from '@/types';
|
|
4
4
|
export declare const useCheckboxSelectAll: (selectedItemsList: Ref<BentoListboxMultiSelectValue>, items: ComputedRef<BentoListboxOptions>, selectAll: Fn, unselectAll: Fn) => {
|
|
5
5
|
isAllSelected: ComputedRef<boolean>;
|
|
6
6
|
isIndeterminate: ComputedRef<boolean>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MaybeRef } from '
|
|
1
|
+
import { MaybeRef } from '@/types';
|
|
2
2
|
export declare const useDynamicIconImport: (packageName: string, suffixSvgSrc: MaybeRef<string>, fallBackSrc: string) => import("vue").Ref<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { MaybeElementRef } from '
|
|
1
|
+
import type { MaybeElementRef } from '@/types';
|
|
2
2
|
import type { OnClickOutsideHandler, OnClickOutsideOptions } from './types';
|
|
3
3
|
export declare function onClickOutside<T extends OnClickOutsideOptions>(target: MaybeElementRef, handler: OnClickOutsideHandler, options?: T): () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Fn, MaybeComputedRef } from '
|
|
1
|
+
import type { Fn, MaybeComputedRef } from '@/types';
|
|
2
2
|
import type { Arrayable, GeneralEventListener } from './types';
|
|
3
3
|
export declare function useEventListener<E extends keyof WindowEventMap>(event: Arrayable<E>, listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
4
4
|
export declare function useEventListener<E extends keyof WindowEventMap>(target: Window, event: Arrayable<E>, listener: Arrayable<(this: Window, ev: WindowEventMap[E]) => unknown>, options?: MaybeComputedRef<boolean | AddEventListenerOptions>): Fn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MaybeComputedElementRef, MaybeElement } from '
|
|
1
|
+
import type { MaybeComputedElementRef, MaybeElement } from '@/types';
|
|
2
2
|
export declare const defaultWindow: Window & typeof globalThis;
|
|
3
3
|
export declare const isIOS: boolean;
|
|
4
4
|
export declare function resolveUnref<T>(r: any): T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PopperContainerPositionBasic } from '
|
|
1
|
+
import { PopperContainerPositionBasic } from '@/components/popper-container';
|
|
2
2
|
export declare const BentoTooltipPosition: {
|
|
3
3
|
TOP: PopperContainerPositionBasic.TOP;
|
|
4
4
|
RIGHT: PopperContainerPositionBasic.RIGHT;
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BentoSearchBarItem } from '
|
|
1
|
+
import { BentoSearchBarItem } from '@/components/search-bar';
|
|
2
2
|
export type BentoListboxValue = string | number;
|
|
3
3
|
export type BentoListboxMultiSelectValue = BentoListboxValue[];
|
|
4
4
|
export interface BentoListboxOptionItem extends BentoSearchBarItem {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ListenOptions } from '
|
|
1
|
+
import { ListenOptions } from '@/types/utils-events';
|
|
2
2
|
export declare function listen(target: EventTarget, type: string, listener: EventListener, options?: ListenOptions): any;
|