@adyen/bento-vue2 1.34.0 → 1.35.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/index.d.ts +2 -2
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/currency.css +1 -0
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/accordion-item.C0EeQmpM.js +116 -0
- package/dist/chunks/accordion-item.C0EeQmpM.js.map +1 -0
- package/dist/chunks/{action-bar.CsRmYQ-k.js → action-bar.CTS-sRPZ.js} +52 -38
- package/dist/chunks/{action-bar.CsRmYQ-k.js.map → action-bar.CTS-sRPZ.js.map} +1 -1
- package/dist/chunks/{alert.DtT7BRdr.js → alert.BOAVcKqt.js} +30 -23
- package/dist/chunks/alert.BOAVcKqt.js.map +1 -0
- package/dist/chunks/{avatar.0ffdL8i0.js → avatar.qcWk9clF.js} +9 -9
- package/dist/chunks/avatar.qcWk9clF.js.map +1 -0
- package/dist/chunks/{base-modal.zHjXVjwU.js → base-modal.HSuNJt-7.js} +18 -12
- package/dist/chunks/{base-modal.zHjXVjwU.js.map → base-modal.HSuNJt-7.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js → button-actions-with-menu.GyJNwaZ5.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js.map → button-actions-with-menu.GyJNwaZ5.js.map} +1 -1
- package/dist/chunks/{button-actions.BQHr68sA.js → button-actions.fnn5w4Jz.js} +3 -3
- package/dist/chunks/{button-actions.BQHr68sA.js.map → button-actions.fnn5w4Jz.js.map} +1 -1
- package/dist/chunks/{button.79klAcOK.js → button.B1JELmx-.js} +2 -2
- package/dist/chunks/{button.79klAcOK.js.map → button.B1JELmx-.js.map} +1 -1
- package/dist/chunks/{calendar.CaTMWZUM.js → calendar.BBQUZ8xu.js} +230 -230
- package/dist/chunks/calendar.BBQUZ8xu.js.map +1 -0
- package/dist/chunks/card.DqxilNhb.js +123 -0
- package/dist/chunks/card.DqxilNhb.js.map +1 -0
- package/dist/chunks/{checkbox-group.D_mCZMPr.js → checkbox-group.CdMkjLu1.js} +4 -4
- package/dist/chunks/{checkbox-group.D_mCZMPr.js.map → checkbox-group.CdMkjLu1.js.map} +1 -1
- package/dist/chunks/{checkbox-input.BH7MGdMj.js → checkbox-input.Ce0AY_e_.js} +14 -13
- package/dist/chunks/checkbox-input.Ce0AY_e_.js.map +1 -0
- package/dist/chunks/{checkbox.CaX67eM_.js → checkbox.CVSzcaHk.js} +38 -28
- package/dist/chunks/{checkbox.CaX67eM_.js.map → checkbox.CVSzcaHk.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js → checkmark-circle-fill.By9RNf5T.js} +4 -4
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.By9RNf5T.js.map} +1 -1
- package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.C8T8ISN6.js} +4 -4
- package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
- package/dist/chunks/{chevron-left.CtnrsqUy.js → chevron-left.CvIsaXjZ.js} +6 -6
- package/dist/chunks/chevron-left.CvIsaXjZ.js.map +1 -0
- package/dist/chunks/{chevron-up.B2uWhZf7.js → chevron-up.DqJmLciO.js} +6 -6
- package/dist/chunks/chevron-up.DqJmLciO.js.map +1 -0
- package/dist/chunks/{code-snippet.DgKK7fE8.js → code-snippet.BcZJFqdH.js} +45 -36
- package/dist/chunks/code-snippet.BcZJFqdH.js.map +1 -0
- package/dist/chunks/{controls-group.6aTaRWFI.js → controls-group.BES2y5Y7.js} +2 -2
- package/dist/chunks/{controls-group.6aTaRWFI.js.map → controls-group.BES2y5Y7.js.map} +1 -1
- package/dist/chunks/{copy.B1DYKX_q.js → copy.qAUSogPB.js} +35 -26
- package/dist/chunks/copy.qAUSogPB.js.map +1 -0
- package/dist/chunks/{cross-circle-fill-small.Oj6lPaDy.js → cross-circle-fill-small.YhLgeipP.js} +4 -4
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.CnYH4R_h.js → cross-circle-fill.BawVYNw7.js} +4 -4
- package/dist/chunks/{cross-circle-fill.CnYH4R_h.js.map → cross-circle-fill.BawVYNw7.js.map} +1 -1
- package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.CZqsjZDz.js} +4 -4
- package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
- package/dist/chunks/{cross.CsUPDmaA.js → cross.CJ5EEL2c.js} +4 -4
- package/dist/chunks/{cross.CsUPDmaA.js.map → cross.CJ5EEL2c.js.map} +1 -1
- package/dist/chunks/{currency.D_2CN1OJ.js → currency.CbZqZrBz.js} +9 -8
- package/dist/chunks/{currency.D_2CN1OJ.js.map → currency.CbZqZrBz.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DWfQGGwS.js → dashboard-section.QTsJqS-s.js} +3 -3
- package/dist/chunks/{dashboard-section.DWfQGGwS.js.map → dashboard-section.QTsJqS-s.js.map} +1 -1
- package/dist/chunks/{dashed-underline.C7gLtEqx.js → dashed-underline.BnBP41jp.js} +2 -2
- package/dist/chunks/{dashed-underline.C7gLtEqx.js.map → dashed-underline.BnBP41jp.js.map} +1 -1
- package/dist/chunks/{data-grid-template.2xocKVqX.js → data-grid-template.CY3uHWRY.js} +3 -3
- package/dist/chunks/{data-grid-template.2xocKVqX.js.map → data-grid-template.CY3uHWRY.js.map} +1 -1
- package/dist/chunks/{data-grid.CUn6MrZz.js → data-grid.CZjS7HUz.js} +483 -436
- package/dist/chunks/data-grid.CZjS7HUz.js.map +1 -0
- package/dist/chunks/{date-picker.C6_KbCYT.js → date-picker.C5uid7SP.js} +91 -83
- package/dist/chunks/date-picker.C5uid7SP.js.map +1 -0
- package/dist/chunks/{date-range-picker.DaTgBXP1.js → date-range-picker.R5v1ZX-X.js} +265 -243
- package/dist/chunks/date-range-picker.R5v1ZX-X.js.map +1 -0
- package/dist/chunks/{date.DaiTzNEZ.js → date.C0uwNQjg.js} +80 -80
- package/dist/chunks/{date.DaiTzNEZ.js.map → date.C0uwNQjg.js.map} +1 -1
- package/dist/chunks/{dialog-page.bmDDYmn9.js → dialog-page.j_L6c9ZP.js} +5 -4
- package/dist/chunks/dialog-page.j_L6c9ZP.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.kQ3pHsZe.js → dropdown-default-textbox.BFx4TF5u.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.kQ3pHsZe.js.map → dropdown-default-textbox.BFx4TF5u.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.pJ_sQbJN.js → dropdown-tag.B8A03Cck.js} +3 -3
- package/dist/chunks/{dropdown-tag.pJ_sQbJN.js.map → dropdown-tag.B8A03Cck.js.map} +1 -1
- package/dist/chunks/{dropdown.DpsQPLy-.js → dropdown.h_j0DsN2.js} +159 -139
- package/dist/chunks/dropdown.h_j0DsN2.js.map +1 -0
- package/dist/chunks/{empty-state.C2ba_wDp.js → empty-state.CaQuZx7L.js} +2 -2
- package/dist/chunks/{empty-state.C2ba_wDp.js.map → empty-state.CaQuZx7L.js.map} +1 -1
- package/dist/chunks/{error-message.BnFyGbR7.js → error-message.3tVTq0sW.js} +28 -14
- package/dist/chunks/{error-message.BnFyGbR7.js.map → error-message.3tVTq0sW.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
- package/dist/chunks/{expand.CwwKq7Uc.js → expand.C263WARj.js} +4 -4
- package/dist/chunks/{expand.CwwKq7Uc.js.map → expand.C263WARj.js.map} +1 -1
- package/dist/chunks/{filter-bar.DGBvcKsz.js → filter-bar.DgiUmFql.js} +605 -589
- package/dist/chunks/filter-bar.DgiUmFql.js.map +1 -0
- package/dist/chunks/{fixed-scroller.CQWDnydO.js → fixed-scroller.DcdAycgk.js} +3 -3
- package/dist/chunks/{fixed-scroller.CQWDnydO.js.map → fixed-scroller.DcdAycgk.js.map} +1 -1
- package/dist/chunks/{footer-actions.CwHY2-Ap.js → footer-actions.C1TgWA9J.js} +3 -3
- package/dist/chunks/{footer-actions.CwHY2-Ap.js.map → footer-actions.C1TgWA9J.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CRsR3o2x.js → form-layout-title.DW8y285m.js} +2 -2
- package/dist/chunks/{form-layout-title.CRsR3o2x.js.map → form-layout-title.DW8y285m.js.map} +1 -1
- package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
- package/dist/chunks/{header.BmNDoXio.js → header.Nh_SoSJP.js} +80 -74
- package/dist/chunks/{header.BmNDoXio.js.map → header.Nh_SoSJP.js.map} +1 -1
- package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
- package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
- package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
- package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
- package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
- package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
- package/dist/chunks/{info-icon.DNn4oZsB.js → info-icon.bQl_RleE.js} +2 -2
- package/dist/chunks/{info-icon.DNn4oZsB.js.map → info-icon.bQl_RleE.js.map} +1 -1
- package/dist/chunks/{info.CyeBsLgt.js → info.D4SG-AIm.js} +4 -4
- package/dist/chunks/{info.CyeBsLgt.js.map → info.D4SG-AIm.js.map} +1 -1
- package/dist/chunks/{input-field.S5HIZtYA.js → input-field.nBUtoYwF.js} +3 -3
- package/dist/chunks/{input-field.S5HIZtYA.js.map → input-field.nBUtoYwF.js.map} +1 -1
- package/dist/chunks/{inspector.types.D6kCCKNk.js → inspector.types.DJTWyZ9x.js} +19 -11
- package/dist/chunks/{inspector.types.D6kCCKNk.js.map → inspector.types.DJTWyZ9x.js.map} +1 -1
- package/dist/chunks/{link.Xce4kDGy.js → link.BKxmPIV5.js} +4 -3
- package/dist/chunks/link.BKxmPIV5.js.map +1 -0
- package/dist/chunks/{loading-button.DDPZYO6r.js → loading-button.CsaWlmzb.js} +40 -26
- package/dist/chunks/loading-button.CsaWlmzb.js.map +1 -0
- package/dist/chunks/{menu.DSOJEn4v.js → menu.BhT5t7Ev.js} +7 -6
- package/dist/chunks/{menu.DSOJEn4v.js.map → menu.BhT5t7Ev.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BQKE0bm0.js → modal-fullscreen.BlqMgvmn.js} +27 -21
- package/dist/chunks/{modal-fullscreen.BQKE0bm0.js.map → modal-fullscreen.BlqMgvmn.js.map} +1 -1
- package/dist/chunks/{modal.ClqkmzVZ.js → modal.DCtgRb44.js} +26 -20
- package/dist/chunks/modal.DCtgRb44.js.map +1 -0
- package/dist/chunks/{pagination.he0lQGAV.js → pagination.CM_9J0dZ.js} +6 -5
- package/dist/chunks/pagination.CM_9J0dZ.js.map +1 -0
- package/dist/chunks/{popover.UmNw_M-C.js → popover.DFWeWyxd.js} +4 -4
- package/dist/chunks/{popover.UmNw_M-C.js.map → popover.DFWeWyxd.js.map} +1 -1
- package/dist/chunks/{radio-group.D7cuMKzV.js → radio-group.o2Kroy4O.js} +3 -3
- package/dist/chunks/{radio-group.D7cuMKzV.js.map → radio-group.o2Kroy4O.js.map} +1 -1
- package/dist/chunks/{refresh.BKI9WwKh.js → refresh.Bc9FzGjJ.js} +4 -4
- package/dist/chunks/{refresh.BKI9WwKh.js.map → refresh.Bc9FzGjJ.js.map} +1 -1
- package/dist/chunks/{search-bar.BPyYb0WB.js → search-bar.BRlauT9L.js} +16 -8
- package/dist/chunks/{search-bar.BPyYb0WB.js.map → search-bar.BRlauT9L.js.map} +1 -1
- package/dist/chunks/{search.CBKhp7zB.js → search.pVu-JVAN.js} +4 -4
- package/dist/chunks/{search.CBKhp7zB.js.map → search.pVu-JVAN.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CMUfpgQf.js → secondary-nav.lWetIbb8.js} +2 -2
- package/dist/chunks/{secondary-nav.CMUfpgQf.js.map → secondary-nav.lWetIbb8.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DbMfzyTG.js → selection-card-group.BWZOX7l7.js} +4 -4
- package/dist/chunks/{selection-card-group.DbMfzyTG.js.map → selection-card-group.BWZOX7l7.js.map} +1 -1
- package/dist/chunks/{sidepanel.Ck6Ts9RR.js → sidepanel.B5CKqH1u.js} +25 -19
- package/dist/chunks/{sidepanel.Ck6Ts9RR.js.map → sidepanel.B5CKqH1u.js.map} +1 -1
- package/dist/chunks/{step.CjJtlBk6.js → step.vF0pNW-K.js} +7 -6
- package/dist/chunks/step.vF0pNW-K.js.map +1 -0
- package/dist/chunks/{structured-list-item.DpLscUX4.js → structured-list-item.IElHaBHs.js} +24 -18
- package/dist/chunks/{structured-list-item.DpLscUX4.js.map → structured-list-item.IElHaBHs.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js → summary-grid-item-custom.CMsS1kro.js} +3 -3
- package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js.map → summary-grid-item-custom.CMsS1kro.js.map} +1 -1
- package/dist/chunks/{tabs.D4ORafqH.js → tabs.D8Ni3Zfb.js} +2 -2
- package/dist/chunks/{tabs.D4ORafqH.js.map → tabs.D8Ni3Zfb.js.map} +1 -1
- package/dist/chunks/{textarea.BRMpTWKS.js → textarea.2RrKj5Mr.js} +4 -4
- package/dist/chunks/{textarea.BRMpTWKS.js.map → textarea.2RrKj5Mr.js.map} +1 -1
- package/dist/chunks/{timeline-item.jh7UnviR.js → timeline-item.fF0fFDb9.js} +58 -51
- package/dist/chunks/timeline-item.fF0fFDb9.js.map +1 -0
- package/dist/chunks/{toast.3LxCDPiT.js → toast.CMdDpqMg.js} +3 -3
- package/dist/chunks/{toast.3LxCDPiT.js.map → toast.CMdDpqMg.js.map} +1 -1
- package/dist/chunks/{toggle-button.bt3zBzdC.js → toggle-button.CGvkVs_H.js} +2 -2
- package/dist/chunks/{toggle-button.bt3zBzdC.js.map → toggle-button.CGvkVs_H.js.map} +1 -1
- package/dist/chunks/{toggle.CLgGH4Jr.js → toggle.yiNF7ndg.js} +2 -2
- package/dist/chunks/{toggle.CLgGH4Jr.js.map → toggle.yiNF7ndg.js.map} +1 -1
- package/dist/chunks/{tutorial.DERGsCkg.js → tutorial.D2msGkwn.js} +86 -73
- package/dist/chunks/tutorial.D2msGkwn.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.B39-iEp4.js → use-cached-selected-values.it4ENg3q.js} +62 -47
- package/dist/chunks/use-cached-selected-values.it4ENg3q.js.map +1 -0
- package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.Cd0kVWwa.js} +4 -4
- package/dist/chunks/{warning-filled.CLKRzGMT.js.map → warning-filled.Cd0kVWwa.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +54 -54
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento.css +3 -0
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +3 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/accordion-item.IMlV_Vik.js +0 -100
- package/dist/chunks/accordion-item.IMlV_Vik.js.map +0 -1
- package/dist/chunks/alert.DtT7BRdr.js.map +0 -1
- package/dist/chunks/avatar.0ffdL8i0.js.map +0 -1
- package/dist/chunks/calendar.CaTMWZUM.js.map +0 -1
- package/dist/chunks/card.ignL7-CH.js +0 -115
- package/dist/chunks/card.ignL7-CH.js.map +0 -1
- package/dist/chunks/checkbox-input.BH7MGdMj.js.map +0 -1
- package/dist/chunks/checkmark-small.BtF8b2gE.js.map +0 -1
- package/dist/chunks/chevron-left.CtnrsqUy.js.map +0 -1
- package/dist/chunks/chevron-up.B2uWhZf7.js.map +0 -1
- package/dist/chunks/code-snippet.DgKK7fE8.js.map +0 -1
- package/dist/chunks/copy.B1DYKX_q.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +0 -1
- package/dist/chunks/cross-small.BLUwtRB-.js.map +0 -1
- package/dist/chunks/data-grid.CUn6MrZz.js.map +0 -1
- package/dist/chunks/date-picker.C6_KbCYT.js.map +0 -1
- package/dist/chunks/date-range-picker.DaTgBXP1.js.map +0 -1
- package/dist/chunks/dialog-page.bmDDYmn9.js.map +0 -1
- package/dist/chunks/dropdown.DpsQPLy-.js.map +0 -1
- package/dist/chunks/filter-bar.DGBvcKsz.js.map +0 -1
- package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
- package/dist/chunks/link.Xce4kDGy.js.map +0 -1
- package/dist/chunks/loading-button.DDPZYO6r.js.map +0 -1
- package/dist/chunks/modal.ClqkmzVZ.js.map +0 -1
- package/dist/chunks/pagination.he0lQGAV.js.map +0 -1
- package/dist/chunks/step.CjJtlBk6.js.map +0 -1
- package/dist/chunks/timeline-item.jh7UnviR.js.map +0 -1
- package/dist/chunks/tutorial.DERGsCkg.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.B39-iEp4.js.map +0 -1
- /package/dist/assets/{cross.css → main.css} +0 -0
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { ref as g, watch as le, computed as
|
|
1
|
+
import { ref as g, watch as le, computed as u, defineComponent as B, useSlots as ie, toRefs as re, nextTick as E, useAttrs as Le, toRef as L, inject as Se } from "vue";
|
|
2
2
|
import { d as oe, B as Oe } from "./typography.CqQaHXhq.js";
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as M } from "./unique-id.XFfoKuc2.js";
|
|
4
4
|
import { u as Ce } from "./aria-label.CaUURpnB.js";
|
|
5
5
|
import { u as U } from "./i18n.BQkEbtPM.js";
|
|
6
6
|
import { u as $e } from "./use-form-layout-loading.D3lALhtC.js";
|
|
7
|
-
import { a as K, b as A, B as
|
|
7
|
+
import { a as K, b as A, B as N, c as Ee, D as De } from "./dropdown-default-textbox.BFx4TF5u.js";
|
|
8
8
|
import { u as Be } from "./use-has-slot.C9lQZ6nz.js";
|
|
9
|
+
/* empty css */
|
|
9
10
|
import { n as k } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
10
11
|
import { s as z } from "./events.CMzGybJJ.js";
|
|
11
|
-
import { a as
|
|
12
|
+
import { a as c, B as W, b as j, c as Ie, u as Re } from "./use-cached-selected-values.it4ENg3q.js";
|
|
12
13
|
import { B as C, a as Te } from "./keyboard-navigation.Clz1jOaA.js";
|
|
13
14
|
import { P as se } from "./popper-container.CnWphJTN.js";
|
|
14
|
-
import { B as Ae } from "./popover.
|
|
15
|
-
import { E as
|
|
15
|
+
import { B as Ae } from "./popover.DFWeWyxd.js";
|
|
16
|
+
import { E as Me, F as Ne } from "./error-message.3tVTq0sW.js";
|
|
16
17
|
import { B as ke } from "./directive.O3yEdalv.js";
|
|
17
18
|
import "../assets/dropdown.css";
|
|
18
19
|
const Pe = {
|
|
@@ -20,53 +21,61 @@ const Pe = {
|
|
|
20
21
|
apply: "Apply",
|
|
21
22
|
cancel: "Cancel",
|
|
22
23
|
noOptionsMatchThisSearch: "No options match this search"
|
|
24
|
+
},
|
|
25
|
+
"pt-BR": {
|
|
26
|
+
apply: "Aplicar",
|
|
27
|
+
cancel: "Cancelar"
|
|
28
|
+
},
|
|
29
|
+
"ja-JP": {
|
|
30
|
+
apply: "適用",
|
|
31
|
+
cancel: "キャンセル"
|
|
23
32
|
}
|
|
24
33
|
}, Fe = (s, t, o, e) => {
|
|
25
|
-
const
|
|
34
|
+
const a = g(s.value), { t: l } = U();
|
|
26
35
|
le(s, () => {
|
|
27
|
-
|
|
36
|
+
a.value = s.value;
|
|
28
37
|
});
|
|
29
|
-
const
|
|
30
|
-
() => JSON.stringify(
|
|
31
|
-
),
|
|
32
|
-
e(
|
|
33
|
-
},
|
|
34
|
-
|
|
38
|
+
const n = u(
|
|
39
|
+
() => JSON.stringify(a.value) === JSON.stringify(s.value)
|
|
40
|
+
), r = () => {
|
|
41
|
+
e(c.SELECT, a.value), e(c.CLOSE_DROPDOWN);
|
|
42
|
+
}, d = () => {
|
|
43
|
+
a.value = s.value, e(c.CLOSE_DROPDOWN);
|
|
35
44
|
}, v = () => {
|
|
36
|
-
o.value && t.value && (
|
|
37
|
-
}, i =
|
|
45
|
+
o.value && t.value && (a.value = s.value);
|
|
46
|
+
}, i = u(() => [
|
|
38
47
|
{
|
|
39
48
|
title: l("apply"),
|
|
40
|
-
event:
|
|
41
|
-
disabled:
|
|
49
|
+
event: r,
|
|
50
|
+
disabled: n.value
|
|
42
51
|
},
|
|
43
52
|
{
|
|
44
53
|
title: l("cancel"),
|
|
45
|
-
event:
|
|
54
|
+
event: d
|
|
46
55
|
}
|
|
47
56
|
]), p = (b) => {
|
|
48
|
-
|
|
57
|
+
a.value = b, t.value || e(c.SELECT, b);
|
|
49
58
|
}, $ = (b) => {
|
|
50
|
-
p(b), e(
|
|
59
|
+
p(b), e(c.TAB);
|
|
51
60
|
}, x = (b) => {
|
|
52
|
-
p(b), e(
|
|
53
|
-
},
|
|
54
|
-
p(b), e(
|
|
61
|
+
p(b), e(c.ENTER);
|
|
62
|
+
}, S = (b) => {
|
|
63
|
+
p(b), e(c.SPACE);
|
|
55
64
|
}, h = () => {
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
e(
|
|
65
|
+
d(), e(c.ESCAPE);
|
|
66
|
+
}, O = () => {
|
|
67
|
+
e(c.SHOW_MORE);
|
|
59
68
|
}, w = {
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
69
|
+
[c.SELECT]: p,
|
|
70
|
+
[c.SHOW_MORE]: O,
|
|
71
|
+
[c.TAB]: $,
|
|
72
|
+
[c.SPACE]: S,
|
|
73
|
+
[c.ENTER]: x
|
|
65
74
|
};
|
|
66
75
|
return {
|
|
67
76
|
// Values
|
|
68
77
|
actions: i,
|
|
69
|
-
internalSelectedValue:
|
|
78
|
+
internalSelectedValue: a,
|
|
70
79
|
// Methods
|
|
71
80
|
listeners: w,
|
|
72
81
|
onEscapeKey: h,
|
|
@@ -183,11 +192,11 @@ const Pe = {
|
|
|
183
192
|
},
|
|
184
193
|
emits: [],
|
|
185
194
|
setup(s, { expose: t, emit: o }) {
|
|
186
|
-
const e = s,
|
|
195
|
+
const e = s, a = ie(), { selectedValue: l, multiple: n } = re(e), r = g(null), { t: d } = U(), v = u(() => e.open && !e.disabled), i = u(() => d("noOptionsMatchThisSearch")), p = u(() => ({
|
|
187
196
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
188
|
-
})), $ =
|
|
197
|
+
})), $ = u(() => ({
|
|
189
198
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
190
|
-
})), { actions: x, internalSelectedValue:
|
|
199
|
+
})), { actions: x, internalSelectedValue: S, listeners: h, onEscapeKey: O, onOutsideDropdownClick: w } = Fe(l, n, v, o), b = u(() => e != null && e.multiple ? Ae : se), f = u(() => {
|
|
191
200
|
var _;
|
|
192
201
|
const m = {
|
|
193
202
|
"min-width": `${(_ = e == null ? void 0 : e.targetElement) == null ? void 0 : _.clientWidth}px`,
|
|
@@ -198,7 +207,7 @@ const Pe = {
|
|
|
198
207
|
actions: x.value,
|
|
199
208
|
divider: !0,
|
|
200
209
|
fallbackPosition: ["top-start"],
|
|
201
|
-
id:
|
|
210
|
+
id: M(`dropdown-options-${e.id}`),
|
|
202
211
|
open: e.open,
|
|
203
212
|
position: "bottom-start",
|
|
204
213
|
style: {
|
|
@@ -219,16 +228,16 @@ const Pe = {
|
|
|
219
228
|
});
|
|
220
229
|
return t({
|
|
221
230
|
onOutsideDropdownClick: w
|
|
222
|
-
}), { __sfc: !0, slots:
|
|
231
|
+
}), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: l, multiple: n, dropdownOptionsListboxRef: r, t: d, isDropdownOpen: v, noResultsMessage: i, conditionalClasses: p, conditionalListboxClasses: $, actions: x, internalSelectedValue: S, listeners: h, onEscapeKey: O, onOutsideDropdownClick: w, popperContainerOrPopoverComponent: b, popperContainerOrPopoverProps: f, BentoListbox: j };
|
|
223
232
|
}
|
|
224
233
|
});
|
|
225
234
|
var We = function() {
|
|
226
235
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
227
|
-
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses, attrs: { "aria-label": t.ariaLabel } }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(
|
|
228
|
-
return !
|
|
229
|
-
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(
|
|
230
|
-
return { key: l, fn: function(
|
|
231
|
-
return [t._t(l, null, null,
|
|
236
|
+
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses, attrs: { "aria-label": t.ariaLabel } }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(a) {
|
|
237
|
+
return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
238
|
+
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(a, l) {
|
|
239
|
+
return { key: l, fn: function(n) {
|
|
240
|
+
return [t._t(l, null, null, n)];
|
|
232
241
|
} };
|
|
233
242
|
})], null, !0) }, e.listeners))], 1)]);
|
|
234
243
|
}, je = [], Ue = /* @__PURE__ */ k(
|
|
@@ -240,28 +249,28 @@ var We = function() {
|
|
|
240
249
|
"1f5636d7"
|
|
241
250
|
);
|
|
242
251
|
const qe = Ue.exports;
|
|
243
|
-
let
|
|
252
|
+
let ae = 0;
|
|
244
253
|
const He = {
|
|
245
254
|
beforeCreate() {
|
|
246
|
-
this.uuid =
|
|
255
|
+
this.uuid = ae.toString(), ae += 1;
|
|
247
256
|
}
|
|
248
257
|
};
|
|
249
|
-
var
|
|
258
|
+
var Je = function() {
|
|
250
259
|
var t = this, o = t._self._c;
|
|
251
260
|
return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
252
|
-
},
|
|
261
|
+
}, Ve = [], Ye = /* @__PURE__ */ k(
|
|
253
262
|
He,
|
|
254
|
-
Ve,
|
|
255
263
|
Je,
|
|
264
|
+
Ve,
|
|
256
265
|
!1,
|
|
257
266
|
null,
|
|
258
267
|
null
|
|
259
268
|
);
|
|
260
269
|
const Ze = Ye.exports;
|
|
261
|
-
let
|
|
270
|
+
let ne = 0;
|
|
262
271
|
const Qe = {
|
|
263
272
|
beforeCreate() {
|
|
264
|
-
this.uuid =
|
|
273
|
+
this.uuid = ne.toString(), ne += 1;
|
|
265
274
|
}
|
|
266
275
|
};
|
|
267
276
|
var Xe = function() {
|
|
@@ -340,57 +349,59 @@ const tt = et.exports, ot = B({
|
|
|
340
349
|
},
|
|
341
350
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
342
351
|
setup(s, { emit: t }) {
|
|
343
|
-
const o = s, e =
|
|
352
|
+
const o = s, e = u(() => ({
|
|
344
353
|
[`b-dropdown-small-textbox--${K.DISABLED}`]: o.disabled,
|
|
345
354
|
[`b-dropdown-small-textbox--${K.READONLY}`]: o.readonly,
|
|
346
355
|
[`b-dropdown-small-textbox--${K.OPENED}`]: o.open
|
|
347
|
-
})),
|
|
356
|
+
})), a = u(() => o.open && !o.disabled && !o.readonly), l = (p) => {
|
|
348
357
|
t("input", p);
|
|
349
|
-
},
|
|
358
|
+
}, n = (p) => {
|
|
350
359
|
t("keydown", p);
|
|
351
|
-
}, u = (p) => {
|
|
352
|
-
z(p), t("open");
|
|
353
360
|
}, r = (p) => {
|
|
361
|
+
z(p), t("open");
|
|
362
|
+
}, d = (p) => {
|
|
354
363
|
z(p), t("close");
|
|
355
364
|
}, v = (p) => {
|
|
356
365
|
z(p), t("clear");
|
|
357
366
|
}, i = {
|
|
358
367
|
[A.INPUT]: l,
|
|
359
|
-
[A.OPEN]:
|
|
360
|
-
[A.CLOSE]:
|
|
368
|
+
[A.OPEN]: r,
|
|
369
|
+
[A.CLOSE]: d,
|
|
361
370
|
[A.CLEAR]: v,
|
|
362
|
-
[A.KEYDOWN]:
|
|
371
|
+
[A.KEYDOWN]: n
|
|
363
372
|
};
|
|
364
|
-
return { __sfc: !0, emit: t, props: o, conditionalClasses: e, isDropdownOpen:
|
|
373
|
+
return { __sfc: !0, emit: t, props: o, conditionalClasses: e, isDropdownOpen: a, onInput: l, onKeyDown: n, openDropdown: r, closeDropdown: d, clearValue: v, listeners: i, BentoDropdownSize: N, DropdownBaseTextbox: Ee, ChevronDownSmallIcon: Ze, ChevronUpSmallIcon: tt };
|
|
365
374
|
}
|
|
366
375
|
});
|
|
367
|
-
var
|
|
376
|
+
var at = function() {
|
|
368
377
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
369
378
|
return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
|
|
370
379
|
return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
371
380
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
372
|
-
},
|
|
381
|
+
}, nt = [], lt = /* @__PURE__ */ k(
|
|
373
382
|
st,
|
|
374
|
-
nt,
|
|
375
383
|
at,
|
|
384
|
+
nt,
|
|
376
385
|
!1,
|
|
377
386
|
null,
|
|
378
387
|
"ba322765"
|
|
379
388
|
);
|
|
380
389
|
const it = lt.exports, rt = (s, t) => t.value.reduce((o, e) => {
|
|
381
390
|
if (e.items) {
|
|
382
|
-
const
|
|
383
|
-
(
|
|
391
|
+
const a = e.items.filter(
|
|
392
|
+
(n) => s.value.find((r) => r.value === n.value)
|
|
384
393
|
);
|
|
385
|
-
|
|
394
|
+
a.length === e.items.length ? o.push(e.label) : a.forEach(({ label: n }) => o.push(n));
|
|
386
395
|
}
|
|
387
|
-
return s.value.find((
|
|
388
|
-
}, []).join(", "), dt = ({ items: s, placeholder: t, selectedValues: o }) => {
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
396
|
+
return s.value.find((a) => a.value === e.value) && o.push(e.label), o;
|
|
397
|
+
}, []).join(", "), dt = ({ items: s, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
|
|
398
|
+
const a = u(
|
|
399
|
+
() => e.value && s.value.find((n) => {
|
|
400
|
+
var r;
|
|
401
|
+
return (r = n.items) == null ? void 0 : r.length;
|
|
402
|
+
})
|
|
403
|
+
);
|
|
404
|
+
return u(() => o.value.length ? a.value ? rt(o, s) : o.value.map(({ label: n }) => n).join(", ") : t.value || null);
|
|
394
405
|
}, de = (s) => {
|
|
395
406
|
var t;
|
|
396
407
|
(t = s.value.$children) == null || t[0].$refs.textbox.focus();
|
|
@@ -399,27 +410,27 @@ const it = lt.exports, rt = (s, t) => t.value.reduce((o, e) => {
|
|
|
399
410
|
optionsContainerRef: t,
|
|
400
411
|
selectedValueIndex: o,
|
|
401
412
|
isDropdownOpen: e,
|
|
402
|
-
isDynamicFltering:
|
|
413
|
+
isDynamicFltering: a,
|
|
403
414
|
items: l,
|
|
404
|
-
isMultiple:
|
|
405
|
-
},
|
|
415
|
+
isMultiple: n
|
|
416
|
+
}, r, d, v) => {
|
|
406
417
|
const i = ({ detail: f }) => {
|
|
407
|
-
f.preventDefault(), e.value ||
|
|
418
|
+
f.preventDefault(), e.value || d(), E(() => {
|
|
408
419
|
var m;
|
|
409
|
-
|
|
420
|
+
n ? (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
410
421
|
o.value
|
|
411
422
|
), t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[o.value].$el.focus());
|
|
412
423
|
});
|
|
413
424
|
}, p = ({ detail: f }) => {
|
|
414
|
-
f.preventDefault(), e.value ||
|
|
425
|
+
f.preventDefault(), e.value || d(), E(() => {
|
|
415
426
|
t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
416
427
|
o.value
|
|
417
428
|
), t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[o.value].$el.focus();
|
|
418
429
|
});
|
|
419
430
|
}, $ = () => {
|
|
420
|
-
e.value || (
|
|
431
|
+
e.value || (d(), E(() => {
|
|
421
432
|
var f, m;
|
|
422
|
-
if (
|
|
433
|
+
if (n) {
|
|
423
434
|
const _ = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
424
435
|
(f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[_.length - 1].$children[l.length - 1].$el.focus();
|
|
425
436
|
} else
|
|
@@ -427,33 +438,33 @@ const it = lt.exports, rt = (s, t) => t.value.reduce((o, e) => {
|
|
|
427
438
|
}));
|
|
428
439
|
}, x = () => {
|
|
429
440
|
e.value && (v(), de(s));
|
|
430
|
-
},
|
|
441
|
+
}, S = () => {
|
|
431
442
|
e.value && v();
|
|
432
443
|
}, h = () => {
|
|
433
|
-
e.value ||
|
|
444
|
+
e.value || d(), E(() => {
|
|
434
445
|
var f;
|
|
435
446
|
(f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
|
|
436
447
|
});
|
|
437
|
-
},
|
|
438
|
-
f.preventDefault(),
|
|
448
|
+
}, O = ({ detail: f }) => {
|
|
449
|
+
f.preventDefault(), r(), e.value && E(() => {
|
|
439
450
|
var m, _;
|
|
440
|
-
|
|
451
|
+
n ? (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (_ = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || _[o.value].$el.focus();
|
|
441
452
|
});
|
|
442
453
|
}, w = () => {
|
|
443
|
-
|
|
454
|
+
r(), e.value && E(() => {
|
|
444
455
|
var f, m;
|
|
445
|
-
|
|
456
|
+
n ? (f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[o.value].$el.focus();
|
|
446
457
|
});
|
|
447
458
|
};
|
|
448
|
-
return
|
|
449
|
-
...
|
|
459
|
+
return u(() => ({
|
|
460
|
+
...a.value ? {} : { [C.SPACE]: O },
|
|
450
461
|
[C.ENTER]: w,
|
|
451
462
|
[C.ARROW_DOWN]: i,
|
|
452
463
|
[C.ARROW_UP]: p,
|
|
453
464
|
[C.END]: $,
|
|
454
465
|
[C.ESCAPE]: x,
|
|
455
466
|
[C.HOME]: h,
|
|
456
|
-
[C.TAB]:
|
|
467
|
+
[C.TAB]: S
|
|
457
468
|
}));
|
|
458
469
|
}, ut = ({ inputContainerRef: s, isDropdownOpen: t }, o) => {
|
|
459
470
|
const e = () => {
|
|
@@ -462,21 +473,21 @@ const it = lt.exports, rt = (s, t) => t.value.reduce((o, e) => {
|
|
|
462
473
|
});
|
|
463
474
|
};
|
|
464
475
|
return {
|
|
465
|
-
[
|
|
466
|
-
[
|
|
467
|
-
[
|
|
468
|
-
[
|
|
476
|
+
[c.ENTER]: e,
|
|
477
|
+
[c.ESCAPE]: e,
|
|
478
|
+
[c.TAB]: e,
|
|
479
|
+
[c.SPACE]: e
|
|
469
480
|
};
|
|
470
481
|
};
|
|
471
482
|
function pt(s, t, o, e) {
|
|
472
|
-
const
|
|
473
|
-
return le(
|
|
474
|
-
o !== void 0 && o(
|
|
475
|
-
}),
|
|
476
|
-
if (!
|
|
483
|
+
const a = g(s), l = g(t), n = (d, v = []) => v.flatMap((i) => i.label.toLocaleLowerCase().includes(d) ? e != null && e.value && i.items ? [...n(d, i.items)] : [i, ...n(d, i.items)] : i.items ? [...n(d, i.items)] : []);
|
|
484
|
+
return le(a, () => {
|
|
485
|
+
o !== void 0 && o(a.value);
|
|
486
|
+
}), u(() => {
|
|
487
|
+
if (!a.value || o !== void 0)
|
|
477
488
|
return l.value;
|
|
478
|
-
const
|
|
479
|
-
return
|
|
489
|
+
const d = a.value.toLocaleLowerCase();
|
|
490
|
+
return n(d, l.value);
|
|
480
491
|
});
|
|
481
492
|
}
|
|
482
493
|
const ft = {
|
|
@@ -484,6 +495,14 @@ const ft = {
|
|
|
484
495
|
all: "All",
|
|
485
496
|
clearSearch: "Clear filter",
|
|
486
497
|
ariaLabelFallback: "Dropdown"
|
|
498
|
+
},
|
|
499
|
+
"pt-BR": {
|
|
500
|
+
all: "Todos",
|
|
501
|
+
clearFilter: "Limpar filtro"
|
|
502
|
+
},
|
|
503
|
+
"ja-JP": {
|
|
504
|
+
all: "すべて",
|
|
505
|
+
clearFilter: "フィルターをクリア"
|
|
487
506
|
}
|
|
488
507
|
}, vt = Symbol("input field component injection key"), mt = B({
|
|
489
508
|
i18n: { messages: ft },
|
|
@@ -621,7 +640,7 @@ const ft = {
|
|
|
621
640
|
size: {
|
|
622
641
|
type: String,
|
|
623
642
|
default: null,
|
|
624
|
-
validator: (s) => Object.values(
|
|
643
|
+
validator: (s) => Object.values(N).includes(s)
|
|
625
644
|
},
|
|
626
645
|
/**
|
|
627
646
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -652,24 +671,25 @@ const ft = {
|
|
|
652
671
|
emits: ["input", "show-more"],
|
|
653
672
|
setup(s, { emit: t }) {
|
|
654
673
|
var te;
|
|
655
|
-
const o = s, e = Le(),
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
674
|
+
const o = s, e = Le(), a = ie(), l = Be(a), { t: n } = U(), r = g(null), d = g(null), v = g(null), i = g(!1), p = M("bento-dropdown-options-container"), $ = M("dropdown-label"), x = M("dropdown-description"), S = M("dropdown-error"), { isReadOnly: h } = $e(L(o, "readonly")), { cachedSelectedListboxOptions: O, cachedListboxSelectedValues: w, setCachedValues: b } = Ie(
|
|
675
|
+
L(o, "items"),
|
|
676
|
+
L(o, "value"),
|
|
677
|
+
L(o, "multiple")
|
|
659
678
|
), f = g(e["aria-label"]), { ariaLabel: m, label: _ } = re(o), ce = Ce({
|
|
660
679
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
661
680
|
ariaLabel: m || f,
|
|
662
681
|
label: _,
|
|
663
|
-
defaultFallback:
|
|
664
|
-
}), q = o.size ===
|
|
682
|
+
defaultFallback: n("ariaLabelFallback")
|
|
683
|
+
}), q = o.size === N.SMALL || Se(vt, !1), ue = u(() => q ? N.SMALL : N.DEFAULT), pe = u(() => ({
|
|
665
684
|
"b-dropdown--condensed": o.condensed
|
|
666
|
-
})), fe =
|
|
685
|
+
})), fe = u(() => ({
|
|
667
686
|
"b-dropdown__description--error": !!o.errorMessage
|
|
668
|
-
})), D = g(""), I =
|
|
687
|
+
})), D = g(""), I = L(o, "items"), H = L(o, "staticCategories"), ve = pt(D, I, (te = o == null ? void 0 : o.search) == null ? void 0 : te.searchEvent, H), F = u(() => o.dynamicFiltering && !!D.value), me = dt({
|
|
669
688
|
items: I,
|
|
670
|
-
placeholder:
|
|
671
|
-
|
|
672
|
-
|
|
689
|
+
placeholder: L(o, "placeholder"),
|
|
690
|
+
isMultiSelect: L(o, "multiple"),
|
|
691
|
+
selectedValues: O
|
|
692
|
+
}), be = u(() => {
|
|
673
693
|
if (o != null && o.multiple && Array.isArray(o.value))
|
|
674
694
|
return o.items.filter(
|
|
675
695
|
({ value: y }) => (o == null ? void 0 : o.value) && (o == null ? void 0 : o.value).includes(y)
|
|
@@ -681,18 +701,18 @@ const ft = {
|
|
|
681
701
|
return y ? y.items.find((T) => T.value === o.value) : null;
|
|
682
702
|
}
|
|
683
703
|
return o.items.find(({ value: y }) => y === (o == null ? void 0 : o.value));
|
|
684
|
-
}),
|
|
704
|
+
}), J = u(() => {
|
|
685
705
|
const y = o.items.findIndex(({ value: R }) => o.value === R);
|
|
686
706
|
return y > 0 ? y : 0;
|
|
687
|
-
}), { isMultiLevelSelect:
|
|
707
|
+
}), { isMultiLevelSelect: V, flattenedItemsList: Y } = Re(I), ye = u(() => {
|
|
688
708
|
var y;
|
|
689
709
|
if (o.multiple) {
|
|
690
|
-
const R = (y = o == null ? void 0 : o.value) == null ? void 0 : y.length, T =
|
|
691
|
-
return !o.hasMoreItems && T === R ?
|
|
710
|
+
const R = (y = o == null ? void 0 : o.value) == null ? void 0 : y.length, T = V.value ? Y.value.length : I.value.length;
|
|
711
|
+
return !o.hasMoreItems && T === R ? n("all") : R;
|
|
692
712
|
}
|
|
693
713
|
return null;
|
|
694
|
-
}), _e =
|
|
695
|
-
() => `${o.description ? x : ""} ${o.errorMessage ?
|
|
714
|
+
}), _e = u(
|
|
715
|
+
() => `${o.description ? x : ""} ${o.errorMessage ? S : ""}`.trim() || null
|
|
696
716
|
), Z = () => {
|
|
697
717
|
h.value || (i.value = !0);
|
|
698
718
|
}, P = () => {
|
|
@@ -704,14 +724,14 @@ const ft = {
|
|
|
704
724
|
}, X = (y) => {
|
|
705
725
|
o.multiple || (D.value = "", i.value = !1), b(y), t("input", w.value);
|
|
706
726
|
}, G = () => {
|
|
707
|
-
t(
|
|
727
|
+
t(c.SHOW_MORE);
|
|
708
728
|
}, xe = ct(
|
|
709
729
|
{
|
|
710
|
-
inputContainerRef:
|
|
730
|
+
inputContainerRef: r,
|
|
711
731
|
optionsContainerRef: v,
|
|
712
|
-
selectedValueIndex:
|
|
732
|
+
selectedValueIndex: J,
|
|
713
733
|
isDropdownOpen: i,
|
|
714
|
-
isDynamicFltering:
|
|
734
|
+
isDynamicFltering: L(o, "dynamicFiltering"),
|
|
715
735
|
items: o.items,
|
|
716
736
|
isMultiple: o.multiple
|
|
717
737
|
},
|
|
@@ -720,14 +740,14 @@ const ft = {
|
|
|
720
740
|
P
|
|
721
741
|
), ee = ut(
|
|
722
742
|
{
|
|
723
|
-
inputContainerRef:
|
|
743
|
+
inputContainerRef: r,
|
|
724
744
|
isDropdownOpen: i
|
|
725
745
|
},
|
|
726
746
|
P
|
|
727
747
|
), he = {
|
|
728
|
-
[
|
|
729
|
-
[
|
|
730
|
-
[
|
|
748
|
+
[c.CLOSE_DROPDOWN]: P,
|
|
749
|
+
[c.SELECT]: X,
|
|
750
|
+
[c.SHOW_MORE]: G,
|
|
731
751
|
...ee
|
|
732
752
|
};
|
|
733
753
|
return o.error && oe(
|
|
@@ -736,21 +756,21 @@ const ft = {
|
|
|
736
756
|
Having the field as "undefined" will hide/remove the error.
|
|
737
757
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
738
758
|
"2.0.0"
|
|
739
|
-
), o.size && oe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: e, slots:
|
|
759
|
+
), o.size && oe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: e, slots: a, hasSlot: l, props: o, emit: t, t: n, inputContainerRef: r, inputContainerRefWrapper: d, optionsContainerRef: v, isDropdownOpen: i, dropdownOptionsContainerId: p, labelId: $, descriptionId: x, errorId: S, isReadOnly: h, cachedSelectedListboxOptions: O, cachedListboxSelectedValues: w, setCachedValues: b, ariaLabelAttribute: f, ariaLabel: m, label: _, computedAriaLabel: ce, isInputComponent: q, size: ue, conditionalClasses: pe, descriptionConditionalClasses: fe, searchTerm: D, items: I, staticCategories: H, filteredItems: ve, isSearching: F, displayValue: me, selectedValueItem: be, selectedValueIndex: J, isMultiLevelSelect: V, flattenedItemsList: Y, additionalItemsSelected: ye, ariaDescribedBy: _e, openDropdown: Z, closeDropdown: P, toggleDropdown: Q, clickOutsideDropdown: ge, onOptionSelected: X, emitShowMoreEvent: G, textboxKeyboardNavigationListeners: xe, listboxKeyboardNavigationListeners: ee, listboxListeners: he, BentoDropdownOptionsContainer: qe, BentoTypography: Oe, ErrorMessage: Me, FieldLabel: Ne, vBentoClickOutsideDirective: ke, vBentoKeyboardNavigationDirective: Te };
|
|
740
760
|
}
|
|
741
761
|
});
|
|
742
762
|
var yt = function() {
|
|
743
|
-
var
|
|
763
|
+
var a;
|
|
744
764
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
745
765
|
return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(l) {
|
|
746
766
|
e.searchTerm = l;
|
|
747
|
-
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(l,
|
|
748
|
-
return { key:
|
|
749
|
-
return [t._t(
|
|
767
|
+
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(l, n) {
|
|
768
|
+
return { key: n, fn: function(r) {
|
|
769
|
+
return [t._t(n, null, null, r)];
|
|
750
770
|
} };
|
|
751
|
-
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": t.emptyState, "debounce-time": (
|
|
752
|
-
return { key:
|
|
753
|
-
return [t._t(
|
|
771
|
+
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": t.emptyState, "debounce-time": (a = t.search) == null ? void 0 : a.debounceTime, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(l, n) {
|
|
772
|
+
return { key: n, fn: function(r) {
|
|
773
|
+
return [t._t(n, null, null, r)];
|
|
754
774
|
} };
|
|
755
775
|
})], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
|
|
756
776
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
@@ -761,12 +781,12 @@ var yt = function() {
|
|
|
761
781
|
_t,
|
|
762
782
|
!1,
|
|
763
783
|
null,
|
|
764
|
-
"
|
|
784
|
+
"501c3a2e"
|
|
765
785
|
);
|
|
766
|
-
const
|
|
786
|
+
const kt = gt.exports;
|
|
767
787
|
export {
|
|
768
|
-
|
|
788
|
+
kt as B,
|
|
769
789
|
vt as I,
|
|
770
790
|
pt as u
|
|
771
791
|
};
|
|
772
|
-
//# sourceMappingURL=dropdown.
|
|
792
|
+
//# sourceMappingURL=dropdown.h_j0DsN2.js.map
|