@adyen/bento-vue3 1.89.2 → 1.90.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 +2 -0
- package/dist/@types/index.d.ts +403 -298
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.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/button-actions.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 -1
- package/dist/assets/input-time.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
- package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
- package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
- package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
- package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
- package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
- package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
- package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
- package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
- package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
- package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
- package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
- package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
- package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
- package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
- package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
- package/dist/chunks/card.BzCGCCzH.js +223 -0
- package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
- package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
- package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
- package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
- package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
- package/dist/chunks/chip.DFldnqfz.js +72 -0
- package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
- package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
- package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
- package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
- package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
- package/dist/chunks/copy.CL893i9-.js +114 -0
- package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
- package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
- package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js +26 -0
- package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
- package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
- package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
- package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
- package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
- package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
- package/dist/chunks/date-picker.DPjCROIP.js +238 -0
- package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
- package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
- package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
- package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
- package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
- package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
- package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
- package/dist/chunks/error-message.849uzpkq.js +157 -0
- package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
- package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
- package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
- package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
- package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
- package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
- package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
- package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
- package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
- package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
- package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
- package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
- package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
- package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
- package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
- package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
- package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
- package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
- package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
- package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
- package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
- package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
- package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
- package/dist/chunks/input-time.DeJ8lDio.js +103 -0
- package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
- package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
- package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
- package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
- package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
- package/dist/chunks/pagination.DL-h8OLF.js +413 -0
- package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
- package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
- package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
- package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
- package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
- package/dist/chunks/search-bar.DfNwnjes.js +114 -0
- package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
- package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
- package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
- package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
- package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
- package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
- package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
- package/dist/chunks/step.AsX2jAeL.js +268 -0
- package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
- package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
- package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
- package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
- package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
- package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
- package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
- package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
- package/dist/chunks/textarea.C-sBemuo.js +256 -0
- package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
- package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
- package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
- package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
- package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
- package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
- package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
- package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +51 -44
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +205 -203
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/list.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/rich-text-editor.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/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
- package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
- package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
- package/dist/chunks/card.CoxQ_L0w.js +0 -216
- package/dist/chunks/chip.CdgpQyXN.js +0 -65
- package/dist/chunks/copy.C2kQ1PbI.js +0 -107
- package/dist/chunks/country.types.DjpMGz7a.js +0 -19
- package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
- package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
- package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
- package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
- package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
- package/dist/chunks/error-message.DCgo8q20.js +0 -143
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
- package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
- package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
- package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
- package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
- package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
- package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
- package/dist/chunks/step.BlwoLfdw.js +0 -259
- package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
- package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
- package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
- package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { ref as s, computed as d, defineComponent as se, toRef as O, watch as x, withDirectives as de, openBlock as p, createElementBlock as ue, withKeys as w, createBlock as b, unref as t, createCommentVNode as y, createElementVNode as ce, createVNode as K, normalizeClass as pe, withCtx as U, createTextVNode as me, toDisplayString as ve, nextTick as fe } from "vue";
|
|
2
|
-
import { g as De, s as L, b as be } from "./calendar.DcCqkSNJ.js";
|
|
3
|
-
import { h as ye } from "./button-actions.cMQWyZne.js";
|
|
4
|
-
import { d as ke, B as ge } from "./typography.B3J6_tYk.js";
|
|
5
|
-
import { d as Ie } from "./debounce.DUTu11PS.js";
|
|
6
|
-
import { g as k } from "./generate-uid.DBWe4g6T.js";
|
|
7
|
-
import { u as W } from "./index.B875RXHM.js";
|
|
8
|
-
import { u as he } from "./form-field.D_2g7vaP.js";
|
|
9
|
-
import { u as j, a as Ce } from "./use-date-input-formatter.CDRzd-hW.js";
|
|
10
|
-
import { u as Be } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
11
|
-
import { B as Me } from "./directive.Dpivxq_t.js";
|
|
12
|
-
import { D as Ve } from "./dropdown-default-textbox.bq9AlGzJ.js";
|
|
13
|
-
import { F as Fe, E as $ } from "./error-message.DCgo8q20.js";
|
|
14
|
-
import { _ as Ee } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
15
|
-
import "../assets/date-picker.css";
|
|
16
|
-
const A = {
|
|
17
|
-
"en-US": { datePicker: "Date picker", provideDateInAFormat: "Provide date in a YYYY-MM-DD format", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
|
|
18
|
-
"ja-JP": { datePicker: "日付ピッカー", provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
|
|
19
|
-
"pt-BR": { datePicker: "Seletor de datas", provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD", selectDate: "Selecione uma data", selectDateRange: "Selecione um intervalo de datas", selectedDateIsNotAvailable: "A data selecionada não está disponível" }
|
|
20
|
-
}, Oe = ({
|
|
21
|
-
datePickerValue: u,
|
|
22
|
-
isDateIncorrect: g,
|
|
23
|
-
isMonthVariant: B,
|
|
24
|
-
placeholder: a
|
|
25
|
-
}) => {
|
|
26
|
-
const { locale: M, t: m } = W({ messages: A }), { formatDate: v } = j(), n = s(u.value?.toDateString());
|
|
27
|
-
return {
|
|
28
|
-
// Values
|
|
29
|
-
dateDisplayValue: d(() => {
|
|
30
|
-
if (g.value)
|
|
31
|
-
return n.value;
|
|
32
|
-
if (!u.value)
|
|
33
|
-
return a?.value || m("selectDate");
|
|
34
|
-
const o = B?.value ? { month: "long", year: "numeric" } : { day: "numeric", month: "short", year: "numeric" };
|
|
35
|
-
return De(M.value, o).format(u.value);
|
|
36
|
-
}),
|
|
37
|
-
textInputValue: n,
|
|
38
|
-
// Methods
|
|
39
|
-
formatTextInputDisplayValue: (o = u.value) => {
|
|
40
|
-
if (g.value)
|
|
41
|
-
return;
|
|
42
|
-
if (!o) {
|
|
43
|
-
n.value = "";
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const I = B?.value ? L(o) : o;
|
|
47
|
-
n.value = v(I);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}, we = {
|
|
51
|
-
i18n: { messages: A },
|
|
52
|
-
name: "bento-date-picker",
|
|
53
|
-
model: { prop: "modelValue" }
|
|
54
|
-
}, Ae = /* @__PURE__ */ se({
|
|
55
|
-
...we,
|
|
56
|
-
props: {
|
|
57
|
-
defaultDisplayMonth: { default: null },
|
|
58
|
-
firstDayOfWeek: { default: void 0 },
|
|
59
|
-
isDateDisabled: { default: void 0 },
|
|
60
|
-
min: { default: null },
|
|
61
|
-
max: { default: null },
|
|
62
|
-
modelValue: { default: null },
|
|
63
|
-
value: { default: null },
|
|
64
|
-
variant: { default: void 0 },
|
|
65
|
-
description: { default: void 0 },
|
|
66
|
-
disabled: { type: Boolean, default: !1 },
|
|
67
|
-
errorMessage: { default: null },
|
|
68
|
-
label: { default: void 0 },
|
|
69
|
-
optional: { type: Boolean, default: !1 },
|
|
70
|
-
placeholder: { default: null },
|
|
71
|
-
readonly: { type: Boolean, default: !1 },
|
|
72
|
-
required: { type: Boolean, default: !1 },
|
|
73
|
-
tooltipText: { default: null }
|
|
74
|
-
},
|
|
75
|
-
emits: ["update:model-value", "input"],
|
|
76
|
-
setup(u, { emit: g }) {
|
|
77
|
-
const a = u, M = g, { t: m } = W({ messages: A }), v = k("bento-date-picker-container"), n = k("bento-date-picker-label"), P = k("bento-date-picker-description"), V = k("bento-date-picker-error"), o = k("bento-date-picker-date-error"), I = d(() => a.label || m("datePicker", { name: v })), T = s(null), h = s(null), i = s(!1), l = s(!1), S = s(void 0), c = s(a.modelValue), { isReadOnly: z } = Be(O(a, "readonly")), { emitValue: f } = he(M), { resolvedFirstDayOfWeek: J } = Ce(O(a, "firstDayOfWeek")), { isFormatValid: R, parseDate: F, onKeyDown: G, autoFormat: H } = j(), Q = d(() => ({
|
|
78
|
-
initialFocus: S.value,
|
|
79
|
-
additionalContainers: [h.value.$el]
|
|
80
|
-
}));
|
|
81
|
-
x(
|
|
82
|
-
() => a.disabled,
|
|
83
|
-
(e) => {
|
|
84
|
-
e && l.value && (l.value = !1);
|
|
85
|
-
}
|
|
86
|
-
), x(
|
|
87
|
-
[() => a.value, () => a.modelValue],
|
|
88
|
-
([e, E]) => {
|
|
89
|
-
e && ke(
|
|
90
|
-
'BentoDatePicker "value" property',
|
|
91
|
-
'The use of "value" prop in "BentoDatePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
|
|
92
|
-
"2.0.0"
|
|
93
|
-
), c.value = E ?? e;
|
|
94
|
-
},
|
|
95
|
-
{ immediate: !0 }
|
|
96
|
-
);
|
|
97
|
-
const X = d(() => a.variant === "month"), { dateDisplayValue: Z, textInputValue: r, formatTextInputDisplayValue: N } = Oe({
|
|
98
|
-
datePickerValue: c,
|
|
99
|
-
isDateIncorrect: i,
|
|
100
|
-
isMonthVariant: X,
|
|
101
|
-
placeholder: O(a, "placeholder")
|
|
102
|
-
}), D = d(() => a.isDateDisabled && r.value && R(r.value) && a.isDateDisabled(F(r.value)) && !l.value ? m("selectedDateIsNotAvailable") : i.value ? m("provideDateInAFormat") : null), ee = d(() => ({
|
|
103
|
-
"b-date-picker__description--error": a.errorMessage || D.value
|
|
104
|
-
})), ae = d(
|
|
105
|
-
() => `${a.description ? P : ""} ${a.errorMessage ? V : ""} ${D.value ? o : ""}`.trim() || null
|
|
106
|
-
), te = (e) => a.min && e <= a.min || a.max && e >= a.max ? !1 : a.isDateDisabled ? !a.isDateDisabled(e) : !0, C = () => {
|
|
107
|
-
l.value = !1;
|
|
108
|
-
}, _ = () => {
|
|
109
|
-
l.value = !0, N();
|
|
110
|
-
}, le = (e) => {
|
|
111
|
-
i.value = !1, C(), f(e);
|
|
112
|
-
}, oe = async () => {
|
|
113
|
-
i.value && (i.value = !1, r.value = null), f(null);
|
|
114
|
-
}, re = (e) => {
|
|
115
|
-
G(e);
|
|
116
|
-
}, Y = (e) => {
|
|
117
|
-
if (e.length < 10)
|
|
118
|
-
return;
|
|
119
|
-
R(e) && te(F(e)) ? (i.value = !1, f(F(e))) : e && (i.value = !0, f(null));
|
|
120
|
-
}, ne = Ie(Y, 1e3), ie = (e) => {
|
|
121
|
-
r.value = H(e), l.value ? ne(r.value) : Y(r.value);
|
|
122
|
-
}, q = async (e) => {
|
|
123
|
-
l.value || (e.preventDefault(), _(), await fe(), c.value || (N(/* @__PURE__ */ new Date()), f(/* @__PURE__ */ new Date())), S.value = T.value?.$refs.calendarRef[0].focusOnDate(
|
|
124
|
-
a.variant === "month" ? L(c.value) : c.value,
|
|
125
|
-
!0
|
|
126
|
-
) ?? void 0);
|
|
127
|
-
};
|
|
128
|
-
return (e, E) => de((p(), ue("div", {
|
|
129
|
-
class: "b-date-picker",
|
|
130
|
-
onKeydownCapture: [
|
|
131
|
-
w(q, ["space"]),
|
|
132
|
-
w(q, ["enter"])
|
|
133
|
-
]
|
|
134
|
-
}, [
|
|
135
|
-
e.label ? (p(), b(t(Fe), {
|
|
136
|
-
key: 0,
|
|
137
|
-
id: t(n),
|
|
138
|
-
label: e.label,
|
|
139
|
-
"tooltip-text": e.tooltipText,
|
|
140
|
-
optional: e.optional,
|
|
141
|
-
required: e.required
|
|
142
|
-
}, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : y("", !0),
|
|
143
|
-
ce("div", null, [
|
|
144
|
-
K(t(Ve), {
|
|
145
|
-
ref_key: "inputContainerRef",
|
|
146
|
-
ref: h,
|
|
147
|
-
"always-combobox-is-input": "",
|
|
148
|
-
ariaControls: t(v),
|
|
149
|
-
ariaExpanded: l.value,
|
|
150
|
-
"aria-labelledby": e.label ? t(n) : null,
|
|
151
|
-
"aria-label": e.label ? null : I.value,
|
|
152
|
-
"aria-describedby": ae.value,
|
|
153
|
-
"aria-required": e.required,
|
|
154
|
-
disabled: e.disabled,
|
|
155
|
-
"dynamic-filtering": "",
|
|
156
|
-
"is-invalid": !!e.errorMessage || !!D.value,
|
|
157
|
-
open: l.value,
|
|
158
|
-
value: t(r),
|
|
159
|
-
"display-value": t(Z),
|
|
160
|
-
"debounce-time": 0,
|
|
161
|
-
readonly: t(z),
|
|
162
|
-
onInput: ie,
|
|
163
|
-
onOpen: _,
|
|
164
|
-
onKeydown: re,
|
|
165
|
-
onClear: oe,
|
|
166
|
-
onClose: C
|
|
167
|
-
}, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-label", "aria-describedby", "aria-required", "disabled", "is-invalid", "open", "value", "display-value", "readonly"])
|
|
168
|
-
]),
|
|
169
|
-
D.value ? (p(), b(t($), {
|
|
170
|
-
key: 1,
|
|
171
|
-
id: t(o),
|
|
172
|
-
"error-message": D.value,
|
|
173
|
-
class: "b-date-picker__error-message"
|
|
174
|
-
}, null, 8, ["id", "error-message"])) : y("", !0),
|
|
175
|
-
e.errorMessage ? (p(), b(t($), {
|
|
176
|
-
key: 2,
|
|
177
|
-
id: t(V),
|
|
178
|
-
"error-message": e.errorMessage,
|
|
179
|
-
class: "b-date-picker__error-message"
|
|
180
|
-
}, null, 8, ["id", "error-message"])) : y("", !0),
|
|
181
|
-
e.description ? (p(), b(t(ge), {
|
|
182
|
-
key: 3,
|
|
183
|
-
class: pe(["b-date-picker__description", ee.value]),
|
|
184
|
-
el: "span"
|
|
185
|
-
}, {
|
|
186
|
-
default: U(() => [
|
|
187
|
-
me(ve(e.description), 1)
|
|
188
|
-
]),
|
|
189
|
-
_: 1
|
|
190
|
-
}, 8, ["class"])) : y("", !0),
|
|
191
|
-
h.value ? (p(), b(t(ye), {
|
|
192
|
-
key: 4,
|
|
193
|
-
id: t(v),
|
|
194
|
-
class: "b-date-picker__container",
|
|
195
|
-
role: "dialog",
|
|
196
|
-
open: l.value,
|
|
197
|
-
"target-element": h.value,
|
|
198
|
-
"aria-label": I.value,
|
|
199
|
-
"aria-modal": !0,
|
|
200
|
-
position: "bottom-start",
|
|
201
|
-
"fit-content": "",
|
|
202
|
-
"trap-all": "",
|
|
203
|
-
"trap-all-options": Q.value,
|
|
204
|
-
onKeydown: w(C, ["esc", "native"])
|
|
205
|
-
}, {
|
|
206
|
-
default: U(() => [
|
|
207
|
-
K(t(be), {
|
|
208
|
-
ref_key: "calendarContainerRef",
|
|
209
|
-
ref: T,
|
|
210
|
-
"default-display-month": e.defaultDisplayMonth,
|
|
211
|
-
"first-day-of-week": t(J),
|
|
212
|
-
"is-date-disabled": e.isDateDisabled,
|
|
213
|
-
"number-of-months": 1,
|
|
214
|
-
value: c.value,
|
|
215
|
-
min: e.min,
|
|
216
|
-
max: e.max,
|
|
217
|
-
variant: e.variant,
|
|
218
|
-
onInput: le
|
|
219
|
-
}, null, 8, ["default-display-month", "first-day-of-week", "is-date-disabled", "value", "min", "max", "variant"])
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
}, 8, ["id", "open", "target-element", "aria-label", "trap-all-options"])) : y("", !0)
|
|
223
|
-
], 32)), [
|
|
224
|
-
[t(Me), C]
|
|
225
|
-
]);
|
|
226
|
-
}
|
|
227
|
-
}), je = /* @__PURE__ */ Ee(Ae, [["__scopeId", "data-v-2e9461af"]]);
|
|
228
|
-
export {
|
|
229
|
-
je as B
|
|
230
|
-
};
|
|
231
|
-
//# sourceMappingURL=date-picker.dlzZ_-5f.js.map
|