@adyen/bento-vue2 1.2.0 → 1.3.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/README.md +60 -29
- package/dist/@types/components.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +76 -30
- package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +0 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +11 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +11 -1
- 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/dropdown.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +23 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/form-layout/form-layout.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/form-layout/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +53 -22
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +51 -44
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +4 -12
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +50 -4
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +68 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +43 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +4 -0
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/types/utils-events.d.ts +0 -1
- package/dist/@types/packages/vue2/src/utils/ts/dev-environment.d.ts +1 -0
- package/dist/accordion.js +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/arrow-left.css +1 -0
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -0
- package/dist/assets/grid-layout.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 -0
- package/dist/assets/index41.css +1 -0
- 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-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +3 -3
- package/dist/checkbox.js +93 -84
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/arrow-left.1d5d08bd.js +26 -0
- package/dist/chunks/arrow-left.1d5d08bd.js.map +1 -0
- package/dist/chunks/{base-button.d4487ac9.js → base-button.98379576.js} +2 -2
- package/dist/chunks/{base-button.d4487ac9.js.map → base-button.98379576.js.map} +1 -1
- package/dist/chunks/{button-actions.cf73ed47.js → button-actions.bd397c79.js} +2 -2
- package/dist/chunks/{button-actions.cf73ed47.js.map → button-actions.bd397c79.js.map} +1 -1
- package/dist/chunks/{button.c27a7ce2.js → button.d0c9527d.js} +2 -2
- package/dist/chunks/{button.c27a7ce2.js.map → button.d0c9527d.js.map} +1 -1
- package/dist/chunks/{calendar.8f50a65a.js → calendar.0ae43a96.js} +6 -6
- package/dist/chunks/calendar.0ae43a96.js.map +1 -0
- package/dist/chunks/{checkbox.c06daf12.js → checkbox.f8457c93.js} +3 -3
- package/dist/chunks/{checkbox.c06daf12.js.map → checkbox.f8457c93.js.map} +1 -1
- package/dist/chunks/controls-group.b827382b.js +87 -0
- package/dist/chunks/controls-group.b827382b.js.map +1 -0
- package/dist/chunks/{copy.b62beae5.js → copy.5a4cbd4d.js} +3 -3
- package/dist/chunks/{copy.b62beae5.js.map → copy.5a4cbd4d.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.a5eca928.js → dropdown-default-textbox.819e43f7.js} +32 -30
- package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +1 -0
- package/dist/chunks/{dropdown.368486b1.js → dropdown.c05678d0.js} +142 -139
- package/dist/chunks/dropdown.c05678d0.js.map +1 -0
- package/dist/chunks/{error-message.a581a172.js → error-message.0433b539.js} +2 -2
- package/dist/chunks/{error-message.a581a172.js.map → error-message.0433b539.js.map} +1 -1
- package/dist/chunks/footer-actions.67642347.js +98 -0
- package/dist/chunks/footer-actions.67642347.js.map +1 -0
- package/dist/chunks/form-layout.types.a7a1438d.js +5 -0
- package/dist/chunks/form-layout.types.a7a1438d.js.map +1 -0
- package/dist/chunks/{index.3b6fc08a.js → index.0cf00b47.js} +6 -6
- package/dist/chunks/{index.3b6fc08a.js.map → index.0cf00b47.js.map} +1 -1
- package/dist/chunks/{index.f0d99471.js → index.10aaf539.js} +198 -192
- package/dist/chunks/{index.f0d99471.js.map → index.10aaf539.js.map} +1 -1
- package/dist/chunks/{index.ad39b625.js → index.133e4da0.js} +2 -2
- package/dist/chunks/{index.ad39b625.js.map → index.133e4da0.js.map} +1 -1
- package/dist/chunks/{index.175f9e2d.js → index.56858f4e.js} +15 -14
- package/dist/chunks/index.56858f4e.js.map +1 -0
- package/dist/chunks/{index.d07f9800.js → index.73d50fa6.js} +2 -2
- package/dist/chunks/{index.d07f9800.js.map → index.73d50fa6.js.map} +1 -1
- package/dist/chunks/{index.3dfea3bd.js → index.f0f8ed98.js} +3 -3
- package/dist/chunks/{index.3dfea3bd.js.map → index.f0f8ed98.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.c7e9a228.js → listbox-option-tag.8d6cccac.js} +3 -3
- package/dist/chunks/{listbox-option-tag.c7e9a228.js.map → listbox-option-tag.8d6cccac.js.map} +1 -1
- package/dist/chunks/{listbox.f51e92cd.js → listbox.116ed0c1.js} +177 -177
- package/dist/chunks/listbox.116ed0c1.js.map +1 -0
- package/dist/chunks/{loading-button.6d34f66f.js → loading-button.1c201f87.js} +10 -10
- package/dist/chunks/loading-button.1c201f87.js.map +1 -0
- package/dist/chunks/{tooltip.9af34fba.js → tooltip.2aff4fa6.js} +2 -2
- package/dist/chunks/tooltip.2aff4fa6.js.map +1 -0
- package/dist/chunks/use-form-layout-loading.d03e5d48.js +12 -0
- package/dist/chunks/use-form-layout-loading.d03e5d48.js.map +1 -0
- package/dist/code-snippet.js +6 -6
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +149 -174
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +482 -499
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +80 -74
- 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 +72 -67
- package/dist/dropdown.js.map +1 -1
- package/dist/filter-bar.js +268 -265
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +174 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header.js +3 -3
- package/dist/index.js +164 -155
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +69 -67
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +6 -6
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +4 -4
- package/dist/modal.js +203 -324
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +4 -4
- package/dist/popper-container.js +2 -2
- package/dist/radio-group.js +97 -99
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/sidepanel.js +218 -0
- package/dist/sidepanel.js.map +1 -0
- package/dist/status.js +2 -2
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +84 -82
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +23 -23
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -2
- package/dist/toggle.js +2 -2
- package/dist/typography.js +1 -1
- package/dist/web-types.json +455 -73
- package/package.json +10 -8
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
- package/dist/chunks/calendar.8f50a65a.js.map +0 -1
- package/dist/chunks/controls-group.9d58a091.js +0 -64
- package/dist/chunks/controls-group.9d58a091.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.a5eca928.js.map +0 -1
- package/dist/chunks/dropdown.368486b1.js.map +0 -1
- package/dist/chunks/index.175f9e2d.js.map +0 -1
- package/dist/chunks/listbox.f51e92cd.js.map +0 -1
- package/dist/chunks/loading-button.6d34f66f.js.map +0 -1
- package/dist/chunks/tooltip.9af34fba.js.map +0 -1
package/dist/filter-bar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-bar.js","sources":["../src/components/filter-bar/filter-bar.types.ts","../src/components/filter-bar/components/base-filter-button/base-filter-button.vue","../src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue","../src/components/filter-bar/components/base-filter/base-filter.types.ts","../src/components/filter-bar/components/base-filter/base-filter.vue","../src/components/filter-bar/components/base-filter/composables/use-base-filter.ts","../src/utils/ts/truncate.ts","../src/components/filter-bar/components/input-filter/input-filter.vue","../src/components/filter-bar/components/date-filter/date-filter.vue","../src/components/filter-bar/components/date-range-filter/date-range-filter.vue","../src/components/filter-bar/components/select-filter/select-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue","../src/components/filter-bar/components/boolean-filter/boolean-filter.vue","../src/components/filter-bar/components/range-filter/range-filter.vue","../src/components/filter-bar/components/all-filters-modal/all-filters-modal.types.ts","../src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue","../src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue","../src/components/filter-bar/filter-bar.vue"],"sourcesContent":["import { BentoAvatarListboxOptions } from '@/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types';\nimport {\n BentoListboxIsOptionDisabled,\n BentoListboxLazyLoadType,\n BentoListboxOptions,\n BentoListboxSearchOptions,\n BentoListboxSelectedValue,\n OmitStrict,\n} from '@/types';\nimport { BentoCountryListboxOptions } from '@/components/dropdown/components/variants/dropdown-country/dropdown-country.types';\nimport { BentoTagListboxOptions } from '@/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types';\nimport { BentoCountryVariant } from '@/components/country';\nimport { BentoCurrencyListboxOptions } from '@/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types';\nimport { BentoPaymentMethodListboxOptions } from '@/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types';\nimport { BentoDatePickerFirstDayOfWeek, BentoDatePickerIsDateDisabled } from '../date-picker/date-picker.types';\nimport { BentoDateRangePickerValue } from '@/components/date-range-picker';\nimport { DateRangePickerCalendarRangeSelectorItems } from '../date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types';\n\nexport interface BentoSelectFilterOptions {\n /**\n * Option items for the list-box\n */\n listboxItems: BentoListboxOptions;\n\n /**\n * Defines if the list-box should be a multi-select filter\n */\n multiple?: boolean;\n\n /**\n * The translation object to handle any custom transations. e.g. perisistent filter labels.\n */\n messages?: {\n [key: string]: {\n persistentButtonLabelPartiallySelected: string;\n persistentButtonLabelAllSelected: string;\n [key: string]: string;\n };\n };\n\n lazy?: {\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems: boolean;\n\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType: BentoListboxLazyLoadType | `${BentoListboxLazyLoadType}`;\n\n /**\n * Indicates if new options are loading.\n */\n loading: boolean;\n\n /**\n * The click event that fires when the user press on the \"show more\" button OR when the user\n * scrolls down to bottom of the select filter box.\n */\n showMoreEvent?: () => void;\n };\n\n /**\n * Search options and events for the listbox filtering.\n */\n search?: BentoListboxSearchOptions;\n\n /**\n * A function that defines which option in the list-box is disabled\n */\n isOptionDisabled?: BentoListboxIsOptionDisabled;\n}\nexport type BentoSelectAvatarFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoAvatarListboxOptions;\n};\nexport type BentoSelectCountryFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoCountryListboxOptions;\n variant?: BentoCountryVariant | `${BentoCountryVariant}`;\n};\nexport type BentoSelectCurrencyFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoCurrencyListboxOptions;\n};\nexport type BentoSelectTagFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoTagListboxOptions;\n};\n\nexport type BentoSelectPaymentMethodFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoPaymentMethodListboxOptions;\n};\n\n// Date\nexport interface BentoDateFilterOptions {\n firstDayOfWeek?: BentoDatePickerFirstDayOfWeek;\n isDateDisabled?: BentoDatePickerIsDateDisabled;\n}\nexport interface BentoDateRangeFilterOptions {\n allowTimeInput?: boolean;\n firstDayOfWeek?: BentoDatePickerFirstDayOfWeek;\n isDateDisabled?: BentoDatePickerIsDateDisabled;\n maxRange?: number;\n numberOfMonths?: number;\n quickSelectRanges?: DateRangePickerCalendarRangeSelectorItems | boolean;\n}\n\nexport type BentoInputFilterValue = string | null;\nexport type BentoSelectFilterValue = BentoListboxSelectedValue;\nexport type BentoBooleanFilterValue = string | null;\nexport type BentoDateFilterValue = Date | null;\nexport type BentoDateRangeFilterValue = BentoDateRangePickerValue | null;\nexport type BentoFilterBarValue =\n | BentoInputFilterValue\n | BentoSelectFilterValue\n | BentoBooleanFilterValue\n | BentoDateFilterValue\n | BentoDateRangeFilterValue;\n\nexport type BentoFilterOptions =\n | BentoSelectFilterOptions\n | BentoSelectAvatarFilterOptions\n | BentoSelectCountryFilterOptions\n | BentoSelectCurrencyFilterOptions\n | BentoSelectPaymentMethodFilterOptions\n | BentoSelectTagFilterOptions\n | BentoDateFilterOptions\n | BentoDateRangeFilterOptions\n | undefined;\n\nexport enum BentoFilterEvent {\n // Fires upon the user interacting with the filter\n INPUT = 'input',\n // Fires on the (new) filter values being applied\n UPDATE = 'update',\n}\n\nexport enum BentoFilterBarEvent {\n INPUT = 'input',\n}\n\nexport enum BentoFilterItemType {\n INPUT = 'BentoInputFilter',\n BOOLEAN = 'BentoBooleanFilter',\n RANGE = 'BentoRangeFilter',\n // Select\n SELECT = 'BentoSelectFilter',\n SELECT_AVATAR = 'BentoSelectAvatarFilter',\n SELECT_COUNTRY = 'BentoSelectCountryFilter',\n SELECT_CURRENCY = 'BentoSelectCurrencyFilter',\n SELECT_PAYMENT_METHOD = 'BentoSelectPaymentMethodFilter',\n SELECT_TAG = 'BentoSelectTagFilter',\n // Date\n DATE = 'BentoDateFilter',\n DATE_RANGE = 'BentoDateRangeFilter',\n}\n\nexport interface BentoFilterModel {\n field: string;\n label: string;\n description?: string;\n type: BentoFilterItemType;\n options?: BentoFilterOptions;\n value?: BentoFilterBarValue;\n defaultValue?: BentoFilterBarValue;\n visible?: boolean;\n}\n\nexport type BentoFilterBarModel = Array<BentoFilterModel>;\n","<template>\n <base-button\n ref=\"baseFilterButtonRef\"\n class=\"b-base-filter-button\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :aria-label=\"computedAriaLabel\"\n :aria-controls=\"ariaAttributes['aria-controls']\"\n type=\"button\"\n @click=\"onClickButton\"\n >\n <div class=\"b-base-filter-button__default-container\">\n <bento-typography\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n :stronger=\"bold\"\n class=\"b-base-filter-button__label\"\n >\n <slot />\n </bento-typography>\n\n <div v-if=\"amountAppliedValues && !hasChevron\" class=\"b-base-filter-button__counter-wrapper\">\n <bento-typography\n class=\"b-base-filter-button__counter\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n stronger\n >\n {{ amountAppliedValues }}\n </bento-typography>\n </div>\n </div>\n <template v-if=\"hasChevron\" #iconRight>\n <chevron-up-icon v-if=\"isFilterOpen\" aria-hidden=\"true\" />\n <chevron-down-icon v-else aria-hidden=\"true\" />\n </template>\n </base-button>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useHasSlot } from '@/composables';\n import { computed, defineComponent, ref } from 'vue';\n import { BaseButton, BentoBaseButtonEvent } from '@/components/internal/base-button';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n\n /**\n * A filter button used as a base to extend all sorts of filter buttons.\n * Used in the bento-filter-bar and all-filter-modals components.\n *\n * @usage\n * export default {\n * components: { BaseFilterButton },\n * template: `\n * <base-filter-button disabled>\n * Filter\n * </base-filter-button>\n * `,\n * }\n */\n export default defineComponent({\n name: 'base-filter-button',\n components: { BaseButton, BentoTypography, ChevronUpIcon, ChevronDownIcon },\n props: {\n /**\n * The number of applies values within the filter.\n * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.\n */\n amountAppliedValues: { type: Number, default: null },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Signifies if the filter is open or closed.\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Toggles if a chevron icon should be displayed in the button.\n * The chevron will change depending on the open state of the filter.\n */\n hasChevron: { type: Boolean, default: false },\n\n /**\n * Renders the text in a stronger variant.\n */\n bold: { type: Boolean, default: false },\n },\n emits: [BentoBaseButtonEvent.CLICK],\n setup(props, { slots, emit, attrs }) {\n const labelSlot = computed((): string => (slots.default ? getSlotText(slots)('default') : null));\n const computedAriaLabel = useAriaLabel({ ariaLabel: labelSlot });\n const baseFilterButtonRef = ref(null);\n\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n }));\n\n const conditionalClasses = computed(() => ({\n [`b-base-filter-button--with-chevron`]: props.hasChevron,\n [`b-base-filter-button--filter-open`]: props.isFilterOpen,\n }));\n\n const onClickButton = () => {\n if (!props.disabled) {\n emit(BentoBaseButtonEvent.CLICK);\n }\n };\n\n return {\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n\n // Values\n ariaAttributes,\n computedAriaLabel,\n conditionalClasses,\n\n // Methods\n onClickButton,\n hasSlot: useHasSlot(slots),\n\n // Refs\n baseFilterButtonRef,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-filter-button.scss\" />\n","<template>\n <base-filter-button\n ref=\"filterBarButtonRef\"\n class=\"b-filter-bar-filter-button\"\n :class=\"conditionalClasses\"\n :bold=\"true\"\n :amount-applied-values=\"appliedFiltersCount\"\n :has-chevron=\"hasChevron\"\n :is-filter-open=\"isFilterOpen\"\n :disabled=\"disabled\"\n @click=\"onClick\"\n >\n {{ label }}\n </base-filter-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, ref, watch } from 'vue';\n import BaseFilterButton from '../../../base-filter-button/base-filter-button.vue';\n\n export default defineComponent({\n name: 'filter-bar-filter-button',\n components: { BaseFilterButton },\n props: {\n /**\n * Button label to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Total count of applied filters\n */\n appliedFiltersCount: { type: Number, default: null },\n\n /**\n * Indicates whether the button has a chevron\n */\n hasChevron: { type: Boolean, default: false },\n\n /**\n * Indicates whether the filter popover tied to this button is showing\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n },\n emits: ['click'],\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n [`b-filter-bar-filter-button--with-counter`]: props.appliedFiltersCount,\n [`b-filter-bar-filter-button--filter-open`]: props.isFilterOpen,\n }));\n\n const filterBarButtonRef = ref(null);\n\n watch(\n () => props.isFilterOpen,\n (value, prevValue) => {\n if (!value && prevValue) {\n if (filterBarButtonRef.value?.baseFilterButtonRef?.bentoBaseButtonRef) {\n filterBarButtonRef.value.baseFilterButtonRef.bentoBaseButtonRef.focus();\n }\n }\n }\n );\n\n const onClick = () => {\n emit('click');\n };\n\n return {\n conditionalClasses,\n // Refs\n filterBarButtonRef,\n\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar-filter-button.scss\"></style>\n","export enum BaseFilterEvent {\n APPLY = 'apply',\n CLEAR = 'clear',\n OPEN = 'open',\n CLOSE = 'close',\n RESET = 'reset',\n}\n","<template>\n <div v-if=\"onlySlot\">\n <slot></slot>\n </div>\n <div v-else v-bento-click-outside-directive=\"onClickOutside\" class=\"b-base-filter\" @keydown.esc=\"closePopover\">\n <filter-bar-filter-button\n ref=\"filterButtonRef\"\n :aria-controls=\"isFilterOpen ? popoverId : null\"\n :has-chevron=\"isPersistentFilter\"\n :is-filter-open=\"isFilterOpen\"\n :label=\"buttonLabel || label\"\n :applied-filters-count=\"appliedFiltersCount\"\n @click=\"onClickFilter\"\n />\n\n <bento-popover\n v-if=\"filterButtonRef\"\n :id=\"popoverId\"\n class=\"b-base-filter__popover\"\n divider\n :open=\"isFilterOpen\"\n :actions=\"controlled ? null : actions\"\n :actions-layout=\"BentoButtonActionsLayout.SPACE_BETWEEN\"\n :target-element=\"filterButtonRef\"\n :title=\"controlled ? null : label\"\n :fit-content=\"fitContent\"\n :position=\"BentoPopoverPositions.BOTTOM_START\"\n :without-space=\"controlled\"\n >\n <slot></slot>\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoButtonActionsLayout, BentoButtonVariant } from '@/components/button';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoClickOutsideDirective, BentoTooltipPosition } from '@/directives';\n import { FilterBarFilterButton } from './components';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoFilterBarValue } from '@/components/filter-bar/filter-bar.types';\n import { BaseFilterEvent } from './base-filter.types';\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/unique-id';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n export default defineComponent({\n i18n: { messages },\n name: 'bento-base-filter',\n components: {\n FilterBarFilterButton,\n BentoPopover,\n },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Total count of applied filters\n */\n appliedFiltersCount: { type: Number, default: null },\n\n /**\n * Overrides the label of the popover vsibility toggle button text.\n */\n buttonLabel: { type: String, default: undefined },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: {\n type: [Object, Number, Boolean, Array, String] as PropType<BentoFilterBarValue>,\n default: null,\n },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * Allows to handle the controls (apply/clear) from outside\n * of the component\n */\n controlled: { type: Boolean, default: false },\n\n /**\n * Disable the \"apply\" button\n */\n disableApplyButton: { type: Boolean, default: false },\n\n /**\n * Disable the secondary button action.\n */\n disableSecondaryButton: { type: Boolean, default: false },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Sets the size of the container to fit its content\n */\n fitContent: BentoPopover.props.fitContent,\n },\n emits: [\n BaseFilterEvent.APPLY,\n BaseFilterEvent.CLEAR,\n BaseFilterEvent.OPEN,\n BaseFilterEvent.CLOSE,\n BaseFilterEvent.RESET,\n ],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const popoverId = generateUid('base-filter-popover');\n const isFilterOpen = ref(false);\n const filterButtonRef = ref(null);\n\n const isPersistentFilter = computed(() => props.defaultValue !== null);\n\n const closePopover = () => {\n isFilterOpen.value = false;\n emit(BaseFilterEvent.CLOSE);\n };\n const onClickSecondaryAction = () => {\n closePopover();\n if (isPersistentFilter.value) {\n emit(BaseFilterEvent.RESET);\n } else {\n emit(BaseFilterEvent.CLEAR);\n }\n };\n const onClickOutside = () => closePopover();\n const onClickFilter = () => {\n if (isFilterOpen.value) {\n closePopover();\n } else {\n isFilterOpen.value = true;\n emit(BaseFilterEvent.OPEN);\n }\n };\n const onClickApply = () => {\n closePopover();\n emit(BaseFilterEvent.APPLY);\n };\n\n const actions = computed(() => [\n {\n title: t('apply') as string,\n event: onClickApply,\n disabled: props.disableApplyButton,\n },\n {\n title: isPersistentFilter.value ? (t('reset') as string) : (t('clear') as string),\n event: onClickSecondaryAction,\n disabled: props.disableSecondaryButton,\n },\n ]);\n\n return {\n // Values\n actions,\n popoverId,\n isFilterOpen,\n isPersistentFilter,\n\n // Enums\n BentoPopoverPositions,\n BentoTooltipPosition,\n\n // Events\n onClickFilter,\n onClickApply,\n onClickSecondaryAction,\n onClickOutside,\n closePopover,\n\n // Refs\n filterButtonRef,\n\n // Enums\n BentoButtonVariant,\n BentoButtonActionsLayout,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-filter.scss\"></style>\n","import { computed, ref, watch } from 'vue';\nimport type { Ref } from 'vue';\n\nconst isArray = <T>(value: T) => value instanceof Array;\nconst isValueEmpty = <T>(value: T) =>\n isArray(value) ? (value as []).length === 0 || (value as Array<T>).every(el => el === '') : !value;\nconst isEqual = <T>(first: T, second: T) => JSON.stringify(first) === JSON.stringify(second);\n\nexport const useBaseFilter = <T>(appliedFilter: Ref<T>, defaultFilter: Ref<T>) => {\n const internalFilterValue = ref<T>(appliedFilter.value as T);\n\n watch(\n () => appliedFilter.value,\n () => {\n (internalFilterValue as Ref<T>).value = appliedFilter.value as T;\n }\n );\n\n const isFilterInactive = computed(() => isValueEmpty(appliedFilter.value));\n\n const isSecondaryButtonDisabled = computed(() =>\n defaultFilter.value !== null ? isEqual<T>(defaultFilter.value, appliedFilter.value) : isFilterInactive.value\n );\n const isApplyButtonDisabled = computed(() => {\n const isValueUnchanged = internalFilterValue.value === appliedFilter.value;\n return isValueUnchanged || (isValueEmpty(internalFilterValue.value) && isFilterInactive.value);\n });\n\n return {\n internalFilterValue,\n isSecondaryButtonDisabled,\n isApplyButtonDisabled,\n };\n};\n","/**\n * Trunctes a string if it goes over a certain character limit.\n * @param aString the string to truncate.\n * @param characterLimit the character limit to start truncating at.\n * @returns a string that is truncated if it's length is over the limit.\n */\nexport const truncate = (aString: string, characterLimit: number) =>\n aString?.length > characterLimit ? `${aString.slice(0, characterLimit)}...` : aString;\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-input-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\" @input=\"onInput\">\n <bento-input-field ref=\"inputTextRef\" :value=\"internalFilterValue\" @input=\"internalFilterValue = $event\" />\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, onBeforeUpdate, ref, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoFilterEvent } from '../../filter-bar.types';\n import { BentoInputField } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n\n /**\n *\n */\n export default defineComponent({\n name: 'bento-input-filter',\n components: {\n BentoBaseFilter,\n BentoInputField,\n },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: String, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Current value of the filter\n */\n value: { type: String, default: null },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const inputTextRef = ref(null);\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter<string>(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() => (props.defaultValue === null ? props.label : truncate(props.value, 18)));\n\n // Count is always 1 for the text filter when it's active\n const appliedFiltersCount = computed(() => (props.value != null ? 1 : null));\n\n const conditionalClasses = computed(() => ({\n [`b-input-filter--only-slot`]: props.onlySlot,\n }));\n\n onBeforeUpdate(() => {\n // Set value to null when the string is empty\n if (internalFilterValue.value === '') {\n internalFilterValue.value = null;\n }\n });\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n\n nextTick(() => inputTextRef.value.focusInput());\n };\n\n const updateFilter = () => {\n emit(BentoFilterEvent.UPDATE, { ...props, value: internalFilterValue.value });\n };\n\n const resetFilter = () => emit(BentoFilterEvent.UPDATE, { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n const onInput = () => {\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n return {\n // Values\n appliedFiltersCount,\n buttonLabel,\n conditionalClasses,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n\n // Refs\n inputTextRef,\n\n // Events\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-filter.scss\" />\n","<template>\n <bento-base-filter\n :label=\"label\"\n :field=\"field\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :default-value=\"defaultValue\"\n :only-slot=\"onlySlot\"\n fit-content\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <bento-date-picker\n v-if=\"onlySlot\"\n :value=\"internalFilterValue\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n @input=\"onDateInputSelected\"\n />\n <template v-else>\n <bento-divider class=\"b-date-filter__divider\" />\n\n <div class=\"b-date-filter\">\n <calendar\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"internalFilterValue\"\n @input=\"onDateSelected\"\n />\n </div>\n </template>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoDateFilterOptions, BentoDateFilterValue, BentoFilterEvent } from '../../filter-bar.types';\n import { Calendar } from '@/internal';\n import { BentoDivider } from '@/components/divider';\n import { BentoDatePicker } from '@/components/date-picker';\n import format from 'date-fns/format';\n import { useI18n } from '@/utils/ts/i18n';\n import { de, enUS, fr } from 'date-fns/locale';\n\n /**\n * The Date filter displays a calendar that allows\n * to select a single date.\n *\n * @example\n * import { BentoDateFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDateFilter },\n * template: `\n * <bento-date-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-date-filter',\n components: {\n BentoBaseFilter,\n BentoDatePicker,\n BentoDivider,\n Calendar,\n },\n props: {\n isDateInput: { type: Boolean, default: true },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Date as PropType<BentoDateFilterValue>, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n */\n options: {\n type: Object as PropType<BentoDateFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n */\n value: { type: Date as PropType<BentoDateFilterValue>, default: undefined },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { locale } = useI18n(undefined, true);\n const locales = { de, enUS, fr };\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null\n ? props.label\n : format(props.value, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n );\n\n // Count is always 1 for the text filter when it's active\n const appliedFiltersCount = computed(() => (props.value != null ? 1 : null));\n\n const updateFilter = () => {\n emit(BentoFilterEvent.UPDATE, { ...props, value: internalFilterValue.value });\n };\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n const resetFilter = () => {\n internalFilterValue.value = props.defaultValue;\n updateFilter();\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const onDateSelected = (selectedDate: Date) => {\n internalFilterValue.value = selectedDate;\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n // Update internal date and emit selected date when using date-picker input\n const onDateInputSelected = (selectedDate: Date) => {\n internalFilterValue.value = selectedDate;\n onDateSelected(selectedDate);\n updateFilter();\n };\n\n return {\n // Values\n appliedFiltersCount,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n buttonLabel,\n\n // Events\n clearFilter,\n onDateSelected,\n openFilter,\n updateFilter,\n resetFilter,\n onDateInputSelected,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-filter.scss\" />\n","<template>\n <bento-base-filter\n ref=\"baseFilter\"\n :label=\"label\"\n :field=\"field\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :default-value=\"defaultValue\"\n :controlled=\"!onlySlot\"\n :only-slot=\"onlySlot\"\n fit-content\n @open=\"openFilter\"\n >\n <bento-date-range-picker\n v-if=\"onlySlot\"\n :allow-time-input=\"options?.allowTimeInput\"\n :value=\"internalFilterValue\"\n :custom-range=\"options?.quickSelectRanges\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :number-of-months=\"options?.numberOfMonths\"\n @input=\"onDateInputSelected\"\n />\n\n <template v-else>\n <div class=\"b-date-range-filter\">\n <date-range-picker-calendar\n :allow-time-input=\"options?.allowTimeInput\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :max-range=\"options?.maxRange\"\n :number-of-months=\"options?.numberOfMonths\"\n :value=\"internalFilterValue\"\n :date-form-data=\"formData\"\n @input=\"onDateSelected\"\n @error=\"onDatePickerRangeError\"\n @form-date=\"onDatePickerRangeFormDateInputUpdate\"\n >\n <template #title>\n <bento-typography\n strongest\n :variant=\"BentoTypographyVariant.BODY\"\n :el=\"BentoTypographyElement.SPAN\"\n >\n {{ label }}\n </bento-typography>\n </template>\n <template #actions>\n <bento-divider class=\"b-date-range-filter__divider\" />\n\n <bento-button-actions\n class=\"b-date-range-filter__actions\"\n :actions=\"actions\"\n :layout=\"BentoButtonActionsLayout.SPACE_BETWEEN\"\n />\n </template>\n </date-range-picker-calendar>\n </div>\n </template>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, reactive, ref, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoDateRangeFilterOptions, BentoDateRangeFilterValue, BentoFilterEvent } from '../../filter-bar.types';\n import { DateRangePickerCalendar } from '@/components/date-range-picker/components/date-range-picker-calendar';\n import { BentoDateRangePicker, BentoDateRangePickerValue } from '@/components/date-range-picker';\n import { BentoDivider } from '@/components/divider';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import {\n BentoButtonActions,\n BentoButtonActionsLayout,\n BentoButtonActionsList,\n } from '@/components/button/components/button-actions';\n import { useI18n } from '@/utils/ts/i18n';\n import { de, enUS, fr } from 'date-fns/locale';\n import { DateFormat } from '@/types';\n import format from 'date-fns/format';\n\n import messages from './messages.json';\n import { DateRangePickerCalendarFormData } from '@/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * The Date filter displays a calendar that allows\n * to select a single date.\n *\n * @example\n * import { BentoDateRangeFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDateRangeFilter },\n * template: `\n * <bento-date-range-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-date-range-filter',\n components: {\n BentoBaseFilter,\n BentoButtonActions,\n BentoDateRangePicker,\n BentoTypography,\n BentoDivider,\n DateRangePickerCalendar,\n },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Object as PropType<BentoDateRangeFilterValue>, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - allowTimeInput: Allows user to enter time values in the form\n * - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n * - maxRange: Set a maximum number of dates to be selectable by the range\n * - numberOfMonths: Number of months rendered on pane\n */\n options: {\n type: Object as PropType<BentoDateRangeFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n */\n value: {\n type: Object as PropType<BentoDateRangeFilterValue>,\n default: () => ({ startDate: undefined, endDate: undefined }),\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { locale, t } = useI18n<{ message: MessageSchema }>({ messages });\n const locales = { de, enUS, fr };\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const formatFormDate = (date: Date) =>\n date\n ? format(date, DateFormat.NUMERIC_DATE_YEAR_FIRST, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n : undefined;\n\n const formatFormTime = (dateToFormat?: Date) => {\n if (!dateToFormat) {\n return '';\n }\n\n return format(dateToFormat, DateFormat.HOUR_MINUTE_SECONDS, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n });\n };\n\n const baseFilter = ref(null);\n const isDateIncorrect = ref(false);\n const formData = reactive({\n startDate: formatFormDate(props.value?.startDate),\n endDate: formatFormDate(props.value?.endDate),\n startTime: formatFormTime(props.value?.startDate),\n endTime: formatFormTime(props.value?.endDate),\n });\n\n // Count is always 1 for the text filter when it's active\n const appliedFiltersCount = computed(() =>\n props.value?.startDate != null && props.value?.endDate != null ? 1 : null\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null\n ? props.label\n : `${format(props.value.startDate, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })} - ${format(props.value.endDate, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })}`\n );\n\n const updateFilter = () => {\n baseFilter.value.closePopover();\n // Omit the onlySlot prop as it is not needed\n const { onlySlot, ...cleanedProps } = props;\n emit(BentoFilterEvent.UPDATE, { ...cleanedProps, value: internalFilterValue.value });\n };\n\n const clearFilter = () => {\n internalFilterValue.value = { startDate: undefined, endDate: undefined };\n updateFilter();\n };\n\n const resetFilter = () => {\n internalFilterValue.value = props.defaultValue;\n updateFilter();\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const onDateSelected = (selectedDate: BentoDateRangePickerValue) => {\n internalFilterValue.value = selectedDate;\n formData.startDate = formatFormDate(selectedDate.startDate);\n formData.endDate = formatFormDate(selectedDate.endDate);\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n // Need to update the internal value and emit the date when using the date-picker input\n const onDateInputSelected = (selectedDate: BentoDateRangePickerValue) => {\n onDateSelected(selectedDate);\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const actions = computed(\n () =>\n [\n {\n title: t('apply') as string,\n event: updateFilter,\n disabled: isDateIncorrect.value || isApplyButtonDisabled.value,\n },\n {\n title: t('clear') as string,\n event: clearFilter as () => void,\n disabled: isDateIncorrect.value && isSecondaryButtonDisabled.value,\n },\n ] as BentoButtonActionsList\n );\n\n const onDatePickerRangeError = () => {\n isDateIncorrect.value = true;\n internalFilterValue.value = { startDate: undefined, endDate: undefined };\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const onDatePickerRangeFormDateInputUpdate = (dateFormDate: DateRangePickerCalendarFormData) => {\n isDateIncorrect.value = false;\n\n if (dateFormDate.startTime) {\n formData.startTime = dateFormDate.startTime;\n }\n\n if (dateFormDate.endTime) {\n formData.endTime = dateFormDate.endTime;\n }\n };\n\n return {\n // Refs\n baseFilter,\n\n // Values\n actions,\n appliedFiltersCount,\n formData,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n buttonLabel,\n\n // Enum\n BentoButtonActionsLayout,\n BentoTypographyElement,\n BentoTypographyVariant,\n\n // Events\n clearFilter,\n onDateSelected,\n openFilter,\n updateFilter,\n resetFilter,\n onDatePickerRangeError,\n onDatePickerRangeFormDateInputUpdate,\n onDateInputSelected,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-range-filter.scss\" />\n","<template>\n <bento-base-filter\n :label=\"label\"\n :field=\"field\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :default-value=\"defaultValue\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @reset=\"resetFilter\"\n @open=\"openFilter\"\n @close=\"closeFilter\"\n >\n <bento-dropdown\n v-if=\"onlySlot\"\n :value=\"internalFilterValue\"\n class=\"b-select-filter__dropdown-variant\"\n :items=\"options.listboxItems\"\n :multiple=\"options?.multiple\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"!!searchTerm\"\n :is-option-disabled=\"options.isOptionDisabled\"\n :dynamic-filtering=\"true\"\n @input=\"onOptionSelected\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-dropdown>\n <template v-else>\n <div class=\"b-select-filter__search-bar\">\n <bento-search-bar\n :debounce-time=\"options?.search?.debounceTime\"\n :value=\"searchTerm\"\n :input-field-aria-label=\"$t('searchFilter', { filter: label.toLocaleLowerCase() }).toString()\"\n @input=\"searchTerm = $event\"\n />\n </div>\n\n <hr class=\"b-select-filter__divider\" />\n\n <bento-listbox\n :id=\"listboxFilterId\"\n :aria-label=\"label\"\n class=\"b-select-filter__wrapper\"\n :has-more-items=\"options?.lazy?.hasMoreItems\"\n :items=\"filteredItems\"\n :is-option-disabled=\"options?.isOptionDisabled\"\n :lazy-load-type=\"options?.lazy?.lazyLoadType\"\n :loading=\"options?.lazy?.loading\"\n :multiple=\"options?.multiple\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"!!searchTerm\"\n :selected-value=\"internalFilterValue\"\n @select=\"onOptionSelected\"\n @show-more=\"options?.lazy?.showMoreEvent()\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-listbox>\n </template>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref, toRef, watch } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoListbox } from '@/internal';\n import { BentoListboxOptionItem, BentoListboxSelectedValue } from '@/types';\n import { generateUid } from '@/utils/ts/unique-id';\n import { BentoFilterEvent, BentoSelectFilterOptions } from '../../filter-bar.types';\n import { BentoSearchBar, useSearchBarFilter } from '@/components/search-bar';\n import { truncate } from '@/utils/ts/truncate';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoDropdown } from '@/components/dropdown';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * The Listbox filter displays a listbox of items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectFilter },\n * template: `\n * <bento-select-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-select-filter',\n components: {\n BentoBaseFilter,\n BentoDropdown,\n BentoListbox,\n BentoSearchBar,\n },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: [String, Number, Array] as PropType<BentoListboxSelectedValue>, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with.\n */\n options: {\n type: Object as PropType<BentoSelectFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n */\n value: {\n type: [String, Number, Array] as PropType<BentoListboxSelectedValue>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit, slots }) {\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const { t, locale } = useI18n<{ message: MessageSchema }>({ messages });\n\n const searchTerm = ref('');\n const optionsRef = toRef(props, 'options');\n const itemsRef = ref(props.options.listboxItems);\n\n // We need to make sure to update the items if the consumer updates them manually\n watch(optionsRef, () => {\n itemsRef.value = optionsRef.value.listboxItems;\n });\n\n const filteredItems = useSearchBarFilter<BentoListboxOptionItem>(\n searchTerm,\n itemsRef,\n props.options?.search?.searchEvent\n );\n const noResultsMessage = computed(() => t('noFiltersMatchThisSearch') as string);\n\n const buttonLabel = computed(() => {\n if (props.defaultValue === null) {\n return props.label;\n }\n if (props.options.multiple) {\n const itemsSelected = (props.value as unknown[]).length;\n if (itemsSelected === props.options.listboxItems.length) {\n return props?.options?.messages[locale.value].persistentButtonLabelAllSelected;\n }\n\n const messageTranslation = props?.options?.messages[\n locale.value\n ].persistentButtonLabelPartiallySelected\n .split('|')\n .map(message => message.trim());\n if (itemsSelected === 1) {\n return messageTranslation[0].replace('{count}', itemsSelected as unknown as string);\n }\n return messageTranslation[1].replace('{count}', itemsSelected as unknown as string);\n }\n return truncate(props.options.listboxItems.find(({ value }) => value === props.value)?.label, 18);\n });\n\n const listboxFilterId = computed(() => generateUid(`filter-listbox-${props.field}`));\n\n const onOptionSelected = (selectedValue: BentoListboxSelectedValue) => {\n internalFilterValue.value = selectedValue;\n const { onlySlot, ...cleanedProps } = props;\n emit(BentoFilterEvent.INPUT, { ...cleanedProps, value: internalFilterValue.value });\n };\n\n const updateFilter = () => {\n // If persistent multi select filter, and all items unchecked, reset back to default value\n if (\n props.defaultValue !== null &&\n props.options.multiple &&\n (internalFilterValue.value as unknown[]).length === 0\n ) {\n internalFilterValue.value = props.defaultValue;\n }\n // Omit the onlySlot prop as it is not needed\n const { onlySlot, ...cleanedProps } = props;\n emit(BentoFilterEvent.UPDATE, { ...cleanedProps, value: internalFilterValue.value });\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const closeFilter = () => {\n // If the search term is set, reset it to \"empty\"\n if (searchTerm.value) {\n searchTerm.value = '';\n }\n };\n\n const resetFilter = () => {\n internalFilterValue.value = props.defaultValue;\n updateFilter();\n };\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n const appliedFiltersCount = computed(() => {\n // No filter applied\n if (props.value == null) {\n return null;\n }\n\n /**\n * Count is\n * single: always 1\n * multi: amount of items selceted (props.value)\n */\n const singleSelectAmount = 1;\n return props.options.multiple ? (props.value as Array<string | number>).length : singleSelectAmount;\n });\n\n return {\n // Values\n appliedFiltersCount,\n filteredItems,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n listboxFilterId,\n noResultsMessage,\n slots,\n buttonLabel,\n\n // Search\n searchTerm,\n\n // Events\n clearFilter,\n closeFilter,\n onOptionSelected,\n openFilter,\n updateFilter,\n resetFilter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./select-filter.scss\" />\n","<template>\n <bento-select-filter\n v-slot=\"{ label: slotLabel, data }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-avatar :username=\"slotLabel\" :src=\"data\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectAvatarFilterOptions } from '@/components/filter-bar';\n import { BentoAvatar } from '@/internal';\n\n /**\n * The Select Avatar filter displays a listbox of avatar items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectAvatarFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectAvatarFilter },\n * template: `\n * <bento-select-avatar-filter\n * :field=\"avatar\"\n * :label=\"Avatar\"\n * :options=\"{\n * listboxItems: [{\n * label: 'Avatar 1',\n * value: 'avatar-2'\n * }, {\n * label: 'Avatar 2',\n * value: 'avatar-2'\n * }],\n * :multiple=\"false\"\n * }\"\n * value=\"avatar-2\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-avatar-filter',\n components: {\n BentoSelectFilter,\n BentoAvatar,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the country filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectAvatarFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"slotProps\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <listbox-option-tag :option=\"slotProps\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { ListboxOptionTag } from '@/internal';\n import { BentoFilterEvent, BentoSelectCurrencyFilterOptions } from '@/components/filter-bar';\n\n /**\n * The Select Country filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoSelectCurrencyFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectCurrencyFilter },\n * template: `\n * <bento-select-currency-filter\n * :field=\"currency\"\n * :label=\"Currency\"\n * :options=\"{\n * listboxItems: [{\n * label: 'Euro',\n * value: BentoCurrencyISOCode.EUR,\n * }, {\n * label: 'US Dollars',\n * value: BentoCurrencyISOCode.USD,\n * }],\n * multiple=\"false\",\n * isOptionsDisabled=\"option => option.value === BentoCurrencyISOCode.USD\"\n * }\"\n * :value=\"BentoCountryVariant.EUR\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-country-filter',\n components: {\n BentoSelectFilter,\n ListboxOptionTag,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the country filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectCurrencyFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectCurrencyFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => {\n emit(BentoFilterEvent.UPDATE, selectedValue);\n };\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ value, label: slotLabel }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n :options=\"countryOptions\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-country :code=\"value\" :label=\"slotLabel\" :variant=\"BentoCountryVariant.CUSTOM\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef, toRefs } from 'vue';\n import { BentoCountry, BentoCountryVariant } from '@/components/country';\n import { useCountryItems } from '@/components/dropdown/components/variants/dropdown-country/composables/useCountryItems';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectCountryFilterOptions } from '@/components/filter-bar';\n\n /**\n * The Select Country filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectCountryFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectCountryFilter },\n * template: `\n * <bento-select-country-filter\n * :field=\"country\"\n * :label=\"Country\"\n * :options=\"{\n * listboxItems: [{\n * label: 'Netherlands',\n * value: BentoCountryCode.NL,\n * }, {\n * label: 'Belgium',\n * value: BentoCountryCode.BE,\n * }],\n * variant: BentoCountryVariant.CAPITAL\n * }\"\n * :value=\"BentoCountryCode.BE\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-country-filter',\n components: {\n BentoSelectFilter,\n BentoCountry,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the country filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}\n * - variant: Which label variant to display for the option item {@see BentoCountryVariant}.\n */\n options: {\n type: Object as PropType<BentoSelectCountryFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const options = toRef(props, 'options');\n const { listboxItems, variant } = toRefs(options.value);\n\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n const countryItems = useCountryItems(variant, listboxItems);\n const countryOptions = computed(() => ({\n ...props.options,\n listboxItems: countryItems.value,\n }));\n\n return {\n // Values\n countryOptions,\n\n // Methods\n onUpdate,\n\n // Enums\n BentoCountryVariant,\n BentoFilterEvent,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ value, label: slotLabel }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-payment-method :type=\"value\" :label=\"slotLabel\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectPaymentMethodFilterOptions } from '@/components/filter-bar';\n import { BentoPaymentMethod } from '@/components/payment-method';\n\n /**\n * The Select Payment Method filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property to be used in the FilterBar component.\n *\n * @example\n * import { BentoSelectPaymentMethodFilter, BentoPaymentMethodType } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectPaymentMethodFilter },\n * template: `\n * <bento-select-paymnent-method-filter\n * :field=\"paymentMethod\"\n * :label=\"Payment method\"\n * :options=\"{\n * listboxItems: [\n * { label: 'Option 1', value: BentoPaymentMethodType.IDEAL },\n * { label: 'Option 2', value: BentoPaymentMethodType.VISA },\n * ],\n * }\"\n * :value=\"BentoPaymentMethodType.IDEAL\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-payment-method-filter',\n components: {\n BentoSelectFilter,\n BentoPaymentMethod,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the payment method filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectPaymentMethodFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectPaymentMethodFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_props, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ label: slotLabel, data }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n :options=\"countryOptions\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <listbox-option-tag :option=\"{ value: slotLabel, data, label: '' }\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoCountryVariant } from '@/components/country';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectTagFilterOptions } from '@/components/filter-bar';\n import { ListboxOptionTag } from '@/internal';\n\n /**\n * The Select Tag filter displays a listbox of tag items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectTagFilter, BentoTagVariant } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectTagFilter },\n * template: `\n * <bento-select-tag-filter\n * :field=\"tag\"\n * :label=\"Tag\"\n * :options=\"{\n * listboxItems: [\n * { label: 'Offline', value: 'unique-id-1', variant: BentoTagVariant.RED },\n * { label: 'Online', value: 'unique-id-2', variant: BentoTagVariant.GREEN },\n * { label: 'Standby', value: 'unique-id-3', variant: BentoTagVariant.ORANGE },\n * { label: 'Busy with things', value: 'unique-id-4', variant: BentoTagVariant.BLUE },\n * ]\n * }\"\n * :value=\"'unique-id-4'\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-country-filter',\n components: {\n BentoSelectFilter,\n ListboxOptionTag,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the tag filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectTagFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectTagFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n const tagItems = computed(() =>\n props?.options?.listboxItems?.map(({ label, value, variant }) => ({ label, value, data: variant }))\n );\n const countryOptions = computed(() => ({\n ...props.options,\n listboxItems: tagItems.value,\n }));\n\n return {\n // Values\n countryOptions,\n\n // Methods\n onUpdate,\n\n // Enums\n BentoCountryVariant,\n BentoFilterEvent,\n };\n },\n });\n</script>\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-boolean-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\">\n <bento-radio-group\n :items=\"items\"\n :label=\"label\"\n :model-value=\"internalFilterValue\"\n @update:model-value=\"onInput\"\n ></bento-radio-group>\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onBeforeUpdate, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '@/components/filter-bar/components/base-filter';\n import { BentoRadioGroup } from '@/components/radio-group';\n import { useI18n } from '@/utils/ts/i18n';\n import { truncate } from '@/utils/ts/truncate';\n import { BentoFilterEvent } from '../../filter-bar.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * Example description of the component...\n *\n * @example\n * import { BentoBooleanFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoBooleanFilter },\n * template: `\n * <bento-boolean-filter>\n * ...Example code of the component\n * </bento-boolean-filter>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-boolean-filter',\n i18n: { messages },\n components: { BentoBaseFilter, BentoRadioGroup },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: String, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Current value of the filter\n */\n value: { type: String, default: null },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const items = computed(() => [\n { value: 'yes', label: t('yes') as string },\n { value: 'no', label: t('no') as string },\n ]);\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null\n ? props.label\n : truncate(items.value.find(({ value }) => value === props.value).label, 18)\n );\n\n // Count is always 1 for the boolean filter when it's active\n const appliedFiltersCount = computed(() => (props.value != null ? 1 : null));\n\n const conditionalClasses = computed(() => ({\n [`b-boolean-filter--only-slot`]: props.onlySlot,\n }));\n\n onBeforeUpdate(() => {\n // Set value to null when the value is unset\n if (!internalFilterValue.value) {\n internalFilterValue.value = null;\n }\n });\n\n const onInput = event => {\n internalFilterValue.value = event;\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const updateFilter = () => {\n emit(BentoFilterEvent.UPDATE, { ...props, value: internalFilterValue.value });\n };\n\n const resetFilter = () => emit(BentoFilterEvent.UPDATE, { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n return {\n // Values\n items,\n appliedFiltersCount,\n conditionalClasses,\n buttonLabel,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n\n // Events\n onInput,\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./boolean-filter.scss\" />\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-range-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\">\n <bento-input-field\n ref=\"inputTextRef\"\n :value=\"internalFilterValue[0]\"\n :type=\"BentoInputFieldType.NUMBER\"\n :aria-label=\"$t('from').toString()\"\n @input=\"updateFrom\"\n >\n {{ $t('from') }}\n </bento-input-field>\n <bento-input-field\n class=\"b-range-filter__input-field\"\n :value=\"internalFilterValue[1]\"\n :type=\"BentoInputFieldType.NUMBER\"\n :aria-label=\"$t('to').toString()\"\n @input=\"updateTo\"\n >\n {{ $t('to') }}\n </bento-input-field>\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, ref, toRef } from 'vue';\n import { BentoFilterEvent } from '../../filter-bar.types';\n import messages from './messages.json';\n import { BentoBaseFilter, useBaseFilter } from '@/components/filter-bar/components/base-filter';\n import { BentoInputField, BentoInputFieldType } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n\n /**\n * Range filter used in the filter-bar component.\n *\n * @example\n * import { BentoRangeFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoRangeFilter },\n * template: `\n * <bento-range-filter field=\"filter-field\" label=\"Filter label\" value=\"['0', '1']\"/>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-range-filter',\n i18n: { messages },\n components: { BentoBaseFilter, BentoInputField },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Array as PropType<string[]>, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Current value of the filter\n */\n value: { type: Array as PropType<string[]>, default: () => ['', ''] },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const inputTextRef = ref(null);\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null\n ? props.label\n : `${truncate(props.value[0], 5)}-${truncate(props.value[1], 5)}`\n );\n\n // Count is always 1 for the range filter when there's at least one input applied\n const appliedFiltersCount = computed(() => (props.value.find(el => el !== '') ? 1 : null));\n\n const conditionalClasses = computed(() => ({\n [`b-range-filter--only-slot`]: props.onlySlot,\n }));\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n\n nextTick(() => inputTextRef.value.focusInput());\n };\n\n const onInput = () => {\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const updateFrom = newValue => {\n internalFilterValue.value = [newValue, internalFilterValue.value[1]];\n onInput();\n };\n\n const updateTo = newValue => {\n internalFilterValue.value = [internalFilterValue.value[0], newValue];\n onInput();\n };\n\n const updateFilter = () => {\n emit(BentoFilterEvent.UPDATE, {\n ...props,\n value: internalFilterValue.value,\n });\n };\n\n const resetFilter = () => emit(BentoFilterEvent.UPDATE, { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = ['', ''];\n updateFilter();\n };\n\n return {\n // Enums\n BentoInputFieldType,\n\n // Values\n inputTextRef,\n appliedFiltersCount,\n conditionalClasses,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n buttonLabel,\n\n // Events\n updateFrom,\n updateTo,\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./range-filter.scss\" />\n","export enum AllFiltersModalEvent {\n INPUT = 'input',\n}\n","<template>\n <base-filter-button\n class=\"b-all-filters-modal-button\"\n :class=\"conditionalClasses\"\n :amount-applied-values=\"appliedFiltersCount\"\n :is-filter-open=\"isFilterOpen\"\n :disabled=\"disabled\"\n @click=\"onClick\"\n >\n {{ label }}\n </base-filter-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import BaseFilterButton from '../../../base-filter-button/base-filter-button.vue';\n\n export default defineComponent({\n name: 'all-filters-modal-button',\n components: { BaseFilterButton },\n props: {\n /**\n * Button label to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Total count of applied filters\n */\n appliedFiltersCount: { type: Number, default: null },\n\n /**\n * Indicates whether the filter popover tied to this button is showing\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n },\n emits: ['click'],\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n [`b-all-filters-modal-button--with-counter`]: props.appliedFiltersCount,\n [`b-all-filters-modal-button--filter-open`]: props.isFilterOpen,\n }));\n\n const onClick = () => {\n emit('click');\n };\n\n return {\n conditionalClasses,\n\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal-button.scss\" />\n","<template>\n <div class=\"b-all-filters-modal\">\n <filter-bar-filter-button\n :label=\"$t('allFilters').toString()\"\n :is-filter-open=\"isModalOpen\"\n :applied-filters-count=\"numberOfActiveFilters\"\n @click=\"onClickAllFiltersModal\"\n />\n <bento-modal\n class=\"'b-all-filters-modal__modal'\"\n :is-open=\"isModalOpen\"\n :with-column-layout=\"true\"\n :size=\"BentoModalSize.LARGE\"\n :actions=\"modalActions\"\n :is-dismissible=\"false\"\n hide-close-button\n @close-modal=\"cancel\"\n >\n <template #default>\n {{ $t('allFilters') }}\n </template>\n <template #content-col-1>\n <div\n ref=\"allFiltersModalFiltersSection\"\n class=\"b-all-filters-modal__filters\"\n @keydown.right=\"onKeydownRight\"\n >\n <bento-search-bar\n class=\"b-all-filters-modal__search-bar\"\n :value=\"searchTerm\"\n :input-field-aria-label=\"$t('searchBar').toString()\"\n @input=\"searchTerm = $event\"\n @clear=\"onSearchbarClear\"\n />\n <div v-if=\"isEmptyResultForSearchFilter\" class=\"b-all-filters-modal__empty-search-message\">\n <bento-typography :el=\"BentoTypographyElement.SPAN\">\n {{ $t('noFiltersMatchThisSearch') }}</bento-typography\n >\n </div>\n <div v-if=\"activeFilters.length\" class=\"b-all-filters-modal__filters-section\">\n <bento-typography\n :id=\"`active-filters-${allFiltersModalUniqueId}`\"\n class=\"b-all-filters-modal__filters-section-title\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.CAPTION\"\n >\n {{ $t('activeFilters') }}</bento-typography\n >\n <ul\n class=\"b-all-filters-modal__filters-list\"\n :aria-labelledby=\"`active-filters-${allFiltersModalUniqueId}`\"\n >\n <li v-for=\"item in activeFilters\" :key=\"`${item.label}-${item.field}`\">\n <all-filters-modal-button\n :ref=\"el => (allFiltersModalFilterButtons[item.label] = el)\"\n :label=\"item.label\"\n :applied-filters-count=\"getFilterCount(item.label)\"\n :is-filter-open=\"selectedFilter.label === item.label\"\n @click=\"selectFilter(item.label, item.field)\"\n />\n </li>\n </ul>\n </div>\n <div v-if=\"otherFilters.length\" class=\"b-all-filters-modal__filters-section\">\n <bento-typography\n v-if=\"activeFilters.length\"\n :id=\"`other-filters-${allFiltersModalUniqueId}`\"\n class=\"b-all-filters-modal__filters-section-title\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.CAPTION\"\n >\n {{ $t('otherFilters') }}</bento-typography\n >\n <ul\n class=\"b-all-filters-modal__filters-list\"\n :aria-labelledby=\"`other-filters-${allFiltersModalUniqueId}`\"\n >\n <li v-for=\"item in otherFilters\" :key=\"`${item.label}-${item.field}`\">\n <all-filters-modal-button\n :ref=\"el => (allFiltersModalFilterButtons[item.label] = el)\"\n :label=\"item.label\"\n :applied-filters-count=\"getFilterCount(item.label)\"\n :is-filter-open=\"selectedFilter.label === item.label\"\n @click=\"selectFilter(item.label, item.field)\"\n />\n </li>\n </ul>\n </div>\n </div>\n </template>\n <template #content-col-2>\n <div class=\"b-all-filters-modal__selected-filter-content\" @keydown.left=\"onKeydownLeft\">\n <div class=\"b-all-filters-modal__selected-filter-text\">\n <bento-typography\n :el=\"BentoTypographyElement.DIV\"\n :variant=\"BentoTypographyVariant.TITLE\"\n medium\n >{{ selectedFilter.label }}</bento-typography\n >\n <bento-typography\n v-if=\"selectedFilter.description\"\n :el=\"BentoTypographyElement.DIV\"\n :variant=\"BentoTypographyVariant.BODY\"\n wide\n >\n {{ selectedFilter.description }}\n </bento-typography>\n </div>\n <div class=\"b-all-filters-modal__selected-filter-component\">\n <component\n :is=\"selectedFilter.type\"\n ref=\"selectedFilterRef\"\n :key=\"selectedFilter.field\"\n :field=\"selectedFilter.field\"\n :label=\"selectedFilter.label\"\n :options=\"selectedFilter.options\"\n :value=\"selectedFilter.value\"\n :default-value=\"selectedFilter.defaultValue\"\n :only-slot=\"true\"\n @input=\"updateFilter\"\n />\n </div>\n <div class=\"b-all-filters-modal__clear-button\">\n <bento-button\n :variant=\"BentoButtonVariant.SECONDARY\"\n :disabled=\"!isClearButtonEnabled\"\n @click=\"clearFilter\"\n >{{ $t('clear') }}</bento-button\n >\n </div>\n </div>\n </template>\n </bento-modal>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onBeforeUpdate, onMounted, PropType, reactive, ref, toRef, watch } from 'vue';\n import { BentoModal, BentoModalEvent, BentoModalSize } from '@/components/modal';\n import { BentoButton, BentoButtonVariant } from '@/components/button';\n import {\n BentoFilterBarModel,\n BentoFilterItemType,\n BentoFilterModel,\n BentoSelectFilterOptions,\n } from '@/components/filter-bar';\n import {\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoRangeFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n } from '../index';\n import { BentoDateRangePickerValue } from '@/components/date-range-picker';\n import { BentoSearchBar, useSearchBarFilter } from '@/components/search-bar';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { generateUid } from '@/utils/ts/unique-id';\n import { getNextFocusableElement } from '@/utils/ts/focus-trap.utils';\n import { FilterBarFilterButton } from '../base-filter/components';\n import { AllFiltersModalEvent } from './all-filters-modal.types';\n import { useI18n } from '@/utils/ts/i18n';\n import AllFiltersModalButton from './components/all-filters-modal-button/all-filters-modal-button.vue';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * A modal that acts as sort of filter manager for the BentoFilterBar.\n *\n * @example\n * import { BentoAllFiltersModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAllFiltersModal },\n * template: `\n * <bento-all-filters-modal>\n * ...Example code of the component\n * </bento-all-filters-modal>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'all-filters-modal',\n components: {\n AllFiltersModalButton,\n BentoBooleanFilter,\n BentoButton,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoModal,\n BentoRangeFilter,\n BentoSearchBar,\n BentoSelectAvatarFilter,\n BentoSelectCurrencyFilter,\n BentoSelectCountryFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n BentoTypography,\n FilterBarFilterButton,\n },\n props: {\n /**\n * Array of filters based on {@see FilterBarModel}.\n * Each one of the elements in the array correspond to a filter that will\n * be created and rendered in the AllFiltersModal.\n *\n * Can be used with v-model or independently with the @input event.\n *\n * @example\n * [{\n * field: 'company',\n * label: 'Company',\n * value: '200',\n * type: FilterType.TEXT,\n * }, {\n * field: 'name',\n * label: 'Name',\n * value: null,\n * type: FilterType.TEXT,\n * }]\n */\n value: {\n type: Array as PropType<BentoFilterBarModel>,\n default: () => [],\n },\n },\n emits: [AllFiltersModalEvent.INPUT],\n setup(props, { emit }) {\n const filters = reactive({ value: props.value });\n const allFiltersModalUniqueId = generateUid('all-filters-modal');\n const allFiltersModalFiltersSection = ref([]);\n const isModalOpen = ref(false);\n const selectedFilterIndex = ref(0);\n const selectedFilterRef = ref(null);\n const searchTerm = ref<string>('');\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const filteredItems = useSearchBarFilter<BentoFilterModel>(searchTerm, toRef(filters, 'value'));\n\n const allFiltersModalFilterButtons = ref({});\n onBeforeUpdate(() => {\n allFiltersModalFilterButtons.value = [];\n });\n\n watch(\n () => props.value,\n () => {\n filters.value = props.value;\n }\n );\n\n const sortAlphabetically = (array: BentoFilterBarModel) =>\n /* eslint-disable-next-line no-nested-ternary */\n array.sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n\n const activeFilters = computed(() =>\n sortAlphabetically(\n filteredItems.value.filter(el =>\n Array.isArray(el.value) ? el.value?.length && el.value?.find(item => item !== '') : el.value\n )\n )\n );\n\n const otherFilters = computed(() =>\n sortAlphabetically(\n filteredItems.value.filter(el =>\n Array.isArray(el.value)\n ? el.value?.length === 0 || el.value?.every(item => item === '')\n : !el.value\n )\n )\n );\n\n const isEmptyResultForSearchFilter = computed(() => searchTerm.value && filteredItems.value?.length === 0);\n\n const selectedFilter = computed(() => filters.value[selectedFilterIndex.value]);\n\n const selectOpenedFilter = () => {\n const openedFilter = activeFilters.value.length ? activeFilters.value[0] : otherFilters.value[0];\n const openedFilterIndex = filters.value.findIndex(\n el => el.label === openedFilter.label && el.field === openedFilter.field\n );\n selectedFilterIndex.value = openedFilterIndex;\n };\n\n onMounted(() => {\n selectOpenedFilter();\n });\n\n const computedCounts = computed(() =>\n filters.value.map(filter => {\n switch (filter.type) {\n case BentoFilterItemType.SELECT:\n case BentoFilterItemType.SELECT_AVATAR:\n case BentoFilterItemType.SELECT_COUNTRY:\n case BentoFilterItemType.SELECT_CURRENCY:\n case BentoFilterItemType.SELECT_PAYMENT_METHOD:\n case BentoFilterItemType.SELECT_TAG:\n switch ((filter.options as BentoSelectFilterOptions)?.multiple) {\n case true:\n return {\n label: filter.label,\n field: filter.field,\n count: (filter.value as Array<string | number>)?.length\n ? (filter.value as Array<string | number>)?.length\n : null,\n };\n default:\n return {\n label: filter.label,\n field: filter.field,\n count: filter.value == null ? null : 1,\n };\n }\n case BentoFilterItemType.DATE_RANGE:\n return {\n label: filter.label,\n field: filter.field,\n count:\n (filter.value as BentoDateRangePickerValue)?.startDate != null &&\n (filter.value as BentoDateRangePickerValue)?.endDate != null\n ? 1\n : null,\n };\n case BentoFilterItemType.RANGE:\n return {\n label: filter.label,\n field: filter.field,\n count: (filter.value as Array<string>)?.find(el => el !== '') ? 1 : null,\n };\n case BentoFilterItemType.INPUT:\n case BentoFilterItemType.BOOLEAN:\n case BentoFilterItemType.DATE:\n default:\n return {\n label: filter.label,\n field: filter.field,\n count: filter.value != null ? 1 : null,\n };\n }\n })\n );\n\n const isClearButtonEnabled = computed(() =>\n Array.isArray(selectedFilter.value.value)\n ? selectedFilter.value?.value.length && selectedFilter.value.value.find(item => item !== '')\n : !!filters.value[selectedFilterIndex.value].value\n );\n\n const numberOfActiveFilters = computed(() =>\n // eslint-disable-next-line no-return-assign, no-param-reassign\n computedCounts.value?.reduce((partialSum, computedCount) => (partialSum += computedCount.count), 0)\n );\n\n const onClickAllFiltersModal = () => {\n if (!isModalOpen.value) {\n isModalOpen.value = true;\n } else {\n isModalOpen.value = false;\n }\n };\n\n const getFilterCount = (label: string) => computedCounts.value.find(el => el.label === label).count;\n\n const selectFilter = (filterLabel: string, filterField: string) => {\n selectedFilterIndex.value = filters.value.findIndex(\n el => el.label === filterLabel && el.field === filterField\n );\n };\n\n const onSearchbarClear = () => {\n searchTerm.value = '';\n };\n\n const cancel = () => {\n isModalOpen.value = false;\n filters.value = props.value;\n onSearchbarClear();\n selectOpenedFilter();\n // TODO: scrol filters section to top\n };\n\n const updateFilter = (updatedFilter: BentoFilterModel) => {\n const updatedFilters = filters.value.map(({ value, ...otherFields }, index) => {\n if (index === selectedFilterIndex.value) {\n return { value: updatedFilter.value, ...otherFields };\n }\n return { value, ...otherFields };\n });\n\n filters.value = updatedFilters;\n };\n\n const clearFilter = () => {\n updateFilter({\n field: selectedFilter.value.field,\n label: selectedFilter.value.label,\n type: selectedFilter.value.type,\n value: undefined,\n });\n };\n\n const clearAll = () => {\n filters.value = filters.value.map(({ value, ...otherFields }) => ({\n ...otherFields,\n value: undefined,\n }));\n };\n\n const applyAll = () => {\n emit(AllFiltersModalEvent.INPUT, filters.value);\n isModalOpen.value = false;\n };\n\n const isApplyAllButtonDisabled = computed(\n () => JSON.stringify(filters.value) === JSON.stringify(props.value)\n );\n\n const modalActions = computed(() => [\n {\n title: t('applyAll'),\n disabled: isApplyAllButtonDisabled.value,\n event: applyAll,\n },\n\n {\n title: t('cancel'),\n event: cancel,\n },\n {\n title: t('clearAll'),\n disabled: !numberOfActiveFilters.value,\n event: clearAll,\n },\n ]);\n\n const onKeydownRight = () => {\n const focusableEl = getNextFocusableElement(1, selectedFilterRef.value.$el);\n focusableEl.focus();\n };\n\n const onKeydownLeft = () => {\n allFiltersModalFilterButtons.value[selectedFilter.value.label].$el.focus();\n };\n\n return {\n // Enums\n BentoModalEvent,\n BentoModalSize,\n BentoButtonVariant,\n BentoTypographyElement,\n BentoTypographyVariant,\n\n // Values\n allFiltersModalUniqueId,\n allFiltersModalFiltersSection,\n allFiltersModalFilterButtons,\n numberOfActiveFilters,\n isEmptyResultForSearchFilter,\n isModalOpen,\n isClearButtonEnabled,\n activeFilters,\n otherFilters,\n modalActions,\n selectedFilter,\n selectedFilterRef,\n filters,\n computedCounts,\n searchTerm,\n\n // Methods\n onClickAllFiltersModal,\n getFilterCount,\n cancel,\n selectFilter,\n clearFilter,\n updateFilter,\n onSearchbarClear,\n onKeydownRight,\n onKeydownLeft,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal.scss\" />\n","<template>\n <div class=\"b-filter-bar\">\n <div class=\"b-filter-bar__filters-wrapper\">\n <div v-if=\"persistentFilters.length\" class=\"b-filter-bar__persistent-filters\">\n <component\n :is=\"filter.type\"\n v-for=\"filter in persistentFilters\"\n :key=\"filter.field\"\n :field=\"filter.field\"\n :label=\"filter.label\"\n :options=\"filter.options\"\n :value=\"filter.value\"\n :default-value=\"filter.defaultValue\"\n @update=\"updateFilterHandler\"\n />\n </div>\n <div class=\"b-filter-bar__regular-filters\">\n <component\n :is=\"filter.type\"\n v-for=\"filter in regularFilters\"\n :key=\"filter.field\"\n :field=\"filter.field\"\n :label=\"filter.label\"\n :options=\"filter.options\"\n :value=\"filter.value\"\n @update=\"updateFilterHandler\"\n />\n\n <!-- All filters button -->\n <all-filters-modal v-if=\"hasHiddenFilters\" :value=\"value\" @input=\"updateAllFilters\" />\n </div>\n\n <bento-button\n v-show=\"isClearAllVisible\"\n class=\"b-filter-bar__clear-all\"\n :variant=\"BentoButtonVariant.TERTIARY\"\n @click=\"clearAllFilters\"\n >{{ $t('clearAll') }}</bento-button\n >\n\n <bento-button\n v-show=\"isResetAllVisible\"\n class=\"b-filter-bar__reset-all\"\n :variant=\"BentoButtonVariant.TERTIARY\"\n @click=\"resetAllFilters\"\n >\n {{ $t('resetAll') }}\n </bento-button>\n </div>\n <bento-search-bar\n v-if=\"isSearchBarEnabled\"\n class=\"b-filter-bar__search-bar\"\n :input-field-aria-label=\"searchBarAriaLabel\"\n :value=\"searchTerm\"\n @input=\"onSearchbarInput\"\n @clear=\"onSearchbarClear\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoFilterBarEvent, BentoFilterBarModel, BentoFilterModel } from './filter-bar.types';\n import { BentoButton, BentoButtonVariant } from '@/components/button';\n import {\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoRangeFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n } from './components';\n import { BentoSearchBar, BentoSearchBarEvent } from '@/components/search-bar';\n import { useI18n } from '@/utils/ts/i18n';\n import { useBentoToastController } from '../../utils/ts/toastController';\n import AllFiltersModal from './components/all-filters-modal/all-filters-modal.vue';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * The filter bar filters item lists and tables according to various filter criteria.\n *\n * @example\n * import { BentoFilterBar } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoFilterBar },\n * data: () => ({\n * filters: [{\n * field: 'name',\n * label: 'Name',\n * value: null,\n * options: { ... },\n * type: FilterType.TEXT,\n * }]\n * }),\n * template: `\n * <bento-filter-bar\n * v-model=\"filter\"\n * />\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-filter-bar',\n components: {\n AllFiltersModal,\n BentoButton,\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoRangeFilter,\n BentoInputFilter,\n BentoSelectFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n BentoSearchBar,\n },\n props: {\n /**\n * Search term useful to filter all the data by text.\n * If the value is non-existant (null or undefined) the search bar won't be enabled.\n */\n searchTerm: {\n type: BentoSearchBar.props.value.type,\n default: undefined,\n },\n\n /**\n * Array of filters based on {@see FilterBarModel}.\n * Each one of the elements in the array correspond to a filter that will\n * be created and rendered in the FilterBar.\n *\n * Can be used with v-model or independently with the @input event.\n *\n * @example\n * [{\n * field: 'company',\n * label: 'Company',\n * value: '200',\n * type: FilterType.TEXT,\n * }, {\n * field: 'name',\n * label: 'Name',\n * value: null,\n * type: FilterType.TEXT,\n * }]\n */\n value: {\n type: Array as PropType<BentoFilterBarModel>,\n default: () => [],\n },\n },\n emits: [\n BentoFilterBarEvent.INPUT,\n BentoSearchBarEvent.CLEAR,\n BentoSearchBarEvent.INPUT,\n BentoSearchBarEvent.UPDATE,\n ],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const toastController = useBentoToastController();\n const searchBarAriaLabel = computed(() => t('searchBar') as string);\n\n const hasHiddenFilters = computed(() => {\n // Has props with visible set\n const hasVisibleSet = props.value.some(({ visible }) => visible !== undefined && visible !== null);\n return hasVisibleSet ? props.value.some(({ visible }) => !visible) : false;\n });\n\n // Persistent filters i.e. filters with default value\n const persistentFilters = computed(() =>\n props.value.filter(({ defaultValue }) => defaultValue !== undefined)\n );\n // Show non-persistent & visible filters\n const regularFilters = computed(() => {\n const hasVisibleSet = props.value.some(({ visible }) => visible !== undefined && visible !== null);\n // If no filter has the `visible` prop set then all are visible, otherwise search for the \"visible: true\" elements\n return hasVisibleSet\n ? props.value.filter(({ defaultValue, visible }) => defaultValue === undefined && visible)\n : props.value.filter(({ defaultValue }) => defaultValue === undefined);\n });\n\n // Enable search bar.\n // Soft equality to check for \"null\" and \"undefined\"\n // eslint-disable-next-line eqeqeq\n const isSearchBarEnabled = computed(() => props.searchTerm != undefined);\n\n const hasActiveFilters = computed(() =>\n props.value\n .filter(({ defaultValue }) => defaultValue === undefined || defaultValue === null)\n // Disabling strict equality to check for both undefined and null\n // eslint-disable-next-line eqeqeq\n .some(({ value }) => value != undefined)\n );\n\n // Show the \"Clear all\" button (true) if at least one filter is active (contains a value)\n // and there are not persistent filters present.\n const isClearAllVisible = computed(() => persistentFilters.value.length === 0 && hasActiveFilters.value);\n\n const isResetAllVisible = computed(() => {\n if (persistentFilters.value.length === 0) {\n return false;\n }\n const areAllValuesEqualToDefaults = props.value\n .filter(({ defaultValue }) => defaultValue !== undefined || defaultValue !== null)\n .every(({ value, defaultValue }) => JSON.stringify(value) === JSON.stringify(defaultValue));\n\n return !areAllValuesEqualToDefaults || hasActiveFilters.value;\n });\n\n const updateAllFilters = (newFilters: BentoFilterBarModel) => {\n emit(BentoFilterBarEvent.INPUT, newFilters);\n };\n\n const updateFilterHandler = (updatedFilter: BentoFilterModel) => {\n const filterIndex = props.value.findIndex(filter => filter.field === updatedFilter.field);\n const newFilters = props.value.slice();\n newFilters[filterIndex].value = updatedFilter.value;\n\n emit(BentoFilterBarEvent.INPUT, newFilters);\n };\n\n const clearAllFilters = () => {\n const previousFilters = props.value.slice();\n const clearedFilters = props.value.map(({ value, ...otherFields }) => ({\n ...otherFields,\n value: undefined,\n }));\n\n toastController.addToast({\n text: t('filtersHaveBeenCleared') as string,\n action: {\n handler: () => emit(BentoFilterBarEvent.INPUT, previousFilters),\n text: t('undo') as string,\n },\n });\n emit(BentoFilterBarEvent.INPUT, clearedFilters);\n };\n\n const resetAllFilters = () => {\n const previousFilters = props.value.slice();\n const resetFilters = props.value.map(({ defaultValue, ...otherFields }) => ({\n ...otherFields,\n defaultValue,\n value: defaultValue,\n }));\n\n toastController.addToast({\n text: t('filtersHaveBeenReset') as string,\n action: {\n handler: () => emit(BentoFilterBarEvent.INPUT, previousFilters),\n text: t('undo') as string,\n },\n });\n emit(BentoFilterBarEvent.INPUT, resetFilters);\n };\n\n const onSearchbarInput = (newSearchTerm: string) => {\n emit(BentoSearchBarEvent.INPUT, newSearchTerm);\n emit(BentoSearchBarEvent.UPDATE, newSearchTerm);\n };\n const onSearchbarClear = () => {\n emit(BentoSearchBarEvent.CLEAR);\n };\n\n return {\n // Values\n hasHiddenFilters,\n isClearAllVisible,\n isSearchBarEnabled,\n searchBarAriaLabel,\n persistentFilters,\n regularFilters,\n isResetAllVisible,\n\n // Enums\n BentoButtonVariant,\n\n // Events\n updateAllFilters,\n updateFilterHandler,\n clearAllFilters,\n onSearchbarClear,\n onSearchbarInput,\n resetAllFilters,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar.scss\" />\n"],"names":["BentoFilterEvent","BentoFilterEvent2","BentoFilterBarEvent","BentoFilterBarEvent2","BentoFilterItemType","BentoFilterItemType2","_sfc_main$g","defineComponent","BaseButton","BentoTypography","ChevronUpIcon","ChevronDownIcon","BentoBaseButtonEvent","props","slots","emit","attrs","labelSlot","computed","getSlotText","computedAriaLabel","useAriaLabel","baseFilterButtonRef","ref","ariaAttributes","_a","conditionalClasses","BentoTypographyElement","BentoTypographyVariant","useHasSlot","_sfc_main$f","BaseFilterButton","filterBarButtonRef","watch","value","prevValue","_b","BaseFilterEvent","BaseFilterEvent2","_sfc_main$e","messages$6","FilterBarFilterButton","BentoPopover","BentoClickOutsideDirective","t","useI18n","popoverId","generateUid","isFilterOpen","filterButtonRef","isPersistentFilter","closePopover","onClickSecondaryAction","onClickOutside","onClickFilter","onClickApply","BentoPopoverPositions","BentoTooltipPosition","BentoButtonVariant","BentoButtonActionsLayout","isArray","isValueEmpty","el","isEqual","first","second","useBaseFilter","appliedFilter","defaultFilter","internalFilterValue","isFilterInactive","isSecondaryButtonDisabled","isApplyButtonDisabled","truncate","aString","characterLimit","_sfc_main$d","BentoBaseFilter","BentoInputField","inputTextRef","toRef","buttonLabel","appliedFiltersCount","onBeforeUpdate","openFilter","nextTick","updateFilter","_sfc_main$c","BentoDatePicker","BentoDivider","Calendar","locale","locales","de","enUS","fr","format","clearFilter","resetFilter","onDateSelected","selectedDate","_sfc_main$b","messages$5","BentoButtonActions","BentoDateRangePicker","DateRangePickerCalendar","formatFormDate","date","DateFormat","formatFormTime","dateToFormat","baseFilter","isDateIncorrect","formData","reactive","_c","_d","onlySlot","cleanedProps","onDateInputSelected","actions","dateFormDate","_sfc_main$a","messages$4","BentoDropdown","BentoListbox","BentoSearchBar","searchTerm","optionsRef","itemsRef","filteredItems","useSearchBarFilter","noResultsMessage","itemsSelected","messageTranslation","message","listboxFilterId","onOptionSelected","selectedValue","closeFilter","singleSelectAmount","_sfc_main$9","BentoSelectFilter","BentoAvatar","_","_sfc_main$8","ListboxOptionTag","_sfc_main$7","BentoCountry","options","listboxItems","variant","toRefs","onUpdate","countryItems","useCountryItems","BentoCountryVariant","_sfc_main$6","BentoPaymentMethod","_props","_sfc_main$5","tagItems","label","_sfc_main$4","messages$3","BentoRadioGroup","items","onInput","event","_sfc_main$3","messages$2","updateFrom","newValue","updateTo","BentoInputFieldType","AllFiltersModalEvent","AllFiltersModalEvent2","_sfc_main$2","_sfc_main$1","messages$1","AllFiltersModalButton","BentoBooleanFilter","BentoButton","BentoDateFilter","BentoDateRangeFilter","BentoInputFilter","BentoModal","BentoRangeFilter","BentoSelectAvatarFilter","BentoSelectCurrencyFilter","BentoSelectCountryFilter","BentoSelectPaymentMethodFilter","BentoSelectTagFilter","filters","allFiltersModalUniqueId","allFiltersModalFiltersSection","isModalOpen","selectedFilterIndex","selectedFilterRef","allFiltersModalFilterButtons","sortAlphabetically","array","a","b","activeFilters","item","otherFilters","isEmptyResultForSearchFilter","selectedFilter","selectOpenedFilter","openedFilter","openedFilterIndex","onMounted","computedCounts","filter","_e","_f","isClearButtonEnabled","numberOfActiveFilters","partialSum","computedCount","onClickAllFiltersModal","getFilterCount","selectFilter","filterLabel","filterField","onSearchbarClear","cancel","updatedFilter","updatedFilters","otherFields","index","clearAll","applyAll","isApplyAllButtonDisabled","modalActions","BentoModalEvent","BentoModalSize","getNextFocusableElement","_sfc_main","messages","AllFiltersModal","BentoSearchBarEvent","toastController","useBentoToastController","searchBarAriaLabel","hasHiddenFilters","visible","persistentFilters","defaultValue","regularFilters","isSearchBarEnabled","hasActiveFilters","isClearAllVisible","isResetAllVisible","newFilters","filterIndex","previousFilters","clearedFilters","newSearchTerm","resetFilters"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkIY,IAAAA,IAAA,kBAAAC,OAERA,EAAA,QAAA,SAEAA,EAAA,SAAA,UAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,SADQA,IAAAD,KAAA,CAAA,CAAA,GAIAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,oBACAA,EAAA,UAAA,sBACAA,EAAA,QAAA,oBAEAA,EAAA,SAAA,qBACAA,EAAA,gBAAA,2BACAA,EAAA,iBAAA,4BACAA,EAAA,kBAAA,6BACAA,EAAA,wBAAA,kCACAA,EAAA,aAAA,wBAEAA,EAAA,OAAA,mBACAA,EAAA,aAAA,wBAbQA,IAAAD,KAAA,CAAA,CAAA;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oBA,kBAzBA,CAAAiB,MAAA;AACA,QAAApP,EAAAmO,EAAA,OAAAiB,CAAA,GACApP,EAAAmO,EAAA,QAAAiB,CAAA;AAAA,MAAA;AAAA,MAwBA,iBA5CA,MAAA;AACA,cAAAF,IAAApP,EAAA,MAAA,MAAA,GACAuP,IAAAvP,EAAA,MAAA,IAAA,CAAA,EAAA,cAAA4O,GAAA,GAAAnB,EAAA,OAAA;AAAA,UAAA,GAAAA;AAAA,UACA,cAAAmB;AAAA,UACA,OAAAA;AAAA,QACA,EAAA;AAGA,QAAAN,EAAA,SAAA;AAAA,UAAA,MAAAvM,EAAA,sBAAA;AAAA,UACA,QAAA;AAAA,YACA,SAAA,MAAA7B,EAAAb,EAAA,OAAA+P,CAAA;AAAA,YACA,MAAArN,EAAA,MAAA;AAAA,UACA;AAAA,QACA,CAAA,GAEA7B,EAAAb,EAAA,OAAAkQ,CAAA;AAAA,MAAA;AAAA,IA8BA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"filter-bar.js","sources":["../src/components/filter-bar/filter-bar.types.ts","../src/components/filter-bar/components/base-filter-button/base-filter-button.vue","../src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue","../src/components/filter-bar/components/base-filter/base-filter.types.ts","../src/components/filter-bar/components/base-filter/base-filter.vue","../src/components/filter-bar/components/base-filter/composables/use-base-filter.ts","../src/utils/ts/truncate.ts","../src/components/filter-bar/components/input-filter/input-filter.vue","../src/components/filter-bar/components/date-filter/date-filter.vue","../src/components/filter-bar/components/date-range-filter/date-range-filter.vue","../src/components/filter-bar/components/select-filter/select-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue","../src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue","../src/components/filter-bar/components/boolean-filter/boolean-filter.vue","../src/components/filter-bar/components/range-filter/range-filter.vue","../src/components/filter-bar/components/all-filters-modal/all-filters-modal.types.ts","../src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue","../src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue","../src/components/filter-bar/filter-bar.vue"],"sourcesContent":["import { BentoAvatarListboxOptions } from '@/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types';\nimport {\n BentoListboxIsOptionDisabled,\n BentoListboxLazyLoadType,\n BentoListboxOptions,\n BentoListboxSearchOptions,\n BentoListboxSelectedValue,\n OmitStrict,\n} from '@/types';\nimport { BentoCountryListboxOptions } from '@/components/dropdown/components/variants/dropdown-country/dropdown-country.types';\nimport { BentoTagListboxOptions } from '@/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types';\nimport { BentoCountryVariant } from '@/components/country';\nimport { BentoCurrencyListboxOptions } from '@/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types';\nimport { BentoPaymentMethodListboxOptions } from '@/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types';\nimport { BentoDatePickerFirstDayOfWeek, BentoDatePickerIsDateDisabled } from '../date-picker/date-picker.types';\nimport { BentoDateRangePickerValue } from '@/components/date-range-picker';\nimport { DateRangePickerCalendarRangeSelectorItems } from '../date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types';\n\nexport interface BentoSelectFilterOptions {\n /**\n * Option items for the list-box\n */\n listboxItems: BentoListboxOptions;\n\n /**\n * Defines if the list-box should be a multi-select filter\n */\n multiple?: boolean;\n\n /**\n * The translation object to handle any custom transations. e.g. perisistent filter labels.\n */\n messages?: {\n [key: string]: {\n persistentButtonLabelPartiallySelected: string;\n persistentButtonLabelAllSelected: string;\n [key: string]: string;\n };\n };\n\n lazy?: {\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems: boolean;\n\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType: BentoListboxLazyLoadType | `${BentoListboxLazyLoadType}`;\n\n /**\n * Indicates if new options are loading.\n */\n loading: boolean;\n\n /**\n * The click event that fires when the user press on the \"show more\" button OR when the user\n * scrolls down to bottom of the select filter box.\n */\n showMoreEvent?: () => void;\n };\n\n /**\n * Search options and events for the listbox filtering.\n */\n search?: BentoListboxSearchOptions;\n\n /**\n * A function that defines which option in the list-box is disabled\n */\n isOptionDisabled?: BentoListboxIsOptionDisabled;\n}\nexport type BentoSelectAvatarFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoAvatarListboxOptions;\n};\nexport type BentoSelectCountryFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoCountryListboxOptions;\n variant?: BentoCountryVariant | `${BentoCountryVariant}`;\n};\nexport type BentoSelectCurrencyFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoCurrencyListboxOptions;\n};\nexport type BentoSelectTagFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoTagListboxOptions;\n};\n\nexport type BentoSelectPaymentMethodFilterOptions = OmitStrict<BentoSelectFilterOptions, 'listboxItems'> & {\n listboxItems: BentoPaymentMethodListboxOptions;\n};\n\n// Date\nexport interface BentoDateFilterOptions {\n firstDayOfWeek?: BentoDatePickerFirstDayOfWeek;\n isDateDisabled?: BentoDatePickerIsDateDisabled;\n}\nexport interface BentoDateRangeFilterOptions {\n allowTimeInput?: boolean;\n firstDayOfWeek?: BentoDatePickerFirstDayOfWeek;\n isDateDisabled?: BentoDatePickerIsDateDisabled;\n maxRange?: number;\n numberOfMonths?: number;\n quickSelectRanges?: DateRangePickerCalendarRangeSelectorItems | boolean;\n}\n\nexport type BentoInputFilterValue = string | null;\nexport type BentoSelectFilterValue = BentoListboxSelectedValue;\nexport type BentoBooleanFilterValue = string | null;\nexport type BentoDateFilterValue = Date | null;\nexport type BentoDateRangeFilterValue = BentoDateRangePickerValue | null;\nexport type BentoFilterBarValue =\n | BentoInputFilterValue\n | BentoSelectFilterValue\n | BentoBooleanFilterValue\n | BentoDateFilterValue\n | BentoDateRangeFilterValue;\n\nexport type BentoFilterOptions =\n | BentoSelectFilterOptions\n | BentoSelectAvatarFilterOptions\n | BentoSelectCountryFilterOptions\n | BentoSelectCurrencyFilterOptions\n | BentoSelectPaymentMethodFilterOptions\n | BentoSelectTagFilterOptions\n | BentoDateFilterOptions\n | BentoDateRangeFilterOptions\n | undefined;\n\nexport enum BentoFilterEvent {\n // Fires upon the user interacting with the filter\n INPUT = 'input',\n // Fires on the (new) filter values being applied\n UPDATE = 'update',\n}\n\nexport enum BentoFilterBarEvent {\n INPUT = 'input',\n}\n\nexport enum BentoFilterItemType {\n INPUT = 'BentoInputFilter',\n BOOLEAN = 'BentoBooleanFilter',\n RANGE = 'BentoRangeFilter',\n // Select\n SELECT = 'BentoSelectFilter',\n SELECT_AVATAR = 'BentoSelectAvatarFilter',\n SELECT_COUNTRY = 'BentoSelectCountryFilter',\n SELECT_CURRENCY = 'BentoSelectCurrencyFilter',\n SELECT_PAYMENT_METHOD = 'BentoSelectPaymentMethodFilter',\n SELECT_TAG = 'BentoSelectTagFilter',\n // Date\n DATE = 'BentoDateFilter',\n DATE_RANGE = 'BentoDateRangeFilter',\n}\n\nexport interface BentoFilterModel {\n field: string;\n label: string;\n description?: string;\n type: BentoFilterItemType;\n options?: BentoFilterOptions;\n value?: BentoFilterBarValue;\n defaultValue?: BentoFilterBarValue;\n visible?: boolean;\n}\n\nexport type BentoFilterBarModel = Array<BentoFilterModel>;\n","<template>\n <base-button\n ref=\"baseFilterButtonRef\"\n class=\"b-base-filter-button\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n :aria-label=\"computedAriaLabel\"\n :aria-controls=\"ariaAttributes['aria-controls']\"\n type=\"button\"\n @click=\"onClickButton\"\n >\n <div class=\"b-base-filter-button__default-container\">\n <bento-typography\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n :stronger=\"bold\"\n class=\"b-base-filter-button__label\"\n >\n <slot />\n </bento-typography>\n\n <div v-if=\"amountAppliedValues && !hasChevron\" class=\"b-base-filter-button__counter-wrapper\">\n <bento-typography\n class=\"b-base-filter-button__counter\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n stronger\n >\n {{ amountAppliedValues }}\n </bento-typography>\n </div>\n </div>\n <template v-if=\"hasChevron\" #iconRight>\n <chevron-up-icon v-if=\"isFilterOpen\" aria-hidden=\"true\" />\n <chevron-down-icon v-else aria-hidden=\"true\" />\n </template>\n </base-button>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useHasSlot } from '@/composables';\n import { computed, defineComponent, ref } from 'vue';\n import { BaseButton, BentoBaseButtonEvent } from '@/components/internal/base-button';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n\n /**\n * A filter button used as a base to extend all sorts of filter buttons.\n * Used in the bento-filter-bar and all-filter-modals components.\n *\n * @usage\n * export default {\n * components: { BaseFilterButton },\n * template: `\n * <base-filter-button disabled>\n * Filter\n * </base-filter-button>\n * `,\n * }\n */\n export default defineComponent({\n name: 'base-filter-button',\n components: { BaseButton, BentoTypography, ChevronUpIcon, ChevronDownIcon },\n props: {\n /**\n * The number of applies values within the filter.\n * e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.\n */\n amountAppliedValues: { type: Number, default: null },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Signifies if the filter is open or closed.\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Toggles if a chevron icon should be displayed in the button.\n * The chevron will change depending on the open state of the filter.\n */\n hasChevron: { type: Boolean, default: false },\n\n /**\n * Renders the text in a stronger variant.\n */\n bold: { type: Boolean, default: false },\n },\n emits: [BentoBaseButtonEvent.CLICK],\n setup(props, { slots, emit, attrs }) {\n const labelSlot = computed((): string => (slots.default ? getSlotText(slots)('default') : null));\n const computedAriaLabel = useAriaLabel({ ariaLabel: labelSlot });\n const baseFilterButtonRef = ref(null);\n\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n }));\n\n const conditionalClasses = computed(() => ({\n [`b-base-filter-button--with-chevron`]: props.hasChevron,\n [`b-base-filter-button--filter-open`]: props.isFilterOpen,\n }));\n\n const onClickButton = () => {\n if (!props.disabled) {\n emit(BentoBaseButtonEvent.CLICK);\n }\n };\n\n return {\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n\n // Values\n ariaAttributes,\n computedAriaLabel,\n conditionalClasses,\n\n // Methods\n onClickButton,\n hasSlot: useHasSlot(slots),\n\n // Refs\n baseFilterButtonRef,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-filter-button.scss\" />\n","<template>\n <base-filter-button\n ref=\"filterBarButtonRef\"\n class=\"b-filter-bar-filter-button\"\n :class=\"conditionalClasses\"\n :bold=\"true\"\n :amount-applied-values=\"appliedFiltersCount\"\n :has-chevron=\"hasChevron\"\n :is-filter-open=\"isFilterOpen\"\n :disabled=\"disabled\"\n @click=\"onClick\"\n >\n {{ label }}\n </base-filter-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, ref, watch } from 'vue';\n import BaseFilterButton from '../../../base-filter-button/base-filter-button.vue';\n\n export default defineComponent({\n name: 'filter-bar-filter-button',\n components: { BaseFilterButton },\n props: {\n /**\n * Button label to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Total count of applied filters\n */\n appliedFiltersCount: { type: Number, default: null },\n\n /**\n * Indicates whether the button has a chevron\n */\n hasChevron: { type: Boolean, default: false },\n\n /**\n * Indicates whether the filter popover tied to this button is showing\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n },\n emits: ['click'],\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n [`b-filter-bar-filter-button--with-counter`]: props.appliedFiltersCount,\n [`b-filter-bar-filter-button--filter-open`]: props.isFilterOpen,\n }));\n\n const filterBarButtonRef = ref(null);\n\n watch(\n () => props.isFilterOpen,\n (value, prevValue) => {\n if (!value && prevValue) {\n if (filterBarButtonRef.value?.baseFilterButtonRef?.bentoBaseButtonRef) {\n filterBarButtonRef.value.baseFilterButtonRef.bentoBaseButtonRef.focus();\n }\n }\n }\n );\n\n const onClick = () => {\n emit('click');\n };\n\n return {\n conditionalClasses,\n // Refs\n filterBarButtonRef,\n\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar-filter-button.scss\"></style>\n","export enum BaseFilterEvent {\n APPLY = 'apply',\n CLEAR = 'clear',\n OPEN = 'open',\n CLOSE = 'close',\n RESET = 'reset',\n}\n","<template>\n <div v-if=\"onlySlot\">\n <slot></slot>\n </div>\n <div v-else v-bento-click-outside-directive=\"onClickOutside\" class=\"b-base-filter\" @keydown.esc=\"closePopover\">\n <filter-bar-filter-button\n ref=\"filterButtonRef\"\n :aria-controls=\"isFilterOpen ? popoverId : null\"\n :has-chevron=\"isPersistentFilter\"\n :is-filter-open=\"isFilterOpen\"\n :label=\"buttonLabel || label\"\n :applied-filters-count=\"appliedFiltersCount\"\n @click=\"onClickFilter\"\n />\n\n <bento-popover\n v-if=\"filterButtonRef\"\n :id=\"popoverId\"\n class=\"b-base-filter__popover\"\n divider\n :open=\"isFilterOpen\"\n :actions=\"controlled ? null : actions\"\n :actions-layout=\"BentoButtonActionsLayout.SPACE_BETWEEN\"\n :target-element=\"filterButtonRef\"\n :title=\"controlled ? null : label\"\n :fit-content=\"fitContent\"\n :position=\"BentoPopoverPositions.BOTTOM_START\"\n :without-space=\"controlled\"\n >\n <slot></slot>\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoButtonActionsLayout, BentoButtonVariant } from '@/components/button';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoClickOutsideDirective, BentoTooltipPosition } from '@/directives';\n import { FilterBarFilterButton } from './components';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoFilterBarValue } from '@/components/filter-bar/filter-bar.types';\n import { BaseFilterEvent } from './base-filter.types';\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/unique-id';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n export default defineComponent({\n i18n: { messages },\n name: 'bento-base-filter',\n components: {\n FilterBarFilterButton,\n BentoPopover,\n },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Total count of applied filters\n */\n appliedFiltersCount: { type: Number, default: null },\n\n /**\n * Overrides the label of the popover vsibility toggle button text.\n */\n buttonLabel: { type: String, default: undefined },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: {\n type: [Object, Number, Boolean, Array, String] as PropType<BentoFilterBarValue>,\n default: null,\n },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * Allows to handle the controls (apply/clear) from outside\n * of the component\n */\n controlled: { type: Boolean, default: false },\n\n /**\n * Disable the \"apply\" button\n */\n disableApplyButton: { type: Boolean, default: false },\n\n /**\n * Disable the secondary button action.\n */\n disableSecondaryButton: { type: Boolean, default: false },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Sets the size of the container to fit its content\n */\n fitContent: BentoPopover.props.fitContent,\n },\n emits: [\n BaseFilterEvent.APPLY,\n BaseFilterEvent.CLEAR,\n BaseFilterEvent.OPEN,\n BaseFilterEvent.CLOSE,\n BaseFilterEvent.RESET,\n ],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const popoverId = generateUid('base-filter-popover');\n const isFilterOpen = ref(false);\n const filterButtonRef = ref(null);\n\n const isPersistentFilter = computed(() => props.defaultValue !== null);\n\n const closePopover = () => {\n isFilterOpen.value = false;\n emit(BaseFilterEvent.CLOSE);\n };\n const onClickSecondaryAction = () => {\n closePopover();\n if (isPersistentFilter.value) {\n emit(BaseFilterEvent.RESET);\n } else {\n emit(BaseFilterEvent.CLEAR);\n }\n };\n const onClickOutside = () => closePopover();\n const onClickFilter = () => {\n if (isFilterOpen.value) {\n closePopover();\n } else {\n isFilterOpen.value = true;\n emit(BaseFilterEvent.OPEN);\n }\n };\n const onClickApply = () => {\n closePopover();\n emit(BaseFilterEvent.APPLY);\n };\n\n const actions = computed(() => [\n {\n title: t('apply') as string,\n event: onClickApply,\n disabled: props.disableApplyButton,\n },\n {\n title: isPersistentFilter.value ? (t('reset') as string) : (t('clear') as string),\n event: onClickSecondaryAction,\n disabled: props.disableSecondaryButton,\n },\n ]);\n\n return {\n // Values\n actions,\n popoverId,\n isFilterOpen,\n isPersistentFilter,\n\n // Enums\n BentoPopoverPositions,\n BentoTooltipPosition,\n\n // Events\n onClickFilter,\n onClickApply,\n onClickSecondaryAction,\n onClickOutside,\n closePopover,\n\n // Refs\n filterButtonRef,\n\n // Enums\n BentoButtonVariant,\n BentoButtonActionsLayout,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-filter.scss\"></style>\n","import { computed, ref, watch } from 'vue';\nimport type { Ref } from 'vue';\n\nconst isArray = <T>(value: T) => value instanceof Array;\nconst isValueEmpty = <T>(value: T) =>\n isArray(value) ? (value as []).length === 0 || (value as Array<T>).every(el => el === '') : !value;\nconst isEqual = <T>(first: T, second: T) => JSON.stringify(first) === JSON.stringify(second);\n\nexport const useBaseFilter = <T>(appliedFilter: Ref<T>, defaultFilter: Ref<T>) => {\n const internalFilterValue = ref<T>(appliedFilter.value as T);\n\n watch(\n () => appliedFilter.value,\n () => {\n (internalFilterValue as Ref<T>).value = appliedFilter.value as T;\n }\n );\n\n const isFilterInactive = computed(() => isValueEmpty(appliedFilter.value));\n\n const isSecondaryButtonDisabled = computed(() =>\n defaultFilter.value !== null ? isEqual<T>(defaultFilter.value, appliedFilter.value) : isFilterInactive.value\n );\n const isApplyButtonDisabled = computed(() => {\n const isValueUnchanged = isEqual((internalFilterValue as Ref<T>).value, appliedFilter.value as T);\n return isValueUnchanged || (isValueEmpty(internalFilterValue.value) && isFilterInactive.value);\n });\n\n return {\n internalFilterValue,\n isSecondaryButtonDisabled,\n isApplyButtonDisabled,\n };\n};\n","/**\n * Trunctes a string if it goes over a certain character limit.\n * @param aString the string to truncate.\n * @param characterLimit the character limit to start truncating at.\n * @returns a string that is truncated if it's length is over the limit.\n */\nexport const truncate = (aString: string, characterLimit: number) =>\n aString?.length > characterLimit ? `${aString.slice(0, characterLimit)}...` : aString;\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-input-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\" @input=\"onInput\">\n <bento-input-field ref=\"inputTextRef\" :value=\"internalFilterValue\" @input=\"internalFilterValue = $event\" />\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, onBeforeUpdate, ref, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoFilterEvent } from '../../filter-bar.types';\n import { BentoInputField } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n\n /**\n *\n */\n export default defineComponent({\n name: 'bento-input-filter',\n components: {\n BentoBaseFilter,\n BentoInputField,\n },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: String, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Current value of the filter\n */\n value: { type: String, default: null },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const inputTextRef = ref(null);\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter<string>(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() => (props.defaultValue === null ? props.label : truncate(props.value, 18)));\n\n // Count is always 1 for the text filter when it's active\n const appliedFiltersCount = computed(() => (props.value != null ? 1 : null));\n\n const conditionalClasses = computed(() => ({\n [`b-input-filter--only-slot`]: props.onlySlot,\n }));\n\n onBeforeUpdate(() => {\n // Set value to null when the string is empty\n if (internalFilterValue.value === '') {\n internalFilterValue.value = null;\n }\n });\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n\n nextTick(() => inputTextRef.value.focusInput());\n };\n\n const updateFilter = () => {\n if (!internalFilterValue.value && props.defaultValue !== null) {\n // If value set to empty, reset back to default value\n internalFilterValue.value = props.defaultValue;\n }\n emit(BentoFilterEvent.UPDATE, { ...props, value: internalFilterValue.value });\n };\n\n const resetFilter = () => emit(BentoFilterEvent.UPDATE, { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n const onInput = () => {\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n return {\n // Values\n appliedFiltersCount,\n buttonLabel,\n conditionalClasses,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n\n // Refs\n inputTextRef,\n\n // Events\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-filter.scss\" />\n","<template>\n <bento-base-filter\n :label=\"label\"\n :field=\"field\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :default-value=\"defaultValue\"\n :only-slot=\"onlySlot\"\n fit-content\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <bento-date-picker\n v-if=\"onlySlot\"\n :value=\"internalFilterValue\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n @input=\"onDateInputSelected\"\n />\n <template v-else>\n <bento-divider class=\"b-date-filter__divider\" />\n\n <div class=\"b-date-filter\">\n <calendar\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"internalFilterValue\"\n @input=\"onDateSelected\"\n />\n </div>\n </template>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoDateFilterOptions, BentoDateFilterValue, BentoFilterEvent } from '../../filter-bar.types';\n import { Calendar } from '@/internal';\n import { BentoDivider } from '@/components/divider';\n import { BentoDatePicker } from '@/components/date-picker';\n import format from 'date-fns/format';\n import { useI18n } from '@/utils/ts/i18n';\n import { de, enUS, fr } from 'date-fns/locale';\n\n /**\n * The Date filter displays a calendar that allows\n * to select a single date.\n *\n * @example\n * import { BentoDateFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDateFilter },\n * template: `\n * <bento-date-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-date-filter',\n components: {\n BentoBaseFilter,\n BentoDatePicker,\n BentoDivider,\n Calendar,\n },\n props: {\n isDateInput: { type: Boolean, default: true },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Date as PropType<BentoDateFilterValue>, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n */\n options: {\n type: Object as PropType<BentoDateFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n */\n value: { type: Date as PropType<BentoDateFilterValue>, default: undefined },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { locale } = useI18n(undefined, true);\n const locales = { de, enUS, fr };\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null\n ? props.label\n : format(props.value, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n );\n\n // Count is always 1 for the text filter when it's active\n const appliedFiltersCount = computed(() => (props.value != null ? 1 : null));\n\n const updateFilter = () => {\n emit(BentoFilterEvent.UPDATE, { ...props, value: internalFilterValue.value });\n };\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n const resetFilter = () => {\n internalFilterValue.value = props.defaultValue;\n updateFilter();\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const onDateSelected = (selectedDate: Date) => {\n internalFilterValue.value = selectedDate;\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n // Update internal date and emit selected date when using date-picker input\n const onDateInputSelected = (selectedDate: Date) => {\n internalFilterValue.value = selectedDate;\n onDateSelected(selectedDate);\n updateFilter();\n };\n\n return {\n // Values\n appliedFiltersCount,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n buttonLabel,\n\n // Events\n clearFilter,\n onDateSelected,\n openFilter,\n updateFilter,\n resetFilter,\n onDateInputSelected,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-filter.scss\" />\n","<template>\n <bento-base-filter\n ref=\"baseFilter\"\n :label=\"label\"\n :field=\"field\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :default-value=\"defaultValue\"\n :controlled=\"!onlySlot\"\n :only-slot=\"onlySlot\"\n fit-content\n @open=\"openFilter\"\n >\n <bento-date-range-picker\n v-if=\"onlySlot\"\n :allow-time-input=\"options?.allowTimeInput\"\n :value=\"internalFilterValue\"\n :custom-range=\"options?.quickSelectRanges\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :number-of-months=\"options?.numberOfMonths\"\n @input=\"onDateInputSelected\"\n />\n\n <template v-else>\n <div class=\"b-date-range-filter\">\n <date-range-picker-calendar\n :allow-time-input=\"options?.allowTimeInput\"\n :first-day-of-week=\"options?.firstDayOfWeek\"\n :is-date-disabled=\"options?.isDateDisabled\"\n :max-range=\"options?.maxRange\"\n :number-of-months=\"options?.numberOfMonths\"\n :value=\"internalFilterValue\"\n :date-form-data=\"formData\"\n @input=\"onDateSelected\"\n @error=\"onDatePickerRangeError\"\n @form-date=\"onDatePickerRangeFormDateInputUpdate\"\n >\n <template #title>\n <bento-typography\n strongest\n :variant=\"BentoTypographyVariant.BODY\"\n :el=\"BentoTypographyElement.SPAN\"\n >\n {{ label }}\n </bento-typography>\n </template>\n <template #actions>\n <bento-divider class=\"b-date-range-filter__divider\" />\n\n <bento-button-actions\n class=\"b-date-range-filter__actions\"\n :actions=\"actions\"\n :layout=\"BentoButtonActionsLayout.SPACE_BETWEEN\"\n />\n </template>\n </date-range-picker-calendar>\n </div>\n </template>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, reactive, ref, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoDateRangeFilterOptions, BentoDateRangeFilterValue, BentoFilterEvent } from '../../filter-bar.types';\n import { DateRangePickerCalendar } from '@/components/date-range-picker/components/date-range-picker-calendar';\n import { BentoDateRangePicker, BentoDateRangePickerValue } from '@/components/date-range-picker';\n import { BentoDivider } from '@/components/divider';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import {\n BentoButtonActions,\n BentoButtonActionsLayout,\n BentoButtonActionsList,\n } from '@/components/button/components/button-actions';\n import { useI18n } from '@/utils/ts/i18n';\n import { de, enUS, fr } from 'date-fns/locale';\n import { DateFormat } from '@/types';\n import format from 'date-fns/format';\n\n import messages from './messages.json';\n import { DateRangePickerCalendarFormData } from '@/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * The Date filter displays a calendar that allows\n * to select a single date.\n *\n * @example\n * import { BentoDateRangeFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDateRangeFilter },\n * template: `\n * <bento-date-range-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-date-range-filter',\n components: {\n BentoBaseFilter,\n BentoButtonActions,\n BentoDateRangePicker,\n BentoTypography,\n BentoDivider,\n DateRangePickerCalendar,\n },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Object as PropType<BentoDateRangeFilterValue>, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - allowTimeInput: Allows user to enter time values in the form\n * - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n * - maxRange: Set a maximum number of dates to be selectable by the range\n * - numberOfMonths: Number of months rendered on pane\n */\n options: {\n type: Object as PropType<BentoDateRangeFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n */\n value: {\n type: Object as PropType<BentoDateRangeFilterValue>,\n default: () => ({ startDate: undefined, endDate: undefined }),\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { locale, t } = useI18n<{ message: MessageSchema }>({ messages });\n const locales = { de, enUS, fr };\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const formatFormDate = (date: Date) =>\n date\n ? format(date, DateFormat.NUMERIC_DATE_YEAR_FIRST, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })\n : undefined;\n\n const formatFormTime = (dateToFormat?: Date) => {\n if (!dateToFormat) {\n return '';\n }\n\n return format(dateToFormat, DateFormat.HOUR_MINUTE_SECONDS, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n });\n };\n\n const baseFilter = ref(null);\n const isDateIncorrect = ref(false);\n const formData = reactive({\n startDate: formatFormDate(props.value?.startDate),\n endDate: formatFormDate(props.value?.endDate),\n startTime: formatFormTime(props.value?.startDate),\n endTime: formatFormTime(props.value?.endDate),\n });\n\n // Count is always 1 for the text filter when it's active\n const appliedFiltersCount = computed(() =>\n props.value?.startDate != null && props.value?.endDate != null ? 1 : null\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null\n ? props.label\n : `${format(props.value.startDate, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })} - ${format(props.value.endDate, 'dd MMM, yyyy', {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n })}`\n );\n\n const updateFilter = () => {\n baseFilter.value.closePopover();\n // Omit the onlySlot prop as it is not needed\n const { onlySlot, ...cleanedProps } = props;\n emit(BentoFilterEvent.UPDATE, { ...cleanedProps, value: internalFilterValue.value });\n };\n\n const clearFilter = () => {\n internalFilterValue.value = undefined;\n updateFilter();\n };\n\n const resetFilter = () => {\n internalFilterValue.value = props.defaultValue;\n updateFilter();\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const onDateSelected = (selectedDate: BentoDateRangePickerValue) => {\n internalFilterValue.value = selectedDate;\n formData.startDate = formatFormDate(selectedDate.startDate);\n formData.endDate = formatFormDate(selectedDate.endDate);\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n // Need to update the internal value and emit the date when using the date-picker input\n const onDateInputSelected = (selectedDate: BentoDateRangePickerValue) => {\n onDateSelected(selectedDate);\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const actions = computed(\n () =>\n [\n {\n title: t('apply') as string,\n event: updateFilter,\n disabled: isDateIncorrect.value || isApplyButtonDisabled.value,\n },\n {\n title: (props.defaultValue ? t('reset') : t('clear')) as string,\n event: (props.defaultValue ? resetFilter : clearFilter) as () => void,\n disabled: isDateIncorrect.value && isSecondaryButtonDisabled.value,\n },\n ] as BentoButtonActionsList\n );\n\n const onDatePickerRangeError = () => {\n isDateIncorrect.value = true;\n internalFilterValue.value = { startDate: undefined, endDate: undefined };\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const onDatePickerRangeFormDateInputUpdate = (dateFormDate: DateRangePickerCalendarFormData) => {\n isDateIncorrect.value = false;\n\n if (dateFormDate.startTime) {\n formData.startTime = dateFormDate.startTime;\n }\n\n if (dateFormDate.endTime) {\n formData.endTime = dateFormDate.endTime;\n }\n };\n\n return {\n // Refs\n baseFilter,\n\n // Values\n actions,\n appliedFiltersCount,\n formData,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n buttonLabel,\n\n // Enum\n BentoButtonActionsLayout,\n BentoTypographyElement,\n BentoTypographyVariant,\n\n // Events\n onDateSelected,\n openFilter,\n updateFilter,\n onDatePickerRangeError,\n onDatePickerRangeFormDateInputUpdate,\n onDateInputSelected,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-range-filter.scss\" />\n","<template>\n <bento-base-filter\n :label=\"label\"\n :field=\"field\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :default-value=\"defaultValue\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @reset=\"resetFilter\"\n @open=\"openFilter\"\n @close=\"closeFilter\"\n >\n <bento-dropdown\n v-if=\"onlySlot\"\n :value=\"internalFilterValue\"\n class=\"b-select-filter__dropdown-variant\"\n :items=\"options.listboxItems\"\n :multiple=\"options?.multiple\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"!!searchTerm\"\n :is-option-disabled=\"options.isOptionDisabled\"\n :dynamic-filtering=\"true\"\n @input=\"onOptionSelected\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-dropdown>\n <template v-else>\n <div class=\"b-select-filter__search-bar\">\n <bento-search-bar\n :debounce-time=\"options?.search?.debounceTime\"\n :value=\"searchTerm\"\n :input-field-aria-label=\"$t('searchFilter', { filter: label.toLocaleLowerCase() }).toString()\"\n @input=\"searchTerm = $event\"\n />\n </div>\n\n <hr class=\"b-select-filter__divider\" />\n\n <bento-listbox\n :id=\"listboxFilterId\"\n :aria-label=\"label\"\n class=\"b-select-filter__wrapper\"\n :has-more-items=\"options?.lazy?.hasMoreItems\"\n :items=\"filteredItems\"\n :is-option-disabled=\"options?.isOptionDisabled\"\n :lazy-load-type=\"options?.lazy?.lazyLoadType\"\n :loading=\"options?.lazy?.loading\"\n :multiple=\"options?.multiple\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"!!searchTerm\"\n :selected-value=\"internalFilterValue\"\n @select=\"onOptionSelected\"\n @show-more=\"options?.lazy?.showMoreEvent()\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-listbox>\n </template>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref, toRef, watch } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '../base-filter';\n import { BentoListbox } from '@/internal';\n import { BentoListboxOptionItem, BentoListboxSelectedValue } from '@/types';\n import { generateUid } from '@/utils/ts/unique-id';\n import { BentoFilterEvent, BentoSelectFilterOptions } from '../../filter-bar.types';\n import { BentoSearchBar, useSearchBarFilter } from '@/components/search-bar';\n import { truncate } from '@/utils/ts/truncate';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoDropdown } from '@/components/dropdown';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * The Listbox filter displays a listbox of items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectFilter },\n * template: `\n * <bento-select-filter\n * :field=\"filter.field\"\n * :label=\"filter.label\"\n * :options=\"filter.options\"\n * :value=\"filter.value\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-select-filter',\n components: {\n BentoBaseFilter,\n BentoDropdown,\n BentoListbox,\n BentoSearchBar,\n },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: [String, Number, Array] as PropType<BentoListboxSelectedValue>, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with.\n */\n options: {\n type: Object as PropType<BentoSelectFilterOptions>,\n default: undefined,\n },\n\n /**\n * Current value of the filter\n */\n value: {\n type: [String, Number, Array] as PropType<BentoListboxSelectedValue>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit, slots }) {\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const { t, locale } = useI18n<{ message: MessageSchema }>({ messages });\n\n const searchTerm = ref('');\n const optionsRef = toRef(props, 'options');\n const itemsRef = ref(props.options.listboxItems);\n\n // We need to make sure to update the items if the consumer updates them manually\n watch(optionsRef, () => {\n itemsRef.value = optionsRef.value.listboxItems;\n });\n\n const filteredItems = useSearchBarFilter<BentoListboxOptionItem>(\n searchTerm,\n itemsRef,\n props.options?.search?.searchEvent\n );\n const noResultsMessage = computed(() => t('noFiltersMatchThisSearch') as string);\n\n const buttonLabel = computed(() => {\n if (props.defaultValue === null) {\n return props.label;\n }\n if (props.options.multiple) {\n const itemsSelected = (props.value as unknown[]).length;\n if (itemsSelected === props.options.listboxItems.length) {\n return props?.options?.messages[locale.value].persistentButtonLabelAllSelected;\n }\n\n const messageTranslation = props?.options?.messages[\n locale.value\n ].persistentButtonLabelPartiallySelected\n .split('|')\n .map(message => message.trim());\n if (itemsSelected === 1) {\n return messageTranslation[0].replace('{count}', itemsSelected as unknown as string);\n }\n return messageTranslation[1].replace('{count}', itemsSelected as unknown as string);\n }\n return truncate(props.options.listboxItems.find(({ value }) => value === props.value)?.label, 18);\n });\n\n const listboxFilterId = computed(() => generateUid(`filter-listbox-${props.field}`));\n\n const onOptionSelected = (selectedValue: BentoListboxSelectedValue) => {\n internalFilterValue.value = selectedValue;\n const { onlySlot, ...cleanedProps } = props;\n emit(BentoFilterEvent.INPUT, { ...cleanedProps, value: internalFilterValue.value });\n };\n\n const updateFilter = () => {\n if (\n props.options.multiple &&\n internalFilterValue.value &&\n (internalFilterValue.value as unknown[]).length === 0\n ) {\n // If multi select fitler and all items unchecked,\n // If persistent filter, reset back to default value, else reset back to undefined\n internalFilterValue.value = props.defaultValue !== null ? props.defaultValue : undefined;\n }\n // Omit the onlySlot prop as it is not needed\n const { onlySlot, ...cleanedProps } = props;\n emit(BentoFilterEvent.UPDATE, { ...cleanedProps, value: internalFilterValue.value });\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const closeFilter = () => {\n // If the search term is set, reset it to \"empty\"\n if (searchTerm.value) {\n searchTerm.value = '';\n }\n };\n\n const resetFilter = () => {\n internalFilterValue.value = props.defaultValue;\n updateFilter();\n };\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n const appliedFiltersCount = computed(() => {\n // No filter applied\n if (props.value == null) {\n return null;\n }\n\n /**\n * Count is\n * single: always 1\n * multi: amount of items selceted (props.value)\n */\n const singleSelectAmount = 1;\n return props.options.multiple ? (props.value as Array<string | number>).length : singleSelectAmount;\n });\n\n return {\n // Values\n appliedFiltersCount,\n filteredItems,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n listboxFilterId,\n noResultsMessage,\n slots,\n buttonLabel,\n\n // Search\n searchTerm,\n\n // Events\n clearFilter,\n closeFilter,\n onOptionSelected,\n openFilter,\n updateFilter,\n resetFilter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./select-filter.scss\" />\n","<template>\n <bento-select-filter\n v-slot=\"{ label: slotLabel, data }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-avatar :username=\"slotLabel\" :src=\"data\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectAvatarFilterOptions } from '@/components/filter-bar';\n import { BentoAvatar } from '@/internal';\n\n /**\n * The Select Avatar filter displays a listbox of avatar items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectAvatarFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectAvatarFilter },\n * template: `\n * <bento-select-avatar-filter\n * :field=\"avatar\"\n * :label=\"Avatar\"\n * :options=\"{\n * listboxItems: [{\n * label: 'Avatar 1',\n * value: 'avatar-2'\n * }, {\n * label: 'Avatar 2',\n * value: 'avatar-2'\n * }],\n * :multiple=\"false\"\n * }\"\n * value=\"avatar-2\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-avatar-filter',\n components: {\n BentoSelectFilter,\n BentoAvatar,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the country filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectAvatarFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"slotProps\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <listbox-option-tag :option=\"slotProps\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { ListboxOptionTag } from '@/internal';\n import { BentoFilterEvent, BentoSelectCurrencyFilterOptions } from '@/components/filter-bar';\n\n /**\n * The Select Country filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoSelectCurrencyFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectCurrencyFilter },\n * template: `\n * <bento-select-currency-filter\n * :field=\"currency\"\n * :label=\"Currency\"\n * :options=\"{\n * listboxItems: [{\n * label: 'Euro',\n * value: BentoCurrencyISOCode.EUR,\n * }, {\n * label: 'US Dollars',\n * value: BentoCurrencyISOCode.USD,\n * }],\n * multiple=\"false\",\n * isOptionsDisabled=\"option => option.value === BentoCurrencyISOCode.USD\"\n * }\"\n * :value=\"BentoCountryVariant.EUR\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-country-filter',\n components: {\n BentoSelectFilter,\n ListboxOptionTag,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the country filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectCurrencyFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectCurrencyFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => {\n emit(BentoFilterEvent.UPDATE, selectedValue);\n };\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ value, label: slotLabel }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n :options=\"countryOptions\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-country :code=\"value\" :label=\"slotLabel\" :variant=\"BentoCountryVariant.CUSTOM\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, provide, toRef, toRefs } from 'vue';\n import { BentoCountry, BentoCountryVariant } from '@/components/country';\n import { useCountryItems } from '@/components/dropdown/components/variants/dropdown-country/composables/useCountryItems';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectCountryFilterOptions } from '@/components/filter-bar';\n import { deprecate } from '@/utils/ts/deprecate';\n\n /**\n * The Select Country filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectCountryFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectCountryFilter },\n * template: `\n * <bento-select-country-filter\n * :field=\"country\"\n * :label=\"Country\"\n * :options=\"{\n * listboxItems: [{\n * label: 'Netherlands',\n * value: BentoCountryCode.NL,\n * }, {\n * label: 'Belgium',\n * value: BentoCountryCode.BE,\n * }],\n * variant: BentoCountryVariant.CAPITAL\n * }\"\n * :value=\"BentoCountryCode.BE\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-country-filter',\n components: {\n BentoSelectFilter,\n BentoCountry,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the country filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}\n * - variant: Which label variant to display for the option item {@see BentoCountryVariant}.\n */\n options: {\n type: Object as PropType<BentoSelectCountryFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const options = toRef(props, 'options');\n const { listboxItems, variant } = toRefs(options.value);\n\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n const countryItems = useCountryItems(variant, listboxItems);\n const countryOptions = computed(() => ({\n ...props.options,\n listboxItems: countryItems.value,\n }));\n\n // Skip the BentoCountry deprecate message, because it's not relevant to the user for this component\n provide('skipBentoCountryDeprecateMessage', true);\n if (!variant || variant.value === 'custom') {\n deprecate(\n 'BentoSelectCountryFilter type with `options.variant===\"custom\"`',\n 'Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels',\n '2.0.0'\n );\n }\n\n return {\n // Values\n countryOptions,\n\n // Methods\n onUpdate,\n\n // Enums\n BentoCountryVariant,\n BentoFilterEvent,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ value, label: slotLabel }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <bento-payment-method :type=\"value\" :label=\"slotLabel\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectPaymentMethodFilterOptions } from '@/components/filter-bar';\n import { BentoPaymentMethod } from '@/components/payment-method';\n\n /**\n * The Select Payment Method filter displays a listbox of country items\n * passed in the \"options.listboxItems\" property to be used in the FilterBar component.\n *\n * @example\n * import { BentoSelectPaymentMethodFilter, BentoPaymentMethodType } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectPaymentMethodFilter },\n * template: `\n * <bento-select-paymnent-method-filter\n * :field=\"paymentMethod\"\n * :label=\"Payment method\"\n * :options=\"{\n * listboxItems: [\n * { label: 'Option 1', value: BentoPaymentMethodType.IDEAL },\n * { label: 'Option 2', value: BentoPaymentMethodType.VISA },\n * ],\n * }\"\n * :value=\"BentoPaymentMethodType.IDEAL\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-payment-method-filter',\n components: {\n BentoSelectFilter,\n BentoPaymentMethod,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the payment method filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectPaymentMethodFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectPaymentMethodFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(_props, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n return {\n // Enums\n BentoFilterEvent,\n\n // Methods\n onUpdate,\n };\n },\n });\n</script>\n","<template>\n <bento-select-filter\n v-slot=\"{ label: slotLabel, data }\"\n v-bind=\"$props\"\n :field=\"field\"\n :label=\"label\"\n :options=\"countryOptions\"\n @update=\"onUpdate\"\n @input=\"e => $emit(BentoFilterEvent.INPUT, e)\"\n >\n <listbox-option-tag :option=\"{ value: slotLabel, data, label: '' }\" />\n </bento-select-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoCountryVariant } from '@/components/country';\n import { BentoListboxSelectedValue } from '@/types';\n import { BentoSelectFilter } from '../../index';\n import { BentoFilterEvent, BentoSelectTagFilterOptions } from '@/components/filter-bar';\n import { ListboxOptionTag } from '@/internal';\n\n /**\n * The Select Tag filter displays a listbox of tag items\n * passed in the \"options.listboxItems\" property.\n *\n * @example\n * import { BentoSelectTagFilter, BentoTagVariant } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSelectTagFilter },\n * template: `\n * <bento-select-tag-filter\n * :field=\"tag\"\n * :label=\"Tag\"\n * :options=\"{\n * listboxItems: [\n * { label: 'Offline', value: 'unique-id-1', variant: BentoTagVariant.RED },\n * { label: 'Online', value: 'unique-id-2', variant: BentoTagVariant.GREEN },\n * { label: 'Standby', value: 'unique-id-3', variant: BentoTagVariant.ORANGE },\n * { label: 'Busy with things', value: 'unique-id-4', variant: BentoTagVariant.BLUE },\n * ]\n * }\"\n * :value=\"'unique-id-4'\"\n * @update=\"updateFilterHandler\"\n * >\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-select-country-filter',\n components: {\n BentoSelectFilter,\n ListboxOptionTag,\n },\n props: {\n ...BentoSelectFilter.props,\n\n /**\n * List of options that are needed to setup the tag filter\n * Available options:\n * - multiple: If \"true\", the user will be able to select multiple items.\n * - listboxItems: The option elements to populate the filter with {@see BentoSelectTagFilterOptions}\n */\n options: {\n type: Object as PropType<BentoSelectTagFilterOptions>,\n default: undefined,\n },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const onUpdate = (selectedValue: BentoListboxSelectedValue) => emit(BentoFilterEvent.UPDATE, selectedValue);\n\n const tagItems = computed(() =>\n props?.options?.listboxItems?.map(({ label, value, variant }) => ({ label, value, data: variant }))\n );\n const countryOptions = computed(() => ({\n ...props.options,\n listboxItems: tagItems.value,\n }));\n\n return {\n // Values\n countryOptions,\n\n // Methods\n onUpdate,\n\n // Enums\n BentoCountryVariant,\n BentoFilterEvent,\n };\n },\n });\n</script>\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-boolean-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\">\n <bento-radio-group\n :items=\"items\"\n :label=\"label\"\n :model-value=\"internalFilterValue\"\n hide-label\n @update:model-value=\"onInput\"\n ></bento-radio-group>\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onBeforeUpdate, toRef } from 'vue';\n import { BentoBaseFilter, useBaseFilter } from '@/components/filter-bar/components/base-filter';\n import { BentoRadioGroup } from '@/components/radio-group';\n import { useI18n } from '@/utils/ts/i18n';\n import { truncate } from '@/utils/ts/truncate';\n import { BentoFilterEvent } from '../../filter-bar.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * Example description of the component...\n *\n * @example\n * import { BentoBooleanFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoBooleanFilter },\n * template: `\n * <bento-boolean-filter>\n * ...Example code of the component\n * </bento-boolean-filter>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-boolean-filter',\n i18n: { messages },\n components: { BentoBaseFilter, BentoRadioGroup },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: String, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Current value of the filter\n */\n value: { type: String, default: null },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const items = computed(() => [\n { value: 'yes', label: t('yes') as string },\n { value: 'no', label: t('no') as string },\n ]);\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null\n ? props.label\n : truncate(items.value.find(({ value }) => value === props.value).label, 18)\n );\n\n // Count is always 1 for the boolean filter when it's active\n const appliedFiltersCount = computed(() => (props.value != null ? 1 : null));\n\n const conditionalClasses = computed(() => ({\n [`b-boolean-filter--only-slot`]: props.onlySlot,\n }));\n\n onBeforeUpdate(() => {\n // Set value to null when the value is unset\n if (!internalFilterValue.value) {\n internalFilterValue.value = null;\n }\n });\n\n const onInput = event => {\n internalFilterValue.value = event;\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n };\n\n const updateFilter = () => {\n emit(BentoFilterEvent.UPDATE, { ...props, value: internalFilterValue.value });\n };\n\n const resetFilter = () => emit(BentoFilterEvent.UPDATE, { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = null;\n updateFilter();\n };\n\n return {\n // Values\n items,\n appliedFiltersCount,\n conditionalClasses,\n buttonLabel,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n\n // Events\n onInput,\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./boolean-filter.scss\" />\n","<template>\n <bento-base-filter\n v-bind=\"$props\"\n :applied-filters-count=\"appliedFiltersCount\"\n :disable-apply-button=\"isApplyButtonDisabled\"\n :disable-secondary-button=\"isSecondaryButtonDisabled\"\n :button-label=\"buttonLabel\"\n :only-slot=\"onlySlot\"\n @apply=\"updateFilter\"\n @clear=\"clearFilter\"\n @open=\"openFilter\"\n @reset=\"resetFilter\"\n >\n <div class=\"b-range-filter\" :class=\"conditionalClasses\" @keydown.enter=\"updateFilter\">\n <bento-input-field\n ref=\"inputTextRef\"\n :value=\"internalFilterValue ? internalFilterValue[0] : ''\"\n :type=\"BentoInputFieldType.NUMBER\"\n :aria-label=\"$t('from').toString()\"\n @input=\"updateFrom\"\n >\n {{ $t('from') }}\n </bento-input-field>\n <bento-input-field\n class=\"b-range-filter__input-field\"\n :value=\"internalFilterValue ? internalFilterValue[1] : ''\"\n :type=\"BentoInputFieldType.NUMBER\"\n :aria-label=\"$t('to').toString()\"\n @input=\"updateTo\"\n >\n {{ $t('to') }}\n </bento-input-field>\n </div>\n </bento-base-filter>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, ref, toRef } from 'vue';\n import { BentoFilterEvent } from '../../filter-bar.types';\n import messages from './messages.json';\n import { BentoBaseFilter, useBaseFilter } from '@/components/filter-bar/components/base-filter';\n import { BentoInputField, BentoInputFieldType } from '@/components/input-field';\n import { truncate } from '@/utils/ts/truncate';\n\n /**\n * Range filter used in the filter-bar component.\n *\n * @example\n * import { BentoRangeFilter } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoRangeFilter },\n * template: `\n * <bento-range-filter field=\"filter-field\" label=\"Filter label\" value=\"['0', '1']\"/>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-range-filter',\n i18n: { messages },\n components: { BentoBaseFilter, BentoInputField },\n props: {\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: { type: Array as PropType<string[]>, default: null },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Current value of the filter\n */\n value: { type: Array as PropType<string[]>, default: () => ['', ''] },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n },\n emits: [BentoFilterEvent.INPUT, BentoFilterEvent.UPDATE],\n setup(props, { emit }) {\n const inputTextRef = ref(null);\n\n const { internalFilterValue, isSecondaryButtonDisabled, isApplyButtonDisabled } = useBaseFilter(\n toRef(props, 'value'),\n toRef(props, 'defaultValue')\n );\n\n const buttonLabel = computed(() =>\n props.defaultValue === null\n ? props.label\n : `${truncate(props.value[0], 5)}-${truncate(props.value[1], 5)}`\n );\n\n // Count is always 1 for the range filter when there's at least one input applied\n const appliedFiltersCount = computed(() => (props.value.find(el => el !== '') ? 1 : null));\n\n const conditionalClasses = computed(() => ({\n [`b-range-filter--only-slot`]: props.onlySlot,\n }));\n\n const openFilter = () => {\n internalFilterValue.value = props.value;\n\n nextTick(() => inputTextRef.value.focusInput());\n };\n\n const onInput = () => {\n emit(BentoFilterEvent.INPUT, { ...props, value: internalFilterValue.value });\n };\n\n const updateFrom = newValue => {\n internalFilterValue.value = [newValue, internalFilterValue.value[1]];\n onInput();\n };\n\n const updateTo = newValue => {\n internalFilterValue.value = [internalFilterValue.value[0], newValue];\n onInput();\n };\n\n const updateFilter = () => {\n if (!internalFilterValue.value.some(x => x)) {\n // If both range values are empty,\n // If persistent filter, reset back to default value, else reset back to undefined\n internalFilterValue.value = props.defaultValue !== null ? props.defaultValue : undefined;\n }\n emit(BentoFilterEvent.UPDATE, {\n ...props,\n value: internalFilterValue.value,\n });\n };\n\n const resetFilter = () => emit(BentoFilterEvent.UPDATE, { ...props, value: props.defaultValue });\n\n const clearFilter = () => {\n internalFilterValue.value = ['', ''];\n updateFilter();\n };\n\n return {\n // Enums\n BentoInputFieldType,\n\n // Values\n inputTextRef,\n appliedFiltersCount,\n conditionalClasses,\n internalFilterValue,\n isApplyButtonDisabled,\n isSecondaryButtonDisabled,\n buttonLabel,\n\n // Events\n updateFrom,\n updateTo,\n updateFilter,\n clearFilter,\n openFilter,\n resetFilter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./range-filter.scss\" />\n","export enum AllFiltersModalEvent {\n INPUT = 'input',\n}\n","<template>\n <base-filter-button\n class=\"b-all-filters-modal-button\"\n :class=\"conditionalClasses\"\n :amount-applied-values=\"appliedFiltersCount\"\n :is-filter-open=\"isFilterOpen\"\n :disabled=\"disabled\"\n @click=\"onClick\"\n >\n {{ label }}\n </base-filter-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import BaseFilterButton from '../../../base-filter-button/base-filter-button.vue';\n\n export default defineComponent({\n name: 'all-filters-modal-button',\n components: { BaseFilterButton },\n props: {\n /**\n * Button label to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Total count of applied filters\n */\n appliedFiltersCount: { type: Number, default: null },\n\n /**\n * Indicates whether the filter popover tied to this button is showing\n */\n isFilterOpen: { type: Boolean, default: false },\n\n /**\n * Disables button functionality.\n */\n disabled: { type: Boolean, default: false },\n },\n emits: ['click'],\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n [`b-all-filters-modal-button--with-counter`]: props.appliedFiltersCount,\n [`b-all-filters-modal-button--filter-open`]: props.isFilterOpen,\n }));\n\n const onClick = () => {\n emit('click');\n };\n\n return {\n conditionalClasses,\n\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal-button.scss\" />\n","<template>\n <div class=\"b-all-filters-modal\">\n <filter-bar-filter-button\n :label=\"$t('allFilters').toString()\"\n :is-filter-open=\"isModalOpen\"\n :applied-filters-count=\"numberOfActiveFilters\"\n @click=\"onClickAllFiltersModal\"\n />\n <bento-modal\n class=\"'b-all-filters-modal__modal'\"\n :is-open=\"isModalOpen\"\n :with-column-layout=\"true\"\n :size=\"BentoModalSize.LARGE\"\n :actions=\"modalActions\"\n :is-dismissible=\"false\"\n hide-close-button\n @close-modal=\"cancel\"\n >\n <template #default>\n {{ $t('allFilters') }}\n </template>\n <template #content-col-1>\n <div\n ref=\"allFiltersModalFiltersSection\"\n class=\"b-all-filters-modal__filters\"\n @keydown.right=\"onKeydownRight\"\n >\n <bento-search-bar\n class=\"b-all-filters-modal__search-bar\"\n :value=\"searchTerm\"\n :input-field-aria-label=\"$t('searchBar').toString()\"\n @input=\"searchTerm = $event\"\n @clear=\"onSearchbarClear\"\n />\n <div v-if=\"isEmptyResultForSearchFilter\" class=\"b-all-filters-modal__empty-search-message\">\n <bento-typography :el=\"BentoTypographyElement.SPAN\">\n {{ $t('noFiltersMatchThisSearch') }}</bento-typography\n >\n </div>\n <div v-if=\"activeFilters.length\" class=\"b-all-filters-modal__filters-section\">\n <bento-typography\n :id=\"`active-filters-${allFiltersModalUniqueId}`\"\n class=\"b-all-filters-modal__filters-section-title\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.CAPTION\"\n >\n {{ $t('activeFilters') }}</bento-typography\n >\n <ul\n class=\"b-all-filters-modal__filters-list\"\n :aria-labelledby=\"`active-filters-${allFiltersModalUniqueId}`\"\n >\n <li v-for=\"item in activeFilters\" :key=\"`${item.label}-${item.field}`\">\n <all-filters-modal-button\n :ref=\"el => (allFiltersModalFilterButtons[item.label] = el)\"\n :label=\"item.label\"\n :applied-filters-count=\"getFilterCount(item.label)\"\n :is-filter-open=\"selectedFilter.label === item.label\"\n @click=\"selectFilter(item.label, item.field)\"\n />\n </li>\n </ul>\n </div>\n <div v-if=\"otherFilters.length\" class=\"b-all-filters-modal__filters-section\">\n <bento-typography\n v-if=\"activeFilters.length\"\n :id=\"`other-filters-${allFiltersModalUniqueId}`\"\n class=\"b-all-filters-modal__filters-section-title\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.CAPTION\"\n >\n {{ $t('otherFilters') }}</bento-typography\n >\n <ul\n class=\"b-all-filters-modal__filters-list\"\n :aria-labelledby=\"`other-filters-${allFiltersModalUniqueId}`\"\n >\n <li v-for=\"item in otherFilters\" :key=\"`${item.label}-${item.field}`\">\n <all-filters-modal-button\n :ref=\"el => (allFiltersModalFilterButtons[item.label] = el)\"\n :label=\"item.label\"\n :applied-filters-count=\"getFilterCount(item.label)\"\n :is-filter-open=\"selectedFilter.label === item.label\"\n @click=\"selectFilter(item.label, item.field)\"\n />\n </li>\n </ul>\n </div>\n </div>\n </template>\n <template #content-col-2>\n <div class=\"b-all-filters-modal__selected-filter-content\" @keydown.left=\"onKeydownLeft\">\n <div class=\"b-all-filters-modal__selected-filter-text\">\n <bento-typography\n :el=\"BentoTypographyElement.DIV\"\n :variant=\"BentoTypographyVariant.TITLE\"\n medium\n >{{ selectedFilter.label }}</bento-typography\n >\n <bento-typography\n v-if=\"selectedFilter.description\"\n :el=\"BentoTypographyElement.DIV\"\n :variant=\"BentoTypographyVariant.BODY\"\n wide\n >\n {{ selectedFilter.description }}\n </bento-typography>\n </div>\n <div class=\"b-all-filters-modal__selected-filter-component\">\n <component\n :is=\"selectedFilter.type\"\n ref=\"selectedFilterRef\"\n :key=\"selectedFilter.field\"\n :field=\"selectedFilter.field\"\n :label=\"selectedFilter.label\"\n :options=\"selectedFilter.options\"\n :value=\"selectedFilter.value\"\n :default-value=\"selectedFilter.defaultValue\"\n :only-slot=\"true\"\n @input=\"updateFilter\"\n />\n </div>\n <div class=\"b-all-filters-modal__clear-button\">\n <bento-button\n :variant=\"BentoButtonVariant.SECONDARY\"\n :disabled=\"!isClearButtonEnabled\"\n @click=\"clearFilter\"\n >{{ $t('clear') }}</bento-button\n >\n </div>\n </div>\n </template>\n </bento-modal>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onBeforeUpdate, onMounted, PropType, reactive, ref, toRef, watch } from 'vue';\n import { BentoModal, BentoModalEvent, BentoModalSize } from '@/components/modal';\n import { BentoButton, BentoButtonVariant } from '@/components/button';\n import {\n BentoFilterBarModel,\n BentoFilterItemType,\n BentoFilterModel,\n BentoSelectFilterOptions,\n } from '@/components/filter-bar';\n import {\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoRangeFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n } from '../index';\n import { BentoDateRangePickerValue } from '@/components/date-range-picker';\n import { BentoSearchBar, useSearchBarFilter } from '@/components/search-bar';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { generateUid } from '@/utils/ts/unique-id';\n import { getNextFocusableElement } from '@/utils/ts/focus-trap.utils';\n import { FilterBarFilterButton } from '../base-filter/components';\n import { AllFiltersModalEvent } from './all-filters-modal.types';\n import { useI18n } from '@/utils/ts/i18n';\n import AllFiltersModalButton from './components/all-filters-modal-button/all-filters-modal-button.vue';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * A modal that acts as sort of filter manager for the BentoFilterBar.\n *\n * @example\n * import { BentoAllFiltersModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoAllFiltersModal },\n * template: `\n * <bento-all-filters-modal>\n * ...Example code of the component\n * </bento-all-filters-modal>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'all-filters-modal',\n components: {\n AllFiltersModalButton,\n BentoBooleanFilter,\n BentoButton,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoModal,\n BentoRangeFilter,\n BentoSearchBar,\n BentoSelectAvatarFilter,\n BentoSelectCurrencyFilter,\n BentoSelectCountryFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n BentoTypography,\n FilterBarFilterButton,\n },\n props: {\n /**\n * Array of filters based on {@see FilterBarModel}.\n * Each one of the elements in the array correspond to a filter that will\n * be created and rendered in the AllFiltersModal.\n *\n * Can be used with v-model or independently with the @input event.\n *\n * @example\n * [{\n * field: 'company',\n * label: 'Company',\n * value: '200',\n * type: FilterType.TEXT,\n * }, {\n * field: 'name',\n * label: 'Name',\n * value: null,\n * type: FilterType.TEXT,\n * }]\n */\n value: {\n type: Array as PropType<BentoFilterBarModel>,\n default: () => [],\n },\n },\n emits: [AllFiltersModalEvent.INPUT],\n setup(props, { emit }) {\n const filters = reactive({ value: props.value });\n const allFiltersModalUniqueId = generateUid('all-filters-modal');\n const allFiltersModalFiltersSection = ref([]);\n const isModalOpen = ref(false);\n const selectedFilterIndex = ref(0);\n const selectedFilterRef = ref(null);\n const searchTerm = ref<string>('');\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const filteredItems = useSearchBarFilter<BentoFilterModel>(searchTerm, toRef(filters, 'value'));\n\n const allFiltersModalFilterButtons = ref({});\n onBeforeUpdate(() => {\n allFiltersModalFilterButtons.value = [];\n });\n\n watch(\n () => props.value,\n () => {\n filters.value = props.value;\n }\n );\n\n const sortAlphabetically = (array: BentoFilterBarModel) =>\n /* eslint-disable-next-line no-nested-ternary */\n array.sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0));\n\n const activeFilters = computed(() =>\n sortAlphabetically(\n filteredItems.value.filter(el =>\n Array.isArray(el.value) ? el.value?.length && el.value?.find(item => item !== '') : el.value\n )\n )\n );\n\n const otherFilters = computed(() =>\n sortAlphabetically(\n filteredItems.value.filter(el =>\n Array.isArray(el.value)\n ? el.value?.length === 0 || el.value?.every(item => item === '')\n : !el.value\n )\n )\n );\n\n const isEmptyResultForSearchFilter = computed(() => searchTerm.value && filteredItems.value?.length === 0);\n\n const selectedFilter = computed(() => filters.value[selectedFilterIndex.value]);\n\n const selectOpenedFilter = () => {\n const openedFilter = activeFilters.value.length ? activeFilters.value[0] : otherFilters.value[0];\n const openedFilterIndex = filters.value.findIndex(\n el => el.label === openedFilter.label && el.field === openedFilter.field\n );\n selectedFilterIndex.value = openedFilterIndex;\n };\n\n onMounted(() => {\n selectOpenedFilter();\n });\n\n const computedCounts = computed(() =>\n filters.value.map(filter => {\n switch (filter.type) {\n case BentoFilterItemType.SELECT:\n case BentoFilterItemType.SELECT_AVATAR:\n case BentoFilterItemType.SELECT_COUNTRY:\n case BentoFilterItemType.SELECT_CURRENCY:\n case BentoFilterItemType.SELECT_PAYMENT_METHOD:\n case BentoFilterItemType.SELECT_TAG:\n switch ((filter.options as BentoSelectFilterOptions)?.multiple) {\n case true:\n return {\n label: filter.label,\n field: filter.field,\n count: (filter.value as Array<string | number>)?.length\n ? (filter.value as Array<string | number>)?.length\n : null,\n };\n default:\n return {\n label: filter.label,\n field: filter.field,\n count: filter.value == null ? null : 1,\n };\n }\n case BentoFilterItemType.DATE_RANGE:\n return {\n label: filter.label,\n field: filter.field,\n count:\n (filter.value as BentoDateRangePickerValue)?.startDate != null &&\n (filter.value as BentoDateRangePickerValue)?.endDate != null\n ? 1\n : null,\n };\n case BentoFilterItemType.RANGE:\n return {\n label: filter.label,\n field: filter.field,\n count: (filter.value as Array<string>)?.find(el => el !== '') ? 1 : null,\n };\n case BentoFilterItemType.INPUT:\n case BentoFilterItemType.BOOLEAN:\n case BentoFilterItemType.DATE:\n default:\n return {\n label: filter.label,\n field: filter.field,\n count: filter.value != null ? 1 : null,\n };\n }\n })\n );\n\n const isClearButtonEnabled = computed(() =>\n Array.isArray(selectedFilter.value.value)\n ? selectedFilter.value?.value.length && selectedFilter.value.value.find(item => item !== '')\n : !!filters.value[selectedFilterIndex.value].value\n );\n\n const numberOfActiveFilters = computed(() =>\n // eslint-disable-next-line no-return-assign, no-param-reassign\n computedCounts.value?.reduce((partialSum, computedCount) => (partialSum += computedCount.count), 0)\n );\n\n const onClickAllFiltersModal = () => {\n if (!isModalOpen.value) {\n isModalOpen.value = true;\n } else {\n isModalOpen.value = false;\n }\n };\n\n const getFilterCount = (label: string) => computedCounts.value.find(el => el.label === label).count;\n\n const selectFilter = (filterLabel: string, filterField: string) => {\n selectedFilterIndex.value = filters.value.findIndex(\n el => el.label === filterLabel && el.field === filterField\n );\n };\n\n const onSearchbarClear = () => {\n searchTerm.value = '';\n };\n\n const cancel = () => {\n isModalOpen.value = false;\n filters.value = props.value;\n onSearchbarClear();\n selectOpenedFilter();\n // TODO: scrol filters section to top\n };\n\n const updateFilter = (updatedFilter: BentoFilterModel) => {\n const updatedFilters = filters.value.map(({ value, ...otherFields }, index) => {\n if (index === selectedFilterIndex.value) {\n return { value: updatedFilter.value, ...otherFields };\n }\n return { value, ...otherFields };\n });\n\n filters.value = updatedFilters;\n };\n\n const clearFilter = () => {\n updateFilter({\n field: selectedFilter.value.field,\n label: selectedFilter.value.label,\n type: selectedFilter.value.type,\n value: undefined,\n });\n };\n\n const clearAll = () => {\n filters.value = filters.value.map(({ value, ...otherFields }) => ({\n ...otherFields,\n value: undefined,\n }));\n };\n\n const applyAll = () => {\n emit(AllFiltersModalEvent.INPUT, filters.value);\n isModalOpen.value = false;\n };\n\n const isApplyAllButtonDisabled = computed(\n () => JSON.stringify(filters.value) === JSON.stringify(props.value)\n );\n\n const modalActions = computed(() => [\n {\n title: t('applyAll'),\n disabled: isApplyAllButtonDisabled.value,\n event: applyAll,\n },\n\n {\n title: t('cancel'),\n event: cancel,\n },\n {\n title: t('clearAll'),\n disabled: !numberOfActiveFilters.value,\n event: clearAll,\n },\n ]);\n\n const onKeydownRight = () => {\n const focusableEl = getNextFocusableElement(1, selectedFilterRef.value.$el);\n focusableEl.focus();\n };\n\n const onKeydownLeft = () => {\n allFiltersModalFilterButtons.value[selectedFilter.value.label].$el.focus();\n };\n\n return {\n // Enums\n BentoModalEvent,\n BentoModalSize,\n BentoButtonVariant,\n BentoTypographyElement,\n BentoTypographyVariant,\n\n // Values\n allFiltersModalUniqueId,\n allFiltersModalFiltersSection,\n allFiltersModalFilterButtons,\n numberOfActiveFilters,\n isEmptyResultForSearchFilter,\n isModalOpen,\n isClearButtonEnabled,\n activeFilters,\n otherFilters,\n modalActions,\n selectedFilter,\n selectedFilterRef,\n filters,\n computedCounts,\n searchTerm,\n\n // Methods\n onClickAllFiltersModal,\n getFilterCount,\n cancel,\n selectFilter,\n clearFilter,\n updateFilter,\n onSearchbarClear,\n onKeydownRight,\n onKeydownLeft,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./all-filters-modal.scss\" />\n","<template>\n <div class=\"b-filter-bar\">\n <div class=\"b-filter-bar__filters-wrapper\">\n <div v-if=\"persistentFilters.length\" class=\"b-filter-bar__persistent-filters\">\n <component\n :is=\"filter.type\"\n v-for=\"filter in persistentFilters\"\n :key=\"filter.field\"\n :field=\"filter.field\"\n :label=\"filter.label\"\n :options=\"filter.options\"\n :value=\"filter.value\"\n :default-value=\"filter.defaultValue\"\n @update=\"updateFilterHandler\"\n />\n </div>\n <div class=\"b-filter-bar__regular-filters\">\n <component\n :is=\"filter.type\"\n v-for=\"filter in regularFilters\"\n :key=\"filter.field\"\n :field=\"filter.field\"\n :label=\"filter.label\"\n :options=\"filter.options\"\n :value=\"filter.value\"\n @update=\"updateFilterHandler\"\n />\n\n <!-- All filters button -->\n <all-filters-modal v-if=\"hasHiddenFilters\" :value=\"value\" @input=\"updateAllFilters\" />\n </div>\n\n <bento-button\n v-show=\"isClearAllVisible\"\n class=\"b-filter-bar__clear-all\"\n :variant=\"BentoButtonVariant.TERTIARY\"\n @click=\"clearAllFilters\"\n >{{ $t('clearAll') }}</bento-button\n >\n\n <bento-button\n v-show=\"isResetAllVisible\"\n class=\"b-filter-bar__reset-all\"\n :variant=\"BentoButtonVariant.TERTIARY\"\n @click=\"resetAllFilters\"\n >\n {{ $t('resetAll') }}\n </bento-button>\n </div>\n <bento-search-bar\n v-if=\"isSearchBarEnabled\"\n class=\"b-filter-bar__search-bar\"\n :input-field-aria-label=\"searchBarAriaLabel\"\n :value=\"searchTerm\"\n @input=\"onSearchbarInput\"\n @clear=\"onSearchbarClear\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoFilterBarEvent, BentoFilterBarModel, BentoFilterModel } from './filter-bar.types';\n import { BentoButton, BentoButtonVariant } from '@/components/button';\n import {\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoInputFilter,\n BentoRangeFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n } from './components';\n import { BentoSearchBar, BentoSearchBarEvent } from '@/components/search-bar';\n import { useI18n } from '@/utils/ts/i18n';\n import { useBentoToastController } from '../../utils/ts/toastController';\n import AllFiltersModal from './components/all-filters-modal/all-filters-modal.vue';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * The filter bar filters item lists and tables according to various filter criteria.\n *\n * @example\n * import { BentoFilterBar } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoFilterBar },\n * data: () => ({\n * filters: [{\n * field: 'name',\n * label: 'Name',\n * value: null,\n * options: { ... },\n * type: FilterType.TEXT,\n * }]\n * }),\n * template: `\n * <bento-filter-bar\n * v-model=\"filter\"\n * />\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-filter-bar',\n components: {\n AllFiltersModal,\n BentoButton,\n BentoBooleanFilter,\n BentoDateFilter,\n BentoDateRangeFilter,\n BentoRangeFilter,\n BentoInputFilter,\n BentoSelectFilter,\n BentoSelectAvatarFilter,\n BentoSelectCountryFilter,\n BentoSelectCurrencyFilter,\n BentoSelectPaymentMethodFilter,\n BentoSelectTagFilter,\n BentoSearchBar,\n },\n props: {\n /**\n * Search term useful to filter all the data by text.\n * If the value is non-existant (null or undefined) the search bar won't be enabled.\n */\n searchTerm: {\n type: BentoSearchBar.props.value.type,\n default: undefined,\n },\n\n /**\n * Array of filters based on {@see FilterBarModel}.\n * Each one of the elements in the array correspond to a filter that will\n * be created and rendered in the FilterBar.\n *\n * Can be used with v-model or independently with the @input event.\n *\n * @example\n * [{\n * field: 'company',\n * label: 'Company',\n * value: '200',\n * type: FilterType.TEXT,\n * }, {\n * field: 'name',\n * label: 'Name',\n * value: null,\n * type: FilterType.TEXT,\n * }]\n */\n value: {\n type: Array as PropType<BentoFilterBarModel>,\n default: () => [],\n },\n },\n emits: [\n BentoFilterBarEvent.INPUT,\n BentoSearchBarEvent.CLEAR,\n BentoSearchBarEvent.INPUT,\n BentoSearchBarEvent.UPDATE,\n ],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const toastController = useBentoToastController();\n const searchBarAriaLabel = computed(() => t('searchBar') as string);\n\n const hasHiddenFilters = computed(() => {\n // Has props with visible set\n const hasVisibleSet = props.value.some(({ visible }) => visible !== undefined && visible !== null);\n return hasVisibleSet ? props.value.some(({ visible }) => !visible) : false;\n });\n\n // Persistent filters i.e. filters with default value\n const persistentFilters = computed(() =>\n props.value.filter(({ defaultValue }) => defaultValue !== undefined)\n );\n // Show non-persistent & visible filters\n const regularFilters = computed(() => {\n const hasVisibleSet = props.value.some(({ visible }) => visible !== undefined && visible !== null);\n // If no filter has the `visible` prop set then all are visible, otherwise search for the \"visible: true\" elements\n return hasVisibleSet\n ? props.value.filter(({ defaultValue, visible }) => defaultValue === undefined && visible)\n : props.value.filter(({ defaultValue }) => defaultValue === undefined);\n });\n\n // Enable search bar.\n // Soft equality to check for \"null\" and \"undefined\"\n // eslint-disable-next-line eqeqeq\n const isSearchBarEnabled = computed(() => props.searchTerm != undefined);\n\n const hasActiveFilters = computed(() =>\n props.value\n .filter(({ defaultValue }) => defaultValue === undefined || defaultValue === null)\n // Disabling strict equality to check for both undefined and null\n // eslint-disable-next-line eqeqeq\n .some(({ value }) => value != undefined)\n );\n\n // Show the \"Clear all\" button (true) if at least one filter is active (contains a value)\n // and there are not persistent filters present.\n const isClearAllVisible = computed(() => persistentFilters.value.length === 0 && hasActiveFilters.value);\n\n const isResetAllVisible = computed(() => {\n if (persistentFilters.value.length === 0) {\n return false;\n }\n const areAllValuesEqualToDefaults = props.value\n .filter(({ defaultValue }) => defaultValue !== undefined || defaultValue !== null)\n .every(({ value, defaultValue }) => JSON.stringify(value) === JSON.stringify(defaultValue));\n\n return !areAllValuesEqualToDefaults || hasActiveFilters.value;\n });\n\n const updateAllFilters = (newFilters: BentoFilterBarModel) => {\n emit(BentoFilterBarEvent.INPUT, newFilters);\n };\n\n const updateFilterHandler = (updatedFilter: BentoFilterModel) => {\n const filterIndex = props.value.findIndex(filter => filter.field === updatedFilter.field);\n const newFilters = props.value.slice();\n newFilters[filterIndex].value = updatedFilter.value;\n\n emit(BentoFilterBarEvent.INPUT, newFilters);\n };\n\n const clearAllFilters = () => {\n const previousFilters = props.value.slice();\n const clearedFilters = props.value.map(({ value, ...otherFields }) => ({\n ...otherFields,\n value: undefined,\n }));\n\n toastController.addToast({\n text: t('filtersHaveBeenCleared') as string,\n action: {\n handler: () => emit(BentoFilterBarEvent.INPUT, previousFilters),\n text: t('undo') as string,\n },\n });\n emit(BentoFilterBarEvent.INPUT, clearedFilters);\n };\n\n const resetAllFilters = () => {\n const previousFilters = props.value.slice();\n const resetFilters = props.value.map(({ defaultValue, ...otherFields }) => ({\n ...otherFields,\n defaultValue,\n value: defaultValue,\n }));\n\n toastController.addToast({\n text: t('filtersHaveBeenReset') as string,\n action: {\n handler: () => emit(BentoFilterBarEvent.INPUT, previousFilters),\n text: t('undo') as string,\n },\n });\n emit(BentoFilterBarEvent.INPUT, resetFilters);\n };\n\n const onSearchbarInput = (newSearchTerm: string) => {\n emit(BentoSearchBarEvent.INPUT, newSearchTerm);\n emit(BentoSearchBarEvent.UPDATE, newSearchTerm);\n };\n const onSearchbarClear = () => {\n emit(BentoSearchBarEvent.CLEAR);\n };\n\n return {\n // Values\n hasHiddenFilters,\n isClearAllVisible,\n isSearchBarEnabled,\n searchBarAriaLabel,\n persistentFilters,\n regularFilters,\n isResetAllVisible,\n\n // Enums\n BentoButtonVariant,\n\n // Events\n updateAllFilters,\n updateFilterHandler,\n clearAllFilters,\n onSearchbarClear,\n onSearchbarInput,\n resetAllFilters,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./filter-bar.scss\" />\n"],"names":["BentoFilterEvent","BentoFilterEvent2","BentoFilterBarEvent","BentoFilterBarEvent2","BentoFilterItemType","BentoFilterItemType2","_sfc_main$g","defineComponent","BaseButton","BentoTypography","ChevronUpIcon","ChevronDownIcon","BentoBaseButtonEvent","props","slots","emit","attrs","labelSlot","computed","getSlotText","computedAriaLabel","useAriaLabel","baseFilterButtonRef","ref","ariaAttributes","_a","conditionalClasses","BentoTypographyElement","BentoTypographyVariant","useHasSlot","_sfc_main$f","BaseFilterButton","filterBarButtonRef","watch","value","prevValue","_b","BaseFilterEvent","BaseFilterEvent2","_sfc_main$e","messages$6","FilterBarFilterButton","BentoPopover","BentoClickOutsideDirective","t","useI18n","popoverId","generateUid","isFilterOpen","filterButtonRef","isPersistentFilter","closePopover","onClickSecondaryAction","onClickOutside","onClickFilter","onClickApply","BentoPopoverPositions","BentoTooltipPosition","BentoButtonVariant","BentoButtonActionsLayout","isArray","isValueEmpty","el","isEqual","first","second","useBaseFilter","appliedFilter","defaultFilter","internalFilterValue","isFilterInactive","isSecondaryButtonDisabled","isApplyButtonDisabled","truncate","aString","characterLimit","_sfc_main$d","BentoBaseFilter","BentoInputField","inputTextRef","toRef","buttonLabel","appliedFiltersCount","onBeforeUpdate","openFilter","nextTick","updateFilter","_sfc_main$c","BentoDatePicker","BentoDivider","Calendar","locale","locales","de","enUS","fr","format","clearFilter","resetFilter","onDateSelected","selectedDate","_sfc_main$b","messages$5","BentoButtonActions","BentoDateRangePicker","DateRangePickerCalendar","formatFormDate","date","DateFormat","formatFormTime","dateToFormat","baseFilter","isDateIncorrect","formData","reactive","_c","_d","onlySlot","cleanedProps","onDateInputSelected","actions","dateFormDate","_sfc_main$a","messages$4","BentoDropdown","BentoListbox","BentoSearchBar","searchTerm","optionsRef","itemsRef","filteredItems","useSearchBarFilter","noResultsMessage","itemsSelected","messageTranslation","message","listboxFilterId","onOptionSelected","selectedValue","closeFilter","singleSelectAmount","_sfc_main$9","BentoSelectFilter","BentoAvatar","_","_sfc_main$8","ListboxOptionTag","_sfc_main$7","BentoCountry","options","listboxItems","variant","toRefs","onUpdate","countryItems","useCountryItems","countryOptions","provide","deprecate","BentoCountryVariant","_sfc_main$6","BentoPaymentMethod","_props","_sfc_main$5","tagItems","label","_sfc_main$4","messages$3","BentoRadioGroup","items","onInput","event","_sfc_main$3","messages$2","updateFrom","newValue","updateTo","x","BentoInputFieldType","AllFiltersModalEvent","AllFiltersModalEvent2","_sfc_main$2","_sfc_main$1","messages$1","AllFiltersModalButton","BentoBooleanFilter","BentoButton","BentoDateFilter","BentoDateRangeFilter","BentoInputFilter","BentoModal","BentoRangeFilter","BentoSelectAvatarFilter","BentoSelectCurrencyFilter","BentoSelectCountryFilter","BentoSelectPaymentMethodFilter","BentoSelectTagFilter","filters","allFiltersModalUniqueId","allFiltersModalFiltersSection","isModalOpen","selectedFilterIndex","selectedFilterRef","allFiltersModalFilterButtons","sortAlphabetically","array","a","b","activeFilters","item","otherFilters","isEmptyResultForSearchFilter","selectedFilter","selectOpenedFilter","openedFilter","openedFilterIndex","onMounted","computedCounts","filter","_e","_f","isClearButtonEnabled","numberOfActiveFilters","partialSum","computedCount","onClickAllFiltersModal","getFilterCount","selectFilter","filterLabel","filterField","onSearchbarClear","cancel","updatedFilter","updatedFilters","otherFields","index","clearAll","applyAll","isApplyAllButtonDisabled","modalActions","BentoModalEvent","BentoModalSize","getNextFocusableElement","_sfc_main","messages","AllFiltersModal","BentoSearchBarEvent","toastController","useBentoToastController","searchBarAriaLabel","hasHiddenFilters","visible","persistentFilters","defaultValue","regularFilters","isSearchBarEnabled","hasActiveFilters","isClearAllVisible","isResetAllVisible","newFilters","filterIndex","previousFilters","clearedFilters","newSearchTerm","resetFilters"],"mappings":";;;;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