@adyen/bento-vue2 1.26.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +8 -0
- package/dist/@types/index.d.ts +967 -374
- package/dist/accordion.js +3 -101
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +2 -231
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +5 -116
- package/dist/alert.js.map +1 -1
- package/dist/assets/{index2.css → accordion-item.css} +1 -1
- package/dist/assets/{index3.css → action-bar.css} +1 -1
- package/dist/assets/alert.css +1 -0
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/{index7.css → card.css} +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/{index9.css → code-snippet.css} +1 -1
- package/dist/assets/dashboard-section.css +1 -0
- package/dist/assets/dashed-underline.css +1 -0
- package/dist/assets/data-grid-template.css +1 -0
- package/dist/assets/data-grid.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/filter-bar.css +1 -0
- package/dist/assets/{index15.css → form-layout-title.css} +1 -1
- package/dist/assets/{index25.css → input-field.css} +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/{index26.css → menu.css} +1 -1
- package/dist/assets/{index22.css → modal-fullscreen.css} +1 -1
- package/dist/assets/{index28.css → popover.css} +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/segmented-control.css +1 -0
- package/dist/assets/selection-card-group.css +1 -0
- package/dist/assets/{index37.css → sidepanel.css} +1 -1
- package/dist/assets/status.css +1 -0
- package/dist/assets/structured-list-item.css +1 -0
- package/dist/assets/{index43.css → tabs.css} +1 -1
- package/dist/assets/toggle.css +1 -0
- package/dist/assets/tutorial.css +1 -0
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +22 -24
- package/dist/badge.js.map +1 -1
- package/dist/button.js +14 -94
- package/dist/button.js.map +1 -1
- package/dist/card.js +4 -114
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +8 -155
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
- package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
- package/dist/chunks/accordion-item.DmnrjNzw.js +100 -0
- package/dist/chunks/accordion-item.DmnrjNzw.js.map +1 -0
- package/dist/chunks/action-bar.Bebh6PHI.js +147 -0
- package/dist/chunks/action-bar.Bebh6PHI.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
- package/dist/chunks/alert.CJyTM4Az.js +96 -0
- package/dist/chunks/alert.CJyTM4Az.js.map +1 -0
- package/dist/chunks/{aria-label.ac9651a5.js → aria-label.CaUURpnB.js} +1 -1
- package/dist/chunks/{aria-label.ac9651a5.js.map → aria-label.CaUURpnB.js.map} +1 -1
- package/dist/chunks/{index.7eefc59c.js → avatar-image.DhlR-7Yg.js} +22 -24
- package/dist/chunks/avatar-image.DhlR-7Yg.js.map +1 -0
- package/dist/chunks/base-button.DER7_IsF.js +86 -0
- package/dist/chunks/{base-button.ad74b6f8.js.map → base-button.DER7_IsF.js.map} +1 -1
- package/dist/chunks/{base-modal.1fff7abe.js → base-modal.C5I7bR0d.js} +42 -46
- package/dist/chunks/{base-modal.1fff7abe.js.map → base-modal.C5I7bR0d.js.map} +1 -1
- package/dist/chunks/{base-modal.keys.b08a6bdf.js → base-modal.keys.C2PQXcE2.js} +1 -1
- package/dist/chunks/{base-modal.keys.b08a6bdf.js.map → base-modal.keys.C2PQXcE2.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.e845d77a.js → button-actions-with-menu.f3yuLK-L.js} +25 -27
- package/dist/chunks/{button-actions-with-menu.e845d77a.js.map → button-actions-with-menu.f3yuLK-L.js.map} +1 -1
- package/dist/chunks/button-actions.Bg9ey0p6.js +111 -0
- package/dist/chunks/button-actions.Bg9ey0p6.js.map +1 -0
- package/dist/chunks/button.DhAUh5JA.js +99 -0
- package/dist/chunks/button.DhAUh5JA.js.map +1 -0
- package/dist/chunks/{calendar.640b8d25.js → calendar.B69z8gjb.js} +287 -332
- package/dist/chunks/{calendar.640b8d25.js.map → calendar.B69z8gjb.js.map} +1 -1
- package/dist/chunks/card.70Xvba2C.js +115 -0
- package/dist/chunks/card.70Xvba2C.js.map +1 -0
- package/dist/chunks/checkbox-group.B-KdeRXC.js +152 -0
- package/dist/chunks/checkbox-group.B-KdeRXC.js.map +1 -0
- package/dist/chunks/{checkbox-input.1c3cc8ed.js → checkbox-input.DwDwI2BD.js} +27 -30
- package/dist/chunks/{checkbox-input.1c3cc8ed.js.map → checkbox-input.DwDwI2BD.js.map} +1 -1
- package/dist/chunks/{checkbox.bfed007c.js → checkbox.Bi2RDBEZ.js} +21 -23
- package/dist/chunks/{checkbox.bfed007c.js.map → checkbox.Bi2RDBEZ.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill.DVl6QSwm.js +24 -0
- package/dist/chunks/{checkmark-circle-fill.345311d2.js.map → checkmark-circle-fill.DVl6QSwm.js.map} +1 -1
- package/dist/chunks/{checkmark-small.520f01b1.js → checkmark-small.BtF8b2gE.js} +6 -8
- package/dist/chunks/{checkmark-small.520f01b1.js.map → checkmark-small.BtF8b2gE.js.map} +1 -1
- package/dist/chunks/{chevron-left.5edf02ac.js → chevron-left.CtnrsqUy.js} +13 -17
- package/dist/chunks/{chevron-left.5edf02ac.js.map → chevron-left.CtnrsqUy.js.map} +1 -1
- package/dist/chunks/{chevron-up.81185563.js → chevron-up.B2uWhZf7.js} +14 -18
- package/dist/chunks/{chevron-up.81185563.js.map → chevron-up.B2uWhZf7.js.map} +1 -1
- package/dist/chunks/click-outside.DABh6NLr.js +23 -0
- package/dist/chunks/click-outside.DABh6NLr.js.map +1 -0
- package/dist/chunks/code-snippet.C4IbjAhH.js +968 -0
- package/dist/chunks/code-snippet.C4IbjAhH.js.map +1 -0
- package/dist/chunks/{controls-group.4fb50009.js → controls-group.cSRFiEVO.js} +17 -19
- package/dist/chunks/{controls-group.4fb50009.js.map → controls-group.cSRFiEVO.js.map} +1 -1
- package/dist/chunks/{copy.f85700c6.js → copy.BtFWFG3q.js} +15 -19
- package/dist/chunks/{copy.f85700c6.js.map → copy.BtFWFG3q.js.map} +1 -1
- package/dist/chunks/country.KayLT0zy.js +93 -0
- package/dist/chunks/country.KayLT0zy.js.map +1 -0
- package/dist/chunks/{country.types.002caff2.js → country.types.Br0AjxGy.js} +5 -5
- package/dist/chunks/{country.types.002caff2.js.map → country.types.Br0AjxGy.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.27580c4b.js → cross-circle-fill.CnYH4R_h.js} +7 -9
- package/dist/chunks/{cross-circle-fill.27580c4b.js.map → cross-circle-fill.CnYH4R_h.js.map} +1 -1
- package/dist/chunks/{cross-small.e851e0de.js → cross-small.BLUwtRB-.js} +9 -11
- package/dist/chunks/{cross-small.e851e0de.js.map → cross-small.BLUwtRB-.js.map} +1 -1
- package/dist/chunks/{cross.04678d81.js → cross.CsUPDmaA.js} +9 -11
- package/dist/chunks/{cross.04678d81.js.map → cross.CsUPDmaA.js.map} +1 -1
- package/dist/chunks/currency.H7n7RQiX.js +113 -0
- package/dist/chunks/currency.H7n7RQiX.js.map +1 -0
- package/dist/chunks/dashboard-section.BcH-_en7.js +105 -0
- package/dist/chunks/dashboard-section.BcH-_en7.js.map +1 -0
- package/dist/chunks/dashed-underline.ChUlcFJR.js +59 -0
- package/dist/chunks/dashed-underline.ChUlcFJR.js.map +1 -0
- package/dist/chunks/data-grid-template.DqG5bNeD.js +66 -0
- package/dist/chunks/data-grid-template.DqG5bNeD.js.map +1 -0
- package/dist/chunks/{data-grid-template.keys.a819a991.js → data-grid-template.keys.2_AkxuNT.js} +1 -1
- package/dist/chunks/{data-grid-template.keys.a819a991.js.map → data-grid-template.keys.2_AkxuNT.js.map} +1 -1
- package/dist/chunks/data-grid.CvHAdmvs.js +2022 -0
- package/dist/chunks/data-grid.CvHAdmvs.js.map +1 -0
- package/dist/chunks/{date-input.9186a0bf.js → date-input.BqBdAO1E.js} +1 -1
- package/dist/chunks/{date-input.9186a0bf.js.map → date-input.BqBdAO1E.js.map} +1 -1
- package/dist/chunks/date-picker.ByP2Wpo0.js +196 -0
- package/dist/chunks/date-picker.ByP2Wpo0.js.map +1 -0
- package/dist/chunks/{index.8b8c3b16.js → date-range-picker.DrnklTJ-.js} +113 -117
- package/dist/chunks/date-range-picker.DrnklTJ-.js.map +1 -0
- package/dist/chunks/{index.b21197ca.js → date.DKjxxR6P.js} +44 -51
- package/dist/chunks/date.DKjxxR6P.js.map +1 -0
- package/dist/chunks/{debounce.b5ef6acf.js → debounce.DUTu11PS.js} +1 -1
- package/dist/chunks/{debounce.b5ef6acf.js.map → debounce.DUTu11PS.js.map} +1 -1
- package/dist/chunks/{dialog-page.73da22cf.js → dialog-page.DAh0M4mT.js} +20 -24
- package/dist/chunks/{dialog-page.73da22cf.js.map → dialog-page.DAh0M4mT.js.map} +1 -1
- package/dist/chunks/divider.BZfeYmB9.js +30 -0
- package/dist/chunks/divider.BZfeYmB9.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.54ca1b18.js → dropdown-default-textbox.CKOkl_Qa.js} +30 -34
- package/dist/chunks/{dropdown-default-textbox.54ca1b18.js.map → dropdown-default-textbox.CKOkl_Qa.js.map} +1 -1
- package/dist/chunks/dropdown-tag.DCMKQy-E.js +214 -0
- package/dist/chunks/dropdown-tag.DCMKQy-E.js.map +1 -0
- package/dist/chunks/{dropdown.10c034aa.js → dropdown.yhhQCKve.js} +195 -214
- package/dist/chunks/dropdown.yhhQCKve.js.map +1 -0
- package/dist/chunks/empty-state.BqVOj4v1.js +151 -0
- package/dist/chunks/empty-state.BqVOj4v1.js.map +1 -0
- package/dist/chunks/error-message.BSxUoE3_.js +107 -0
- package/dist/chunks/{error-message.31ec12b7.js.map → error-message.BSxUoE3_.js.map} +1 -1
- package/dist/chunks/events.CMzGybJJ.js +47 -0
- package/dist/chunks/events.CMzGybJJ.js.map +1 -0
- package/dist/chunks/filter-bar.AhsOPMZ1.js +2119 -0
- package/dist/chunks/filter-bar.AhsOPMZ1.js.map +1 -0
- package/dist/chunks/{fixed-scroller.4eb9a9ac.js → fixed-scroller.Bq1AgPnw.js} +18 -20
- package/dist/chunks/{fixed-scroller.4eb9a9ac.js.map → fixed-scroller.Bq1AgPnw.js.map} +1 -1
- package/dist/chunks/{index.d553d3d1.js → focus-trap.DSkLNO_i.js} +35 -37
- package/dist/chunks/focus-trap.DSkLNO_i.js.map +1 -0
- package/dist/chunks/{footer-actions.a1e09b4f.js → footer-actions.DqMRmlV_.js} +11 -13
- package/dist/chunks/{footer-actions.a1e09b4f.js.map → footer-actions.DqMRmlV_.js.map} +1 -1
- package/dist/chunks/form-layout-title.BzNU0B72.js +187 -0
- package/dist/chunks/form-layout-title.BzNU0B72.js.map +1 -0
- package/dist/chunks/{form-layout.types.a7a1438d.js → form-layout.types.D3EKzbE7.js} +1 -1
- package/dist/chunks/{form-layout.types.a7a1438d.js.map → form-layout.types.D3EKzbE7.js.map} +1 -1
- package/dist/chunks/{get-slot-text.99c3d860.js → get-slot-text.Cgn-E48s.js} +2 -2
- package/dist/chunks/{get-slot-text.99c3d860.js.map → get-slot-text.Cgn-E48s.js.map} +1 -1
- package/dist/chunks/{grid-layout.e0025286.js → grid-layout.HvTAa4to.js} +11 -13
- package/dist/chunks/{grid-layout.e0025286.js.map → grid-layout.HvTAa4to.js.map} +1 -1
- package/dist/chunks/header.DmKHCmXh.js +245 -0
- package/dist/chunks/header.DmKHCmXh.js.map +1 -0
- package/dist/chunks/{i18n.eb5b985b.js → i18n.BQkEbtPM.js} +2 -2
- package/dist/chunks/{i18n.eb5b985b.js.map → i18n.BQkEbtPM.js.map} +1 -1
- package/dist/chunks/image.B3uqhFjl.js +82 -0
- package/dist/chunks/image.B3uqhFjl.js.map +1 -0
- package/dist/chunks/{index.fdf12170.js → index.B_EJflcs.js} +2 -2
- package/dist/chunks/{index.fdf12170.js.map → index.B_EJflcs.js.map} +1 -1
- package/dist/chunks/{index.f55fdc32.js → index.B_UZQ6qF.js} +209 -243
- package/dist/chunks/{index.f55fdc32.js.map → index.B_UZQ6qF.js.map} +1 -1
- package/dist/chunks/{index.4c062058.js → index.Cl4_42j5.js} +1 -1
- package/dist/chunks/{index.4c062058.js.map → index.Cl4_42j5.js.map} +1 -1
- package/dist/chunks/index.OCPp3NST.js +126 -0
- package/dist/chunks/index.OCPp3NST.js.map +1 -0
- package/dist/chunks/{index.d80206ed.js → index.Z84QE0E2.js} +2 -2
- package/dist/chunks/{index.d80206ed.js.map → index.Z84QE0E2.js.map} +1 -1
- package/dist/chunks/{index.86453263.js → index.xqFSZOAb.js} +2 -2
- package/dist/chunks/{index.86453263.js.map → index.xqFSZOAb.js.map} +1 -1
- package/dist/chunks/info-icon.CLguYHRt.js +41 -0
- package/dist/chunks/info-icon.CLguYHRt.js.map +1 -0
- package/dist/chunks/{info.8b6328aa.js → info.CyeBsLgt.js} +9 -11
- package/dist/chunks/{info.8b6328aa.js.map → info.CyeBsLgt.js.map} +1 -1
- package/dist/chunks/input-field.BnlEPPYr.js +218 -0
- package/dist/chunks/input-field.BnlEPPYr.js.map +1 -0
- package/dist/chunks/internal-error.BLZodVBE.js +5 -0
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
- package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.Clz1jOaA.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.Clz1jOaA.js.map} +1 -1
- package/dist/chunks/{index.317fca12.js → link.DJ1A53gF.js} +20 -24
- package/dist/chunks/link.DJ1A53gF.js.map +1 -0
- package/dist/chunks/listbox-option-tag.BDjsYOE1.js +75 -0
- package/dist/chunks/listbox-option-tag.BDjsYOE1.js.map +1 -0
- package/dist/chunks/{loading-button.eafc9e1b.js → loading-button.CoF1IhEU.js} +32 -34
- package/dist/chunks/{loading-button.eafc9e1b.js.map → loading-button.CoF1IhEU.js.map} +1 -1
- package/dist/chunks/loading-indicator.DXc7I1Lm.js +48 -0
- package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +1 -0
- package/dist/chunks/{index.1ea85d4a.js → menu.2TwUMlA9.js} +82 -94
- package/dist/chunks/menu.2TwUMlA9.js.map +1 -0
- package/dist/chunks/modal-fullscreen.BB_8EMNo.js +196 -0
- package/dist/chunks/modal-fullscreen.BB_8EMNo.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.keys.b9f31632.js → modal-fullscreen.keys.CMba3hYp.js} +1 -1
- package/dist/chunks/{modal-fullscreen.keys.b9f31632.js.map → modal-fullscreen.keys.CMba3hYp.js.map} +1 -1
- package/dist/chunks/modal.DLwvcaRx.js +439 -0
- package/dist/chunks/modal.DLwvcaRx.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
- package/dist/chunks/{on-click-outside.3e0c3e2a.js → on-click-outside.CcNG5w7_.js} +1 -1
- package/dist/chunks/{on-click-outside.3e0c3e2a.js.map → on-click-outside.CcNG5w7_.js.map} +1 -1
- package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
- package/dist/chunks/pagination.BXjbVe4Z.js +494 -0
- package/dist/chunks/pagination.BXjbVe4Z.js.map +1 -0
- package/dist/chunks/{payment-method.6c1ce07c.js → payment-method.D9Qx-s4V.js} +19 -21
- package/dist/chunks/{payment-method.6c1ce07c.js.map → payment-method.D9Qx-s4V.js.map} +1 -1
- package/dist/chunks/payment-method.types.CJKfZQN5.js +5 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
- package/dist/chunks/{index.15b088b9.js → popover.B8YH92W8.js} +31 -37
- package/dist/chunks/popover.B8YH92W8.js.map +1 -0
- package/dist/chunks/{index.671768a1.js → popper-container.Bt02N3o1.js} +12 -15
- package/dist/chunks/popper-container.Bt02N3o1.js.map +1 -0
- package/dist/chunks/radio-group.CPbBFTzB.js +211 -0
- package/dist/chunks/radio-group.CPbBFTzB.js.map +1 -0
- package/dist/chunks/{radio-input.c6550a9c.js → radio-input.BQcC0INR.js} +17 -19
- package/dist/chunks/radio-input.BQcC0INR.js.map +1 -0
- package/dist/chunks/referrals.BvtT-kQS.js +5 -0
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
- package/dist/chunks/referrals.aX8WZigH.js +5 -0
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
- package/dist/chunks/{refresh.71a03998.js → refresh.BKI9WwKh.js} +7 -9
- package/dist/chunks/{refresh.71a03998.js.map → refresh.BKI9WwKh.js.map} +1 -1
- package/dist/chunks/{resize.a041304d.js → resize.Bqks3WUm.js} +1 -1
- package/dist/chunks/{resize.a041304d.js.map → resize.Bqks3WUm.js.map} +1 -1
- package/dist/chunks/search-bar.CsAgO-t5.js +89 -0
- package/dist/chunks/search-bar.CsAgO-t5.js.map +1 -0
- package/dist/chunks/{search.471270fe.js → search.CBKhp7zB.js} +10 -12
- package/dist/chunks/{search.471270fe.js.map → search.CBKhp7zB.js.map} +1 -1
- package/dist/chunks/secondary-nav.CNgpPxUU.js +97 -0
- package/dist/chunks/secondary-nav.CNgpPxUU.js.map +1 -0
- package/dist/chunks/segmented-control.DGjIC7Ab.js +111 -0
- package/dist/chunks/segmented-control.DGjIC7Ab.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
- package/dist/chunks/selection-card-group.DlOs8BkR.js +247 -0
- package/dist/chunks/selection-card-group.DlOs8BkR.js.map +1 -0
- package/dist/chunks/sidepanel.BBjm2QvZ.js +187 -0
- package/dist/chunks/sidepanel.BBjm2QvZ.js.map +1 -0
- package/dist/chunks/{sidepanel.keys.1ed8a57c.js → sidepanel.keys.R0DKQuYx.js} +1 -1
- package/dist/chunks/{sidepanel.keys.1ed8a57c.js.map → sidepanel.keys.R0DKQuYx.js.map} +1 -1
- package/dist/chunks/status.types.BhbOYpZx.js +36 -0
- package/dist/chunks/status.types.BhbOYpZx.js.map +1 -0
- package/dist/chunks/step.DY8Txb6a.js +234 -0
- package/dist/chunks/step.DY8Txb6a.js.map +1 -0
- package/dist/chunks/structured-list-item.C9NTVDvT.js +81 -0
- package/dist/chunks/structured-list-item.C9NTVDvT.js.map +1 -0
- package/dist/chunks/success.DhioLvPD.js +5 -0
- package/dist/chunks/success.DhioLvPD.js.map +1 -0
- package/dist/chunks/success.nNwxJRBS.js +5 -0
- package/dist/chunks/success.nNwxJRBS.js.map +1 -0
- package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js +573 -0
- package/dist/chunks/summary-grid-item-custom.CJpDnoPw.js.map +1 -0
- package/dist/chunks/{summary-grid.keys.1d1028c2.js → summary-grid.keys.BBbFrFGF.js} +1 -1
- package/dist/chunks/{summary-grid.keys.1d1028c2.js.map → summary-grid.keys.BBbFrFGF.js.map} +1 -1
- package/dist/chunks/tabs.CE65f3E_.js +140 -0
- package/dist/chunks/tabs.CE65f3E_.js.map +1 -0
- package/dist/chunks/{tabs.keys.358742f2.js → tabs.keys.Bc2pSKRw.js} +1 -1
- package/dist/chunks/{tabs.keys.358742f2.js.map → tabs.keys.Bc2pSKRw.js.map} +1 -1
- package/dist/chunks/tag.bhKrZHTU.js +64 -0
- package/dist/chunks/tag.bhKrZHTU.js.map +1 -0
- package/dist/chunks/{teleport.84b0f20b.js → teleport.CQKBJZU5.js} +14 -16
- package/dist/chunks/{teleport.84b0f20b.js.map → teleport.CQKBJZU5.js.map} +1 -1
- package/dist/chunks/textarea.CcKbtQBs.js +208 -0
- package/dist/chunks/textarea.CcKbtQBs.js.map +1 -0
- package/dist/chunks/timeline-item.ScTrUBKC.js +364 -0
- package/dist/chunks/timeline-item.ScTrUBKC.js.map +1 -0
- package/dist/chunks/toast.0EYDj8o-.js +165 -0
- package/dist/chunks/toast.0EYDj8o-.js.map +1 -0
- package/dist/chunks/toggle-button.2U-vbQhk.js +83 -0
- package/dist/chunks/toggle-button.2U-vbQhk.js.map +1 -0
- package/dist/chunks/toggle.CiOVTWlk.js +121 -0
- package/dist/chunks/toggle.CiOVTWlk.js.map +1 -0
- package/dist/chunks/{tooltip.58ef3f4a.js → tooltip.DR8rbIYw.js} +29 -32
- package/dist/chunks/tooltip.DR8rbIYw.js.map +1 -0
- package/dist/chunks/tutorial.DMm12L0S.js +335 -0
- package/dist/chunks/tutorial.DMm12L0S.js.map +1 -0
- package/dist/chunks/{index.dd30e538.js → typography.Bjtu3Gca.js} +30 -32
- package/dist/chunks/typography.Bjtu3Gca.js.map +1 -0
- package/dist/chunks/{unique-id.a2a2b458.js → unique-id.XFfoKuc2.js} +14 -20
- package/dist/chunks/{unique-id.a2a2b458.js.map → unique-id.XFfoKuc2.js.map} +1 -1
- package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
- package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.c3277f73.js → use-bento-toast-controller.BifdE4ak.js} +4 -4
- package/dist/chunks/{use-bento-toast-controller.c3277f73.js.map → use-bento-toast-controller.BifdE4ak.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.69297473.js → use-cached-selected-values.CVLzxvTi.js} +345 -346
- package/dist/chunks/use-cached-selected-values.CVLzxvTi.js.map +1 -0
- package/dist/chunks/{use-click-outside.941d1600.js → use-click-outside.DbjR7Lh4.js} +2 -2
- package/dist/chunks/{use-click-outside.941d1600.js.map → use-click-outside.DbjR7Lh4.js.map} +1 -1
- package/dist/chunks/{use-country-items.6b7985bf.js → use-country-items.C25TI6tp.js} +4 -4
- package/dist/chunks/{use-country-items.6b7985bf.js.map → use-country-items.C25TI6tp.js.map} +1 -1
- package/dist/chunks/{use-default-slot-validator.b9bff4c6.js → use-default-slot-validator.BDn0wkYP.js} +2 -2
- package/dist/chunks/{use-default-slot-validator.b9bff4c6.js.map → use-default-slot-validator.BDn0wkYP.js.map} +1 -1
- package/dist/chunks/{use-expandable-content-height.62fc84e5.js → use-expandable-content-height.GkjjbmPy.js} +1 -1
- package/dist/chunks/{use-expandable-content-height.62fc84e5.js.map → use-expandable-content-height.GkjjbmPy.js.map} +1 -1
- package/dist/chunks/{use-form-layout-loading.d03e5d48.js → use-form-layout-loading.D3lALhtC.js} +2 -2
- package/dist/chunks/{use-form-layout-loading.d03e5d48.js.map → use-form-layout-loading.D3lALhtC.js.map} +1 -1
- package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
- package/dist/chunks/{use-has-slot.fbeb19ec.js.map → use-has-slot.C9lQZ6nz.js.map} +1 -1
- package/dist/chunks/warning-filled.CLKRzGMT.js +24 -0
- package/dist/chunks/warning-filled.CLKRzGMT.js.map +1 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
- package/dist/click-outside.js +2 -20
- package/dist/click-outside.js.map +1 -1
- package/dist/code-snippet.js +5 -2050
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +8 -97
- package/dist/country.js.map +1 -1
- package/dist/currency.js +3 -112
- package/dist/currency.js.map +1 -1
- package/dist/dashboard-template.js +6 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/dashed-underline.js +5 -0
- package/dist/dashed-underline.js.map +1 -0
- package/dist/data-grid-template.js +2 -65
- package/dist/data-grid-template.js.map +1 -1
- package/dist/data-grid.js +8 -1978
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +5 -197
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +12 -227
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +5 -143
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +5 -2154
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +5 -192
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +2 -246
- package/dist/header.js.map +1 -1
- package/dist/image.js +4 -81
- package/dist/image.js.map +1 -1
- package/dist/index.js +276 -269
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -40
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +7 -217
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +15 -15
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +3 -47
- package/dist/loading-indicator.js.map +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +3 -197
- package/dist/modal-fullscreen.js.map +1 -1
- package/dist/modal.js +11 -451
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +2 -507
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +4 -4
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +6 -213
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +6 -90
- package/dist/search-bar.js.map +1 -1
- package/dist/secondary-nav.js +2 -100
- package/dist/secondary-nav.js.map +1 -1
- package/dist/segmented-control.js +4 -215
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -248
- package/dist/selection-card.js.map +1 -1
- package/dist/sidepanel.js +4 -189
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +3 -40
- package/dist/status.js.map +1 -1
- package/dist/stepper.js +5 -237
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +9 -584
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +3 -140
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -63
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +2 -209
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +7 -367
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -168
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +4 -120
- package/dist/toggle.js.map +1 -1
- package/dist/tutorial.js +2 -325
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +482 -305
- package/package.json +11 -10
- package/dist/assets/index11.css +0 -1
- package/dist/assets/index18.css +0 -1
- package/dist/assets/index33.css +0 -1
- package/dist/assets/index34.css +0 -1
- package/dist/assets/index35.css +0 -1
- package/dist/assets/index38.css +0 -1
- package/dist/assets/index4.css +0 -1
- package/dist/assets/index40.css +0 -1
- package/dist/assets/index44.css +0 -1
- package/dist/assets/index46.css +0 -1
- package/dist/chunks/1-generic-use.3ea646cd.js +0 -5
- package/dist/chunks/1-generic-use.3ea646cd.js.map +0 -1
- package/dist/chunks/1-generic-use.ccca5813.js +0 -5
- package/dist/chunks/1-generic-use.ccca5813.js.map +0 -1
- package/dist/chunks/2-generic-use.443db127.js +0 -5
- package/dist/chunks/2-generic-use.443db127.js.map +0 -1
- package/dist/chunks/2-generic-use.d69d7c08.js +0 -5
- package/dist/chunks/2-generic-use.d69d7c08.js.map +0 -1
- package/dist/chunks/3-generic-use.9f74667f.js +0 -5
- package/dist/chunks/3-generic-use.9f74667f.js.map +0 -1
- package/dist/chunks/3-generic-use.fe7ae2ce.js +0 -5
- package/dist/chunks/3-generic-use.fe7ae2ce.js.map +0 -1
- package/dist/chunks/4-generic-use.0356f4a1.js +0 -5
- package/dist/chunks/4-generic-use.0356f4a1.js.map +0 -1
- package/dist/chunks/4-generic-use.cd04bad0.js +0 -5
- package/dist/chunks/4-generic-use.cd04bad0.js.map +0 -1
- package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js +0 -33
- package/dist/chunks/_plugin-vue2_normalizer.71e2aa87.js.map +0 -1
- package/dist/chunks/adding-payment-methods.d570e03e.js +0 -5
- package/dist/chunks/adding-payment-methods.d570e03e.js.map +0 -1
- package/dist/chunks/adding-payment-methods.e419d6c0.js +0 -5
- package/dist/chunks/adding-payment-methods.e419d6c0.js.map +0 -1
- package/dist/chunks/adyen-giving.480913b5.js +0 -5
- package/dist/chunks/adyen-giving.480913b5.js.map +0 -1
- package/dist/chunks/adyen-giving.54ed984c.js +0 -5
- package/dist/chunks/adyen-giving.54ed984c.js.map +0 -1
- package/dist/chunks/base-button.ad74b6f8.js +0 -88
- package/dist/chunks/button-actions.81db18e8.js +0 -111
- package/dist/chunks/button-actions.81db18e8.js.map +0 -1
- package/dist/chunks/button.9d6435ae.js +0 -100
- package/dist/chunks/button.9d6435ae.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.345311d2.js +0 -26
- package/dist/chunks/checkmark.a6ed8f47.js +0 -26
- package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
- package/dist/chunks/dropdown.10c034aa.js.map +0 -1
- package/dist/chunks/error-message.31ec12b7.js +0 -111
- package/dist/chunks/events.58c00e6d.js +0 -50
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.15b088b9.js.map +0 -1
- package/dist/chunks/index.1ea85d4a.js.map +0 -1
- package/dist/chunks/index.317fca12.js.map +0 -1
- package/dist/chunks/index.671768a1.js.map +0 -1
- package/dist/chunks/index.7eefc59c.js.map +0 -1
- package/dist/chunks/index.885d05a9.js +0 -32
- package/dist/chunks/index.885d05a9.js.map +0 -1
- package/dist/chunks/index.8b8c3b16.js.map +0 -1
- package/dist/chunks/index.aaf965f8.js +0 -147
- package/dist/chunks/index.aaf965f8.js.map +0 -1
- package/dist/chunks/index.b21197ca.js.map +0 -1
- package/dist/chunks/index.d553d3d1.js.map +0 -1
- package/dist/chunks/index.dd30e538.js.map +0 -1
- package/dist/chunks/internal-error.35cbb071.js +0 -5
- package/dist/chunks/internal-error.35cbb071.js.map +0 -1
- package/dist/chunks/internal-error.9a4823ed.js +0 -5
- package/dist/chunks/internal-error.9a4823ed.js.map +0 -1
- package/dist/chunks/listbox-option-tag.6bbb6bbe.js +0 -107
- package/dist/chunks/listbox-option-tag.6bbb6bbe.js.map +0 -1
- package/dist/chunks/no-results-found.58856d70.js +0 -5
- package/dist/chunks/no-results-found.58856d70.js.map +0 -1
- package/dist/chunks/no-results-found.cbb12f78.js +0 -5
- package/dist/chunks/no-results-found.cbb12f78.js.map +0 -1
- package/dist/chunks/notifications-cleared.71025c22.js +0 -5
- package/dist/chunks/notifications-cleared.71025c22.js.map +0 -1
- package/dist/chunks/notifications-cleared.c4f4bed4.js +0 -5
- package/dist/chunks/notifications-cleared.c4f4bed4.js.map +0 -1
- package/dist/chunks/page-not-found.a500440d.js +0 -5
- package/dist/chunks/page-not-found.a500440d.js.map +0 -1
- package/dist/chunks/page-not-found.d1a84ba7.js +0 -5
- package/dist/chunks/page-not-found.d1a84ba7.js.map +0 -1
- package/dist/chunks/planned-maintenance.7fa5ac16.js +0 -5
- package/dist/chunks/planned-maintenance.7fa5ac16.js.map +0 -1
- package/dist/chunks/planned-maintenance.cff01aed.js +0 -5
- package/dist/chunks/planned-maintenance.cff01aed.js.map +0 -1
- package/dist/chunks/radio-input.c6550a9c.js.map +0 -1
- package/dist/chunks/referrals.178ce0eb.js +0 -5
- package/dist/chunks/referrals.178ce0eb.js.map +0 -1
- package/dist/chunks/referrals.599047da.js +0 -5
- package/dist/chunks/referrals.599047da.js.map +0 -1
- package/dist/chunks/success.41981fe8.js +0 -5
- package/dist/chunks/success.41981fe8.js.map +0 -1
- package/dist/chunks/success.77fac78b.js +0 -5
- package/dist/chunks/success.77fac78b.js.map +0 -1
- package/dist/chunks/tooltip.58ef3f4a.js.map +0 -1
- package/dist/chunks/upload-files.2708eca7.js +0 -5
- package/dist/chunks/upload-files.2708eca7.js.map +0 -1
- package/dist/chunks/upload-files.b4cd9f8b.js +0 -5
- package/dist/chunks/upload-files.b4cd9f8b.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.69297473.js.map +0 -1
- package/dist/chunks/use-has-slot.fbeb19ec.js +0 -6
- package/dist/chunks/wrong-environment.c73b0bc0.js +0 -5
- package/dist/chunks/wrong-environment.c73b0bc0.js.map +0 -1
- package/dist/chunks/wrong-environment.f890a237.js +0 -5
- package/dist/chunks/wrong-environment.f890a237.js.map +0 -1
- /package/dist/assets/{index5.css → avatar-image.css} +0 -0
- /package/dist/assets/{index.css → badge.css} +0 -0
- /package/dist/assets/{index8.css → checkbox-group.css} +0 -0
- /package/dist/assets/{index10.css → country.css} +0 -0
- /package/dist/assets/{index12.css → date-picker.css} +0 -0
- /package/dist/assets/{index13.css → date-range-picker.css} +0 -0
- /package/dist/assets/{index14.css → divider.css} +0 -0
- /package/dist/assets/{index16.css → dropdown-tag.css} +0 -0
- /package/dist/assets/{index17.css → empty-state.css} +0 -0
- /package/dist/assets/{index19.css → focus-trap.css} +0 -0
- /package/dist/assets/{index21.css → header.css} +0 -0
- /package/dist/assets/{index27.css → info-icon.css} +0 -0
- /package/dist/assets/{index42.css → link.css} +0 -0
- /package/dist/assets/{index23.css → loading-indicator.css} +0 -0
- /package/dist/assets/{index24.css → pagination.css} +0 -0
- /package/dist/assets/{index45.css → popper-container.css} +0 -0
- /package/dist/assets/{index20.css → radio-group.css} +0 -0
- /package/dist/assets/{index47.css → search-bar.css} +0 -0
- /package/dist/assets/{index48.css → secondary-nav.css} +0 -0
- /package/dist/assets/{index39.css → step.css} +0 -0
- /package/dist/assets/{index41.css → summary-grid-item-custom.css} +0 -0
- /package/dist/assets/{index36.css → tag.css} +0 -0
- /package/dist/assets/{index30.css → textarea.css} +0 -0
- /package/dist/assets/{index31.css → timeline-item.css} +0 -0
- /package/dist/assets/{index32.css → toast.css} +0 -0
- /package/dist/assets/{index6.css → toggle-button.css} +0 -0
- /package/dist/assets/{index29.css → typography.css} +0 -0
package/dist/filter-bar.js
CHANGED
|
@@ -1,2157 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent as U, useSlots as ie, useAttrs as Ye, computed as r, ref as P, watch as ee, toRef as w, onBeforeUpdate as fe, provide as Je, reactive as Be, nextTick as ze, onMounted as Ge } from "vue";
|
|
3
|
-
import { a as pe, I as We } from "./chunks/index.15b088b9.js";
|
|
4
|
-
import { u as Z } from "./chunks/i18n.eb5b985b.js";
|
|
5
|
-
import { g as _e } from "./chunks/unique-id.a2a2b458.js";
|
|
6
|
-
import { u as Ze } from "./chunks/use-click-outside.941d1600.js";
|
|
7
|
-
import "./chunks/index.4c062058.js";
|
|
8
|
-
import { B as oe, d as Qe } from "./chunks/index.dd30e538.js";
|
|
9
|
-
import { u as Ae } from "./chunks/aria-label.ac9651a5.js";
|
|
10
|
-
import { B as De, a as ye } from "./chunks/base-button.ad74b6f8.js";
|
|
11
|
-
import { g as Te } from "./chunks/get-slot-text.99c3d860.js";
|
|
12
|
-
import { u as Pe } from "./chunks/use-has-slot.fbeb19ec.js";
|
|
13
|
-
import { a as Ee, C as xe } from "./chunks/chevron-up.81185563.js";
|
|
14
|
-
import { B as Xe } from "./chunks/tooltip.58ef3f4a.js";
|
|
15
|
-
import { B as et } from "./chunks/teleport.84b0f20b.js";
|
|
16
|
-
import { B as tt } from "./chunks/dropdown-default-textbox.54ca1b18.js";
|
|
17
|
-
import { BentoRadioGroup as lt } from "./radio-group.js";
|
|
18
|
-
import { BentoInputField as Ie } from "./input-field.js";
|
|
19
|
-
import { BentoSearchBar as re, BentoSearchBarEvent as le } from "./search-bar.js";
|
|
20
|
-
import { BentoModal as at } from "./modal.js";
|
|
21
|
-
import { g as nt } from "./chunks/base-modal.1fff7abe.js";
|
|
22
|
-
import { a as st } from "./chunks/button.9d6435ae.js";
|
|
23
|
-
import { u as $e, B as ot } from "./chunks/dropdown.10c034aa.js";
|
|
24
|
-
import { g as rt } from "./chunks/index.d553d3d1.js";
|
|
25
|
-
import { B as ve } from "./chunks/index.885d05a9.js";
|
|
26
|
-
import { BentoDatePicker as it } from "./date-picker.js";
|
|
27
|
-
import { f as X } from "./chunks/index.b21197ca.js";
|
|
28
|
-
import { e as J, d as Ue, f as Re } from "./chunks/index.f55fdc32.js";
|
|
29
|
-
import { C as ut, i as ct } from "./chunks/calendar.640b8d25.js";
|
|
30
|
-
import { B as dt, D as ft, i as me } from "./chunks/index.8b8c3b16.js";
|
|
31
|
-
import { B as _t } from "./chunks/button-actions.81db18e8.js";
|
|
32
|
-
import { D as Fe } from "./chunks/date-input.9186a0bf.js";
|
|
33
|
-
import { a as he, B as vt } from "./chunks/use-cached-selected-values.69297473.js";
|
|
34
|
-
import { B as bt, L as Ve } from "./chunks/listbox-option-tag.6bbb6bbe.js";
|
|
35
|
-
import { u as pt } from "./chunks/use-country-items.6b7985bf.js";
|
|
36
|
-
import { B as yt } from "./chunks/payment-method.6c1ce07c.js";
|
|
37
|
-
import { R as mt } from "./chunks/refresh.71a03998.js";
|
|
38
|
-
import { F as Ft } from "./chunks/fixed-scroller.4eb9a9ac.js";
|
|
39
|
-
import { u as ht } from "./chunks/use-bento-toast-controller.c3277f73.js";
|
|
40
|
-
import "./assets/index18.css";
|
|
41
|
-
const gt = {}, St = /* @__PURE__ */ U({
|
|
42
|
-
...gt,
|
|
43
|
-
__name: "filter-bar-button",
|
|
44
|
-
props: {
|
|
45
|
-
/**
|
|
46
|
-
* The number of applied values within the filter.
|
|
47
|
-
* Text can also be applied here such as 'All'.
|
|
48
|
-
* e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
|
|
49
|
-
*/
|
|
50
|
-
appliedFiltersCount: { type: [String, Number], default: null },
|
|
51
|
-
/**
|
|
52
|
-
* Disables button functionality.
|
|
53
|
-
*/
|
|
54
|
-
disabled: { type: Boolean, default: !1 },
|
|
55
|
-
/**
|
|
56
|
-
* Signifies if the filter is open or closed.
|
|
57
|
-
*/
|
|
58
|
-
isFilterOpen: { type: Boolean, default: !1 },
|
|
59
|
-
/**
|
|
60
|
-
* Toggles if a chevron icon should be displayed in the button.
|
|
61
|
-
* The chevron will change depending on the open state of the filter.
|
|
62
|
-
*/
|
|
63
|
-
hasChevron: { type: Boolean, default: !1 },
|
|
64
|
-
/**
|
|
65
|
-
* A secondary label to be added next to the primary for additional filtering information.
|
|
66
|
-
* i.e. Can be used to show the set value for said filter.
|
|
67
|
-
*/
|
|
68
|
-
secondaryLabel: { type: String, default: null }
|
|
69
|
-
},
|
|
70
|
-
emits: ["click"],
|
|
71
|
-
setup(l, { emit: e }) {
|
|
72
|
-
const t = l, a = ie(), n = Ye(), s = Pe(a), i = r(() => a.default ? Te(a)("default") : null), c = Ae({ ariaLabel: i }), o = P(null), y = r(() => {
|
|
73
|
-
var h;
|
|
74
|
-
return {
|
|
75
|
-
"aria-controls": (h = n["aria-controls"]) == null ? void 0 : h.toString()
|
|
76
|
-
};
|
|
77
|
-
}), F = r(() => ({
|
|
78
|
-
"b-filter-bar-button--filter-open": t.isFilterOpen,
|
|
79
|
-
"b-filter-bar-button--active": t.appliedFiltersCount || t.secondaryLabel || t.hasChevron,
|
|
80
|
-
"b-filter-bar-button--with-secondary-label": t.secondaryLabel,
|
|
81
|
-
"b-filter-bar-button--with-chevron": t.hasChevron
|
|
82
|
-
}));
|
|
83
|
-
return { __sfc: !0, props: t, emit: e, slots: a, attrs: n, hasSlot: s, labelSlot: i, computedAriaLabel: c, filterBarButtonRef: o, ariaAttributes: y, conditionalClasses: F, onClickButton: (h) => {
|
|
84
|
-
t.disabled || e("click", h);
|
|
85
|
-
}, BentoTypography: oe, BaseButton: De, ChevronUpIcon: Ee, ChevronDownIcon: xe };
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
var Ct = function() {
|
|
89
|
-
var e = this, t = e._self._c, a = e._self._setupProxy;
|
|
90
|
-
return t(a.BaseButton, { ref: "filterBarButtonRef", staticClass: "b-filter-bar-button", class: a.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": a.computedAriaLabel, "aria-controls": a.ariaAttributes["aria-controls"], type: "button" }, on: { click: a.onClickButton }, scopedSlots: e._u([{ key: "iconRight", fn: function() {
|
|
91
|
-
return [e.appliedFiltersCount && !e.hasChevron ? t(a.BentoTypography, { staticClass: "b-filter-bar-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.appliedFiltersCount) + " ")]) : e._e(), e.hasChevron ? t("div", { staticClass: "b-filter-bar-button__chevron" }, [e.isFilterOpen ? t(a.ChevronUpIcon, { attrs: { "aria-hidden": "true" } }) : t(a.ChevronDownIcon, { attrs: { "aria-hidden": "true" } })], 1) : e._e()];
|
|
92
|
-
}, proxy: !0 }]) }, [t("div", { staticClass: "b-filter-bar-button__container" }, [a.hasSlot("iconLeft") ? [e._t("iconLeft")] : e._e(), t("div", { staticClass: "b-filter-bar-button__label-container" }, [t(a.BentoTypography, { staticClass: "b-filter-bar-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._t("default")], 2), e.secondaryLabel ? t(a.BentoTypography, { staticClass: "b-filter-bar-button__secondary-label", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.secondaryLabel) + " ")]) : e._e()], 1)], 2)]);
|
|
93
|
-
}, Bt = [], At = /* @__PURE__ */ I(
|
|
94
|
-
St,
|
|
95
|
-
Ct,
|
|
96
|
-
Bt,
|
|
97
|
-
!1,
|
|
98
|
-
null,
|
|
99
|
-
"c9ee4993",
|
|
100
|
-
null,
|
|
101
|
-
null
|
|
102
|
-
);
|
|
103
|
-
const be = At.exports;
|
|
104
|
-
var _ = /* @__PURE__ */ ((l) => (l.INPUT = "input", l.UPDATE = "update", l))(_ || {}), se = /* @__PURE__ */ ((l) => (l.INPUT = "input", l.UPDATE_FILTER_VALUES = "update:filter-values", l))(se || {}), H = /* @__PURE__ */ ((l) => (l.INPUT = "BentoInputFilter", l.BOOLEAN = "BentoBooleanFilter", l.RANGE = "BentoRangeFilter", l.SELECT = "BentoSelectFilter", l.SELECT_AVATAR = "BentoSelectAvatarFilter", l.SELECT_COUNTRY = "BentoSelectCountryFilter", l.SELECT_CURRENCY = "BentoSelectCurrencyFilter", l.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", l.SELECT_TAG = "BentoSelectTagFilter", l.DATE = "BentoDateFilter", l.DATE_RANGE = "BentoDateRangeFilter", l))(H || {}), q = /* @__PURE__ */ ((l) => (l.APPLY = "apply", l.CLEAR = "clear", l.OPEN = "open", l.CLOSE = "close", l.RESET = "reset", l))(q || {});
|
|
105
|
-
const Dt = {
|
|
106
|
-
"en-US": {
|
|
107
|
-
clear: "Clear",
|
|
108
|
-
apply: "Apply",
|
|
109
|
-
reset: "Reset"
|
|
110
|
-
},
|
|
111
|
-
"de-DE": {
|
|
112
|
-
clear: "Alle löschen",
|
|
113
|
-
apply: "Bewerben"
|
|
114
|
-
},
|
|
115
|
-
"fr-FR": {
|
|
116
|
-
clear: "Effacer",
|
|
117
|
-
apply: "Postuler"
|
|
118
|
-
},
|
|
119
|
-
"ja-JP": {
|
|
120
|
-
clear: "クリア",
|
|
121
|
-
apply: "適用"
|
|
122
|
-
},
|
|
123
|
-
"pt-BR": {
|
|
124
|
-
clear: "Limpar",
|
|
125
|
-
apply: "Candidatar-se"
|
|
126
|
-
},
|
|
127
|
-
"es-ES": {
|
|
128
|
-
clear: "Borrar",
|
|
129
|
-
apply: "Aplicar"
|
|
130
|
-
}
|
|
131
|
-
}, Tt = U({
|
|
132
|
-
i18n: { messages: Dt },
|
|
133
|
-
name: "bento-base-filter",
|
|
134
|
-
components: {
|
|
135
|
-
BentoPopover: pe,
|
|
136
|
-
BentoTeleport: et,
|
|
137
|
-
FilterBarButton: be
|
|
138
|
-
},
|
|
139
|
-
directives: { BentoClickOutsideDirective: tt },
|
|
140
|
-
props: {
|
|
141
|
-
/**
|
|
142
|
-
* Total count of applied filters
|
|
143
|
-
*/
|
|
144
|
-
appliedFiltersCount: { type: [String, Number], default: null },
|
|
145
|
-
/**
|
|
146
|
-
* Overrides the label of the popover vsibility toggle button text.
|
|
147
|
-
*/
|
|
148
|
-
buttonLabel: { type: String, default: void 0 },
|
|
149
|
-
/**
|
|
150
|
-
* Sets the secondary label text of the popover vsibility toggle button text.
|
|
151
|
-
*/
|
|
152
|
-
buttonSecondaryLabel: { type: String, default: void 0 },
|
|
153
|
-
/**
|
|
154
|
-
* Default value of the filter to reset to.
|
|
155
|
-
*/
|
|
156
|
-
defaultValue: {
|
|
157
|
-
type: [Object, Number, Boolean, Array, String],
|
|
158
|
-
default: null
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
162
|
-
* Used for the allFiltersModal component.
|
|
163
|
-
*/
|
|
164
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
165
|
-
/**
|
|
166
|
-
* Allows to handle the controls (apply/clear) from outside
|
|
167
|
-
* of the component
|
|
168
|
-
*/
|
|
169
|
-
controlled: { type: Boolean, default: !1 },
|
|
170
|
-
/**
|
|
171
|
-
* Disable the "apply" button
|
|
172
|
-
*/
|
|
173
|
-
disableApplyButton: { type: Boolean, default: !1 },
|
|
174
|
-
/**
|
|
175
|
-
* Disable the secondary button action.
|
|
176
|
-
*/
|
|
177
|
-
disableSecondaryButton: { type: Boolean, default: !1 },
|
|
178
|
-
/**
|
|
179
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
180
|
-
* Should be unique per filter bar.
|
|
181
|
-
*/
|
|
182
|
-
field: { type: String, required: !0 },
|
|
183
|
-
/**
|
|
184
|
-
* Label text to be displayed
|
|
185
|
-
*/
|
|
186
|
-
label: { type: String, required: !0 },
|
|
187
|
-
/**
|
|
188
|
-
* Sets the size of the container to fit its content
|
|
189
|
-
*/
|
|
190
|
-
fitContent: pe.props.fitContent
|
|
191
|
-
},
|
|
192
|
-
emits: [
|
|
193
|
-
q.APPLY,
|
|
194
|
-
q.CLEAR,
|
|
195
|
-
q.OPEN,
|
|
196
|
-
q.CLOSE,
|
|
197
|
-
q.RESET
|
|
198
|
-
],
|
|
199
|
-
setup(l, { emit: e }) {
|
|
200
|
-
const { t } = Z(), a = _e("base-filter-popover"), n = P(!1), s = P(null), i = P(null), c = r(() => l.defaultValue !== null), o = () => {
|
|
201
|
-
n.value && (n.value = !1, e(q.CLOSE));
|
|
202
|
-
}, y = () => {
|
|
203
|
-
o(), c.value ? e(q.RESET) : e(q.CLEAR);
|
|
204
|
-
}, F = () => o(), C = () => {
|
|
205
|
-
n.value ? o() : (n.value = !0, e(q.OPEN));
|
|
206
|
-
}, h = () => {
|
|
207
|
-
o(), e(q.APPLY);
|
|
208
|
-
}, v = r(() => [
|
|
209
|
-
{
|
|
210
|
-
title: t("apply"),
|
|
211
|
-
event: h,
|
|
212
|
-
disabled: l.disableApplyButton
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
title: c.value ? t("reset") : t("clear"),
|
|
216
|
-
event: y,
|
|
217
|
-
disabled: l.disableSecondaryButton
|
|
218
|
-
}
|
|
219
|
-
]);
|
|
220
|
-
return ee(
|
|
221
|
-
() => n.value,
|
|
222
|
-
(A, E) => {
|
|
223
|
-
var T, g;
|
|
224
|
-
!A && E && (g = (T = s.value) == null ? void 0 : T.filterBarButtonRef) != null && g.bentoBaseButtonRef && s.value.filterBarButtonRef.bentoBaseButtonRef.focus();
|
|
225
|
-
}
|
|
226
|
-
), Ze(i, F, { ignore: [s] }), {
|
|
227
|
-
// Values
|
|
228
|
-
actions: v,
|
|
229
|
-
popoverId: a,
|
|
230
|
-
isFilterOpen: n,
|
|
231
|
-
isPersistentFilter: c,
|
|
232
|
-
// Enums
|
|
233
|
-
BentoTooltipPosition: Xe,
|
|
234
|
-
// Events
|
|
235
|
-
onClickFilter: C,
|
|
236
|
-
onClickApply: h,
|
|
237
|
-
onClickSecondaryAction: y,
|
|
238
|
-
onClickOutside: F,
|
|
239
|
-
closePopover: o,
|
|
240
|
-
// Refs
|
|
241
|
-
filterButtonRef: s,
|
|
242
|
-
popoverRef: i
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
var Pt = function() {
|
|
247
|
-
var e = this, t = e._self._c;
|
|
248
|
-
return e._self._setupProxy, e.onlySlot ? t("div", [e._t("default")], 2) : t("div", { staticClass: "b-base-filter" }, [t("filter-bar-button", { ref: "filterButtonRef", attrs: { "aria-controls": e.isFilterOpen ? e.popoverId : null, "has-chevron": e.isPersistentFilter, "is-filter-open": e.isFilterOpen, "applied-filters-count": e.appliedFiltersCount, "secondary-label": e.buttonSecondaryLabel }, on: { click: e.onClickFilter, keydown: function(a) {
|
|
249
|
-
return !a.type.indexOf("key") && e._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
|
|
250
|
-
} } }, [e._v(" " + e._s(e.buttonLabel || e.label) + " ")]), e.filterButtonRef ? t("bento-teleport", [e.filterButtonRef ? t("bento-popover", { ref: "popoverRef", staticClass: "b-base-filter__popover", attrs: { id: e.popoverId, divider: "", open: e.isFilterOpen, actions: e.controlled ? null : e.actions, "actions-layout": "space-between", "target-element": e.filterButtonRef, title: e.controlled ? null : e.label, "fit-content": e.fitContent, position: "bottom-start", "without-space": e.controlled, "fallback-position": ["bottom-end"] } }, [t("div", { on: { keydown: function(a) {
|
|
251
|
-
return !a.type.indexOf("key") && e._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.closePopover.apply(null, arguments);
|
|
252
|
-
} } }, [e._t("default")], 2)]) : e._e()], 1) : e._e()], 1);
|
|
253
|
-
}, Et = [], xt = /* @__PURE__ */ I(
|
|
254
|
-
Tt,
|
|
255
|
-
Pt,
|
|
256
|
-
Et,
|
|
257
|
-
!1,
|
|
258
|
-
null,
|
|
259
|
-
"5dcedc70",
|
|
260
|
-
null,
|
|
261
|
-
null
|
|
262
|
-
);
|
|
263
|
-
const ae = xt.exports, It = (l) => l instanceof Array, ge = (l) => It(l) ? l.length === 0 || l.every((e) => e === "") : !l, Se = (l, e) => JSON.stringify(l) === JSON.stringify(e), te = (l, e) => {
|
|
264
|
-
const t = P(l.value);
|
|
265
|
-
ee(
|
|
266
|
-
() => l.value,
|
|
267
|
-
() => {
|
|
268
|
-
t.value = l.value;
|
|
269
|
-
}
|
|
270
|
-
);
|
|
271
|
-
const a = r(() => ge(l.value)), n = r(
|
|
272
|
-
() => e.value !== null ? Se(e.value, l.value) : a.value
|
|
273
|
-
), s = r(() => Se(t.value, l.value) || ge(t.value) && a.value);
|
|
274
|
-
return {
|
|
275
|
-
internalFilterValue: t,
|
|
276
|
-
isSecondaryButtonDisabled: n,
|
|
277
|
-
isApplyButtonDisabled: s
|
|
278
|
-
};
|
|
279
|
-
}, W = (l, e) => {
|
|
280
|
-
const t = l == null ? void 0 : l.toString();
|
|
281
|
-
return (t == null ? void 0 : t.length) > e ? `${t == null ? void 0 : t.slice(0, e)}...` : t;
|
|
282
|
-
}, $t = U({
|
|
283
|
-
name: "bento-input-filter",
|
|
284
|
-
components: {
|
|
285
|
-
BentoBaseFilter: ae,
|
|
286
|
-
BentoInputField: Ie
|
|
287
|
-
},
|
|
288
|
-
props: {
|
|
289
|
-
/**
|
|
290
|
-
* Default value of the filter to reset to.
|
|
291
|
-
*/
|
|
292
|
-
defaultValue: { type: String, default: null },
|
|
293
|
-
/**
|
|
294
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
295
|
-
* Should be unique per filter bar.
|
|
296
|
-
*/
|
|
297
|
-
field: { type: String, required: !0 },
|
|
298
|
-
/**
|
|
299
|
-
* Label text to be displayed
|
|
300
|
-
*/
|
|
301
|
-
label: { type: String, required: !0 },
|
|
302
|
-
/**
|
|
303
|
-
* Current value of the filter.
|
|
304
|
-
* If the options.variant is equal to 'dropdown', the value should be of type `{ inputValue: string | null; dropdownValue?: string }`.
|
|
305
|
-
*/
|
|
306
|
-
value: { type: [String, Object], default: null },
|
|
307
|
-
/**
|
|
308
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
309
|
-
* Used for the allFiltersModal component.
|
|
310
|
-
*/
|
|
311
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
312
|
-
/**
|
|
313
|
-
* List of options that are needed to setup the filter
|
|
314
|
-
* Available options:
|
|
315
|
-
* - dropdown: all the dropdown properties that can be set in the inner dropdown of the input field. @see BentoDropdown for more info.
|
|
316
|
-
* - dropdownPosition: allow the user to set the dropdown on the left or right side. Accepts the `start` or `end` values.
|
|
317
|
-
*/
|
|
318
|
-
options: {
|
|
319
|
-
type: Object,
|
|
320
|
-
default: void 0
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
emits: [_.INPUT, _.UPDATE],
|
|
324
|
-
setup(l, { emit: e }) {
|
|
325
|
-
var b, D;
|
|
326
|
-
const t = P(null), a = P((D = (b = l == null ? void 0 : l.options) == null ? void 0 : b.dropdown) == null ? void 0 : D.value), n = r(
|
|
327
|
-
() => {
|
|
328
|
-
var S, N;
|
|
329
|
-
return ((S = l == null ? void 0 : l.options) == null ? void 0 : S.variant) === "dropdown" && ((N = l == null ? void 0 : l.options) == null ? void 0 : N.dropdown) !== void 0;
|
|
330
|
-
}
|
|
331
|
-
), s = r(
|
|
332
|
-
() => {
|
|
333
|
-
var S;
|
|
334
|
-
return n.value ? { ...(S = l == null ? void 0 : l.options) == null ? void 0 : S.dropdown, value: a.value } : void 0;
|
|
335
|
-
}
|
|
336
|
-
), i = r(() => {
|
|
337
|
-
var S;
|
|
338
|
-
return ((S = l == null ? void 0 : l.options) == null ? void 0 : S.variant) === "dropdown" ? "dropdown" : "default";
|
|
339
|
-
}), c = r(
|
|
340
|
-
() => {
|
|
341
|
-
var S;
|
|
342
|
-
return n.value ? (S = l.value) == null ? void 0 : S.inputValue : l == null ? void 0 : l.value;
|
|
343
|
-
}
|
|
344
|
-
), { internalFilterValue: o, isSecondaryButtonDisabled: y, isApplyButtonDisabled: F } = te(
|
|
345
|
-
c,
|
|
346
|
-
w(l, "defaultValue")
|
|
347
|
-
), C = r(
|
|
348
|
-
() => l.defaultValue === null ? l.label : W(c.value, 18)
|
|
349
|
-
), h = r(
|
|
350
|
-
() => l.defaultValue === null ? W(c.value, 12) : null
|
|
351
|
-
), v = r(() => ({
|
|
352
|
-
["b-input-filter--only-slot"]: l.onlySlot
|
|
353
|
-
}));
|
|
354
|
-
fe(() => {
|
|
355
|
-
o.value === "" && (o.value = null);
|
|
356
|
-
}), ee(t, () => {
|
|
357
|
-
var S;
|
|
358
|
-
(S = t.value) == null || S.focusInput();
|
|
359
|
-
});
|
|
360
|
-
const A = () => {
|
|
361
|
-
o.value = c.value;
|
|
362
|
-
}, E = () => {
|
|
363
|
-
!o.value && l.defaultValue !== null && (o.value = l.defaultValue), e(_.UPDATE, {
|
|
364
|
-
...l,
|
|
365
|
-
value: n.value ? { inputValue: o.value, dropdownValue: a.value } : o.value
|
|
366
|
-
});
|
|
367
|
-
}, T = () => e(_.UPDATE, { ...l, value: l.defaultValue }), g = () => {
|
|
368
|
-
o.value = null, E();
|
|
369
|
-
}, R = () => {
|
|
370
|
-
e(_.INPUT, { ...l, value: o.value });
|
|
371
|
-
}, u = (S) => {
|
|
372
|
-
o.value = S;
|
|
373
|
-
}, m = (S) => {
|
|
374
|
-
a.value = S;
|
|
375
|
-
};
|
|
376
|
-
return Je(We, n.value), {
|
|
377
|
-
// Values
|
|
378
|
-
buttonLabel: C,
|
|
379
|
-
buttonSecondaryLabel: h,
|
|
380
|
-
conditionalClasses: v,
|
|
381
|
-
dropdownProp: s,
|
|
382
|
-
inputVariant: i,
|
|
383
|
-
internalFilterValue: o,
|
|
384
|
-
isApplyButtonDisabled: F,
|
|
385
|
-
isDropdownVariant: n,
|
|
386
|
-
isSecondaryButtonDisabled: y,
|
|
387
|
-
// Refs
|
|
388
|
-
inputTextRef: t,
|
|
389
|
-
// Events
|
|
390
|
-
updateFilter: E,
|
|
391
|
-
clearFilter: g,
|
|
392
|
-
openFilter: A,
|
|
393
|
-
resetFilter: T,
|
|
394
|
-
onDropdownInput: m,
|
|
395
|
-
onInput: R,
|
|
396
|
-
setInternalFilterValue: u
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
var Ut = function() {
|
|
401
|
-
var a;
|
|
402
|
-
var e = this, t = e._self._c;
|
|
403
|
-
return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot, "popover-overflow-visible": e.isDropdownVariant }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-input-filter", class: e.conditionalClasses, on: { keydown: function(n) {
|
|
404
|
-
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
|
|
405
|
-
}, input: e.onInput } }, [t("bento-input-field", { ref: "inputTextRef", attrs: { dropdown: e.dropdownProp, "dropdown-position": (a = e.options) == null ? void 0 : a.dropdownPosition, variant: e.inputVariant, value: e.internalFilterValue }, on: { input: e.setInternalFilterValue, "dropdown-input": e.onDropdownInput } })], 1)]);
|
|
406
|
-
}, Rt = [], Vt = /* @__PURE__ */ I(
|
|
407
|
-
$t,
|
|
408
|
-
Ut,
|
|
409
|
-
Rt,
|
|
410
|
-
!1,
|
|
411
|
-
null,
|
|
412
|
-
"9845c982",
|
|
413
|
-
null,
|
|
414
|
-
null
|
|
415
|
-
);
|
|
416
|
-
const ke = Vt.exports, kt = U({
|
|
417
|
-
name: "bento-date-filter",
|
|
418
|
-
components: {
|
|
419
|
-
BentoBaseFilter: ae,
|
|
420
|
-
BentoDatePicker: it,
|
|
421
|
-
BentoDivider: ve,
|
|
422
|
-
Calendar: ut
|
|
423
|
-
},
|
|
424
|
-
props: {
|
|
425
|
-
isDateInput: { type: Boolean, default: !0 },
|
|
426
|
-
/**
|
|
427
|
-
* Default value of the filter to reset to.
|
|
428
|
-
*/
|
|
429
|
-
defaultValue: { type: Date, default: null },
|
|
430
|
-
/**
|
|
431
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
432
|
-
* Should be unique per filter bar.
|
|
433
|
-
*/
|
|
434
|
-
field: { type: String, required: !0 },
|
|
435
|
-
/**
|
|
436
|
-
* Label text to be displayed
|
|
437
|
-
*/
|
|
438
|
-
label: { type: String, required: !0 },
|
|
439
|
-
/**
|
|
440
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
441
|
-
* Used for the allFiltersModal component.
|
|
442
|
-
*/
|
|
443
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
444
|
-
/**
|
|
445
|
-
* List of options that are needed to setup the filter
|
|
446
|
-
* Available options:
|
|
447
|
-
* - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
448
|
-
* - isDateDisabled: Indicate if a date should be disabled or not
|
|
449
|
-
*/
|
|
450
|
-
options: {
|
|
451
|
-
type: Object,
|
|
452
|
-
default: void 0
|
|
453
|
-
},
|
|
454
|
-
/**
|
|
455
|
-
* Current value of the filter
|
|
456
|
-
*/
|
|
457
|
-
value: { type: Date, default: void 0 }
|
|
458
|
-
},
|
|
459
|
-
emits: [_.INPUT, _.UPDATE],
|
|
460
|
-
setup(l, { emit: e }) {
|
|
461
|
-
const { locale: t } = Z(void 0, !0), a = { de: Ue, enUS: J, fr: Re }, { internalFilterValue: n, isSecondaryButtonDisabled: s, isApplyButtonDisabled: i } = te(
|
|
462
|
-
w(l, "value"),
|
|
463
|
-
w(l, "defaultValue")
|
|
464
|
-
), c = r(
|
|
465
|
-
() => l.value ? X(l.value, "dd MMM, yyyy", {
|
|
466
|
-
locale: a[t.value.substring(0, 2)] || J
|
|
467
|
-
}) : null
|
|
468
|
-
), o = r(
|
|
469
|
-
() => l.defaultValue === null ? l.label : c.value
|
|
470
|
-
), y = r(
|
|
471
|
-
() => l.defaultValue === null ? c.value : null
|
|
472
|
-
), F = () => {
|
|
473
|
-
e(_.UPDATE, { ...l, value: n.value });
|
|
474
|
-
}, C = () => {
|
|
475
|
-
n.value = null, F();
|
|
476
|
-
}, h = () => {
|
|
477
|
-
n.value = l.defaultValue, F();
|
|
478
|
-
}, v = () => {
|
|
479
|
-
n.value = l.value;
|
|
480
|
-
}, A = (T) => {
|
|
481
|
-
n.value = T, e(_.INPUT, { ...l, value: n.value });
|
|
482
|
-
};
|
|
483
|
-
return {
|
|
484
|
-
// Values
|
|
485
|
-
internalFilterValue: n,
|
|
486
|
-
isApplyButtonDisabled: i,
|
|
487
|
-
isSecondaryButtonDisabled: s,
|
|
488
|
-
buttonLabel: o,
|
|
489
|
-
buttonSecondaryLabel: y,
|
|
490
|
-
// Events
|
|
491
|
-
clearFilter: C,
|
|
492
|
-
onDateSelected: A,
|
|
493
|
-
openFilter: v,
|
|
494
|
-
updateFilter: F,
|
|
495
|
-
resetFilter: h,
|
|
496
|
-
onDateInputSelected: (T) => {
|
|
497
|
-
n.value = T, A(T), F();
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
var Lt = function() {
|
|
503
|
-
var a, n, s, i;
|
|
504
|
-
var e = this, t = e._self._c;
|
|
505
|
-
return e._self._setupProxy, t("bento-base-filter", { attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "default-value": e.defaultValue, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, field: e.field, label: e.label, "only-slot": e.onlySlot, "fit-content": "" }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, [e.onlySlot ? t("bento-date-picker", { attrs: { value: e.internalFilterValue, "first-day-of-week": (a = e.options) == null ? void 0 : a.firstDayOfWeek, "is-date-disabled": (n = e.options) == null ? void 0 : n.isDateDisabled }, on: { input: e.onDateInputSelected } }) : [t("bento-divider", { staticClass: "b-date-filter__divider" }), t("div", { staticClass: "b-date-filter" }, [t("calendar", { attrs: { "first-day-of-week": (s = e.options) == null ? void 0 : s.firstDayOfWeek, "is-date-disabled": (i = e.options) == null ? void 0 : i.isDateDisabled, "number-of-months": 1, value: e.internalFilterValue }, on: { input: e.onDateSelected } })], 1)]], 2);
|
|
506
|
-
}, Ot = [], wt = /* @__PURE__ */ I(
|
|
507
|
-
kt,
|
|
508
|
-
Lt,
|
|
509
|
-
Ot,
|
|
510
|
-
!1,
|
|
511
|
-
null,
|
|
512
|
-
"3a27d7af",
|
|
513
|
-
null,
|
|
514
|
-
null
|
|
515
|
-
);
|
|
516
|
-
const Le = wt.exports, Nt = {
|
|
517
|
-
"en-US": {
|
|
518
|
-
clear: "Clear",
|
|
519
|
-
reset: "Reset",
|
|
520
|
-
apply: "Apply"
|
|
521
|
-
},
|
|
522
|
-
"de-DE": {
|
|
523
|
-
clear: "Alle löschen",
|
|
524
|
-
apply: "Bewerben"
|
|
525
|
-
},
|
|
526
|
-
"fr-FR": {
|
|
527
|
-
clear: "Effacer",
|
|
528
|
-
apply: "Postuler"
|
|
529
|
-
},
|
|
530
|
-
"ja-JP": {
|
|
531
|
-
clear: "クリア",
|
|
532
|
-
apply: "適用"
|
|
533
|
-
},
|
|
534
|
-
"pt-BR": {
|
|
535
|
-
clear: "Limpar",
|
|
536
|
-
apply: "Candidatar-se"
|
|
537
|
-
},
|
|
538
|
-
"es-ES": {
|
|
539
|
-
clear: "Borrar",
|
|
540
|
-
apply: "Aplicar"
|
|
541
|
-
}
|
|
542
|
-
}, Mt = U({
|
|
543
|
-
i18n: { messages: Nt },
|
|
544
|
-
name: "bento-date-range-filter",
|
|
545
|
-
components: {
|
|
546
|
-
BentoBaseFilter: ae,
|
|
547
|
-
BentoButtonActions: _t,
|
|
548
|
-
BentoDateRangePicker: dt,
|
|
549
|
-
BentoTypography: oe,
|
|
550
|
-
BentoDivider: ve,
|
|
551
|
-
DateRangePickerCalendar: ft
|
|
552
|
-
},
|
|
553
|
-
props: {
|
|
554
|
-
/**
|
|
555
|
-
* Default value of the filter to reset to.
|
|
556
|
-
*/
|
|
557
|
-
defaultValue: { type: Object, default: null },
|
|
558
|
-
/**
|
|
559
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
560
|
-
* Should be unique per filter bar.
|
|
561
|
-
*/
|
|
562
|
-
field: { type: String, required: !0 },
|
|
563
|
-
/**
|
|
564
|
-
* Label text to be displayed
|
|
565
|
-
*/
|
|
566
|
-
label: { type: String, required: !0 },
|
|
567
|
-
/**
|
|
568
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
569
|
-
* Used for the allFiltersModal component.
|
|
570
|
-
*/
|
|
571
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
572
|
-
/**
|
|
573
|
-
* List of options that are needed to setup the filter
|
|
574
|
-
* Available options:
|
|
575
|
-
* - allowTimeInput: Allows user to enter time values in the form
|
|
576
|
-
* - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
577
|
-
* - isDateDisabled: Indicate if a date should be disabled or not
|
|
578
|
-
* - maxRange: Set a maximum number of dates to be selectable by the range
|
|
579
|
-
* - numberOfMonths: Number of months rendered on pane
|
|
580
|
-
* - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker
|
|
581
|
-
*/
|
|
582
|
-
options: {
|
|
583
|
-
type: Object,
|
|
584
|
-
default: void 0
|
|
585
|
-
},
|
|
586
|
-
/**
|
|
587
|
-
* Current value of the filter
|
|
588
|
-
*/
|
|
589
|
-
value: {
|
|
590
|
-
type: Object,
|
|
591
|
-
default: () => ({ startDate: void 0, endDate: void 0 })
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
emits: [_.INPUT, _.UPDATE],
|
|
595
|
-
setup(l, { emit: e }) {
|
|
596
|
-
var K, Y, Q, V;
|
|
597
|
-
const { locale: t, t: a } = Z(), n = { de: Ue, enUS: J, fr: Re }, { internalFilterValue: s, isSecondaryButtonDisabled: i, isApplyButtonDisabled: c } = te(
|
|
598
|
-
w(l, "value"),
|
|
599
|
-
w(l, "defaultValue")
|
|
600
|
-
), o = P(!1), y = (p) => p ? X(p, Fe.NUMERIC_DATE_YEAR_FIRST, {
|
|
601
|
-
locale: n[t.value.substring(0, 2)] || J
|
|
602
|
-
}) : void 0, F = (p) => p ? X(p, Fe.HOUR_MINUTE_SECONDS, {
|
|
603
|
-
locale: n[t.value.substring(0, 2)] || J
|
|
604
|
-
}) : "", C = P(null), h = P(!1), v = Be({
|
|
605
|
-
startDate: y((K = l.value) == null ? void 0 : K.startDate),
|
|
606
|
-
endDate: y((Y = l.value) == null ? void 0 : Y.endDate),
|
|
607
|
-
startTime: F((Q = l.value) == null ? void 0 : Q.startDate),
|
|
608
|
-
endTime: F((V = l.value) == null ? void 0 : V.endDate)
|
|
609
|
-
}), A = r(() => {
|
|
610
|
-
var p, $, x, L, f, d, B, k;
|
|
611
|
-
if (!((p = l.value) != null && p.startDate) && !l.value.endDate)
|
|
612
|
-
return null;
|
|
613
|
-
if (((x = ($ = l.options) == null ? void 0 : $.quickSelectRanges) == null ? void 0 : x.length) > 0) {
|
|
614
|
-
const M = (f = (L = l.options) == null ? void 0 : L.quickSelectRanges) == null ? void 0 : f.find(
|
|
615
|
-
({ data: O }) => me(O == null ? void 0 : O.startDate, l.value.startDate) && me(O == null ? void 0 : O.endDate, l.value.endDate)
|
|
616
|
-
);
|
|
617
|
-
if (M)
|
|
618
|
-
return M.label;
|
|
619
|
-
}
|
|
620
|
-
return ct((d = l.value) == null ? void 0 : d.startDate, (B = l.value) == null ? void 0 : B.endDate) && ((k = l == null ? void 0 : l.options) != null && k.allowTimeInput) ? `${X(l.value.startDate, "dd MMM, yyyy HH:mm:ss", {
|
|
621
|
-
locale: n[t.value.substring(0, 2)] || J
|
|
622
|
-
})} - ${X(l.value.endDate, "HH:mm:ss", {
|
|
623
|
-
locale: n[t.value.substring(0, 2)] || J
|
|
624
|
-
})}` : `${X(l.value.startDate, "dd MMM, yyyy", {
|
|
625
|
-
locale: n[t.value.substring(0, 2)] || J
|
|
626
|
-
})} - ${X(l.value.endDate, "dd MMM, yyyy", {
|
|
627
|
-
locale: n[t.value.substring(0, 2)] || J
|
|
628
|
-
})}`;
|
|
629
|
-
}), E = r(
|
|
630
|
-
() => l.defaultValue === null ? l.label : A.value
|
|
631
|
-
), T = r(
|
|
632
|
-
() => l.defaultValue === null ? A.value : null
|
|
633
|
-
), g = () => {
|
|
634
|
-
C.value.closePopover();
|
|
635
|
-
const { onlySlot: p, ...$ } = l;
|
|
636
|
-
e(_.UPDATE, { ...$, value: s.value });
|
|
637
|
-
}, R = () => {
|
|
638
|
-
s.value = void 0, g();
|
|
639
|
-
}, u = () => {
|
|
640
|
-
s.value = l.defaultValue, g();
|
|
641
|
-
}, m = () => {
|
|
642
|
-
s.value = l.value;
|
|
643
|
-
}, b = (p) => {
|
|
644
|
-
o.value = !1, s.value = p, v.startDate = y(p.startDate), v.endDate = y(p.endDate), e(_.INPUT, { ...l, value: s.value });
|
|
645
|
-
}, D = (p) => {
|
|
646
|
-
p != null && p.startDate && (p != null && p.endDate) && (s.value = p, v.startDate = y(p.startDate), v.endDate = y(p.endDate), e(_.INPUT, { ...l, value: s.value }));
|
|
647
|
-
}, S = (p) => {
|
|
648
|
-
b(p), e(_.INPUT, { ...l, value: s.value });
|
|
649
|
-
}, N = r(
|
|
650
|
-
() => [
|
|
651
|
-
{
|
|
652
|
-
title: a("apply"),
|
|
653
|
-
event: g,
|
|
654
|
-
disabled: o.value || h.value || c.value
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
title: l.defaultValue ? a("reset") : a("clear"),
|
|
658
|
-
event: l.defaultValue ? u : R,
|
|
659
|
-
disabled: h.value && i.value
|
|
660
|
-
}
|
|
661
|
-
]
|
|
662
|
-
);
|
|
663
|
-
return {
|
|
664
|
-
// Refs
|
|
665
|
-
baseFilter: C,
|
|
666
|
-
// Values
|
|
667
|
-
actions: N,
|
|
668
|
-
formData: v,
|
|
669
|
-
internalFilterValue: s,
|
|
670
|
-
isApplyButtonDisabled: c,
|
|
671
|
-
isSecondaryButtonDisabled: i,
|
|
672
|
-
isSelectingDate: o,
|
|
673
|
-
buttonLabel: E,
|
|
674
|
-
buttonSecondaryLabel: T,
|
|
675
|
-
// Events
|
|
676
|
-
onDateSelected: b,
|
|
677
|
-
openFilter: m,
|
|
678
|
-
updateFilter: g,
|
|
679
|
-
onDatePickerRangeError: () => {
|
|
680
|
-
h.value = !0, s.value = { startDate: void 0, endDate: void 0 }, e(_.INPUT, { ...l, value: s.value });
|
|
681
|
-
},
|
|
682
|
-
onDatePickerRangeFormDateInputUpdate: (p) => {
|
|
683
|
-
h.value = !1, p.startTime && (v.startTime = p.startTime), p.endTime && (v.endTime = p.endTime);
|
|
684
|
-
},
|
|
685
|
-
onDateInputSelected: S,
|
|
686
|
-
onRangeSelectorInput: D
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
|
-
});
|
|
690
|
-
var Ht = function() {
|
|
691
|
-
var a, n, s, i, c, o, y, F, C, h, v, A, E, T;
|
|
692
|
-
var e = this, t = e._self._c;
|
|
693
|
-
return e._self._setupProxy, t("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "fit-content": "" }, on: { open: e.openFilter } }, [e.onlySlot ? t("bento-date-range-picker", { attrs: { "allow-time-input": (a = e.options) == null ? void 0 : a.allowTimeInput, value: e.internalFilterValue, "first-day-of-week": (n = e.options) == null ? void 0 : n.firstDayOfWeek, "is-date-disabled": (s = e.options) == null ? void 0 : s.isDateDisabled, "number-of-months": (i = e.options) == null ? void 0 : i.numberOfMonths, "quick-select-ranges": (c = e.options) == null ? void 0 : c.quickSelectRanges }, on: { input: e.onDateInputSelected } }) : [t("div", { staticClass: "b-date-range-filter" }, [t("date-range-picker-calendar", { attrs: { "allow-time-input": (o = e.options) == null ? void 0 : o.allowTimeInput, "first-day-of-week": (y = e.options) == null ? void 0 : y.firstDayOfWeek, "is-date-disabled": (F = e.options) == null ? void 0 : F.isDateDisabled, granularities: (C = e.options) == null ? void 0 : C.granularities, "max-range": (h = e.options) == null ? void 0 : h.maxRange, min: (v = e.options) == null ? void 0 : v.min, max: (A = e.options) == null ? void 0 : A.max, "number-of-months": (E = e.options) == null ? void 0 : E.numberOfMonths, "quick-select-ranges": (T = e.options) == null ? void 0 : T.quickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(g) {
|
|
694
|
-
e.isSelectingDate = !0;
|
|
695
|
-
} }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
696
|
-
return [t("bento-typography", { attrs: { strongest: "", variant: "body", el: "span" } }, [e._v(" " + e._s(e.label) + " ")])];
|
|
697
|
-
}, proxy: !0 }, { key: "actions", fn: function() {
|
|
698
|
-
return [t("bento-divider", { staticClass: "b-date-range-filter__divider" }), t("bento-button-actions", { staticClass: "b-date-range-filter__actions", attrs: { actions: e.actions, layout: "space-between" } })];
|
|
699
|
-
}, proxy: !0 }]) })], 1)]], 2);
|
|
700
|
-
}, jt = [], qt = /* @__PURE__ */ I(
|
|
701
|
-
Mt,
|
|
702
|
-
Ht,
|
|
703
|
-
jt,
|
|
704
|
-
!1,
|
|
705
|
-
null,
|
|
706
|
-
"ac4735f4",
|
|
707
|
-
null,
|
|
708
|
-
null
|
|
709
|
-
);
|
|
710
|
-
const Oe = qt.exports, Kt = {
|
|
711
|
-
"en-US": {
|
|
712
|
-
all: "All",
|
|
713
|
-
noFiltersMatchThisSearch: "No filters match this search",
|
|
714
|
-
searchFilter: "Search {filter}"
|
|
715
|
-
}
|
|
716
|
-
}, Yt = {
|
|
717
|
-
i18n: { messages: Kt }
|
|
718
|
-
}, Jt = /* @__PURE__ */ U({
|
|
719
|
-
...Yt,
|
|
720
|
-
__name: "select-filter-button",
|
|
721
|
-
props: {
|
|
722
|
-
/**
|
|
723
|
-
* Default value of the filter to reset to.
|
|
724
|
-
*
|
|
725
|
-
*/
|
|
726
|
-
defaultValue: {
|
|
727
|
-
type: [String, Number, Array],
|
|
728
|
-
default: null
|
|
729
|
-
},
|
|
730
|
-
/**
|
|
731
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
732
|
-
* Should be unique per filter bar.
|
|
733
|
-
*/
|
|
734
|
-
field: { type: String, required: !0 },
|
|
735
|
-
/**
|
|
736
|
-
* Label text to be displayed
|
|
737
|
-
*/
|
|
738
|
-
label: { type: String, required: !0 },
|
|
739
|
-
/**
|
|
740
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
741
|
-
* Used for the allFiltersModal component.
|
|
742
|
-
*/
|
|
743
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
744
|
-
/**
|
|
745
|
-
* List of options that are needed to setup the filter
|
|
746
|
-
* Available options:
|
|
747
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
748
|
-
* - listboxItems: The option elements to populate the filter with.
|
|
749
|
-
*
|
|
750
|
-
* @default undefined
|
|
751
|
-
*/
|
|
752
|
-
options: {
|
|
753
|
-
type: Object,
|
|
754
|
-
default: void 0
|
|
755
|
-
},
|
|
756
|
-
/**
|
|
757
|
-
* Current value of the filter
|
|
758
|
-
*
|
|
759
|
-
* @default undefined
|
|
760
|
-
*/
|
|
761
|
-
value: {
|
|
762
|
-
type: [String, Number, Array],
|
|
763
|
-
default: void 0
|
|
764
|
-
}
|
|
765
|
-
},
|
|
766
|
-
emits: ["input", "update"],
|
|
767
|
-
setup(l, { emit: e }) {
|
|
768
|
-
var Y, Q;
|
|
769
|
-
const t = l, a = ie(), { t: n, locale: s } = Z(), i = P(""), c = w(t, "options"), o = P(t.options.listboxItems), { cachedSelectedListboxOptions: y, setCachedValues: F, resetCache: C } = he(
|
|
770
|
-
o,
|
|
771
|
-
w(t, "value"),
|
|
772
|
-
w(c.value, "multiple")
|
|
773
|
-
), { cachedSelectedListboxOptions: h } = he(
|
|
774
|
-
o,
|
|
775
|
-
w(t, "defaultValue"),
|
|
776
|
-
w(c.value, "multiple")
|
|
777
|
-
), { internalFilterValue: v, isSecondaryButtonDisabled: A, isApplyButtonDisabled: E } = te(y, h);
|
|
778
|
-
ee(c, () => {
|
|
779
|
-
o.value = c.value.listboxItems;
|
|
780
|
-
});
|
|
781
|
-
const T = $e(
|
|
782
|
-
i,
|
|
783
|
-
o,
|
|
784
|
-
(Q = (Y = t.options) == null ? void 0 : Y.search) == null ? void 0 : Q.searchEvent
|
|
785
|
-
), g = r(() => n("noFiltersMatchThisSearch")), R = r(() => {
|
|
786
|
-
var V, p, $, x, L, f, d, B, k, M;
|
|
787
|
-
if (t.defaultValue === null)
|
|
788
|
-
return t.label;
|
|
789
|
-
if (t.options.multiple) {
|
|
790
|
-
const O = (V = t.value) == null ? void 0 : V.length;
|
|
791
|
-
if (O === t.options.listboxItems.length)
|
|
792
|
-
return (p = t == null ? void 0 : t.options) != null && p.messagesPersistentButtonLabelAllSelectedKey ? (x = t == null ? void 0 : t.options) == null ? void 0 : x.messages[s.value][($ = t == null ? void 0 : t.options) == null ? void 0 : $.messagesPersistentButtonLabelAllSelectedKey] : (L = t == null ? void 0 : t.options) == null ? void 0 : L.messages[s.value].persistentButtonLabelAllSelected;
|
|
793
|
-
const ne = ((f = t == null ? void 0 : t.options) != null && f.messagesPersistentButtonLabelPartiallySelectedKey ? (B = t == null ? void 0 : t.options) == null ? void 0 : B.messages[s.value][(d = t == null ? void 0 : t.options) == null ? void 0 : d.messagesPersistentButtonLabelPartiallySelectedKey] : (k = t == null ? void 0 : t.options) == null ? void 0 : k.messages[s.value].persistentButtonLabelPartiallySelected).split("|").map((ce) => ce.trim());
|
|
794
|
-
return O === 1 ? ne[0].replace("{count}", O) : ne[1].replace("{count}", O);
|
|
795
|
-
}
|
|
796
|
-
return (M = y.value) != null && M.length ? W(y.value[0].label, 18) : "";
|
|
797
|
-
}), u = r(() => {
|
|
798
|
-
var V, p;
|
|
799
|
-
if (t.defaultValue === null && (!t.options.multiple || ((V = t.value) == null ? void 0 : V.length) === 1)) {
|
|
800
|
-
const $ = t.options.listboxItems.flatMap((x) => x.items ? x.items : x);
|
|
801
|
-
return W(
|
|
802
|
-
(p = $.find(
|
|
803
|
-
({ value: x }) => {
|
|
804
|
-
var L;
|
|
805
|
-
return Array.isArray(t.value) ? (L = t == null ? void 0 : t.value) == null ? void 0 : L.includes(x) : x === t.value;
|
|
806
|
-
}
|
|
807
|
-
)) == null ? void 0 : p.label,
|
|
808
|
-
12
|
|
809
|
-
);
|
|
810
|
-
}
|
|
811
|
-
return null;
|
|
812
|
-
}), m = r(() => _e(`filter-listbox-${t.field}`)), b = (V) => {
|
|
813
|
-
v.value = V;
|
|
814
|
-
const { onlySlot: p, ...$ } = t;
|
|
815
|
-
if (t.options.multiple) {
|
|
816
|
-
const L = V.length ? v.value.map(({ value: f }) => f) : null;
|
|
817
|
-
e(_.INPUT, { ...$, value: L });
|
|
818
|
-
return;
|
|
819
|
-
}
|
|
820
|
-
const x = V.length ? V[0].value : null;
|
|
821
|
-
e(_.INPUT, { ...$, value: x });
|
|
822
|
-
}, D = () => {
|
|
823
|
-
var x, L, f;
|
|
824
|
-
const { onlySlot: V, ...p } = t;
|
|
825
|
-
if (t.options.multiple) {
|
|
826
|
-
v.value && ((x = v.value) == null ? void 0 : x.length) === 0 && (v.value = t.defaultValue !== null ? h.value : void 0);
|
|
827
|
-
const d = (L = v.value) != null && L.length ? (f = v.value) == null ? void 0 : f.map(({ value: B }) => B) : null;
|
|
828
|
-
e(_.UPDATE, {
|
|
829
|
-
...p,
|
|
830
|
-
value: d
|
|
831
|
-
});
|
|
832
|
-
return;
|
|
833
|
-
}
|
|
834
|
-
const $ = v.value.length ? v.value[0].value : void 0;
|
|
835
|
-
e(_.UPDATE, { ...p, value: $ });
|
|
836
|
-
}, S = () => {
|
|
837
|
-
v.value = y.value;
|
|
838
|
-
}, N = () => {
|
|
839
|
-
i.value && (i.value = "");
|
|
840
|
-
}, z = () => {
|
|
841
|
-
F(h.value), v.value = h.value, D();
|
|
842
|
-
}, G = () => {
|
|
843
|
-
C(), v.value = [], D();
|
|
844
|
-
}, K = r(() => {
|
|
845
|
-
var $, x;
|
|
846
|
-
if (t.value == null || t.defaultValue !== null || !t.options.multiple)
|
|
847
|
-
return null;
|
|
848
|
-
const V = ($ = t.options.listboxItems) == null ? void 0 : $.reduce((L, f) => {
|
|
849
|
-
var d;
|
|
850
|
-
return L += (d = f == null ? void 0 : f.items) != null && d.length ? f.items.length : 1, L;
|
|
851
|
-
}, 0), p = (x = t.value) == null ? void 0 : x.length;
|
|
852
|
-
return p === 1 ? null : p === V ? n("all") : p;
|
|
853
|
-
});
|
|
854
|
-
return { __sfc: !0, slots: a, emit: e, props: t, t: n, locale: s, searchTerm: i, optionsRef: c, itemsRef: o, cachedSelectedListboxOptions: y, setCachedValues: F, resetCache: C, cachedDefaultSelectedListboxOptions: h, internalFilterValue: v, isSecondaryButtonDisabled: A, isApplyButtonDisabled: E, filteredItems: T, noResultsMessage: g, buttonLabel: R, buttonSecondaryLabel: u, listboxFilterId: m, onOptionSelected: b, updateFilter: D, openFilter: S, closeFilter: N, resetFilter: z, clearFilter: G, appliedFiltersCount: K, BentoSearchBar: re, BentoDivider: ve, BentoListbox: vt, BentoBaseFilter: ae };
|
|
855
|
-
}
|
|
856
|
-
});
|
|
857
|
-
var zt = function() {
|
|
858
|
-
var n, s, i, c, o, y, F, C, h, v, A, E, T;
|
|
859
|
-
var e = this, t = e._self._c, a = e._self._setupProxy;
|
|
860
|
-
return t(a.BentoBaseFilter, { attrs: { "applied-filters-count": a.appliedFiltersCount, "button-label": a.buttonLabel, "button-secondary-label": a.buttonSecondaryLabel, "disable-apply-button": a.isApplyButtonDisabled, "disable-secondary-button": a.isSecondaryButtonDisabled, "default-value": e.defaultValue, label: e.label, field: e.field, "only-slot": !1 }, on: { apply: a.updateFilter, clear: a.clearFilter, reset: a.resetFilter, open: a.openFilter, close: a.closeFilter } }, [t("div", { staticClass: "b-select-filter-button__search-bar" }, [t(a.BentoSearchBar, { attrs: { "debounce-time": (s = (n = e.options) == null ? void 0 : n.search) == null ? void 0 : s.debounceTime, value: a.searchTerm, "input-field-aria-label": e.$t("searchFilter", { filter: e.label.toLocaleLowerCase() }).toString() }, on: { input: function(g) {
|
|
861
|
-
a.searchTerm = g;
|
|
862
|
-
} } })], 1), t("div", { staticClass: "b-select-filter-button__divider" }, [t(a.BentoDivider)], 1), t(a.BentoListbox, { staticClass: "b-select-filter-button__wrapper", attrs: { id: a.listboxFilterId, "aria-label": e.label, "empty-state": (i = e.options) == null ? void 0 : i.emptyState, "has-more-items": (o = (c = e.options) == null ? void 0 : c.lazy) == null ? void 0 : o.hasMoreItems, items: a.filteredItems, "is-option-disabled": (y = e.options) == null ? void 0 : y.isOptionDisabled, "lazy-load-type": (C = (F = e.options) == null ? void 0 : F.lazy) == null ? void 0 : C.lazyLoadType, loading: (v = (h = e.options) == null ? void 0 : h.lazy) == null ? void 0 : v.loading, multiple: (A = e.options) == null ? void 0 : A.multiple, "static-categories": (E = e.options) == null ? void 0 : E.staticCategories, "no-results-message": a.noResultsMessage, searching: !!a.searchTerm, "selected-value": a.internalFilterValue, "virtual-scroll": (T = e.options) == null ? void 0 : T.virtualScroll }, on: { select: a.onOptionSelected, "show-more": function(g) {
|
|
863
|
-
var R, u;
|
|
864
|
-
(u = (R = e.options) == null ? void 0 : R.lazy) == null || u.showMoreEvent();
|
|
865
|
-
} }, scopedSlots: e._u([e._l(a.slots, function(g, R) {
|
|
866
|
-
return { key: R, fn: function(u) {
|
|
867
|
-
return [e._t(R, null, null, u)];
|
|
868
|
-
} };
|
|
869
|
-
})], null, !0) })], 1);
|
|
870
|
-
}, Gt = [], Wt = /* @__PURE__ */ I(
|
|
871
|
-
Jt,
|
|
872
|
-
zt,
|
|
873
|
-
Gt,
|
|
874
|
-
!1,
|
|
875
|
-
null,
|
|
876
|
-
"6c03a9a8",
|
|
877
|
-
null,
|
|
878
|
-
null
|
|
879
|
-
);
|
|
880
|
-
const Zt = Wt.exports, Qt = {
|
|
881
|
-
"en-US": {
|
|
882
|
-
noFiltersMatchThisSearch: "No filters match this search"
|
|
883
|
-
}
|
|
884
|
-
}, Xt = {
|
|
885
|
-
i18n: { messages: Qt },
|
|
886
|
-
name: "select-filter-dropdown"
|
|
887
|
-
}, el = /* @__PURE__ */ U({
|
|
888
|
-
...Xt,
|
|
889
|
-
props: {
|
|
890
|
-
/**
|
|
891
|
-
* Default value of the filter to reset to.
|
|
892
|
-
*
|
|
893
|
-
*/
|
|
894
|
-
defaultValue: {
|
|
895
|
-
type: [String, Number, Array],
|
|
896
|
-
default: null
|
|
897
|
-
},
|
|
898
|
-
/**
|
|
899
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
900
|
-
* Should be unique per filter bar.
|
|
901
|
-
*/
|
|
902
|
-
field: { type: String, required: !0 },
|
|
903
|
-
/**
|
|
904
|
-
* Label text to be displayed
|
|
905
|
-
*/
|
|
906
|
-
label: { type: String, required: !0 },
|
|
907
|
-
/**
|
|
908
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
909
|
-
* Used for the allFiltersModal component.
|
|
910
|
-
*
|
|
911
|
-
*/
|
|
912
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
913
|
-
/**
|
|
914
|
-
* List of options that are needed to setup the filter
|
|
915
|
-
* Available options:
|
|
916
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
917
|
-
* - listboxItems: The option elements to populate the filter with.
|
|
918
|
-
*
|
|
919
|
-
* @default undefined
|
|
920
|
-
*/
|
|
921
|
-
options: {
|
|
922
|
-
type: Object,
|
|
923
|
-
default: void 0
|
|
924
|
-
},
|
|
925
|
-
/**
|
|
926
|
-
* Current value of the filter
|
|
927
|
-
*
|
|
928
|
-
* @default undefined
|
|
929
|
-
*/
|
|
930
|
-
value: {
|
|
931
|
-
type: [String, Number, Array],
|
|
932
|
-
default: void 0
|
|
933
|
-
}
|
|
934
|
-
},
|
|
935
|
-
emits: ["input", "update"],
|
|
936
|
-
setup(l, { emit: e }) {
|
|
937
|
-
const t = l, { t: a } = Z(), n = ie(), { internalFilterValue: s } = te(w(t, "value"), w(t, "defaultValue")), i = P(""), c = w(t, "options"), o = P(t.options.listboxItems);
|
|
938
|
-
ee(c, () => {
|
|
939
|
-
o.value = c.value.listboxItems;
|
|
940
|
-
});
|
|
941
|
-
const y = r(() => a("noFiltersMatchThisSearch"));
|
|
942
|
-
return { __sfc: !0, t: a, slots: n, emit: e, props: t, internalFilterValue: s, searchTerm: i, optionsRef: c, itemsRef: o, noResultsMessage: y, onOptionSelected: (C) => {
|
|
943
|
-
s.value = C;
|
|
944
|
-
const { onlySlot: h, ...v } = t;
|
|
945
|
-
e(_.INPUT, { ...v, value: s.value });
|
|
946
|
-
}, BentoDropdown: ot };
|
|
947
|
-
}
|
|
948
|
-
});
|
|
949
|
-
var tl = function() {
|
|
950
|
-
var n, s, i;
|
|
951
|
-
var e = this, t = e._self._c, a = e._self._setupProxy;
|
|
952
|
-
return t(a.BentoDropdown, { attrs: { value: a.internalFilterValue, items: e.options.listboxItems, multiple: (n = e.options) == null ? void 0 : n.multiple, "static-categories": (s = e.options) == null ? void 0 : s.staticCategories, "no-results-message": a.noResultsMessage, searching: !!a.searchTerm, "is-option-disabled": e.options.isOptionDisabled, "dynamic-filtering": !0, "empty-state": (i = e.options) == null ? void 0 : i.emptyState }, on: { input: a.onOptionSelected }, scopedSlots: e._u([e._l(a.slots, function(c, o) {
|
|
953
|
-
return { key: o, fn: function(y) {
|
|
954
|
-
return [e._t(o, null, null, y)];
|
|
955
|
-
} };
|
|
956
|
-
})], null, !0) });
|
|
957
|
-
}, ll = [], al = /* @__PURE__ */ I(
|
|
958
|
-
el,
|
|
959
|
-
tl,
|
|
960
|
-
ll,
|
|
961
|
-
!1,
|
|
962
|
-
null,
|
|
963
|
-
null,
|
|
964
|
-
null,
|
|
965
|
-
null
|
|
966
|
-
);
|
|
967
|
-
const nl = al.exports, sl = {}, ol = /* @__PURE__ */ U({
|
|
968
|
-
...sl,
|
|
969
|
-
__name: "select-filter",
|
|
970
|
-
props: {
|
|
971
|
-
/**
|
|
972
|
-
* Default value of the filter to reset to.
|
|
973
|
-
*
|
|
974
|
-
*/
|
|
975
|
-
defaultValue: {
|
|
976
|
-
type: [String, Number, Array],
|
|
977
|
-
default: null
|
|
978
|
-
},
|
|
979
|
-
/**
|
|
980
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
981
|
-
* Should be unique per filter bar.
|
|
982
|
-
*/
|
|
983
|
-
field: { type: String, required: !0 },
|
|
984
|
-
/**
|
|
985
|
-
* Label text to be displayed
|
|
986
|
-
*/
|
|
987
|
-
label: { type: String, required: !0 },
|
|
988
|
-
/**
|
|
989
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
990
|
-
* Used for the allFiltersModal component.
|
|
991
|
-
*
|
|
992
|
-
*/
|
|
993
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
994
|
-
/**
|
|
995
|
-
* List of options that are needed to setup the filter
|
|
996
|
-
* Available options:
|
|
997
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
998
|
-
* - listboxItems: The option elements to populate the filter with.
|
|
999
|
-
*
|
|
1000
|
-
* @default undefined
|
|
1001
|
-
*/
|
|
1002
|
-
options: {
|
|
1003
|
-
type: Object,
|
|
1004
|
-
default: void 0
|
|
1005
|
-
},
|
|
1006
|
-
/**
|
|
1007
|
-
* Current value of the filter
|
|
1008
|
-
*
|
|
1009
|
-
* @default undefined
|
|
1010
|
-
*/
|
|
1011
|
-
value: {
|
|
1012
|
-
type: [String, Number, Array],
|
|
1013
|
-
default: void 0
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
emits: ["input", "update"],
|
|
1017
|
-
setup(l, { emit: e }) {
|
|
1018
|
-
return { __sfc: !0, slots: ie(), emit: e, onInput: (s) => e("input", s), onUpdate: (s) => e("update", s), SelectFilterButton: Zt, SelectFilterDropdown: nl };
|
|
1019
|
-
}
|
|
1020
|
-
});
|
|
1021
|
-
var rl = function() {
|
|
1022
|
-
var e = this, t = e._self._c, a = e._self._setupProxy;
|
|
1023
|
-
return e.onlySlot ? t(a.SelectFilterDropdown, { attrs: { "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: a.onInput, update: a.onUpdate }, scopedSlots: e._u([e._l(a.slots, function(n, s) {
|
|
1024
|
-
return { key: s, fn: function(i) {
|
|
1025
|
-
return [e._t(s, null, null, i)];
|
|
1026
|
-
} };
|
|
1027
|
-
})], null, !0) }) : t(a.SelectFilterButton, { attrs: { "default-value": e.defaultValue, field: e.field, label: e.label, options: e.options, value: e.value }, on: { input: a.onInput, update: a.onUpdate }, scopedSlots: e._u([e._l(a.slots, function(n, s) {
|
|
1028
|
-
return { key: s, fn: function(i) {
|
|
1029
|
-
return [e._t(s, null, null, i)];
|
|
1030
|
-
} };
|
|
1031
|
-
})], null, !0) });
|
|
1032
|
-
}, il = [], ul = /* @__PURE__ */ I(
|
|
1033
|
-
ol,
|
|
1034
|
-
rl,
|
|
1035
|
-
il,
|
|
1036
|
-
!1,
|
|
1037
|
-
null,
|
|
1038
|
-
null,
|
|
1039
|
-
null,
|
|
1040
|
-
null
|
|
1041
|
-
);
|
|
1042
|
-
const j = ul.exports, cl = U({
|
|
1043
|
-
name: "bento-select-avatar-filter",
|
|
1044
|
-
components: {
|
|
1045
|
-
BentoSelectFilter: j,
|
|
1046
|
-
BentoAvatar: bt
|
|
1047
|
-
},
|
|
1048
|
-
props: {
|
|
1049
|
-
...j.props,
|
|
1050
|
-
/**
|
|
1051
|
-
* List of options that are needed to setup the country filter
|
|
1052
|
-
* Available options:
|
|
1053
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1054
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
|
|
1055
|
-
*/
|
|
1056
|
-
options: {
|
|
1057
|
-
type: Object,
|
|
1058
|
-
default: void 0
|
|
1059
|
-
}
|
|
1060
|
-
},
|
|
1061
|
-
emits: [_.INPUT, _.UPDATE],
|
|
1062
|
-
setup(l, { emit: e }) {
|
|
1063
|
-
return {
|
|
1064
|
-
// Enums
|
|
1065
|
-
BentoFilterEvent: _,
|
|
1066
|
-
// Methods
|
|
1067
|
-
onUpdate: (a) => e(_.UPDATE, a)
|
|
1068
|
-
};
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
var dl = function() {
|
|
1072
|
-
var e = this, t = e._self._c;
|
|
1073
|
-
return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ label: a, data: n }) {
|
|
1074
|
-
return [t("bento-avatar", { attrs: { username: a, src: n } })];
|
|
1075
|
-
} }]) }, "bento-select-filter", e.$props, !1));
|
|
1076
|
-
}, fl = [], _l = /* @__PURE__ */ I(
|
|
1077
|
-
cl,
|
|
1078
|
-
dl,
|
|
1079
|
-
fl,
|
|
1080
|
-
!1,
|
|
1081
|
-
null,
|
|
1082
|
-
null,
|
|
1083
|
-
null,
|
|
1084
|
-
null
|
|
1085
|
-
);
|
|
1086
|
-
const we = _l.exports, vl = U({
|
|
1087
|
-
name: "bento-select-country-filter",
|
|
1088
|
-
components: {
|
|
1089
|
-
BentoSelectFilter: j,
|
|
1090
|
-
ListboxOptionTag: Ve
|
|
1091
|
-
},
|
|
1092
|
-
props: {
|
|
1093
|
-
...j.props,
|
|
1094
|
-
/**
|
|
1095
|
-
* List of options that are needed to setup the country filter
|
|
1096
|
-
* Available options:
|
|
1097
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1098
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectCurrencyFilterOptions}
|
|
1099
|
-
*/
|
|
1100
|
-
options: {
|
|
1101
|
-
type: Object,
|
|
1102
|
-
default: void 0
|
|
1103
|
-
}
|
|
1104
|
-
},
|
|
1105
|
-
emits: [_.INPUT, _.UPDATE],
|
|
1106
|
-
setup(l, { emit: e }) {
|
|
1107
|
-
return {
|
|
1108
|
-
// Enums
|
|
1109
|
-
BentoFilterEvent: _,
|
|
1110
|
-
// Methods
|
|
1111
|
-
onUpdate: (a) => {
|
|
1112
|
-
e(_.UPDATE, a);
|
|
1113
|
-
}
|
|
1114
|
-
};
|
|
1115
|
-
}
|
|
1116
|
-
});
|
|
1117
|
-
var bl = function() {
|
|
1118
|
-
var e = this, t = e._self._c;
|
|
1119
|
-
return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function(a) {
|
|
1120
|
-
return [t("listbox-option-tag", { attrs: { option: a } })];
|
|
1121
|
-
} }]) }, "bento-select-filter", e.$props, !1));
|
|
1122
|
-
}, pl = [], yl = /* @__PURE__ */ I(
|
|
1123
|
-
vl,
|
|
1124
|
-
bl,
|
|
1125
|
-
pl,
|
|
1126
|
-
!1,
|
|
1127
|
-
null,
|
|
1128
|
-
null,
|
|
1129
|
-
null,
|
|
1130
|
-
null
|
|
1131
|
-
);
|
|
1132
|
-
const Ne = yl.exports, ml = U({
|
|
1133
|
-
name: "bento-select-country-filter",
|
|
1134
|
-
components: {
|
|
1135
|
-
BentoSelectFilter: j,
|
|
1136
|
-
BentoTypography: oe
|
|
1137
|
-
},
|
|
1138
|
-
props: {
|
|
1139
|
-
...j.props,
|
|
1140
|
-
/**
|
|
1141
|
-
* List of options that are needed to setup the country filter
|
|
1142
|
-
* Available options:
|
|
1143
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1144
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
|
|
1145
|
-
* - variant: Which label variant to display for the option item.
|
|
1146
|
-
*/
|
|
1147
|
-
options: {
|
|
1148
|
-
type: Object,
|
|
1149
|
-
default: void 0
|
|
1150
|
-
}
|
|
1151
|
-
},
|
|
1152
|
-
emits: [_.INPUT, _.UPDATE],
|
|
1153
|
-
setup(l, { emit: e }) {
|
|
1154
|
-
const t = P(l.options.variant), a = P(l.options.listboxItems);
|
|
1155
|
-
ee([() => l.options.variant, () => l.options.listboxItems], () => {
|
|
1156
|
-
t.value = l.options.variant, a.value = l.options.listboxItems;
|
|
1157
|
-
});
|
|
1158
|
-
const n = (c) => e(_.UPDATE, c), s = pt(t, a), i = r(() => ({
|
|
1159
|
-
...l.options,
|
|
1160
|
-
listboxItems: s.value
|
|
1161
|
-
}));
|
|
1162
|
-
return (!t.value || t.value === "custom") && Qe(
|
|
1163
|
-
'BentoSelectCountryFilter type with `options.variant==="custom"`',
|
|
1164
|
-
"Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
|
|
1165
|
-
"2.0.0"
|
|
1166
|
-
), {
|
|
1167
|
-
// Values
|
|
1168
|
-
countryOptions: i,
|
|
1169
|
-
// Methods
|
|
1170
|
-
onUpdate: n,
|
|
1171
|
-
// Enums
|
|
1172
|
-
BentoFilterEvent: _
|
|
1173
|
-
};
|
|
1174
|
-
}
|
|
1175
|
-
});
|
|
1176
|
-
var Fl = function() {
|
|
1177
|
-
var e = this, t = e._self._c;
|
|
1178
|
-
return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label, options: e.countryOptions }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ label: a }) {
|
|
1179
|
-
return [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(a))])];
|
|
1180
|
-
} }]) }, "bento-select-filter", e.$props, !1));
|
|
1181
|
-
}, hl = [], gl = /* @__PURE__ */ I(
|
|
1182
|
-
ml,
|
|
1183
|
-
Fl,
|
|
1184
|
-
hl,
|
|
1185
|
-
!1,
|
|
1186
|
-
null,
|
|
1187
|
-
null,
|
|
1188
|
-
null,
|
|
1189
|
-
null
|
|
1190
|
-
);
|
|
1191
|
-
const Me = gl.exports, Sl = U({
|
|
1192
|
-
name: "bento-select-payment-method-filter",
|
|
1193
|
-
components: {
|
|
1194
|
-
BentoSelectFilter: j,
|
|
1195
|
-
BentoPaymentMethod: yt
|
|
1196
|
-
},
|
|
1197
|
-
props: {
|
|
1198
|
-
...j.props,
|
|
1199
|
-
/**
|
|
1200
|
-
* List of options that are needed to setup the payment method filter
|
|
1201
|
-
* Available options:
|
|
1202
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1203
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectPaymentMethodFilterOptions}
|
|
1204
|
-
*/
|
|
1205
|
-
options: {
|
|
1206
|
-
type: Object,
|
|
1207
|
-
default: void 0
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
emits: [_.INPUT, _.UPDATE],
|
|
1211
|
-
setup(l, { emit: e }) {
|
|
1212
|
-
return {
|
|
1213
|
-
// Enums
|
|
1214
|
-
BentoFilterEvent: _,
|
|
1215
|
-
// Methods
|
|
1216
|
-
onUpdate: (a) => e(_.UPDATE, a)
|
|
1217
|
-
};
|
|
1218
|
-
}
|
|
1219
|
-
});
|
|
1220
|
-
var Cl = function() {
|
|
1221
|
-
var e = this, t = e._self._c;
|
|
1222
|
-
return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ value: a, label: n }) {
|
|
1223
|
-
return [t("bento-payment-method", { attrs: { type: a, label: n } })];
|
|
1224
|
-
} }]) }, "bento-select-filter", e.$props, !1));
|
|
1225
|
-
}, Bl = [], Al = /* @__PURE__ */ I(
|
|
1226
|
-
Sl,
|
|
1227
|
-
Cl,
|
|
1228
|
-
Bl,
|
|
1229
|
-
!1,
|
|
1230
|
-
null,
|
|
1231
|
-
null,
|
|
1232
|
-
null,
|
|
1233
|
-
null
|
|
1234
|
-
);
|
|
1235
|
-
const He = Al.exports, Dl = U({
|
|
1236
|
-
name: "bento-select-country-filter",
|
|
1237
|
-
components: {
|
|
1238
|
-
BentoSelectFilter: j,
|
|
1239
|
-
ListboxOptionTag: Ve
|
|
1240
|
-
},
|
|
1241
|
-
props: {
|
|
1242
|
-
...j.props,
|
|
1243
|
-
/**
|
|
1244
|
-
* List of options that are needed to setup the tag filter
|
|
1245
|
-
* Available options:
|
|
1246
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1247
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectTagFilterOptions}
|
|
1248
|
-
*/
|
|
1249
|
-
options: {
|
|
1250
|
-
type: Object,
|
|
1251
|
-
default: void 0
|
|
1252
|
-
}
|
|
1253
|
-
},
|
|
1254
|
-
emits: [_.INPUT, _.UPDATE],
|
|
1255
|
-
setup(l, { emit: e }) {
|
|
1256
|
-
const t = (s) => e(_.UPDATE, s), a = r(
|
|
1257
|
-
() => {
|
|
1258
|
-
var s, i;
|
|
1259
|
-
return (i = (s = l == null ? void 0 : l.options) == null ? void 0 : s.listboxItems) == null ? void 0 : i.map(({ label: c, value: o, variant: y }) => ({ label: c, value: o, data: y }));
|
|
1260
|
-
}
|
|
1261
|
-
);
|
|
1262
|
-
return {
|
|
1263
|
-
// Values
|
|
1264
|
-
countryOptions: r(() => ({
|
|
1265
|
-
...l.options,
|
|
1266
|
-
listboxItems: a.value
|
|
1267
|
-
})),
|
|
1268
|
-
// Methods
|
|
1269
|
-
onUpdate: t,
|
|
1270
|
-
// Enums
|
|
1271
|
-
BentoFilterEvent: _
|
|
1272
|
-
};
|
|
1273
|
-
}
|
|
1274
|
-
});
|
|
1275
|
-
var Tl = function() {
|
|
1276
|
-
var e = this, t = e._self._c;
|
|
1277
|
-
return e._self._setupProxy, t("bento-select-filter", e._b({ attrs: { field: e.field, label: e.label, options: e.countryOptions }, on: { update: e.onUpdate, input: (a) => e.$emit(e.BentoFilterEvent.INPUT, a) }, scopedSlots: e._u([{ key: "default", fn: function({ label: a, data: n }) {
|
|
1278
|
-
return [t("listbox-option-tag", { attrs: { option: { value: a, data: n, label: "" } } })];
|
|
1279
|
-
} }]) }, "bento-select-filter", e.$props, !1));
|
|
1280
|
-
}, Pl = [], El = /* @__PURE__ */ I(
|
|
1281
|
-
Dl,
|
|
1282
|
-
Tl,
|
|
1283
|
-
Pl,
|
|
1284
|
-
!1,
|
|
1285
|
-
null,
|
|
1286
|
-
null,
|
|
1287
|
-
null,
|
|
1288
|
-
null
|
|
1289
|
-
);
|
|
1290
|
-
const je = El.exports, xl = {
|
|
1291
|
-
"en-US": {
|
|
1292
|
-
yes: "Yes",
|
|
1293
|
-
no: "No"
|
|
1294
|
-
}
|
|
1295
|
-
}, Il = U({
|
|
1296
|
-
name: "bento-boolean-filter",
|
|
1297
|
-
i18n: { messages: xl },
|
|
1298
|
-
components: { BentoBaseFilter: ae, BentoRadioGroup: lt },
|
|
1299
|
-
props: {
|
|
1300
|
-
/**
|
|
1301
|
-
* Default value of the filter to reset to.
|
|
1302
|
-
*/
|
|
1303
|
-
defaultValue: { type: [String, Boolean], default: null },
|
|
1304
|
-
/**
|
|
1305
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
1306
|
-
* Should be unique per filter bar.
|
|
1307
|
-
*/
|
|
1308
|
-
field: { type: String, required: !0 },
|
|
1309
|
-
/**
|
|
1310
|
-
* Label text to be displayed
|
|
1311
|
-
*/
|
|
1312
|
-
label: { type: String, required: !0 },
|
|
1313
|
-
/**
|
|
1314
|
-
* Current value of the filter
|
|
1315
|
-
*/
|
|
1316
|
-
value: { type: [String, Boolean], default: null },
|
|
1317
|
-
/**
|
|
1318
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
1319
|
-
* Used for the allFiltersModal component.
|
|
1320
|
-
*/
|
|
1321
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
1322
|
-
/**
|
|
1323
|
-
* List of options that are needed to setup the filter
|
|
1324
|
-
* Available options:
|
|
1325
|
-
* - listboxItems: The option elements to populate the filter with.
|
|
1326
|
-
*/
|
|
1327
|
-
options: {
|
|
1328
|
-
type: Object,
|
|
1329
|
-
default: void 0
|
|
1330
|
-
}
|
|
1331
|
-
},
|
|
1332
|
-
emits: [_.INPUT, _.UPDATE],
|
|
1333
|
-
setup(l, { emit: e }) {
|
|
1334
|
-
const { t } = Z(), a = (u) => typeof u == "boolean" ? u == null ? void 0 : u.toString() : u, n = (u) => {
|
|
1335
|
-
var m, b, D, S;
|
|
1336
|
-
return ((b = (m = l == null ? void 0 : l.options) == null ? void 0 : m.positiveOption) == null ? void 0 : b.value) !== void 0 && ((S = (D = l == null ? void 0 : l.options) == null ? void 0 : D.negativeOption) == null ? void 0 : S.value) !== void 0 && typeof l.options.positiveOption.value == "boolean" && typeof l.options.negativeOption.value == "boolean" && typeof u == "string" ? u === "true" : u;
|
|
1337
|
-
}, s = r(() => a(l.defaultValue)), i = r(() => a(l.value)), c = r(() => l.options && l.options.positiveOption && l.options.negativeOption ? [
|
|
1338
|
-
{
|
|
1339
|
-
...l.options.positiveOption,
|
|
1340
|
-
value: a(l.options.positiveOption.value)
|
|
1341
|
-
},
|
|
1342
|
-
{
|
|
1343
|
-
...l.options.negativeOption,
|
|
1344
|
-
value: a(l.options.negativeOption.value)
|
|
1345
|
-
}
|
|
1346
|
-
] : [
|
|
1347
|
-
{ value: "yes", label: t("yes") },
|
|
1348
|
-
{ value: "no", label: t("no") }
|
|
1349
|
-
]), { internalFilterValue: o, isSecondaryButtonDisabled: y, isApplyButtonDisabled: F } = te(
|
|
1350
|
-
i,
|
|
1351
|
-
s
|
|
1352
|
-
), C = r(
|
|
1353
|
-
() => l.defaultValue === null ? l.label : W(c.value.find(({ value: u }) => u === i.value).label, 18)
|
|
1354
|
-
), h = r(
|
|
1355
|
-
() => {
|
|
1356
|
-
var u;
|
|
1357
|
-
return l.defaultValue === null ? W((u = c.value.find(({ value: m }) => m === i.value)) == null ? void 0 : u.label, 12) : null;
|
|
1358
|
-
}
|
|
1359
|
-
), v = r(() => ({
|
|
1360
|
-
["b-boolean-filter--only-slot"]: l.onlySlot
|
|
1361
|
-
}));
|
|
1362
|
-
fe(() => {
|
|
1363
|
-
o.value || (o.value = null);
|
|
1364
|
-
});
|
|
1365
|
-
const A = (u) => {
|
|
1366
|
-
o.value = u, e(_.INPUT, {
|
|
1367
|
-
...l,
|
|
1368
|
-
value: n(o.value)
|
|
1369
|
-
});
|
|
1370
|
-
}, E = () => {
|
|
1371
|
-
o.value = i.value;
|
|
1372
|
-
}, T = () => {
|
|
1373
|
-
e(_.UPDATE, {
|
|
1374
|
-
...l,
|
|
1375
|
-
value: n(o.value)
|
|
1376
|
-
});
|
|
1377
|
-
};
|
|
1378
|
-
return {
|
|
1379
|
-
// Values
|
|
1380
|
-
items: c,
|
|
1381
|
-
conditionalClasses: v,
|
|
1382
|
-
buttonLabel: C,
|
|
1383
|
-
buttonSecondaryLabel: h,
|
|
1384
|
-
internalFilterValue: o,
|
|
1385
|
-
isApplyButtonDisabled: F,
|
|
1386
|
-
isSecondaryButtonDisabled: y,
|
|
1387
|
-
translatedValue: i,
|
|
1388
|
-
translatedDefaultValue: s,
|
|
1389
|
-
// Events
|
|
1390
|
-
onInput: A,
|
|
1391
|
-
updateFilter: T,
|
|
1392
|
-
clearFilter: () => {
|
|
1393
|
-
o.value = null, T();
|
|
1394
|
-
},
|
|
1395
|
-
openFilter: E,
|
|
1396
|
-
resetFilter: () => e(_.UPDATE, { ...l, value: l.defaultValue })
|
|
1397
|
-
};
|
|
1398
|
-
}
|
|
1399
|
-
});
|
|
1400
|
-
var $l = function() {
|
|
1401
|
-
var e = this, t = e._self._c;
|
|
1402
|
-
return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { value: e.translatedValue, "default-value": e.translatedDefaultValue, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-boolean-filter", class: e.conditionalClasses, on: { keydown: function(a) {
|
|
1403
|
-
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
|
|
1404
|
-
} } }, [t("bento-radio-group", { attrs: { items: e.items, label: e.label, "model-value": e.internalFilterValue, "hide-label": "" }, on: { "update:model-value": e.onInput } })], 1)]);
|
|
1405
|
-
}, Ul = [], Rl = /* @__PURE__ */ I(
|
|
1406
|
-
Il,
|
|
1407
|
-
$l,
|
|
1408
|
-
Ul,
|
|
1409
|
-
!1,
|
|
1410
|
-
null,
|
|
1411
|
-
"e6adae8e",
|
|
1412
|
-
null,
|
|
1413
|
-
null
|
|
1414
|
-
);
|
|
1415
|
-
const qe = Rl.exports, Vl = {
|
|
1416
|
-
"en-US": {
|
|
1417
|
-
from: "From",
|
|
1418
|
-
to: "To"
|
|
1419
|
-
}
|
|
1420
|
-
}, kl = U({
|
|
1421
|
-
name: "bento-range-filter",
|
|
1422
|
-
i18n: { messages: Vl },
|
|
1423
|
-
components: { BentoBaseFilter: ae, BentoInputField: Ie },
|
|
1424
|
-
props: {
|
|
1425
|
-
/**
|
|
1426
|
-
* Default value of the filter to reset to.
|
|
1427
|
-
*/
|
|
1428
|
-
defaultValue: { type: Array, default: null },
|
|
1429
|
-
/**
|
|
1430
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
1431
|
-
* Should be unique per filter bar.
|
|
1432
|
-
*/
|
|
1433
|
-
field: { type: String, required: !0 },
|
|
1434
|
-
/**
|
|
1435
|
-
* Label text to be displayed
|
|
1436
|
-
*/
|
|
1437
|
-
label: { type: String, required: !0 },
|
|
1438
|
-
/**
|
|
1439
|
-
* Current value of the filter
|
|
1440
|
-
*/
|
|
1441
|
-
value: { type: Array, default: () => ["", ""] },
|
|
1442
|
-
/**
|
|
1443
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
1444
|
-
* Used for the allFiltersModal component.
|
|
1445
|
-
*/
|
|
1446
|
-
onlySlot: { type: Boolean, default: !1 }
|
|
1447
|
-
},
|
|
1448
|
-
emits: [_.INPUT, _.UPDATE],
|
|
1449
|
-
setup(l, { emit: e }) {
|
|
1450
|
-
const t = P(null), { internalFilterValue: a, isSecondaryButtonDisabled: n, isApplyButtonDisabled: s } = te(
|
|
1451
|
-
w(l, "value"),
|
|
1452
|
-
w(l, "defaultValue")
|
|
1453
|
-
), i = r(() => {
|
|
1454
|
-
var b, D, S, N, z, G, K, Y;
|
|
1455
|
-
if (!((b = l.value) != null && b[0]) && !((D = l.value) != null && D[1]))
|
|
1456
|
-
return null;
|
|
1457
|
-
let g = "";
|
|
1458
|
-
(S = l.value) != null && S[0] ? (N = l.value) != null && N[1] || (g = "≥") : g = "≤";
|
|
1459
|
-
const R = (z = l.value) != null && z[0] ? `${W(l.value[0], 5)}` : "", u = (G = l.value) != null && G[0] && ((K = l.value) != null && K[1]) ? " - " : "", m = (Y = l.value) != null && Y[1] ? `${W(l.value[1], 5)}` : "";
|
|
1460
|
-
return `${g}${R}${u}${m}`;
|
|
1461
|
-
}), c = r(
|
|
1462
|
-
() => l.defaultValue === null ? l.label : i.value
|
|
1463
|
-
), o = r(
|
|
1464
|
-
() => l.defaultValue === null ? i.value : null
|
|
1465
|
-
), y = r(() => ({
|
|
1466
|
-
["b-range-filter--only-slot"]: l.onlySlot
|
|
1467
|
-
})), F = () => {
|
|
1468
|
-
a.value = l.value, ze(() => t.value.focusInput());
|
|
1469
|
-
}, C = () => {
|
|
1470
|
-
e(_.INPUT, { ...l, value: a.value });
|
|
1471
|
-
}, h = (g) => {
|
|
1472
|
-
a.value = [g, a.value[1]], C();
|
|
1473
|
-
}, v = (g) => {
|
|
1474
|
-
a.value = [a.value[0], g], C();
|
|
1475
|
-
}, A = () => {
|
|
1476
|
-
a.value.some((g) => g) || (a.value = l.defaultValue !== null ? l.defaultValue : void 0), e(_.UPDATE, {
|
|
1477
|
-
...l,
|
|
1478
|
-
value: a.value
|
|
1479
|
-
});
|
|
1480
|
-
};
|
|
1481
|
-
return {
|
|
1482
|
-
// Values
|
|
1483
|
-
inputTextRef: t,
|
|
1484
|
-
conditionalClasses: y,
|
|
1485
|
-
internalFilterValue: a,
|
|
1486
|
-
isApplyButtonDisabled: s,
|
|
1487
|
-
isSecondaryButtonDisabled: n,
|
|
1488
|
-
buttonLabel: c,
|
|
1489
|
-
buttonSecondaryLabel: o,
|
|
1490
|
-
// Events
|
|
1491
|
-
updateFrom: h,
|
|
1492
|
-
updateTo: v,
|
|
1493
|
-
updateFilter: A,
|
|
1494
|
-
clearFilter: () => {
|
|
1495
|
-
a.value = ["", ""], A();
|
|
1496
|
-
},
|
|
1497
|
-
openFilter: F,
|
|
1498
|
-
resetFilter: () => e(_.UPDATE, { ...l, value: l.defaultValue })
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
});
|
|
1502
|
-
var Ll = function() {
|
|
1503
|
-
var e = this, t = e._self._c;
|
|
1504
|
-
return e._self._setupProxy, t("bento-base-filter", e._b({ attrs: { "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, "only-slot": e.onlySlot }, on: { apply: e.updateFilter, clear: e.clearFilter, open: e.openFilter, reset: e.resetFilter } }, "bento-base-filter", e.$props, !1), [t("div", { staticClass: "b-range-filter", class: e.conditionalClasses, on: { keydown: function(a) {
|
|
1505
|
-
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.updateFilter.apply(null, arguments);
|
|
1506
|
-
} } }, [t("bento-input-field", { ref: "inputTextRef", attrs: { value: e.internalFilterValue ? e.internalFilterValue[0] : "", type: "number", "aria-label": e.$t("from").toString() }, on: { input: e.updateFrom } }, [e._v(" " + e._s(e.$t("from")) + " ")]), t("bento-input-field", { staticClass: "b-range-filter__input-field", attrs: { value: e.internalFilterValue ? e.internalFilterValue[1] : "", type: "number", "aria-label": e.$t("to").toString() }, on: { input: e.updateTo } }, [e._v(" " + e._s(e.$t("to")) + " ")])], 1)]);
|
|
1507
|
-
}, Ol = [], wl = /* @__PURE__ */ I(
|
|
1508
|
-
kl,
|
|
1509
|
-
Ll,
|
|
1510
|
-
Ol,
|
|
1511
|
-
!1,
|
|
1512
|
-
null,
|
|
1513
|
-
"d9161521",
|
|
1514
|
-
null,
|
|
1515
|
-
null
|
|
1516
|
-
);
|
|
1517
|
-
const Ke = wl.exports;
|
|
1518
|
-
var de = /* @__PURE__ */ ((l) => (l.INPUT = "input", l))(de || {});
|
|
1519
|
-
const Nl = U({
|
|
1520
|
-
name: "base-filter-button",
|
|
1521
|
-
components: { BaseButton: De, BentoTypography: oe, ChevronUpIcon: Ee, ChevronDownIcon: xe },
|
|
1522
|
-
props: {
|
|
1523
|
-
/**
|
|
1524
|
-
* The number of applies values within the filter.
|
|
1525
|
-
* e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
|
|
1526
|
-
*/
|
|
1527
|
-
amountAppliedValues: { type: [Number, String], default: null },
|
|
1528
|
-
/**
|
|
1529
|
-
* Disables button functionality.
|
|
1530
|
-
*/
|
|
1531
|
-
disabled: { type: Boolean, default: !1 },
|
|
1532
|
-
/**
|
|
1533
|
-
* Signifies if the filter is open or closed.
|
|
1534
|
-
*/
|
|
1535
|
-
isFilterOpen: { type: Boolean, default: !1 },
|
|
1536
|
-
/**
|
|
1537
|
-
* Toggles if a chevron icon should be displayed in the button.
|
|
1538
|
-
* The chevron will change depending on the open state of the filter.
|
|
1539
|
-
*/
|
|
1540
|
-
hasChevron: { type: Boolean, default: !1 },
|
|
1541
|
-
/**
|
|
1542
|
-
* Renders the text in a stronger variant.
|
|
1543
|
-
*/
|
|
1544
|
-
bold: { type: Boolean, default: !1 }
|
|
1545
|
-
},
|
|
1546
|
-
emits: [ye.CLICK],
|
|
1547
|
-
setup(l, { slots: e, emit: t, attrs: a }) {
|
|
1548
|
-
const n = r(() => e.default ? Te(e)("default") : null), s = Ae({ ariaLabel: n }), i = P(null), c = r(() => {
|
|
1549
|
-
var F;
|
|
1550
|
-
return {
|
|
1551
|
-
"aria-controls": (F = a["aria-controls"]) == null ? void 0 : F.toString()
|
|
1552
|
-
};
|
|
1553
|
-
}), o = r(() => ({
|
|
1554
|
-
["b-base-filter-button--with-chevron"]: l.hasChevron,
|
|
1555
|
-
["b-base-filter-button--filter-open"]: l.isFilterOpen
|
|
1556
|
-
}));
|
|
1557
|
-
return {
|
|
1558
|
-
// Values
|
|
1559
|
-
ariaAttributes: c,
|
|
1560
|
-
computedAriaLabel: s,
|
|
1561
|
-
conditionalClasses: o,
|
|
1562
|
-
// Methods
|
|
1563
|
-
onClickButton: () => {
|
|
1564
|
-
l.disabled || t(ye.CLICK);
|
|
1565
|
-
},
|
|
1566
|
-
hasSlot: Pe(e),
|
|
1567
|
-
// Refs
|
|
1568
|
-
baseFilterButtonRef: i
|
|
1569
|
-
};
|
|
1570
|
-
}
|
|
1571
|
-
});
|
|
1572
|
-
var Ml = function() {
|
|
1573
|
-
var e = this, t = e._self._c;
|
|
1574
|
-
return e._self._setupProxy, t("base-button", { ref: "baseFilterButtonRef", staticClass: "b-base-filter-button", class: e.conditionalClasses, attrs: { disabled: e.disabled, "aria-label": e.computedAriaLabel, "aria-controls": e.ariaAttributes["aria-controls"], type: "button" }, on: { click: e.onClickButton }, scopedSlots: e._u([e.hasChevron ? { key: "iconRight", fn: function() {
|
|
1575
|
-
return [e.isFilterOpen ? t("chevron-up-icon", { attrs: { "aria-hidden": "true" } }) : t("chevron-down-icon", { attrs: { "aria-hidden": "true" } })];
|
|
1576
|
-
}, proxy: !0 } : null], null, !0) }, [t("div", { staticClass: "b-base-filter-button__default-container" }, [t("div", { staticClass: "b-base-filter-button__label-container" }, [t("bento-typography", { staticClass: "b-base-filter-button__label", attrs: { el: "span", variant: "body", stronger: e.bold } }, [e._t("default")], 2)], 1), e.amountAppliedValues && !e.hasChevron ? t("div", { staticClass: "b-base-filter-button__counter-wrapper" }, [t("bento-typography", { staticClass: "b-base-filter-button__counter", attrs: { el: "span", variant: "body", stronger: "" } }, [e._v(" " + e._s(e.amountAppliedValues) + " ")])], 1) : e._e()])]);
|
|
1577
|
-
}, Hl = [], jl = /* @__PURE__ */ I(
|
|
1578
|
-
Nl,
|
|
1579
|
-
Ml,
|
|
1580
|
-
Hl,
|
|
1581
|
-
!1,
|
|
1582
|
-
null,
|
|
1583
|
-
"66b170d4",
|
|
1584
|
-
null,
|
|
1585
|
-
null
|
|
1586
|
-
);
|
|
1587
|
-
const ql = jl.exports, Kl = U({
|
|
1588
|
-
name: "all-filters-modal-button",
|
|
1589
|
-
components: { BaseFilterButton: ql },
|
|
1590
|
-
props: {
|
|
1591
|
-
/**
|
|
1592
|
-
* Button label to be displayed
|
|
1593
|
-
*/
|
|
1594
|
-
label: { type: String, required: !0 },
|
|
1595
|
-
/**
|
|
1596
|
-
* Total count of applied filters
|
|
1597
|
-
*/
|
|
1598
|
-
appliedFiltersCount: { type: [Number, String], default: null },
|
|
1599
|
-
/**
|
|
1600
|
-
* Indicates whether the filter popover tied to this button is showing
|
|
1601
|
-
*/
|
|
1602
|
-
isFilterOpen: { type: Boolean, default: !1 },
|
|
1603
|
-
/**
|
|
1604
|
-
* Disables button functionality.
|
|
1605
|
-
*/
|
|
1606
|
-
disabled: { type: Boolean, default: !1 }
|
|
1607
|
-
},
|
|
1608
|
-
emits: ["click"],
|
|
1609
|
-
setup(l, { emit: e }) {
|
|
1610
|
-
return {
|
|
1611
|
-
conditionalClasses: r(() => ({
|
|
1612
|
-
["b-all-filters-modal-button--with-counter"]: l.appliedFiltersCount,
|
|
1613
|
-
["b-all-filters-modal-button--filter-open"]: l.isFilterOpen
|
|
1614
|
-
})),
|
|
1615
|
-
onClick: () => {
|
|
1616
|
-
e("click");
|
|
1617
|
-
}
|
|
1618
|
-
};
|
|
1619
|
-
}
|
|
1620
|
-
});
|
|
1621
|
-
var Yl = function() {
|
|
1622
|
-
var e = this, t = e._self._c;
|
|
1623
|
-
return e._self._setupProxy, t("base-filter-button", { staticClass: "b-all-filters-modal-button", class: e.conditionalClasses, attrs: { "amount-applied-values": e.appliedFiltersCount, "is-filter-open": e.isFilterOpen, disabled: e.disabled }, on: { click: e.onClick } }, [e._v(" " + e._s(e.label) + " ")]);
|
|
1624
|
-
}, Jl = [], zl = /* @__PURE__ */ I(
|
|
1625
|
-
Kl,
|
|
1626
|
-
Yl,
|
|
1627
|
-
Jl,
|
|
1628
|
-
!1,
|
|
1629
|
-
null,
|
|
1630
|
-
"4c415ac7",
|
|
1631
|
-
null,
|
|
1632
|
-
null
|
|
1633
|
-
);
|
|
1634
|
-
const Gl = zl.exports;
|
|
1635
|
-
let Ce = 0;
|
|
1636
|
-
const Wl = {
|
|
1637
|
-
beforeCreate() {
|
|
1638
|
-
this.uuid = Ce.toString(), Ce += 1;
|
|
1639
|
-
}
|
|
1640
|
-
};
|
|
1641
|
-
var Zl = function() {
|
|
1642
|
-
var e = this, t = e._self._c;
|
|
1643
|
-
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M12.6465 4.58337C12.32 3.42912 11.2588 2.58337 10 2.58337C8.74122 2.58337 7.67998 3.42912 7.35352 4.58337H1.25V6.08337H7.35352C7.67998 7.23763 8.74122 8.08337 10 8.08337C11.2588 8.08337 12.32 7.23763 12.6465 6.08337H14.75V4.58337H12.6465ZM11.25 5.33337C11.25 6.02373 10.6904 6.58337 10 6.58337C9.30964 6.58337 8.75 6.02373 8.75 5.33337C8.75 4.64302 9.30964 4.08337 10 4.08337C10.6904 4.08337 11.25 4.64302 11.25 5.33337Z" } }), t("path", { attrs: { fill: "#00112C", d: "M4 7.91687C5.25878 7.91687 6.32002 8.76262 6.64648 9.91687H14.75V11.4169H6.64648C6.32002 12.5711 5.25878 13.4169 4 13.4169C2.48122 13.4169 1.25 12.1857 1.25 10.6669C1.25 9.14809 2.48122 7.91687 4 7.91687ZM5.25 10.6669C5.25 9.97651 4.69036 9.41687 4 9.41687C3.30964 9.41687 2.75 9.97651 2.75 10.6669C2.75 11.3572 3.30964 11.9169 4 11.9169C4.69036 11.9169 5.25 11.3572 5.25 10.6669Z" } })]);
|
|
1644
|
-
}, Ql = [], Xl = /* @__PURE__ */ I(
|
|
1645
|
-
Wl,
|
|
1646
|
-
Zl,
|
|
1647
|
-
Ql,
|
|
1648
|
-
!1,
|
|
1649
|
-
null,
|
|
1650
|
-
null,
|
|
1651
|
-
null,
|
|
1652
|
-
null
|
|
1653
|
-
);
|
|
1654
|
-
const ea = Xl.exports, ta = {
|
|
1655
|
-
"en-US": {
|
|
1656
|
-
all: "All",
|
|
1657
|
-
activeFilters: "Active filters",
|
|
1658
|
-
allFilters: "All filters",
|
|
1659
|
-
applyAll: "Apply all",
|
|
1660
|
-
cancel: "Cancel",
|
|
1661
|
-
clear: "Clear",
|
|
1662
|
-
clearAll: "Clear all",
|
|
1663
|
-
noFiltersMatchThisSearch: "No filters match this search",
|
|
1664
|
-
otherFilters: "Other filters",
|
|
1665
|
-
searchBar: "Search bar"
|
|
1666
|
-
}
|
|
1667
|
-
}, la = U({
|
|
1668
|
-
i18n: { messages: ta },
|
|
1669
|
-
name: "all-filters-modal",
|
|
1670
|
-
components: {
|
|
1671
|
-
AllFiltersModalButton: Gl,
|
|
1672
|
-
BentoBooleanFilter: qe,
|
|
1673
|
-
BentoButton: st,
|
|
1674
|
-
BentoDateFilter: Le,
|
|
1675
|
-
BentoDateRangeFilter: Oe,
|
|
1676
|
-
BentoInputFilter: ke,
|
|
1677
|
-
BentoModal: at,
|
|
1678
|
-
BentoRangeFilter: Ke,
|
|
1679
|
-
BentoSearchBar: re,
|
|
1680
|
-
BentoSelectAvatarFilter: we,
|
|
1681
|
-
BentoSelectCurrencyFilter: Ne,
|
|
1682
|
-
BentoSelectCountryFilter: Me,
|
|
1683
|
-
BentoSelectFilter: j,
|
|
1684
|
-
BentoSelectPaymentMethodFilter: He,
|
|
1685
|
-
BentoSelectTagFilter: je,
|
|
1686
|
-
BentoTypography: oe,
|
|
1687
|
-
FilterBarButton: be,
|
|
1688
|
-
SlidersIcon: ea
|
|
1689
|
-
},
|
|
1690
|
-
props: {
|
|
1691
|
-
/**
|
|
1692
|
-
* Array of filters based on {@see FilterBarModel}.
|
|
1693
|
-
* Each one of the elements in the array correspond to a filter that will
|
|
1694
|
-
* be created and rendered in the AllFiltersModal.
|
|
1695
|
-
*
|
|
1696
|
-
* Can be used with v-model or independently with the @input event.
|
|
1697
|
-
*
|
|
1698
|
-
* @example
|
|
1699
|
-
* [{
|
|
1700
|
-
* field: 'company',
|
|
1701
|
-
* label: 'Company',
|
|
1702
|
-
* value: '200',
|
|
1703
|
-
* type: FilterType.TEXT,
|
|
1704
|
-
* }, {
|
|
1705
|
-
* field: 'name',
|
|
1706
|
-
* label: 'Name',
|
|
1707
|
-
* value: null,
|
|
1708
|
-
* type: FilterType.TEXT,
|
|
1709
|
-
* }]
|
|
1710
|
-
*/
|
|
1711
|
-
value: {
|
|
1712
|
-
type: Array,
|
|
1713
|
-
default: () => []
|
|
1714
|
-
}
|
|
1715
|
-
},
|
|
1716
|
-
emits: [de.INPUT],
|
|
1717
|
-
setup(l, { emit: e }) {
|
|
1718
|
-
const t = Be({ value: l.value }), a = P(t.value), n = _e("all-filters-modal"), s = P([]), i = P(!1), c = P(0), o = P(null), y = P(""), { t: F } = Z(), C = $e(y, w(a, "value")), h = P({});
|
|
1719
|
-
fe(() => {
|
|
1720
|
-
h.value = [];
|
|
1721
|
-
}), ee(
|
|
1722
|
-
() => l.value,
|
|
1723
|
-
() => {
|
|
1724
|
-
t.value = l.value, a.value = l.value;
|
|
1725
|
-
}
|
|
1726
|
-
);
|
|
1727
|
-
const v = (f) => (
|
|
1728
|
-
/* eslint-disable-next-line no-nested-ternary */
|
|
1729
|
-
f.sort((d, B) => d.label > B.label ? 1 : B.label > d.label ? -1 : 0)
|
|
1730
|
-
), A = r(
|
|
1731
|
-
() => v(
|
|
1732
|
-
C.value.filter(
|
|
1733
|
-
(f) => {
|
|
1734
|
-
var d, B;
|
|
1735
|
-
return Array.isArray(f.value) ? ((d = f.value) == null ? void 0 : d.length) && ((B = f.value) == null ? void 0 : B.find((k) => k !== "")) : f.value;
|
|
1736
|
-
}
|
|
1737
|
-
)
|
|
1738
|
-
)
|
|
1739
|
-
), E = r(
|
|
1740
|
-
() => v(
|
|
1741
|
-
C.value.filter(
|
|
1742
|
-
(f) => {
|
|
1743
|
-
var d, B;
|
|
1744
|
-
return Array.isArray(f.value) ? ((d = f.value) == null ? void 0 : d.length) === 0 || ((B = f.value) == null ? void 0 : B.every((k) => k === "")) : !f.value;
|
|
1745
|
-
}
|
|
1746
|
-
)
|
|
1747
|
-
)
|
|
1748
|
-
), T = r(() => {
|
|
1749
|
-
var f;
|
|
1750
|
-
return y.value && ((f = C.value) == null ? void 0 : f.length) === 0;
|
|
1751
|
-
}), g = r(() => a.value[c.value]), R = () => {
|
|
1752
|
-
const f = A.value.length ? A.value[0] : E.value[0], d = a.value.findIndex(
|
|
1753
|
-
(B) => B.label === f.label && B.field === f.field
|
|
1754
|
-
);
|
|
1755
|
-
c.value = d;
|
|
1756
|
-
};
|
|
1757
|
-
Ge(() => {
|
|
1758
|
-
R();
|
|
1759
|
-
});
|
|
1760
|
-
const u = (f) => f.map((d) => {
|
|
1761
|
-
var B, k, M, O, ue, ne;
|
|
1762
|
-
switch (d.type) {
|
|
1763
|
-
case H.SELECT:
|
|
1764
|
-
case H.SELECT_AVATAR:
|
|
1765
|
-
case H.SELECT_COUNTRY:
|
|
1766
|
-
case H.SELECT_CURRENCY:
|
|
1767
|
-
case H.SELECT_PAYMENT_METHOD:
|
|
1768
|
-
case H.SELECT_TAG:
|
|
1769
|
-
switch ((B = d.options) == null ? void 0 : B.multiple) {
|
|
1770
|
-
case !0:
|
|
1771
|
-
return {
|
|
1772
|
-
label: d.label,
|
|
1773
|
-
field: d.field,
|
|
1774
|
-
count: (k = d.value) != null && k.length ? (M = d.value) == null ? void 0 : M.length : null
|
|
1775
|
-
};
|
|
1776
|
-
default:
|
|
1777
|
-
return {
|
|
1778
|
-
label: d.label,
|
|
1779
|
-
field: d.field,
|
|
1780
|
-
count: d.value == null ? null : 1
|
|
1781
|
-
};
|
|
1782
|
-
}
|
|
1783
|
-
case H.DATE_RANGE:
|
|
1784
|
-
return {
|
|
1785
|
-
label: d.label,
|
|
1786
|
-
field: d.field,
|
|
1787
|
-
count: ((O = d.value) == null ? void 0 : O.startDate) != null && ((ue = d.value) == null ? void 0 : ue.endDate) != null ? 1 : null
|
|
1788
|
-
};
|
|
1789
|
-
case H.RANGE:
|
|
1790
|
-
return {
|
|
1791
|
-
label: d.label,
|
|
1792
|
-
field: d.field,
|
|
1793
|
-
count: (ne = d.value) != null && ne.find((ce) => ce !== "") ? 1 : null
|
|
1794
|
-
};
|
|
1795
|
-
case H.INPUT:
|
|
1796
|
-
case H.BOOLEAN:
|
|
1797
|
-
case H.DATE:
|
|
1798
|
-
default:
|
|
1799
|
-
return {
|
|
1800
|
-
label: d.label,
|
|
1801
|
-
field: d.field,
|
|
1802
|
-
count: d.value != null ? 1 : null
|
|
1803
|
-
};
|
|
1804
|
-
}
|
|
1805
|
-
}), m = r(
|
|
1806
|
-
() => {
|
|
1807
|
-
var f;
|
|
1808
|
-
return Array.isArray(g.value.value) ? ((f = g.value) == null ? void 0 : f.value.length) && g.value.value.find((d) => d !== "") : !!a.value[c.value].value;
|
|
1809
|
-
}
|
|
1810
|
-
), b = r(
|
|
1811
|
-
() => {
|
|
1812
|
-
var f;
|
|
1813
|
-
return (f = u(t.value)) == null ? void 0 : f.filter(({ count: d }) => !!d).length;
|
|
1814
|
-
}
|
|
1815
|
-
), D = () => {
|
|
1816
|
-
i.value ? i.value = !1 : i.value = !0;
|
|
1817
|
-
}, S = (f) => {
|
|
1818
|
-
var B, k, M;
|
|
1819
|
-
const d = u(a.value).find((O) => O.field === f.field).count;
|
|
1820
|
-
return f.type.includes("BentoSelect") && ((B = f.options) != null && B.multiple) && d === ((M = (k = f.options) == null ? void 0 : k.listboxItems) == null ? void 0 : M.length) ? F("all") : d;
|
|
1821
|
-
}, N = (f, d) => {
|
|
1822
|
-
c.value = a.value.findIndex(
|
|
1823
|
-
(B) => B.label === f && B.field === d
|
|
1824
|
-
);
|
|
1825
|
-
}, z = () => {
|
|
1826
|
-
y.value = "";
|
|
1827
|
-
}, G = () => {
|
|
1828
|
-
i.value = !1, t.value = l.value, a.value = l.value, z(), R();
|
|
1829
|
-
}, K = (f) => {
|
|
1830
|
-
const d = a.value.map(({ value: B, ...k }, M) => M === c.value ? { value: f.value, ...k } : { value: B, ...k });
|
|
1831
|
-
a.value = d;
|
|
1832
|
-
}, Y = () => {
|
|
1833
|
-
K({
|
|
1834
|
-
field: g.value.field,
|
|
1835
|
-
label: g.value.label,
|
|
1836
|
-
type: g.value.type,
|
|
1837
|
-
value: void 0
|
|
1838
|
-
});
|
|
1839
|
-
}, Q = () => {
|
|
1840
|
-
a.value = t.value.map(({ value: f, ...d }) => ({
|
|
1841
|
-
...d,
|
|
1842
|
-
value: void 0
|
|
1843
|
-
}));
|
|
1844
|
-
}, V = () => {
|
|
1845
|
-
e(de.INPUT, a.value), i.value = !1;
|
|
1846
|
-
}, p = r(
|
|
1847
|
-
() => JSON.stringify(a.value) === JSON.stringify(l.value)
|
|
1848
|
-
), $ = r(() => [
|
|
1849
|
-
{
|
|
1850
|
-
title: F("applyAll"),
|
|
1851
|
-
disabled: p.value,
|
|
1852
|
-
event: V
|
|
1853
|
-
},
|
|
1854
|
-
{
|
|
1855
|
-
title: F("cancel"),
|
|
1856
|
-
event: G
|
|
1857
|
-
},
|
|
1858
|
-
{
|
|
1859
|
-
title: F("clearAll"),
|
|
1860
|
-
disabled: !b.value,
|
|
1861
|
-
event: Q
|
|
1862
|
-
}
|
|
1863
|
-
]);
|
|
1864
|
-
return {
|
|
1865
|
-
// Enums
|
|
1866
|
-
BentoModalEvent: nt,
|
|
1867
|
-
// Values
|
|
1868
|
-
allFiltersModalUniqueId: n,
|
|
1869
|
-
allFiltersModalFiltersSection: s,
|
|
1870
|
-
allFiltersModalFilterButtons: h,
|
|
1871
|
-
numberOfActiveFilters: b,
|
|
1872
|
-
isEmptyResultForSearchFilter: T,
|
|
1873
|
-
isModalOpen: i,
|
|
1874
|
-
isClearButtonEnabled: m,
|
|
1875
|
-
activeFilters: A,
|
|
1876
|
-
otherFilters: E,
|
|
1877
|
-
modalActions: $,
|
|
1878
|
-
selectedFilter: g,
|
|
1879
|
-
selectedFilterRef: o,
|
|
1880
|
-
filters: t,
|
|
1881
|
-
searchTerm: y,
|
|
1882
|
-
// Methods
|
|
1883
|
-
onClickAllFiltersModal: D,
|
|
1884
|
-
getFilterCount: S,
|
|
1885
|
-
cancel: G,
|
|
1886
|
-
selectFilter: N,
|
|
1887
|
-
clearFilter: Y,
|
|
1888
|
-
updateFilter: K,
|
|
1889
|
-
onSearchbarClear: z,
|
|
1890
|
-
onKeydownRight: () => {
|
|
1891
|
-
rt(1, o.value.$el).focus();
|
|
1892
|
-
},
|
|
1893
|
-
onKeydownLeft: () => {
|
|
1894
|
-
h.value[g.value.label].$el.focus();
|
|
1895
|
-
}
|
|
1896
|
-
};
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
1899
|
-
var aa = function() {
|
|
1900
|
-
var e = this, t = e._self._c;
|
|
1901
|
-
return e._self._setupProxy, t("div", { staticClass: "b-all-filters-modal" }, [t("filter-bar-button", { attrs: { "is-filter-open": e.isModalOpen, "applied-filters-count": e.numberOfActiveFilters }, on: { click: e.onClickAllFiltersModal }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
1902
|
-
return [t("sliders-icon", { attrs: { "aria-hidden": "true" } })];
|
|
1903
|
-
}, proxy: !0 }]) }, [e._v(" " + e._s(e.$t("allFilters")) + " ")]), t("bento-modal", { staticClass: "'b-all-filters-modal__modal'", attrs: { "is-open": e.isModalOpen, "with-column-layout": !0, size: "large", actions: e.modalActions, "is-dismissible": !1, "hide-close-button": "" }, on: { "close-modal": e.cancel }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
1904
|
-
return [e._v(" " + e._s(e.$t("allFilters")) + " ")];
|
|
1905
|
-
}, proxy: !0 }, { key: "content-col-1", fn: function() {
|
|
1906
|
-
return [t("div", { ref: "allFiltersModalFiltersSection", staticClass: "b-all-filters-modal__filters", on: { keydown: function(a) {
|
|
1907
|
-
return !a.type.indexOf("key") && e._k(a.keyCode, "right", 39, a.key, ["Right", "ArrowRight"]) || "button" in a && a.button !== 2 ? null : e.onKeydownRight.apply(null, arguments);
|
|
1908
|
-
} } }, [t("bento-search-bar", { staticClass: "b-all-filters-modal__search-bar", attrs: { value: e.searchTerm, "input-field-aria-label": e.$t("searchBar").toString() }, on: { input: function(a) {
|
|
1909
|
-
e.searchTerm = a;
|
|
1910
|
-
}, clear: e.onSearchbarClear } }), e.isEmptyResultForSearchFilter ? t("div", { staticClass: "b-all-filters-modal__empty-search-message" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(" " + e._s(e.$t("noFiltersMatchThisSearch")))])], 1) : e._e(), e.activeFilters.length ? t("div", { staticClass: "b-all-filters-modal__filters-section" }, [t("bento-typography", { staticClass: "b-all-filters-modal__filters-section-title", attrs: { id: `active-filters-${e.allFiltersModalUniqueId}`, el: "span", variant: "caption" } }, [e._v(" " + e._s(e.$t("activeFilters")))]), t("ul", { staticClass: "b-all-filters-modal__filters-list", attrs: { "aria-labelledby": `active-filters-${e.allFiltersModalUniqueId}` } }, e._l(e.activeFilters, function(a) {
|
|
1911
|
-
return t("li", { key: `${a.label}-${a.field}` }, [t("all-filters-modal-button", { ref: (n) => e.allFiltersModalFilterButtons[a.label] = n, refInFor: !0, attrs: { label: a.label, "applied-filters-count": e.getFilterCount(a), "is-filter-open": e.selectedFilter.label === a.label }, on: { click: function(n) {
|
|
1912
|
-
return e.selectFilter(a.label, a.field);
|
|
1913
|
-
} } })], 1);
|
|
1914
|
-
}), 0)], 1) : e._e(), e.otherFilters.length ? t("div", { staticClass: "b-all-filters-modal__filters-section" }, [e.activeFilters.length ? t("bento-typography", { staticClass: "b-all-filters-modal__filters-section-title", attrs: { id: `other-filters-${e.allFiltersModalUniqueId}`, el: "span", variant: "caption" } }, [e._v(" " + e._s(e.$t("otherFilters")))]) : e._e(), t("ul", { staticClass: "b-all-filters-modal__filters-list", attrs: { "aria-labelledby": `other-filters-${e.allFiltersModalUniqueId}` } }, e._l(e.otherFilters, function(a) {
|
|
1915
|
-
return t("li", { key: `${a.label}-${a.field}` }, [t("all-filters-modal-button", { ref: (n) => e.allFiltersModalFilterButtons[a.label] = n, refInFor: !0, attrs: { label: a.label, "applied-filters-count": e.getFilterCount(a), "is-filter-open": e.selectedFilter.label === a.label }, on: { click: function(n) {
|
|
1916
|
-
return e.selectFilter(a.label, a.field);
|
|
1917
|
-
} } })], 1);
|
|
1918
|
-
}), 0)], 1) : e._e()], 1)];
|
|
1919
|
-
}, proxy: !0 }, { key: "content-col-2", fn: function() {
|
|
1920
|
-
return [t("div", { staticClass: "b-all-filters-modal__selected-filter-content", on: { keydown: function(a) {
|
|
1921
|
-
return !a.type.indexOf("key") && e._k(a.keyCode, "left", 37, a.key, ["Left", "ArrowLeft"]) || "button" in a && a.button !== 0 ? null : e.onKeydownLeft.apply(null, arguments);
|
|
1922
|
-
} } }, [t("div", { staticClass: "b-all-filters-modal__selected-filter-text" }, [t("bento-typography", { attrs: { el: "div", variant: "title", medium: "" } }, [e._v(e._s(e.selectedFilter.label))]), e.selectedFilter.description ? t("bento-typography", { attrs: { el: "div", variant: "body", wide: "" } }, [e._v(" " + e._s(e.selectedFilter.description) + " ")]) : e._e()], 1), t("div", { staticClass: "b-all-filters-modal__selected-filter-component" }, [t(e.selectedFilter.type, { key: e.selectedFilter.field, ref: "selectedFilterRef", tag: "component", attrs: { field: e.selectedFilter.field, label: e.selectedFilter.label, options: e.selectedFilter.options, value: e.selectedFilter.value, "default-value": e.selectedFilter.defaultValue, "only-slot": !0 }, on: { input: e.updateFilter } })], 1), t("div", { staticClass: "b-all-filters-modal__clear-button" }, [t("bento-button", { attrs: { variant: "secondary", disabled: !e.isClearButtonEnabled }, on: { click: e.clearFilter } }, [e._v(e._s(e.$t("clear")))])], 1)])];
|
|
1923
|
-
}, proxy: !0 }]) })], 1);
|
|
1924
|
-
}, na = [], sa = /* @__PURE__ */ I(
|
|
1925
|
-
la,
|
|
1926
|
-
aa,
|
|
1927
|
-
na,
|
|
1928
|
-
!1,
|
|
1929
|
-
null,
|
|
1930
|
-
"a6a7d960",
|
|
1931
|
-
null,
|
|
1932
|
-
null
|
|
1933
|
-
);
|
|
1934
|
-
const oa = sa.exports, ra = {
|
|
1935
|
-
"en-US": {
|
|
1936
|
-
clearAll: "Clear filters",
|
|
1937
|
-
filtersHaveBeenCleared: "Filters have been cleared.",
|
|
1938
|
-
filtersHaveBeenReset: "Filters have been reset.",
|
|
1939
|
-
undo: "Undo",
|
|
1940
|
-
resetAll: "Reset filters",
|
|
1941
|
-
searchBar: "Search bar"
|
|
1942
|
-
}
|
|
1943
|
-
}, ia = U({
|
|
1944
|
-
i18n: { messages: ra },
|
|
1945
|
-
name: "bento-filter-bar",
|
|
1946
|
-
components: {
|
|
1947
|
-
AllFiltersModal: oa,
|
|
1948
|
-
BentoBooleanFilter: qe,
|
|
1949
|
-
BentoDateFilter: Le,
|
|
1950
|
-
BentoDateRangeFilter: Oe,
|
|
1951
|
-
BentoRangeFilter: Ke,
|
|
1952
|
-
BentoInputFilter: ke,
|
|
1953
|
-
BentoSelectFilter: j,
|
|
1954
|
-
BentoSelectAvatarFilter: we,
|
|
1955
|
-
BentoSelectCountryFilter: Me,
|
|
1956
|
-
BentoSelectCurrencyFilter: Ne,
|
|
1957
|
-
BentoSelectPaymentMethodFilter: He,
|
|
1958
|
-
BentoSelectTagFilter: je,
|
|
1959
|
-
BentoSearchBar: re,
|
|
1960
|
-
FilterBarButton: be,
|
|
1961
|
-
FixedScroller: Ft,
|
|
1962
|
-
RefreshIcon: mt
|
|
1963
|
-
},
|
|
1964
|
-
props: {
|
|
1965
|
-
/**
|
|
1966
|
-
* Array of filters based on {@see BentoFilterBarModel}.
|
|
1967
|
-
* Each one of the elements in the array correspond to a filter that will
|
|
1968
|
-
* be created and rendered in the FilterBar.
|
|
1969
|
-
*
|
|
1970
|
-
* @example
|
|
1971
|
-
* [{
|
|
1972
|
-
* field: 'company',
|
|
1973
|
-
* label: 'Company',
|
|
1974
|
-
* type: FilterType.TEXT,
|
|
1975
|
-
* }, {
|
|
1976
|
-
* field: 'name',
|
|
1977
|
-
* label: 'Name',
|
|
1978
|
-
* type: FilterType.TEXT,
|
|
1979
|
-
* }]
|
|
1980
|
-
*/
|
|
1981
|
-
config: {
|
|
1982
|
-
type: Array,
|
|
1983
|
-
default: () => []
|
|
1984
|
-
},
|
|
1985
|
-
/**
|
|
1986
|
-
* Search term useful to filter all the data by text.
|
|
1987
|
-
* If the value is non-existant (null or undefined) the search bar won't be enabled.
|
|
1988
|
-
*/
|
|
1989
|
-
searchTerm: {
|
|
1990
|
-
type: re.props.value.type,
|
|
1991
|
-
default: void 0
|
|
1992
|
-
},
|
|
1993
|
-
/**
|
|
1994
|
-
* @deprecated from version 2.0.0. Use the config property instead.
|
|
1995
|
-
*/
|
|
1996
|
-
/**
|
|
1997
|
-
* Array of filters based on {@see BentoFilterBarModel}.
|
|
1998
|
-
* Each one of the elements in the array correspond to a filter that will
|
|
1999
|
-
* be created and rendered in the FilterBar.
|
|
2000
|
-
*
|
|
2001
|
-
* Can be used with v-model or independently with the @input event.
|
|
2002
|
-
*
|
|
2003
|
-
* @example
|
|
2004
|
-
* [{
|
|
2005
|
-
* field: 'company',
|
|
2006
|
-
* label: 'Company',
|
|
2007
|
-
* value: '200',
|
|
2008
|
-
* type: FilterType.TEXT,
|
|
2009
|
-
* }, {
|
|
2010
|
-
* field: 'name',
|
|
2011
|
-
* label: 'Name',
|
|
2012
|
-
* value: null,
|
|
2013
|
-
* type: FilterType.TEXT,
|
|
2014
|
-
* }]
|
|
2015
|
-
*/
|
|
2016
|
-
value: {
|
|
2017
|
-
type: Array,
|
|
2018
|
-
default: () => []
|
|
2019
|
-
},
|
|
2020
|
-
/**
|
|
2021
|
-
* An array of the values for each filter in the filter bar.
|
|
2022
|
-
* {@see BentoFilterValues}
|
|
2023
|
-
*
|
|
2024
|
-
* @example
|
|
2025
|
-
* [{
|
|
2026
|
-
* field: 'company',
|
|
2027
|
-
* value: '200',
|
|
2028
|
-
* }, {
|
|
2029
|
-
* field: 'name',
|
|
2030
|
-
* value: 'some text',
|
|
2031
|
-
* }]
|
|
2032
|
-
*/
|
|
2033
|
-
filterValues: {
|
|
2034
|
-
type: Array,
|
|
2035
|
-
default: () => []
|
|
2036
|
-
}
|
|
2037
|
-
},
|
|
2038
|
-
emits: [
|
|
2039
|
-
se.INPUT,
|
|
2040
|
-
se.UPDATE_FILTER_VALUES,
|
|
2041
|
-
le.CLEAR,
|
|
2042
|
-
le.INPUT,
|
|
2043
|
-
le.UPDATE
|
|
2044
|
-
],
|
|
2045
|
-
setup(l, { emit: e }) {
|
|
2046
|
-
const { t } = Z(), a = r(
|
|
2047
|
-
() => {
|
|
2048
|
-
var u, m;
|
|
2049
|
-
return (m = ((u = l.config) == null ? void 0 : u.length) > 0 ? l.config : l.value) == null ? void 0 : m.map((b) => {
|
|
2050
|
-
var S;
|
|
2051
|
-
let D = (S = l.filterValues.find(({ field: N }) => N === b.field)) == null ? void 0 : S.value;
|
|
2052
|
-
return D === void 0 && (D = (b == null ? void 0 : b.value) === void 0 && (b == null ? void 0 : b.defaultValue) !== void 0 ? b == null ? void 0 : b.defaultValue : b == null ? void 0 : b.value), { ...b, value: D !== void 0 ? D : b == null ? void 0 : b.value };
|
|
2053
|
-
});
|
|
2054
|
-
}
|
|
2055
|
-
), { addToast: n } = ht(), s = r(() => t("searchBar")), i = r(() => a.value.some(
|
|
2056
|
-
({ visible: m }) => m != null
|
|
2057
|
-
) ? a.value.some(({ visible: m }) => !m) : !1), c = r(
|
|
2058
|
-
() => a.value.filter(({ defaultValue: u }) => u !== void 0)
|
|
2059
|
-
), o = r(() => a.value.some(
|
|
2060
|
-
({ visible: m }) => m != null
|
|
2061
|
-
) ? a.value.filter(
|
|
2062
|
-
({ defaultValue: m, visible: b }) => m === void 0 && b
|
|
2063
|
-
) : a.value.filter(({ defaultValue: m }) => m === void 0)), y = r(() => l.searchTerm != null), F = r(
|
|
2064
|
-
() => a.value.filter(({ defaultValue: u }) => u == null).some(({ value: u }) => u != null)
|
|
2065
|
-
), C = r(() => c.value.length === 0 && F.value), h = r(() => c.value.length === 0 ? !1 : !a.value.filter(({ defaultValue: m }) => m !== void 0 || m !== null).every(({ value: m, defaultValue: b }) => JSON.stringify(m) === JSON.stringify(b)) || F.value), v = (u) => {
|
|
2066
|
-
e(se.INPUT, u), e(
|
|
2067
|
-
se.UPDATE_FILTER_VALUES,
|
|
2068
|
-
u == null ? void 0 : u.filter(({ value: m }) => m !== null || m !== void 0).map(({ field: m, value: b }) => ({ field: m, value: b }))
|
|
2069
|
-
);
|
|
2070
|
-
};
|
|
2071
|
-
return {
|
|
2072
|
-
// Values
|
|
2073
|
-
hasHiddenFilters: i,
|
|
2074
|
-
isClearAllVisible: C,
|
|
2075
|
-
isSearchBarEnabled: y,
|
|
2076
|
-
searchBarAriaLabel: s,
|
|
2077
|
-
persistentFilters: c,
|
|
2078
|
-
regularFilters: o,
|
|
2079
|
-
isResetAllVisible: h,
|
|
2080
|
-
valueAndFilterValuesPropsMerged: a,
|
|
2081
|
-
// Events
|
|
2082
|
-
updateAllFilters: v,
|
|
2083
|
-
updateFilterHandler: (u) => {
|
|
2084
|
-
const m = a.value.findIndex(
|
|
2085
|
-
(D) => D.field === u.field
|
|
2086
|
-
), b = a.value.slice();
|
|
2087
|
-
b[m].value = u.value, v(b);
|
|
2088
|
-
},
|
|
2089
|
-
clearAllFilters: () => {
|
|
2090
|
-
const u = a.value.slice(), m = a.value.map(({ value: b, ...D }) => ({
|
|
2091
|
-
...D,
|
|
2092
|
-
value: void 0
|
|
2093
|
-
}));
|
|
2094
|
-
n({
|
|
2095
|
-
text: t("filtersHaveBeenCleared"),
|
|
2096
|
-
action: {
|
|
2097
|
-
handler: () => v(u),
|
|
2098
|
-
text: t("undo")
|
|
2099
|
-
}
|
|
2100
|
-
}), v(m);
|
|
2101
|
-
},
|
|
2102
|
-
onSearchbarClear: () => {
|
|
2103
|
-
e(le.CLEAR);
|
|
2104
|
-
},
|
|
2105
|
-
onSearchbarInput: (u) => {
|
|
2106
|
-
e(le.INPUT, u), e(le.UPDATE, u);
|
|
2107
|
-
},
|
|
2108
|
-
resetAllFilters: () => {
|
|
2109
|
-
const u = a.value.slice(), m = a.value.map(({ defaultValue: b, ...D }) => ({
|
|
2110
|
-
...D,
|
|
2111
|
-
defaultValue: b,
|
|
2112
|
-
value: b
|
|
2113
|
-
}));
|
|
2114
|
-
n({
|
|
2115
|
-
text: t("filtersHaveBeenReset"),
|
|
2116
|
-
action: {
|
|
2117
|
-
handler: () => v(u),
|
|
2118
|
-
text: t("undo")
|
|
2119
|
-
}
|
|
2120
|
-
}), v(m);
|
|
2121
|
-
}
|
|
2122
|
-
};
|
|
2123
|
-
}
|
|
2124
|
-
});
|
|
2125
|
-
var ua = function() {
|
|
2126
|
-
var e = this, t = e._self._c;
|
|
2127
|
-
return e._self._setupProxy, t("div", { staticClass: "b-filter-bar" }, [t("div", { staticClass: "b-filter-bar__container" }, [e.isSearchBarEnabled || e.hasHiddenFilters || e.isClearAllVisible || e.isResetAllVisible ? t("div", { staticClass: "b-filter-bar__before-filters" }, [e.isSearchBarEnabled ? t("bento-search-bar", { staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": e.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: e.onSearchbarInput, clear: e.onSearchbarClear } }) : e._e(), e.hasHiddenFilters ? t("all-filters-modal", { staticClass: "b-filter-bar__all-filters-modal", attrs: { value: e.valueAndFilterValuesPropsMerged }, on: { input: e.updateAllFilters } }) : e._e(), t("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isClearAllVisible, expression: "isClearAllVisible" }], staticClass: "b-filter-bar__clear-all", on: { click: e.clearAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
2128
|
-
return [t("refresh-icon", { attrs: { "aria-hidden": "true" } })];
|
|
2129
|
-
}, proxy: !0 }], null, !1, 3891055301) }, [e._v(" " + e._s(e.$t("clearAll")) + " ")]), t("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isResetAllVisible, expression: "isResetAllVisible" }], staticClass: "b-filter-bar__reset-all", on: { click: e.resetAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
2130
|
-
return [t("refresh-icon", { attrs: { "aria-hidden": "true" } })];
|
|
2131
|
-
}, proxy: !0 }], null, !1, 3891055301) }, [e._v(" " + e._s(e.$t("resetAll")) + " ")])], 1) : e._e(), t("div", { staticClass: "b-filter-bar__filters-container" }, [t("div", { staticClass: "b-filter-bar__filters" }, [t("fixed-scroller", { staticClass: "b-filter-bar__fixed-scroller", attrs: { condensed: "" } }, [t("div", { staticClass: "b-filter-bar__scroller-content" }, [e.isSearchBarEnabled ? t("bento-search-bar", { staticClass: "b-filter-bar__search-bar", attrs: { "input-field-aria-label": e.searchBarAriaLabel, value: e.searchTerm, condensed: "" }, on: { input: e.onSearchbarInput, clear: e.onSearchbarClear } }) : e._e(), e.persistentFilters.length ? e._l(e.persistentFilters, function(a) {
|
|
2132
|
-
return t(a.type, { key: a.field, tag: "component", attrs: { field: a.field, label: a.label, options: a.options, value: a.value, "default-value": a.defaultValue }, on: { update: e.updateFilterHandler } });
|
|
2133
|
-
}) : e._e(), e._l(e.regularFilters, function(a) {
|
|
2134
|
-
return t(a.type, { key: a.field, tag: "component", attrs: { field: a.field, label: a.label, options: a.options, value: a.value }, on: { update: e.updateFilterHandler } });
|
|
2135
|
-
})], 2)])], 1), e.hasHiddenFilters || e.isClearAllVisible || e.isResetAllVisible ? t("div", { staticClass: "b-filter-bar__actions" }, [e.hasHiddenFilters ? t("all-filters-modal", { staticClass: "b-filter-bar__all-filters-modal", attrs: { value: e.valueAndFilterValuesPropsMerged }, on: { input: e.updateAllFilters } }) : e._e(), t("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isClearAllVisible, expression: "isClearAllVisible" }], staticClass: "b-filter-bar__clear-all", on: { click: e.clearAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
2136
|
-
return [t("refresh-icon", { attrs: { "aria-hidden": "true" } })];
|
|
2137
|
-
}, proxy: !0 }], null, !1, 3891055301) }, [e._v(" " + e._s(e.$t("clearAll")) + " ")]), t("filter-bar-button", { directives: [{ name: "show", rawName: "v-show", value: e.isResetAllVisible, expression: "isResetAllVisible" }], staticClass: "b-filter-bar__reset-all", on: { click: e.resetAllFilters }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
2138
|
-
return [t("refresh-icon", { attrs: { "aria-hidden": "true" } })];
|
|
2139
|
-
}, proxy: !0 }], null, !1, 3891055301) }, [e._v(" " + e._s(e.$t("resetAll")) + " ")])], 1) : e._e()])])]);
|
|
2140
|
-
}, ca = [], da = /* @__PURE__ */ I(
|
|
2141
|
-
ia,
|
|
2142
|
-
ua,
|
|
2143
|
-
ca,
|
|
2144
|
-
!1,
|
|
2145
|
-
null,
|
|
2146
|
-
"f8c09e65",
|
|
2147
|
-
null,
|
|
2148
|
-
null
|
|
2149
|
-
);
|
|
2150
|
-
const Za = da.exports;
|
|
1
|
+
import { B as r, b as a, a as B, c as n } from "./chunks/filter-bar.AhsOPMZ1.js";
|
|
2151
2
|
export {
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
3
|
+
r as BentoFilterBar,
|
|
4
|
+
a as BentoFilterBarEvent,
|
|
5
|
+
B as BentoFilterEvent,
|
|
6
|
+
n as BentoFilterItemType
|
|
2156
7
|
};
|
|
2157
8
|
//# sourceMappingURL=filter-bar.js.map
|