@adyen/bento-vue3 1.71.0 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +435 -631
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/ai-button.css +1 -0
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -0
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/focus-trap.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/button.js +11 -9
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{action-bar.DXP5aDZy.js → action-bar.DDLTN9TB.js} +3 -3
- package/dist/chunks/{action-bar.DXP5aDZy.js.map → action-bar.DDLTN9TB.js.map} +1 -1
- package/dist/chunks/ai-button.DsNrcgpK.js +93 -0
- package/dist/chunks/ai-button.DsNrcgpK.js.map +1 -0
- package/dist/chunks/{base-button.CjYb5Y8k.js → base-button.BYhf0xf3.js} +2 -2
- package/dist/chunks/base-button.BYhf0xf3.js.map +1 -0
- package/dist/chunks/{base-modal.IFHgu-pI.js → base-modal.Djw4pVal.js} +4 -4
- package/dist/chunks/{base-modal.IFHgu-pI.js.map → base-modal.Djw4pVal.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.VMZpD4ic.js → button-actions-with-menu.DaKPEgPd.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.VMZpD4ic.js.map → button-actions-with-menu.DaKPEgPd.js.map} +1 -1
- package/dist/chunks/{toggle-button.Cg4Kot6V.js → button-actions.D1eBtYgZ.js} +313 -310
- package/dist/chunks/button-actions.D1eBtYgZ.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{calendar.DlqxwWsS.js → calendar.B1a_mV-Q.js} +427 -417
- package/dist/chunks/{calendar.DlqxwWsS.js.map → calendar.B1a_mV-Q.js.map} +1 -1
- package/dist/chunks/{card.BInbSY-o.js → card.B9lWURmF.js} +2 -2
- package/dist/chunks/{card.BInbSY-o.js.map → card.B9lWURmF.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CCvD8KVS.js → checkbox-group.CcgOK4yt.js} +4 -4
- package/dist/chunks/{checkbox-group.CCvD8KVS.js.map → checkbox-group.CcgOK4yt.js.map} +1 -1
- package/dist/chunks/{checkbox.BRIYlBom.js → checkbox.73QYC0y8.js} +3 -3
- package/dist/chunks/{checkbox.BRIYlBom.js.map → checkbox.73QYC0y8.js.map} +1 -1
- package/dist/chunks/{chevron-right.Brdj0WlO.js → chevron-left.Cfn1uGLH.js} +5 -5
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -0
- package/dist/chunks/{chip.DcpP3zb6.js → chip.CUwVpPVo.js} +2 -2
- package/dist/chunks/{chip.DcpP3zb6.js.map → chip.CUwVpPVo.js.map} +1 -1
- package/dist/chunks/code-snippet.DL_1HNKV.js +343 -0
- package/dist/chunks/code-snippet.DL_1HNKV.js.map +1 -0
- package/dist/chunks/{controls-group.hZ7MqEVg.js → controls-group.CdTg-WDi.js} +2 -2
- package/dist/chunks/{controls-group.hZ7MqEVg.js.map → controls-group.CdTg-WDi.js.map} +1 -1
- package/dist/chunks/{copy.CELx3jZU.js → copy.Da1OGFTr.js} +3 -3
- package/dist/chunks/{copy.CELx3jZU.js.map → copy.Da1OGFTr.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CBzzHoDx.js → dashboard-section.BXE7_Y9R.js} +3 -3
- package/dist/chunks/{dashboard-section.CBzzHoDx.js.map → dashboard-section.BXE7_Y9R.js.map} +1 -1
- package/dist/chunks/{dashed-underline.D6p0_Yi3.js → dashed-underline.28J-9i5D.js} +3 -3
- package/dist/chunks/{dashed-underline.D6p0_Yi3.js.map → dashed-underline.28J-9i5D.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CE8j-4IU.js → data-grid-template.B13OrA1T.js} +36 -36
- package/dist/chunks/data-grid-template.B13OrA1T.js.map +1 -0
- package/dist/chunks/{data-grid.D_xkGMg9.js → data-grid._xo6LEB-.js} +1061 -1009
- package/dist/chunks/data-grid._xo6LEB-.js.map +1 -0
- package/dist/chunks/{date-picker.DNdV16PL.js → date-picker.Bkz4GmyC.js} +92 -86
- package/dist/chunks/date-picker.Bkz4GmyC.js.map +1 -0
- package/dist/chunks/{date-range-picker.C5KDhklL.js → date-range-picker.9Zlg9xnH.js} +7 -7
- package/dist/chunks/{date-range-picker.C5KDhklL.js.map → date-range-picker.9Zlg9xnH.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DqNHp5mb.js → dropdown-tag.hIiGmmBD.js} +3 -3
- package/dist/chunks/{dropdown-tag.DqNHp5mb.js.map → dropdown-tag.hIiGmmBD.js.map} +1 -1
- package/dist/chunks/{dropdown.CknmuJDd.js → dropdown.GyDAswAO.js} +5 -5
- package/dist/chunks/{dropdown.CknmuJDd.js.map → dropdown.GyDAswAO.js.map} +1 -1
- package/dist/chunks/{empty-state.BTaeZdQu.js → empty-state.BsKJ-1pT.js} +74 -119
- package/dist/chunks/empty-state.BsKJ-1pT.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{error-message.RHitS8wA.js → field-label.DSeawpYh.js} +60 -60
- package/dist/chunks/field-label.DSeawpYh.js.map +1 -0
- package/dist/chunks/{file-uploader.BEzjOvcm.js → file-uploader.DELe6_NM.js} +3 -3
- package/dist/chunks/{file-uploader.BEzjOvcm.js.map → file-uploader.DELe6_NM.js.map} +1 -1
- package/dist/chunks/{filter-bar.DlGlB8KV.js → filter-bar.BLhRZzJa.js} +175 -176
- package/dist/chunks/filter-bar.BLhRZzJa.js.map +1 -0
- package/dist/chunks/{fixed-scroller.DSGxXiAH.js → fixed-scroller.BASYH576.js} +2 -2
- package/dist/chunks/{fixed-scroller.DSGxXiAH.js.map → fixed-scroller.BASYH576.js.map} +1 -1
- package/dist/chunks/{focus-trap.BkNwCiVP.js → focus-trap.CpNGD7PH.js} +156 -145
- package/dist/chunks/focus-trap.CpNGD7PH.js.map +1 -0
- package/dist/chunks/{footer-actions.0aDpxgET.js → footer-actions.Bqn-Jp0p.js} +2 -2
- package/dist/chunks/{footer-actions.0aDpxgET.js.map → footer-actions.Bqn-Jp0p.js.map} +1 -1
- package/dist/chunks/{header-meta.BA12hEmp.js → header-meta.BXOpbsSR.js} +3 -3
- package/dist/chunks/{header-meta.BA12hEmp.js.map → header-meta.BXOpbsSR.js.map} +1 -1
- package/dist/chunks/{header-with-views.BhAcH_b0.js → header-with-views.afPw_Czi.js} +8 -8
- package/dist/chunks/{header-with-views.BhAcH_b0.js.map → header-with-views.afPw_Czi.js.map} +1 -1
- package/dist/chunks/{header.But-8DTA.js → header.9kRuPR3K.js} +3 -3
- package/dist/chunks/{header.But-8DTA.js.map → header.9kRuPR3K.js.map} +1 -1
- package/dist/chunks/{info-icon.BZoBshSv.js → info-icon.CRnO5lpq.js} +3 -3
- package/dist/chunks/{info-icon.BZoBshSv.js.map → info-icon.CRnO5lpq.js.map} +1 -1
- package/dist/chunks/{input-field-password.3z2IZUll.js → input-field-password.JZkGOiMd.js} +5 -5
- package/dist/chunks/{input-field-password.3z2IZUll.js.map → input-field-password.JZkGOiMd.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CBtuFrPU.js → input-field-phone-number.CF5P0_yu.js} +4 -4
- package/dist/chunks/{input-field-phone-number.CBtuFrPU.js.map → input-field-phone-number.CF5P0_yu.js.map} +1 -1
- package/dist/chunks/{input-field.BozGzgiG.js → input-field.2S8zBviE.js} +3 -3
- package/dist/chunks/{input-field.BozGzgiG.js.map → input-field.2S8zBviE.js.map} +1 -1
- package/dist/chunks/{inspector.D4uxNwOp.js → inspector.C-yVhM15.js} +2 -2
- package/dist/chunks/{inspector.D4uxNwOp.js.map → inspector.C-yVhM15.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DXkIvvPz.js → listbox-option-tag.CtJUykfB.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DXkIvvPz.js.map → listbox-option-tag.CtJUykfB.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CVhxBKi5.js → modal-fullscreen.CIxazX33.js} +3 -3
- package/dist/chunks/{modal-fullscreen.CVhxBKi5.js.map → modal-fullscreen.CIxazX33.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.COJ937I7.js → modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.COJ937I7.js.map → modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js.map} +1 -1
- package/dist/chunks/{pagination.BNmA_Rjf.js → pagination.NDwXq6fh.js} +2 -2
- package/dist/chunks/{pagination.BNmA_Rjf.js.map → pagination.NDwXq6fh.js.map} +1 -1
- package/dist/chunks/popover.types.Bp97CGc4.js +6 -0
- package/dist/chunks/popover.types.Bp97CGc4.js.map +1 -0
- package/dist/chunks/{popper-container.bSdMC3hi.js → popper-container.5cq-eu41.js} +178 -170
- package/dist/chunks/{popper-container.bSdMC3hi.js.map → popper-container.5cq-eu41.js.map} +1 -1
- package/dist/chunks/{radio-group.CHh_3CHv.js → radio-group.BNiif4On.js} +4 -4
- package/dist/chunks/{radio-group.CHh_3CHv.js.map → radio-group.BNiif4On.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.C3c1TwV2.js → rich-text-editor.D770fUpS.js} +4 -4
- package/dist/chunks/{rich-text-editor.C3c1TwV2.js.map → rich-text-editor.D770fUpS.js.map} +1 -1
- package/dist/chunks/{search-bar.CxvanqNG.js → search-bar.rZ_38y4j.js} +3 -3
- package/dist/chunks/{search-bar.CxvanqNG.js.map → search-bar.rZ_38y4j.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DhLj6zof.js → secondary-nav.BBE8HyDR.js} +2 -2
- package/dist/chunks/{secondary-nav.DhLj6zof.js.map → secondary-nav.BBE8HyDR.js.map} +1 -1
- package/dist/chunks/{segmented-control.BCzCfi5u.js → segmented-control.D0SoqGlC.js} +2 -2
- package/dist/chunks/{segmented-control.BCzCfi5u.js.map → segmented-control.D0SoqGlC.js.map} +1 -1
- package/dist/chunks/{selection-card-group.rDJFsSHF.js → selection-card-group.KK9ZPqiU.js} +3 -3
- package/dist/chunks/{selection-card-group.rDJFsSHF.js.map → selection-card-group.KK9ZPqiU.js.map} +1 -1
- package/dist/chunks/{sidepanel.C0kqpRKo.js → sidepanel.CyPW8jxA.js} +4 -4
- package/dist/chunks/{sidepanel.C0kqpRKo.js.map → sidepanel.CyPW8jxA.js.map} +1 -1
- package/dist/chunks/{step.BMSjltwl.js → step.Ci-e1V9E.js} +2 -2
- package/dist/chunks/{step.BMSjltwl.js.map → step.Ci-e1V9E.js.map} +1 -1
- package/dist/chunks/structured-list-item.CSkcduKn.js +111 -0
- package/dist/chunks/structured-list-item.CSkcduKn.js.map +1 -0
- package/dist/chunks/{summary-grid.types.CgsPaFIi.js → summary-grid.types.C-gcwqwB.js} +5 -5
- package/dist/chunks/{summary-grid.types.CgsPaFIi.js.map → summary-grid.types.C-gcwqwB.js.map} +1 -1
- package/dist/chunks/{tab.C3R_VoJL.js → tab.8bEkiAkk.js} +2 -2
- package/dist/chunks/{tab.C3R_VoJL.js.map → tab.8bEkiAkk.js.map} +1 -1
- package/dist/chunks/{tag.DW6y9sn1.js → tag.BFYNxO6t.js} +2 -2
- package/dist/chunks/{tag.DW6y9sn1.js.map → tag.BFYNxO6t.js.map} +1 -1
- package/dist/chunks/{textarea.uiOivwAV.js → textarea.C7RmLKEx.js} +2 -2
- package/dist/chunks/{textarea.uiOivwAV.js.map → textarea.C7RmLKEx.js.map} +1 -1
- package/dist/chunks/{timeline-item.BKXebGLj.js → timeline-item.BiivSMPD.js} +5 -5
- package/dist/chunks/{timeline-item.BKXebGLj.js.map → timeline-item.BiivSMPD.js.map} +1 -1
- package/dist/chunks/{tooltip.TBU0Uixq.js → tooltip.CEHc6lzU.js} +2 -2
- package/dist/chunks/{tooltip.TBU0Uixq.js.map → tooltip.CEHc6lzU.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Unfr3oTn.js → tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Unfr3oTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.TCmNtDra.js → use-cached-selected-values.CBOWMI4O.js} +4 -4
- package/dist/chunks/use-cached-selected-values.CBOWMI4O.js.map +1 -0
- 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 +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +181 -179
- 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/inspector.js +1 -1
- package/dist/internal.js +11 -11
- 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 +2 -2
- package/dist/popper-container.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/styles/bento-dark.css +35 -16
- package/dist/styles/bento-light.css +34 -11
- package/dist/styles/bento.css +34 -11
- package/dist/styles/legacy.css +2108 -0
- package/dist/styles/styleguide.css +34 -11
- package/dist/styles/utility.css +12 -0
- 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/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -10
- package/dist/assets/error-message.css +0 -1
- package/dist/assets/toggle-button.css +0 -1
- package/dist/chunks/base-button.CjYb5Y8k.js.map +0 -1
- package/dist/chunks/chevron-right.Brdj0WlO.js.map +0 -1
- package/dist/chunks/code-snippet.DeecUpfA.js +0 -334
- package/dist/chunks/code-snippet.DeecUpfA.js.map +0 -1
- package/dist/chunks/data-grid-template.CE8j-4IU.js.map +0 -1
- package/dist/chunks/data-grid.D_xkGMg9.js.map +0 -1
- package/dist/chunks/date-picker.DNdV16PL.js.map +0 -1
- package/dist/chunks/empty-state.BTaeZdQu.js.map +0 -1
- package/dist/chunks/error-message.RHitS8wA.js.map +0 -1
- package/dist/chunks/filter-bar.DlGlB8KV.js.map +0 -1
- package/dist/chunks/focus-trap.BkNwCiVP.js.map +0 -1
- package/dist/chunks/popover.types.DdQGkMYq.js +0 -6
- package/dist/chunks/popover.types.DdQGkMYq.js.map +0 -1
- package/dist/chunks/structured-list-item.BgjY9j8w.js +0 -107
- package/dist/chunks/structured-list-item.BgjY9j8w.js.map +0 -1
- package/dist/chunks/toggle-button.Cg4Kot6V.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.TCmNtDra.js.map +0 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { f as
|
|
3
|
-
import { h as
|
|
4
|
-
import { B as
|
|
5
|
-
import { D as
|
|
6
|
-
import { d as
|
|
7
|
-
import { D as
|
|
8
|
-
import { g as
|
|
1
|
+
import { ref as m, computed as b, defineComponent as X, toRef as V, watch as Z, nextTick as _, resolveComponent as D, resolveDirective as x, withDirectives as ee, createElementBlock as ae, openBlock as v, withKeys as B, createBlock as g, createCommentVNode as I, createElementVNode as te, createVNode as A, normalizeClass as ne, withCtx as F, createTextVNode as re, toDisplayString as oe } from "vue";
|
|
2
|
+
import { f as $, s as L, a as C } from "./calendar.B1a_mV-Q.js";
|
|
3
|
+
import { h as le } from "./button-actions.D1eBtYgZ.js";
|
|
4
|
+
import { B as ie } from "./typography.yBEME_Gu.js";
|
|
5
|
+
import { D as se } from "./dropdown-default-textbox.CGsOngY1.js";
|
|
6
|
+
import { d as de } from "./debounce.DUTu11PS.js";
|
|
7
|
+
import { D as w, v as ue, f as pe } from "./date-input.BqBdAO1E.js";
|
|
8
|
+
import { g as P } from "./generate-uid.NJ8tVoha.js";
|
|
9
9
|
import { u as K } from "./i18n.B6g5VX0q.js";
|
|
10
|
-
import { g as
|
|
11
|
-
import { u as
|
|
12
|
-
import { B as
|
|
13
|
-
import { F as
|
|
14
|
-
import { _ as
|
|
10
|
+
import { g as ce } from "./get-date-locale.CAyOIbcp.js";
|
|
11
|
+
import { u as fe } from "./use-form-layout-loading.D3lALhtC.js";
|
|
12
|
+
import { B as De } from "./directive.Cbdox5VL.js";
|
|
13
|
+
import { F as ve, E as me } from "./field-label.DSeawpYh.js";
|
|
14
|
+
import { _ as be } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
15
15
|
import "../assets/date-picker.css";
|
|
16
|
-
const
|
|
16
|
+
const ye = ({
|
|
17
17
|
datePickerValue: e,
|
|
18
18
|
isDateIncorrect: t,
|
|
19
19
|
isMonthVariant: n
|
|
20
20
|
}) => {
|
|
21
21
|
var s;
|
|
22
|
-
const { locale: c, t:
|
|
22
|
+
const { locale: c, t: O } = K(), l = ce(), i = m((s = e.value) == null ? void 0 : s.toDateString());
|
|
23
23
|
return {
|
|
24
24
|
// Values
|
|
25
|
-
dateDisplayValue:
|
|
25
|
+
dateDisplayValue: b(() => t.value ? i.value : e.value ? $(
|
|
26
26
|
e.value,
|
|
27
|
-
n != null && n.value ?
|
|
27
|
+
n != null && n.value ? w.LONG_MONTH_YEAR : w.FULL_DATE,
|
|
28
28
|
{
|
|
29
29
|
locale: l[c.value.substring(0, 2)] || l.enUS
|
|
30
30
|
}
|
|
31
|
-
) :
|
|
31
|
+
) : O("selectDate")),
|
|
32
32
|
textInputValue: i,
|
|
33
33
|
// Methods
|
|
34
34
|
formatTextInputDisplayValue: (d = e.value) => {
|
|
35
35
|
if (t.value)
|
|
36
36
|
return;
|
|
37
|
-
const r = n != null && n.value ?
|
|
38
|
-
i.value = d ?
|
|
37
|
+
const r = n != null && n.value ? L(d) : d;
|
|
38
|
+
i.value = d ? $(r, w.NUMERIC_DATE_YEAR_FIRST, {
|
|
39
39
|
locale: l[c.value.substring(0, 2)] || l.enUS
|
|
40
40
|
}) : null;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
var p = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(p || {});
|
|
45
|
-
const
|
|
45
|
+
const h = {
|
|
46
46
|
"en-US": {
|
|
47
47
|
datePicker: "Date picker",
|
|
48
48
|
provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
|
|
@@ -58,18 +58,18 @@ const F = {
|
|
|
58
58
|
datePicker: "Seletor de datas",
|
|
59
59
|
selectDate: "Selecione uma data"
|
|
60
60
|
}
|
|
61
|
-
},
|
|
62
|
-
i18n: { messages:
|
|
61
|
+
}, ke = 1e3, ge = X({
|
|
62
|
+
i18n: { messages: h },
|
|
63
63
|
name: "bento-date-picker",
|
|
64
64
|
components: {
|
|
65
|
-
BentoTypography:
|
|
66
|
-
BentoPopover:
|
|
67
|
-
Calendar:
|
|
68
|
-
ErrorMessage:
|
|
69
|
-
DropdownInputDefault:
|
|
70
|
-
FieldLabel:
|
|
65
|
+
BentoTypography: ie,
|
|
66
|
+
BentoPopover: le,
|
|
67
|
+
Calendar: C,
|
|
68
|
+
ErrorMessage: me,
|
|
69
|
+
DropdownInputDefault: se,
|
|
70
|
+
FieldLabel: ve
|
|
71
71
|
},
|
|
72
|
-
directives: { BentoClickOutsideDirective:
|
|
72
|
+
directives: { BentoClickOutsideDirective: De },
|
|
73
73
|
props: {
|
|
74
74
|
/**
|
|
75
75
|
* Descriptive supporting text visbile underneath the dropdown.
|
|
@@ -86,19 +86,19 @@ const F = {
|
|
|
86
86
|
/**
|
|
87
87
|
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
88
88
|
*/
|
|
89
|
-
firstDayOfWeek:
|
|
89
|
+
firstDayOfWeek: C.props.firstDayOfWeek,
|
|
90
90
|
/**
|
|
91
91
|
* Indicate if a date should be disabled or not
|
|
92
92
|
*/
|
|
93
|
-
isDateDisabled:
|
|
93
|
+
isDateDisabled: C.props.isDateDisabled,
|
|
94
94
|
/**
|
|
95
95
|
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
96
96
|
*/
|
|
97
|
-
min:
|
|
97
|
+
min: C.props.min,
|
|
98
98
|
/**
|
|
99
99
|
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
100
100
|
*/
|
|
101
|
-
max:
|
|
101
|
+
max: C.props.max,
|
|
102
102
|
/**
|
|
103
103
|
* Text that is displayed as a label above the element.
|
|
104
104
|
*/
|
|
@@ -142,36 +142,36 @@ const F = {
|
|
|
142
142
|
},
|
|
143
143
|
emits: [p.INPUT],
|
|
144
144
|
setup(e, { emit: t }) {
|
|
145
|
-
const { t: n } = K({ messages:
|
|
145
|
+
const { t: n } = K({ messages: h }), c = P("bento-date-picker-container"), O = P("bento-date-picker-label"), l = P("bento-date-picker-description"), i = P("bento-date-picker-error"), y = P("bento-date-picker-date-error"), k = b(() => e.label || n("datePicker", { name: c })), s = m(null), d = m(null), r = m(!1), o = m(!1), f = m(void 0), { isReadOnly: M } = fe(V(e, "readonly"));
|
|
146
146
|
Z(
|
|
147
147
|
() => e.disabled,
|
|
148
148
|
(a) => {
|
|
149
149
|
a && o.value && (o.value = !1);
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
|
-
const Y =
|
|
153
|
-
datePickerValue:
|
|
152
|
+
const Y = b(() => e.variant === "month"), { dateDisplayValue: q, textInputValue: u, formatTextInputDisplayValue: T } = ye({
|
|
153
|
+
datePickerValue: V(e, "value"),
|
|
154
154
|
isDateIncorrect: r,
|
|
155
155
|
isMonthVariant: Y
|
|
156
|
-
}),
|
|
157
|
-
"b-date-picker__description--error": e.errorMessage ||
|
|
158
|
-
})), j =
|
|
159
|
-
() => `${e.description ? l : ""} ${e.errorMessage ? i : ""} ${
|
|
160
|
-
), z = (a) => e.min && a <= e.min || e.max && a >= e.max ? !1 : e.isDateDisabled ? !e.isDateDisabled(a) : !0,
|
|
156
|
+
}), E = b(() => e.isDateDisabled && u.value && e.isDateDisabled(new Date(u.value)) && !o.value ? n("selectedDateIsNotAvailable") : r.value ? n("provideDateInAFormat") : null), W = b(() => ({
|
|
157
|
+
"b-date-picker__description--error": e.errorMessage || E.value
|
|
158
|
+
})), j = b(
|
|
159
|
+
() => `${e.description ? l : ""} ${e.errorMessage ? i : ""} ${E.value ? y : ""}`.trim() || null
|
|
160
|
+
), z = (a) => e.min && a <= e.min || e.max && a >= e.max ? !1 : e.isDateDisabled ? !e.isDateDisabled(a) : !0, R = () => {
|
|
161
161
|
o.value = !1;
|
|
162
|
-
},
|
|
162
|
+
}, N = () => {
|
|
163
163
|
o.value = !0, T();
|
|
164
164
|
}, G = (a) => {
|
|
165
|
-
r.value = !1,
|
|
165
|
+
r.value = !1, R(), t(p.INPUT, a);
|
|
166
166
|
}, H = async () => {
|
|
167
167
|
r.value && (r.value = !1, u.value = null), t(p.INPUT, null);
|
|
168
168
|
}, J = (a) => {
|
|
169
|
-
|
|
170
|
-
},
|
|
169
|
+
ue(a);
|
|
170
|
+
}, U = (a) => {
|
|
171
171
|
if (a.length < 10)
|
|
172
172
|
return;
|
|
173
173
|
/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && z(new Date(a)) ? (r.value = !1, t(p.INPUT, new Date(a))) : a && (r.value = !0, t(p.INPUT, null));
|
|
174
|
-
}, Q =
|
|
174
|
+
}, Q = de(U, ke);
|
|
175
175
|
return {
|
|
176
176
|
// Refs
|
|
177
177
|
inputContainerRef: d,
|
|
@@ -182,53 +182,55 @@ const F = {
|
|
|
182
182
|
descriptionConditionalClasses: W,
|
|
183
183
|
isDateIncorrect: r,
|
|
184
184
|
isDatePickerOpen: o,
|
|
185
|
-
isReadOnly:
|
|
186
|
-
dateErrorText:
|
|
187
|
-
labelId:
|
|
185
|
+
isReadOnly: M,
|
|
186
|
+
dateErrorText: E,
|
|
187
|
+
labelId: O,
|
|
188
188
|
descriptionId: l,
|
|
189
189
|
errorId: i,
|
|
190
|
-
dateErrorId:
|
|
191
|
-
popoverAriaLabel:
|
|
190
|
+
dateErrorId: y,
|
|
191
|
+
popoverAriaLabel: k,
|
|
192
192
|
ariaDescribedBy: j,
|
|
193
193
|
textInputValue: u,
|
|
194
|
+
initialFocusOnDatePickerOpen: f,
|
|
194
195
|
// Events
|
|
195
|
-
closeDatePicker:
|
|
196
|
+
closeDatePicker: R,
|
|
196
197
|
clearDatePickerValue: H,
|
|
197
198
|
onDateSelected: G,
|
|
198
|
-
openDatePicker:
|
|
199
|
+
openDatePicker: N,
|
|
199
200
|
onDateKeyDown: J,
|
|
200
201
|
onDateInputChange: (a) => {
|
|
201
|
-
u.value =
|
|
202
|
+
u.value = pe(a), o.value ? Q(u.value) : U(u.value);
|
|
202
203
|
},
|
|
203
204
|
// Keyboard navigation
|
|
204
205
|
onSpaceBarOrEnter: async (a) => {
|
|
205
|
-
var
|
|
206
|
-
o.value || (a.preventDefault(),
|
|
207
|
-
e.variant === "month" ?
|
|
208
|
-
|
|
206
|
+
var S;
|
|
207
|
+
o.value || (a.preventDefault(), N(), await _(), e.value || (T(/* @__PURE__ */ new Date()), t(p.INPUT, /* @__PURE__ */ new Date())), f.value = ((S = s.value) == null ? void 0 : S.$refs.calendarRef[0].focusOnDate(
|
|
208
|
+
e.variant === "month" ? L(e.value) : e.value,
|
|
209
|
+
!0
|
|
210
|
+
)) ?? void 0);
|
|
209
211
|
}
|
|
210
212
|
};
|
|
211
213
|
}
|
|
212
214
|
});
|
|
213
|
-
function
|
|
214
|
-
const i =
|
|
215
|
-
return
|
|
215
|
+
function Ie(e, t, n, c, O, l) {
|
|
216
|
+
const i = D("field-label"), y = D("dropdown-input-default"), k = D("error-message"), s = D("bento-typography"), d = D("calendar"), r = D("bento-popover"), o = x("bento-click-outside-directive");
|
|
217
|
+
return ee((v(), ae("div", {
|
|
216
218
|
class: "b-date-picker",
|
|
217
219
|
onKeydownCapture: [
|
|
218
|
-
t[0] || (t[0] =
|
|
219
|
-
t[1] || (t[1] =
|
|
220
|
+
t[0] || (t[0] = B((...f) => e.onSpaceBarOrEnter && e.onSpaceBarOrEnter(...f), ["space"])),
|
|
221
|
+
t[1] || (t[1] = B((...f) => e.onSpaceBarOrEnter && e.onSpaceBarOrEnter(...f), ["enter"]))
|
|
220
222
|
]
|
|
221
223
|
}, [
|
|
222
|
-
e.label ? (
|
|
224
|
+
e.label ? (v(), g(i, {
|
|
223
225
|
key: 0,
|
|
224
226
|
id: e.labelId,
|
|
225
227
|
label: e.label,
|
|
226
228
|
"tooltip-text": e.tooltipText,
|
|
227
229
|
optional: e.optional,
|
|
228
230
|
required: e.required
|
|
229
|
-
}, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) :
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
}, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : I("", !0),
|
|
232
|
+
te("div", null, [
|
|
233
|
+
A(y, {
|
|
232
234
|
ref: "inputContainerRef",
|
|
233
235
|
"always-combobox-is-input": "",
|
|
234
236
|
ariaControls: e.datePickerContainerId,
|
|
@@ -250,43 +252,47 @@ function ge(e, t, n, c, E, l) {
|
|
|
250
252
|
onClose: e.closeDatePicker
|
|
251
253
|
}, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "value", "display-value", "readonly", "onInput", "onOpen", "onKeydown", "onClear", "onClose"])
|
|
252
254
|
]),
|
|
253
|
-
e.dateErrorText ? (
|
|
255
|
+
e.dateErrorText ? (v(), g(k, {
|
|
254
256
|
key: 1,
|
|
255
257
|
id: e.dateErrorId,
|
|
256
258
|
"error-message": e.dateErrorText,
|
|
257
259
|
class: "b-date-picker__error-message"
|
|
258
|
-
}, null, 8, ["id", "error-message"])) :
|
|
259
|
-
e.errorMessage ? (
|
|
260
|
+
}, null, 8, ["id", "error-message"])) : I("", !0),
|
|
261
|
+
e.errorMessage ? (v(), g(k, {
|
|
260
262
|
key: 2,
|
|
261
263
|
id: e.errorId,
|
|
262
264
|
"error-message": e.errorMessage,
|
|
263
265
|
class: "b-date-picker__error-message"
|
|
264
|
-
}, null, 8, ["id", "error-message"])) :
|
|
265
|
-
e.description ? (
|
|
266
|
+
}, null, 8, ["id", "error-message"])) : I("", !0),
|
|
267
|
+
e.description ? (v(), g(s, {
|
|
266
268
|
key: 3,
|
|
267
|
-
class:
|
|
269
|
+
class: ne(["b-date-picker__description", e.descriptionConditionalClasses]),
|
|
268
270
|
el: "span"
|
|
269
271
|
}, {
|
|
270
|
-
default:
|
|
271
|
-
|
|
272
|
+
default: F(() => [
|
|
273
|
+
re(oe(e.description), 1)
|
|
272
274
|
]),
|
|
273
275
|
_: 1
|
|
274
|
-
}, 8, ["class"])) :
|
|
275
|
-
e.inputContainerRef ? (
|
|
276
|
+
}, 8, ["class"])) : I("", !0),
|
|
277
|
+
e.inputContainerRef ? (v(), g(r, {
|
|
276
278
|
key: 4,
|
|
277
279
|
id: e.datePickerContainerId,
|
|
278
280
|
class: "b-date-picker__container",
|
|
279
281
|
role: "dialog",
|
|
280
282
|
open: e.isDatePickerOpen,
|
|
281
283
|
"target-element": e.inputContainerRef,
|
|
282
|
-
"disable-focus-trap": !0,
|
|
283
284
|
"aria-label": e.popoverAriaLabel,
|
|
284
285
|
"aria-modal": !0,
|
|
285
286
|
position: "bottom-start",
|
|
286
|
-
"fit-content": ""
|
|
287
|
+
"fit-content": "",
|
|
288
|
+
"trap-all": "",
|
|
289
|
+
"trap-all-options": {
|
|
290
|
+
initialFocus: e.initialFocusOnDatePickerOpen
|
|
291
|
+
},
|
|
292
|
+
onKeydown: B(e.closeDatePicker, ["esc", "native"])
|
|
287
293
|
}, {
|
|
288
|
-
default:
|
|
289
|
-
|
|
294
|
+
default: F(() => [
|
|
295
|
+
A(d, {
|
|
290
296
|
ref: "calendarContainerRef",
|
|
291
297
|
"default-display-month": e.defaultDisplayMonth,
|
|
292
298
|
"first-day-of-week": e.firstDayOfWeek,
|
|
@@ -300,14 +306,14 @@ function ge(e, t, n, c, E, l) {
|
|
|
300
306
|
}, null, 8, ["default-display-month", "first-day-of-week", "is-date-disabled", "value", "min", "max", "variant", "onInput"])
|
|
301
307
|
]),
|
|
302
308
|
_: 1
|
|
303
|
-
}, 8, ["id", "open", "target-element", "aria-label"])) :
|
|
309
|
+
}, 8, ["id", "open", "target-element", "aria-label", "trap-all-options", "onKeydown"])) : I("", !0)
|
|
304
310
|
], 32)), [
|
|
305
311
|
[o, e.closeDatePicker]
|
|
306
312
|
]);
|
|
307
313
|
}
|
|
308
|
-
const
|
|
314
|
+
const Ke = /* @__PURE__ */ be(ge, [["render", Ie], ["__scopeId", "data-v-c67913a7"]]);
|
|
309
315
|
export {
|
|
310
|
-
|
|
316
|
+
Ke as B,
|
|
311
317
|
p as a
|
|
312
318
|
};
|
|
313
|
-
//# sourceMappingURL=date-picker.
|
|
319
|
+
//# sourceMappingURL=date-picker.Bkz4GmyC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker.Bkz4GmyC.js","sources":["../../../vue2/src/components/date-picker/composables/use-date-picker-single-calendar-text.ts","../../../vue2/src/components/date-picker/date-picker.types.ts","../../../vue2/src/components/date-picker/date-picker.vue"],"sourcesContent":["import { computed, ref } from 'vue';\nimport { useI18n } from '@/utils/ts/i18n';\nimport { type UseDateDisplayText } from './use-date-picker-single-calendar-text.types';\nimport { DateFormat } from '@/types';\nimport { getDateLocale } from '@/utils/ts/get-date-locale/get-date-locale';\nimport format from 'date-fns/format';\nimport startOfMonth from 'date-fns/startOfMonth';\n\n/**\n * Composable that sets and formats the date to be displayed in the input box of a Single Date Picker\n * @param {Ref<Date>} option.datePickerValue Ref to the datePickerValue set in the DatePicker component\n * @param {Ref<boolean>} option.isDateIncorrect Indicates if the date is correct or not\n * @param {?Ref<boolean>} option.isMonthVariant Indicates if the date picker has variant \"month\"\n */\nexport const useDatePickerSingleCalendarText: UseDateDisplayText<Date> = ({\n datePickerValue,\n isDateIncorrect,\n isMonthVariant,\n}) => {\n const { locale, t } = useI18n();\n const locales = getDateLocale();\n\n const textInputValue = ref(datePickerValue.value?.toDateString());\n\n const dateDisplayValue = computed(() => {\n // Display incorrect date when there's an error with the input\n if (isDateIncorrect.value) {\n return textInputValue.value;\n }\n\n // Display \"Select a date\" when there's no date selected or input\n if (!datePickerValue.value) {\n return t('selectDate') as string;\n }\n\n // Display the date in format \"dd MMM, yyyy (25 Jun, 2023)\" or \"MMMM yyyy (June 2023)\"\n // if there's a valid date selected\n return format(\n datePickerValue.value,\n isMonthVariant?.value ? DateFormat.LONG_MONTH_YEAR : DateFormat.FULL_DATE,\n {\n locale: locales[locale.value.substring(0, 2)] || locales.enUS,\n }\n );\n });\n\n /**\n * Formats the \"dateToFormat\" date value with the yyyy-MM-dd format and sets it as \"formatTextInputDisplayValue\" value\n * @param {Date} dateToFormat - Date to be assigned and formatted\n */\n const formatTextInputDisplayValue = (dateToFormat: Date = datePickerValue.value) => {\n // If date is incorrect, leave the textInputValue intact\n if (isDateIncorrect.value) {\n return;\n }\n\n const date = isMonthVariant?.value ? startOfMonth(dateToFormat) : dateToFormat;\n textInputValue.value = dateToFormat\n ? format(date, DateFormat.NUMERIC_DATE_YEAR_FIRST, {\n locale: locales[locale.value.substring(0, 2)] || locales.enUS,\n })\n : null;\n };\n\n return {\n // Values\n dateDisplayValue,\n textInputValue,\n\n // Methods\n formatTextInputDisplayValue,\n };\n};\n","export { CalendarFirstDayOfWeek as BentoDatePickerFirstDayOfWeek } from '@/internal';\nexport type {\n CalendarIsDateDisabled as BentoDatePickerIsDateDisabled,\n CalendarSingleDateValue as BentoDatePickerValue,\n CalendarVariant as BentoDatePickerVariant,\n} from '@/internal';\n\nexport enum BentoDatePickerEvent {\n INPUT = 'input',\n}\n","<!-- TODO: Remove aria props as these are part of JSX elements /vue/types/jsx.d.ts -->\n<!-- eslint-disable vue/attribute-hyphenation -->\n<template>\n <div\n v-bento-click-outside-directive=\"closeDatePicker\"\n class=\"b-date-picker\"\n @keydown.space.capture=\"onSpaceBarOrEnter\"\n @keydown.enter.capture=\"onSpaceBarOrEnter\"\n >\n <!-- Label -->\n <field-label\n v-if=\"label\"\n :id=\"labelId\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n\n <!-- Input -->\n <div>\n <dropdown-input-default\n ref=\"inputContainerRef\"\n always-combobox-is-input\n :ariaControls=\"datePickerContainerId\"\n :ariaExpanded=\"isDatePickerOpen\"\n :aria-labelledby=\"label ? labelId : null\"\n :aria-describedby=\"ariaDescribedBy\"\n :disabled=\"disabled\"\n dynamic-filtering\n :is-invalid=\"!!errorMessage || !!dateErrorText\"\n :open=\"isDatePickerOpen\"\n :value=\"textInputValue\"\n :display-value=\"dateDisplayValue\"\n :debounce-time=\"0\"\n :readonly=\"isReadOnly\"\n @input=\"onDateInputChange\"\n @open=\"openDatePicker\"\n @keydown=\"onDateKeyDown\"\n @clear=\"clearDatePickerValue\"\n @close=\"closeDatePicker\"\n />\n </div>\n\n <!-- Error Messages -->\n <error-message\n v-if=\"dateErrorText\"\n :id=\"dateErrorId\"\n :error-message=\"dateErrorText\"\n class=\"b-date-picker__error-message\"\n />\n <error-message\n v-if=\"errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-date-picker__error-message\"\n />\n\n <!-- Description -->\n <bento-typography\n v-if=\"description\"\n class=\"b-date-picker__description\"\n :class=\"descriptionConditionalClasses\"\n el=\"span\"\n >\n {{ description }}\n </bento-typography>\n\n <!-- Calendar container -->\n <bento-popover\n v-if=\"inputContainerRef\"\n :id=\"datePickerContainerId\"\n class=\"b-date-picker__container\"\n role=\"dialog\"\n :open=\"isDatePickerOpen\"\n :target-element=\"inputContainerRef\"\n :aria-label=\"popoverAriaLabel\"\n :aria-modal=\"true\"\n position=\"bottom-start\"\n fit-content\n trap-all\n :trap-all-options=\"{\n initialFocus: initialFocusOnDatePickerOpen,\n }\"\n @keydown.esc.native=\"closeDatePicker\"\n >\n <calendar\n ref=\"calendarContainerRef\"\n :default-display-month=\"defaultDisplayMonth\"\n :first-day-of-week=\"firstDayOfWeek\"\n :is-date-disabled=\"isDateDisabled\"\n :number-of-months=\"1\"\n :value=\"value\"\n :min=\"min\"\n :max=\"max\"\n :variant=\"variant\"\n @input=\"onDateSelected\"\n />\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, nextTick, type PropType, type Ref, ref, toRef, watch } from 'vue';\n import startOfMonth from 'date-fns/startOfMonth';\n\n // Components\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '../typography';\n import { Calendar, ErrorMessage, FieldLabel } from '@/internal';\n import { DropdownInputDefault } from '@/components/dropdown/components';\n\n // Utils\n import { debounce } from '@/utils/ts/debounce';\n import { formatDateInputValue, validateDateInput } from '@/utils/ts/date-input';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n\n // Composables\n import { useDatePickerSingleCalendarText } from './composables/use-date-picker-single-calendar-text';\n import { useFormLayoutFieldLoading } from '@/composables';\n\n // Directive\n import { BentoClickOutsideDirective } from '@/directives';\n\n // Types\n import { BentoDatePickerEvent, type BentoDatePickerValue, type BentoDatePickerVariant } from './date-picker.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n const DEBOUNCE_TIME = 1000;\n\n /**\n * Date picker selector.\n *\n * @example\n * import { BentoDatePicker } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDatePicker },\n * template: `\n * <bento-date-picker\n * label=\"Label\"\n * description=\"Supporting text\"\n * required\n * optional\n * disabled\n * @input=\"onDateChanged\"\n * v-model=\"selectedDate\"\n * />\n * `,\n * setup() {\n * const selectedDate = ref(new Date()); // reactive({ startDate: new Date(), endDate: new Date() })\n * return {\n * selectedDate,\n * }\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-date-picker',\n components: {\n BentoTypography,\n BentoPopover,\n Calendar,\n ErrorMessage,\n DropdownInputDefault,\n FieldLabel,\n },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Descriptive supporting text visbile underneath the dropdown.\n */\n description: { type: String, default: undefined },\n\n /**\n * Disables dropdown functionality.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Displays component in an error state with an error message\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n */\n firstDayOfWeek: Calendar.props.firstDayOfWeek,\n\n /**\n * Indicate if a date should be disabled or not\n */\n isDateDisabled: Calendar.props.isDateDisabled,\n\n /**\n * Sets a minimum limit for selectable dates - dates before `min` will not be selectable\n */\n min: Calendar.props.min,\n\n /**\n * Sets a maximum limit for selectable dates - dates after `max` will not be selectable\n */\n max: Calendar.props.max,\n\n /**\n * Text that is displayed as a label above the element.\n */\n label: { type: String, default: undefined },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date picker.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * Selected date\n */\n value: { type: [Date, Object] as PropType<BentoDatePickerValue>, default: null },\n\n /**\n * The type of calendar to display. Defaults to showing days.\n */\n variant: {\n type: String as PropType<`${BentoDatePickerVariant}`>,\n default: undefined, // Default will be set by @/internal/calendar\n },\n\n /**\n * Default start date for the calendar pane\n */\n defaultDisplayMonth: {\n type: String,\n default: null,\n validator: (value: string) => {\n // Checks for YYYY-MM-DD format\n const dateRegex = /^\\d{4}-(0?[1-9]|1[012])(-(0?[1-9]|[12][0-9]|3[01]))?$/;\n const isValidDate = dateRegex.test(value);\n\n return isValidDate;\n },\n },\n },\n emits: [BentoDatePickerEvent.INPUT],\n setup(props, { emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const datePickerContainerId = generateUid('bento-date-picker-container');\n const labelId = generateUid('bento-date-picker-label');\n const descriptionId = generateUid('bento-date-picker-description');\n const errorId = generateUid('bento-date-picker-error');\n const dateErrorId = generateUid('bento-date-picker-date-error');\n const popoverAriaLabel = computed(() => props.label || t('datePicker', { name: datePickerContainerId }));\n\n // Refs\n const calendarContainerRef = ref(null);\n const inputContainerRef = ref(null);\n\n // Values\n const isDateIncorrect = ref(false);\n const isDatePickerOpen = ref(false);\n const initialFocusOnDatePickerOpen = ref(undefined);\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n watch(\n () => props.disabled,\n disabled => {\n // Close date picker popover if it's opened when it's disabled\n if (disabled && isDatePickerOpen.value) {\n isDatePickerOpen.value = false;\n }\n }\n );\n\n const isMonthVariant = computed(() => props.variant === 'month');\n\n const { dateDisplayValue, textInputValue, formatTextInputDisplayValue } = useDatePickerSingleCalendarText({\n datePickerValue: toRef(props, 'value') as Ref<Date>,\n isDateIncorrect,\n isMonthVariant,\n });\n\n const dateErrorText = computed(() => {\n if (\n props.isDateDisabled &&\n textInputValue.value &&\n props.isDateDisabled(new Date(textInputValue.value)) &&\n !isDatePickerOpen.value\n ) {\n return t('selectedDateIsNotAvailable');\n }\n\n return isDateIncorrect.value ? t('provideDateInAFormat') : null;\n });\n\n const descriptionConditionalClasses = computed(() => ({\n 'b-date-picker__description--error': props.errorMessage || dateErrorText.value,\n }));\n\n const ariaDescribedBy = computed(\n () =>\n `${props.description ? descriptionId : ''} ${props.errorMessage ? errorId : ''} ${\n dateErrorText.value ? dateErrorId : ''\n }`.trim() || null\n );\n\n const isDateEnabled = (date: Date) => {\n // Check if date is between min/max bounds, if there are any\n if ((props.min && date <= props.min) || (props.max && date >= props.max)) {\n return false;\n }\n\n // Check if function is set, otherwise all dates are enabled\n if (props.isDateDisabled) {\n return !props.isDateDisabled(date);\n }\n\n return true;\n };\n\n const closeDatePicker = () => {\n isDatePickerOpen.value = false;\n };\n\n const openDatePicker = () => {\n isDatePickerOpen.value = true;\n\n formatTextInputDisplayValue();\n };\n\n const onDateSelected = (selectedDate: Date) => {\n // Reset the error state when a valid date is selected\n isDateIncorrect.value = false;\n\n closeDatePicker();\n emit(BentoDatePickerEvent.INPUT, selectedDate);\n };\n\n const clearDatePickerValue = async () => {\n if (isDateIncorrect.value) {\n isDateIncorrect.value = false;\n textInputValue.value = null;\n }\n emit(BentoDatePickerEvent.INPUT, null);\n };\n\n const onDateKeyDown = (event: KeyboardEvent) => {\n validateDateInput(event);\n };\n\n const validateDate = (stringDate: string) => {\n // Validate only if the date is complete\n if (stringDate.length < 10) {\n return;\n }\n\n // Checks for YYYY-MM-DD format\n const dateRegex = /^\\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/;\n const isValidDate = dateRegex.test(stringDate) && isDateEnabled(new Date(stringDate));\n if (isValidDate) {\n isDateIncorrect.value = false;\n emit(BentoDatePickerEvent.INPUT, new Date(stringDate));\n } else if (stringDate) {\n // Only set to true if the value exists (not null/undefined)\n isDateIncorrect.value = true;\n emit(BentoDatePickerEvent.INPUT, null);\n }\n };\n\n const validateDateDebounced = debounce(validateDate, DEBOUNCE_TIME);\n\n const onDateInputChange = (stringDate: string) => {\n textInputValue.value = formatDateInputValue(stringDate);\n // If we are closing the date picker, we should validate (and emit date inputs) immediately so the user doesn't have to wait for the debounce time.\n if (isDatePickerOpen.value) {\n validateDateDebounced(textInputValue.value);\n } else {\n validateDate(textInputValue.value);\n }\n };\n\n /**\n * Space bar and Enter keyDown event handler.\n *\n * * Opens the date picker dialog on the first keydown.\n * * Move focus to selected date, i.e., the date displayed in the date input text field. If no date has been selected, places focus on the current date.\n * @param {KeyboardEvent} event Event being triggered\n */\n const onSpaceBarOrEnter = async (event: KeyboardEvent) => {\n if (isDatePickerOpen.value) {\n return;\n }\n event.preventDefault();\n\n openDatePicker();\n\n // Wait for the date picker dialog to open\n await nextTick();\n\n // Set current date (today) if no date is selected\n if (!props.value) {\n // Format the opened date picker date to YYYY-MM-DD\n formatTextInputDisplayValue(new Date());\n emit(BentoDatePickerEvent.INPUT, new Date());\n }\n\n // Set initial focus\n initialFocusOnDatePickerOpen.value =\n calendarContainerRef.value?.$refs.calendarRef[0].focusOnDate(\n props.variant === 'month' ? startOfMonth(props.value) : props.value,\n true\n ) ?? undefined;\n };\n\n return {\n // Refs\n inputContainerRef,\n calendarContainerRef,\n\n // Values,\n dateDisplayValue,\n datePickerContainerId,\n descriptionConditionalClasses,\n isDateIncorrect,\n isDatePickerOpen,\n isReadOnly,\n dateErrorText,\n labelId,\n descriptionId,\n errorId,\n dateErrorId,\n popoverAriaLabel,\n ariaDescribedBy,\n textInputValue,\n initialFocusOnDatePickerOpen,\n\n // Events\n closeDatePicker,\n clearDatePickerValue,\n onDateSelected,\n openDatePicker,\n onDateKeyDown,\n onDateInputChange,\n\n // Keyboard navigation\n onSpaceBarOrEnter,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./date-picker.scss\" />\n"],"names":["useDatePickerSingleCalendarText","datePickerValue","isDateIncorrect","isMonthVariant","locale","t","useI18n","locales","getDateLocale","textInputValue","ref","_a","computed","format","DateFormat","dateToFormat","date","startOfMonth","BentoDatePickerEvent","BentoDatePickerEvent2","DEBOUNCE_TIME","_sfc_main","defineComponent","messages","BentoTypography","BentoPopover","Calendar","ErrorMessage","DropdownInputDefault","FieldLabel","BentoClickOutsideDirective","value","props","emit","datePickerContainerId","generateUid","labelId","descriptionId","errorId","dateErrorId","popoverAriaLabel","calendarContainerRef","inputContainerRef","isDatePickerOpen","initialFocusOnDatePickerOpen","isReadOnly","useFormLayoutFieldLoading","toRef","watch","disabled","dateDisplayValue","formatTextInputDisplayValue","dateErrorText","descriptionConditionalClasses","ariaDescribedBy","isDateEnabled","closeDatePicker","openDatePicker","onDateSelected","selectedDate","clearDatePickerValue","onDateKeyDown","event","validateDateInput","validateDate","stringDate","validateDateDebounced","debounce","formatDateInputValue","nextTick","withDirectives","openBlock","createElementBlock","_ctx","createBlock","_component_field_label","optional","required","createCommentVNode","createElementVNode","createVNode","_component_dropdown_input_default","label","onDateInputChange","_component_error_message","_component_bento_typography","normalizeClass","createTextVNode","toDisplayString","_component_bento_popover","withCtx","_component_calendar","defaultDisplayMonth","isDateDisabled","max","variant"],"mappings":";;;;;;;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AAA;AAAA,IAAA,GAAA,GAAA,CAAA,OAAA,CAAA,KAAAK,EAAA,IAAA,EAAA;AAAA,IAkGwBL,EAAA,qBAAAF,EAAA,GAAAG,EAAAe,GAAA;AAAA,MA3Bc,KAAA;AAAA,MACrB,IAAAhB,EAAA;AAAA,MACA,OAAA;AAAA,MACE9B,MAAAA;AAAAA,MACN,MAAA8B,EAAA;AAAA,MACA,kBAAAA,EAAA;AAAA,MACgB,cAAAA,EAAA;AAAA,MACR,cAAA;AAAA,MACE,UAAA;AAAA,MACH,eAAA;AAAA,MACP,YAAA;AAAA;QAGA,cAAAA,EAAA;AAAA,MAAoBjB;AAAAA;IAanB,GAAA;AAAA,MAVM,SAAAkC,EAAA,MAAA;AAAA,QAAAV,EAAAW,GAAA;AAAA,UACoBC,KAAAA;AAAAA,UACvB,yBAAAnB,EAAA;AAAA,UACkBoB,qBAAAA,EAAAA;AAAAA,UACC,oBAAApB,EAAA;AAAA,UACP,oBAAA;AAAA,UACJ,OAAAA,EAAA;AAAA,UACHqB,KAAAA,EAAAA;AAAAA,UACIC,KAAAA,EAAAA;AAAAA,UACFrC,SAAAA,EAAAA;AAAAA;QAhGxB,GAAA,MAAA,GAAA,CAAA,yBAAA,qBAAA,oBAAA,SAAA,OAAA,OAAA,WAAA,SAAA,CAAA;AAAA,MAAA,CAAA;AAAA,MAAA,GAAA;AAAA,IAAA,GAAA,GAAA,CAAA,MAAA,QAAA,kBAAA,cAAA,oBAAA,WAAA,CAAA,KAAAoB,EAAA,IAAA,EAAA;AAAA;;;;;"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { reactive as we, defineComponent as at, ref as C, computed as S, onMounted as nt, toRaw as Oe, resolveComponent as ge, createElementBlock as Me, openBlock as F, createElementVNode as V, createCommentVNode as $, renderSlot as qe, createBlock as x, createVNode as z, withCtx as W, createTextVNode as le, normalizeClass as Ce, toRef as $e, watch as ke, withDirectives as St, unref as b, withKeys as Pe, toDisplayString as Rt, createSlots as Et } from "vue";
|
|
2
2
|
import { B as ht } from "./divider.DnKNNyWB.js";
|
|
3
|
-
import { h as wt, B as kt } from "./
|
|
3
|
+
import { h as wt, B as kt } from "./button-actions.D1eBtYgZ.js";
|
|
4
4
|
import { B as rt, d as Ot } from "./typography.yBEME_Gu.js";
|
|
5
5
|
import { D as Mt } from "./dropdown-default-textbox.CGsOngY1.js";
|
|
6
6
|
import { e as Y, a as Le, g as Ae } from "./get-date-locale.CAyOIbcp.js";
|
|
7
7
|
import { g as ye } from "./generate-uid.NJ8tVoha.js";
|
|
8
8
|
import { u as Fe } from "./i18n.B6g5VX0q.js";
|
|
9
|
-
import { e as st, t as de, g as Te, i as P, h as A, j as Ye, k as Ct, l as je, m as At, s as Ke, n as Ft, o as Qe, a as te, u as Ut, f as ue } from "./calendar.
|
|
9
|
+
import { e as st, t as de, g as Te, i as P, h as A, j as Ye, k as Ct, l as je, m as At, s as Ke, n as Ft, o as Qe, a as te, u as Ut, f as ue } from "./calendar.B1a_mV-Q.js";
|
|
10
10
|
import { f as Ge, v as Nt, D as w } from "./date-input.BqBdAO1E.js";
|
|
11
11
|
import { r as M, t as J } from "./index.BrH1t1iu.js";
|
|
12
12
|
import { u as Bt } from "./use-form-layout-loading.D3lALhtC.js";
|
|
13
13
|
import { B as _t } from "./directive.Cbdox5VL.js";
|
|
14
|
-
import { B as qt } from "./input-field.
|
|
15
|
-
import { B as $t } from "./dropdown.
|
|
16
|
-
import { B as Pt } from "./segmented-control.
|
|
14
|
+
import { B as qt } from "./input-field.2S8zBviE.js";
|
|
15
|
+
import { B as $t } from "./dropdown.GyDAswAO.js";
|
|
16
|
+
import { B as Pt } from "./segmented-control.D0SoqGlC.js";
|
|
17
17
|
import { d as Re } from "./debounce.DUTu11PS.js";
|
|
18
18
|
import { u as Lt } from "./use-has-slot.B7eQSabc.js";
|
|
19
19
|
import { _ as lt } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
20
|
-
import { F as Yt, E as He } from "./
|
|
20
|
+
import { F as Yt, E as He } from "./field-label.DSeawpYh.js";
|
|
21
21
|
import { B as jt } from "./button-actions.types.BptAXjD8.js";
|
|
22
22
|
import "../assets/date-range-picker.css";
|
|
23
23
|
function ot(e, a) {
|
|
@@ -1168,4 +1168,4 @@ export {
|
|
|
1168
1168
|
Qt as b,
|
|
1169
1169
|
Ee as i
|
|
1170
1170
|
};
|
|
1171
|
-
//# sourceMappingURL=date-range-picker.
|
|
1171
|
+
//# sourceMappingURL=date-range-picker.9Zlg9xnH.js.map
|