@adyen/bento-vue2 1.22.0 → 1.24.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 +2 -0
- package/dist/@types/index.d.ts +346 -258
- package/dist/accordion.js +3 -3
- package/dist/action-bar.js +7 -7
- package/dist/alert.js +73 -54
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +4 -4
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.6bd3ae4d.js → base-button.090f511d.js} +2 -2
- package/dist/chunks/{base-button.6bd3ae4d.js.map → base-button.090f511d.js.map} +1 -1
- package/dist/chunks/{base-modal.bf917e7d.js → base-modal.aa09a60c.js} +7 -7
- package/dist/chunks/{base-modal.bf917e7d.js.map → base-modal.aa09a60c.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ec7dfc53.js → button-actions-with-menu.879c4573.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ec7dfc53.js.map → button-actions-with-menu.879c4573.js.map} +1 -1
- package/dist/chunks/{button-actions.2bf1d9d1.js → button-actions.239456cb.js} +3 -3
- package/dist/chunks/{button-actions.2bf1d9d1.js.map → button-actions.239456cb.js.map} +1 -1
- package/dist/chunks/{button.80c3c527.js → button.6e6324f0.js} +3 -3
- package/dist/chunks/{button.80c3c527.js.map → button.6e6324f0.js.map} +1 -1
- package/dist/chunks/{calendar.8cbb911d.js → calendar.1e416969.js} +5 -5
- package/dist/chunks/{calendar.8cbb911d.js.map → calendar.1e416969.js.map} +1 -1
- package/dist/chunks/{checkbox-input.17e832f1.js → checkbox-input.1c3cc8ed.js} +2 -2
- package/dist/chunks/{checkbox-input.17e832f1.js.map → checkbox-input.1c3cc8ed.js.map} +1 -1
- package/dist/chunks/{checkbox.11454247.js → checkbox.f38276e6.js} +4 -4
- package/dist/chunks/{checkbox.11454247.js.map → checkbox.f38276e6.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.75b87a2c.js → checkmark-circle-fill.345311d2.js} +2 -2
- package/dist/chunks/{checkmark-circle-fill.75b87a2c.js.map → checkmark-circle-fill.345311d2.js.map} +1 -1
- package/dist/chunks/{checkmark-small.07adbfcb.js → checkmark-small.520f01b1.js} +2 -2
- package/dist/chunks/{checkmark-small.07adbfcb.js.map → checkmark-small.520f01b1.js.map} +1 -1
- package/dist/chunks/{checkmark.9979f1c1.js → checkmark.a6ed8f47.js} +2 -2
- package/dist/chunks/{checkmark.9979f1c1.js.map → checkmark.a6ed8f47.js.map} +1 -1
- package/dist/chunks/{chevron-left.64e168be.js → chevron-left.5edf02ac.js} +2 -2
- package/dist/chunks/{chevron-left.64e168be.js.map → chevron-left.5edf02ac.js.map} +1 -1
- package/dist/chunks/{chevron-up.628ac446.js → chevron-up.81185563.js} +2 -2
- package/dist/chunks/{chevron-up.628ac446.js.map → chevron-up.81185563.js.map} +1 -1
- package/dist/chunks/{controls-group.0892d082.js → controls-group.f1dfa419.js} +3 -3
- package/dist/chunks/{controls-group.0892d082.js.map → controls-group.f1dfa419.js.map} +1 -1
- package/dist/chunks/{copy.2d2c6b85.js → copy.acc9f1b0.js} +4 -4
- package/dist/chunks/{copy.2d2c6b85.js.map → copy.acc9f1b0.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.34e86c56.js → cross-circle-fill.27580c4b.js} +2 -2
- package/dist/chunks/{cross-circle-fill.34e86c56.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
- package/dist/chunks/{cross-small.e3c016cb.js → cross-small.e851e0de.js} +2 -2
- package/dist/chunks/{cross-small.e3c016cb.js.map → cross-small.e851e0de.js.map} +1 -1
- package/dist/chunks/{cross.e5433f3b.js → cross.04678d81.js} +2 -2
- package/dist/chunks/{cross.e5433f3b.js.map → cross.04678d81.js.map} +1 -1
- package/dist/chunks/{dialog-page.21f1eb92.js → dialog-page.75b295b7.js} +3 -3
- package/dist/chunks/{dialog-page.21f1eb92.js.map → dialog-page.75b295b7.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.9c23c94d.js → dropdown-default-textbox.c1f8fe5f.js} +57 -37
- package/dist/chunks/dropdown-default-textbox.c1f8fe5f.js.map +1 -0
- package/dist/chunks/{dropdown.dad8cedd.js → dropdown.669b858b.js} +20 -21
- package/dist/chunks/{dropdown.dad8cedd.js.map → dropdown.669b858b.js.map} +1 -1
- package/dist/chunks/{error-message.5fdafd8c.js → error-message.8734e591.js} +3 -3
- package/dist/chunks/{error-message.5fdafd8c.js.map → error-message.8734e591.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.e917ed3f.js → fixed-scroller.772ad033.js} +3 -3
- package/dist/chunks/{fixed-scroller.e917ed3f.js.map → fixed-scroller.772ad033.js.map} +1 -1
- package/dist/chunks/{footer-actions.599e5a1d.js → footer-actions.11071f12.js} +4 -4
- package/dist/chunks/{footer-actions.599e5a1d.js.map → footer-actions.11071f12.js.map} +1 -1
- package/dist/chunks/{index.823243d9.js → index.03ae22b4.js} +2 -2
- package/dist/chunks/{index.823243d9.js.map → index.03ae22b4.js.map} +1 -1
- package/dist/chunks/index.49ce3f6a.js +49 -0
- package/dist/chunks/index.49ce3f6a.js.map +1 -0
- package/dist/chunks/{index.0c4a8dd9.js → index.51308a21.js} +3 -3
- package/dist/chunks/{index.0c4a8dd9.js.map → index.51308a21.js.map} +1 -1
- package/dist/chunks/{index.937a82c2.js → index.5d5f2200.js} +7 -7
- package/dist/chunks/{index.937a82c2.js.map → index.5d5f2200.js.map} +1 -1
- package/dist/chunks/{index.73634ace.js → index.73abb1a9.js} +31 -32
- package/dist/chunks/{index.73634ace.js.map → index.73abb1a9.js.map} +1 -1
- package/dist/chunks/{index.929dda57.js → index.87180cdd.js} +107 -106
- package/dist/chunks/index.87180cdd.js.map +1 -0
- package/dist/chunks/{index.d681cfda.js → index.8e6bc325.js} +12 -11
- package/dist/chunks/index.8e6bc325.js.map +1 -0
- package/dist/chunks/{index.7d2ea1de.js → index.94980f50.js} +2 -2
- package/dist/chunks/{index.7d2ea1de.js.map → index.94980f50.js.map} +1 -1
- package/dist/chunks/index.ba6c1040.js +79 -0
- package/dist/chunks/index.ba6c1040.js.map +1 -0
- package/dist/chunks/{index.3ddbe834.js → index.f19887a1.js} +2 -2
- package/dist/chunks/{index.3ddbe834.js.map → index.f19887a1.js.map} +1 -1
- package/dist/chunks/{index.66c8d79f.js → index.ff09389c.js} +7 -7
- package/dist/chunks/{index.66c8d79f.js.map → index.ff09389c.js.map} +1 -1
- package/dist/chunks/{info.b11d377e.js → info.8b6328aa.js} +2 -2
- package/dist/chunks/{info.b11d377e.js.map → info.8b6328aa.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.52ca5a60.js → listbox-option-tag.c0a56a95.js} +3 -3
- package/dist/chunks/{listbox-option-tag.52ca5a60.js.map → listbox-option-tag.c0a56a95.js.map} +1 -1
- package/dist/chunks/{listbox.6d8bd2ae.js → listbox.e6e1bc90.js} +8 -8
- package/dist/chunks/{listbox.6d8bd2ae.js.map → listbox.e6e1bc90.js.map} +1 -1
- package/dist/chunks/{loading-button.73c0bd64.js → loading-button.84a5529d.js} +4 -4
- package/dist/chunks/{loading-button.73c0bd64.js.map → loading-button.84a5529d.js.map} +1 -1
- package/dist/chunks/{payment-method.eeb54552.js → payment-method.faa302de.js} +2 -2
- package/dist/chunks/{payment-method.eeb54552.js.map → payment-method.faa302de.js.map} +1 -1
- package/dist/chunks/{refresh.f8e1b23c.js → refresh.71a03998.js} +2 -2
- package/dist/chunks/{refresh.f8e1b23c.js.map → refresh.71a03998.js.map} +1 -1
- package/dist/chunks/{search.4b38a2ef.js → search.471270fe.js} +2 -2
- package/dist/chunks/{search.4b38a2ef.js.map → search.471270fe.js.map} +1 -1
- package/dist/chunks/{tooltip.a9133b59.js → tooltip.8e9d733c.js} +3 -3
- package/dist/chunks/{tooltip.a9133b59.js.map → tooltip.8e9d733c.js.map} +1 -1
- package/dist/chunks/use-bento-toast-controller.7d4436ad.js +52 -0
- package/dist/chunks/use-bento-toast-controller.7d4436ad.js.map +1 -0
- package/dist/chunks/use-click-outside.941d1600.js +14 -0
- package/dist/chunks/use-click-outside.941d1600.js.map +1 -0
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +898 -805
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +39 -40
- 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 +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +410 -421
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +5 -5
- package/dist/index.js +247 -269
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +4 -4
- package/dist/input-field.js +38 -34
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +7 -7
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +4 -4
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/selection-card.js +5 -5
- package/dist/sidepanel.js +7 -7
- package/dist/status.js +2 -2
- package/dist/stepper.js +144 -133
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +143 -98
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +3 -3
- package/dist/tutorial.js +7 -7
- package/dist/typography.js +1 -1
- package/dist/web-types.json +204 -117
- package/package.json +3 -3
- package/dist/chunks/directive.0408e565.js +0 -23
- package/dist/chunks/directive.0408e565.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.9c23c94d.js.map +0 -1
- package/dist/chunks/index.0c33067d.js +0 -127
- package/dist/chunks/index.0c33067d.js.map +0 -1
- package/dist/chunks/index.5af5de46.js +0 -83
- package/dist/chunks/index.5af5de46.js.map +0 -1
- package/dist/chunks/index.929dda57.js.map +0 -1
- package/dist/chunks/index.d681cfda.js.map +0 -1
- package/dist/chunks/info-filled.ee9571d9.js +0 -26
- package/dist/chunks/info-filled.ee9571d9.js.map +0 -1
- package/dist/chunks/toastController.fd667b68.js +0 -15
- package/dist/chunks/toastController.fd667b68.js.map +0 -1
- /package/dist/assets/{cross-small.css → cross.css} +0 -0
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "@adyen/bento-vue2",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.24.0",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -324,8 +324,19 @@
|
|
|
324
324
|
"name": "avatar-image",
|
|
325
325
|
"description": "",
|
|
326
326
|
"attributes": [
|
|
327
|
+
{
|
|
328
|
+
"name": "color",
|
|
329
|
+
"required": false,
|
|
330
|
+
"description": "Avatar color. Defaults to yellow.",
|
|
331
|
+
"value": {
|
|
332
|
+
"kind": "expression",
|
|
333
|
+
"type": "BentoAvatarImageColor"
|
|
334
|
+
},
|
|
335
|
+
"default": "BentoAvatarImageColor.YELLOW"
|
|
336
|
+
},
|
|
327
337
|
{
|
|
328
338
|
"name": "src",
|
|
339
|
+
"required": false,
|
|
329
340
|
"description": "Image src to load the profile picture.",
|
|
330
341
|
"value": {
|
|
331
342
|
"kind": "expression",
|
|
@@ -335,6 +346,7 @@
|
|
|
335
346
|
},
|
|
336
347
|
{
|
|
337
348
|
"name": "username",
|
|
349
|
+
"required": false,
|
|
338
350
|
"description": "Name of the user that will be used to extract initials to display default value.\nJohn => J\nJohn Smith => JS\nJohn Smith Doe => JD\nJohn Smith Doe Holly => JH",
|
|
339
351
|
"value": {
|
|
340
352
|
"kind": "expression",
|
|
@@ -344,21 +356,13 @@
|
|
|
344
356
|
},
|
|
345
357
|
{
|
|
346
358
|
"name": "variant",
|
|
359
|
+
"required": false,
|
|
347
360
|
"description": "Variants supported for small and large.\nDefault - large",
|
|
348
361
|
"value": {
|
|
349
362
|
"kind": "expression",
|
|
350
363
|
"type": "BentoAvatarImageVariant"
|
|
351
364
|
},
|
|
352
365
|
"default": "BentoAvatarImageVariant.LARGE"
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"name": "color",
|
|
356
|
-
"description": "Avatar color. Defaults to yellow.",
|
|
357
|
-
"value": {
|
|
358
|
-
"kind": "expression",
|
|
359
|
-
"type": "BentoAvatarImageColor"
|
|
360
|
-
},
|
|
361
|
-
"default": "BentoAvatarImageColor.YELLOW"
|
|
362
366
|
}
|
|
363
367
|
],
|
|
364
368
|
"source": {
|
|
@@ -3112,10 +3116,10 @@
|
|
|
3112
3116
|
"attributes": [
|
|
3113
3117
|
{
|
|
3114
3118
|
"name": "options",
|
|
3115
|
-
"description": "List of options that are needed to setup the country filter\nAvailable 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
|
|
3119
|
+
"description": "List of options that are needed to setup the country filter\nAvailable 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.",
|
|
3116
3120
|
"value": {
|
|
3117
3121
|
"kind": "expression",
|
|
3118
|
-
"type": "
|
|
3122
|
+
"type": "BentoSelectCountryFilterOptions"
|
|
3119
3123
|
},
|
|
3120
3124
|
"default": "undefined"
|
|
3121
3125
|
}
|
|
@@ -3126,7 +3130,7 @@
|
|
|
3126
3130
|
}
|
|
3127
3131
|
],
|
|
3128
3132
|
"source": {
|
|
3129
|
-
"module": "./src/components/filter-bar/components/select-filter/variants/select-
|
|
3133
|
+
"module": "./src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue",
|
|
3130
3134
|
"symbol": "default"
|
|
3131
3135
|
}
|
|
3132
3136
|
},
|
|
@@ -3136,10 +3140,10 @@
|
|
|
3136
3140
|
"attributes": [
|
|
3137
3141
|
{
|
|
3138
3142
|
"name": "options",
|
|
3139
|
-
"description": "List of options that are needed to setup the country filter\nAvailable 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
|
|
3143
|
+
"description": "List of options that are needed to setup the country filter\nAvailable 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}",
|
|
3140
3144
|
"value": {
|
|
3141
3145
|
"kind": "expression",
|
|
3142
|
-
"type": "
|
|
3146
|
+
"type": "BentoSelectCurrencyFilterOptions"
|
|
3143
3147
|
},
|
|
3144
3148
|
"default": "undefined"
|
|
3145
3149
|
}
|
|
@@ -3150,7 +3154,7 @@
|
|
|
3150
3154
|
}
|
|
3151
3155
|
],
|
|
3152
3156
|
"source": {
|
|
3153
|
-
"module": "./src/components/filter-bar/components/select-filter/variants/select-
|
|
3157
|
+
"module": "./src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue",
|
|
3154
3158
|
"symbol": "default"
|
|
3155
3159
|
}
|
|
3156
3160
|
},
|
|
@@ -4020,14 +4024,6 @@
|
|
|
4020
4024
|
"symbol": "default"
|
|
4021
4025
|
}
|
|
4022
4026
|
},
|
|
4023
|
-
{
|
|
4024
|
-
"name": "bento-toast",
|
|
4025
|
-
"description": "",
|
|
4026
|
-
"source": {
|
|
4027
|
-
"module": "./src/components/toast/toast.vue",
|
|
4028
|
-
"symbol": "default"
|
|
4029
|
-
}
|
|
4030
|
-
},
|
|
4031
4027
|
{
|
|
4032
4028
|
"name": "bento-toggle",
|
|
4033
4029
|
"description": "A wrapper around the bento toggle, providing checkbox functionality with a knob-like toggle",
|
|
@@ -4096,84 +4092,6 @@
|
|
|
4096
4092
|
"symbol": "default"
|
|
4097
4093
|
}
|
|
4098
4094
|
},
|
|
4099
|
-
{
|
|
4100
|
-
"name": "bento-typography",
|
|
4101
|
-
"description": "The Typography component makes it easy to apply a default set of font weights, sizes and other text styles\neasily to text. The variants and properties match with those found in Figma.\n\nFor example, seeing text with the typography styling of",
|
|
4102
|
-
"attributes": [
|
|
4103
|
-
{
|
|
4104
|
-
"name": "el",
|
|
4105
|
-
"description": "Sets the HTML DOM element.",
|
|
4106
|
-
"value": {
|
|
4107
|
-
"kind": "expression",
|
|
4108
|
-
"type": "BentoTypographyElement | `${BentoTypographyElement}`"
|
|
4109
|
-
},
|
|
4110
|
-
"default": "BentoTypographyElement.PARAGRAPH"
|
|
4111
|
-
},
|
|
4112
|
-
{
|
|
4113
|
-
"name": "stronger",
|
|
4114
|
-
"description": "Adds the stronger class modifier.\nApplicable to Caption, Body and Subtitle variants.",
|
|
4115
|
-
"value": {
|
|
4116
|
-
"kind": "expression",
|
|
4117
|
-
"type": "boolean"
|
|
4118
|
-
},
|
|
4119
|
-
"default": "false"
|
|
4120
|
-
},
|
|
4121
|
-
{
|
|
4122
|
-
"name": "strongest",
|
|
4123
|
-
"description": "Adds the strongest class modifier.\nApplicable to Caption, Body and Subtitle variants.",
|
|
4124
|
-
"value": {
|
|
4125
|
-
"kind": "expression",
|
|
4126
|
-
"type": "boolean"
|
|
4127
|
-
},
|
|
4128
|
-
"default": "false"
|
|
4129
|
-
},
|
|
4130
|
-
{
|
|
4131
|
-
"name": "variant",
|
|
4132
|
-
"description": "Sets the type of typography variant.",
|
|
4133
|
-
"value": {
|
|
4134
|
-
"kind": "expression",
|
|
4135
|
-
"type": "BentoTypographyVariant | `${BentoTypographyVariant}`"
|
|
4136
|
-
},
|
|
4137
|
-
"default": "BentoTypographyVariant.BODY"
|
|
4138
|
-
},
|
|
4139
|
-
{
|
|
4140
|
-
"name": "medium",
|
|
4141
|
-
"description": "Adds the medium class modifier.\nApplicable to the Title variant.",
|
|
4142
|
-
"value": {
|
|
4143
|
-
"kind": "expression",
|
|
4144
|
-
"type": "boolean"
|
|
4145
|
-
},
|
|
4146
|
-
"default": "false"
|
|
4147
|
-
},
|
|
4148
|
-
{
|
|
4149
|
-
"name": "large",
|
|
4150
|
-
"description": "Adds the large class modifier.\nApplicable to the Title variant.",
|
|
4151
|
-
"value": {
|
|
4152
|
-
"kind": "expression",
|
|
4153
|
-
"type": "boolean"
|
|
4154
|
-
},
|
|
4155
|
-
"default": "false"
|
|
4156
|
-
},
|
|
4157
|
-
{
|
|
4158
|
-
"name": "wide",
|
|
4159
|
-
"description": "Adds the medium class modifier.\nApplicable to tje Body variant.",
|
|
4160
|
-
"value": {
|
|
4161
|
-
"kind": "expression",
|
|
4162
|
-
"type": "boolean"
|
|
4163
|
-
},
|
|
4164
|
-
"default": "false"
|
|
4165
|
-
}
|
|
4166
|
-
],
|
|
4167
|
-
"slots": [
|
|
4168
|
-
{
|
|
4169
|
-
"name": "default"
|
|
4170
|
-
}
|
|
4171
|
-
],
|
|
4172
|
-
"source": {
|
|
4173
|
-
"module": "./src/components/typography/typography.vue",
|
|
4174
|
-
"symbol": "default"
|
|
4175
|
-
}
|
|
4176
|
-
},
|
|
4177
4095
|
{
|
|
4178
4096
|
"name": "button",
|
|
4179
4097
|
"description": "",
|
|
@@ -4900,6 +4818,24 @@
|
|
|
4900
4818
|
"symbol": "default"
|
|
4901
4819
|
}
|
|
4902
4820
|
},
|
|
4821
|
+
{
|
|
4822
|
+
"name": "conditional-stepper-stub",
|
|
4823
|
+
"description": "",
|
|
4824
|
+
"attributes": [
|
|
4825
|
+
{
|
|
4826
|
+
"name": "withExtraSteps",
|
|
4827
|
+
"required": true,
|
|
4828
|
+
"value": {
|
|
4829
|
+
"kind": "expression",
|
|
4830
|
+
"type": "boolean"
|
|
4831
|
+
}
|
|
4832
|
+
}
|
|
4833
|
+
],
|
|
4834
|
+
"source": {
|
|
4835
|
+
"module": "./src/components/stepper/__tests__/conditional-stepper-stub.vue",
|
|
4836
|
+
"symbol": "default"
|
|
4837
|
+
}
|
|
4838
|
+
},
|
|
4903
4839
|
{
|
|
4904
4840
|
"name": "controls-group",
|
|
4905
4841
|
"description": "",
|
|
@@ -5398,6 +5334,15 @@
|
|
|
5398
5334
|
},
|
|
5399
5335
|
"default": "(item: BentoDatagridDataItem) => item.id"
|
|
5400
5336
|
},
|
|
5337
|
+
{
|
|
5338
|
+
"name": "hoveredOverColumnState",
|
|
5339
|
+
"required": true,
|
|
5340
|
+
"description": "The column hovered over state and whether the hovered over column should show a border right or left.",
|
|
5341
|
+
"value": {
|
|
5342
|
+
"kind": "expression",
|
|
5343
|
+
"type": "DatagridColumnHoveringState"
|
|
5344
|
+
}
|
|
5345
|
+
},
|
|
5401
5346
|
{
|
|
5402
5347
|
"name": "isDataItemDisabled",
|
|
5403
5348
|
"description": "A customisable method to determine if a row is not selectable.\nThe default is that every row is selectable.",
|
|
@@ -5588,6 +5533,15 @@
|
|
|
5588
5533
|
},
|
|
5589
5534
|
"default": "false"
|
|
5590
5535
|
},
|
|
5536
|
+
{
|
|
5537
|
+
"name": "hoveredOverColumnState",
|
|
5538
|
+
"required": true,
|
|
5539
|
+
"description": "The column hovered over state and whether the hovered over column should show a border right or left.",
|
|
5540
|
+
"value": {
|
|
5541
|
+
"kind": "expression",
|
|
5542
|
+
"type": "DatagridColumnHoveringState"
|
|
5543
|
+
}
|
|
5544
|
+
},
|
|
5591
5545
|
{
|
|
5592
5546
|
"name": "isMeasuringColunWidths",
|
|
5593
5547
|
"description": "Toggled to true when the DataGrid has auto width columns and is measuring the",
|
|
@@ -5664,6 +5618,10 @@
|
|
|
5664
5618
|
"events": [
|
|
5665
5619
|
{
|
|
5666
5620
|
"name": "<undefined>"
|
|
5621
|
+
},
|
|
5622
|
+
{
|
|
5623
|
+
"name": "column-hover",
|
|
5624
|
+
"description": "Emitted when a column header is hovered over."
|
|
5667
5625
|
}
|
|
5668
5626
|
],
|
|
5669
5627
|
"slots": [
|
|
@@ -7726,7 +7684,7 @@
|
|
|
7726
7684
|
},
|
|
7727
7685
|
{
|
|
7728
7686
|
"name": "dropdown",
|
|
7729
|
-
"description": "Dropdown props for the small selectable dropdown menu
|
|
7687
|
+
"description": "Dropdown props for the small selectable dropdown menu.\nProperties supported:\n\n - `value`: Selected value of the dropdown\n - `items`: List of available items",
|
|
7730
7688
|
"value": {
|
|
7731
7689
|
"kind": "expression",
|
|
7732
7690
|
"type": "BentoInputDropdownProps"
|
|
@@ -11087,55 +11045,99 @@
|
|
|
11087
11045
|
"symbol": "default"
|
|
11088
11046
|
}
|
|
11089
11047
|
},
|
|
11048
|
+
{
|
|
11049
|
+
"name": "toast",
|
|
11050
|
+
"description": "",
|
|
11051
|
+
"source": {
|
|
11052
|
+
"module": "./src/components/toast/toast.vue",
|
|
11053
|
+
"symbol": "default"
|
|
11054
|
+
}
|
|
11055
|
+
},
|
|
11090
11056
|
{
|
|
11091
11057
|
"name": "toast-item",
|
|
11092
11058
|
"description": "",
|
|
11093
11059
|
"attributes": [
|
|
11094
11060
|
{
|
|
11095
|
-
"name": "
|
|
11061
|
+
"name": "toast",
|
|
11096
11062
|
"required": true,
|
|
11097
11063
|
"value": {
|
|
11098
11064
|
"kind": "expression",
|
|
11099
|
-
"type": "
|
|
11065
|
+
"type": "BentoToastItem"
|
|
11100
11066
|
}
|
|
11101
|
-
}
|
|
11067
|
+
}
|
|
11068
|
+
],
|
|
11069
|
+
"source": {
|
|
11070
|
+
"module": "./src/components/toast/components/toast-item/toast-item.vue",
|
|
11071
|
+
"symbol": "default"
|
|
11072
|
+
}
|
|
11073
|
+
},
|
|
11074
|
+
{
|
|
11075
|
+
"name": "toast-mock",
|
|
11076
|
+
"description": "",
|
|
11077
|
+
"attributes": [
|
|
11102
11078
|
{
|
|
11103
|
-
"name": "
|
|
11079
|
+
"name": "items",
|
|
11104
11080
|
"value": {
|
|
11105
11081
|
"kind": "expression",
|
|
11106
|
-
"type": "
|
|
11082
|
+
"type": "BentoToastItemParams[]"
|
|
11107
11083
|
},
|
|
11108
|
-
"default": "
|
|
11084
|
+
"default": "() => []"
|
|
11109
11085
|
}
|
|
11110
11086
|
],
|
|
11111
11087
|
"events": [
|
|
11112
11088
|
{
|
|
11113
|
-
"name": "
|
|
11114
|
-
}
|
|
11089
|
+
"name": "toast"
|
|
11090
|
+
}
|
|
11091
|
+
],
|
|
11092
|
+
"source": {
|
|
11093
|
+
"module": "./src/components/toast/__tests__/toast-mock.vue",
|
|
11094
|
+
"symbol": "default"
|
|
11095
|
+
}
|
|
11096
|
+
},
|
|
11097
|
+
{
|
|
11098
|
+
"name": "toast-shadow-stack",
|
|
11099
|
+
"description": "",
|
|
11100
|
+
"events": [
|
|
11115
11101
|
{
|
|
11116
|
-
"name": "
|
|
11102
|
+
"name": "update"
|
|
11117
11103
|
}
|
|
11118
11104
|
],
|
|
11119
11105
|
"source": {
|
|
11120
|
-
"module": "./src/components/toast/components/toast-
|
|
11106
|
+
"module": "./src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue",
|
|
11121
11107
|
"symbol": "default"
|
|
11122
11108
|
}
|
|
11123
11109
|
},
|
|
11124
11110
|
{
|
|
11125
|
-
"name": "toast-mock",
|
|
11111
|
+
"name": "toast-shadow-stack-mock",
|
|
11126
11112
|
"description": "",
|
|
11127
11113
|
"attributes": [
|
|
11128
11114
|
{
|
|
11129
|
-
"name": "
|
|
11115
|
+
"name": "text",
|
|
11116
|
+
"value": {
|
|
11117
|
+
"kind": "expression",
|
|
11118
|
+
"type": "string"
|
|
11119
|
+
},
|
|
11120
|
+
"default": "null"
|
|
11121
|
+
},
|
|
11122
|
+
{
|
|
11123
|
+
"name": "action",
|
|
11130
11124
|
"value": {
|
|
11131
11125
|
"kind": "expression",
|
|
11132
|
-
"type": "
|
|
11126
|
+
"type": "BentoToastItemAction"
|
|
11133
11127
|
},
|
|
11134
11128
|
"default": "null"
|
|
11135
11129
|
}
|
|
11136
11130
|
],
|
|
11131
|
+
"events": [
|
|
11132
|
+
{
|
|
11133
|
+
"name": "update"
|
|
11134
|
+
},
|
|
11135
|
+
{
|
|
11136
|
+
"name": "toast"
|
|
11137
|
+
}
|
|
11138
|
+
],
|
|
11137
11139
|
"source": {
|
|
11138
|
-
"module": "./src/components/toast/__tests__/toast-mock.vue",
|
|
11140
|
+
"module": "./src/components/toast/components/toast-shadow-stack/__tests__/toast-shadow-stack-mock.vue",
|
|
11139
11141
|
"symbol": "default"
|
|
11140
11142
|
}
|
|
11141
11143
|
},
|
|
@@ -11544,6 +11546,91 @@
|
|
|
11544
11546
|
"module": "./src/components/tutorial/__tests__/tutorial-stub.vue",
|
|
11545
11547
|
"symbol": "default"
|
|
11546
11548
|
}
|
|
11549
|
+
},
|
|
11550
|
+
{
|
|
11551
|
+
"name": "typography",
|
|
11552
|
+
"description": "",
|
|
11553
|
+
"attributes": [
|
|
11554
|
+
{
|
|
11555
|
+
"name": "el",
|
|
11556
|
+
"required": false,
|
|
11557
|
+
"description": "Sets the HTML DOM element.",
|
|
11558
|
+
"value": {
|
|
11559
|
+
"kind": "expression",
|
|
11560
|
+
"type": "union"
|
|
11561
|
+
},
|
|
11562
|
+
"default": "BentoTypographyElement.PARAGRAPH"
|
|
11563
|
+
},
|
|
11564
|
+
{
|
|
11565
|
+
"name": "large",
|
|
11566
|
+
"required": false,
|
|
11567
|
+
"description": "Adds the large class modifier.\nApplicable to the Title variant.",
|
|
11568
|
+
"value": {
|
|
11569
|
+
"kind": "expression",
|
|
11570
|
+
"type": "boolean"
|
|
11571
|
+
},
|
|
11572
|
+
"default": "false"
|
|
11573
|
+
},
|
|
11574
|
+
{
|
|
11575
|
+
"name": "medium",
|
|
11576
|
+
"required": false,
|
|
11577
|
+
"description": "Adds the medium class modifier.\nApplicable to the Title variant.",
|
|
11578
|
+
"value": {
|
|
11579
|
+
"kind": "expression",
|
|
11580
|
+
"type": "boolean"
|
|
11581
|
+
},
|
|
11582
|
+
"default": "false"
|
|
11583
|
+
},
|
|
11584
|
+
{
|
|
11585
|
+
"name": "stronger",
|
|
11586
|
+
"required": false,
|
|
11587
|
+
"description": "Adds the stronger class modifier.\nApplicable to Caption, Body and Subtitle variants.",
|
|
11588
|
+
"value": {
|
|
11589
|
+
"kind": "expression",
|
|
11590
|
+
"type": "boolean"
|
|
11591
|
+
},
|
|
11592
|
+
"default": "false"
|
|
11593
|
+
},
|
|
11594
|
+
{
|
|
11595
|
+
"name": "strongest",
|
|
11596
|
+
"required": false,
|
|
11597
|
+
"description": "Adds the strongest class modifier.\nApplicable to Caption, Body and Subtitle variants.",
|
|
11598
|
+
"value": {
|
|
11599
|
+
"kind": "expression",
|
|
11600
|
+
"type": "boolean"
|
|
11601
|
+
},
|
|
11602
|
+
"default": "false"
|
|
11603
|
+
},
|
|
11604
|
+
{
|
|
11605
|
+
"name": "variant",
|
|
11606
|
+
"required": false,
|
|
11607
|
+
"description": "Sets the type of typography variant.",
|
|
11608
|
+
"value": {
|
|
11609
|
+
"kind": "expression",
|
|
11610
|
+
"type": "union"
|
|
11611
|
+
},
|
|
11612
|
+
"default": "BentoTypographyVariant.BODY"
|
|
11613
|
+
},
|
|
11614
|
+
{
|
|
11615
|
+
"name": "wide",
|
|
11616
|
+
"required": false,
|
|
11617
|
+
"description": "Adds the medium class modifier.\nApplicable to tje Body variant.",
|
|
11618
|
+
"value": {
|
|
11619
|
+
"kind": "expression",
|
|
11620
|
+
"type": "boolean"
|
|
11621
|
+
},
|
|
11622
|
+
"default": "false"
|
|
11623
|
+
}
|
|
11624
|
+
],
|
|
11625
|
+
"slots": [
|
|
11626
|
+
{
|
|
11627
|
+
"name": "default"
|
|
11628
|
+
}
|
|
11629
|
+
],
|
|
11630
|
+
"source": {
|
|
11631
|
+
"module": "./src/components/typography/typography.vue",
|
|
11632
|
+
"symbol": "default"
|
|
11633
|
+
}
|
|
11547
11634
|
}
|
|
11548
11635
|
]
|
|
11549
11636
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/bento-vue2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "Adyen Bento Vue2 components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"url": "git@github.com:Adyen/bento.git"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@adyen/bento-design-tokens": "1.
|
|
65
|
+
"@adyen/bento-design-tokens": "1.24.0",
|
|
66
66
|
"@adyen/ui-assets-icons-16": "4.1.0",
|
|
67
67
|
"@adyen/ui-assets-payment-method-icons": "6.1.0",
|
|
68
68
|
"@codemirror/commands": "6.3.3",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"react": "16.14.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@adyen/bento-cli": "0.0.
|
|
92
|
+
"@adyen/bento-cli": "0.0.15",
|
|
93
93
|
"@storybook/addon-a11y": "7.6.17",
|
|
94
94
|
"@storybook/addon-essentials": "7.6.17",
|
|
95
95
|
"@storybook/addon-storysource": "7.6.17",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { o as s } from "./on-click-outside.3e0c3e2a.js";
|
|
2
|
-
const t = (o, i) => {
|
|
3
|
-
const e = !i.modifiers.bubble;
|
|
4
|
-
if (typeof i.value == "function")
|
|
5
|
-
o.__onClickOutside_stop = s(o, i.value, { capture: e });
|
|
6
|
-
else {
|
|
7
|
-
const [c, n] = i.value;
|
|
8
|
-
o.__onClickOutside_stop = s(o, c, { capture: e, ...n });
|
|
9
|
-
}
|
|
10
|
-
}, u = (o) => {
|
|
11
|
-
o.__onClickOutside_stop();
|
|
12
|
-
}, _ = {
|
|
13
|
-
// Vue 2 Directive hooks
|
|
14
|
-
inserted: t,
|
|
15
|
-
unbind: u,
|
|
16
|
-
// Vue 3 Directive hooks
|
|
17
|
-
beforeMount: t,
|
|
18
|
-
unmounted: u
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
_ as B
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=directive.0408e565.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"directive.0408e565.js","sources":["../../src/directives/click-outside/directive.ts"],"sourcesContent":["import { onClickOutside } from './on-click-outside';\nimport type { DirectiveHook } from 'vue';\n\ntype Element = HTMLElement & { __onClickOutside_stop?: () => void };\n\n/**\n * Attaches the click outside listener to target element to register clicks outside the element.\n * @param targetElement Element to attach listener to.\n * @param binding\n */\nconst bindDirective: DirectiveHook<Element> = (targetElement, binding) => {\n const capture = !binding.modifiers.bubble;\n if (typeof binding.value === 'function') {\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, binding.value, { capture });\n } else {\n const [handler, options] = binding.value;\n // eslint-disable-next-line no-underscore-dangle, no-param-reassign\n targetElement.__onClickOutside_stop = onClickOutside(targetElement, handler, { capture, ...options });\n }\n};\n\n/**\n * Removes click outside listener from the target element.\n * @param targetElement Element to detach listener from.\n */\nconst unbindDirective: DirectiveHook<Element> = targetElement => {\n // eslint-disable-next-line no-underscore-dangle\n targetElement.__onClickOutside_stop();\n};\n\nexport const BentoClickOutsideDirective = {\n // Vue 2 Directive hooks\n inserted: bindDirective,\n unbind: unbindDirective,\n\n // Vue 3 Directive hooks\n beforeMount: bindDirective,\n unmounted: unbindDirective,\n};\n"],"names":["bindDirective","targetElement","binding","capture","onClickOutside","handler","options","unbindDirective","BentoClickOutsideDirective"],"mappings":";AAUA,MAAMA,IAAwC,CAACC,GAAeC,MAAY;AAChE,QAAAC,IAAU,CAACD,EAAQ,UAAU;AAC/B,MAAA,OAAOA,EAAQ,SAAU;AAEzB,IAAAD,EAAc,wBAAwBG,EAAeH,GAAeC,EAAQ,OAAO,EAAE,SAAAC,GAAS;AAAA,OAC3F;AACH,UAAM,CAACE,GAASC,CAAO,IAAIJ,EAAQ;AAErB,IAAAD,EAAA,wBAAwBG,EAAeH,GAAeI,GAAS,EAAE,SAAAF,GAAS,GAAGG,GAAS;AAAA;AAE5G,GAMMC,IAA0C,CAAiBN,MAAA;AAE7D,EAAAA,EAAc,sBAAsB;AACxC,GAEaO,IAA6B;AAAA;AAAA,EAEtC,UAAUR;AAAA,EACV,QAAQO;AAAA;AAAA,EAGR,aAAaP;AAAA,EACb,WAAWO;AACf;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-default-textbox.9c23c94d.js","sources":["../../src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.ts","../../src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue","../../src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue"],"sourcesContent":["import { PropType } from 'vue';\nimport { Booleanish } from '@/types';\n\n// TODO: Change this to script setup + Typescript interface\nexport const DropdownBaseTextboxProps = {\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n};\n\nexport enum DropdownBaseTextboxState {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n HAS_ITEMS = 'has-items',\n OPENED = 'opened',\n ERROR = 'error',\n}\n\nexport enum DropdownBaseTextboxEvent {\n OPEN = 'dropdown-base-open',\n KEYDOWN = 'dropdown-base-keydown',\n CLOSE = 'dropdown-base-close',\n INPUT = 'dropdown-base-input',\n CLEAR = 'dropdown-base-clear',\n}\n\nexport default DropdownBaseTextboxProps;\n","<template>\n <div\n :class=\"$attrs.class\"\n data-testid=\"textbox-wrapper\"\n @click=\"onToggleDropdown\"\n @keydown.escape=\"onCloseDropdown\"\n >\n <bento-typography\n class=\"b-dropdown-base-textbox\"\n :class=\"conditionalClasses\"\n el=\"div\"\n data-testid=\"base-textbox\"\n >\n <input\n v-if=\"shouldShowInput\"\n v-bind=\"ariaAttributes\"\n :id=\"textboxId\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n role=\"combobox\"\n type=\"text\"\n aria-autocomplete=\"list\"\n :value=\"open ? value : displayValue\"\n :disabled=\"disabled ? true : null\"\n :readonly=\"readonly\"\n @keydown=\"$emit(DropdownBaseTextboxEvent.KEYDOWN, $event)\"\n @keydown.enter=\"onToggleDropdown\"\n @input=\"onInputEvent\"\n />\n <div\n v-else\n :id=\"textboxId\"\n v-bind=\"ariaAttributes\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n :class=\"comboboxConditionalClasses\"\n role=\"combobox\"\n :tabindex=\"0\"\n >\n <slot v-if=\"shouldShowSingleSelectSlot\" v-bind=\"selectedValueItem\">\n {{ displayValue }}\n </slot>\n <template v-else-if=\"shouldShowMultipleSlot\">\n <div class=\"b-dropdown-base-textbox__input-multiple-selected\">\n <div v-for=\"singleItem of selectedValueItems\" :key=\"singleItem.value\">\n <div class=\"b-dropdown-base-textbox__input-selected-element\">\n <slot v-bind=\"singleItem\">\n {{ displayValue }}\n </slot>\n </div>\n </div>\n </div>\n </template>\n <template v-else>{{ displayValue }}</template>\n </div>\n <span v-if=\"additionalItemsSelected\" class=\"b-dropdown-base-textbox__additional-items\">\n {{ additionalItemsSelected }}\n </span>\n <span v-if=\"hasSlot('icon') && !isFiltering\" class=\"b-dropdown-base-textbox__icon\" aria-hidden=\"true\">\n <slot name=\"icon\"></slot>\n </span>\n <span\n v-if=\"isFiltering\"\n class=\"b-dropdown-base-textbox__clear-search\"\n tabindex=\"0\"\n data-testid=\"clear-search-button\"\n @click.stop=\"onClearSearch\"\n @keydown.enter.stop=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-icon :svg-title=\"'clearSearch'\" />\n </span>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, nextTick, PropType, ref, useAttrs, useSlots, watch } from 'vue';\n import { generateUid } from '@/utils/ts/unique-id';\n import { useHasSlot } from '@/composables';\n import { BentoTypography } from '@/components/typography';\n import { debounce } from '@/utils/ts/debounce';\n import { BentoListboxOptionItem, Booleanish } from '@/types';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import { DropdownBaseTextboxEvent, DropdownBaseTextboxState } from './dropdown-base-textbox.types';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * If the combobox DOM element should be an `input` element.\n */\n alwaysComboboxIsInput: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Custom debounce time for the user type event.\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the \"clear\" button is clicked\n */\n (e: DropdownBaseTextboxEvent.CLEAR);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: DropdownBaseTextboxEvent.CLOSE);\n\n /**\n * Emitted when `dynamicFiltering` is enabled and a search input is entered\n */\n (e: DropdownBaseTextboxEvent.INPUT, searchValue: string);\n\n /**\n * Emitted when any key is pressed and the focus is on the input field\n */\n (e: DropdownBaseTextboxEvent.KEYDOWN, event: KeyboardEvent);\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: DropdownBaseTextboxEvent.OPEN);\n }>();\n\n const textbox = ref(null);\n const textboxId = generateUid('textbox');\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.HAS_ITEMS}`]: !!props.additionalItemsSelected,\n }));\n\n const comboboxConditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox__input--dynamic-filtering`]: props.dynamicFiltering,\n }));\n\n const isFiltering = computed(() => props.dynamicFiltering && !!props.value && props.open);\n\n const ariaAttributes = computed(\n () =>\n ({\n 'aria-haspopup': 'listbox',\n 'aria-controls': props.ariaControls,\n 'aria-describedby': attrs['aria-describedby']?.toString() as string,\n 'aria-expanded': props.ariaExpanded ? 'true' : 'false',\n 'aria-labelledby': props.ariaLabelledby,\n 'aria-label': props.ariaLabelledby ? null : props.ariaLabel,\n 'aria-invalid': props.isInvalid,\n 'aria-disabled': props.disabled ? true : null,\n } as HTMLAttributes)\n );\n // Cast selectedValueItem if it is an array of selected items\n const selectedValueItems = computed(() =>\n props.multiple ? (props.selectedValueItem as BentoListboxOptionItem[]) : []\n );\n\n const shouldShowInput = computed(() => props.dynamicFiltering && (props.open || props.alwaysComboboxIsInput));\n const shouldShowSingleSelectSlot = computed(() => props.selectedValueItem && !props.multiple);\n const shouldShowMultipleSlot = computed(\n () =>\n props.multiple &&\n props.selectedValueItem &&\n selectedValueItems.value.length > 0 &&\n props.showSlotContentInMultiple\n );\n\n watch(\n () => shouldShowInput.value,\n () => {\n if (shouldShowInput.value && !props.alwaysComboboxIsInput) {\n nextTick(() => {\n textbox.value.focus();\n });\n }\n }\n );\n\n const onOpenDropdown = () => {\n if (!props.disabled && !props.readonly) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.OPEN);\n }\n };\n\n const onCloseDropdown = () => {\n if (props.open) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.CLOSE);\n }\n };\n\n const onToggleDropdown = (event: Event) => {\n const isDynamicFilteringInputClickEvent = props.open && (event.target as HTMLDivElement).tagName === 'INPUT';\n if (isDynamicFilteringInputClickEvent) {\n /**\n * When there's a click even on the input during filtering\n * and the popover is open, do not toggle the popover.\n * Allow for click events inside the input field\n */\n return null;\n }\n\n return props.open ? onCloseDropdown() : onOpenDropdown();\n };\n\n const onClearSearch = () => {\n emit(DropdownBaseTextboxEvent.CLEAR);\n emit(DropdownBaseTextboxEvent.INPUT, '');\n textbox.value.focus();\n };\n const onInputEvent = debounce<(event: Event) => void>((event: Event) => {\n if (!props.readonly && !props.disabled) {\n emit(DropdownBaseTextboxEvent.INPUT, (event.target as HTMLInputElement).value);\n } else {\n event.preventDefault();\n event.stopPropagation();\n }\n }, props.debounceTime);\n</script>\n\n<script lang=\"ts\">\n /**\n * Only for internal use, implements the logic of the textbox element to be implemented in the combobox.\n */\n export default defineComponent({\n name: 'dropdown-base-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-base-textbox.scss\" />\n","<template>\n <div class=\"b-dropdown-default-textbox\" :class=\"conditionalClasses\" data-testid=\"default-textbox\">\n <dropdown-base-textbox\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-default-textbox__textbox\"\n :value=\"value\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n <template #icon>\n <div class=\"b-dropdown-default-textbox__chevron\">\n <chevron-up-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import { computed, defineComponent, PropType, useSlots } from 'vue';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import { BentoListboxOptionItem, Booleanish } from '@/types';\n import { stopEventPropagation } from '@/utils/ts/events';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '../dropdown-base-textbox/dropdown-base-textbox.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n });\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.ERROR}`]:\n !props.disabled && !props.readonly && props.isInvalid,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n 'b-dropdown-default-textbox--condensed': props.condensed,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-default-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-default-textbox.scss\" />\n"],"names":["DropdownBaseTextboxState","DropdownBaseTextboxState2","DropdownBaseTextboxEvent","DropdownBaseTextboxEvent2","__default__$1","defineComponent","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","textbox","ref","textboxId","generateUid","conditionalClasses","computed","props","comboboxConditionalClasses","isFiltering","ariaAttributes","_a","selectedValueItems","shouldShowInput","shouldShowSingleSelectSlot","shouldShowMultipleSlot","watch","nextTick","onOpenDropdown","emit","onCloseDropdown","onToggleDropdown","event","onClearSearch","onInputEvent","debounce","__default__","isDropdownOpen","onInput","newInput","onKeyDown","e","openDropdown","stopEventPropagation","closeDropdown","clearValue","listeners"],"mappings":";;;;;;;;;;AA0EY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,SAAA,UACAA,EAAA,QAAA,SALQA,IAAAD,KAAA,CAAA,CAAA,GAQAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,sBACAA,EAAA,UAAA,yBACAA,EAAA,QAAA,uBACAA,EAAA,QAAA,uBACAA,EAAA,QAAA,uBALQA,IAAAD,KAAA,CAAA,CAAA;ACyOR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAEV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAvOAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GA6HAI,IAAAC,EAAA,IAAA,GACAC,IAAAC,EAAA,SAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,4BAAAjB,EAAA,UAAA,GAAAkB,EAAA;AAAA,MACkC,CAAA,4BAAAlB,EAAA,UAAA,GAAAkB,EAAA;AAAA,MACA,CAAA,4BAAAlB,EAAA,WAAA,GAAA,CAAA,CAAAkB,EAAA;AAAA,IACG,EAAA,GAGhFC,IAAAF,EAAA,OAAA;AAAA,MAAmD,CAAA,mDAAA,GAAAC,EAAA;AAAA,IACc,EAAA,GAGjEE,IAAAH,EAAA,MAAAC,EAAA,oBAAA,CAAA,CAAAA,EAAA,SAAAA,EAAA,IAAA,GAEAG,IAAAJ;AAAA,MAAuB,MAAA;;AAAA;AAAA,UAEd,iBAAA;AAAA,UACoB,iBAAAC,EAAA;AAAA,UACM,qBAAAI,IAAAhB,EAAA,kBAAA,MAAA,gBAAAgB,EAAA;AAAA,UACiC,iBAAAJ,EAAA,eAAA,SAAA;AAAA,UACT,mBAAAA,EAAA;AAAA,UACtB,cAAAA,EAAA,iBAAA,OAAAA,EAAA;AAAA,UACyB,gBAAAA,EAAA;AAAA,UAC5B,iBAAAA,EAAA,WAAA,KAAA;AAAA,QACmB;AAAA;AAAA,IAC7C,GAGRK,IAAAN;AAAA,MAA2B,MAAAC,EAAA,WAAAA,EAAA,oBAAA,CAAA;AAAA,IACmD,GAG9EM,IAAAP,EAAA,MAAAC,EAAA,qBAAAA,EAAA,QAAAA,EAAA,sBAAA,GACAO,IAAAR,EAAA,MAAAC,EAAA,qBAAA,CAAAA,EAAA,QAAA,GACAQ,IAAAT;AAAA,MAA+B,MAAAC,EAAA,YAAAA,EAAA,qBAAAK,EAAA,MAAA,SAAA,KAAAL,EAAA;AAAA,IAKjB;AAGd,IAAAS;AAAA,MAAA,MAAAH,EAAA;AAAA,MAC0B,MAAA;AAElB,QAAAA,EAAA,SAAA,CAAAN,EAAA,yBACIU,EAAA,MAAA;AACI,UAAAhB,EAAA,MAAA,MAAA;AAAA,QAAoB,CAAA;AAAA,MAE5B;AAAA,IACJ;AAGJ,UAAAiB,IAAA,MAAA;AACI,MAAA,CAAAX,EAAA,YAAA,CAAAA,EAAA,aACIN,EAAA,MAAA,MAAA,GACAkB,EAAA5B,EAAA,IAAA;AAAA,IACJ,GAGJ6B,IAAA,MAAA;AACI,MAAAb,EAAA,SACIN,EAAA,MAAA,MAAA,GACAkB,EAAA5B,EAAA,KAAA;AAAA,IACJ,GAGJ8B,IAAA,CAAAC,MACIf,EAAA,QAAAe,EAAA,OAAA,YAAA,UAOI,OAGJf,EAAA,OAAAa,EAAA,IAAAF,EAAA,GAGJK,IAAA,MAAA;AACI,MAAAJ,EAAA5B,EAAA,KAAA,GACA4B,EAAA5B,EAAA,OAAA,EAAA,GACAU,EAAA,MAAA,MAAA;AAAA,IAAoB,GAExBuB,IAAAC,EAAA,CAAAH,MAAA;AACI,MAAA,CAAAf,EAAA,YAAA,CAAAA,EAAA,WACIY,EAAA5B,EAAA,OAAA+B,EAAA,OAAA,KAAA,KAEAA,EAAA,eAAA,GACAA,EAAA,gBAAA;AAAA,IACJ,GAAAf,EAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBChGJmB,IAAAhC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAEV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA1JAG,IAAAC,EAAA,GA4GAO,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,+BAAAjB,EAAA,OAAA,GAAA,CAAAkB,EAAA,YAAA,CAAAA,EAAA,YAAAA,EAAA;AAAA,MAES,CAAA,+BAAAlB,EAAA,UAAA,GAAAkB,EAAA;AAAA,MAC4B,CAAA,+BAAAlB,EAAA,UAAA,GAAAkB,EAAA;AAAA,MACA,CAAA,+BAAAlB,EAAA,QAAA,GAAAkB,EAAA;AAAA,MACF,yCAAAA,EAAA;AAAA,IAC3B,EAAA,GAGnDoB,IAAArB,EAAA,MAAAC,EAAA,QAAA,CAAAA,EAAA,YAAA,CAAAA,EAAA,QAAA,GAEAqB,IAAA,CAAAC,MAAA;AACI,MAAAV,EAAA,SAAAU,CAAA;AAAA,IAAsB,GAE1BC,IAAA,CAAAC,MAAA;AACI,MAAAZ,EAAA,WAAAY,CAAA;AAAA,IAAiB,GAErBC,IAAA,CAAAD,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAZ,EAAA,MAAA;AAAA,IAAW,GAEfe,IAAA,CAAAH,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAZ,EAAA,OAAA;AAAA,IAAY,GAEhBgB,IAAA,CAAAJ,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAZ,EAAA,OAAA;AAAA,IAAY,GAGhBiB,IAAA;AAAA,MAAkB,CAAA7C,EAAA,KAAA,GAAAqC;AAAA,MACoB,CAAArC,EAAA,IAAA,GAAAyC;AAAA,MACD,CAAAzC,EAAA,KAAA,GAAA2C;AAAA,MACC,CAAA3C,EAAA,KAAA,GAAA4C;AAAA,MACA,CAAA5C,EAAA,OAAA,GAAAuC;AAAA,IACE;;;;;;;;;;;;;;;;;;;;;;;;"}
|