@adyen/bento-vue3 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/packages/vue2/src/components/alert/alert.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +46 -54
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +86 -179
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +8 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +7 -4
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +26 -11
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +18 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +36 -12
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +18 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +18 -6
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +19 -53
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.d.ts +13 -7
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +14 -14
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +3 -24
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +148 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +150 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +28 -27
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +11 -7
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +45 -9
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -9
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/menu/components/menu-list-container/menu-list-container.vue.d.ts +8 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +22 -2
- package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-click-outside/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/accordion.js +3 -3
- package/dist/action-bar.js +7 -7
- package/dist/alert.js +126 -166
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/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/assets/{listbox.css → use-cached-selected-values.css} +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +168 -267
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.ab9c947e.js → base-button.e84acf30.js} +2 -2
- package/dist/chunks/{base-button.ab9c947e.js.map → base-button.e84acf30.js.map} +1 -1
- package/dist/chunks/{base-modal.28b5ff83.js → base-modal.29e062d0.js} +7 -7
- package/dist/chunks/{base-modal.28b5ff83.js.map → base-modal.29e062d0.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.305991e5.js → button-actions-with-menu.7fce47a2.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.305991e5.js.map → button-actions-with-menu.7fce47a2.js.map} +1 -1
- package/dist/chunks/{button-actions.ea025810.js → button-actions.642b37de.js} +3 -3
- package/dist/chunks/{button-actions.ea025810.js.map → button-actions.642b37de.js.map} +1 -1
- package/dist/chunks/{button.ce5d1f5e.js → button.60dad578.js} +3 -3
- package/dist/chunks/{button.ce5d1f5e.js.map → button.60dad578.js.map} +1 -1
- package/dist/chunks/{calendar.24a492f1.js → calendar.f38cdab9.js} +5 -5
- package/dist/chunks/{calendar.24a492f1.js.map → calendar.f38cdab9.js.map} +1 -1
- package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.ab758a81.js} +2 -2
- package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.ab758a81.js.map} +1 -1
- package/dist/chunks/{checkbox.d0f897e0.js → checkbox.f55ee3a5.js} +4 -4
- package/dist/chunks/{checkbox.d0f897e0.js.map → checkbox.f55ee3a5.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.c45a999d.js → checkmark-circle-fill.f3a69c6a.js} +2 -2
- package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.f3a69c6a.js.map} +1 -1
- package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.d7e31e5e.js} +2 -2
- package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.d7e31e5e.js.map} +1 -1
- package/dist/chunks/{checkmark.eb3c7a06.js → checkmark.87919b24.js} +2 -2
- package/dist/chunks/{checkmark.eb3c7a06.js.map → checkmark.87919b24.js.map} +1 -1
- package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.963d35e9.js} +2 -2
- package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.963d35e9.js.map} +1 -1
- package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.05ca20db.js} +2 -2
- package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.05ca20db.js.map} +1 -1
- package/dist/chunks/{controls-group.2b31233c.js → controls-group.9e0f17b2.js} +3 -3
- package/dist/chunks/{controls-group.2b31233c.js.map → controls-group.9e0f17b2.js.map} +1 -1
- package/dist/chunks/{copy.9003ed59.js → copy.852d4cb8.js} +4 -4
- package/dist/chunks/{copy.9003ed59.js.map → copy.852d4cb8.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.81925c7f.js} +2 -2
- package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.81925c7f.js.map} +1 -1
- package/dist/chunks/{cross-small.b85406fe.js → cross-small.9bc6a02f.js} +2 -2
- package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.9bc6a02f.js.map} +1 -1
- package/dist/chunks/{cross.26509efc.js → cross.a60533f6.js} +2 -2
- package/dist/chunks/{cross.26509efc.js.map → cross.a60533f6.js.map} +1 -1
- package/dist/chunks/dialog-page.ea67bb14.js +173 -0
- package/dist/chunks/dialog-page.ea67bb14.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.311443a8.js → dropdown-default-textbox.ad5063c2.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.311443a8.js.map → dropdown-default-textbox.ad5063c2.js.map} +1 -1
- package/dist/chunks/{dropdown.170b43c4.js → dropdown.d8587f36.js} +295 -317
- package/dist/chunks/dropdown.d8587f36.js.map +1 -0
- package/dist/chunks/{error-message.4678cbdc.js → error-message.3fb5573a.js} +3 -3
- package/dist/chunks/{error-message.4678cbdc.js.map → error-message.3fb5573a.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.f09618f2.js → fixed-scroller.59aefd1b.js} +3 -3
- package/dist/chunks/{fixed-scroller.f09618f2.js.map → fixed-scroller.59aefd1b.js.map} +1 -1
- package/dist/chunks/{footer-actions.2efe610e.js → footer-actions.89e68269.js} +4 -4
- package/dist/chunks/{footer-actions.2efe610e.js.map → footer-actions.89e68269.js.map} +1 -1
- package/dist/chunks/{index.1b1646bf.js → index.030c1dd7.js} +212 -191
- package/dist/chunks/index.030c1dd7.js.map +1 -0
- package/dist/chunks/{index.70c91b3b.js → index.07122048.js} +2 -2
- package/dist/chunks/{index.70c91b3b.js.map → index.07122048.js.map} +1 -1
- package/dist/chunks/{index.c41d1bbb.js → index.146f967e.js} +2 -2
- package/dist/chunks/{index.c41d1bbb.js.map → index.146f967e.js.map} +1 -1
- package/dist/chunks/{index.920cc1ee.js → index.5bdebf9d.js} +7 -7
- package/dist/chunks/{index.920cc1ee.js.map → index.5bdebf9d.js.map} +1 -1
- package/dist/chunks/{index.b772214b.js → index.6e0e9d21.js} +3 -3
- package/dist/chunks/{index.b772214b.js.map → index.6e0e9d21.js.map} +1 -1
- package/dist/chunks/{index.44f2aca7.js → index.8be283d5.js} +2 -2
- package/dist/chunks/{index.44f2aca7.js.map → index.8be283d5.js.map} +1 -1
- package/dist/chunks/{index.0d513625.js → index.96cd0d4c.js} +9 -9
- package/dist/chunks/{index.0d513625.js.map → index.96cd0d4c.js.map} +1 -1
- package/dist/chunks/{index.b3cb905c.js → index.9bf04b01.js} +3 -3
- package/dist/chunks/{index.b3cb905c.js.map → index.9bf04b01.js.map} +1 -1
- package/dist/chunks/{index.51fe0fc2.js → index.a3d60e4f.js} +17 -17
- package/dist/chunks/index.a3d60e4f.js.map +1 -0
- package/dist/chunks/{index.c5b58864.js → index.ba3396d3.js} +3 -3
- package/dist/chunks/{index.c5b58864.js.map → index.ba3396d3.js.map} +1 -1
- package/dist/chunks/{index.6987f880.js → index.c8ffede1.js} +7 -7
- package/dist/chunks/{index.6987f880.js.map → index.c8ffede1.js.map} +1 -1
- package/dist/chunks/{info.550f9511.js → info.205b4496.js} +2 -2
- package/dist/chunks/{info.550f9511.js.map → info.205b4496.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.bf77e0c4.js → listbox-option-tag.b6182b2e.js} +3 -3
- package/dist/chunks/{listbox-option-tag.bf77e0c4.js.map → listbox-option-tag.b6182b2e.js.map} +1 -1
- package/dist/chunks/{loading-button.cdc193c6.js → loading-button.0391ad8b.js} +4 -4
- package/dist/chunks/{loading-button.cdc193c6.js.map → loading-button.0391ad8b.js.map} +1 -1
- package/dist/chunks/{payment-method.ea1788f7.js → payment-method.31a68b9b.js} +2 -2
- package/dist/chunks/{payment-method.ea1788f7.js.map → payment-method.31a68b9b.js.map} +1 -1
- package/dist/chunks/{refresh.bd60f6a8.js → refresh.53691839.js} +2 -2
- package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.53691839.js.map} +1 -1
- package/dist/chunks/{search.ade93bda.js → search.4e4ee4dd.js} +2 -2
- package/dist/chunks/{search.ade93bda.js.map → search.4e4ee4dd.js.map} +1 -1
- package/dist/chunks/{tooltip.10210728.js → tooltip.1084d92b.js} +3 -3
- package/dist/chunks/{tooltip.10210728.js.map → tooltip.1084d92b.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.3275a505.js → use-bento-toast-controller.98d8613c.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.3275a505.js.map → use-bento-toast-controller.98d8613c.js.map} +1 -1
- package/dist/chunks/use-cached-selected-values.852aeafe.js +1537 -0
- package/dist/chunks/use-cached-selected-values.852aeafe.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 +1317 -1256
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- 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 +1260 -1108
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +53 -51
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +5 -5
- package/dist/index.js +141 -133
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +4 -4
- package/dist/input-field.js +50 -48
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +31 -78
- package/dist/internal.js.map +1 -1
- 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 +112 -112
- package/dist/radio-group.js.map +1 -1
- 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 +64 -62
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +4 -4
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +22 -20
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +5 -5
- package/dist/toggle.js +3 -3
- package/dist/tutorial.js +145 -124
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -3
- package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
- package/dist/chunks/dialog-page.2c07d294.js +0 -172
- package/dist/chunks/dialog-page.2c07d294.js.map +0 -1
- package/dist/chunks/dropdown.170b43c4.js.map +0 -1
- package/dist/chunks/index.1b1646bf.js.map +0 -1
- package/dist/chunks/index.51fe0fc2.js.map +0 -1
- package/dist/chunks/listbox.b6a1aea2.js +0 -1466
- package/dist/chunks/listbox.b6a1aea2.js.map +0 -1
- /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
- /package/dist/assets/{cross.css → checkmark-circle-fill.css} +0 -0
package/dist/input-field.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { I as
|
|
3
|
-
import { p as
|
|
1
|
+
import { defineComponent as de, useAttrs as ie, useSlots as re, ref as I, provide as ne, toRef as le, computed as l, toRefs as se, openBlock as r, createBlock as c, unref as t, normalizeClass as ue, withCtx as w, renderSlot as p, createCommentVNode as d, createElementVNode as M, createElementBlock as y, withModifiers as U, mergeProps as N, withKeys as pe, createVNode as ce } from "vue";
|
|
2
|
+
import { I as fe, B as V } from "./chunks/dropdown.d8587f36.js";
|
|
3
|
+
import { p as H, d as F, B as _ } from "./chunks/index.a3d60e4f.js";
|
|
4
4
|
import { g } from "./chunks/unique-id.a2a2b458.js";
|
|
5
5
|
import { g as be } from "./chunks/get-slot-text.bead058f.js";
|
|
6
6
|
import { u as ye } from "./chunks/aria-label.ac9651a5.js";
|
|
7
7
|
import { u as ve } from "./chunks/i18n.f7e6533e.js";
|
|
8
8
|
import { u as me } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
9
9
|
import { u as we } from "./chunks/use-has-slot.4d98bf29.js";
|
|
10
|
-
import { F as ge, E as De } from "./chunks/error-message.
|
|
10
|
+
import { F as ge, E as De } from "./chunks/error-message.3fb5573a.js";
|
|
11
11
|
import { _ as he } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index39.css";
|
|
13
13
|
var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), s = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(s || {}), D = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(D || {}), O = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(O || {}), Ee = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Ee || {});
|
|
14
|
-
const
|
|
14
|
+
const x = {
|
|
15
15
|
"en-US": {
|
|
16
16
|
ariaLabelFallback: "Input field"
|
|
17
17
|
}
|
|
18
|
-
}, Se = ["aria-disabled"], Ae = ["aria-hidden"], Te = ["aria-hidden"], _e = ["id"], ke = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "type", "value", "disabled", "readonly"], Ne = ["aria-hidden"], Oe = ["id"], Re = ["id"],
|
|
19
|
-
i18n: { messages:
|
|
20
|
-
},
|
|
21
|
-
|
|
18
|
+
}, Se = ["aria-disabled"], Ae = ["aria-hidden"], Te = ["aria-hidden"], _e = ["id"], ke = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "type", "value", "disabled", "readonly"], Ne = ["aria-hidden"], Oe = ["id"], Re = ["id"], $e = {
|
|
19
|
+
i18n: { messages: x }
|
|
20
|
+
}, Le = /* @__PURE__ */ de({
|
|
21
|
+
...$e,
|
|
22
22
|
__name: "input-field",
|
|
23
23
|
props: {
|
|
24
24
|
/**
|
|
@@ -105,11 +105,13 @@ const F = {
|
|
|
105
105
|
tooltipText: { type: String, default: null },
|
|
106
106
|
/**
|
|
107
107
|
* A string specifying the type of control to render.
|
|
108
|
+
* All `input` types are available but only `search`, `text` and `number` are fully supported.
|
|
109
|
+
*
|
|
110
|
+
* If `type` is `search`, use `bento-search-bar` instead.
|
|
108
111
|
*/
|
|
109
112
|
type: {
|
|
110
113
|
type: String,
|
|
111
|
-
default: O.TEXT
|
|
112
|
-
validator: (e) => Object.values(O).includes(e)
|
|
114
|
+
default: O.TEXT
|
|
113
115
|
},
|
|
114
116
|
/**
|
|
115
117
|
* Text displayed as the value of the input-field
|
|
@@ -125,49 +127,49 @@ const F = {
|
|
|
125
127
|
}
|
|
126
128
|
},
|
|
127
129
|
emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "input"],
|
|
128
|
-
setup(e, { expose:
|
|
129
|
-
const o = e, R =
|
|
130
|
-
|
|
131
|
-
const { isReadOnly: b } = me(
|
|
130
|
+
setup(e, { expose: W, emit: u }) {
|
|
131
|
+
const o = e, R = ie(), k = re(), { t: Y } = ve({ messages: x }), n = we(k), $ = I(null), L = g("input"), v = g("input-dropdown"), h = g("input-static-value"), B = g("input-description"), P = g("input-error");
|
|
132
|
+
ne(fe, !0);
|
|
133
|
+
const { isReadOnly: b } = me(le(o, "readonly")), E = l(
|
|
132
134
|
() => o.variant === f.STATIC_VALUE && !!k.staticValue
|
|
133
|
-
),
|
|
135
|
+
), j = l(() => o.variant === f.DEFAULT), q = l(() => o.variant === f.PAYMENT_METHOD), K = l(
|
|
134
136
|
() => E.value && o.staticValuePosition === s.START
|
|
135
|
-
),
|
|
137
|
+
), X = l(
|
|
136
138
|
() => E.value && o.staticValuePosition === s.END
|
|
137
|
-
), S = l(() => o.variant === f.DROPDOWN && !!o.dropdown),
|
|
139
|
+
), S = l(() => o.variant === f.DROPDOWN && !!o.dropdown), z = l(
|
|
138
140
|
() => S.value && o.dropdownPosition === s.START
|
|
139
|
-
),
|
|
141
|
+
), G = l(
|
|
140
142
|
() => S.value && o.dropdownPosition === s.END
|
|
141
143
|
), A = l(
|
|
142
144
|
() => !o.disabled && !b.value && (!!o.errorMessage || o.error)
|
|
143
|
-
),
|
|
144
|
-
ariaLabel:
|
|
145
|
+
), J = l(() => S.value === !0 && E.value === !0 ? `${h} ${v}` : S.value === !0 ? `${v}` : E.value === !0 ? `${h}` : null), Q = I(R["aria-label"]), { ariaLabel: Z } = se(o), ee = ye({
|
|
146
|
+
ariaLabel: Q.value,
|
|
145
147
|
// TODO: take this line away when the aria-label props is removed
|
|
146
|
-
label:
|
|
147
|
-
defaultFallback: n("default") ? be(k)("default") :
|
|
148
|
-
}),
|
|
148
|
+
label: Z,
|
|
149
|
+
defaultFallback: n("default") ? be(k)("default") : Y("ariaLabelFallback")
|
|
150
|
+
}), te = l(
|
|
149
151
|
() => `${n("description") ? B : ""} ${A.value && o.errorMessage ? P : ""}`
|
|
150
|
-
),
|
|
152
|
+
), oe = l(() => ({
|
|
151
153
|
[`b-input-field--${D.CONDENSED}`]: o.condensed,
|
|
152
154
|
[`b-input-field--${D.DISABLED}`]: o.disabled,
|
|
153
155
|
[`b-input-field--${D.READONLY}`]: b.value,
|
|
154
156
|
[`b-input-field--${D.ERROR}`]: A.value
|
|
155
|
-
})),
|
|
157
|
+
})), ae = (i) => {
|
|
156
158
|
!o.disabled && !b.value && u("input", i.target.value);
|
|
157
159
|
}, C = (i) => {
|
|
158
160
|
u("dropdown-input", i), u("update:dropdown", { ...o == null ? void 0 : o.dropdown, value: i });
|
|
159
161
|
}, T = () => {
|
|
160
|
-
|
|
162
|
+
$.value.focus();
|
|
161
163
|
};
|
|
162
|
-
return
|
|
164
|
+
return W({
|
|
163
165
|
focusInput: T
|
|
164
|
-
}), o.dropdown && o.dropdown.dynamicFiltering &&
|
|
166
|
+
}), o.dropdown && o.dropdown.dynamicFiltering && H('"bento-input-field" dropdown does not support "dynamicFiltering"'), Object.values(O).includes(o.type) || H(`"bento-input-field" dropdown does not support the type ${o.type}`), o.error && F(
|
|
165
167
|
'BentoInputField "error" property',
|
|
166
168
|
`Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
|
|
167
169
|
Having the field as "undefined" will hide/remove the error.
|
|
168
170
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
169
171
|
"2.0.0"
|
|
170
|
-
), n("defaultIconBefore") &&
|
|
172
|
+
), n("defaultIconBefore") && F(
|
|
171
173
|
'BentoInputField "defaultIconBefore" slot',
|
|
172
174
|
`Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
|
|
173
175
|
<bento-input-field>
|
|
@@ -177,7 +179,7 @@ const F = {
|
|
|
177
179
|
</bento-input-field>`,
|
|
178
180
|
"2.0.0"
|
|
179
181
|
), (i, a) => (r(), c(t(_), {
|
|
180
|
-
class:
|
|
182
|
+
class: ue(["b-input-field", t(oe)]),
|
|
181
183
|
"data-testid": "input-text-container",
|
|
182
184
|
el: "div",
|
|
183
185
|
variant: "body"
|
|
@@ -185,7 +187,7 @@ const F = {
|
|
|
185
187
|
default: w(() => [
|
|
186
188
|
t(n)("default") ? (r(), c(t(ge), {
|
|
187
189
|
key: 0,
|
|
188
|
-
for: t(
|
|
190
|
+
for: t(L),
|
|
189
191
|
"data-testid": "input-field-label",
|
|
190
192
|
"tooltip-text": e.tooltipText,
|
|
191
193
|
optional: e.optional,
|
|
@@ -203,7 +205,7 @@ const F = {
|
|
|
203
205
|
"aria-disabled": e.disabled,
|
|
204
206
|
onClick: T
|
|
205
207
|
}, [
|
|
206
|
-
t(
|
|
208
|
+
t(j) && (t(n)("defaultIconBefore") || t(n)("iconBefore")) ? (r(), y("span", {
|
|
207
209
|
key: 0,
|
|
208
210
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
209
211
|
class: "b-input-field__icon-before"
|
|
@@ -211,14 +213,14 @@ const F = {
|
|
|
211
213
|
t(n)("iconBefore") ? p(i.$slots, "iconBefore", { key: 0 }, void 0, !0) : d("", !0),
|
|
212
214
|
t(n)("defaultIconBefore") && !t(n)("iconBefore") ? p(i.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : d("", !0)
|
|
213
215
|
], 8, Ae)) : d("", !0),
|
|
214
|
-
t(
|
|
216
|
+
t(q) && t(n)("paymentMethod") ? (r(), y("span", {
|
|
215
217
|
key: 1,
|
|
216
218
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
217
219
|
class: "b-input-field__payment-method"
|
|
218
220
|
}, [
|
|
219
221
|
p(i.$slots, "paymentMethod", {}, void 0, !0)
|
|
220
222
|
], 8, Te)) : d("", !0),
|
|
221
|
-
t(
|
|
223
|
+
t(z) ? (r(), y("div", {
|
|
222
224
|
key: 2,
|
|
223
225
|
id: t(v),
|
|
224
226
|
class: "b-input-field__dropdown b-input-field__dropdown--start",
|
|
@@ -231,7 +233,7 @@ const F = {
|
|
|
231
233
|
onInput: C
|
|
232
234
|
}), null, 16, ["disabled", "readonly"])) : d("", !0)
|
|
233
235
|
], 8, _e)) : d("", !0),
|
|
234
|
-
t(
|
|
236
|
+
t(K) ? (r(), c(t(_), {
|
|
235
237
|
key: 3,
|
|
236
238
|
id: t(h),
|
|
237
239
|
class: "b-input-field__static-value b-input-field__static-value--start",
|
|
@@ -243,26 +245,26 @@ const F = {
|
|
|
243
245
|
]),
|
|
244
246
|
_: 3
|
|
245
247
|
}, 8, ["id"])) : d("", !0),
|
|
246
|
-
M("input", N({ id: t(
|
|
248
|
+
M("input", N({ id: t(L) }, t(R), {
|
|
247
249
|
ref_key: "inputFieldElement",
|
|
248
|
-
ref:
|
|
250
|
+
ref: $,
|
|
249
251
|
class: "b-input-field__input",
|
|
250
|
-
"aria-label": t(
|
|
251
|
-
"aria-describedby": t(
|
|
252
|
-
"aria-owns": t(
|
|
252
|
+
"aria-label": t(ee),
|
|
253
|
+
"aria-describedby": t(te),
|
|
254
|
+
"aria-owns": t(J),
|
|
253
255
|
"aria-invalid": t(A),
|
|
254
256
|
placeholder: e.placeholder,
|
|
255
257
|
type: e.type,
|
|
256
258
|
value: e.value,
|
|
257
259
|
disabled: e.disabled,
|
|
258
260
|
readonly: t(b),
|
|
259
|
-
onInput:
|
|
261
|
+
onInput: ae,
|
|
260
262
|
onChange: a[1] || (a[1] = (m) => u("change")),
|
|
261
263
|
onFocus: a[2] || (a[2] = (m) => u("focus")),
|
|
262
264
|
onBlur: a[3] || (a[3] = (m) => u("blur")),
|
|
263
265
|
onKeydown: [
|
|
264
266
|
a[4] || (a[4] = (m) => u("keydown", m)),
|
|
265
|
-
a[5] || (a[5] =
|
|
267
|
+
a[5] || (a[5] = pe((m) => u("escape-pressed"), ["esc"]))
|
|
266
268
|
]
|
|
267
269
|
}), null, 16, ke),
|
|
268
270
|
t(n)("iconAfter") ? (r(), y("span", {
|
|
@@ -273,7 +275,7 @@ const F = {
|
|
|
273
275
|
}, [
|
|
274
276
|
p(i.$slots, "iconAfter", {}, void 0, !0)
|
|
275
277
|
], 8, Ne)) : d("", !0),
|
|
276
|
-
t(
|
|
278
|
+
t(X) ? (r(), c(t(_), {
|
|
277
279
|
key: 5,
|
|
278
280
|
id: t(h),
|
|
279
281
|
class: "b-input-field__static-value b-input-field__static-value--end",
|
|
@@ -285,7 +287,7 @@ const F = {
|
|
|
285
287
|
]),
|
|
286
288
|
_: 3
|
|
287
289
|
}, 8, ["id"])) : d("", !0),
|
|
288
|
-
t(
|
|
290
|
+
t(G) ? (r(), y("div", {
|
|
289
291
|
key: 6,
|
|
290
292
|
id: t(v),
|
|
291
293
|
"data-testid": "input-field-dropdown-container-end",
|
|
@@ -316,7 +318,7 @@ const F = {
|
|
|
316
318
|
class: "b-input-field__description",
|
|
317
319
|
onClick: T
|
|
318
320
|
}, [
|
|
319
|
-
|
|
321
|
+
ce(t(_), {
|
|
320
322
|
el: "span",
|
|
321
323
|
variant: "body"
|
|
322
324
|
}, {
|
|
@@ -331,7 +333,7 @@ const F = {
|
|
|
331
333
|
}, 8, ["class"]));
|
|
332
334
|
}
|
|
333
335
|
});
|
|
334
|
-
const Ye = /* @__PURE__ */ he(
|
|
336
|
+
const Ye = /* @__PURE__ */ he(Le, [["__scopeId", "data-v-ce16f226"]]);
|
|
335
337
|
export {
|
|
336
338
|
Ye as BentoInputField,
|
|
337
339
|
s as BentoInputFieldElementPosition,
|
package/dist/input-field.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-field.js","sources":["../../vue2/src/components/input-field/input-field.types.ts","../../vue2/src/components/input-field/input-field.vue"],"sourcesContent":["import { BentoDropdown } from '@/components/dropdown/';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = InstanceType<typeof BentoDropdown>['$props'];\nexport type BentoInputDropdownProps = {\n items: DropdownProps['items'];\n value: DropdownProps['value'];\n};\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default')\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n v-bind=\"dropdown\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :type=\"type\"\n :value=\"value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"emit('focus')\"\n @blur=\"emit('blur')\"\n @keydown=\"emit('keydown', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n />\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n v-bind=\"dropdown\"\n :dynamic-filtering=\"false\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span v-if=\"hasSlot('description')\" :id=\"descriptionId\" class=\"b-input-field__description\" @click=\"focusInput\">\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\" />\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, provide, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/utils/ts/unique-id';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import { INPUT_FIELD_COMPONENT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n import { BentoListboxSelectedValue } from '@/types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden: { type: Boolean, default: true },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Text that labels an the input element\n */\n ariaLabel: { type: String, default: undefined },\n\n /**\n * Reduces height of the input\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `value`: Selected value of the dropdown\n * - `items`: List of available items\n *\n */\n dropdown: {\n type: Object as PropType<BentoInputDropdownProps>,\n default: undefined,\n },\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error: { type: Boolean, default: false },\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue: { type: String, default: '' },\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * A string specifying the type of control to render.\n */\n type: {\n type: String as PropType<BentoInputFieldType | `${BentoInputFieldType}`>,\n default: BentoInputFieldType.TEXT,\n validator: (value: BentoInputFieldType) => Object.values(BentoInputFieldType).includes(value),\n },\n\n /**\n * Text displayed as the value of the input-field\n */\n value: { type: [String, Number] as PropType<BentoInputFieldValue>, default: undefined },\n\n /**\n * Describes the different variants for the input element\n */\n variant: {\n type: String as PropType<BentoInputFieldVariant | `${BentoInputFieldVariant}`>,\n default: BentoInputFieldVariant.DEFAULT,\n validator: (value: BentoInputFieldVariant) => Object.values(BentoInputFieldVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the Input Field's internal dropdown changes it's value. Contains every dropdown prop passed with the updated selected value as 'value'\n */\n (e: 'update:dropdown', updatedDropdownProps: BentoInputDropdownProps): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: 'change'): void;\n\n /**\n * Emitted when the Input Field's internal dropdown changes it's value\n */\n (e: 'dropdown-input', selectedValue: BentoListboxSelectedValue): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n\n /**\n * Emitted when a key is pressed\n */\n (e: 'keydown', event: KeyboardEvent): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: 'input', inputValue: string): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default') ? (getSlotText(slots)('default') as string) : t('ariaLabelFallback'),\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${hasSlot('description') ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n }));\n\n const onInput = (event: Event) => {\n if (!props.disabled && !isReadOnly.value) {\n emit('input', (event.target as HTMLInputElement).value);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n });\n\n if (props.dropdown && (props.dropdown as InstanceType<typeof BentoDropdown>['$props']).dynamicFiltering) {\n printDevelopmentWarning('\"bento-input-field\" dropdown does not support \"dynamicFiltering\"');\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :value=\"inputValue\"\n * :input=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","isReadOnly","useFormLayoutFieldLoading","toRef","props","shouldShowStaticValue","computed","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedAriaOwns","ariaLabelAttribute","ariaLabel","toRefs","computedAriaLabel","useAriaLabel","getSlotText","computedAriaDescribedBy","inputFieldConditionalClasses","onInput","event","emit","onDropdownInput","selectedValue","focusInput","expose","printDevelopmentWarning","deprecate"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"input-field.js","sources":["../../vue2/src/components/input-field/input-field.types.ts","../../vue2/src/components/input-field/input-field.vue"],"sourcesContent":["import { BentoDropdown } from '@/components/dropdown/';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = InstanceType<typeof BentoDropdown>['$props'];\nexport type BentoInputDropdownProps = {\n items: DropdownProps['items'];\n value: DropdownProps['value'];\n};\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default')\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n v-bind=\"dropdown\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :type=\"type\"\n :value=\"value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"emit('focus')\"\n @blur=\"emit('blur')\"\n @keydown=\"emit('keydown', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n />\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n v-bind=\"dropdown\"\n :dynamic-filtering=\"false\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span v-if=\"hasSlot('description')\" :id=\"descriptionId\" class=\"b-input-field__description\" @click=\"focusInput\">\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\" />\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, provide, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/utils/ts/unique-id';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import { INPUT_FIELD_COMPONENT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n import { BentoListboxSelectedValue } from '@/types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden: { type: Boolean, default: true },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Text that labels an the input element\n */\n ariaLabel: { type: String, default: undefined },\n\n /**\n * Reduces height of the input\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `value`: Selected value of the dropdown\n * - `items`: List of available items\n *\n */\n dropdown: {\n type: Object as PropType<BentoInputDropdownProps>,\n default: undefined,\n },\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error: { type: Boolean, default: false },\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue: { type: String, default: '' },\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type: {\n type: String as PropType<BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type']>,\n default: BentoInputFieldType.TEXT,\n },\n\n /**\n * Text displayed as the value of the input-field\n */\n value: { type: [String, Number] as PropType<BentoInputFieldValue>, default: undefined },\n\n /**\n * Describes the different variants for the input element\n */\n variant: {\n type: String as PropType<BentoInputFieldVariant | `${BentoInputFieldVariant}`>,\n default: BentoInputFieldVariant.DEFAULT,\n validator: (value: BentoInputFieldVariant) => Object.values(BentoInputFieldVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the Input Field's internal dropdown changes it's value. Contains every dropdown prop passed with the updated selected value as 'value'\n */\n (e: 'update:dropdown', updatedDropdownProps: BentoInputDropdownProps): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: 'change'): void;\n\n /**\n * Emitted when the Input Field's internal dropdown changes it's value\n */\n (e: 'dropdown-input', selectedValue: BentoListboxSelectedValue): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n\n /**\n * Emitted when a key is pressed\n */\n (e: 'keydown', event: KeyboardEvent): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: 'input', inputValue: string): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default') ? (getSlotText(slots)('default') as string) : t('ariaLabelFallback'),\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${hasSlot('description') ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n }));\n\n const onInput = (event: Event) => {\n if (!props.disabled && !isReadOnly.value) {\n emit('input', (event.target as HTMLInputElement).value);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n });\n\n // Unsupported warnings\n if (props.dropdown && (props.dropdown as InstanceType<typeof BentoDropdown>['$props']).dynamicFiltering) {\n printDevelopmentWarning('\"bento-input-field\" dropdown does not support \"dynamicFiltering\"');\n }\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType)) {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type ${props.type}`);\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :value=\"inputValue\"\n * :input=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","isReadOnly","useFormLayoutFieldLoading","toRef","props","shouldShowStaticValue","computed","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedAriaOwns","ariaLabelAttribute","ariaLabel","toRefs","computedAriaLabel","useAriaLabel","getSlotText","computedAriaDescribedBy","inputFieldConditionalClasses","onInput","event","emit","onDropdownInput","selectedValue","focusInput","expose","printDevelopmentWarning","deprecate"],"mappings":"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"}
|
package/dist/internal.js
CHANGED
|
@@ -1,81 +1,34 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as
|
|
4
|
-
import { C as
|
|
5
|
-
import { B as
|
|
6
|
-
import { E as
|
|
7
|
-
import { F as
|
|
8
|
-
import { G as
|
|
9
|
-
import { B as
|
|
10
|
-
import {
|
|
11
|
-
import { B as U } from "./chunks/teleport.afeb4c3b.js";
|
|
12
|
-
const p = (l, e) => {
|
|
13
|
-
for (const o of l) {
|
|
14
|
-
if (o.value === e)
|
|
15
|
-
return o.label;
|
|
16
|
-
if (o.items)
|
|
17
|
-
return p(o.items, e);
|
|
18
|
-
}
|
|
19
|
-
return null;
|
|
20
|
-
}, d = (l, e, o) => {
|
|
21
|
-
const a = f([]), n = f(), i = (t) => {
|
|
22
|
-
n.value = o.value ? t.map(({ value: m }) => m) : t[0].value;
|
|
23
|
-
}, C = (t) => {
|
|
24
|
-
a.value = t, i(t);
|
|
25
|
-
}, u = () => {
|
|
26
|
-
a.value = [], n.value = null;
|
|
27
|
-
};
|
|
28
|
-
return v(
|
|
29
|
-
() => e.value,
|
|
30
|
-
() => {
|
|
31
|
-
if (!e.value) {
|
|
32
|
-
u();
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const t = !Array.isArray(e.value), m = [...a.value];
|
|
36
|
-
u();
|
|
37
|
-
const c = (r) => {
|
|
38
|
-
let s = p(l.value, r);
|
|
39
|
-
s || p(m, r), s || (s = r.toString()), a.value.push({ value: r, label: s });
|
|
40
|
-
};
|
|
41
|
-
if (t) {
|
|
42
|
-
const r = e.value;
|
|
43
|
-
c(r), i(a.value);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
e.value.forEach(c), i(a.value);
|
|
47
|
-
},
|
|
48
|
-
{ immediate: !0 }
|
|
49
|
-
), {
|
|
50
|
-
// Values
|
|
51
|
-
cachedSelectedValues: a,
|
|
52
|
-
simpleSelectedValuesCache: n,
|
|
53
|
-
// Methods
|
|
54
|
-
resetCache: u,
|
|
55
|
-
setCachedValues: C
|
|
56
|
-
};
|
|
57
|
-
};
|
|
1
|
+
import { B as o, L as r } from "./chunks/listbox-option-tag.b6182b2e.js";
|
|
2
|
+
import { C as s, a as p, b as l } from "./chunks/calendar.f38cdab9.js";
|
|
3
|
+
import { C as n, a as C } from "./chunks/copy.852d4cb8.js";
|
|
4
|
+
import { C as m } from "./chunks/controls-group.9e0f17b2.js";
|
|
5
|
+
import { B as f, b as G, a as d, D as I } from "./chunks/dialog-page.ea67bb14.js";
|
|
6
|
+
import { E as _, F as u } from "./chunks/error-message.3fb5573a.js";
|
|
7
|
+
import { F as A } from "./chunks/fixed-scroller.59aefd1b.js";
|
|
8
|
+
import { G as T, a as g } from "./chunks/grid-layout.c2fe3057.js";
|
|
9
|
+
import { B as D, a as F, u as b } from "./chunks/use-cached-selected-values.852aeafe.js";
|
|
10
|
+
import { B as P } from "./chunks/teleport.afeb4c3b.js";
|
|
58
11
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
12
|
+
o as BentoAvatar,
|
|
13
|
+
f as BentoDialogPageAnimation,
|
|
14
|
+
D as BentoListbox,
|
|
15
|
+
P as BentoTeleport,
|
|
16
|
+
s as Calendar,
|
|
17
|
+
p as CalendarEvent,
|
|
18
|
+
l as CalendarFirstDayOfWeek,
|
|
19
|
+
m as ControlsGroup,
|
|
20
|
+
n as Copy,
|
|
21
|
+
C as CopyTooltipState,
|
|
22
|
+
G as DIALOG_PAGE_CONFIG_INJECTION_KEY,
|
|
23
|
+
d as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
|
|
24
|
+
I as DialogPage,
|
|
25
|
+
_ as ErrorMessage,
|
|
26
|
+
u as FieldLabel,
|
|
27
|
+
A as FixedScroller,
|
|
28
|
+
T as GridLayout,
|
|
29
|
+
g as GridLayoutContainerType,
|
|
30
|
+
r as ListboxOptionTag,
|
|
31
|
+
F as useCachedSelectedValues,
|
|
32
|
+
b as useMultiLevelItems
|
|
80
33
|
};
|
|
81
34
|
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sources":[
|
|
1
|
+
{"version":3,"file":"internal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/link.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, onMounted as i, onUnmounted as l, computed as s, openBlock as d, createElementBlock as r, normalizeClass as c } from "vue";
|
|
2
2
|
import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
|
-
import "./assets/
|
|
3
|
+
import "./assets/index41.css";
|
|
4
4
|
var e = /* @__PURE__ */ ((a) => (a.START = "loading-start", a.END = "loading-end", a))(e || {});
|
|
5
5
|
const p = t({
|
|
6
6
|
name: "bento-loading-indicator",
|
package/dist/menu.js
CHANGED
package/dist/modal-fullscreen.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as L, useSlots as N, onMounted as R, openBlock as l, createBlock as r, unref as t, withCtx as o, createElementVNode as u, createTextVNode as B, toDisplayString as A, createCommentVNode as f, createElementBlock as w, renderSlot as _, pushScopeId as V, popScopeId as J, toRefs as U, ref as c, computed as Y, watch as z, nextTick as H, provide as I, normalizeClass as j, withKeys as q, withModifiers as Q, createSlots as W, createVNode as C } from "vue";
|
|
2
|
-
import { a as X } from "./chunks/button.
|
|
3
|
-
import { B as Z } from "./chunks/index.
|
|
4
|
-
import { B as k } from "./chunks/index.
|
|
2
|
+
import { a as X } from "./chunks/button.60dad578.js";
|
|
3
|
+
import { B as Z } from "./chunks/index.8be283d5.js";
|
|
4
|
+
import { B as k } from "./chunks/index.a3d60e4f.js";
|
|
5
5
|
import { u as x } from "./chunks/use-has-slot.4d98bf29.js";
|
|
6
|
-
import { D as ee, B as te, b as ae, a as le } from "./chunks/dialog-page.
|
|
7
|
-
import { B as oe } from "./chunks/button-actions.
|
|
6
|
+
import { D as ee, B as te, b as ae, a as le } from "./chunks/dialog-page.ea67bb14.js";
|
|
7
|
+
import { B as oe } from "./chunks/button-actions.642b37de.js";
|
|
8
8
|
import { _ as O } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
9
|
-
import { C as se } from "./chunks/cross.
|
|
9
|
+
import { C as se } from "./chunks/cross.a60533f6.js";
|
|
10
10
|
import { u as ne } from "./chunks/i18n.f7e6533e.js";
|
|
11
11
|
import { g as ie } from "./chunks/unique-id.a2a2b458.js";
|
|
12
12
|
import { M as ce } from "./chunks/modal-fullscreen.keys.b9f31632.js";
|
|
13
|
-
import "./assets/
|
|
13
|
+
import "./assets/index27.css";
|
|
14
14
|
const re = (e) => (V("data-v-da0f0512"), e = e(), J(), e), ue = { class: "b-modal-fullscreen-page__header" }, de = { class: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--title" }, fe = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--slot"
|
package/dist/modal.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as A, h as T, f as y, e as q, c as L, a as j, b as M } from "./chunks/base-modal.
|
|
2
|
-
import { g as me, B as fe } from "./chunks/base-modal.
|
|
1
|
+
import { d as A, h as T, f as y, e as q, c as L, a as j, b as M } from "./chunks/base-modal.29e062d0.js";
|
|
2
|
+
import { g as me, B as fe } from "./chunks/base-modal.29e062d0.js";
|
|
3
3
|
import { defineComponent as v, useSlots as w, onMounted as $, openBlock as B, createBlock as b, mergeProps as O, createSlots as z, unref as n, withCtx as l, renderSlot as c, createVNode as I, toRefs as U, ref as V, computed as S, createTextVNode as F, toDisplayString as G, useAttrs as K, watch as W, resolveDynamicComponent as Y } from "vue";
|
|
4
4
|
import { u as D } from "./chunks/use-has-slot.4d98bf29.js";
|
|
5
|
-
import { F as H } from "./chunks/footer-actions.
|
|
6
|
-
import { B as P } from "./chunks/button.
|
|
5
|
+
import { F as H } from "./chunks/footer-actions.89e68269.js";
|
|
6
|
+
import { B as P } from "./chunks/button.60dad578.js";
|
|
7
7
|
import { u as J } from "./chunks/i18n.f7e6533e.js";
|
|
8
|
-
import { B as k } from "./chunks/button-actions.
|
|
9
|
-
import { d as Q } from "./chunks/index.
|
|
8
|
+
import { B as k } from "./chunks/button-actions.642b37de.js";
|
|
9
|
+
import { d as Q } from "./chunks/index.a3d60e4f.js";
|
|
10
10
|
const X = v({
|
|
11
11
|
name: "bento-modal-default"
|
|
12
12
|
}), Z = /* @__PURE__ */ v({
|
package/dist/pagination.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as N, ref as k, computed as v, resolveComponent as c, openBlock as o, createElementBlock as _, createVNode as u, withCtx as m, createBlock as f, resolveDynamicComponent as B, mergeProps as b, createSlots as Z, createTextVNode as T, toDisplayString as h, createCommentVNode as $, createElementVNode as d, toRefs as z, normalizeClass as W, pushScopeId as U, popScopeId as V } from "vue";
|
|
2
2
|
import { u as j } from "./chunks/aria-label.ac9651a5.js";
|
|
3
|
-
import { B as A } from "./chunks/index.
|
|
4
|
-
import { B as E } from "./chunks/dropdown.
|
|
3
|
+
import { B as A } from "./chunks/index.a3d60e4f.js";
|
|
4
|
+
import { B as E } from "./chunks/dropdown.d8587f36.js";
|
|
5
5
|
import { g as R } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { g as F, a as M } from "./chunks/i18n.f7e6533e.js";
|
|
7
7
|
import { _ as P } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
8
|
-
import { a as J } from "./chunks/button.
|
|
9
|
-
import "./assets/
|
|
8
|
+
import { a as J } from "./chunks/button.60dad578.js";
|
|
9
|
+
import "./assets/index28.css";
|
|
10
10
|
const K = {
|
|
11
11
|
"en-US": {
|
|
12
12
|
showingItems: "Showing {itemCount} items",
|