@adyen/bento-vue3 1.41.0 → 1.43.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 +4 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-row/data-grid-row.vue.d.ts +1 -350
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector/use-selector.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +33 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/components/file-uploader-file-card-animation/file-uploader-file-card-animation.vue.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/composables/use-truncated-file-name.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/file-uploader-file-card.types.d.ts +11 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/file-uploader-file-card.vue.d.ts +63 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/get-file-icon/get-file-icon.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/get-file-icon-color/get-file-icon-color.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/file-uploader-restrictions.types.d.ts +39 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/file-uploader-restrictions.vue.d.ts +68 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/composables/use-file-type-list/use-file-type-list.d.ts +11 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.types.d.ts +99 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.vue.d.ts +85 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/utils/format-file-size/format-file-size.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/utils/get-file-type/get-file-type.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/utils/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/file-uploader/utils/read-file/read-file.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +277 -37
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +21 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +30 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +30 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +44 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +5 -7
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +37 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-with-dropdown-filter/input-with-dropdown-filter.vue.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +37 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.props.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +274 -30
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/input-field-password/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.types.d.ts +77 -0
- package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.vue.d.ts +90 -0
- package/dist/@types/packages/vue2/src/components/input-field-password/utilities/input-field-password.validation.d.ts +37 -0
- package/dist/@types/packages/vue2/src/components/internal/tooltip/tooltip.vue.d.ts +43 -8
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -0
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.css +1 -0
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.BZIBGja0.js → action-bar.COQrEUYU.js} +5 -5
- package/dist/chunks/{action-bar.BZIBGja0.js.map → action-bar.COQrEUYU.js.map} +1 -1
- package/dist/chunks/{alert.CHddA_lK.js → alert.B9V6kUmo.js} +9 -9
- package/dist/chunks/{alert.CHddA_lK.js.map → alert.B9V6kUmo.js.map} +1 -1
- package/dist/chunks/{base-modal.6IqnDuvf.js → base-modal.ku0lyHOs.js} +2 -2
- package/dist/chunks/{base-modal.6IqnDuvf.js.map → base-modal.ku0lyHOs.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ByYlrFqZ.js → button-actions-with-menu.Bn7Kdx4v.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ByYlrFqZ.js.map → button-actions-with-menu.Bn7Kdx4v.js.map} +1 -1
- package/dist/chunks/{button-actions.ndsyVgzV.js → button-actions.Bjfo46Q_.js} +2 -2
- package/dist/chunks/{button-actions.ndsyVgzV.js.map → button-actions.Bjfo46Q_.js.map} +1 -1
- package/dist/chunks/{card.B6tMI3KP.js → card.D_XL2TWr.js} +2 -2
- package/dist/chunks/{card.B6tMI3KP.js.map → card.D_XL2TWr.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Zf-GivDW.js → checkbox-group.BUmkYc2R.js} +4 -4
- package/dist/chunks/{checkbox-group.Zf-GivDW.js.map → checkbox-group.BUmkYc2R.js.map} +1 -1
- package/dist/chunks/{checkbox.DdMkyTo5.js → checkbox.L94hTcPY.js} +16 -16
- package/dist/chunks/{checkbox.DdMkyTo5.js.map → checkbox.L94hTcPY.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.ChV7Jy6r.js → checkmark-circle-fill.ClIf1E3H.js} +7 -7
- package/dist/chunks/{checkmark-circle-fill.ChV7Jy6r.js.map → checkmark-circle-fill.ClIf1E3H.js.map} +1 -1
- package/dist/chunks/{code-snippet.Dp_tDJ-S.js → code-snippet.DbUGxmYi.js} +5 -5
- package/dist/chunks/{code-snippet.Dp_tDJ-S.js.map → code-snippet.DbUGxmYi.js.map} +1 -1
- package/dist/chunks/{controls-group.RL8WrYdy.js → controls-group.Dg_YRS1e.js} +2 -2
- package/dist/chunks/{controls-group.RL8WrYdy.js.map → controls-group.Dg_YRS1e.js.map} +1 -1
- package/dist/chunks/{copy.dbbJppdL.js → copy.CnzLQyvJ.js} +2 -2
- package/dist/chunks/{copy.dbbJppdL.js.map → copy.CnzLQyvJ.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BdRXcY4u.js → dashboard-section.YU5gKDEJ.js} +3 -3
- package/dist/chunks/{dashboard-section.BdRXcY4u.js.map → dashboard-section.YU5gKDEJ.js.map} +1 -1
- package/dist/chunks/{dashed-underline.D6ke20Vd.js → dashed-underline.BKfUevuM.js} +3 -3
- package/dist/chunks/{dashed-underline.D6ke20Vd.js.map → dashed-underline.BKfUevuM.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CRxJLJsn.js → data-grid-template.DI27ou71.js} +2 -2
- package/dist/chunks/{data-grid-template.CRxJLJsn.js.map → data-grid-template.DI27ou71.js.map} +1 -1
- package/dist/chunks/data-grid.DgPWs1hH.js +3374 -0
- package/dist/chunks/data-grid.DgPWs1hH.js.map +1 -0
- package/dist/chunks/{date-picker.B6HK0sb2.js → date-picker.DDsfecHp.js} +3 -3
- package/dist/chunks/{date-picker.B6HK0sb2.js.map → date-picker.DDsfecHp.js.map} +1 -1
- package/dist/chunks/{date-range-picker.3iWt1Cd6.js → date-range-picker.DjPmRy0E.js} +205 -202
- package/dist/chunks/date-range-picker.DjPmRy0E.js.map +1 -0
- package/dist/chunks/dot.pQfhaKda.js +29 -0
- package/dist/chunks/dot.pQfhaKda.js.map +1 -0
- package/dist/chunks/{dropdown-tag.ChFJ9l5g.js → dropdown-tag.BKDmDRSv.js} +3 -3
- package/dist/chunks/{dropdown-tag.ChFJ9l5g.js.map → dropdown-tag.BKDmDRSv.js.map} +1 -1
- package/dist/chunks/{dropdown.CMKdLPHi.js → dropdown.DpjMobyf.js} +4 -4
- package/dist/chunks/{dropdown.CMKdLPHi.js.map → dropdown.DpjMobyf.js.map} +1 -1
- package/dist/chunks/{error-message.CmMyB-k9.js → error-message.BYXS0kUN.js} +2 -2
- package/dist/chunks/{error-message.CmMyB-k9.js.map → error-message.BYXS0kUN.js.map} +1 -1
- package/dist/chunks/es6.b4enG1py.js.map +1 -1
- package/dist/chunks/file-uploader.cRbwpcAw.js +1074 -0
- package/dist/chunks/file-uploader.cRbwpcAw.js.map +1 -0
- package/dist/chunks/filter-bar.BwJTrH5U.js +2867 -0
- package/dist/chunks/filter-bar.BwJTrH5U.js.map +1 -0
- package/dist/chunks/{footer-actions.DAlN9pd3.js → footer-actions.DvIVWqWv.js} +2 -2
- package/dist/chunks/{footer-actions.DAlN9pd3.js.map → footer-actions.DvIVWqWv.js.map} +1 -1
- package/dist/chunks/{form-layout-title.w0J-ymMW.js → form-layout-title.BqNDCnLk.js} +2 -2
- package/dist/chunks/{form-layout-title.w0J-ymMW.js.map → form-layout-title.BqNDCnLk.js.map} +1 -1
- package/dist/chunks/{header.DQmnYarZ.js → header.C0NBlBJv.js} +4 -4
- package/dist/chunks/{header.DQmnYarZ.js.map → header.C0NBlBJv.js.map} +1 -1
- package/dist/chunks/index.CWuzEfiV.js +6 -0
- package/dist/chunks/index.CWuzEfiV.js.map +1 -0
- package/dist/chunks/index.lHdwuJAx.js +366 -0
- package/dist/chunks/index.lHdwuJAx.js.map +1 -0
- package/dist/chunks/{info-icon.CNPSAUM6.js → info-icon.CUC0fwLb.js} +2 -2
- package/dist/chunks/{info-icon.CNPSAUM6.js.map → info-icon.CUC0fwLb.js.map} +1 -1
- package/dist/chunks/input-field-password.DxNS4MmO.js +306 -0
- package/dist/chunks/input-field-password.DxNS4MmO.js.map +1 -0
- package/dist/chunks/{input-field.Bk2p3kIb.js → input-field.BQKEQIZd.js} +84 -83
- package/dist/chunks/input-field.BQKEQIZd.js.map +1 -0
- package/dist/chunks/{layout-row.rzhGrBQ3.js → layout-row.DcyZ3DP3.js} +2 -2
- package/dist/chunks/{layout-row.rzhGrBQ3.js.map → layout-row.DcyZ3DP3.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.58u_cWFs.js → listbox-option-tag.DU_NVK_z.js} +2 -2
- package/dist/chunks/{listbox-option-tag.58u_cWFs.js.map → listbox-option-tag.DU_NVK_z.js.map} +1 -1
- package/dist/chunks/{loading-button.CHujR70I.js → loading-button.CNWhVIPK.js} +10 -10
- package/dist/chunks/{loading-button.CHujR70I.js.map → loading-button.CNWhVIPK.js.map} +1 -1
- package/dist/chunks/{menu.DXVN_WLr.js → menu.BpqOdkxR.js} +3 -3
- package/dist/chunks/{menu.DXVN_WLr.js.map → menu.BpqOdkxR.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.D96Avr2Q.js → modal-fullscreen.DtgTb1Xh.js} +2 -2
- package/dist/chunks/{modal-fullscreen.D96Avr2Q.js.map → modal-fullscreen.DtgTb1Xh.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js → modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js.map → modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js.map} +1 -1
- package/dist/chunks/{pagination.D_4FRHE9.js → pagination.C34l_EYf.js} +2 -2
- package/dist/chunks/{pagination.D_4FRHE9.js.map → pagination.C34l_EYf.js.map} +1 -1
- package/dist/chunks/{popover.HArIkKve.js → popover.D9Zw4w9l.js} +2 -2
- package/dist/chunks/{popover.HArIkKve.js.map → popover.D9Zw4w9l.js.map} +1 -1
- package/dist/chunks/{promo-banner.BRn1iznD.js → promo-banner.CzR9ri5v.js} +2 -2
- package/dist/chunks/{promo-banner.BRn1iznD.js.map → promo-banner.CzR9ri5v.js.map} +1 -1
- package/dist/chunks/{radio-group.D94e5N12.js → radio-group.DIyCKfOQ.js} +4 -4
- package/dist/chunks/{radio-group.D94e5N12.js.map → radio-group.DIyCKfOQ.js.map} +1 -1
- package/dist/chunks/{search-bar.D_4u91te.js → search-bar.Dy0dBek2.js} +3 -3
- package/dist/chunks/{search-bar.D_4u91te.js.map → search-bar.Dy0dBek2.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CQ3aLyrM.js → secondary-nav.DYFnrUIK.js} +3 -3
- package/dist/chunks/{secondary-nav.CQ3aLyrM.js.map → secondary-nav.DYFnrUIK.js.map} +1 -1
- package/dist/chunks/{segmented-control.CueLfseV.js → segmented-control.B5H5Wiyz.js} +2 -2
- package/dist/chunks/{segmented-control.CueLfseV.js.map → segmented-control.B5H5Wiyz.js.map} +1 -1
- package/dist/chunks/{selection-card-group.Du3Cwf47.js → selection-card-group.BY8o4PYF.js} +12 -12
- package/dist/chunks/{selection-card-group.Du3Cwf47.js.map → selection-card-group.BY8o4PYF.js.map} +1 -1
- package/dist/chunks/show.ChPQTrAT.js +64 -0
- package/dist/chunks/show.ChPQTrAT.js.map +1 -0
- package/dist/chunks/{sidepanel.CGbl5x5B.js → sidepanel.BywianGe.js} +2 -2
- package/dist/chunks/{sidepanel.CGbl5x5B.js.map → sidepanel.BywianGe.js.map} +1 -1
- package/dist/chunks/step.Db0UJ8mx.js +264 -0
- package/dist/chunks/step.Db0UJ8mx.js.map +1 -0
- package/dist/chunks/{structured-list-item.CujUEOTK.js → structured-list-item.C_6ju-IY.js} +4 -4
- package/dist/chunks/{structured-list-item.CujUEOTK.js.map → structured-list-item.C_6ju-IY.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.DF9waESp.js → summary-grid-item-custom.FxBnzHzb.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.DF9waESp.js.map → summary-grid-item-custom.FxBnzHzb.js.map} +1 -1
- package/dist/chunks/{tag.wfnhGWVG.js → tag.xvqrfTwk.js} +2 -2
- package/dist/chunks/{tag.wfnhGWVG.js.map → tag.xvqrfTwk.js.map} +1 -1
- package/dist/chunks/{teleport.L8qFCYpr.js → teleport.CI0k6eaC.js} +9 -9
- package/dist/chunks/teleport.CI0k6eaC.js.map +1 -0
- package/dist/chunks/{textarea.DlPNxnUQ.js → textarea.vAp6HFi9.js} +2 -2
- package/dist/chunks/{textarea.DlPNxnUQ.js.map → textarea.vAp6HFi9.js.map} +1 -1
- package/dist/chunks/{timeline-item.B8VvkDfR.js → timeline-item.ND_EMuwP.js} +5 -5
- package/dist/chunks/{timeline-item.B8VvkDfR.js.map → timeline-item.ND_EMuwP.js.map} +1 -1
- package/dist/chunks/tooltip.BvJoy09y.js +203 -0
- package/dist/chunks/tooltip.BvJoy09y.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js → tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js.map → tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DaRzXFIt.js → use-cached-selected-values.BOZK76mN.js} +8 -5
- package/dist/chunks/{use-cached-selected-values.DaRzXFIt.js.map → use-cached-selected-values.BOZK76mN.js.map} +1 -1
- package/dist/chunks/{warning-filled.Dm_HhqzW.js → warning-filled.OUOUbA6k.js} +2 -2
- package/dist/chunks/{warning-filled.Dm_HhqzW.js.map → warning-filled.OUOUbA6k.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +5 -0
- package/dist/file-uploader.js.map +1 -0
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +228 -219
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +10 -0
- package/dist/input-field-password.js.map +1 -0
- package/dist/input-field.js +1 -1
- package/dist/internal.js +7 -7
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +98 -34
- package/dist/styles/bento-light.css +98 -34
- package/dist/styles/bento.css +98 -34
- package/dist/styles/legacy.css +106 -42
- package/dist/styles/styleguide.css +98 -34
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +9 -8
- package/dist/chunks/data-grid.BC2tOBxm.js +0 -3229
- package/dist/chunks/data-grid.BC2tOBxm.js.map +0 -1
- package/dist/chunks/date-range-picker.3iWt1Cd6.js.map +0 -1
- package/dist/chunks/filter-bar.pKcJryD3.js +0 -2898
- package/dist/chunks/filter-bar.pKcJryD3.js.map +0 -1
- package/dist/chunks/index.ChdIlujs.js +0 -248
- package/dist/chunks/index.ChdIlujs.js.map +0 -1
- package/dist/chunks/input-field.Bk2p3kIb.js.map +0 -1
- package/dist/chunks/step.CwuThZ0G.js +0 -285
- package/dist/chunks/step.CwuThZ0G.js.map +0 -1
- package/dist/chunks/teleport.L8qFCYpr.js.map +0 -1
- package/dist/chunks/tooltip.BEl_LdFo.js +0 -188
- package/dist/chunks/tooltip.BEl_LdFo.js.map +0 -1
|
@@ -1,2898 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, useSlots as Oe, useAttrs as Et, computed as b, ref as k, openBlock as y, createBlock as E, unref as C, normalizeClass as he, withCtx as _, createTextVNode as j, toDisplayString as H, createCommentVNode as z, createElementBlock as q, createElementVNode as N, renderSlot as re, createVNode as I, watch as de, nextTick as st, resolveComponent as $, withKeys as be, toRef as G, onBeforeUpdate as ke, provide as it, mergeProps as ie, Fragment as $e, reactive as ut, createSlots as Te, renderList as fe, normalizeProps as Le, guardReactiveProps as Re, onMounted as Vt, resolveDynamicComponent as Me, withDirectives as Ee, vShow as Ve } from "vue";
|
|
2
|
-
import { B as Ae, b as _e } from "./search-bar.D_4u91te.js";
|
|
3
|
-
import { u as wt } from "./use-bento-toast-controller.C2wUDcoc.js";
|
|
4
|
-
import { u as ce } from "./i18n.CPGoe9tN.js";
|
|
5
|
-
import { _ as Lt } from "./modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js";
|
|
6
|
-
import { g as Rt } from "./base-modal.6IqnDuvf.js";
|
|
7
|
-
import { B as Ot } from "./button.pwNCxwPu.js";
|
|
8
|
-
import { B as Ye, I as kt, b as Nt } from "./popover.HArIkKve.js";
|
|
9
|
-
import { B as Mt } from "./directive.O3yEdalv.js";
|
|
10
|
-
import { B as Ht } from "./events.FNmSWp_P.js";
|
|
11
|
-
import { g as Ke } from "./generate-uid.D-HFI38h.js";
|
|
12
|
-
import { u as Kt } from "./use-click-outside.D6aIgS15.js";
|
|
13
|
-
import { B as Fe, d as rt } from "./typography.DNzU41ah.js";
|
|
14
|
-
import { u as dt } from "./aria-label.CaUURpnB.js";
|
|
15
|
-
import { B as ct, a as ze } from "./base-button.N4QTXNIp.js";
|
|
16
|
-
import { g as bt } from "./get-slot-text.D5WBGjic.js";
|
|
17
|
-
import { u as ft } from "./use-has-slot.B7eQSabc.js";
|
|
18
|
-
import { C as pt, a as vt } from "./chevron-up.DQZG_BP3.js";
|
|
19
|
-
import { _ as Z } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
20
|
-
import { B as jt } from "./teleport.L8qFCYpr.js";
|
|
21
|
-
import { B as qt } from "./radio-group.D94e5N12.js";
|
|
22
|
-
import { B as je } from "./input-field.Bk2p3kIb.js";
|
|
23
|
-
import { u as mt, B as Jt } from "./dropdown.CMKdLPHi.js";
|
|
24
|
-
import { g as Yt } from "./focus-trap.CwkbHfT8.js";
|
|
25
|
-
import { B as qe } from "./divider.ugNXYI-T.js";
|
|
26
|
-
import { B as zt } from "./date-picker.B6HK0sb2.js";
|
|
27
|
-
import { f as ye } from "./date.DVGj7WKQ.js";
|
|
28
|
-
import { g as yt } from "./get-date-locale.BN8xEjY0.js";
|
|
29
|
-
import { a as Wt, i as Gt } from "./calendar.S9HFQA8j.js";
|
|
30
|
-
import { B as Zt, D as Qt, i as We } from "./date-range-picker.3iWt1Cd6.js";
|
|
31
|
-
import { D as Ge } from "./date-input.BqBdAO1E.js";
|
|
32
|
-
import { B as Xt } from "./button-actions.ndsyVgzV.js";
|
|
33
|
-
import { B as xt } from "./avatar.DqdDHXay.js";
|
|
34
|
-
import { c as Ze, b as el } from "./use-cached-selected-values.DaRzXFIt.js";
|
|
35
|
-
import { L as Ft } from "./listbox-option-tag.58u_cWFs.js";
|
|
36
|
-
import { u as tl } from "./use-country-items.CTyhUEHS.js";
|
|
37
|
-
import { B as ll } from "./payment-method.Lwl-3chY.js";
|
|
38
|
-
import { R as we } from "./refresh.DvQeGwUF.js";
|
|
39
|
-
import { F as al } from "./fixed-scroller.DM2JOokC.js";
|
|
40
|
-
import "../assets/filter-bar.css";
|
|
41
|
-
const nl = { class: "b-filter-bar-button__container" }, ol = { class: "b-filter-bar-button__label-container" }, sl = {
|
|
42
|
-
key: 1,
|
|
43
|
-
class: "b-filter-bar-button__chevron"
|
|
44
|
-
}, il = {}, ul = /* @__PURE__ */ W({
|
|
45
|
-
...il,
|
|
46
|
-
__name: "filter-bar-button",
|
|
47
|
-
props: {
|
|
48
|
-
/**
|
|
49
|
-
* The number of applied values within the filter.
|
|
50
|
-
* Text can also be applied here such as 'All'.
|
|
51
|
-
* e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
|
|
52
|
-
*/
|
|
53
|
-
appliedFiltersCount: { type: [String, Number], default: null },
|
|
54
|
-
/**
|
|
55
|
-
* Disables button functionality.
|
|
56
|
-
*/
|
|
57
|
-
disabled: { type: Boolean, default: !1 },
|
|
58
|
-
/**
|
|
59
|
-
* Signifies if the filter is open or closed.
|
|
60
|
-
*/
|
|
61
|
-
isFilterOpen: { type: Boolean, default: !1 },
|
|
62
|
-
/**
|
|
63
|
-
* Toggles if a chevron icon should be displayed in the button.
|
|
64
|
-
* The chevron will change depending on the open state of the filter.
|
|
65
|
-
*/
|
|
66
|
-
hasChevron: { type: Boolean, default: !1 },
|
|
67
|
-
/**
|
|
68
|
-
* A secondary label to be added next to the primary for additional filtering information.
|
|
69
|
-
* i.e. Can be used to show the set value for said filter.
|
|
70
|
-
*/
|
|
71
|
-
secondaryLabel: { type: String, default: null }
|
|
72
|
-
},
|
|
73
|
-
emits: ["click"],
|
|
74
|
-
setup(e, { emit: l }) {
|
|
75
|
-
const a = e, i = l, t = Oe(), o = Et(), n = ft(t), r = b(() => t.default ? bt(t)("default") : null), s = dt({ ariaLabel: r }), u = k(null), m = b(() => {
|
|
76
|
-
var c;
|
|
77
|
-
return {
|
|
78
|
-
"aria-controls": (c = o["aria-controls"]) == null ? void 0 : c.toString()
|
|
79
|
-
};
|
|
80
|
-
}), T = b(() => ({
|
|
81
|
-
"b-filter-bar-button--filter-open": a.isFilterOpen,
|
|
82
|
-
"b-filter-bar-button--active": a.appliedFiltersCount || a.secondaryLabel || a.hasChevron,
|
|
83
|
-
"b-filter-bar-button--with-secondary-label": a.secondaryLabel,
|
|
84
|
-
"b-filter-bar-button--with-chevron": a.hasChevron
|
|
85
|
-
})), D = (c) => {
|
|
86
|
-
a.disabled || i("click", c);
|
|
87
|
-
};
|
|
88
|
-
return (c, h) => (y(), E(C(ct), {
|
|
89
|
-
ref_key: "filterBarButtonRef",
|
|
90
|
-
ref: u,
|
|
91
|
-
class: he(["b-filter-bar-button", T.value]),
|
|
92
|
-
disabled: e.disabled,
|
|
93
|
-
"aria-label": C(s),
|
|
94
|
-
"aria-controls": m.value["aria-controls"],
|
|
95
|
-
type: "button",
|
|
96
|
-
onClick: D
|
|
97
|
-
}, {
|
|
98
|
-
iconRight: _(() => [
|
|
99
|
-
e.appliedFiltersCount && !e.hasChevron ? (y(), E(C(Fe), {
|
|
100
|
-
key: 0,
|
|
101
|
-
class: "b-filter-bar-button__counter",
|
|
102
|
-
el: "span",
|
|
103
|
-
variant: "body",
|
|
104
|
-
stronger: ""
|
|
105
|
-
}, {
|
|
106
|
-
default: _(() => [
|
|
107
|
-
j(H(e.appliedFiltersCount), 1)
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})) : z("", !0),
|
|
111
|
-
e.hasChevron ? (y(), q("div", sl, [
|
|
112
|
-
e.isFilterOpen ? (y(), E(C(pt), {
|
|
113
|
-
key: 0,
|
|
114
|
-
"aria-hidden": "true"
|
|
115
|
-
})) : (y(), E(C(vt), {
|
|
116
|
-
key: 1,
|
|
117
|
-
"aria-hidden": "true"
|
|
118
|
-
}))
|
|
119
|
-
])) : z("", !0)
|
|
120
|
-
]),
|
|
121
|
-
default: _(() => [
|
|
122
|
-
N("div", nl, [
|
|
123
|
-
C(n)("iconLeft") ? re(c.$slots, "iconLeft", { key: 0 }, void 0, !0) : z("", !0),
|
|
124
|
-
N("div", ol, [
|
|
125
|
-
I(C(Fe), {
|
|
126
|
-
el: "span",
|
|
127
|
-
variant: "body",
|
|
128
|
-
stronger: "",
|
|
129
|
-
class: "b-filter-bar-button__label"
|
|
130
|
-
}, {
|
|
131
|
-
default: _(() => [
|
|
132
|
-
re(c.$slots, "default", {}, void 0, !0)
|
|
133
|
-
]),
|
|
134
|
-
_: 3
|
|
135
|
-
}),
|
|
136
|
-
e.secondaryLabel ? (y(), E(C(Fe), {
|
|
137
|
-
key: 0,
|
|
138
|
-
el: "span",
|
|
139
|
-
variant: "body",
|
|
140
|
-
stronger: "",
|
|
141
|
-
class: "b-filter-bar-button__secondary-label"
|
|
142
|
-
}, {
|
|
143
|
-
default: _(() => [
|
|
144
|
-
j(H(e.secondaryLabel), 1)
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
})) : z("", !0)
|
|
148
|
-
])
|
|
149
|
-
])
|
|
150
|
-
]),
|
|
151
|
-
_: 3
|
|
152
|
-
}, 8, ["class", "disabled", "aria-label", "aria-controls"]));
|
|
153
|
-
}
|
|
154
|
-
}), Be = /* @__PURE__ */ Z(ul, [["__scopeId", "data-v-fe3e2223"]]);
|
|
155
|
-
var F = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.UPDATE = "update", e))(F || {}), Ie = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.UPDATE_FILTER_VALUES = "update:filter-values", e))(Ie || {}), le = /* @__PURE__ */ ((e) => (e.BOOLEAN = "BentoBooleanFilter", e.RANGE = "BentoRangeFilter", e.INPUT = "BentoInputFilter", e.INPUT_DROPDOWN = "BentoInputWithDropdownFilter", e.SELECT = "BentoSelectFilter", e.SELECT_AVATAR = "BentoSelectAvatarFilter", e.SELECT_COUNTRY = "BentoSelectCountryFilter", e.SELECT_CURRENCY = "BentoSelectCurrencyFilter", e.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", e.SELECT_TAG = "BentoSelectTagFilter", e.DATE = "BentoDateFilter", e.DATE_RANGE = "BentoDateRangeFilter", e))(le || {}), ne = /* @__PURE__ */ ((e) => (e.APPLY = "apply", e.CLEAR = "clear", e.OPEN = "open", e.CLOSE = "close", e.RESET = "reset", e))(ne || {});
|
|
156
|
-
const Qe = {
|
|
157
|
-
"en-US": {
|
|
158
|
-
clear: "Clear",
|
|
159
|
-
apply: "Apply",
|
|
160
|
-
reset: "Reset",
|
|
161
|
-
filterButton: "Filter by {function}"
|
|
162
|
-
},
|
|
163
|
-
"pt-BR": {
|
|
164
|
-
clear: "Limpar",
|
|
165
|
-
apply: "Aplicar",
|
|
166
|
-
reset: "Reiniciar"
|
|
167
|
-
},
|
|
168
|
-
"ja-JP": {
|
|
169
|
-
clear: "クリア",
|
|
170
|
-
apply: "適用",
|
|
171
|
-
reset: "リセット"
|
|
172
|
-
}
|
|
173
|
-
}, rl = W({
|
|
174
|
-
i18n: { messages: Qe },
|
|
175
|
-
name: "bento-base-filter",
|
|
176
|
-
components: {
|
|
177
|
-
BentoPopover: Ye,
|
|
178
|
-
BentoTeleport: jt,
|
|
179
|
-
FilterBarButton: Be
|
|
180
|
-
},
|
|
181
|
-
directives: { BentoClickOutsideDirective: Mt },
|
|
182
|
-
props: {
|
|
183
|
-
/**
|
|
184
|
-
* Total count of applied filters
|
|
185
|
-
*/
|
|
186
|
-
appliedFiltersCount: { type: [String, Number], default: null },
|
|
187
|
-
/**
|
|
188
|
-
* Overrides the label of the popover visibility toggle button text.
|
|
189
|
-
*/
|
|
190
|
-
buttonLabel: { type: String, default: void 0 },
|
|
191
|
-
/**
|
|
192
|
-
* Sets the secondary label text of the popover visibility toggle button text.
|
|
193
|
-
*/
|
|
194
|
-
buttonSecondaryLabel: { type: String, default: void 0 },
|
|
195
|
-
/**
|
|
196
|
-
* Default value of the filter to reset to.
|
|
197
|
-
*/
|
|
198
|
-
defaultValue: {
|
|
199
|
-
type: [Object, Number, Boolean, Array, String],
|
|
200
|
-
default: null
|
|
201
|
-
},
|
|
202
|
-
/**
|
|
203
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
204
|
-
* Used for the allFiltersModal component.
|
|
205
|
-
*/
|
|
206
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
207
|
-
/**
|
|
208
|
-
* Allows to handle the controls (apply/clear) from outside
|
|
209
|
-
* of the component
|
|
210
|
-
*/
|
|
211
|
-
controlled: { type: Boolean, default: !1 },
|
|
212
|
-
/**
|
|
213
|
-
* Disable the "apply" button
|
|
214
|
-
*/
|
|
215
|
-
disableApplyButton: { type: Boolean, default: !1 },
|
|
216
|
-
/**
|
|
217
|
-
* Disable the secondary button action.
|
|
218
|
-
*/
|
|
219
|
-
disableSecondaryButton: { type: Boolean, default: !1 },
|
|
220
|
-
/**
|
|
221
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
222
|
-
* Should be unique per filter bar.
|
|
223
|
-
*/
|
|
224
|
-
field: { type: String, required: !0 },
|
|
225
|
-
/**
|
|
226
|
-
* Label text to be displayed
|
|
227
|
-
*/
|
|
228
|
-
label: { type: String, required: !0 },
|
|
229
|
-
/**
|
|
230
|
-
* Sets the size of the container to fit its content
|
|
231
|
-
*/
|
|
232
|
-
fitContent: Ye.props.fitContent
|
|
233
|
-
},
|
|
234
|
-
emits: [
|
|
235
|
-
ne.APPLY,
|
|
236
|
-
ne.CLEAR,
|
|
237
|
-
ne.OPEN,
|
|
238
|
-
ne.CLOSE,
|
|
239
|
-
ne.RESET
|
|
240
|
-
],
|
|
241
|
-
setup(e, { emit: l }) {
|
|
242
|
-
const { t: a } = ce({ messages: Qe }), i = Ke("base-filter-popover"), t = k(!1), o = k(null), n = k(null), r = b(() => e.defaultValue !== null), s = b(
|
|
243
|
-
() => r.value ? a("filterButton", {
|
|
244
|
-
function: e.label
|
|
245
|
-
}) : u.value
|
|
246
|
-
), u = b(() => e.buttonLabel || e.label), m = () => {
|
|
247
|
-
t.value && (t.value = !1, st(() => {
|
|
248
|
-
var P, R;
|
|
249
|
-
(R = (P = o.value) == null ? void 0 : P.$el) == null || R.focus();
|
|
250
|
-
}), l(ne.CLOSE));
|
|
251
|
-
}, T = () => {
|
|
252
|
-
m(), r.value ? l(ne.RESET) : l(ne.CLEAR);
|
|
253
|
-
}, D = () => m(), c = () => {
|
|
254
|
-
t.value ? m() : (t.value = !0, l(ne.OPEN));
|
|
255
|
-
}, h = () => {
|
|
256
|
-
m(), l(ne.APPLY);
|
|
257
|
-
}, L = b(() => [
|
|
258
|
-
{
|
|
259
|
-
title: a("apply"),
|
|
260
|
-
event: h,
|
|
261
|
-
disabled: e.disableApplyButton
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
title: r.value ? a("reset") : a("clear"),
|
|
265
|
-
event: T,
|
|
266
|
-
disabled: e.disableSecondaryButton
|
|
267
|
-
}
|
|
268
|
-
]);
|
|
269
|
-
return de(
|
|
270
|
-
() => t.value,
|
|
271
|
-
(P, R) => {
|
|
272
|
-
var U, A;
|
|
273
|
-
!P && R && (A = (U = o.value) == null ? void 0 : U.filterBarButtonRef) != null && A.bentoBaseButtonRef && o.value.filterBarButtonRef.bentoBaseButtonRef.focus();
|
|
274
|
-
}
|
|
275
|
-
), Kt(n, D, { ignore: [o] }), {
|
|
276
|
-
// Values
|
|
277
|
-
actions: L,
|
|
278
|
-
popoverId: i,
|
|
279
|
-
isFilterOpen: t,
|
|
280
|
-
isPersistentFilter: r,
|
|
281
|
-
computedAriaLabel: s,
|
|
282
|
-
computedButtonText: u,
|
|
283
|
-
// Enums
|
|
284
|
-
BentoTooltipPosition: Ht,
|
|
285
|
-
// Events
|
|
286
|
-
onClickFilter: c,
|
|
287
|
-
onClickApply: h,
|
|
288
|
-
onClickSecondaryAction: T,
|
|
289
|
-
onClickOutside: D,
|
|
290
|
-
closePopover: m,
|
|
291
|
-
// Refs
|
|
292
|
-
filterButtonRef: o,
|
|
293
|
-
popoverRef: n
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
}), dl = { key: 0 }, cl = {
|
|
297
|
-
key: 1,
|
|
298
|
-
class: "b-base-filter"
|
|
299
|
-
};
|
|
300
|
-
function bl(e, l, a, i, t, o) {
|
|
301
|
-
const n = $("filter-bar-button"), r = $("bento-popover"), s = $("bento-teleport");
|
|
302
|
-
return e.onlySlot ? (y(), q("div", dl, [
|
|
303
|
-
re(e.$slots, "default", {}, void 0, !0)
|
|
304
|
-
])) : (y(), q("div", cl, [
|
|
305
|
-
I(n, {
|
|
306
|
-
ref: "filterButtonRef",
|
|
307
|
-
"aria-label": e.computedAriaLabel,
|
|
308
|
-
"aria-controls": e.isFilterOpen ? e.popoverId : null,
|
|
309
|
-
"has-chevron": e.isPersistentFilter,
|
|
310
|
-
"is-filter-open": e.isFilterOpen,
|
|
311
|
-
"applied-filters-count": e.appliedFiltersCount,
|
|
312
|
-
"secondary-label": e.buttonSecondaryLabel,
|
|
313
|
-
onClick: e.onClickFilter,
|
|
314
|
-
onKeydown: be(e.closePopover, ["esc"])
|
|
315
|
-
}, {
|
|
316
|
-
default: _(() => [
|
|
317
|
-
j(H(e.computedButtonText), 1)
|
|
318
|
-
]),
|
|
319
|
-
_: 1
|
|
320
|
-
}, 8, ["aria-label", "aria-controls", "has-chevron", "is-filter-open", "applied-filters-count", "secondary-label", "onClick", "onKeydown"]),
|
|
321
|
-
e.filterButtonRef ? (y(), E(s, { key: 0 }, {
|
|
322
|
-
default: _(() => [
|
|
323
|
-
e.filterButtonRef ? (y(), E(r, {
|
|
324
|
-
key: 0,
|
|
325
|
-
id: e.popoverId,
|
|
326
|
-
ref: "popoverRef",
|
|
327
|
-
class: "b-base-filter__popover",
|
|
328
|
-
divider: "",
|
|
329
|
-
open: e.isFilterOpen,
|
|
330
|
-
actions: e.controlled ? null : e.actions,
|
|
331
|
-
"actions-layout": "space-between",
|
|
332
|
-
"target-element": e.filterButtonRef,
|
|
333
|
-
title: e.controlled ? null : e.label,
|
|
334
|
-
"fit-content": e.fitContent,
|
|
335
|
-
position: "bottom-start",
|
|
336
|
-
"without-space": e.controlled,
|
|
337
|
-
"fallback-position": ["bottom-end"]
|
|
338
|
-
}, {
|
|
339
|
-
default: _(() => [
|
|
340
|
-
N("div", {
|
|
341
|
-
onKeydown: l[0] || (l[0] = be((...u) => e.closePopover && e.closePopover(...u), ["esc"]))
|
|
342
|
-
}, [
|
|
343
|
-
re(e.$slots, "default", {}, void 0, !0)
|
|
344
|
-
], 32)
|
|
345
|
-
]),
|
|
346
|
-
_: 3
|
|
347
|
-
}, 8, ["id", "open", "actions", "target-element", "title", "fit-content", "without-space"])) : z("", !0)
|
|
348
|
-
]),
|
|
349
|
-
_: 3
|
|
350
|
-
})) : z("", !0)
|
|
351
|
-
]));
|
|
352
|
-
}
|
|
353
|
-
const ge = /* @__PURE__ */ Z(rl, [["render", bl], ["__scopeId", "data-v-41d3723b"]]), fl = (e) => e instanceof Array, Xe = (e) => fl(e) ? e.length === 0 || e.every((l) => l === "") : !e, xe = (e, l) => JSON.stringify(e) === JSON.stringify(l), pe = (e, l) => {
|
|
354
|
-
const a = k(e.value);
|
|
355
|
-
de(
|
|
356
|
-
() => e.value,
|
|
357
|
-
() => {
|
|
358
|
-
a.value = e.value;
|
|
359
|
-
}
|
|
360
|
-
);
|
|
361
|
-
const i = b(() => Xe(e.value)), t = b(
|
|
362
|
-
() => l.value !== null ? xe(l.value, e.value) : i.value
|
|
363
|
-
), o = b(() => xe(a.value, e.value) || Xe(a.value) && i.value);
|
|
364
|
-
return {
|
|
365
|
-
internalFilterValue: a,
|
|
366
|
-
isSecondaryButtonDisabled: t,
|
|
367
|
-
isApplyButtonDisabled: o
|
|
368
|
-
};
|
|
369
|
-
}, se = (e, l) => {
|
|
370
|
-
const a = e == null ? void 0 : e.toString();
|
|
371
|
-
return (a == null ? void 0 : a.length) > l ? `${a == null ? void 0 : a.slice(0, l)}...` : a;
|
|
372
|
-
}, pl = W({
|
|
373
|
-
name: "bento-input-filter",
|
|
374
|
-
components: {
|
|
375
|
-
BentoBaseFilter: ge,
|
|
376
|
-
BentoInputField: je
|
|
377
|
-
},
|
|
378
|
-
props: {
|
|
379
|
-
/**
|
|
380
|
-
* Default value of the filter to reset to.
|
|
381
|
-
*/
|
|
382
|
-
defaultValue: { type: String, default: null },
|
|
383
|
-
/**
|
|
384
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
385
|
-
* Should be unique per filter bar.
|
|
386
|
-
*/
|
|
387
|
-
field: { type: String, required: !0 },
|
|
388
|
-
/**
|
|
389
|
-
* Label text to be displayed
|
|
390
|
-
*/
|
|
391
|
-
label: { type: String, required: !0 },
|
|
392
|
-
/**
|
|
393
|
-
* Current value of the filter.
|
|
394
|
-
* If the options.variant is equal to 'dropdown', the value should be of type `{ inputValue: string | null; dropdownValue?: string }`.
|
|
395
|
-
*/
|
|
396
|
-
value: { type: [String, Object], default: null },
|
|
397
|
-
/**
|
|
398
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
399
|
-
* Used for the allFiltersModal component.
|
|
400
|
-
*/
|
|
401
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
402
|
-
/**
|
|
403
|
-
* List of options that are needed to setup the filter
|
|
404
|
-
* Available options:
|
|
405
|
-
* - dropdown: all the dropdown properties that can be set in the inner dropdown of the input field. @see BentoDropdown for more info.
|
|
406
|
-
* - dropdownPosition: allow the user to set the dropdown on the left or right side. Accepts the `start` or `end` values.
|
|
407
|
-
*/
|
|
408
|
-
options: {
|
|
409
|
-
type: Object,
|
|
410
|
-
default: void 0
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
emits: [F.INPUT, F.UPDATE],
|
|
414
|
-
setup(e, { emit: l }) {
|
|
415
|
-
var w, g;
|
|
416
|
-
const a = k(null), i = k((g = (w = e == null ? void 0 : e.options) == null ? void 0 : w.dropdown) == null ? void 0 : g.value), t = b(
|
|
417
|
-
() => {
|
|
418
|
-
var d, f;
|
|
419
|
-
return ((d = e == null ? void 0 : e.options) == null ? void 0 : d.variant) === "dropdown" && ((f = e == null ? void 0 : e.options) == null ? void 0 : f.dropdown) !== void 0;
|
|
420
|
-
}
|
|
421
|
-
), o = b(
|
|
422
|
-
() => {
|
|
423
|
-
var d;
|
|
424
|
-
return t.value ? { ...(d = e == null ? void 0 : e.options) == null ? void 0 : d.dropdown, value: i.value } : void 0;
|
|
425
|
-
}
|
|
426
|
-
), n = b(() => {
|
|
427
|
-
var d;
|
|
428
|
-
return ((d = e == null ? void 0 : e.options) == null ? void 0 : d.variant) === "dropdown" ? "dropdown" : "default";
|
|
429
|
-
}), r = b(
|
|
430
|
-
() => {
|
|
431
|
-
var d;
|
|
432
|
-
return t.value ? (d = e.value) == null ? void 0 : d.inputValue : e == null ? void 0 : e.value;
|
|
433
|
-
}
|
|
434
|
-
), { internalFilterValue: s, isSecondaryButtonDisabled: u, isApplyButtonDisabled: m } = pe(
|
|
435
|
-
r,
|
|
436
|
-
G(e, "defaultValue")
|
|
437
|
-
), T = b(
|
|
438
|
-
() => e.defaultValue === null ? e.label : se(r.value, 18)
|
|
439
|
-
), D = b(
|
|
440
|
-
() => e.defaultValue === null ? se(r.value, 12) : null
|
|
441
|
-
), c = b(() => ({
|
|
442
|
-
"b-input-filter--only-slot": e.onlySlot
|
|
443
|
-
}));
|
|
444
|
-
ke(() => {
|
|
445
|
-
s.value === "" && (s.value = null);
|
|
446
|
-
}), de(a, () => {
|
|
447
|
-
var d;
|
|
448
|
-
(d = a.value) == null || d.focusInput();
|
|
449
|
-
});
|
|
450
|
-
const h = () => {
|
|
451
|
-
s.value = r.value;
|
|
452
|
-
}, L = () => {
|
|
453
|
-
!s.value && e.defaultValue !== null && (s.value = e.defaultValue), l(F.UPDATE, {
|
|
454
|
-
...e,
|
|
455
|
-
value: t.value ? { inputValue: s.value, dropdownValue: i.value } : s.value
|
|
456
|
-
});
|
|
457
|
-
}, P = () => l(F.UPDATE, { ...e, value: e.defaultValue }), R = () => {
|
|
458
|
-
s.value = null, L();
|
|
459
|
-
}, U = () => {
|
|
460
|
-
l(F.INPUT, { ...e, value: s.value });
|
|
461
|
-
}, A = (d) => {
|
|
462
|
-
s.value = d;
|
|
463
|
-
}, B = (d) => {
|
|
464
|
-
i.value = d;
|
|
465
|
-
};
|
|
466
|
-
return it(kt, t.value), de(
|
|
467
|
-
() => e.options,
|
|
468
|
-
() => {
|
|
469
|
-
var d, f, O;
|
|
470
|
-
((d = e.options) != null && d.dropdown || (f = e.options) != null && f.dropdownPosition || (O = e.options) != null && O.variant) && rt(
|
|
471
|
-
'BentoInputFilter "options" property',
|
|
472
|
-
`BentoInputFilter "options" no longer supports "dropdown", "dropdownPosition" or "variant" attributes.
|
|
473
|
-
Use the "BentoFilterItemType.INPUT_DROPDOWN" instead of "BentoFilterItemType.INPUT"
|
|
474
|
-
<bento-filter-bar
|
|
475
|
-
:config="[{
|
|
476
|
-
field: 'name',
|
|
477
|
-
label: 'Name',
|
|
478
|
-
type: BentoFilterItemType.INPUT_DROPDOWN,
|
|
479
|
-
options: [...],
|
|
480
|
-
}]"
|
|
481
|
-
/>`,
|
|
482
|
-
"2.0.0"
|
|
483
|
-
);
|
|
484
|
-
},
|
|
485
|
-
{ immediate: !0 }
|
|
486
|
-
), {
|
|
487
|
-
// Values
|
|
488
|
-
buttonLabel: T,
|
|
489
|
-
buttonSecondaryLabel: D,
|
|
490
|
-
conditionalClasses: c,
|
|
491
|
-
dropdownProp: o,
|
|
492
|
-
inputVariant: n,
|
|
493
|
-
internalFilterValue: s,
|
|
494
|
-
isApplyButtonDisabled: m,
|
|
495
|
-
isDropdownVariant: t,
|
|
496
|
-
isSecondaryButtonDisabled: u,
|
|
497
|
-
// Refs
|
|
498
|
-
inputTextRef: a,
|
|
499
|
-
// Events
|
|
500
|
-
updateFilter: L,
|
|
501
|
-
clearFilter: R,
|
|
502
|
-
openFilter: h,
|
|
503
|
-
resetFilter: P,
|
|
504
|
-
onDropdownInput: B,
|
|
505
|
-
onInput: U,
|
|
506
|
-
setInternalFilterValue: A
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
function vl(e, l, a, i, t, o) {
|
|
511
|
-
const n = $("bento-input-field"), r = $("bento-base-filter");
|
|
512
|
-
return y(), E(r, ie(e.$props, {
|
|
513
|
-
"button-label": e.buttonLabel,
|
|
514
|
-
"button-secondary-label": e.buttonSecondaryLabel,
|
|
515
|
-
"disable-apply-button": e.isApplyButtonDisabled,
|
|
516
|
-
"disable-secondary-button": e.isSecondaryButtonDisabled,
|
|
517
|
-
"only-slot": e.onlySlot,
|
|
518
|
-
"popover-overflow-visible": e.isDropdownVariant,
|
|
519
|
-
onApply: e.updateFilter,
|
|
520
|
-
onClear: e.clearFilter,
|
|
521
|
-
onOpen: e.openFilter,
|
|
522
|
-
onReset: e.resetFilter
|
|
523
|
-
}), {
|
|
524
|
-
default: _(() => {
|
|
525
|
-
var s;
|
|
526
|
-
return [
|
|
527
|
-
N("div", {
|
|
528
|
-
class: he(["b-input-filter", e.conditionalClasses]),
|
|
529
|
-
onKeydown: l[0] || (l[0] = be((...u) => e.updateFilter && e.updateFilter(...u), ["enter"])),
|
|
530
|
-
onInput: l[1] || (l[1] = (...u) => e.onInput && e.onInput(...u))
|
|
531
|
-
}, [
|
|
532
|
-
I(n, {
|
|
533
|
-
ref: "inputTextRef",
|
|
534
|
-
dropdown: e.dropdownProp,
|
|
535
|
-
"dropdown-position": (s = e.options) == null ? void 0 : s.dropdownPosition,
|
|
536
|
-
variant: e.inputVariant,
|
|
537
|
-
value: e.internalFilterValue,
|
|
538
|
-
onInput: e.setInternalFilterValue,
|
|
539
|
-
onDropdownInput: e.onDropdownInput
|
|
540
|
-
}, null, 8, ["dropdown", "dropdown-position", "variant", "value", "onInput", "onDropdownInput"])
|
|
541
|
-
], 34)
|
|
542
|
-
];
|
|
543
|
-
}),
|
|
544
|
-
_: 1
|
|
545
|
-
}, 16, ["button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "popover-overflow-visible", "onApply", "onClear", "onOpen", "onReset"]);
|
|
546
|
-
}
|
|
547
|
-
const ht = /* @__PURE__ */ Z(pl, [["render", vl], ["__scopeId", "data-v-4448558d"]]), ml = {
|
|
548
|
-
name: "bento-input-with-dropdown-filter"
|
|
549
|
-
}, yl = /* @__PURE__ */ W({
|
|
550
|
-
...ml,
|
|
551
|
-
props: {
|
|
552
|
-
defaultValue: { default: void 0 },
|
|
553
|
-
field: {},
|
|
554
|
-
label: {},
|
|
555
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
556
|
-
options: { default: void 0 },
|
|
557
|
-
value: { default: void 0 }
|
|
558
|
-
},
|
|
559
|
-
emits: [F.INPUT, F.UPDATE],
|
|
560
|
-
setup(e, { emit: l }) {
|
|
561
|
-
const a = e, i = l, t = k(null), { internalFilterValue: o, isSecondaryButtonDisabled: n, isApplyButtonDisabled: r } = pe(G(a, "value"), G(a, "defaultValue")), s = b(
|
|
562
|
-
() => {
|
|
563
|
-
var B, w;
|
|
564
|
-
return (B = a.defaultValue) != null && B.inputValue ? se((w = a.value) == null ? void 0 : w.inputValue, 18) : a.label;
|
|
565
|
-
}
|
|
566
|
-
), u = b(
|
|
567
|
-
() => {
|
|
568
|
-
var B, w;
|
|
569
|
-
return (B = a.defaultValue) != null && B.inputValue ? null : se((w = a.value) == null ? void 0 : w.inputValue, 12);
|
|
570
|
-
}
|
|
571
|
-
), m = b(() => {
|
|
572
|
-
var B, w;
|
|
573
|
-
return {
|
|
574
|
-
...((B = a.options) == null ? void 0 : B.dropdown) || {},
|
|
575
|
-
value: (w = o.value) == null ? void 0 : w.dropdownValue
|
|
576
|
-
};
|
|
577
|
-
}), T = b(() => ({
|
|
578
|
-
"b-input-with-dropdown-filter--only-slot": a.onlySlot
|
|
579
|
-
})), D = b(() => {
|
|
580
|
-
var w, g;
|
|
581
|
-
return !(!!((w = o.value) != null && w.inputValue) && !!((g = o.value) != null && g.dropdownValue)) || r.value;
|
|
582
|
-
});
|
|
583
|
-
ke(() => {
|
|
584
|
-
var B;
|
|
585
|
-
((B = o.value) == null ? void 0 : B.inputValue) === "" && (o.value = { ...o.value, inputValue: void 0 });
|
|
586
|
-
}), de(t, () => {
|
|
587
|
-
var B;
|
|
588
|
-
(B = t.value) == null || B.focusInput();
|
|
589
|
-
});
|
|
590
|
-
const c = () => {
|
|
591
|
-
o.value = a.value;
|
|
592
|
-
}, h = () => {
|
|
593
|
-
var B;
|
|
594
|
-
!((B = o.value) != null && B.inputValue) && a.defaultValue !== null && (o.value = { ...a.defaultValue }), i(F.UPDATE, {
|
|
595
|
-
...a,
|
|
596
|
-
value: o.value
|
|
597
|
-
});
|
|
598
|
-
}, L = () => i(F.UPDATE, { ...a, value: a.defaultValue }), P = () => {
|
|
599
|
-
o.value = null, h();
|
|
600
|
-
}, R = () => {
|
|
601
|
-
i(F.INPUT, { ...a, value: o.value });
|
|
602
|
-
}, U = (B) => {
|
|
603
|
-
o.value = { ...o.value, inputValue: B };
|
|
604
|
-
}, A = (B) => {
|
|
605
|
-
o.value = { ...o.value, dropdownValue: B };
|
|
606
|
-
};
|
|
607
|
-
return it(Nt, !0), (B, w) => (y(), E(C(ge), ie(B.$props, {
|
|
608
|
-
"button-label": s.value,
|
|
609
|
-
"button-secondary-label": u.value,
|
|
610
|
-
"disable-apply-button": D.value,
|
|
611
|
-
"disable-secondary-button": C(n),
|
|
612
|
-
"only-slot": B.onlySlot,
|
|
613
|
-
onApply: h,
|
|
614
|
-
onClear: P,
|
|
615
|
-
onOpen: c,
|
|
616
|
-
onReset: L
|
|
617
|
-
}), {
|
|
618
|
-
default: _(() => {
|
|
619
|
-
var g, d;
|
|
620
|
-
return [
|
|
621
|
-
N("div", {
|
|
622
|
-
class: he(["b-input-with-dropdown-filter", T.value]),
|
|
623
|
-
onKeydown: be(h, ["enter"]),
|
|
624
|
-
onInput: R
|
|
625
|
-
}, [
|
|
626
|
-
I(C(je), {
|
|
627
|
-
ref_key: "inputTextRef",
|
|
628
|
-
ref: t,
|
|
629
|
-
dropdown: m.value,
|
|
630
|
-
"dropdown-position": (g = B.options) == null ? void 0 : g.dropdownPosition,
|
|
631
|
-
variant: "dropdown",
|
|
632
|
-
value: (d = C(o)) == null ? void 0 : d.inputValue,
|
|
633
|
-
onInput: U,
|
|
634
|
-
onDropdownInput: A
|
|
635
|
-
}, null, 8, ["dropdown", "dropdown-position", "value"])
|
|
636
|
-
], 34)
|
|
637
|
-
];
|
|
638
|
-
}),
|
|
639
|
-
_: 1
|
|
640
|
-
}, 16, ["button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot"]));
|
|
641
|
-
}
|
|
642
|
-
}), Fl = /* @__PURE__ */ Z(yl, [["__scopeId", "data-v-963cf80b"]]), hl = W({
|
|
643
|
-
name: "bento-date-filter",
|
|
644
|
-
components: {
|
|
645
|
-
BentoBaseFilter: ge,
|
|
646
|
-
BentoDatePicker: zt,
|
|
647
|
-
BentoDivider: qe,
|
|
648
|
-
Calendar: Wt
|
|
649
|
-
},
|
|
650
|
-
props: {
|
|
651
|
-
isDateInput: { type: Boolean, default: !0 },
|
|
652
|
-
/**
|
|
653
|
-
* Default value of the filter to reset to.
|
|
654
|
-
*/
|
|
655
|
-
defaultValue: { type: Date, default: null },
|
|
656
|
-
/**
|
|
657
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
658
|
-
* Should be unique per filter bar.
|
|
659
|
-
*/
|
|
660
|
-
field: { type: String, required: !0 },
|
|
661
|
-
/**
|
|
662
|
-
* Label text to be displayed
|
|
663
|
-
*/
|
|
664
|
-
label: { type: String, required: !0 },
|
|
665
|
-
/**
|
|
666
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
667
|
-
* Used for the allFiltersModal component.
|
|
668
|
-
*/
|
|
669
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
670
|
-
/**
|
|
671
|
-
* List of options that are needed to setup the filter
|
|
672
|
-
* Available options:
|
|
673
|
-
* - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
674
|
-
* - isDateDisabled: Indicate if a date should be disabled or not
|
|
675
|
-
*/
|
|
676
|
-
options: {
|
|
677
|
-
type: Object,
|
|
678
|
-
default: void 0
|
|
679
|
-
},
|
|
680
|
-
/**
|
|
681
|
-
* Current value of the filter
|
|
682
|
-
*/
|
|
683
|
-
value: { type: Date, default: void 0 }
|
|
684
|
-
},
|
|
685
|
-
emits: [F.INPUT, F.UPDATE],
|
|
686
|
-
setup(e, { emit: l }) {
|
|
687
|
-
const { locale: a } = ce(void 0, !0), i = yt(), { internalFilterValue: t, isSecondaryButtonDisabled: o, isApplyButtonDisabled: n } = pe(
|
|
688
|
-
G(e, "value"),
|
|
689
|
-
G(e, "defaultValue")
|
|
690
|
-
), r = b(
|
|
691
|
-
() => e.value ? ye(e.value, "dd MMM, yyyy", {
|
|
692
|
-
locale: i[a.value.substring(0, 2)] || i.enUS
|
|
693
|
-
}) : null
|
|
694
|
-
), s = b(
|
|
695
|
-
() => e.defaultValue === null ? e.label : r.value
|
|
696
|
-
), u = b(
|
|
697
|
-
() => e.defaultValue === null ? r.value : null
|
|
698
|
-
), m = () => {
|
|
699
|
-
l(F.UPDATE, { ...e, value: t.value });
|
|
700
|
-
}, T = () => {
|
|
701
|
-
t.value = null, m();
|
|
702
|
-
}, D = () => {
|
|
703
|
-
t.value = e.defaultValue, m();
|
|
704
|
-
}, c = () => {
|
|
705
|
-
t.value = e.value;
|
|
706
|
-
}, h = (P) => {
|
|
707
|
-
t.value = P, l(F.INPUT, { ...e, value: t.value });
|
|
708
|
-
};
|
|
709
|
-
return {
|
|
710
|
-
// Values
|
|
711
|
-
internalFilterValue: t,
|
|
712
|
-
isApplyButtonDisabled: n,
|
|
713
|
-
isSecondaryButtonDisabled: o,
|
|
714
|
-
buttonLabel: s,
|
|
715
|
-
buttonSecondaryLabel: u,
|
|
716
|
-
// Events
|
|
717
|
-
clearFilter: T,
|
|
718
|
-
onDateSelected: h,
|
|
719
|
-
openFilter: c,
|
|
720
|
-
updateFilter: m,
|
|
721
|
-
resetFilter: D,
|
|
722
|
-
onDateInputSelected: (P) => {
|
|
723
|
-
t.value = P, h(P), m();
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
}
|
|
727
|
-
}), gl = { class: "b-date-filter" };
|
|
728
|
-
function Sl(e, l, a, i, t, o) {
|
|
729
|
-
const n = $("bento-date-picker"), r = $("bento-divider"), s = $("calendar"), u = $("bento-base-filter");
|
|
730
|
-
return y(), E(u, {
|
|
731
|
-
"button-label": e.buttonLabel,
|
|
732
|
-
"button-secondary-label": e.buttonSecondaryLabel,
|
|
733
|
-
"default-value": e.defaultValue,
|
|
734
|
-
"disable-apply-button": e.isApplyButtonDisabled,
|
|
735
|
-
"disable-secondary-button": e.isSecondaryButtonDisabled,
|
|
736
|
-
field: e.field,
|
|
737
|
-
label: e.label,
|
|
738
|
-
"only-slot": e.onlySlot,
|
|
739
|
-
"fit-content": "",
|
|
740
|
-
onApply: e.updateFilter,
|
|
741
|
-
onClear: e.clearFilter,
|
|
742
|
-
onOpen: e.openFilter,
|
|
743
|
-
onReset: e.resetFilter
|
|
744
|
-
}, {
|
|
745
|
-
default: _(() => {
|
|
746
|
-
var m, T, D, c;
|
|
747
|
-
return [
|
|
748
|
-
e.onlySlot ? (y(), E(n, {
|
|
749
|
-
key: 0,
|
|
750
|
-
value: e.internalFilterValue,
|
|
751
|
-
"first-day-of-week": (m = e.options) == null ? void 0 : m.firstDayOfWeek,
|
|
752
|
-
"is-date-disabled": (T = e.options) == null ? void 0 : T.isDateDisabled,
|
|
753
|
-
onInput: e.onDateInputSelected
|
|
754
|
-
}, null, 8, ["value", "first-day-of-week", "is-date-disabled", "onInput"])) : (y(), q($e, { key: 1 }, [
|
|
755
|
-
I(r, { class: "b-date-filter__divider" }),
|
|
756
|
-
N("div", gl, [
|
|
757
|
-
I(s, {
|
|
758
|
-
"first-day-of-week": (D = e.options) == null ? void 0 : D.firstDayOfWeek,
|
|
759
|
-
"is-date-disabled": (c = e.options) == null ? void 0 : c.isDateDisabled,
|
|
760
|
-
"number-of-months": 1,
|
|
761
|
-
value: e.internalFilterValue,
|
|
762
|
-
onInput: e.onDateSelected
|
|
763
|
-
}, null, 8, ["first-day-of-week", "is-date-disabled", "value", "onInput"])
|
|
764
|
-
])
|
|
765
|
-
], 64))
|
|
766
|
-
];
|
|
767
|
-
}),
|
|
768
|
-
_: 1
|
|
769
|
-
}, 8, ["button-label", "button-secondary-label", "default-value", "disable-apply-button", "disable-secondary-button", "field", "label", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
|
|
770
|
-
}
|
|
771
|
-
const gt = /* @__PURE__ */ Z(hl, [["render", Sl], ["__scopeId", "data-v-74c7326a"]]), et = {
|
|
772
|
-
"en-US": {
|
|
773
|
-
apply: "Apply",
|
|
774
|
-
clear: "Clear",
|
|
775
|
-
reset: "Reset"
|
|
776
|
-
},
|
|
777
|
-
"pt-BR": {
|
|
778
|
-
apply: "Aplicar",
|
|
779
|
-
clear: "Limpar",
|
|
780
|
-
reset: "Reiniciar"
|
|
781
|
-
},
|
|
782
|
-
"ja-JP": {
|
|
783
|
-
apply: "適用",
|
|
784
|
-
clear: "クリア",
|
|
785
|
-
reset: "リセット"
|
|
786
|
-
}
|
|
787
|
-
}, _l = W({
|
|
788
|
-
i18n: { messages: et },
|
|
789
|
-
name: "bento-date-range-filter",
|
|
790
|
-
components: {
|
|
791
|
-
BentoBaseFilter: ge,
|
|
792
|
-
BentoButtonActions: Xt,
|
|
793
|
-
BentoDateRangePicker: Zt,
|
|
794
|
-
BentoTypography: Fe,
|
|
795
|
-
BentoDivider: qe,
|
|
796
|
-
DateRangePickerCalendar: Qt
|
|
797
|
-
},
|
|
798
|
-
props: {
|
|
799
|
-
/**
|
|
800
|
-
* Default value of the filter to reset to.
|
|
801
|
-
*/
|
|
802
|
-
defaultValue: { type: Object, default: null },
|
|
803
|
-
/**
|
|
804
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
805
|
-
* Should be unique per filter bar.
|
|
806
|
-
*/
|
|
807
|
-
field: { type: String, required: !0 },
|
|
808
|
-
/**
|
|
809
|
-
* Label text to be displayed
|
|
810
|
-
*/
|
|
811
|
-
label: { type: String, required: !0 },
|
|
812
|
-
/**
|
|
813
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
814
|
-
* Used for the allFiltersModal component.
|
|
815
|
-
*/
|
|
816
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
817
|
-
/**
|
|
818
|
-
* List of options that are needed to setup the filter
|
|
819
|
-
* Available options:
|
|
820
|
-
* - allowTimeInput: Allows user to enter time values in the form
|
|
821
|
-
* - firstDayOfWeek: Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
822
|
-
* - isDateDisabled: Indicate if a date should be disabled or not
|
|
823
|
-
* - maxRange: Set a maximum number of dates to be selectable by the range
|
|
824
|
-
* - numberOfMonths: Number of months rendered on pane
|
|
825
|
-
* - quickSelectRanges: An array that sets the custom range dropdown items. @see BentoDateRangePicker
|
|
826
|
-
* - showEndDateOnOpen: Upon opening date range picker, end date's month will be pre-selected.
|
|
827
|
-
*/
|
|
828
|
-
options: {
|
|
829
|
-
type: Object,
|
|
830
|
-
default: void 0
|
|
831
|
-
},
|
|
832
|
-
/**
|
|
833
|
-
* Current value of the filter
|
|
834
|
-
*/
|
|
835
|
-
value: {
|
|
836
|
-
type: Object,
|
|
837
|
-
default: () => ({ startDate: void 0, endDate: void 0 })
|
|
838
|
-
}
|
|
839
|
-
},
|
|
840
|
-
emits: [F.INPUT, F.UPDATE],
|
|
841
|
-
setup(e, { emit: l }) {
|
|
842
|
-
var ue, oe, ve, J;
|
|
843
|
-
const { locale: a, t: i } = ce({ messages: et }), t = yt(), { internalFilterValue: o, isSecondaryButtonDisabled: n, isApplyButtonDisabled: r } = pe(
|
|
844
|
-
G(e, "value"),
|
|
845
|
-
G(e, "defaultValue")
|
|
846
|
-
), s = k(!1), u = (S) => S ? ye(S, Ge.NUMERIC_DATE_YEAR_FIRST, {
|
|
847
|
-
locale: t[a.value.substring(0, 2)] || t.enUS
|
|
848
|
-
}) : void 0, m = (S) => S ? ye(S, Ge.HOUR_MINUTE_SECONDS, {
|
|
849
|
-
locale: t[a.value.substring(0, 2)] || t.enUS
|
|
850
|
-
}) : "", T = k(null), D = k(!1), c = ut({
|
|
851
|
-
startDate: u((ue = e.value) == null ? void 0 : ue.startDate),
|
|
852
|
-
endDate: u((oe = e.value) == null ? void 0 : oe.endDate),
|
|
853
|
-
startTime: m((ve = e.value) == null ? void 0 : ve.startDate),
|
|
854
|
-
endTime: m((J = e.value) == null ? void 0 : J.endDate)
|
|
855
|
-
});
|
|
856
|
-
function h(S) {
|
|
857
|
-
return (S == null ? void 0 : S.length) !== void 0;
|
|
858
|
-
}
|
|
859
|
-
const L = b(() => {
|
|
860
|
-
var S, Y, K, v, p, V, M, Q, x;
|
|
861
|
-
if (!((S = e.value) != null && S.startDate) && !e.value.endDate)
|
|
862
|
-
return null;
|
|
863
|
-
if (h((Y = e.options) == null ? void 0 : Y.quickSelectRanges) && ((v = (K = e.options) == null ? void 0 : K.quickSelectRanges) == null ? void 0 : v.length) > 0) {
|
|
864
|
-
const ee = (V = (p = e.options) == null ? void 0 : p.quickSelectRanges) == null ? void 0 : V.find(
|
|
865
|
-
({ data: te }) => We(te == null ? void 0 : te.startDate, e.value.startDate) && We(te == null ? void 0 : te.endDate, e.value.endDate)
|
|
866
|
-
);
|
|
867
|
-
if (ee)
|
|
868
|
-
return ee.label;
|
|
869
|
-
}
|
|
870
|
-
return Gt((M = e.value) == null ? void 0 : M.startDate, (Q = e.value) == null ? void 0 : Q.endDate) && ((x = e == null ? void 0 : e.options) != null && x.allowTimeInput) ? `${ye(e.value.startDate, "dd MMM, yyyy HH:mm:ss", {
|
|
871
|
-
locale: t[a.value.substring(0, 2)] || t.enUS
|
|
872
|
-
})} - ${ye(e.value.endDate, "HH:mm:ss", {
|
|
873
|
-
locale: t[a.value.substring(0, 2)] || t.enUS
|
|
874
|
-
})}` : `${ye(e.value.startDate, "dd MMM, yyyy", {
|
|
875
|
-
locale: t[a.value.substring(0, 2)] || t.enUS
|
|
876
|
-
})} - ${ye(e.value.endDate, "dd MMM, yyyy", {
|
|
877
|
-
locale: t[a.value.substring(0, 2)] || t.enUS
|
|
878
|
-
})}`;
|
|
879
|
-
}), P = b(
|
|
880
|
-
() => e.defaultValue === null ? e.label : L.value
|
|
881
|
-
), R = b(
|
|
882
|
-
() => e.defaultValue === null ? L.value : null
|
|
883
|
-
), U = () => {
|
|
884
|
-
T.value.closePopover();
|
|
885
|
-
const { onlySlot: S, ...Y } = e;
|
|
886
|
-
l(F.UPDATE, { ...Y, value: o.value });
|
|
887
|
-
}, A = () => {
|
|
888
|
-
o.value = void 0, U();
|
|
889
|
-
}, B = () => {
|
|
890
|
-
o.value = e.defaultValue, U();
|
|
891
|
-
}, w = () => {
|
|
892
|
-
o.value = e.value;
|
|
893
|
-
}, g = (S) => {
|
|
894
|
-
s.value = !1, o.value = S, c.startDate = u(S.startDate), c.endDate = u(S.endDate), l(F.INPUT, { ...e, value: o.value });
|
|
895
|
-
}, d = (S) => {
|
|
896
|
-
S != null && S.startDate && (S != null && S.endDate) && (o.value = S, c.startDate = u(S.startDate), c.endDate = u(S.endDate), l(F.INPUT, { ...e, value: o.value }));
|
|
897
|
-
}, f = (S) => {
|
|
898
|
-
g(S), l(F.INPUT, { ...e, value: o.value });
|
|
899
|
-
}, O = b(
|
|
900
|
-
() => [
|
|
901
|
-
{
|
|
902
|
-
title: i("apply"),
|
|
903
|
-
event: U,
|
|
904
|
-
disabled: s.value || D.value || r.value
|
|
905
|
-
},
|
|
906
|
-
{
|
|
907
|
-
title: e.defaultValue ? i("reset") : i("clear"),
|
|
908
|
-
event: e.defaultValue ? B : A,
|
|
909
|
-
disabled: D.value && n.value
|
|
910
|
-
}
|
|
911
|
-
]
|
|
912
|
-
);
|
|
913
|
-
return {
|
|
914
|
-
// Refs
|
|
915
|
-
baseFilter: T,
|
|
916
|
-
// Values
|
|
917
|
-
actions: O,
|
|
918
|
-
formData: c,
|
|
919
|
-
internalFilterValue: o,
|
|
920
|
-
isApplyButtonDisabled: r,
|
|
921
|
-
isSecondaryButtonDisabled: n,
|
|
922
|
-
isSelectingDate: s,
|
|
923
|
-
buttonLabel: P,
|
|
924
|
-
buttonSecondaryLabel: R,
|
|
925
|
-
// Events
|
|
926
|
-
onDateSelected: g,
|
|
927
|
-
openFilter: w,
|
|
928
|
-
updateFilter: U,
|
|
929
|
-
onDatePickerRangeError: () => {
|
|
930
|
-
D.value = !0, o.value = { startDate: void 0, endDate: void 0 }, l(F.INPUT, { ...e, value: o.value });
|
|
931
|
-
},
|
|
932
|
-
onDatePickerRangeFormDateInputUpdate: (S) => {
|
|
933
|
-
D.value = !1, S.startTime && (c.startTime = S.startTime), S.endTime && (c.endTime = S.endTime);
|
|
934
|
-
},
|
|
935
|
-
onDateInputSelected: f,
|
|
936
|
-
onRangeSelectorInput: d
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
}), Bl = {
|
|
940
|
-
key: 1,
|
|
941
|
-
class: "b-date-range-filter"
|
|
942
|
-
};
|
|
943
|
-
function Cl(e, l, a, i, t, o) {
|
|
944
|
-
const n = $("bento-date-range-picker"), r = $("bento-typography"), s = $("bento-divider"), u = $("bento-button-actions"), m = $("date-range-picker-calendar"), T = $("bento-base-filter");
|
|
945
|
-
return y(), E(T, {
|
|
946
|
-
ref: "baseFilter",
|
|
947
|
-
class: "b-base-filter-date-range-filter",
|
|
948
|
-
"button-label": e.buttonLabel,
|
|
949
|
-
"button-secondary-label": e.buttonSecondaryLabel,
|
|
950
|
-
controlled: !e.onlySlot,
|
|
951
|
-
"disable-apply-button": e.isApplyButtonDisabled,
|
|
952
|
-
"disable-secondary-button": e.isSecondaryButtonDisabled,
|
|
953
|
-
"default-value": e.defaultValue,
|
|
954
|
-
field: e.field,
|
|
955
|
-
label: e.label,
|
|
956
|
-
"only-slot": e.onlySlot,
|
|
957
|
-
"fit-content": "",
|
|
958
|
-
onOpen: e.openFilter
|
|
959
|
-
}, {
|
|
960
|
-
default: _(() => {
|
|
961
|
-
var D, c, h, L, P, R, U, A, B, w, g, d, f, O, X;
|
|
962
|
-
return [
|
|
963
|
-
e.onlySlot ? (y(), E(n, {
|
|
964
|
-
key: 0,
|
|
965
|
-
"allow-time-input": (D = e.options) == null ? void 0 : D.allowTimeInput,
|
|
966
|
-
value: e.internalFilterValue,
|
|
967
|
-
"first-day-of-week": (c = e.options) == null ? void 0 : c.firstDayOfWeek,
|
|
968
|
-
"is-date-disabled": (h = e.options) == null ? void 0 : h.isDateDisabled,
|
|
969
|
-
"number-of-months": (L = e.options) == null ? void 0 : L.numberOfMonths,
|
|
970
|
-
"quick-select-ranges": (P = e.options) == null ? void 0 : P.quickSelectRanges,
|
|
971
|
-
onInput: e.onDateInputSelected
|
|
972
|
-
}, null, 8, ["allow-time-input", "value", "first-day-of-week", "is-date-disabled", "number-of-months", "quick-select-ranges", "onInput"])) : (y(), q("div", Bl, [
|
|
973
|
-
I(m, {
|
|
974
|
-
"allow-time-input": (R = e.options) == null ? void 0 : R.allowTimeInput,
|
|
975
|
-
"first-day-of-week": (U = e.options) == null ? void 0 : U.firstDayOfWeek,
|
|
976
|
-
"is-date-disabled": (A = e.options) == null ? void 0 : A.isDateDisabled,
|
|
977
|
-
granularities: (B = e.options) == null ? void 0 : B.granularities,
|
|
978
|
-
"max-range": (w = e.options) == null ? void 0 : w.maxRange,
|
|
979
|
-
min: (g = e.options) == null ? void 0 : g.min,
|
|
980
|
-
max: (d = e.options) == null ? void 0 : d.max,
|
|
981
|
-
"number-of-months": (f = e.options) == null ? void 0 : f.numberOfMonths,
|
|
982
|
-
"quick-select-ranges": (O = e.options) == null ? void 0 : O.quickSelectRanges,
|
|
983
|
-
value: e.internalFilterValue,
|
|
984
|
-
"date-form-data": e.formData,
|
|
985
|
-
"show-end-date-on-open": (X = e.options) == null ? void 0 : X.showEndDateOnOpen,
|
|
986
|
-
onInput: e.onDateSelected,
|
|
987
|
-
onCustomRange: e.onRangeSelectorInput,
|
|
988
|
-
onError: e.onDatePickerRangeError,
|
|
989
|
-
onFormDate: e.onDatePickerRangeFormDateInputUpdate,
|
|
990
|
-
onStartDateSelected: l[0] || (l[0] = (ae) => e.isSelectingDate = !0)
|
|
991
|
-
}, {
|
|
992
|
-
title: _(() => [
|
|
993
|
-
I(r, {
|
|
994
|
-
strongest: "",
|
|
995
|
-
variant: "body",
|
|
996
|
-
el: "span"
|
|
997
|
-
}, {
|
|
998
|
-
default: _(() => [
|
|
999
|
-
j(H(e.label), 1)
|
|
1000
|
-
]),
|
|
1001
|
-
_: 1
|
|
1002
|
-
})
|
|
1003
|
-
]),
|
|
1004
|
-
actions: _(() => [
|
|
1005
|
-
I(s, { class: "b-date-range-filter__divider" }),
|
|
1006
|
-
I(u, {
|
|
1007
|
-
class: "b-date-range-filter__actions",
|
|
1008
|
-
actions: e.actions,
|
|
1009
|
-
layout: "space-between"
|
|
1010
|
-
}, null, 8, ["actions"])
|
|
1011
|
-
]),
|
|
1012
|
-
_: 1
|
|
1013
|
-
}, 8, ["allow-time-input", "first-day-of-week", "is-date-disabled", "granularities", "max-range", "min", "max", "number-of-months", "quick-select-ranges", "value", "date-form-data", "show-end-date-on-open", "onInput", "onCustomRange", "onError", "onFormDate"])
|
|
1014
|
-
]))
|
|
1015
|
-
];
|
|
1016
|
-
}),
|
|
1017
|
-
_: 1
|
|
1018
|
-
}, 8, ["button-label", "button-secondary-label", "controlled", "disable-apply-button", "disable-secondary-button", "default-value", "field", "label", "only-slot", "onOpen"]);
|
|
1019
|
-
}
|
|
1020
|
-
const St = /* @__PURE__ */ Z(_l, [["render", Cl], ["__scopeId", "data-v-81c3d4a9"]]), _t = {
|
|
1021
|
-
"en-US": {
|
|
1022
|
-
all: "All",
|
|
1023
|
-
noFiltersMatchThisSearch: "No filters match this search",
|
|
1024
|
-
searchFilter: "Search {filter}"
|
|
1025
|
-
},
|
|
1026
|
-
"pt-BR": {
|
|
1027
|
-
all: "Todos"
|
|
1028
|
-
},
|
|
1029
|
-
"ja-JP": {
|
|
1030
|
-
all: "すべて"
|
|
1031
|
-
}
|
|
1032
|
-
}, Dl = { class: "b-select-filter-button__search-bar" }, Il = { class: "b-select-filter-button__divider" }, Al = {
|
|
1033
|
-
i18n: { messages: _t }
|
|
1034
|
-
}, $l = /* @__PURE__ */ W({
|
|
1035
|
-
...Al,
|
|
1036
|
-
__name: "select-filter-button",
|
|
1037
|
-
props: {
|
|
1038
|
-
/**
|
|
1039
|
-
* Default value of the filter to reset to.
|
|
1040
|
-
*
|
|
1041
|
-
*/
|
|
1042
|
-
defaultValue: {
|
|
1043
|
-
type: [String, Number, Array],
|
|
1044
|
-
default: null
|
|
1045
|
-
},
|
|
1046
|
-
/**
|
|
1047
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
1048
|
-
* Should be unique per filter bar.
|
|
1049
|
-
*/
|
|
1050
|
-
field: { type: String, required: !0 },
|
|
1051
|
-
/**
|
|
1052
|
-
* Label text to be displayed
|
|
1053
|
-
*/
|
|
1054
|
-
label: { type: String, required: !0 },
|
|
1055
|
-
/**
|
|
1056
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
1057
|
-
* Used for the allFiltersModal component.
|
|
1058
|
-
*/
|
|
1059
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
1060
|
-
/**
|
|
1061
|
-
* List of options that are needed to setup the filter
|
|
1062
|
-
* Available options:
|
|
1063
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1064
|
-
* - listboxItems: The option elements to populate the filter with.
|
|
1065
|
-
*
|
|
1066
|
-
* @default undefined
|
|
1067
|
-
*/
|
|
1068
|
-
options: {
|
|
1069
|
-
type: Object,
|
|
1070
|
-
default: void 0
|
|
1071
|
-
},
|
|
1072
|
-
/**
|
|
1073
|
-
* Current value of the filter
|
|
1074
|
-
*
|
|
1075
|
-
* @default undefined
|
|
1076
|
-
*/
|
|
1077
|
-
value: {
|
|
1078
|
-
type: [String, Number, Array],
|
|
1079
|
-
default: void 0
|
|
1080
|
-
}
|
|
1081
|
-
},
|
|
1082
|
-
emits: ["input", "update"],
|
|
1083
|
-
setup(e, { emit: l }) {
|
|
1084
|
-
var oe, ve;
|
|
1085
|
-
const a = Oe(), i = l, t = e, { t: o, locale: n } = ce({ messages: _t }), r = k(""), s = G(t, "options"), u = k(t.options.listboxItems), { cachedSelectedListboxOptions: m, setCachedValues: T, resetCache: D } = Ze(
|
|
1086
|
-
u,
|
|
1087
|
-
G(t, "value"),
|
|
1088
|
-
G(s.value, "multiple")
|
|
1089
|
-
), { cachedSelectedListboxOptions: c } = Ze(
|
|
1090
|
-
u,
|
|
1091
|
-
G(t, "defaultValue"),
|
|
1092
|
-
G(s.value, "multiple")
|
|
1093
|
-
), { internalFilterValue: h, isSecondaryButtonDisabled: L, isApplyButtonDisabled: P } = pe(m, c);
|
|
1094
|
-
de(s, () => {
|
|
1095
|
-
u.value = s.value.listboxItems;
|
|
1096
|
-
});
|
|
1097
|
-
const R = mt(
|
|
1098
|
-
r,
|
|
1099
|
-
u,
|
|
1100
|
-
(ve = (oe = t.options) == null ? void 0 : oe.search) == null ? void 0 : ve.searchEvent
|
|
1101
|
-
), U = b(() => o("noFiltersMatchThisSearch")), A = b(() => {
|
|
1102
|
-
var J, S, Y, K, v, p, V, M, Q, x;
|
|
1103
|
-
if (t.defaultValue === null)
|
|
1104
|
-
return t.label;
|
|
1105
|
-
if (t.options.multiple) {
|
|
1106
|
-
const ee = (J = t.value) == null ? void 0 : J.length;
|
|
1107
|
-
if (ee === t.options.listboxItems.length)
|
|
1108
|
-
return (S = t == null ? void 0 : t.options) != null && S.messagesPersistentButtonLabelAllSelectedKey ? (K = t == null ? void 0 : t.options) == null ? void 0 : K.messages[n.value][(Y = t == null ? void 0 : t.options) == null ? void 0 : Y.messagesPersistentButtonLabelAllSelectedKey] : (v = t == null ? void 0 : t.options) == null ? void 0 : v.messages[n.value].persistentButtonLabelAllSelected;
|
|
1109
|
-
const me = ((p = t == null ? void 0 : t.options) != null && p.messagesPersistentButtonLabelPartiallySelectedKey ? (M = t == null ? void 0 : t.options) == null ? void 0 : M.messages[n.value][(V = t == null ? void 0 : t.options) == null ? void 0 : V.messagesPersistentButtonLabelPartiallySelectedKey] : (Q = t == null ? void 0 : t.options) == null ? void 0 : Q.messages[n.value].persistentButtonLabelPartiallySelected).split("|").map((Pe) => Pe.trim());
|
|
1110
|
-
return ee === 1 ? me[0].replace("{count}", ee) : me[1].replace("{count}", ee);
|
|
1111
|
-
}
|
|
1112
|
-
return (x = m.value) != null && x.length ? se(m.value[0].label, 18) : "";
|
|
1113
|
-
}), B = b(() => {
|
|
1114
|
-
var J, S;
|
|
1115
|
-
if (t.defaultValue === null && (!t.options.multiple || ((J = t.value) == null ? void 0 : J.length) === 1)) {
|
|
1116
|
-
let K = (S = t.options.listboxItems.flatMap((v) => v.items ? v.items : v).find(
|
|
1117
|
-
({ value: v }) => {
|
|
1118
|
-
var p;
|
|
1119
|
-
return Array.isArray(t.value) ? (p = t == null ? void 0 : t.value) == null ? void 0 : p.includes(v) : v === t.value;
|
|
1120
|
-
}
|
|
1121
|
-
)) == null ? void 0 : S.label;
|
|
1122
|
-
return !K && t.value && (K = t.value[0]), se(K, 12);
|
|
1123
|
-
}
|
|
1124
|
-
return null;
|
|
1125
|
-
}), w = b(() => Ke(`filter-listbox-${t.field}`)), g = (J) => {
|
|
1126
|
-
h.value = J;
|
|
1127
|
-
const { onlySlot: S, ...Y } = t;
|
|
1128
|
-
if (t.options.multiple) {
|
|
1129
|
-
const v = J.length ? h.value.map(({ value: p }) => p) : null;
|
|
1130
|
-
i(F.INPUT, { ...Y, value: v });
|
|
1131
|
-
return;
|
|
1132
|
-
}
|
|
1133
|
-
const K = J.length ? J[0].value : null;
|
|
1134
|
-
i(F.INPUT, { ...Y, value: K });
|
|
1135
|
-
}, d = () => {
|
|
1136
|
-
var K, v, p;
|
|
1137
|
-
const { onlySlot: J, ...S } = t;
|
|
1138
|
-
if (t.options.multiple) {
|
|
1139
|
-
h.value && ((K = h.value) == null ? void 0 : K.length) === 0 && (h.value = t.defaultValue !== null ? c.value : void 0);
|
|
1140
|
-
const V = (v = h.value) != null && v.length ? (p = h.value) == null ? void 0 : p.map(({ value: M }) => M) : null;
|
|
1141
|
-
i(F.UPDATE, {
|
|
1142
|
-
...S,
|
|
1143
|
-
value: V
|
|
1144
|
-
});
|
|
1145
|
-
return;
|
|
1146
|
-
}
|
|
1147
|
-
const Y = h.value.length ? h.value[0].value : void 0;
|
|
1148
|
-
i(F.UPDATE, { ...S, value: Y });
|
|
1149
|
-
}, f = () => {
|
|
1150
|
-
h.value = m.value;
|
|
1151
|
-
}, O = () => {
|
|
1152
|
-
r.value && (r.value = "");
|
|
1153
|
-
}, X = () => {
|
|
1154
|
-
T(c.value), h.value = c.value, d();
|
|
1155
|
-
}, ae = () => {
|
|
1156
|
-
D(), h.value = [], d();
|
|
1157
|
-
}, ue = b(() => {
|
|
1158
|
-
var Y, K;
|
|
1159
|
-
if (t.value == null || t.defaultValue !== null || !t.options.multiple)
|
|
1160
|
-
return null;
|
|
1161
|
-
const J = (Y = t.options.listboxItems) == null ? void 0 : Y.reduce((v, p) => {
|
|
1162
|
-
var V;
|
|
1163
|
-
return v += (V = p == null ? void 0 : p.items) != null && V.length ? p.items.length : 1, v;
|
|
1164
|
-
}, 0), S = (K = t.value) == null ? void 0 : K.length;
|
|
1165
|
-
return S === 1 ? null : S === J ? o("all") : S;
|
|
1166
|
-
});
|
|
1167
|
-
return (J, S) => (y(), E(C(ge), {
|
|
1168
|
-
"applied-filters-count": ue.value,
|
|
1169
|
-
"button-label": A.value,
|
|
1170
|
-
"button-secondary-label": B.value,
|
|
1171
|
-
"disable-apply-button": C(P),
|
|
1172
|
-
"disable-secondary-button": C(L),
|
|
1173
|
-
"default-value": e.defaultValue,
|
|
1174
|
-
label: e.label,
|
|
1175
|
-
field: e.field,
|
|
1176
|
-
"only-slot": !1,
|
|
1177
|
-
onApply: d,
|
|
1178
|
-
onClear: ae,
|
|
1179
|
-
onReset: X,
|
|
1180
|
-
onOpen: f,
|
|
1181
|
-
onClose: O
|
|
1182
|
-
}, {
|
|
1183
|
-
default: _(() => {
|
|
1184
|
-
var Y, K, v, p, V, M, Q, x, ee, te, me, Pe, Je;
|
|
1185
|
-
return [
|
|
1186
|
-
N("div", Dl, [
|
|
1187
|
-
I(C(Ae), {
|
|
1188
|
-
"debounce-time": (K = (Y = e.options) == null ? void 0 : Y.search) == null ? void 0 : K.debounceTime,
|
|
1189
|
-
value: r.value,
|
|
1190
|
-
"input-field-aria-label": C(o)("searchFilter", { filter: e.label.toLocaleLowerCase() }),
|
|
1191
|
-
onInput: S[0] || (S[0] = (Ne) => r.value = Ne)
|
|
1192
|
-
}, null, 8, ["debounce-time", "value", "input-field-aria-label"])
|
|
1193
|
-
]),
|
|
1194
|
-
N("div", Il, [
|
|
1195
|
-
I(C(qe))
|
|
1196
|
-
]),
|
|
1197
|
-
I(C(el), {
|
|
1198
|
-
id: w.value,
|
|
1199
|
-
"aria-label": e.label,
|
|
1200
|
-
class: "b-select-filter-button__wrapper",
|
|
1201
|
-
"empty-state": (v = e.options) == null ? void 0 : v.emptyState,
|
|
1202
|
-
"has-more-items": (V = (p = e.options) == null ? void 0 : p.lazy) == null ? void 0 : V.hasMoreItems,
|
|
1203
|
-
items: C(R),
|
|
1204
|
-
"is-option-disabled": (M = e.options) == null ? void 0 : M.isOptionDisabled,
|
|
1205
|
-
"lazy-load-type": (x = (Q = e.options) == null ? void 0 : Q.lazy) == null ? void 0 : x.lazyLoadType,
|
|
1206
|
-
loading: (te = (ee = e.options) == null ? void 0 : ee.lazy) == null ? void 0 : te.loading,
|
|
1207
|
-
multiple: (me = e.options) == null ? void 0 : me.multiple,
|
|
1208
|
-
"static-categories": (Pe = e.options) == null ? void 0 : Pe.staticCategories,
|
|
1209
|
-
"no-results-message": U.value,
|
|
1210
|
-
searching: !!r.value,
|
|
1211
|
-
"selected-value": C(h),
|
|
1212
|
-
"virtual-scroll": (Je = e.options) == null ? void 0 : Je.virtualScroll,
|
|
1213
|
-
onSelect: g,
|
|
1214
|
-
onSpacePressed: g,
|
|
1215
|
-
onEnterPressed: g,
|
|
1216
|
-
onShowMore: S[1] || (S[1] = (Ne) => {
|
|
1217
|
-
var De, Ue;
|
|
1218
|
-
return (Ue = (De = e.options) == null ? void 0 : De.lazy) == null ? void 0 : Ue.showMoreEvent();
|
|
1219
|
-
})
|
|
1220
|
-
}, Te({ _: 2 }, [
|
|
1221
|
-
fe(C(a), (Ne, De) => ({
|
|
1222
|
-
name: De,
|
|
1223
|
-
fn: _((Ue) => [
|
|
1224
|
-
re(J.$slots, De, Le(Re(Ue)), void 0, !0)
|
|
1225
|
-
])
|
|
1226
|
-
}))
|
|
1227
|
-
]), 1032, ["id", "aria-label", "empty-state", "has-more-items", "items", "is-option-disabled", "lazy-load-type", "loading", "multiple", "static-categories", "no-results-message", "searching", "selected-value", "virtual-scroll"])
|
|
1228
|
-
];
|
|
1229
|
-
}),
|
|
1230
|
-
_: 3
|
|
1231
|
-
}, 8, ["applied-filters-count", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "default-value", "label", "field"]));
|
|
1232
|
-
}
|
|
1233
|
-
}), Tl = /* @__PURE__ */ Z($l, [["__scopeId", "data-v-0ba86956"]]), Bt = {
|
|
1234
|
-
"en-US": {
|
|
1235
|
-
noFiltersMatchThisSearch: "No filters match this search"
|
|
1236
|
-
}
|
|
1237
|
-
}, Pl = {
|
|
1238
|
-
i18n: { messages: Bt },
|
|
1239
|
-
name: "select-filter-dropdown"
|
|
1240
|
-
}, Ul = /* @__PURE__ */ W({
|
|
1241
|
-
...Pl,
|
|
1242
|
-
props: {
|
|
1243
|
-
/**
|
|
1244
|
-
* Default value of the filter to reset to.
|
|
1245
|
-
*
|
|
1246
|
-
*/
|
|
1247
|
-
defaultValue: {
|
|
1248
|
-
type: [String, Number, Array],
|
|
1249
|
-
default: null
|
|
1250
|
-
},
|
|
1251
|
-
/**
|
|
1252
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
1253
|
-
* Should be unique per filter bar.
|
|
1254
|
-
*/
|
|
1255
|
-
field: { type: String, required: !0 },
|
|
1256
|
-
/**
|
|
1257
|
-
* Label text to be displayed
|
|
1258
|
-
*/
|
|
1259
|
-
label: { type: String, required: !0 },
|
|
1260
|
-
/**
|
|
1261
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
1262
|
-
* Used for the allFiltersModal component.
|
|
1263
|
-
*
|
|
1264
|
-
*/
|
|
1265
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
1266
|
-
/**
|
|
1267
|
-
* List of options that are needed to setup the filter
|
|
1268
|
-
* Available options:
|
|
1269
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1270
|
-
* - listboxItems: The option elements to populate the filter with.
|
|
1271
|
-
*
|
|
1272
|
-
* @default undefined
|
|
1273
|
-
*/
|
|
1274
|
-
options: {
|
|
1275
|
-
type: Object,
|
|
1276
|
-
default: void 0
|
|
1277
|
-
},
|
|
1278
|
-
/**
|
|
1279
|
-
* Current value of the filter
|
|
1280
|
-
*
|
|
1281
|
-
* @default undefined
|
|
1282
|
-
*/
|
|
1283
|
-
value: {
|
|
1284
|
-
type: [String, Number, Array],
|
|
1285
|
-
default: void 0
|
|
1286
|
-
}
|
|
1287
|
-
},
|
|
1288
|
-
emits: ["input", "update"],
|
|
1289
|
-
setup(e, { emit: l }) {
|
|
1290
|
-
const { t: a } = ce({ messages: Bt }), i = Oe(), t = l, o = e, { internalFilterValue: n } = pe(G(o, "value"), G(o, "defaultValue")), r = k(""), s = G(o, "options"), u = k(o.options.listboxItems);
|
|
1291
|
-
de(s, () => {
|
|
1292
|
-
u.value = s.value.listboxItems;
|
|
1293
|
-
});
|
|
1294
|
-
const m = b(() => a("noFiltersMatchThisSearch")), T = (D) => {
|
|
1295
|
-
n.value = D;
|
|
1296
|
-
const { onlySlot: c, ...h } = o;
|
|
1297
|
-
t(F.INPUT, { ...h, value: n.value });
|
|
1298
|
-
};
|
|
1299
|
-
return (D, c) => {
|
|
1300
|
-
var h, L, P;
|
|
1301
|
-
return y(), E(C(Jt), {
|
|
1302
|
-
value: C(n),
|
|
1303
|
-
items: e.options.listboxItems,
|
|
1304
|
-
multiple: (h = e.options) == null ? void 0 : h.multiple,
|
|
1305
|
-
"static-categories": (L = e.options) == null ? void 0 : L.staticCategories,
|
|
1306
|
-
"no-results-message": m.value,
|
|
1307
|
-
searching: !!r.value,
|
|
1308
|
-
"is-option-disabled": e.options.isOptionDisabled,
|
|
1309
|
-
"dynamic-filtering": !0,
|
|
1310
|
-
"empty-state": (P = e.options) == null ? void 0 : P.emptyState,
|
|
1311
|
-
onInput: T
|
|
1312
|
-
}, Te({ _: 2 }, [
|
|
1313
|
-
fe(C(i), (R, U) => ({
|
|
1314
|
-
name: U,
|
|
1315
|
-
fn: _((A) => [
|
|
1316
|
-
re(D.$slots, U, Le(Re(A)))
|
|
1317
|
-
])
|
|
1318
|
-
}))
|
|
1319
|
-
]), 1032, ["value", "items", "multiple", "static-categories", "no-results-message", "searching", "is-option-disabled", "empty-state"]);
|
|
1320
|
-
};
|
|
1321
|
-
}
|
|
1322
|
-
}), Ce = {
|
|
1323
|
-
/**
|
|
1324
|
-
* Default value of the filter to reset to.
|
|
1325
|
-
*
|
|
1326
|
-
*/
|
|
1327
|
-
defaultValue: {
|
|
1328
|
-
type: [String, Number, Array],
|
|
1329
|
-
default: null
|
|
1330
|
-
},
|
|
1331
|
-
/**
|
|
1332
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
1333
|
-
* Should be unique per filter bar.
|
|
1334
|
-
*/
|
|
1335
|
-
field: { type: String, required: !0 },
|
|
1336
|
-
/**
|
|
1337
|
-
* Label text to be displayed
|
|
1338
|
-
*/
|
|
1339
|
-
label: { type: String, required: !0 },
|
|
1340
|
-
/**
|
|
1341
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
1342
|
-
* Used for the allFiltersModal component.
|
|
1343
|
-
*
|
|
1344
|
-
*/
|
|
1345
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
1346
|
-
/**
|
|
1347
|
-
* List of options that are needed to setup the filter
|
|
1348
|
-
* Available options:
|
|
1349
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1350
|
-
* - listboxItems: The option elements to populate the filter with.
|
|
1351
|
-
*
|
|
1352
|
-
* @default undefined
|
|
1353
|
-
*/
|
|
1354
|
-
options: {
|
|
1355
|
-
type: Object,
|
|
1356
|
-
default: void 0
|
|
1357
|
-
},
|
|
1358
|
-
/**
|
|
1359
|
-
* Current value of the filter
|
|
1360
|
-
*
|
|
1361
|
-
* @default undefined
|
|
1362
|
-
*/
|
|
1363
|
-
value: {
|
|
1364
|
-
type: [String, Number, Array],
|
|
1365
|
-
default: void 0
|
|
1366
|
-
}
|
|
1367
|
-
}, El = {}, Se = /* @__PURE__ */ W({
|
|
1368
|
-
...El,
|
|
1369
|
-
__name: "select-filter",
|
|
1370
|
-
props: Ce,
|
|
1371
|
-
emits: ["input", "update"],
|
|
1372
|
-
setup(e, { emit: l }) {
|
|
1373
|
-
const a = Oe(), i = l, t = (n) => i("input", n), o = (n) => i("update", n);
|
|
1374
|
-
return (n, r) => n.onlySlot ? (y(), E(C(Ul), {
|
|
1375
|
-
key: 0,
|
|
1376
|
-
"default-value": n.defaultValue,
|
|
1377
|
-
field: n.field,
|
|
1378
|
-
label: n.label,
|
|
1379
|
-
options: n.options,
|
|
1380
|
-
value: n.value,
|
|
1381
|
-
onInput: t,
|
|
1382
|
-
onUpdate: o
|
|
1383
|
-
}, Te({ _: 2 }, [
|
|
1384
|
-
fe(C(a), (s, u) => ({
|
|
1385
|
-
name: u,
|
|
1386
|
-
fn: _((m) => [
|
|
1387
|
-
re(n.$slots, u, Le(Re(m)))
|
|
1388
|
-
])
|
|
1389
|
-
}))
|
|
1390
|
-
]), 1032, ["default-value", "field", "label", "options", "value"])) : (y(), E(C(Tl), {
|
|
1391
|
-
key: 1,
|
|
1392
|
-
"default-value": n.defaultValue,
|
|
1393
|
-
field: n.field,
|
|
1394
|
-
label: n.label,
|
|
1395
|
-
options: n.options,
|
|
1396
|
-
value: n.value,
|
|
1397
|
-
onInput: t,
|
|
1398
|
-
onUpdate: o
|
|
1399
|
-
}, Te({ _: 2 }, [
|
|
1400
|
-
fe(C(a), (s, u) => ({
|
|
1401
|
-
name: u,
|
|
1402
|
-
fn: _((m) => [
|
|
1403
|
-
re(n.$slots, u, Le(Re(m)))
|
|
1404
|
-
])
|
|
1405
|
-
}))
|
|
1406
|
-
]), 1032, ["default-value", "field", "label", "options", "value"]));
|
|
1407
|
-
}
|
|
1408
|
-
}), Vl = W({
|
|
1409
|
-
name: "bento-select-avatar-filter",
|
|
1410
|
-
components: {
|
|
1411
|
-
BentoSelectFilter: Se,
|
|
1412
|
-
BentoAvatar: xt
|
|
1413
|
-
},
|
|
1414
|
-
props: {
|
|
1415
|
-
...Ce,
|
|
1416
|
-
/**
|
|
1417
|
-
* List of options that are needed to setup the country filter
|
|
1418
|
-
* Available options:
|
|
1419
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1420
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
|
|
1421
|
-
*/
|
|
1422
|
-
options: {
|
|
1423
|
-
type: Object,
|
|
1424
|
-
default: void 0
|
|
1425
|
-
}
|
|
1426
|
-
},
|
|
1427
|
-
emits: [F.INPUT, F.UPDATE],
|
|
1428
|
-
setup(e, { emit: l }) {
|
|
1429
|
-
return {
|
|
1430
|
-
// Enums
|
|
1431
|
-
BentoFilterEvent: F,
|
|
1432
|
-
// Methods
|
|
1433
|
-
onUpdate: (i) => l(F.UPDATE, i)
|
|
1434
|
-
};
|
|
1435
|
-
}
|
|
1436
|
-
});
|
|
1437
|
-
function wl(e, l, a, i, t, o) {
|
|
1438
|
-
const n = $("bento-avatar"), r = $("bento-select-filter");
|
|
1439
|
-
return y(), E(r, ie(e.$props, {
|
|
1440
|
-
field: e.field,
|
|
1441
|
-
label: e.label,
|
|
1442
|
-
onUpdate: e.onUpdate,
|
|
1443
|
-
onInput: l[0] || (l[0] = (s) => e.$emit(e.BentoFilterEvent.INPUT, s))
|
|
1444
|
-
}), {
|
|
1445
|
-
default: _(({ label: s, data: u }) => [
|
|
1446
|
-
I(n, {
|
|
1447
|
-
username: s,
|
|
1448
|
-
src: u
|
|
1449
|
-
}, null, 8, ["username", "src"])
|
|
1450
|
-
]),
|
|
1451
|
-
_: 1
|
|
1452
|
-
}, 16, ["field", "label", "onUpdate"]);
|
|
1453
|
-
}
|
|
1454
|
-
const Ct = /* @__PURE__ */ Z(Vl, [["render", wl]]), Ll = W({
|
|
1455
|
-
name: "bento-select-country-filter",
|
|
1456
|
-
components: {
|
|
1457
|
-
BentoSelectFilter: Se,
|
|
1458
|
-
ListboxOptionTag: Ft
|
|
1459
|
-
},
|
|
1460
|
-
props: {
|
|
1461
|
-
...Ce,
|
|
1462
|
-
/**
|
|
1463
|
-
* List of options that are needed to setup the country filter
|
|
1464
|
-
* Available options:
|
|
1465
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1466
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectCurrencyFilterOptions}
|
|
1467
|
-
*/
|
|
1468
|
-
options: {
|
|
1469
|
-
type: Object,
|
|
1470
|
-
default: void 0
|
|
1471
|
-
}
|
|
1472
|
-
},
|
|
1473
|
-
emits: [F.INPUT, F.UPDATE],
|
|
1474
|
-
setup(e, { emit: l }) {
|
|
1475
|
-
return {
|
|
1476
|
-
// Enums
|
|
1477
|
-
BentoFilterEvent: F,
|
|
1478
|
-
// Methods
|
|
1479
|
-
onUpdate: (i) => {
|
|
1480
|
-
l(F.UPDATE, i);
|
|
1481
|
-
}
|
|
1482
|
-
};
|
|
1483
|
-
}
|
|
1484
|
-
});
|
|
1485
|
-
function Rl(e, l, a, i, t, o) {
|
|
1486
|
-
const n = $("listbox-option-tag"), r = $("bento-select-filter");
|
|
1487
|
-
return y(), E(r, ie(e.$props, {
|
|
1488
|
-
field: e.field,
|
|
1489
|
-
label: e.label,
|
|
1490
|
-
onUpdate: e.onUpdate,
|
|
1491
|
-
onInput: l[0] || (l[0] = (s) => e.$emit(e.BentoFilterEvent.INPUT, s))
|
|
1492
|
-
}), {
|
|
1493
|
-
default: _((s) => [
|
|
1494
|
-
I(n, { option: s }, null, 8, ["option"])
|
|
1495
|
-
]),
|
|
1496
|
-
_: 1
|
|
1497
|
-
}, 16, ["field", "label", "onUpdate"]);
|
|
1498
|
-
}
|
|
1499
|
-
const Dt = /* @__PURE__ */ Z(Ll, [["render", Rl]]), Ol = {
|
|
1500
|
-
name: "bento-select-country-filter"
|
|
1501
|
-
}, It = /* @__PURE__ */ W({
|
|
1502
|
-
...Ol,
|
|
1503
|
-
props: {
|
|
1504
|
-
...Ce,
|
|
1505
|
-
/**
|
|
1506
|
-
* List of options that are needed to setup the country filter
|
|
1507
|
-
* Available options:
|
|
1508
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1509
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}
|
|
1510
|
-
* - variant: Which label variant to display for the option item.
|
|
1511
|
-
*/
|
|
1512
|
-
options: {
|
|
1513
|
-
type: Object,
|
|
1514
|
-
default: void 0
|
|
1515
|
-
}
|
|
1516
|
-
},
|
|
1517
|
-
emits: [F.INPUT, F.UPDATE],
|
|
1518
|
-
setup(e, { emit: l }) {
|
|
1519
|
-
const a = e, i = l, t = k(a.options.variant), o = k(a.options.listboxItems);
|
|
1520
|
-
de([() => a.options.variant, () => a.options.listboxItems], () => {
|
|
1521
|
-
t.value = a.options.variant, o.value = a.options.listboxItems;
|
|
1522
|
-
});
|
|
1523
|
-
const n = (u) => i(F.UPDATE, u), r = tl(t, o), s = b(() => ({
|
|
1524
|
-
...a != null && a.options ? a.options : {},
|
|
1525
|
-
listboxItems: r.value
|
|
1526
|
-
}));
|
|
1527
|
-
return (!t.value || t.value === "custom") && rt(
|
|
1528
|
-
'BentoSelectCountryFilter type with `options.variant==="custom"`',
|
|
1529
|
-
"Use any of the other BentoSelectCountryFilter variants instead OR use BentoSelectFilter type for custom labels",
|
|
1530
|
-
"2.0.0"
|
|
1531
|
-
), (u, m) => (y(), E(Se, ie(a, {
|
|
1532
|
-
field: u.field,
|
|
1533
|
-
label: u.label,
|
|
1534
|
-
options: s.value,
|
|
1535
|
-
onUpdate: n,
|
|
1536
|
-
onInput: m[0] || (m[0] = (T) => u.$emit(C(F).INPUT, T))
|
|
1537
|
-
}), {
|
|
1538
|
-
default: _(({ label: T }) => [
|
|
1539
|
-
I(C(Fe), { el: "span" }, {
|
|
1540
|
-
default: _(() => [
|
|
1541
|
-
j(H(T), 1)
|
|
1542
|
-
]),
|
|
1543
|
-
_: 2
|
|
1544
|
-
}, 1024)
|
|
1545
|
-
]),
|
|
1546
|
-
_: 1
|
|
1547
|
-
}, 16, ["field", "label", "options"]));
|
|
1548
|
-
}
|
|
1549
|
-
}), kl = W({
|
|
1550
|
-
name: "bento-select-payment-method-filter",
|
|
1551
|
-
components: {
|
|
1552
|
-
BentoSelectFilter: Se,
|
|
1553
|
-
BentoPaymentMethod: ll
|
|
1554
|
-
},
|
|
1555
|
-
props: {
|
|
1556
|
-
...Ce,
|
|
1557
|
-
/**
|
|
1558
|
-
* List of options that are needed to setup the payment method filter
|
|
1559
|
-
* Available options:
|
|
1560
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1561
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectPaymentMethodFilterOptions}
|
|
1562
|
-
*/
|
|
1563
|
-
options: {
|
|
1564
|
-
type: Object,
|
|
1565
|
-
default: void 0
|
|
1566
|
-
}
|
|
1567
|
-
},
|
|
1568
|
-
emits: [F.INPUT, F.UPDATE],
|
|
1569
|
-
setup(e, { emit: l }) {
|
|
1570
|
-
return {
|
|
1571
|
-
// Enums
|
|
1572
|
-
BentoFilterEvent: F,
|
|
1573
|
-
// Methods
|
|
1574
|
-
onUpdate: (i) => l(F.UPDATE, i)
|
|
1575
|
-
};
|
|
1576
|
-
}
|
|
1577
|
-
});
|
|
1578
|
-
function Nl(e, l, a, i, t, o) {
|
|
1579
|
-
const n = $("bento-payment-method"), r = $("bento-select-filter");
|
|
1580
|
-
return y(), E(r, ie(e.$props, {
|
|
1581
|
-
field: e.field,
|
|
1582
|
-
label: e.label,
|
|
1583
|
-
onUpdate: e.onUpdate,
|
|
1584
|
-
onInput: l[0] || (l[0] = (s) => e.$emit(e.BentoFilterEvent.INPUT, s))
|
|
1585
|
-
}), {
|
|
1586
|
-
default: _(({ value: s, label: u }) => [
|
|
1587
|
-
I(n, {
|
|
1588
|
-
type: s,
|
|
1589
|
-
label: u
|
|
1590
|
-
}, null, 8, ["type", "label"])
|
|
1591
|
-
]),
|
|
1592
|
-
_: 1
|
|
1593
|
-
}, 16, ["field", "label", "onUpdate"]);
|
|
1594
|
-
}
|
|
1595
|
-
const At = /* @__PURE__ */ Z(kl, [["render", Nl]]), Ml = W({
|
|
1596
|
-
name: "bento-select-country-filter",
|
|
1597
|
-
components: {
|
|
1598
|
-
BentoSelectFilter: Se,
|
|
1599
|
-
ListboxOptionTag: Ft
|
|
1600
|
-
},
|
|
1601
|
-
props: {
|
|
1602
|
-
...Ce,
|
|
1603
|
-
/**
|
|
1604
|
-
* List of options that are needed to setup the tag filter
|
|
1605
|
-
* Available options:
|
|
1606
|
-
* - multiple: If "true", the user will be able to select multiple items.
|
|
1607
|
-
* - listboxItems: The option elements to populate the filter with {@see BentoSelectTagFilterOptions}
|
|
1608
|
-
*/
|
|
1609
|
-
options: {
|
|
1610
|
-
type: Object,
|
|
1611
|
-
default: void 0
|
|
1612
|
-
}
|
|
1613
|
-
},
|
|
1614
|
-
emits: [F.INPUT, F.UPDATE],
|
|
1615
|
-
setup(e, { emit: l }) {
|
|
1616
|
-
const a = (o) => l(F.UPDATE, o), i = b(
|
|
1617
|
-
() => {
|
|
1618
|
-
var o, n;
|
|
1619
|
-
return (n = (o = e == null ? void 0 : e.options) == null ? void 0 : o.listboxItems) == null ? void 0 : n.map(({ label: r, value: s, variant: u }) => ({ label: r, value: s, data: u }));
|
|
1620
|
-
}
|
|
1621
|
-
);
|
|
1622
|
-
return {
|
|
1623
|
-
// Values
|
|
1624
|
-
countryOptions: b(() => ({
|
|
1625
|
-
...e.options,
|
|
1626
|
-
listboxItems: i.value
|
|
1627
|
-
})),
|
|
1628
|
-
// Methods
|
|
1629
|
-
onUpdate: a,
|
|
1630
|
-
// Enums
|
|
1631
|
-
BentoFilterEvent: F
|
|
1632
|
-
};
|
|
1633
|
-
}
|
|
1634
|
-
});
|
|
1635
|
-
function Hl(e, l, a, i, t, o) {
|
|
1636
|
-
const n = $("listbox-option-tag"), r = $("bento-select-filter");
|
|
1637
|
-
return y(), E(r, ie(e.$props, {
|
|
1638
|
-
field: e.field,
|
|
1639
|
-
label: e.label,
|
|
1640
|
-
options: e.countryOptions,
|
|
1641
|
-
onUpdate: e.onUpdate,
|
|
1642
|
-
onInput: l[0] || (l[0] = (s) => e.$emit(e.BentoFilterEvent.INPUT, s))
|
|
1643
|
-
}), {
|
|
1644
|
-
default: _(({ label: s, data: u }) => [
|
|
1645
|
-
I(n, {
|
|
1646
|
-
option: { value: s, data: u, label: "" }
|
|
1647
|
-
}, null, 8, ["option"])
|
|
1648
|
-
]),
|
|
1649
|
-
_: 1
|
|
1650
|
-
}, 16, ["field", "label", "options", "onUpdate"]);
|
|
1651
|
-
}
|
|
1652
|
-
const $t = /* @__PURE__ */ Z(Ml, [["render", Hl]]), tt = {
|
|
1653
|
-
"en-US": {
|
|
1654
|
-
no: "No",
|
|
1655
|
-
yes: "Yes"
|
|
1656
|
-
},
|
|
1657
|
-
"pt-BR": {
|
|
1658
|
-
yes: "Sim",
|
|
1659
|
-
no: "Não"
|
|
1660
|
-
},
|
|
1661
|
-
"ja-JP": {
|
|
1662
|
-
no: "いいえ",
|
|
1663
|
-
yes: "はい"
|
|
1664
|
-
}
|
|
1665
|
-
}, Kl = W({
|
|
1666
|
-
name: "bento-boolean-filter",
|
|
1667
|
-
i18n: { messages: tt },
|
|
1668
|
-
components: { BentoBaseFilter: ge, BentoRadioGroup: qt },
|
|
1669
|
-
props: {
|
|
1670
|
-
/**
|
|
1671
|
-
* Default value of the filter to reset to.
|
|
1672
|
-
*/
|
|
1673
|
-
defaultValue: { type: [String, Boolean], default: null },
|
|
1674
|
-
/**
|
|
1675
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
1676
|
-
* Should be unique per filter bar.
|
|
1677
|
-
*/
|
|
1678
|
-
field: { type: String, required: !0 },
|
|
1679
|
-
/**
|
|
1680
|
-
* Label text to be displayed
|
|
1681
|
-
*/
|
|
1682
|
-
label: { type: String, required: !0 },
|
|
1683
|
-
/**
|
|
1684
|
-
* Current value of the filter
|
|
1685
|
-
*/
|
|
1686
|
-
value: { type: [String, Boolean], default: null },
|
|
1687
|
-
/**
|
|
1688
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
1689
|
-
* Used for the allFiltersModal component.
|
|
1690
|
-
*/
|
|
1691
|
-
onlySlot: { type: Boolean, default: !1 },
|
|
1692
|
-
/**
|
|
1693
|
-
* List of options that are needed to setup the filter
|
|
1694
|
-
* Available options:
|
|
1695
|
-
* - listboxItems: The option elements to populate the filter with.
|
|
1696
|
-
*/
|
|
1697
|
-
options: {
|
|
1698
|
-
type: Object,
|
|
1699
|
-
default: void 0
|
|
1700
|
-
}
|
|
1701
|
-
},
|
|
1702
|
-
emits: [F.INPUT, F.UPDATE],
|
|
1703
|
-
setup(e, { emit: l }) {
|
|
1704
|
-
const { t: a } = ce({ messages: tt }), i = (A) => typeof A == "boolean" ? A == null ? void 0 : A.toString() : A, t = (A) => {
|
|
1705
|
-
var B, w, g, d;
|
|
1706
|
-
return ((w = (B = e == null ? void 0 : e.options) == null ? void 0 : B.positiveOption) == null ? void 0 : w.value) !== void 0 && ((d = (g = e == null ? void 0 : e.options) == null ? void 0 : g.negativeOption) == null ? void 0 : d.value) !== void 0 && typeof e.options.positiveOption.value == "boolean" && typeof e.options.negativeOption.value == "boolean" && typeof A == "string" ? A === "true" : A;
|
|
1707
|
-
}, o = b(() => i(e.defaultValue)), n = b(() => i(e.value)), r = b(() => e.options && e.options.positiveOption && e.options.negativeOption ? [
|
|
1708
|
-
{
|
|
1709
|
-
...e.options.positiveOption,
|
|
1710
|
-
value: i(e.options.positiveOption.value)
|
|
1711
|
-
},
|
|
1712
|
-
{
|
|
1713
|
-
...e.options.negativeOption,
|
|
1714
|
-
value: i(e.options.negativeOption.value)
|
|
1715
|
-
}
|
|
1716
|
-
] : [
|
|
1717
|
-
{ value: "yes", label: a("yes") },
|
|
1718
|
-
{ value: "no", label: a("no") }
|
|
1719
|
-
]), { internalFilterValue: s, isSecondaryButtonDisabled: u, isApplyButtonDisabled: m } = pe(
|
|
1720
|
-
n,
|
|
1721
|
-
o
|
|
1722
|
-
), T = b(
|
|
1723
|
-
() => e.defaultValue === null ? e.label : se(r.value.find(({ value: A }) => A === n.value).label, 18)
|
|
1724
|
-
), D = b(
|
|
1725
|
-
() => {
|
|
1726
|
-
var A;
|
|
1727
|
-
return e.defaultValue === null ? se((A = r.value.find(({ value: B }) => B === n.value)) == null ? void 0 : A.label, 12) : null;
|
|
1728
|
-
}
|
|
1729
|
-
), c = b(() => ({
|
|
1730
|
-
"b-boolean-filter--only-slot": e.onlySlot
|
|
1731
|
-
}));
|
|
1732
|
-
ke(() => {
|
|
1733
|
-
s.value || (s.value = null);
|
|
1734
|
-
});
|
|
1735
|
-
const h = (A) => {
|
|
1736
|
-
s.value = A, l(F.INPUT, {
|
|
1737
|
-
...e,
|
|
1738
|
-
value: t(s.value)
|
|
1739
|
-
});
|
|
1740
|
-
}, L = () => {
|
|
1741
|
-
s.value = n.value;
|
|
1742
|
-
}, P = () => {
|
|
1743
|
-
l(F.UPDATE, {
|
|
1744
|
-
...e,
|
|
1745
|
-
value: t(s.value)
|
|
1746
|
-
});
|
|
1747
|
-
};
|
|
1748
|
-
return {
|
|
1749
|
-
// Values
|
|
1750
|
-
items: r,
|
|
1751
|
-
conditionalClasses: c,
|
|
1752
|
-
buttonLabel: T,
|
|
1753
|
-
buttonSecondaryLabel: D,
|
|
1754
|
-
internalFilterValue: s,
|
|
1755
|
-
isApplyButtonDisabled: m,
|
|
1756
|
-
isSecondaryButtonDisabled: u,
|
|
1757
|
-
translatedValue: n,
|
|
1758
|
-
translatedDefaultValue: o,
|
|
1759
|
-
// Events
|
|
1760
|
-
onInput: h,
|
|
1761
|
-
updateFilter: P,
|
|
1762
|
-
clearFilter: () => {
|
|
1763
|
-
s.value = null, P();
|
|
1764
|
-
},
|
|
1765
|
-
openFilter: L,
|
|
1766
|
-
resetFilter: () => l(F.UPDATE, { ...e, value: e.defaultValue })
|
|
1767
|
-
};
|
|
1768
|
-
}
|
|
1769
|
-
});
|
|
1770
|
-
function jl(e, l, a, i, t, o) {
|
|
1771
|
-
const n = $("bento-radio-group"), r = $("bento-base-filter");
|
|
1772
|
-
return y(), E(r, ie(e.$props, {
|
|
1773
|
-
value: e.translatedValue,
|
|
1774
|
-
"default-value": e.translatedDefaultValue,
|
|
1775
|
-
"button-label": e.buttonLabel,
|
|
1776
|
-
"button-secondary-label": e.buttonSecondaryLabel,
|
|
1777
|
-
"disable-apply-button": e.isApplyButtonDisabled,
|
|
1778
|
-
"disable-secondary-button": e.isSecondaryButtonDisabled,
|
|
1779
|
-
"only-slot": e.onlySlot,
|
|
1780
|
-
onApply: e.updateFilter,
|
|
1781
|
-
onClear: e.clearFilter,
|
|
1782
|
-
onOpen: e.openFilter,
|
|
1783
|
-
onReset: e.resetFilter
|
|
1784
|
-
}), {
|
|
1785
|
-
default: _(() => [
|
|
1786
|
-
N("div", {
|
|
1787
|
-
class: he(["b-boolean-filter", e.conditionalClasses]),
|
|
1788
|
-
onKeydown: l[0] || (l[0] = be((...s) => e.updateFilter && e.updateFilter(...s), ["enter"]))
|
|
1789
|
-
}, [
|
|
1790
|
-
I(n, {
|
|
1791
|
-
items: e.items,
|
|
1792
|
-
label: e.label,
|
|
1793
|
-
"model-value": e.internalFilterValue,
|
|
1794
|
-
"hide-label": "",
|
|
1795
|
-
"onUpdate:modelValue": e.onInput
|
|
1796
|
-
}, null, 8, ["items", "label", "model-value", "onUpdate:modelValue"])
|
|
1797
|
-
], 34)
|
|
1798
|
-
]),
|
|
1799
|
-
_: 1
|
|
1800
|
-
}, 16, ["value", "default-value", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
|
|
1801
|
-
}
|
|
1802
|
-
const Tt = /* @__PURE__ */ Z(Kl, [["render", jl], ["__scopeId", "data-v-1fa97477"]]), lt = {
|
|
1803
|
-
"en-US": {
|
|
1804
|
-
from: "From",
|
|
1805
|
-
to: "To"
|
|
1806
|
-
}
|
|
1807
|
-
}, ql = W({
|
|
1808
|
-
name: "bento-range-filter",
|
|
1809
|
-
i18n: { messages: lt },
|
|
1810
|
-
components: { BentoBaseFilter: ge, BentoInputField: je },
|
|
1811
|
-
props: {
|
|
1812
|
-
/**
|
|
1813
|
-
* Default value of the filter to reset to.
|
|
1814
|
-
*/
|
|
1815
|
-
defaultValue: { type: Array, default: null },
|
|
1816
|
-
/**
|
|
1817
|
-
* Filter name/key referencing the actual property name in the data set.
|
|
1818
|
-
* Should be unique per filter bar.
|
|
1819
|
-
*/
|
|
1820
|
-
field: { type: String, required: !0 },
|
|
1821
|
-
/**
|
|
1822
|
-
* Label text to be displayed
|
|
1823
|
-
*/
|
|
1824
|
-
label: { type: String, required: !0 },
|
|
1825
|
-
/**
|
|
1826
|
-
* Current value of the filter
|
|
1827
|
-
*/
|
|
1828
|
-
value: { type: Array, default: () => ["", ""] },
|
|
1829
|
-
/**
|
|
1830
|
-
* Renders the base filter's slot content only - leaving out the button and the popover.
|
|
1831
|
-
* Used for the allFiltersModal component.
|
|
1832
|
-
*/
|
|
1833
|
-
onlySlot: { type: Boolean, default: !1 }
|
|
1834
|
-
},
|
|
1835
|
-
emits: [F.INPUT, F.UPDATE],
|
|
1836
|
-
setup(e, { emit: l }) {
|
|
1837
|
-
const { t: a } = ce({ messages: lt }), i = k(null), { internalFilterValue: t, isSecondaryButtonDisabled: o, isApplyButtonDisabled: n } = pe(
|
|
1838
|
-
G(e, "value"),
|
|
1839
|
-
G(e, "defaultValue")
|
|
1840
|
-
), r = b(() => {
|
|
1841
|
-
var g, d, f, O, X, ae, ue, oe;
|
|
1842
|
-
if (!((g = e.value) != null && g[0]) && !((d = e.value) != null && d[1]))
|
|
1843
|
-
return null;
|
|
1844
|
-
let U = "";
|
|
1845
|
-
(f = e.value) != null && f[0] ? (O = e.value) != null && O[1] || (U = "≥") : U = "≤";
|
|
1846
|
-
const A = (X = e.value) != null && X[0] ? `${se(e.value[0], 5)}` : "", B = (ae = e.value) != null && ae[0] && ((ue = e.value) != null && ue[1]) ? " - " : "", w = (oe = e.value) != null && oe[1] ? `${se(e.value[1], 5)}` : "";
|
|
1847
|
-
return `${U}${A}${B}${w}`;
|
|
1848
|
-
}), s = b(
|
|
1849
|
-
() => e.defaultValue === null ? e.label : r.value
|
|
1850
|
-
), u = b(
|
|
1851
|
-
() => e.defaultValue === null ? r.value : null
|
|
1852
|
-
), m = b(() => ({
|
|
1853
|
-
"b-range-filter--only-slot": e.onlySlot
|
|
1854
|
-
})), T = () => {
|
|
1855
|
-
t.value = e.value, st(() => i.value.focusInput());
|
|
1856
|
-
}, D = () => {
|
|
1857
|
-
l(F.INPUT, { ...e, value: t.value });
|
|
1858
|
-
}, c = (U) => {
|
|
1859
|
-
t.value = [U, t.value[1]], D();
|
|
1860
|
-
}, h = (U) => {
|
|
1861
|
-
t.value = [t.value[0], U], D();
|
|
1862
|
-
}, L = () => {
|
|
1863
|
-
t.value.some((U) => U) || (t.value = e.defaultValue !== null ? e.defaultValue : void 0), l(F.UPDATE, {
|
|
1864
|
-
...e,
|
|
1865
|
-
value: t.value
|
|
1866
|
-
});
|
|
1867
|
-
};
|
|
1868
|
-
return {
|
|
1869
|
-
// Values
|
|
1870
|
-
inputTextRef: i,
|
|
1871
|
-
conditionalClasses: m,
|
|
1872
|
-
internalFilterValue: t,
|
|
1873
|
-
isApplyButtonDisabled: n,
|
|
1874
|
-
isSecondaryButtonDisabled: o,
|
|
1875
|
-
buttonLabel: s,
|
|
1876
|
-
buttonSecondaryLabel: u,
|
|
1877
|
-
// Events
|
|
1878
|
-
updateFrom: c,
|
|
1879
|
-
updateTo: h,
|
|
1880
|
-
updateFilter: L,
|
|
1881
|
-
clearFilter: () => {
|
|
1882
|
-
t.value = ["", ""], L();
|
|
1883
|
-
},
|
|
1884
|
-
openFilter: T,
|
|
1885
|
-
resetFilter: () => l(F.UPDATE, { ...e, value: e.defaultValue }),
|
|
1886
|
-
// Translations
|
|
1887
|
-
t: a
|
|
1888
|
-
};
|
|
1889
|
-
}
|
|
1890
|
-
});
|
|
1891
|
-
function Jl(e, l, a, i, t, o) {
|
|
1892
|
-
const n = $("bento-input-field"), r = $("bento-base-filter");
|
|
1893
|
-
return y(), E(r, ie(e.$props, {
|
|
1894
|
-
"disable-apply-button": e.isApplyButtonDisabled,
|
|
1895
|
-
"disable-secondary-button": e.isSecondaryButtonDisabled,
|
|
1896
|
-
"button-label": e.buttonLabel,
|
|
1897
|
-
"button-secondary-label": e.buttonSecondaryLabel,
|
|
1898
|
-
"only-slot": e.onlySlot,
|
|
1899
|
-
onApply: e.updateFilter,
|
|
1900
|
-
onClear: e.clearFilter,
|
|
1901
|
-
onOpen: e.openFilter,
|
|
1902
|
-
onReset: e.resetFilter
|
|
1903
|
-
}), {
|
|
1904
|
-
default: _(() => [
|
|
1905
|
-
N("div", {
|
|
1906
|
-
class: he(["b-range-filter", e.conditionalClasses]),
|
|
1907
|
-
onKeydown: l[0] || (l[0] = be((...s) => e.updateFilter && e.updateFilter(...s), ["enter"]))
|
|
1908
|
-
}, [
|
|
1909
|
-
I(n, {
|
|
1910
|
-
ref: "inputTextRef",
|
|
1911
|
-
value: e.internalFilterValue ? e.internalFilterValue[0] : "",
|
|
1912
|
-
type: "number",
|
|
1913
|
-
"aria-label": e.t("from").toString(),
|
|
1914
|
-
onInput: e.updateFrom
|
|
1915
|
-
}, {
|
|
1916
|
-
default: _(() => [
|
|
1917
|
-
j(H(e.t("from")), 1)
|
|
1918
|
-
]),
|
|
1919
|
-
_: 1
|
|
1920
|
-
}, 8, ["value", "aria-label", "onInput"]),
|
|
1921
|
-
I(n, {
|
|
1922
|
-
class: "b-range-filter__input-field",
|
|
1923
|
-
value: e.internalFilterValue ? e.internalFilterValue[1] : "",
|
|
1924
|
-
type: "number",
|
|
1925
|
-
"aria-label": e.t("to"),
|
|
1926
|
-
onInput: e.updateTo
|
|
1927
|
-
}, {
|
|
1928
|
-
default: _(() => [
|
|
1929
|
-
j(H(e.t("to")), 1)
|
|
1930
|
-
]),
|
|
1931
|
-
_: 1
|
|
1932
|
-
}, 8, ["value", "aria-label", "onInput"])
|
|
1933
|
-
], 34)
|
|
1934
|
-
]),
|
|
1935
|
-
_: 1
|
|
1936
|
-
}, 16, ["disable-apply-button", "disable-secondary-button", "button-label", "button-secondary-label", "only-slot", "onApply", "onClear", "onOpen", "onReset"]);
|
|
1937
|
-
}
|
|
1938
|
-
const Pt = /* @__PURE__ */ Z(ql, [["render", Jl], ["__scopeId", "data-v-901ba107"]]);
|
|
1939
|
-
var He = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(He || {});
|
|
1940
|
-
const Yl = W({
|
|
1941
|
-
name: "base-filter-button",
|
|
1942
|
-
components: { BaseButton: ct, BentoTypography: Fe, ChevronUpIcon: pt, ChevronDownIcon: vt },
|
|
1943
|
-
props: {
|
|
1944
|
-
/**
|
|
1945
|
-
* The number of applies values within the filter.
|
|
1946
|
-
* e.g. if 2 items in a dropdown filter have been applied, the number 2 will be shown here.
|
|
1947
|
-
*/
|
|
1948
|
-
amountAppliedValues: { type: [Number, String], default: null },
|
|
1949
|
-
/**
|
|
1950
|
-
* Disables button functionality.
|
|
1951
|
-
*/
|
|
1952
|
-
disabled: { type: Boolean, default: !1 },
|
|
1953
|
-
/**
|
|
1954
|
-
* Signifies if the filter is open or closed.
|
|
1955
|
-
*/
|
|
1956
|
-
isFilterOpen: { type: Boolean, default: !1 },
|
|
1957
|
-
/**
|
|
1958
|
-
* Toggles if a chevron icon should be displayed in the button.
|
|
1959
|
-
* The chevron will change depending on the open state of the filter.
|
|
1960
|
-
*/
|
|
1961
|
-
hasChevron: { type: Boolean, default: !1 },
|
|
1962
|
-
/**
|
|
1963
|
-
* Renders the text in a stronger variant.
|
|
1964
|
-
*/
|
|
1965
|
-
bold: { type: Boolean, default: !1 }
|
|
1966
|
-
},
|
|
1967
|
-
emits: [ze.CLICK],
|
|
1968
|
-
setup(e, { slots: l, emit: a, attrs: i }) {
|
|
1969
|
-
const t = b(() => l.default ? bt(l)("default") : null), o = dt({ ariaLabel: t }), n = k(null), r = b(() => {
|
|
1970
|
-
var m;
|
|
1971
|
-
return {
|
|
1972
|
-
"aria-controls": (m = i["aria-controls"]) == null ? void 0 : m.toString()
|
|
1973
|
-
};
|
|
1974
|
-
}), s = b(() => ({
|
|
1975
|
-
"b-base-filter-button--with-chevron": e.hasChevron,
|
|
1976
|
-
"b-base-filter-button--filter-open": e.isFilterOpen
|
|
1977
|
-
}));
|
|
1978
|
-
return {
|
|
1979
|
-
// Values
|
|
1980
|
-
ariaAttributes: r,
|
|
1981
|
-
computedAriaLabel: o,
|
|
1982
|
-
conditionalClasses: s,
|
|
1983
|
-
// Methods
|
|
1984
|
-
onClickButton: () => {
|
|
1985
|
-
e.disabled || a(ze.CLICK);
|
|
1986
|
-
},
|
|
1987
|
-
hasSlot: ft(l),
|
|
1988
|
-
// Refs
|
|
1989
|
-
baseFilterButtonRef: n
|
|
1990
|
-
};
|
|
1991
|
-
}
|
|
1992
|
-
}), zl = { class: "b-base-filter-button__default-container" }, Wl = { class: "b-base-filter-button__label-container" }, Gl = {
|
|
1993
|
-
key: 0,
|
|
1994
|
-
class: "b-base-filter-button__counter-wrapper"
|
|
1995
|
-
};
|
|
1996
|
-
function Zl(e, l, a, i, t, o) {
|
|
1997
|
-
const n = $("bento-typography"), r = $("chevron-up-icon"), s = $("chevron-down-icon"), u = $("base-button");
|
|
1998
|
-
return y(), E(u, {
|
|
1999
|
-
ref: "baseFilterButtonRef",
|
|
2000
|
-
class: he(["b-base-filter-button", e.conditionalClasses]),
|
|
2001
|
-
disabled: e.disabled,
|
|
2002
|
-
"aria-label": e.computedAriaLabel,
|
|
2003
|
-
"aria-controls": e.ariaAttributes["aria-controls"],
|
|
2004
|
-
type: "button",
|
|
2005
|
-
onClick: e.onClickButton
|
|
2006
|
-
}, Te({
|
|
2007
|
-
default: _(() => [
|
|
2008
|
-
N("div", zl, [
|
|
2009
|
-
N("div", Wl, [
|
|
2010
|
-
I(n, {
|
|
2011
|
-
el: "span",
|
|
2012
|
-
variant: "body",
|
|
2013
|
-
stronger: e.bold,
|
|
2014
|
-
class: "b-base-filter-button__label"
|
|
2015
|
-
}, {
|
|
2016
|
-
default: _(() => [
|
|
2017
|
-
re(e.$slots, "default", {}, void 0, !0)
|
|
2018
|
-
]),
|
|
2019
|
-
_: 3
|
|
2020
|
-
}, 8, ["stronger"])
|
|
2021
|
-
]),
|
|
2022
|
-
e.amountAppliedValues && !e.hasChevron ? (y(), q("div", Gl, [
|
|
2023
|
-
I(n, {
|
|
2024
|
-
class: "b-base-filter-button__counter",
|
|
2025
|
-
el: "span",
|
|
2026
|
-
variant: "body",
|
|
2027
|
-
stronger: ""
|
|
2028
|
-
}, {
|
|
2029
|
-
default: _(() => [
|
|
2030
|
-
j(H(e.amountAppliedValues), 1)
|
|
2031
|
-
]),
|
|
2032
|
-
_: 1
|
|
2033
|
-
})
|
|
2034
|
-
])) : z("", !0)
|
|
2035
|
-
])
|
|
2036
|
-
]),
|
|
2037
|
-
_: 2
|
|
2038
|
-
}, [
|
|
2039
|
-
e.hasChevron ? {
|
|
2040
|
-
name: "iconRight",
|
|
2041
|
-
fn: _(() => [
|
|
2042
|
-
e.isFilterOpen ? (y(), E(r, {
|
|
2043
|
-
key: 0,
|
|
2044
|
-
"aria-hidden": "true"
|
|
2045
|
-
})) : (y(), E(s, {
|
|
2046
|
-
key: 1,
|
|
2047
|
-
"aria-hidden": "true"
|
|
2048
|
-
}))
|
|
2049
|
-
]),
|
|
2050
|
-
key: "0"
|
|
2051
|
-
} : void 0
|
|
2052
|
-
]), 1032, ["class", "disabled", "aria-label", "aria-controls", "onClick"]);
|
|
2053
|
-
}
|
|
2054
|
-
const Ql = /* @__PURE__ */ Z(Yl, [["render", Zl], ["__scopeId", "data-v-af9efc73"]]), Xl = W({
|
|
2055
|
-
name: "all-filters-modal-button",
|
|
2056
|
-
components: { BaseFilterButton: Ql },
|
|
2057
|
-
props: {
|
|
2058
|
-
/**
|
|
2059
|
-
* Button label to be displayed
|
|
2060
|
-
*/
|
|
2061
|
-
label: { type: String, required: !0 },
|
|
2062
|
-
/**
|
|
2063
|
-
* Total count of applied filters
|
|
2064
|
-
*/
|
|
2065
|
-
appliedFiltersCount: { type: [Number, String], default: null },
|
|
2066
|
-
/**
|
|
2067
|
-
* Indicates whether the filter popover tied to this button is showing
|
|
2068
|
-
*/
|
|
2069
|
-
isFilterOpen: { type: Boolean, default: !1 },
|
|
2070
|
-
/**
|
|
2071
|
-
* Disables button functionality.
|
|
2072
|
-
*/
|
|
2073
|
-
disabled: { type: Boolean, default: !1 }
|
|
2074
|
-
},
|
|
2075
|
-
emits: ["click"],
|
|
2076
|
-
setup(e, { emit: l }) {
|
|
2077
|
-
return {
|
|
2078
|
-
conditionalClasses: b(() => ({
|
|
2079
|
-
"b-all-filters-modal-button--with-counter": e.appliedFiltersCount,
|
|
2080
|
-
"b-all-filters-modal-button--filter-open": e.isFilterOpen
|
|
2081
|
-
})),
|
|
2082
|
-
onClick: () => {
|
|
2083
|
-
l("click");
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
}
|
|
2087
|
-
});
|
|
2088
|
-
function xl(e, l, a, i, t, o) {
|
|
2089
|
-
const n = $("base-filter-button");
|
|
2090
|
-
return y(), E(n, {
|
|
2091
|
-
class: he(["b-all-filters-modal-button", e.conditionalClasses]),
|
|
2092
|
-
"amount-applied-values": e.appliedFiltersCount,
|
|
2093
|
-
"is-filter-open": e.isFilterOpen,
|
|
2094
|
-
disabled: e.disabled,
|
|
2095
|
-
onClick: e.onClick
|
|
2096
|
-
}, {
|
|
2097
|
-
default: _(() => [
|
|
2098
|
-
j(H(e.label), 1)
|
|
2099
|
-
]),
|
|
2100
|
-
_: 1
|
|
2101
|
-
}, 8, ["class", "amount-applied-values", "is-filter-open", "disabled", "onClick"]);
|
|
2102
|
-
}
|
|
2103
|
-
const ea = /* @__PURE__ */ Z(Xl, [["render", xl], ["__scopeId", "data-v-b96a672f"]]);
|
|
2104
|
-
let at = 0;
|
|
2105
|
-
const ta = {
|
|
2106
|
-
beforeCreate() {
|
|
2107
|
-
this.uuid = at.toString(), at += 1;
|
|
2108
|
-
}
|
|
2109
|
-
}, la = { key: 0 };
|
|
2110
|
-
function aa(e, l, a, i, t, o) {
|
|
2111
|
-
return y(), q("svg", ie({ role: "img" }, e.$attrs, {
|
|
2112
|
-
class: "ui-assets-icons-16",
|
|
2113
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2114
|
-
width: "16",
|
|
2115
|
-
height: "16",
|
|
2116
|
-
fill: "none"
|
|
2117
|
-
}), [
|
|
2118
|
-
e.$attrs["svg-title"] ? (y(), q("title", la, H(e.$attrs["svg-title"]), 1)) : z("", !0),
|
|
2119
|
-
l[0] || (l[0] = N("path", {
|
|
2120
|
-
fill: "#00112C",
|
|
2121
|
-
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"
|
|
2122
|
-
}, null, -1)),
|
|
2123
|
-
l[1] || (l[1] = N("path", {
|
|
2124
|
-
fill: "#00112C",
|
|
2125
|
-
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"
|
|
2126
|
-
}, null, -1))
|
|
2127
|
-
], 16);
|
|
2128
|
-
}
|
|
2129
|
-
const na = /* @__PURE__ */ Z(ta, [["render", aa]]), nt = {
|
|
2130
|
-
"en-US": {
|
|
2131
|
-
all: "All",
|
|
2132
|
-
activeFilters: "Active filters",
|
|
2133
|
-
allFilters: "All filters",
|
|
2134
|
-
applyAll: "Apply all",
|
|
2135
|
-
cancel: "Cancel",
|
|
2136
|
-
clear: "Clear",
|
|
2137
|
-
clearAll: "Clear all",
|
|
2138
|
-
noFiltersMatchThisSearch: "No filters match this search",
|
|
2139
|
-
otherFilters: "Other filters",
|
|
2140
|
-
searchBar: "Search bar"
|
|
2141
|
-
},
|
|
2142
|
-
"pt-BR": {
|
|
2143
|
-
all: "Todos",
|
|
2144
|
-
cancel: "Cancelar",
|
|
2145
|
-
clear: "Limpar",
|
|
2146
|
-
clearAll: "Limpar tudo"
|
|
2147
|
-
},
|
|
2148
|
-
"ja-JP": {
|
|
2149
|
-
all: "すべて",
|
|
2150
|
-
cancel: "キャンセル",
|
|
2151
|
-
clear: "クリア",
|
|
2152
|
-
clearAll: "すべてクリア"
|
|
2153
|
-
}
|
|
2154
|
-
}, oa = W({
|
|
2155
|
-
i18n: { messages: nt },
|
|
2156
|
-
name: "all-filters-modal",
|
|
2157
|
-
components: {
|
|
2158
|
-
AllFiltersModalButton: ea,
|
|
2159
|
-
BentoBooleanFilter: Tt,
|
|
2160
|
-
BentoButton: Ot,
|
|
2161
|
-
BentoDateFilter: gt,
|
|
2162
|
-
BentoDateRangeFilter: St,
|
|
2163
|
-
BentoInputFilter: ht,
|
|
2164
|
-
BentoModal: Lt,
|
|
2165
|
-
BentoRangeFilter: Pt,
|
|
2166
|
-
BentoSearchBar: Ae,
|
|
2167
|
-
BentoSelectAvatarFilter: Ct,
|
|
2168
|
-
BentoSelectCurrencyFilter: Dt,
|
|
2169
|
-
BentoSelectCountryFilter: It,
|
|
2170
|
-
BentoSelectFilter: Se,
|
|
2171
|
-
BentoSelectPaymentMethodFilter: At,
|
|
2172
|
-
BentoSelectTagFilter: $t,
|
|
2173
|
-
BentoTypography: Fe,
|
|
2174
|
-
FilterBarButton: Be,
|
|
2175
|
-
SlidersIcon: na
|
|
2176
|
-
},
|
|
2177
|
-
props: {
|
|
2178
|
-
/**
|
|
2179
|
-
* Array of filters based on {@see FilterBarModel}.
|
|
2180
|
-
* Each one of the elements in the array correspond to a filter that will
|
|
2181
|
-
* be created and rendered in the AllFiltersModal.
|
|
2182
|
-
*
|
|
2183
|
-
* Can be used with v-model or independently with the @input event.
|
|
2184
|
-
*
|
|
2185
|
-
* @example
|
|
2186
|
-
* [{
|
|
2187
|
-
* field: 'company',
|
|
2188
|
-
* label: 'Company',
|
|
2189
|
-
* value: '200',
|
|
2190
|
-
* type: FilterType.TEXT,
|
|
2191
|
-
* }, {
|
|
2192
|
-
* field: 'name',
|
|
2193
|
-
* label: 'Name',
|
|
2194
|
-
* value: null,
|
|
2195
|
-
* type: FilterType.TEXT,
|
|
2196
|
-
* }]
|
|
2197
|
-
*/
|
|
2198
|
-
value: {
|
|
2199
|
-
type: Array,
|
|
2200
|
-
default: () => []
|
|
2201
|
-
}
|
|
2202
|
-
},
|
|
2203
|
-
emits: [He.INPUT],
|
|
2204
|
-
setup(e, { emit: l }) {
|
|
2205
|
-
const a = ut({ value: e.value }), i = k(a.value), t = Ke("all-filters-modal"), o = k([]), n = k(!1), r = k(0), s = k(null), u = k(""), { t: m } = ce({ messages: nt }), T = mt(u, G(i, "value")), D = k({});
|
|
2206
|
-
ke(() => {
|
|
2207
|
-
D.value = [];
|
|
2208
|
-
}), de(
|
|
2209
|
-
() => e.value,
|
|
2210
|
-
() => {
|
|
2211
|
-
a.value = e.value, i.value = e.value;
|
|
2212
|
-
}
|
|
2213
|
-
);
|
|
2214
|
-
const c = (v) => (
|
|
2215
|
-
/* eslint-disable-next-line no-nested-ternary */
|
|
2216
|
-
v.sort((p, V) => p.label > V.label ? 1 : V.label > p.label ? -1 : 0)
|
|
2217
|
-
), h = b(
|
|
2218
|
-
() => c(
|
|
2219
|
-
T.value.filter(
|
|
2220
|
-
(v) => {
|
|
2221
|
-
var p, V;
|
|
2222
|
-
return Array.isArray(v.value) ? ((p = v.value) == null ? void 0 : p.length) && ((V = v.value) == null ? void 0 : V.find((M) => M !== "")) : v.value;
|
|
2223
|
-
}
|
|
2224
|
-
)
|
|
2225
|
-
)
|
|
2226
|
-
), L = b(
|
|
2227
|
-
() => c(
|
|
2228
|
-
T.value.filter(
|
|
2229
|
-
(v) => {
|
|
2230
|
-
var p, V;
|
|
2231
|
-
return Array.isArray(v.value) ? ((p = v.value) == null ? void 0 : p.length) === 0 || ((V = v.value) == null ? void 0 : V.every((M) => M === "")) : !v.value;
|
|
2232
|
-
}
|
|
2233
|
-
)
|
|
2234
|
-
)
|
|
2235
|
-
), P = b(() => {
|
|
2236
|
-
var v;
|
|
2237
|
-
return u.value && ((v = T.value) == null ? void 0 : v.length) === 0;
|
|
2238
|
-
}), R = b(() => i.value[r.value]), U = () => {
|
|
2239
|
-
const v = h.value.length ? h.value[0] : L.value[0], p = i.value.findIndex(
|
|
2240
|
-
(V) => V.label === v.label && V.field === v.field
|
|
2241
|
-
);
|
|
2242
|
-
r.value = p;
|
|
2243
|
-
};
|
|
2244
|
-
Vt(() => {
|
|
2245
|
-
U();
|
|
2246
|
-
});
|
|
2247
|
-
const A = (v) => v.map((p) => {
|
|
2248
|
-
var V, M, Q, x, ee, te;
|
|
2249
|
-
switch (p.type) {
|
|
2250
|
-
case le.SELECT:
|
|
2251
|
-
case le.SELECT_AVATAR:
|
|
2252
|
-
case le.SELECT_COUNTRY:
|
|
2253
|
-
case le.SELECT_CURRENCY:
|
|
2254
|
-
case le.SELECT_PAYMENT_METHOD:
|
|
2255
|
-
case le.SELECT_TAG:
|
|
2256
|
-
switch ((V = p.options) == null ? void 0 : V.multiple) {
|
|
2257
|
-
case !0:
|
|
2258
|
-
return {
|
|
2259
|
-
label: p.label,
|
|
2260
|
-
field: p.field,
|
|
2261
|
-
count: (M = p.value) != null && M.length ? (Q = p.value) == null ? void 0 : Q.length : null
|
|
2262
|
-
};
|
|
2263
|
-
default:
|
|
2264
|
-
return {
|
|
2265
|
-
label: p.label,
|
|
2266
|
-
field: p.field,
|
|
2267
|
-
count: p.value == null ? null : 1
|
|
2268
|
-
};
|
|
2269
|
-
}
|
|
2270
|
-
case le.DATE_RANGE:
|
|
2271
|
-
return {
|
|
2272
|
-
label: p.label,
|
|
2273
|
-
field: p.field,
|
|
2274
|
-
count: ((x = p.value) == null ? void 0 : x.startDate) != null && ((ee = p.value) == null ? void 0 : ee.endDate) != null ? 1 : null
|
|
2275
|
-
};
|
|
2276
|
-
case le.RANGE:
|
|
2277
|
-
return {
|
|
2278
|
-
label: p.label,
|
|
2279
|
-
field: p.field,
|
|
2280
|
-
count: (te = p.value) != null && te.find((me) => me !== "") ? 1 : null
|
|
2281
|
-
};
|
|
2282
|
-
case le.INPUT:
|
|
2283
|
-
case le.BOOLEAN:
|
|
2284
|
-
case le.DATE:
|
|
2285
|
-
default:
|
|
2286
|
-
return {
|
|
2287
|
-
label: p.label,
|
|
2288
|
-
field: p.field,
|
|
2289
|
-
count: p.value != null ? 1 : null
|
|
2290
|
-
};
|
|
2291
|
-
}
|
|
2292
|
-
}), B = b(
|
|
2293
|
-
() => {
|
|
2294
|
-
var v;
|
|
2295
|
-
return Array.isArray(R.value.value) ? ((v = R.value) == null ? void 0 : v.value.length) && R.value.value.find((p) => p !== "") : !!i.value[r.value].value;
|
|
2296
|
-
}
|
|
2297
|
-
), w = b(
|
|
2298
|
-
() => {
|
|
2299
|
-
var v;
|
|
2300
|
-
return (v = A(a.value)) == null ? void 0 : v.filter(({ count: p }) => !!p).length;
|
|
2301
|
-
}
|
|
2302
|
-
), g = () => {
|
|
2303
|
-
n.value ? n.value = !1 : n.value = !0;
|
|
2304
|
-
}, d = (v) => {
|
|
2305
|
-
var V, M, Q;
|
|
2306
|
-
const p = A(i.value).find((x) => x.field === v.field).count;
|
|
2307
|
-
return v.type.includes("BentoSelect") && ((V = v.options) != null && V.multiple) && p === ((Q = (M = v.options) == null ? void 0 : M.listboxItems) == null ? void 0 : Q.length) ? m("all") : p;
|
|
2308
|
-
}, f = (v, p) => {
|
|
2309
|
-
r.value = i.value.findIndex(
|
|
2310
|
-
(V) => V.label === v && V.field === p
|
|
2311
|
-
);
|
|
2312
|
-
}, O = () => {
|
|
2313
|
-
u.value = "";
|
|
2314
|
-
}, X = () => {
|
|
2315
|
-
n.value = !1, a.value = e.value, i.value = e.value, O(), U();
|
|
2316
|
-
}, ae = (v) => {
|
|
2317
|
-
const p = i.value.map(({ value: V, ...M }, Q) => Q === r.value ? { value: v.value, ...M } : { value: V, ...M });
|
|
2318
|
-
i.value = p;
|
|
2319
|
-
}, ue = () => {
|
|
2320
|
-
ae({
|
|
2321
|
-
field: R.value.field,
|
|
2322
|
-
label: R.value.label,
|
|
2323
|
-
type: R.value.type,
|
|
2324
|
-
value: void 0
|
|
2325
|
-
});
|
|
2326
|
-
}, oe = () => {
|
|
2327
|
-
i.value = a.value.map(({ value: v, ...p }) => ({
|
|
2328
|
-
...p,
|
|
2329
|
-
value: void 0
|
|
2330
|
-
}));
|
|
2331
|
-
}, ve = () => {
|
|
2332
|
-
l(He.INPUT, i.value), n.value = !1;
|
|
2333
|
-
}, J = b(
|
|
2334
|
-
() => JSON.stringify(i.value) === JSON.stringify(e.value)
|
|
2335
|
-
), S = b(() => [
|
|
2336
|
-
{
|
|
2337
|
-
title: m("applyAll"),
|
|
2338
|
-
disabled: J.value,
|
|
2339
|
-
event: ve
|
|
2340
|
-
},
|
|
2341
|
-
{
|
|
2342
|
-
title: m("cancel"),
|
|
2343
|
-
event: X
|
|
2344
|
-
},
|
|
2345
|
-
{
|
|
2346
|
-
title: m("clearAll"),
|
|
2347
|
-
disabled: !w.value,
|
|
2348
|
-
event: oe
|
|
2349
|
-
}
|
|
2350
|
-
]);
|
|
2351
|
-
return {
|
|
2352
|
-
// Enums
|
|
2353
|
-
BentoModalEvent: Rt,
|
|
2354
|
-
// Values
|
|
2355
|
-
allFiltersModalUniqueId: t,
|
|
2356
|
-
allFiltersModalFiltersSection: o,
|
|
2357
|
-
allFiltersModalFilterButtons: D,
|
|
2358
|
-
numberOfActiveFilters: w,
|
|
2359
|
-
isEmptyResultForSearchFilter: P,
|
|
2360
|
-
isModalOpen: n,
|
|
2361
|
-
isClearButtonEnabled: B,
|
|
2362
|
-
activeFilters: h,
|
|
2363
|
-
otherFilters: L,
|
|
2364
|
-
modalActions: S,
|
|
2365
|
-
selectedFilter: R,
|
|
2366
|
-
selectedFilterRef: s,
|
|
2367
|
-
filters: a,
|
|
2368
|
-
searchTerm: u,
|
|
2369
|
-
// Methods
|
|
2370
|
-
onClickAllFiltersModal: g,
|
|
2371
|
-
getFilterCount: d,
|
|
2372
|
-
cancel: X,
|
|
2373
|
-
selectFilter: f,
|
|
2374
|
-
clearFilter: ue,
|
|
2375
|
-
updateFilter: ae,
|
|
2376
|
-
onSearchbarClear: O,
|
|
2377
|
-
onKeydownRight: () => {
|
|
2378
|
-
Yt(1, s.value.$el).focus();
|
|
2379
|
-
},
|
|
2380
|
-
onKeydownLeft: () => {
|
|
2381
|
-
D.value[R.value.label].$el.focus();
|
|
2382
|
-
},
|
|
2383
|
-
// Translations
|
|
2384
|
-
t: m
|
|
2385
|
-
};
|
|
2386
|
-
}
|
|
2387
|
-
}), sa = { class: "b-all-filters-modal" }, ia = {
|
|
2388
|
-
key: 0,
|
|
2389
|
-
class: "b-all-filters-modal__empty-search-message"
|
|
2390
|
-
}, ua = {
|
|
2391
|
-
key: 1,
|
|
2392
|
-
class: "b-all-filters-modal__filters-section"
|
|
2393
|
-
}, ra = ["aria-labelledby"], da = {
|
|
2394
|
-
key: 2,
|
|
2395
|
-
class: "b-all-filters-modal__filters-section"
|
|
2396
|
-
}, ca = ["aria-labelledby"], ba = { class: "b-all-filters-modal__selected-filter-text" }, fa = { class: "b-all-filters-modal__selected-filter-component" }, pa = { class: "b-all-filters-modal__clear-button" };
|
|
2397
|
-
function va(e, l, a, i, t, o) {
|
|
2398
|
-
const n = $("sliders-icon"), r = $("filter-bar-button"), s = $("bento-search-bar"), u = $("bento-typography"), m = $("all-filters-modal-button"), T = $("bento-button"), D = $("bento-modal");
|
|
2399
|
-
return y(), q("div", sa, [
|
|
2400
|
-
I(r, {
|
|
2401
|
-
"is-filter-open": e.isModalOpen,
|
|
2402
|
-
"applied-filters-count": e.numberOfActiveFilters,
|
|
2403
|
-
onClick: e.onClickAllFiltersModal
|
|
2404
|
-
}, {
|
|
2405
|
-
iconLeft: _(() => [
|
|
2406
|
-
I(n, { "aria-hidden": "true" })
|
|
2407
|
-
]),
|
|
2408
|
-
default: _(() => [
|
|
2409
|
-
j(H(e.t("allFilters")) + " ", 1)
|
|
2410
|
-
]),
|
|
2411
|
-
_: 1
|
|
2412
|
-
}, 8, ["is-filter-open", "applied-filters-count", "onClick"]),
|
|
2413
|
-
I(D, {
|
|
2414
|
-
class: "'b-all-filters-modal__modal'",
|
|
2415
|
-
"is-open": e.isModalOpen,
|
|
2416
|
-
"with-column-layout": !0,
|
|
2417
|
-
size: "large",
|
|
2418
|
-
actions: e.modalActions,
|
|
2419
|
-
"is-dismissible": !1,
|
|
2420
|
-
"hide-close-button": "",
|
|
2421
|
-
onCloseModal: e.cancel
|
|
2422
|
-
}, {
|
|
2423
|
-
default: _(() => [
|
|
2424
|
-
j(H(e.t("allFilters")), 1)
|
|
2425
|
-
]),
|
|
2426
|
-
"content-col-1": _(() => [
|
|
2427
|
-
N("div", {
|
|
2428
|
-
ref: "allFiltersModalFiltersSection",
|
|
2429
|
-
class: "b-all-filters-modal__filters",
|
|
2430
|
-
onKeydown: l[1] || (l[1] = be((...c) => e.onKeydownRight && e.onKeydownRight(...c), ["right"]))
|
|
2431
|
-
}, [
|
|
2432
|
-
I(s, {
|
|
2433
|
-
class: "b-all-filters-modal__search-bar",
|
|
2434
|
-
value: e.searchTerm,
|
|
2435
|
-
"input-field-aria-label": e.t("searchBar").toString(),
|
|
2436
|
-
onInput: l[0] || (l[0] = (c) => e.searchTerm = c),
|
|
2437
|
-
onClear: e.onSearchbarClear
|
|
2438
|
-
}, null, 8, ["value", "input-field-aria-label", "onClear"]),
|
|
2439
|
-
e.isEmptyResultForSearchFilter ? (y(), q("div", ia, [
|
|
2440
|
-
I(u, { el: "span" }, {
|
|
2441
|
-
default: _(() => [
|
|
2442
|
-
j(H(e.t("noFiltersMatchThisSearch")), 1)
|
|
2443
|
-
]),
|
|
2444
|
-
_: 1
|
|
2445
|
-
})
|
|
2446
|
-
])) : z("", !0),
|
|
2447
|
-
e.activeFilters.length ? (y(), q("div", ua, [
|
|
2448
|
-
I(u, {
|
|
2449
|
-
id: `active-filters-${e.allFiltersModalUniqueId}`,
|
|
2450
|
-
class: "b-all-filters-modal__filters-section-title",
|
|
2451
|
-
el: "span",
|
|
2452
|
-
variant: "caption"
|
|
2453
|
-
}, {
|
|
2454
|
-
default: _(() => [
|
|
2455
|
-
j(H(e.t("activeFilters")), 1)
|
|
2456
|
-
]),
|
|
2457
|
-
_: 1
|
|
2458
|
-
}, 8, ["id"]),
|
|
2459
|
-
N("ul", {
|
|
2460
|
-
class: "b-all-filters-modal__filters-list",
|
|
2461
|
-
"aria-labelledby": `active-filters-${e.allFiltersModalUniqueId}`
|
|
2462
|
-
}, [
|
|
2463
|
-
(y(!0), q($e, null, fe(e.activeFilters, (c) => (y(), q("li", {
|
|
2464
|
-
key: `${c.label}-${c.field}`
|
|
2465
|
-
}, [
|
|
2466
|
-
I(m, {
|
|
2467
|
-
ref_for: !0,
|
|
2468
|
-
ref: (h) => e.allFiltersModalFilterButtons[c.label] = h,
|
|
2469
|
-
label: c.label,
|
|
2470
|
-
"applied-filters-count": e.getFilterCount(c),
|
|
2471
|
-
"is-filter-open": e.selectedFilter.label === c.label,
|
|
2472
|
-
onClick: (h) => e.selectFilter(c.label, c.field)
|
|
2473
|
-
}, null, 8, ["label", "applied-filters-count", "is-filter-open", "onClick"])
|
|
2474
|
-
]))), 128))
|
|
2475
|
-
], 8, ra)
|
|
2476
|
-
])) : z("", !0),
|
|
2477
|
-
e.otherFilters.length ? (y(), q("div", da, [
|
|
2478
|
-
e.activeFilters.length ? (y(), E(u, {
|
|
2479
|
-
key: 0,
|
|
2480
|
-
id: `other-filters-${e.allFiltersModalUniqueId}`,
|
|
2481
|
-
class: "b-all-filters-modal__filters-section-title",
|
|
2482
|
-
el: "span",
|
|
2483
|
-
variant: "caption"
|
|
2484
|
-
}, {
|
|
2485
|
-
default: _(() => [
|
|
2486
|
-
j(H(e.t("otherFilters")), 1)
|
|
2487
|
-
]),
|
|
2488
|
-
_: 1
|
|
2489
|
-
}, 8, ["id"])) : z("", !0),
|
|
2490
|
-
N("ul", {
|
|
2491
|
-
class: "b-all-filters-modal__filters-list",
|
|
2492
|
-
"aria-labelledby": `other-filters-${e.allFiltersModalUniqueId}`
|
|
2493
|
-
}, [
|
|
2494
|
-
(y(!0), q($e, null, fe(e.otherFilters, (c) => (y(), q("li", {
|
|
2495
|
-
key: `${c.label}-${c.field}`
|
|
2496
|
-
}, [
|
|
2497
|
-
I(m, {
|
|
2498
|
-
ref_for: !0,
|
|
2499
|
-
ref: (h) => e.allFiltersModalFilterButtons[c.label] = h,
|
|
2500
|
-
label: c.label,
|
|
2501
|
-
"applied-filters-count": e.getFilterCount(c),
|
|
2502
|
-
"is-filter-open": e.selectedFilter.label === c.label,
|
|
2503
|
-
onClick: (h) => e.selectFilter(c.label, c.field)
|
|
2504
|
-
}, null, 8, ["label", "applied-filters-count", "is-filter-open", "onClick"])
|
|
2505
|
-
]))), 128))
|
|
2506
|
-
], 8, ca)
|
|
2507
|
-
])) : z("", !0)
|
|
2508
|
-
], 544)
|
|
2509
|
-
]),
|
|
2510
|
-
"content-col-2": _(() => [
|
|
2511
|
-
N("div", {
|
|
2512
|
-
class: "b-all-filters-modal__selected-filter-content",
|
|
2513
|
-
onKeydown: l[2] || (l[2] = be((...c) => e.onKeydownLeft && e.onKeydownLeft(...c), ["left"]))
|
|
2514
|
-
}, [
|
|
2515
|
-
N("div", ba, [
|
|
2516
|
-
I(u, {
|
|
2517
|
-
el: "div",
|
|
2518
|
-
variant: "title",
|
|
2519
|
-
medium: ""
|
|
2520
|
-
}, {
|
|
2521
|
-
default: _(() => [
|
|
2522
|
-
j(H(e.selectedFilter.label), 1)
|
|
2523
|
-
]),
|
|
2524
|
-
_: 1
|
|
2525
|
-
}),
|
|
2526
|
-
e.selectedFilter.description ? (y(), E(u, {
|
|
2527
|
-
key: 0,
|
|
2528
|
-
el: "div",
|
|
2529
|
-
variant: "body",
|
|
2530
|
-
wide: ""
|
|
2531
|
-
}, {
|
|
2532
|
-
default: _(() => [
|
|
2533
|
-
j(H(e.selectedFilter.description), 1)
|
|
2534
|
-
]),
|
|
2535
|
-
_: 1
|
|
2536
|
-
})) : z("", !0)
|
|
2537
|
-
]),
|
|
2538
|
-
N("div", fa, [
|
|
2539
|
-
(y(), E(Me(e.selectedFilter.type), {
|
|
2540
|
-
ref: "selectedFilterRef",
|
|
2541
|
-
key: e.selectedFilter.field,
|
|
2542
|
-
field: e.selectedFilter.field,
|
|
2543
|
-
label: e.selectedFilter.label,
|
|
2544
|
-
options: e.selectedFilter.options,
|
|
2545
|
-
value: e.selectedFilter.value,
|
|
2546
|
-
"default-value": e.selectedFilter.defaultValue,
|
|
2547
|
-
"only-slot": !0,
|
|
2548
|
-
onInput: e.updateFilter
|
|
2549
|
-
}, null, 40, ["field", "label", "options", "value", "default-value", "onInput"]))
|
|
2550
|
-
]),
|
|
2551
|
-
N("div", pa, [
|
|
2552
|
-
I(T, {
|
|
2553
|
-
variant: "secondary",
|
|
2554
|
-
disabled: !e.isClearButtonEnabled,
|
|
2555
|
-
onClick: e.clearFilter
|
|
2556
|
-
}, {
|
|
2557
|
-
default: _(() => [
|
|
2558
|
-
j(H(e.t("clear")), 1)
|
|
2559
|
-
]),
|
|
2560
|
-
_: 1
|
|
2561
|
-
}, 8, ["disabled", "onClick"])
|
|
2562
|
-
])
|
|
2563
|
-
], 32)
|
|
2564
|
-
]),
|
|
2565
|
-
_: 1
|
|
2566
|
-
}, 8, ["is-open", "actions", "onCloseModal"])
|
|
2567
|
-
]);
|
|
2568
|
-
}
|
|
2569
|
-
const ot = /* @__PURE__ */ Z(oa, [["render", va], ["__scopeId", "data-v-eb3ae500"]]), Ut = {
|
|
2570
|
-
"en-US": {
|
|
2571
|
-
clearFilters: "Clear filters",
|
|
2572
|
-
filtersHaveBeenCleared: "Filters have been cleared.",
|
|
2573
|
-
filtersHaveBeenReset: "Filters have been reset.",
|
|
2574
|
-
undo: "Undo",
|
|
2575
|
-
resetFilters: "Reset filters",
|
|
2576
|
-
searchBar: "Search bar"
|
|
2577
|
-
},
|
|
2578
|
-
"pt-BR": {
|
|
2579
|
-
clearFilters: "Limpar filtros",
|
|
2580
|
-
filtersHaveBeenCleared: "Os filtros foram apagados",
|
|
2581
|
-
undo: "Desfazer",
|
|
2582
|
-
resetFilters: "Redefinir filtros"
|
|
2583
|
-
},
|
|
2584
|
-
"ja-JP": {
|
|
2585
|
-
clearFilters: "フィルターをクリア",
|
|
2586
|
-
filtersHaveBeenCleared: "フィルターをクリアしました",
|
|
2587
|
-
undo: "元に戻す",
|
|
2588
|
-
resetFilters: "フィルターのリセット"
|
|
2589
|
-
}
|
|
2590
|
-
}, ma = { class: "b-filter-bar" }, ya = { class: "b-filter-bar__container" }, Fa = {
|
|
2591
|
-
key: 0,
|
|
2592
|
-
class: "b-filter-bar__before-filters"
|
|
2593
|
-
}, ha = { class: "b-filter-bar__filters-container" }, ga = { class: "b-filter-bar__filters" }, Sa = { class: "b-filter-bar__scroller-content" }, _a = {
|
|
2594
|
-
key: 0,
|
|
2595
|
-
class: "b-filter-bar__actions"
|
|
2596
|
-
}, Ba = {
|
|
2597
|
-
i18n: { messages: Ut },
|
|
2598
|
-
name: "bento-filter-bar",
|
|
2599
|
-
components: {
|
|
2600
|
-
BentoBooleanFilter: Tt,
|
|
2601
|
-
BentoDateFilter: gt,
|
|
2602
|
-
BentoDateRangeFilter: St,
|
|
2603
|
-
BentoInputFilter: ht,
|
|
2604
|
-
BentoInputWithDropdownFilter: Fl,
|
|
2605
|
-
BentoRangeFilter: Pt,
|
|
2606
|
-
BentoSelectAvatarFilter: Ct,
|
|
2607
|
-
BentoSelectCountryFilter: It,
|
|
2608
|
-
BentoSelectCurrencyFilter: Dt,
|
|
2609
|
-
BentoSelectFilter: Se,
|
|
2610
|
-
BentoSelectPaymentMethodFilter: At,
|
|
2611
|
-
BentoSelectTagFilter: $t
|
|
2612
|
-
}
|
|
2613
|
-
}, Ca = /* @__PURE__ */ W({
|
|
2614
|
-
...Ba,
|
|
2615
|
-
props: {
|
|
2616
|
-
/**
|
|
2617
|
-
* Array of filters based on {@see BentoFilterBarModel}.
|
|
2618
|
-
* Each one of the elements in the array correspond to a filter that will
|
|
2619
|
-
* be created and rendered in the FilterBar.
|
|
2620
|
-
*
|
|
2621
|
-
* @example
|
|
2622
|
-
* [{
|
|
2623
|
-
* field: 'company',
|
|
2624
|
-
* label: 'Company',
|
|
2625
|
-
* type: FilterType.TEXT,
|
|
2626
|
-
* }, {
|
|
2627
|
-
* field: 'name',
|
|
2628
|
-
* label: 'Name',
|
|
2629
|
-
* type: FilterType.TEXT,
|
|
2630
|
-
* }]
|
|
2631
|
-
*/
|
|
2632
|
-
config: {
|
|
2633
|
-
type: Array,
|
|
2634
|
-
default: () => []
|
|
2635
|
-
},
|
|
2636
|
-
/**
|
|
2637
|
-
* Search term useful to filter all the data by text.
|
|
2638
|
-
* If the value is non-existant (null or undefined) the search bar won't be enabled.
|
|
2639
|
-
*/
|
|
2640
|
-
searchTerm: {
|
|
2641
|
-
type: Ae.props.value.type,
|
|
2642
|
-
default: void 0
|
|
2643
|
-
},
|
|
2644
|
-
/**
|
|
2645
|
-
* @deprecated from version 2.0.0. Use the config property instead.
|
|
2646
|
-
*/
|
|
2647
|
-
/**
|
|
2648
|
-
* Array of filters based on {@see BentoFilterBarModel}.
|
|
2649
|
-
* Each one of the elements in the array correspond to a filter that will
|
|
2650
|
-
* be created and rendered in the FilterBar.
|
|
2651
|
-
*
|
|
2652
|
-
* Can be used with v-model or independently with the @input event.
|
|
2653
|
-
*
|
|
2654
|
-
* @example
|
|
2655
|
-
* [{
|
|
2656
|
-
* field: 'company',
|
|
2657
|
-
* label: 'Company',
|
|
2658
|
-
* value: '200',
|
|
2659
|
-
* type: FilterType.TEXT,
|
|
2660
|
-
* }, {
|
|
2661
|
-
* field: 'name',
|
|
2662
|
-
* label: 'Name',
|
|
2663
|
-
* value: null,
|
|
2664
|
-
* type: FilterType.TEXT,
|
|
2665
|
-
* }]
|
|
2666
|
-
*/
|
|
2667
|
-
value: {
|
|
2668
|
-
type: Array,
|
|
2669
|
-
default: () => []
|
|
2670
|
-
},
|
|
2671
|
-
/**
|
|
2672
|
-
* An array of the values for each filter in the filter bar.
|
|
2673
|
-
* {@see BentoFilterValues}
|
|
2674
|
-
*
|
|
2675
|
-
* @example
|
|
2676
|
-
* [{
|
|
2677
|
-
* field: 'company',
|
|
2678
|
-
* value: '200',
|
|
2679
|
-
* }, {
|
|
2680
|
-
* field: 'name',
|
|
2681
|
-
* value: 'some text',
|
|
2682
|
-
* }]
|
|
2683
|
-
*/
|
|
2684
|
-
filterValues: {
|
|
2685
|
-
type: Array,
|
|
2686
|
-
default: () => []
|
|
2687
|
-
},
|
|
2688
|
-
/**
|
|
2689
|
-
* Will show all applied filters even if their visibility is set to false.
|
|
2690
|
-
*/
|
|
2691
|
-
showAppliedHiddenFilters: {
|
|
2692
|
-
type: Boolean,
|
|
2693
|
-
default: !1
|
|
2694
|
-
}
|
|
2695
|
-
},
|
|
2696
|
-
emits: [
|
|
2697
|
-
Ie.INPUT,
|
|
2698
|
-
Ie.UPDATE_FILTER_VALUES,
|
|
2699
|
-
_e.CLEAR,
|
|
2700
|
-
_e.INPUT,
|
|
2701
|
-
_e.UPDATE
|
|
2702
|
-
],
|
|
2703
|
-
setup(e, { expose: l, emit: a }) {
|
|
2704
|
-
const i = e, t = a, { t: o } = ce({ messages: Ut }), n = b(
|
|
2705
|
-
() => {
|
|
2706
|
-
var g, d;
|
|
2707
|
-
return (d = ((g = i.config) == null ? void 0 : g.length) > 0 ? i.config : i.value) == null ? void 0 : d.map((f) => {
|
|
2708
|
-
var X;
|
|
2709
|
-
let O = (X = i.filterValues.find(({ field: ae }) => ae === f.field)) == null ? void 0 : X.value;
|
|
2710
|
-
return O === void 0 && (O = (f == null ? void 0 : f.value) === void 0 && (f == null ? void 0 : f.defaultValue) !== void 0 ? f == null ? void 0 : f.defaultValue : f == null ? void 0 : f.value), { ...f, value: O !== void 0 ? O : f == null ? void 0 : f.value };
|
|
2711
|
-
});
|
|
2712
|
-
}
|
|
2713
|
-
), { addToast: r } = wt(), s = b(() => o("searchBar")), u = b(() => n.value.some(
|
|
2714
|
-
({ visible: d }) => d != null
|
|
2715
|
-
) ? n.value.some(({ visible: d }) => !d) : !1), m = b(
|
|
2716
|
-
() => n.value.filter(({ defaultValue: g }) => g !== void 0)
|
|
2717
|
-
), T = b(() => n.value.some(
|
|
2718
|
-
({ visible: d }) => d != null
|
|
2719
|
-
) ? n.value.filter(
|
|
2720
|
-
({ defaultValue: d, visible: f, value: O }) => d === void 0 && f || i.showAppliedHiddenFilters && O != null
|
|
2721
|
-
) : n.value.filter(
|
|
2722
|
-
({ defaultValue: d, value: f }) => d === void 0 || i.showAppliedHiddenFilters && f != null
|
|
2723
|
-
)), D = b(() => i.searchTerm != null), c = b(
|
|
2724
|
-
() => n.value.filter(({ defaultValue: g }) => g == null).some(({ value: g }) => g != null)
|
|
2725
|
-
), h = b(() => m.value.length === 0 && c.value), L = b(() => m.value.length === 0 ? !1 : !n.value.filter(({ defaultValue: d }) => d !== void 0 || d !== null).every(({ value: d, defaultValue: f }) => JSON.stringify(d) === JSON.stringify(f)) || c.value), P = (g) => {
|
|
2726
|
-
t(Ie.INPUT, g), t(
|
|
2727
|
-
Ie.UPDATE_FILTER_VALUES,
|
|
2728
|
-
g == null ? void 0 : g.filter(({ value: d }) => d !== null || d !== void 0).map(({ field: d, value: f }) => ({ field: d, value: f }))
|
|
2729
|
-
);
|
|
2730
|
-
}, R = (g) => {
|
|
2731
|
-
const d = n.value.findIndex(
|
|
2732
|
-
(O) => O.field === g.field
|
|
2733
|
-
), f = n.value.slice();
|
|
2734
|
-
f[d].value = g.value, P(f);
|
|
2735
|
-
}, U = () => {
|
|
2736
|
-
const g = n.value.slice(), d = n.value.map(({ value: f, ...O }) => ({
|
|
2737
|
-
...O,
|
|
2738
|
-
value: void 0
|
|
2739
|
-
}));
|
|
2740
|
-
r({
|
|
2741
|
-
text: o("filtersHaveBeenCleared"),
|
|
2742
|
-
action: {
|
|
2743
|
-
handler: () => P(g),
|
|
2744
|
-
text: o("undo")
|
|
2745
|
-
}
|
|
2746
|
-
}), P(d);
|
|
2747
|
-
}, A = () => {
|
|
2748
|
-
const g = n.value.slice(), d = n.value.map(({ defaultValue: f, ...O }) => ({
|
|
2749
|
-
...O,
|
|
2750
|
-
defaultValue: f,
|
|
2751
|
-
value: f
|
|
2752
|
-
}));
|
|
2753
|
-
r({
|
|
2754
|
-
text: o("filtersHaveBeenReset"),
|
|
2755
|
-
action: {
|
|
2756
|
-
handler: () => P(g),
|
|
2757
|
-
text: o("undo")
|
|
2758
|
-
}
|
|
2759
|
-
}), P(d);
|
|
2760
|
-
}, B = (g) => {
|
|
2761
|
-
t(_e.INPUT, g), t(_e.UPDATE, g);
|
|
2762
|
-
}, w = () => {
|
|
2763
|
-
t(_e.CLEAR);
|
|
2764
|
-
};
|
|
2765
|
-
return l({ isClearAllVisible: h, clearAllFilters: U, isResetAllVisible: L, resetAllFilters: A }), (g, d) => (y(), q("div", ma, [
|
|
2766
|
-
N("div", ya, [
|
|
2767
|
-
D.value || u.value || h.value || L.value ? (y(), q("div", Fa, [
|
|
2768
|
-
D.value ? (y(), E(C(Ae), {
|
|
2769
|
-
key: 0,
|
|
2770
|
-
class: "b-filter-bar__search-bar",
|
|
2771
|
-
"input-field-aria-label": s.value,
|
|
2772
|
-
value: e.searchTerm,
|
|
2773
|
-
condensed: "",
|
|
2774
|
-
onInput: B,
|
|
2775
|
-
onClear: w
|
|
2776
|
-
}, null, 8, ["input-field-aria-label", "value"])) : z("", !0),
|
|
2777
|
-
u.value ? (y(), E(ot, {
|
|
2778
|
-
key: 1,
|
|
2779
|
-
class: "b-filter-bar__all-filters-modal",
|
|
2780
|
-
value: n.value,
|
|
2781
|
-
onInput: P
|
|
2782
|
-
}, null, 8, ["value"])) : z("", !0),
|
|
2783
|
-
Ee(I(C(Be), {
|
|
2784
|
-
class: "b-filter-bar__clear-all",
|
|
2785
|
-
onClick: U
|
|
2786
|
-
}, {
|
|
2787
|
-
iconLeft: _(() => [
|
|
2788
|
-
I(C(we), { "aria-hidden": "true" })
|
|
2789
|
-
]),
|
|
2790
|
-
default: _(() => [
|
|
2791
|
-
j(H(C(o)("clearFilters")) + " ", 1)
|
|
2792
|
-
]),
|
|
2793
|
-
_: 1
|
|
2794
|
-
}, 512), [
|
|
2795
|
-
[Ve, h.value]
|
|
2796
|
-
]),
|
|
2797
|
-
Ee(I(C(Be), {
|
|
2798
|
-
class: "b-filter-bar__reset-all",
|
|
2799
|
-
onClick: A
|
|
2800
|
-
}, {
|
|
2801
|
-
iconLeft: _(() => [
|
|
2802
|
-
I(C(we), { "aria-hidden": "true" })
|
|
2803
|
-
]),
|
|
2804
|
-
default: _(() => [
|
|
2805
|
-
j(H(C(o)("resetFilters")) + " ", 1)
|
|
2806
|
-
]),
|
|
2807
|
-
_: 1
|
|
2808
|
-
}, 512), [
|
|
2809
|
-
[Ve, L.value]
|
|
2810
|
-
])
|
|
2811
|
-
])) : z("", !0),
|
|
2812
|
-
N("div", ha, [
|
|
2813
|
-
N("div", ga, [
|
|
2814
|
-
I(C(al), {
|
|
2815
|
-
class: "b-filter-bar__fixed-scroller",
|
|
2816
|
-
condensed: ""
|
|
2817
|
-
}, {
|
|
2818
|
-
default: _(() => [
|
|
2819
|
-
N("div", Sa, [
|
|
2820
|
-
D.value ? (y(), E(C(Ae), {
|
|
2821
|
-
key: 0,
|
|
2822
|
-
class: "b-filter-bar__search-bar",
|
|
2823
|
-
"input-field-aria-label": s.value,
|
|
2824
|
-
value: e.searchTerm,
|
|
2825
|
-
condensed: "",
|
|
2826
|
-
onInput: B,
|
|
2827
|
-
onClear: w
|
|
2828
|
-
}, null, 8, ["input-field-aria-label", "value"])) : z("", !0),
|
|
2829
|
-
m.value.length ? (y(!0), q($e, { key: 1 }, fe(m.value, (f) => (y(), E(Me(f.type), {
|
|
2830
|
-
key: f.field,
|
|
2831
|
-
field: f.field,
|
|
2832
|
-
label: f.label,
|
|
2833
|
-
options: f.options,
|
|
2834
|
-
value: f.value,
|
|
2835
|
-
"default-value": f.defaultValue,
|
|
2836
|
-
onUpdate: R
|
|
2837
|
-
}, null, 40, ["field", "label", "options", "value", "default-value"]))), 128)) : z("", !0),
|
|
2838
|
-
(y(!0), q($e, null, fe(T.value, (f) => (y(), E(Me(f.type), {
|
|
2839
|
-
key: f.field,
|
|
2840
|
-
field: f.field,
|
|
2841
|
-
label: f.label,
|
|
2842
|
-
options: f.options,
|
|
2843
|
-
value: f.value,
|
|
2844
|
-
onUpdate: R
|
|
2845
|
-
}, null, 40, ["field", "label", "options", "value"]))), 128))
|
|
2846
|
-
])
|
|
2847
|
-
]),
|
|
2848
|
-
_: 1
|
|
2849
|
-
})
|
|
2850
|
-
]),
|
|
2851
|
-
u.value || h.value || L.value ? (y(), q("div", _a, [
|
|
2852
|
-
u.value ? (y(), E(ot, {
|
|
2853
|
-
key: 0,
|
|
2854
|
-
class: "b-filter-bar__all-filters-modal",
|
|
2855
|
-
value: n.value,
|
|
2856
|
-
onInput: P
|
|
2857
|
-
}, null, 8, ["value"])) : z("", !0),
|
|
2858
|
-
Ee(I(C(Be), {
|
|
2859
|
-
class: "b-filter-bar__clear-all",
|
|
2860
|
-
onClick: U
|
|
2861
|
-
}, {
|
|
2862
|
-
iconLeft: _(() => [
|
|
2863
|
-
I(C(we), { "aria-hidden": "true" })
|
|
2864
|
-
]),
|
|
2865
|
-
default: _(() => [
|
|
2866
|
-
j(H(C(o)("clearFilters")) + " ", 1)
|
|
2867
|
-
]),
|
|
2868
|
-
_: 1
|
|
2869
|
-
}, 512), [
|
|
2870
|
-
[Ve, h.value]
|
|
2871
|
-
]),
|
|
2872
|
-
Ee(I(C(Be), {
|
|
2873
|
-
class: "b-filter-bar__reset-all",
|
|
2874
|
-
onClick: A
|
|
2875
|
-
}, {
|
|
2876
|
-
iconLeft: _(() => [
|
|
2877
|
-
I(C(we), { "aria-hidden": "true" })
|
|
2878
|
-
]),
|
|
2879
|
-
default: _(() => [
|
|
2880
|
-
j(H(C(o)("resetFilters")) + " ", 1)
|
|
2881
|
-
]),
|
|
2882
|
-
_: 1
|
|
2883
|
-
}, 512), [
|
|
2884
|
-
[Ve, L.value]
|
|
2885
|
-
])
|
|
2886
|
-
])) : z("", !0)
|
|
2887
|
-
])
|
|
2888
|
-
])
|
|
2889
|
-
]));
|
|
2890
|
-
}
|
|
2891
|
-
}), cn = /* @__PURE__ */ Z(Ca, [["__scopeId", "data-v-708fe064"]]);
|
|
2892
|
-
export {
|
|
2893
|
-
cn as B,
|
|
2894
|
-
F as a,
|
|
2895
|
-
Ie as b,
|
|
2896
|
-
le as c
|
|
2897
|
-
};
|
|
2898
|
-
//# sourceMappingURL=filter-bar.pKcJryD3.js.map
|