@adyen/bento-vue2 1.45.0 → 1.47.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 +16740 -18774
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/divider.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- 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/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{accordion-item.CzKttO4w.js → accordion-item.CTxrEQEW.js} +5 -5
- package/dist/chunks/{accordion-item.CzKttO4w.js.map → accordion-item.CTxrEQEW.js.map} +1 -1
- package/dist/chunks/{action-bar.BXemSuq4.js → action-bar.EcN2I7Az.js} +11 -11
- package/dist/chunks/{action-bar.BXemSuq4.js.map → action-bar.EcN2I7Az.js.map} +1 -1
- package/dist/chunks/{alert.CAIp-87f.js → alert.BRN8cpXl.js} +7 -7
- package/dist/chunks/{alert.CAIp-87f.js.map → alert.BRN8cpXl.js.map} +1 -1
- package/dist/chunks/{base-modal.4JSNBM4T.js → base-modal.BgTZ8iQ6.js} +5 -5
- package/dist/chunks/{base-modal.4JSNBM4T.js.map → base-modal.BgTZ8iQ6.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ieopdfI7.js → button-actions-with-menu.C8EjGVCT.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ieopdfI7.js.map → button-actions-with-menu.C8EjGVCT.js.map} +1 -1
- package/dist/chunks/{button-actions.CtFB6iRj.js → button-actions.BU173IFE.js} +5 -5
- package/dist/chunks/{button-actions.CtFB6iRj.js.map → button-actions.BU173IFE.js.map} +1 -1
- package/dist/chunks/{calendar.BouORZfb.js → calendar.DlOcbH6E.js} +161 -148
- package/dist/chunks/{calendar.BouORZfb.js.map → calendar.DlOcbH6E.js.map} +1 -1
- package/dist/chunks/{card.BabmUkTG.js → card.DoyCGJay.js} +10 -10
- package/dist/chunks/{card.BabmUkTG.js.map → card.DoyCGJay.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DbLznnsa.js → checkbox-group.BQN9gjgH.js} +4 -4
- package/dist/chunks/{checkbox-group.DbLznnsa.js.map → checkbox-group.BQN9gjgH.js.map} +1 -1
- package/dist/chunks/{checkbox.fhQLs-NN.js → checkbox.O1CbmNdS.js} +22 -22
- package/dist/chunks/{checkbox.fhQLs-NN.js.map → checkbox.O1CbmNdS.js.map} +1 -1
- package/dist/chunks/{code-snippet.5iJcUZSo.js → code-snippet.BDBD85qD.js} +117 -87
- package/dist/chunks/code-snippet.BDBD85qD.js.map +1 -0
- package/dist/chunks/{codemirror.CXFEqvAi.js → codemirror.0fz2cWJS.js} +4970 -4661
- package/dist/chunks/codemirror.0fz2cWJS.js.map +1 -0
- package/dist/chunks/{controls-group.CnXzOQkX.js → controls-group.C3RDqB9H.js} +2 -2
- package/dist/chunks/{controls-group.CnXzOQkX.js.map → controls-group.C3RDqB9H.js.map} +1 -1
- package/dist/chunks/{copy.DN0tClPm.js → copy.BuMSGw23.js} +5 -5
- package/dist/chunks/{copy.DN0tClPm.js.map → copy.BuMSGw23.js.map} +1 -1
- package/dist/chunks/{country.Bft91V1L.js → country.2-ZtYkh7.js} +2 -2
- package/dist/chunks/{country.Bft91V1L.js.map → country.2-ZtYkh7.js.map} +1 -1
- package/dist/chunks/{country.types.pilf5B3F.js → country.types.CLjbulKL.js} +4114 -4114
- package/dist/chunks/{country.types.pilf5B3F.js.map → country.types.CLjbulKL.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DYXZhtop.js → dashboard-section.COWO5SVw.js} +3 -3
- package/dist/chunks/{dashboard-section.DYXZhtop.js.map → dashboard-section.COWO5SVw.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BvSZS1-m.js → dashed-underline.BEAEmTCb.js} +2 -2
- package/dist/chunks/{dashed-underline.BvSZS1-m.js.map → dashed-underline.BEAEmTCb.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Du92TEFY.js → data-grid-template.vBl7u2cB.js} +2 -2
- package/dist/chunks/{data-grid-template.Du92TEFY.js.map → data-grid-template.vBl7u2cB.js.map} +1 -1
- package/dist/chunks/{data-grid.Kwtf1DMq.js → data-grid.DQ0578m9.js} +46 -46
- package/dist/chunks/{data-grid.Kwtf1DMq.js.map → data-grid.DQ0578m9.js.map} +1 -1
- package/dist/chunks/{date-picker.B7mTNghB.js → date-picker.Bym2OEd9.js} +47 -39
- package/dist/chunks/date-picker.Bym2OEd9.js.map +1 -0
- package/dist/chunks/{date-range-picker.DPLri9D-.js → date-range-picker.P2Q5FNB-.js} +310 -306
- package/dist/chunks/date-range-picker.P2Q5FNB-.js.map +1 -0
- package/dist/chunks/divider.Cc4JFWG_.js +35 -0
- package/dist/chunks/divider.Cc4JFWG_.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.DBoSso4J.js → dropdown-default-textbox.CC9Z_RFG.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.DBoSso4J.js.map → dropdown-default-textbox.CC9Z_RFG.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.XIlES6IT.js → dropdown-tag.CiCDvGyN.js} +4 -4
- package/dist/chunks/{dropdown-tag.XIlES6IT.js.map → dropdown-tag.CiCDvGyN.js.map} +1 -1
- package/dist/chunks/{dropdown.BqsoncJr.js → dropdown.hc9ZuuTt.js} +197 -193
- package/dist/chunks/dropdown.hc9ZuuTt.js.map +1 -0
- package/dist/chunks/{error-message.Ccc1sTTp.js → error-message.Da-p1QIA.js} +8 -8
- package/dist/chunks/{error-message.Ccc1sTTp.js.map → error-message.Da-p1QIA.js.map} +1 -1
- package/dist/chunks/{es6.jIyAPBgt.js → es6.BtaxuP0b.js} +7 -7
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -0
- package/dist/chunks/file-uploader.DVyryYaq.js +1879 -0
- package/dist/chunks/file-uploader.DVyryYaq.js.map +1 -0
- package/dist/chunks/{filter-bar.DT_-lVmf.js → filter-bar.DzcNo5nF.js} +53 -53
- package/dist/chunks/{filter-bar.DT_-lVmf.js.map → filter-bar.DzcNo5nF.js.map} +1 -1
- package/dist/chunks/{footer-actions.D0uH9JWq.js → footer-actions.Cbe_YLjP.js} +2 -2
- package/dist/chunks/{footer-actions.D0uH9JWq.js.map → footer-actions.Cbe_YLjP.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DN0jonFa.js → form-layout-title.Xdsi84v2.js} +2 -2
- package/dist/chunks/{form-layout-title.DN0jonFa.js.map → form-layout-title.Xdsi84v2.js.map} +1 -1
- package/dist/chunks/{header.BvZxtIOD.js → header.BIZTUAJE.js} +4 -4
- package/dist/chunks/{header.BvZxtIOD.js.map → header.BIZTUAJE.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DEjsASNU.js → info-icon-with-popover.Bly2e0uy.js} +5 -5
- package/dist/chunks/{info-icon-with-popover.DEjsASNU.js.map → info-icon-with-popover.Bly2e0uy.js.map} +1 -1
- package/dist/chunks/{input-field-password.HRDEb0jL.js → input-field-password.CosL-n__.js} +27 -27
- package/dist/chunks/{input-field-password.HRDEb0jL.js.map → input-field-password.CosL-n__.js.map} +1 -1
- package/dist/chunks/input-field.DgDFJbg7.js +231 -0
- package/dist/chunks/input-field.DgDFJbg7.js.map +1 -0
- package/dist/chunks/{inspector.types.2YEArjPi.js → inspector.types.8071wkf0.js} +5 -5
- package/dist/chunks/{inspector.types.2YEArjPi.js.map → inspector.types.8071wkf0.js.map} +1 -1
- package/dist/chunks/{menu.CLaN9Eys.js → menu.Dq7RlryT.js} +5 -5
- package/dist/chunks/{menu.CLaN9Eys.js.map → menu.Dq7RlryT.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.B-qr1Szh.js → modal-fullscreen.CfrgVR_K.js} +5 -5
- package/dist/chunks/{modal-fullscreen.B-qr1Szh.js.map → modal-fullscreen.CfrgVR_K.js.map} +1 -1
- package/dist/chunks/{modal.wU3uUJKq.js → modal.CuUUMIU_.js} +4 -4
- package/dist/chunks/{modal.wU3uUJKq.js.map → modal.CuUUMIU_.js.map} +1 -1
- package/dist/chunks/{pagination.BM3FhtxJ.js → pagination.QF1EEUfX.js} +45 -45
- package/dist/chunks/{pagination.BM3FhtxJ.js.map → pagination.QF1EEUfX.js.map} +1 -1
- package/dist/chunks/{popover.DsUymZWJ.js → popover.nev0GndY.js} +2 -2
- package/dist/chunks/{popover.DsUymZWJ.js.map → popover.nev0GndY.js.map} +1 -1
- package/dist/chunks/radio-group.D1q0VKvv.js +229 -0
- package/dist/chunks/radio-group.D1q0VKvv.js.map +1 -0
- package/dist/chunks/{radio-input.C1DZbkcT.js → radio-input.uJAhxKRs.js} +29 -25
- package/dist/chunks/{radio-input.C1DZbkcT.js.map → radio-input.uJAhxKRs.js.map} +1 -1
- package/dist/chunks/{search-bar.rubkdbcD.js → search-bar.fmMx-zRN.js} +7 -7
- package/dist/chunks/{search-bar.rubkdbcD.js.map → search-bar.fmMx-zRN.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DKSjc5bn.js → secondary-nav.ldVrzGbB.js} +7 -7
- package/dist/chunks/{secondary-nav.DKSjc5bn.js.map → secondary-nav.ldVrzGbB.js.map} +1 -1
- package/dist/chunks/{selection-card-group.iYyZ9yX4.js → selection-card-group.CdkrhyZV.js} +11 -11
- package/dist/chunks/{selection-card-group.iYyZ9yX4.js.map → selection-card-group.CdkrhyZV.js.map} +1 -1
- package/dist/chunks/{sidepanel.CQnLpV8A.js → sidepanel.D-KuHnwI.js} +5 -5
- package/dist/chunks/{sidepanel.CQnLpV8A.js.map → sidepanel.D-KuHnwI.js.map} +1 -1
- package/dist/chunks/{status.types.Cv6hHRMu.js → status.types.Ce018tQy.js} +18 -17
- package/dist/chunks/status.types.Ce018tQy.js.map +1 -0
- package/dist/chunks/{structured-list-item.BhBbmkbw.js → structured-list-item.Dk8Z-FPn.js} +5 -5
- package/dist/chunks/{structured-list-item.BhBbmkbw.js.map → structured-list-item.Dk8Z-FPn.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CicAOBVQ.js → summary-grid-item-custom.atXX3GY9.js} +2 -2
- package/dist/chunks/{summary-grid-item-custom.CicAOBVQ.js.map → summary-grid-item-custom.atXX3GY9.js.map} +1 -1
- package/dist/chunks/{textarea.Cf21WMwL.js → textarea.BVzGn3zO.js} +2 -2
- package/dist/chunks/{textarea.Cf21WMwL.js.map → textarea.BVzGn3zO.js.map} +1 -1
- package/dist/chunks/{timeline-item.Cu5b-Mqj.js → timeline-item.D_YNHlRi.js} +13 -13
- package/dist/chunks/{timeline-item.Cu5b-Mqj.js.map → timeline-item.D_YNHlRi.js.map} +1 -1
- package/dist/chunks/{tutorial.w2ZqeOh1.js → tutorial.cQXPvqV4.js} +10 -10
- package/dist/chunks/{tutorial.w2ZqeOh1.js.map → tutorial.cQXPvqV4.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.impKjAIS.js → use-cached-selected-values.BGlHmPhX.js} +10 -10
- package/dist/chunks/{use-cached-selected-values.impKjAIS.js.map → use-cached-selected-values.BGlHmPhX.js.map} +1 -1
- package/dist/chunks/{use-country-items.DPBbl1KK.js → use-country-items.eWARMT6I.js} +2 -2
- package/dist/chunks/{use-country-items.DPBbl1KK.js.map → use-country-items.eWARMT6I.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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/divider.js +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.js +1 -1
- package/dist/index.js +47 -47
- package/dist/input-field-password.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +2 -0
- package/dist/styles/bento-light.css +2 -0
- package/dist/styles/bento.css +2 -0
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +2 -0
- package/dist/summary-grid.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 +42 -3
- package/package.json +12 -7
- package/dist/chunks/code-snippet.5iJcUZSo.js.map +0 -1
- package/dist/chunks/codemirror.CXFEqvAi.js.map +0 -1
- package/dist/chunks/date-picker.B7mTNghB.js.map +0 -1
- package/dist/chunks/date-range-picker.DPLri9D-.js.map +0 -1
- package/dist/chunks/divider.BZfeYmB9.js +0 -30
- package/dist/chunks/divider.BZfeYmB9.js.map +0 -1
- package/dist/chunks/dropdown.BqsoncJr.js.map +0 -1
- package/dist/chunks/es6.jIyAPBgt.js.map +0 -1
- package/dist/chunks/file-uploader.C6kcnhqp.js +0 -729
- package/dist/chunks/file-uploader.C6kcnhqp.js.map +0 -1
- package/dist/chunks/input-field.D6N2kt7s.js +0 -228
- package/dist/chunks/input-field.D6N2kt7s.js.map +0 -1
- package/dist/chunks/radio-group.DMob8x2J.js +0 -219
- package/dist/chunks/radio-group.DMob8x2J.js.map +0 -1
- package/dist/chunks/status.types.Cv6hHRMu.js.map +0 -1
|
@@ -1,103 +1,109 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { D as
|
|
6
|
-
import { r as
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import { t as
|
|
10
|
-
import { f as
|
|
11
|
-
import {
|
|
1
|
+
import { reactive as ne, defineComponent as Me, computed as T, ref as E, onMounted as Ce, toRaw as le, toRef as oe, watch as ve } from "vue";
|
|
2
|
+
import { B as We } from "./divider.Cc4JFWG_.js";
|
|
3
|
+
import { B as qe } from "./popover.nev0GndY.js";
|
|
4
|
+
import { B as we, d as He } from "./typography.J1v_SPG3.js";
|
|
5
|
+
import { D as je } from "./dropdown-default-textbox.CC9Z_RFG.js";
|
|
6
|
+
import { r as K, t as j, g as ie } from "./get-date-locale.BN8xEjY0.js";
|
|
7
|
+
import { g as X } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
+
import { u as ue } from "./i18n.BQkEbtPM.js";
|
|
9
|
+
import { t as de, f as Z } from "./date.1zs9CRhw.js";
|
|
10
|
+
import { s as q, c as ge, i as H, d as Ke, e as ye, f as ze, g as Te, h as Je, j as Qe, a as N, u as Xe } from "./calendar.DlOcbH6E.js";
|
|
11
|
+
import { f as _e, v as Ze, D as R } from "./date-input.BqBdAO1E.js";
|
|
12
|
+
import { u as et } from "./use-form-layout-loading.D3lALhtC.js";
|
|
12
13
|
import "./index.Cl4_42j5.js";
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { B as
|
|
16
|
-
import { d as
|
|
17
|
-
import { u as
|
|
18
|
-
import { s as Q, c as ve, i as q, d as Ze, e as ge, f as et, g as ye, h as tt, j as at, a as N, u as nt } from "./calendar.BouORZfb.js";
|
|
14
|
+
import { B as tt } from "./input-field.DgDFJbg7.js";
|
|
15
|
+
import { B as at } from "./dropdown.hc9ZuuTt.js";
|
|
16
|
+
import { B as nt } from "./segmented-control.DL0W7lJ_.js";
|
|
17
|
+
import { d as te } from "./debounce.DUTu11PS.js";
|
|
18
|
+
import { u as rt } from "./use-has-slot.C9lQZ6nz.js";
|
|
19
19
|
import { e as U } from "./index.DPafeRJa.js";
|
|
20
|
-
import { e as
|
|
21
|
-
import { n as
|
|
22
|
-
import { B as
|
|
23
|
-
import { F as
|
|
24
|
-
import { B as
|
|
20
|
+
import { e as Re } from "./index.CrhTVr5J.js";
|
|
21
|
+
import { n as Ae } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
22
|
+
import { B as st } from "./directive.O3yEdalv.js";
|
|
23
|
+
import { F as ot, E as lt } from "./error-message.Da-p1QIA.js";
|
|
24
|
+
import { B as it, c as ut } from "./button-actions.BU173IFE.js";
|
|
25
25
|
import "../assets/date-range-picker.css";
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
var n =
|
|
26
|
+
function Ie(t, e) {
|
|
27
|
+
K(2, arguments);
|
|
28
|
+
var n = j(t), i = j(e);
|
|
29
29
|
return n.getTime() === i.getTime();
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
var e =
|
|
31
|
+
function be(t) {
|
|
32
|
+
K(1, arguments);
|
|
33
|
+
var e = j(t);
|
|
34
34
|
return e.setMilliseconds(0), e;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
var n =
|
|
36
|
+
function ke(t, e) {
|
|
37
|
+
K(2, arguments);
|
|
38
|
+
var n = be(t), i = be(e);
|
|
39
39
|
return n.getTime() === i.getTime();
|
|
40
40
|
}
|
|
41
41
|
function dt(t, e) {
|
|
42
|
-
|
|
43
|
-
var n =
|
|
42
|
+
K(2, arguments);
|
|
43
|
+
var n = j(t), i = de(e);
|
|
44
44
|
return n.setHours(i), n;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
var n =
|
|
46
|
+
function ct(t, e) {
|
|
47
|
+
K(2, arguments);
|
|
48
|
+
var n = j(t), i = de(e);
|
|
49
49
|
return n.setMinutes(i), n;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
var n =
|
|
51
|
+
function Dt(t, e) {
|
|
52
|
+
K(2, arguments);
|
|
53
|
+
var n = j(t), i = de(e);
|
|
54
54
|
return n.setSeconds(i), n;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
function re(t) {
|
|
57
|
+
if (t == null)
|
|
58
|
+
return q(/* @__PURE__ */ new Date());
|
|
59
|
+
const [e, n, i] = t.split("-").map((u) => parseInt(u, 10));
|
|
60
|
+
return new Date(e, n - 1, i);
|
|
61
|
+
}
|
|
62
|
+
const mt = ({
|
|
57
63
|
firstDayOfWeek: t,
|
|
58
64
|
min: e,
|
|
59
65
|
max: n
|
|
60
|
-
}) => ({ getGranularCalendarLimits: (
|
|
61
|
-
let m =
|
|
62
|
-
if ((
|
|
63
|
-
if (
|
|
64
|
-
m =
|
|
66
|
+
}) => ({ getGranularCalendarLimits: (u) => {
|
|
67
|
+
let m = q(e), r = U(n);
|
|
68
|
+
if ((u == null ? void 0 : u.type) === "weekly") {
|
|
69
|
+
if (u.earliest)
|
|
70
|
+
m = q(u.earliest);
|
|
65
71
|
else {
|
|
66
|
-
const
|
|
67
|
-
|
|
72
|
+
const d = ge(m, { weekStartsOn: t });
|
|
73
|
+
H(m, d) || (m = q(Ke(ye(m, { weekStartsOn: t }), 1)));
|
|
68
74
|
}
|
|
69
|
-
if (
|
|
70
|
-
r = U(
|
|
75
|
+
if (u.latest)
|
|
76
|
+
r = U(u.latest);
|
|
71
77
|
else {
|
|
72
|
-
const
|
|
73
|
-
|
|
78
|
+
const d = ye(r, { weekStartsOn: t });
|
|
79
|
+
H(r, d) || (r = U(ze(ge(r, { weekStartsOn: t }), 1)));
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
|
-
if ((
|
|
77
|
-
if (
|
|
78
|
-
m =
|
|
82
|
+
if ((u == null ? void 0 : u.type) === "monthly") {
|
|
83
|
+
if (u.earliest)
|
|
84
|
+
m = q(u.earliest);
|
|
79
85
|
else {
|
|
80
|
-
const
|
|
81
|
-
|
|
86
|
+
const d = Te(m);
|
|
87
|
+
H(m, d) || (m = Te(Je(m, 1)));
|
|
82
88
|
}
|
|
83
|
-
if (
|
|
84
|
-
r = U(
|
|
89
|
+
if (u.latest)
|
|
90
|
+
r = U(u.latest);
|
|
85
91
|
else {
|
|
86
|
-
const
|
|
87
|
-
|
|
92
|
+
const d = Re(r);
|
|
93
|
+
H(r, d) || (r = Re(Qe(r, 1)));
|
|
88
94
|
}
|
|
89
95
|
}
|
|
90
96
|
return { min: m, max: r };
|
|
91
|
-
} }),
|
|
92
|
-
const t =
|
|
97
|
+
} }), ft = () => {
|
|
98
|
+
const t = ne({
|
|
93
99
|
daily: null,
|
|
94
100
|
weekly: null,
|
|
95
101
|
monthly: null
|
|
96
102
|
});
|
|
97
103
|
return {
|
|
98
104
|
savedRanges: t,
|
|
99
|
-
saveRange: (i,
|
|
100
|
-
t[i] =
|
|
105
|
+
saveRange: (i, u) => {
|
|
106
|
+
t[i] = u;
|
|
101
107
|
},
|
|
102
108
|
resetSavedRanges: () => {
|
|
103
109
|
t.daily = null, t.weekly = null, t.monthly = null;
|
|
@@ -105,18 +111,18 @@ const Dt = ({
|
|
|
105
111
|
};
|
|
106
112
|
};
|
|
107
113
|
var p = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(p || {});
|
|
108
|
-
const
|
|
109
|
-
const { selectionStart: e } = t.target, n =
|
|
114
|
+
const pt = /[\d]/, vt = /^\d{2}$/, gt = /^\d{2}:\d{2}$/, yt = (t) => {
|
|
115
|
+
const { selectionStart: e } = t.target, n = pt.test(t.key) || t.key === "Backspace", i = [1, 2, 4, 5].includes(e) && t.key === ":";
|
|
110
116
|
!n && !i && t.preventDefault();
|
|
111
|
-
},
|
|
117
|
+
}, Se = (t) => {
|
|
112
118
|
if (!t)
|
|
113
119
|
return t;
|
|
114
120
|
let e = t;
|
|
115
121
|
if (e.length === 1 && parseInt(t, 10) > 2)
|
|
116
122
|
return `0${e}:`;
|
|
117
123
|
const [n, i] = e.slice(-2);
|
|
118
|
-
return [2, 5].includes(e.length) && i === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (
|
|
119
|
-
},
|
|
124
|
+
return [2, 5].includes(e.length) && i === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (vt.test(e) || gt.test(e)) && (e += ":"), e;
|
|
125
|
+
}, Tt = {
|
|
120
126
|
"en-US": {
|
|
121
127
|
customRange: "Custom range",
|
|
122
128
|
daily: "Daily",
|
|
@@ -130,14 +136,6 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
|
|
|
130
136
|
timeTo: "Time to",
|
|
131
137
|
weekly: "Weekly"
|
|
132
138
|
},
|
|
133
|
-
"pt-BR": {
|
|
134
|
-
customRange: "Selecione um intervalo personalizado",
|
|
135
|
-
daily: "Diário",
|
|
136
|
-
lastMonth: "Último mês",
|
|
137
|
-
lastSevenDays: "Últimos 7 dias",
|
|
138
|
-
monthly: "Mensal",
|
|
139
|
-
weekly: "Semanal"
|
|
140
|
-
},
|
|
141
139
|
"ja-JP": {
|
|
142
140
|
customRange: "カスタム範囲を選択",
|
|
143
141
|
daily: "毎日",
|
|
@@ -145,15 +143,23 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
|
|
|
145
143
|
lastSevenDays: "過去7日間",
|
|
146
144
|
monthly: "毎月",
|
|
147
145
|
weekly: "毎週"
|
|
146
|
+
},
|
|
147
|
+
"pt-BR": {
|
|
148
|
+
customRange: "Selecione um intervalo personalizado",
|
|
149
|
+
daily: "Diário",
|
|
150
|
+
lastMonth: "Último mês",
|
|
151
|
+
lastSevenDays: "Últimos 7 dias",
|
|
152
|
+
monthly: "Mensal",
|
|
153
|
+
weekly: "Semanal"
|
|
148
154
|
}
|
|
149
|
-
},
|
|
150
|
-
i18n: { messages:
|
|
155
|
+
}, Ee = 300, he = "customRange", Oe = "daily", _t = Me({
|
|
156
|
+
i18n: { messages: Tt },
|
|
151
157
|
name: "date-range-picker-calendar",
|
|
152
158
|
components: {
|
|
153
|
-
BentoDropdown:
|
|
154
|
-
BentoInputField:
|
|
155
|
-
BentoSegmentedControl:
|
|
156
|
-
BentoTypography:
|
|
159
|
+
BentoDropdown: at,
|
|
160
|
+
BentoInputField: tt,
|
|
161
|
+
BentoSegmentedControl: nt,
|
|
162
|
+
BentoTypography: we,
|
|
157
163
|
Calendar: N
|
|
158
164
|
},
|
|
159
165
|
props: {
|
|
@@ -228,223 +234,221 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
|
|
|
228
234
|
p.START_DATE_SELECTED
|
|
229
235
|
],
|
|
230
236
|
setup(t, { emit: e, slots: n }) {
|
|
231
|
-
var
|
|
232
|
-
const { locale: i, t:
|
|
233
|
-
startDate: (
|
|
234
|
-
endDate: (
|
|
237
|
+
var me, fe, pe;
|
|
238
|
+
const { locale: i, t: u } = ue(), m = ie(), r = ne({
|
|
239
|
+
startDate: (me = t.value) == null ? void 0 : me.startDate,
|
|
240
|
+
endDate: (fe = t.value) == null ? void 0 : fe.endDate,
|
|
235
241
|
...t.granularities ? {
|
|
236
|
-
granularity: ((
|
|
242
|
+
granularity: ((pe = t.value) == null ? void 0 : pe.granularity) || Oe
|
|
237
243
|
} : {}
|
|
238
|
-
}),
|
|
244
|
+
}), d = T(
|
|
239
245
|
() => {
|
|
240
246
|
var a, s;
|
|
241
|
-
return ((s = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data:
|
|
247
|
+
return ((s = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data: l }) => t.allowTimeInput ? ke(l.startDate, r.startDate) && ke(l.endDate, r.endDate) : H(l.startDate, r.startDate) && H(l.endDate, r.endDate))) == null ? void 0 : s.value) ?? he;
|
|
242
248
|
}
|
|
243
|
-
),
|
|
249
|
+
), O = T(() => ({
|
|
244
250
|
"b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
|
|
245
|
-
})),
|
|
246
|
-
{ label:
|
|
251
|
+
})), z = T(() => [
|
|
252
|
+
{ label: u("customRange"), value: he },
|
|
247
253
|
...t.quickSelectRanges ? t.quickSelectRanges : []
|
|
248
|
-
]), P =
|
|
254
|
+
]), P = T(
|
|
249
255
|
() => {
|
|
250
256
|
var a;
|
|
251
257
|
return ((a = t.granularities) == null ? void 0 : a.find(({ type: s }) => s === r.granularity)) || null;
|
|
252
258
|
}
|
|
253
|
-
), g =
|
|
259
|
+
), g = T(
|
|
254
260
|
() => {
|
|
255
261
|
var a;
|
|
256
|
-
return ((a = t.granularities) == null ? void 0 : a.map(({ type: s, disabled:
|
|
257
|
-
label:
|
|
262
|
+
return ((a = t.granularities) == null ? void 0 : a.map(({ type: s, disabled: l }) => ({
|
|
263
|
+
label: u(s),
|
|
258
264
|
value: s,
|
|
259
|
-
disabled:
|
|
265
|
+
disabled: l
|
|
260
266
|
}))) ?? [];
|
|
261
267
|
}
|
|
262
|
-
), { getGranularCalendarLimits: L } =
|
|
263
|
-
() => t.granularities ? L(P.value) : { min:
|
|
268
|
+
), { getGranularCalendarLimits: L } = mt(t), D = T(
|
|
269
|
+
() => t.granularities ? L(P.value) : { min: q(t.min), max: U(t.max) }
|
|
264
270
|
), {
|
|
265
271
|
adjustDateForMonthly: V,
|
|
266
|
-
adjustDateForWeekly:
|
|
272
|
+
adjustDateForWeekly: I,
|
|
267
273
|
adjustStartDateInputForWeekly: B,
|
|
268
|
-
adjustEndDateInputForWeekly:
|
|
274
|
+
adjustEndDateInputForWeekly: M,
|
|
269
275
|
adjustStartDateInputForMonthly: v,
|
|
270
|
-
adjustEndDateInputForMonthly:
|
|
271
|
-
} =
|
|
276
|
+
adjustEndDateInputForMonthly: h
|
|
277
|
+
} = Xe(t.firstDayOfWeek), { savedRanges: y, saveRange: Y, resetSavedRanges: J } = ft(), _ = (a) => a ? Z(a, R.NUMERIC_DATE_YEAR_FIRST, {
|
|
272
278
|
locale: m[i.value.substring(0, 2)] || m.enUS
|
|
273
|
-
}) : "", k = (a) => a ?
|
|
279
|
+
}) : "", k = (a) => a ? Z(a, R.HOUR_MINUTE_SECONDS, {
|
|
274
280
|
locale: m[i.value.substring(0, 2)] || m.enUS
|
|
275
|
-
}) : "", S =
|
|
281
|
+
}) : "", S = E(!1), A = E(!1), x = E(!1), F = E(!1), o = ne({
|
|
276
282
|
startDate: t.dateFormData.startDate,
|
|
277
283
|
endDate: t.dateFormData.endDate,
|
|
278
284
|
startTime: t.dateFormData.startTime,
|
|
279
285
|
endTime: t.dateFormData.endTime
|
|
280
|
-
}),
|
|
281
|
-
if (!s || !
|
|
286
|
+
}), ee = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), C = (a, s) => {
|
|
287
|
+
if (!s || !ee(s))
|
|
282
288
|
return a;
|
|
283
|
-
let
|
|
284
|
-
const [c,
|
|
285
|
-
return
|
|
286
|
-
},
|
|
287
|
-
r.startDate =
|
|
289
|
+
let l = new Date(a);
|
|
290
|
+
const [c, Q, Ge] = s.split(":");
|
|
291
|
+
return l = dt(l, parseInt(c, 10)), l = ct(l, parseInt(Q, 10)), l = Dt(l, parseInt(Ge, 10)), l;
|
|
292
|
+
}, ce = (a) => {
|
|
293
|
+
r.startDate = C(a.startDate, o.startTime), r.endDate = C(a.endDate, o.endTime), t.granularities && J(), e(p.INPUT, {
|
|
288
294
|
...r,
|
|
289
|
-
range:
|
|
295
|
+
range: d.value
|
|
290
296
|
});
|
|
291
297
|
}, $ = (a) => {
|
|
292
298
|
const s = (c) => t.min && c <= t.min || t.max && c >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(c) : !0;
|
|
293
299
|
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && s(new Date(a));
|
|
294
300
|
};
|
|
295
|
-
|
|
301
|
+
Ce(() => {
|
|
296
302
|
t.dateFormData.startDate && !$(t.dateFormData.startDate) ? S.value = !0 : (S.value = !1, x.value = !1), t.dateFormData.endDate && !$(t.dateFormData.endDate) ? A.value = !0 : (A.value = !1, F.value = !1);
|
|
297
303
|
});
|
|
298
|
-
const
|
|
304
|
+
const De = (a) => {
|
|
299
305
|
var s;
|
|
300
|
-
|
|
306
|
+
o.startDate = _(a), o.startTime ? x.value && (o.startTime = (s = t.dateFormData) == null ? void 0 : s.startTime) : o.startTime = k(a), S.value = !1, x.value = !1, e(p.START_DATE_SELECTED, a);
|
|
301
307
|
}, f = (a) => {
|
|
302
308
|
var s;
|
|
303
|
-
|
|
304
|
-
},
|
|
309
|
+
o.endDate = _(a), o.endTime ? F.value && (o.endTime = (s = t.dateFormData) == null ? void 0 : s.endTime) : o.endTime = k(U(a)), A.value = !1, F.value = !1;
|
|
310
|
+
}, b = (a) => {
|
|
305
311
|
const s = t.value[a];
|
|
306
312
|
if (s)
|
|
307
313
|
return s;
|
|
308
314
|
if (t.dateFormData[a] && $(t.dateFormData[a]))
|
|
309
315
|
return new Date(t.dateFormData[a]);
|
|
310
|
-
}, G =
|
|
316
|
+
}, G = te((a) => {
|
|
311
317
|
var s;
|
|
312
318
|
if ($(a)) {
|
|
313
|
-
let
|
|
319
|
+
let l = a;
|
|
314
320
|
switch (S.value = !1, (s = P.value) == null ? void 0 : s.type) {
|
|
315
321
|
case "weekly":
|
|
316
|
-
|
|
322
|
+
l = B(
|
|
317
323
|
a,
|
|
318
|
-
|
|
324
|
+
_,
|
|
319
325
|
D.value.min,
|
|
320
326
|
D.value.max
|
|
321
|
-
),
|
|
327
|
+
), o.startDate = l;
|
|
322
328
|
break;
|
|
323
329
|
case "monthly":
|
|
324
|
-
|
|
330
|
+
l = v(
|
|
325
331
|
a,
|
|
326
|
-
|
|
332
|
+
_,
|
|
327
333
|
D.value.min,
|
|
328
334
|
D.value.max
|
|
329
|
-
),
|
|
335
|
+
), o.startDate = l;
|
|
330
336
|
break;
|
|
331
337
|
}
|
|
332
|
-
|
|
333
|
-
|
|
338
|
+
const c = re(l);
|
|
339
|
+
r.startDate = C(c, o.startTime);
|
|
340
|
+
const Q = b("endDate");
|
|
334
341
|
e(p.FORM_DATE, {
|
|
335
|
-
startDate:
|
|
336
|
-
endDate:
|
|
342
|
+
startDate: c,
|
|
343
|
+
endDate: Q
|
|
337
344
|
}), e(p.INPUT, {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
range: u.value
|
|
345
|
+
...r,
|
|
346
|
+
range: d.value
|
|
341
347
|
});
|
|
342
348
|
} else
|
|
343
|
-
S.value = !0, e(p.ERROR, { ...
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
},
|
|
349
|
+
S.value = !0, e(p.ERROR, { ...o });
|
|
350
|
+
}, Ee), se = (a) => {
|
|
351
|
+
o.startDate = _e(a), G(o.startDate);
|
|
352
|
+
}, xe = te((a) => {
|
|
347
353
|
var s;
|
|
348
354
|
if ($(a)) {
|
|
349
|
-
let
|
|
355
|
+
let l = a;
|
|
350
356
|
switch (A.value = !1, (s = P.value) == null ? void 0 : s.type) {
|
|
351
357
|
case "weekly":
|
|
352
|
-
|
|
358
|
+
l = M(
|
|
353
359
|
a,
|
|
354
|
-
|
|
360
|
+
_,
|
|
355
361
|
D.value.min,
|
|
356
362
|
D.value.max
|
|
357
|
-
),
|
|
363
|
+
), o.endDate = l;
|
|
358
364
|
break;
|
|
359
365
|
case "monthly":
|
|
360
|
-
|
|
366
|
+
l = h(
|
|
361
367
|
a,
|
|
362
|
-
|
|
368
|
+
_,
|
|
363
369
|
D.value.min,
|
|
364
370
|
D.value.max
|
|
365
|
-
),
|
|
371
|
+
), o.endDate = l;
|
|
366
372
|
break;
|
|
367
373
|
}
|
|
368
|
-
|
|
369
|
-
|
|
374
|
+
const c = re(l);
|
|
375
|
+
r.endDate = C(c, o.endTime);
|
|
376
|
+
const Q = b("startDate");
|
|
370
377
|
e(p.FORM_DATE, {
|
|
371
|
-
startDate:
|
|
372
|
-
endDate:
|
|
378
|
+
startDate: Q,
|
|
379
|
+
endDate: c
|
|
373
380
|
}), e(p.INPUT, {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
range: u.value
|
|
381
|
+
...r,
|
|
382
|
+
range: d.value
|
|
377
383
|
});
|
|
378
384
|
} else
|
|
379
|
-
A.value = !0, e(p.ERROR, { ...
|
|
380
|
-
},
|
|
381
|
-
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
},
|
|
385
|
-
if (
|
|
386
|
-
x.value = !1, r.startDate =
|
|
387
|
-
const s =
|
|
385
|
+
A.value = !0, e(p.ERROR, { ...o });
|
|
386
|
+
}, Ee), Fe = (a) => {
|
|
387
|
+
o.endDate = _e(a), xe(o.endDate);
|
|
388
|
+
}, Ue = (a) => {
|
|
389
|
+
Ze(a);
|
|
390
|
+
}, Pe = te((a) => {
|
|
391
|
+
if (ee(a)) {
|
|
392
|
+
x.value = !1, r.startDate = C(r.startDate, a);
|
|
393
|
+
const s = b("endDate");
|
|
388
394
|
e(p.FORM_DATE, {
|
|
389
395
|
startDate: new Date(r.startDate),
|
|
390
|
-
endDate:
|
|
396
|
+
endDate: s,
|
|
391
397
|
startTime: a,
|
|
392
398
|
endTime: t.dateFormData.endTime
|
|
393
399
|
}), e(p.INPUT, {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
range: u.value
|
|
400
|
+
...r,
|
|
401
|
+
range: d.value
|
|
397
402
|
});
|
|
398
403
|
} else
|
|
399
|
-
x.value = !0, e(p.ERROR, { ...
|
|
400
|
-
}),
|
|
401
|
-
if (
|
|
402
|
-
F.value = !1, r.endDate =
|
|
403
|
-
const s =
|
|
404
|
-
e(p.FORM_DATE, {
|
|
405
|
-
startDate:
|
|
404
|
+
x.value = !0, e(p.ERROR, { ...o });
|
|
405
|
+
}), Be = te((a) => {
|
|
406
|
+
if (ee(a)) {
|
|
407
|
+
F.value = !1, r.endDate = C(r.endDate, a);
|
|
408
|
+
const s = b("startDate");
|
|
409
|
+
r.startDate = C(new Date(s), t.dateFormData.startTime), e(p.FORM_DATE, {
|
|
410
|
+
startDate: C(new Date(s), t.dateFormData.startTime),
|
|
406
411
|
endDate: new Date(r.endDate),
|
|
407
412
|
startTime: t.dateFormData.startTime,
|
|
408
413
|
endTime: a
|
|
409
414
|
}), e(p.INPUT, {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
range: u.value
|
|
415
|
+
...r,
|
|
416
|
+
range: d.value
|
|
413
417
|
});
|
|
414
418
|
} else
|
|
415
|
-
F.value = !0, e(p.ERROR, { ...
|
|
416
|
-
}),
|
|
417
|
-
|
|
418
|
-
}, Be = (a) => {
|
|
419
|
-
l.endTime = Ie(a), Ue(l.endTime);
|
|
420
|
-
}, Ne = (a) => {
|
|
421
|
-
gt(a);
|
|
422
|
-
}, W = (a, s, o) => {
|
|
423
|
-
r.startDate = a, r.endDate = s, o && (r.granularity = o);
|
|
419
|
+
F.value = !0, e(p.ERROR, { ...o });
|
|
420
|
+
}), Ne = (a) => {
|
|
421
|
+
o.startTime = Se(a), Pe(o.startTime);
|
|
424
422
|
}, Le = (a) => {
|
|
425
|
-
|
|
426
|
-
|
|
423
|
+
o.endTime = Se(a), Be(o.endTime);
|
|
424
|
+
}, Ve = (a) => {
|
|
425
|
+
yt(a);
|
|
426
|
+
}, W = (a, s, l) => {
|
|
427
|
+
r.startDate = a, r.endDate = s, l && (r.granularity = l);
|
|
428
|
+
}, Ye = (a) => {
|
|
429
|
+
var l;
|
|
430
|
+
const s = (l = t.quickSelectRanges) == null ? void 0 : l.find(({ value: c }) => c === a);
|
|
427
431
|
if (s) {
|
|
428
|
-
|
|
432
|
+
J();
|
|
429
433
|
const c = s.data;
|
|
430
|
-
|
|
434
|
+
o.startDate = _(c.startDate), o.endDate = _(c.endDate), W(c.startDate, c.endDate), t.granularities && (r.granularity = c.granularity || Oe), o.startTime || (o.startTime = k(U(c.startDate))), o.endTime || (o.endTime = k(U(c.endDate))), e(p.CUSTOM_RANGE, { ...s.data, range: s.value });
|
|
431
435
|
}
|
|
432
|
-
},
|
|
436
|
+
}, $e = (a) => {
|
|
433
437
|
const s = r.granularity;
|
|
434
|
-
if (r.granularity = a, s && Y(s, structuredClone(
|
|
438
|
+
if (r.granularity = a, s && Y(s, structuredClone(le(r))), r.startDate && r.endDate) {
|
|
435
439
|
switch (a) {
|
|
436
440
|
case "monthly": {
|
|
437
441
|
if (y.monthly) {
|
|
438
442
|
W(y.monthly.startDate, y.monthly.endDate, a);
|
|
439
443
|
break;
|
|
440
444
|
}
|
|
441
|
-
const { startDate:
|
|
445
|
+
const { startDate: l, endDate: c } = V(
|
|
442
446
|
r.startDate,
|
|
443
447
|
r.endDate,
|
|
444
448
|
D.value.min,
|
|
445
449
|
D.value.max
|
|
446
450
|
);
|
|
447
|
-
W(
|
|
451
|
+
W(l, c, a);
|
|
448
452
|
break;
|
|
449
453
|
}
|
|
450
454
|
case "weekly": {
|
|
@@ -452,58 +456,58 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
|
|
|
452
456
|
W(y.weekly.startDate, y.weekly.endDate, a);
|
|
453
457
|
break;
|
|
454
458
|
}
|
|
455
|
-
const { startDate:
|
|
459
|
+
const { startDate: l, endDate: c } = I(
|
|
456
460
|
r.startDate,
|
|
457
461
|
r.endDate,
|
|
458
462
|
D.value.min,
|
|
459
463
|
D.value.max
|
|
460
464
|
);
|
|
461
|
-
W(
|
|
465
|
+
W(l, c, a);
|
|
462
466
|
break;
|
|
463
467
|
}
|
|
464
468
|
case "daily":
|
|
465
469
|
y.daily && W(y.daily.startDate, y.daily.endDate, a);
|
|
466
470
|
break;
|
|
467
471
|
}
|
|
468
|
-
|
|
472
|
+
o.startDate = _(r.startDate), o.endDate = _(r.endDate), e(p.INPUT, {
|
|
469
473
|
...r,
|
|
470
|
-
range:
|
|
474
|
+
range: d.value
|
|
471
475
|
});
|
|
472
476
|
}
|
|
473
477
|
};
|
|
474
478
|
return {
|
|
475
479
|
// Values
|
|
476
480
|
internalRangeDate: r,
|
|
477
|
-
dateTextInput:
|
|
481
|
+
dateTextInput: o,
|
|
478
482
|
endDateError: A,
|
|
479
483
|
endTimeError: F,
|
|
480
484
|
granularityItems: g,
|
|
481
485
|
selectedGranularity: P,
|
|
482
486
|
computedMinMax: D,
|
|
483
|
-
selectedRangeSelectorValue:
|
|
487
|
+
selectedRangeSelectorValue: d,
|
|
484
488
|
startDateError: S,
|
|
485
489
|
startTimeError: x,
|
|
486
|
-
quickSelectRangeDefaultItems:
|
|
487
|
-
formInputWrapperConditionalClasses:
|
|
490
|
+
quickSelectRangeDefaultItems: z,
|
|
491
|
+
formInputWrapperConditionalClasses: O,
|
|
488
492
|
// Methods
|
|
489
|
-
hasSlot:
|
|
490
|
-
t:
|
|
493
|
+
hasSlot: rt(n),
|
|
494
|
+
t: u,
|
|
491
495
|
// Events
|
|
492
|
-
onDateInput:
|
|
493
|
-
onDateInputKeyDown:
|
|
494
|
-
onEndDateInput:
|
|
496
|
+
onDateInput: ce,
|
|
497
|
+
onDateInputKeyDown: Ue,
|
|
498
|
+
onEndDateInput: Fe,
|
|
495
499
|
onEndDateSelected: f,
|
|
496
|
-
onEndTimeInput:
|
|
497
|
-
onGranularityInput:
|
|
498
|
-
onRangeSelectorInput:
|
|
499
|
-
onStartDateInput:
|
|
500
|
-
onStartDateSelected:
|
|
501
|
-
onStartTimeInput:
|
|
502
|
-
onTimeInputKeyDown:
|
|
500
|
+
onEndTimeInput: Le,
|
|
501
|
+
onGranularityInput: $e,
|
|
502
|
+
onRangeSelectorInput: Ye,
|
|
503
|
+
onStartDateInput: se,
|
|
504
|
+
onStartDateSelected: De,
|
|
505
|
+
onStartTimeInput: Ne,
|
|
506
|
+
onTimeInputKeyDown: Ve
|
|
503
507
|
};
|
|
504
508
|
}
|
|
505
509
|
});
|
|
506
|
-
var
|
|
510
|
+
var Rt = function() {
|
|
507
511
|
var e = this, n = e._self._c;
|
|
508
512
|
return e._self._setupProxy, n("div", { staticClass: "b-date-range-picker-calendar" }, [n("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [n("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.quickSelectRanges ? n("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? n("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateFrom"), value: e.dateTextInput.startDate, error: e.startDateError }, on: { input: e.onStartDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
509
513
|
return [e._v("YYYY-MM-DD")];
|
|
@@ -514,59 +518,59 @@ var Tt = function() {
|
|
|
514
518
|
}, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
515
519
|
return [e._v("HH:MM:SS")];
|
|
516
520
|
}, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.value, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.computedMinMax.min, max: e.computedMinMax.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, granularity: e.selectedGranularity, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
|
|
517
|
-
},
|
|
521
|
+
}, It = [], bt = /* @__PURE__ */ Ae(
|
|
518
522
|
_t,
|
|
519
|
-
Tt,
|
|
520
523
|
Rt,
|
|
524
|
+
It,
|
|
521
525
|
!1,
|
|
522
526
|
null,
|
|
523
|
-
"
|
|
527
|
+
"8869da62"
|
|
524
528
|
);
|
|
525
|
-
const
|
|
529
|
+
const w = bt.exports, kt = ({
|
|
526
530
|
datePickerValue: t,
|
|
527
531
|
isDateIncorrect: e,
|
|
528
532
|
quickSelectRanges: n
|
|
529
533
|
}) => {
|
|
530
534
|
var g, L, D, V;
|
|
531
|
-
const { locale: i, t:
|
|
535
|
+
const { locale: i, t: u } = ue(), m = ie(), r = (I) => !!I && !isNaN(I.getTime()), d = (I, B) => r(I) ? Z(I, B, {
|
|
532
536
|
locale: m[i.value.substring(0, 2)] || m.enUS
|
|
533
|
-
}) : void 0,
|
|
534
|
-
startDate:
|
|
535
|
-
endDate:
|
|
536
|
-
startTime:
|
|
537
|
-
endTime:
|
|
537
|
+
}) : void 0, O = ne({
|
|
538
|
+
startDate: d((g = t.value) == null ? void 0 : g.startDate, R.NUMERIC_DATE_YEAR_FIRST),
|
|
539
|
+
endDate: d((L = t.value) == null ? void 0 : L.endDate, R.NUMERIC_DATE_YEAR_FIRST),
|
|
540
|
+
startTime: d((D = t.value) == null ? void 0 : D.startDate, R.HOUR_MINUTE_SECONDS),
|
|
541
|
+
endTime: d((V = t.value) == null ? void 0 : V.endDate, R.HOUR_MINUTE_SECONDS)
|
|
538
542
|
});
|
|
539
543
|
return {
|
|
540
544
|
// Values
|
|
541
|
-
dateDisplayValue:
|
|
542
|
-
var
|
|
545
|
+
dateDisplayValue: T(() => {
|
|
546
|
+
var M;
|
|
543
547
|
if (e.value)
|
|
544
|
-
return `${
|
|
548
|
+
return `${O.startDate || ""} - ${O.endDate || ""}`;
|
|
545
549
|
if (!t.value || !t.value.startDate && !t.value.endDate)
|
|
546
|
-
return
|
|
547
|
-
if ((
|
|
550
|
+
return u("selectDateRange");
|
|
551
|
+
if ((M = n.value) != null && M.length) {
|
|
548
552
|
const v = n.value.find(
|
|
549
|
-
({ data:
|
|
553
|
+
({ data: h }) => {
|
|
550
554
|
var y, Y;
|
|
551
|
-
return
|
|
555
|
+
return Ie(h == null ? void 0 : h.startDate, (y = t.value) == null ? void 0 : y.startDate) && Ie(h == null ? void 0 : h.endDate, (Y = t.value) == null ? void 0 : Y.endDate);
|
|
552
556
|
}
|
|
553
557
|
);
|
|
554
558
|
if (v)
|
|
555
559
|
return v.label;
|
|
556
560
|
}
|
|
557
|
-
const { startDate:
|
|
558
|
-
return `${
|
|
559
|
-
|
|
561
|
+
const { startDate: I, endDate: B } = O;
|
|
562
|
+
return `${d(re(I), R.FULL_DATE_MONTH_FIRST)} - ${d(
|
|
563
|
+
re(B),
|
|
560
564
|
R.FULL_DATE_MONTH_FIRST
|
|
561
565
|
)}`;
|
|
562
566
|
}),
|
|
563
|
-
textInputDisplayValue:
|
|
567
|
+
textInputDisplayValue: O,
|
|
564
568
|
// Methods
|
|
565
569
|
formatTextInputDisplayValue: () => ""
|
|
566
570
|
};
|
|
567
571
|
};
|
|
568
|
-
var
|
|
569
|
-
const
|
|
572
|
+
var ae = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(ae || {});
|
|
573
|
+
const St = {
|
|
570
574
|
"en-US": {
|
|
571
575
|
apply: "Apply",
|
|
572
576
|
cancel: "Cancel",
|
|
@@ -576,30 +580,30 @@ const kt = {
|
|
|
576
580
|
selectDateRange: "Select a date range",
|
|
577
581
|
selectedDateIsNotAvailable: "Selected date is not available"
|
|
578
582
|
},
|
|
579
|
-
"pt-BR": {
|
|
580
|
-
apply: "Aplicar",
|
|
581
|
-
cancel: "Cancelar",
|
|
582
|
-
selectDate: "Selecione uma data"
|
|
583
|
-
},
|
|
584
583
|
"ja-JP": {
|
|
585
584
|
apply: "適用",
|
|
586
585
|
cancel: "キャンセル",
|
|
587
586
|
selectDate: "日付を選択"
|
|
587
|
+
},
|
|
588
|
+
"pt-BR": {
|
|
589
|
+
apply: "Aplicar",
|
|
590
|
+
cancel: "Cancelar",
|
|
591
|
+
selectDate: "Selecione uma data"
|
|
588
592
|
}
|
|
589
|
-
},
|
|
590
|
-
i18n: { messages:
|
|
593
|
+
}, Et = Me({
|
|
594
|
+
i18n: { messages: St },
|
|
591
595
|
name: "bento-date-range-picker",
|
|
592
596
|
components: {
|
|
593
|
-
BentoButtonActions:
|
|
594
|
-
BentoDivider:
|
|
595
|
-
BentoTypography:
|
|
596
|
-
BentoPopover:
|
|
597
|
-
DateRangePickerCalendar:
|
|
598
|
-
DropdownInputDefault:
|
|
599
|
-
ErrorMessage:
|
|
600
|
-
FieldLabel:
|
|
597
|
+
BentoButtonActions: it,
|
|
598
|
+
BentoDivider: We,
|
|
599
|
+
BentoTypography: we,
|
|
600
|
+
BentoPopover: qe,
|
|
601
|
+
DateRangePickerCalendar: w,
|
|
602
|
+
DropdownInputDefault: je,
|
|
603
|
+
ErrorMessage: lt,
|
|
604
|
+
FieldLabel: ot
|
|
601
605
|
},
|
|
602
|
-
directives: { BentoClickOutsideDirective:
|
|
606
|
+
directives: { BentoClickOutsideDirective: st },
|
|
603
607
|
props: {
|
|
604
608
|
/**
|
|
605
609
|
* Allows user to enter time values in the form
|
|
@@ -620,16 +624,16 @@ const kt = {
|
|
|
620
624
|
/**
|
|
621
625
|
* Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
622
626
|
*/
|
|
623
|
-
firstDayOfWeek:
|
|
627
|
+
firstDayOfWeek: w.props.firstDayOfWeek,
|
|
624
628
|
/**
|
|
625
629
|
* A list of available granularities.
|
|
626
630
|
* If present, the date picker will display a segmented control to change granularity.
|
|
627
631
|
*/
|
|
628
|
-
granularities:
|
|
632
|
+
granularities: w.props.granularities,
|
|
629
633
|
/**
|
|
630
634
|
* Indicate if a date should be disabled or not
|
|
631
635
|
*/
|
|
632
|
-
isDateDisabled:
|
|
636
|
+
isDateDisabled: w.props.isDateDisabled,
|
|
633
637
|
/**
|
|
634
638
|
* Text that is displayed as a label above the element.
|
|
635
639
|
*/
|
|
@@ -668,23 +672,23 @@ const kt = {
|
|
|
668
672
|
/**
|
|
669
673
|
* Set a maximum number of dates to be selectable by the range.
|
|
670
674
|
*/
|
|
671
|
-
maxRange:
|
|
675
|
+
maxRange: w.props.maxRange,
|
|
672
676
|
/**
|
|
673
677
|
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
674
678
|
*/
|
|
675
|
-
min:
|
|
679
|
+
min: w.props.min,
|
|
676
680
|
/**
|
|
677
681
|
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
678
682
|
*/
|
|
679
|
-
max:
|
|
683
|
+
max: w.props.max,
|
|
680
684
|
/**
|
|
681
685
|
* Number of months rendered on pane
|
|
682
686
|
*/
|
|
683
|
-
numberOfMonths:
|
|
687
|
+
numberOfMonths: w.props.numberOfMonths,
|
|
684
688
|
/**
|
|
685
689
|
* Selected date
|
|
686
690
|
*/
|
|
687
|
-
value:
|
|
691
|
+
value: w.props.value,
|
|
688
692
|
/**
|
|
689
693
|
* Enables the date picker selection to persist until it is explicitly applied.
|
|
690
694
|
* Displays a set of buttons: Apply and Cancel.
|
|
@@ -693,50 +697,50 @@ const kt = {
|
|
|
693
697
|
*/
|
|
694
698
|
hasActions: { type: Boolean, default: !1 }
|
|
695
699
|
},
|
|
696
|
-
emits: [
|
|
700
|
+
emits: [ae.INPUT],
|
|
697
701
|
setup(t, { emit: e }) {
|
|
698
|
-
const { locale: n, t: i } =
|
|
702
|
+
const { locale: n, t: i } = ue(), u = ie(), m = X("bento-date-range-picker-container"), r = X("bento-date-range-picker-label"), d = X("bento-date-range-picker-description"), O = X("bento-date-range-picker-error"), z = X("bento-date-range-picker-date-error"), P = T(
|
|
699
703
|
() => t.label || i("dateRangePicker", { name: m })
|
|
700
|
-
), g =
|
|
701
|
-
|
|
704
|
+
), g = E(!1), L = E(null), D = E(!1), { isReadOnly: V } = et(oe(t, "readonly"));
|
|
705
|
+
ve(
|
|
702
706
|
() => t.disabled,
|
|
703
707
|
() => {
|
|
704
708
|
t.disabled && D.value && (D.value = !1);
|
|
705
709
|
}
|
|
706
710
|
);
|
|
707
|
-
const
|
|
708
|
-
"b-date-range-picker__description--error": !!t.errorMessage ||
|
|
709
|
-
})), { dateDisplayValue:
|
|
710
|
-
datePickerValue:
|
|
711
|
+
const I = T(() => t.hasActions ? !S.value && g.value : g.value), B = T(() => ({
|
|
712
|
+
"b-date-range-picker__description--error": !!t.errorMessage || I.value
|
|
713
|
+
})), { dateDisplayValue: M, textInputDisplayValue: v } = kt({
|
|
714
|
+
datePickerValue: oe(t, "value"),
|
|
711
715
|
isDateIncorrect: g,
|
|
712
|
-
quickSelectRanges:
|
|
713
|
-
}),
|
|
714
|
-
() => `${t.description ?
|
|
716
|
+
quickSelectRanges: oe(t, "quickSelectRanges")
|
|
717
|
+
}), h = T(
|
|
718
|
+
() => `${t.description ? d : ""} ${t.errorMessage ? O : ""} ${g.value ? z : ""}`.trim() || null
|
|
715
719
|
), y = () => {
|
|
716
720
|
D.value = !1;
|
|
717
721
|
}, Y = () => {
|
|
718
722
|
D.value = !0;
|
|
719
|
-
},
|
|
723
|
+
}, J = E(M.value), _ = E(
|
|
720
724
|
// textInputDisplayValue is a reactive object
|
|
721
|
-
structuredClone(
|
|
722
|
-
), k =
|
|
723
|
-
() => t.hasActions ?
|
|
724
|
-
), x =
|
|
725
|
-
() => t.hasActions ?
|
|
725
|
+
structuredClone(le(v))
|
|
726
|
+
), k = E(t.value), S = E(!0), A = T(
|
|
727
|
+
() => t.hasActions ? _.value : v
|
|
728
|
+
), x = T(
|
|
729
|
+
() => t.hasActions ? J.value : M.value
|
|
726
730
|
);
|
|
727
|
-
|
|
728
|
-
t.hasActions ||
|
|
731
|
+
Ce(() => {
|
|
732
|
+
t.hasActions || He(
|
|
729
733
|
'BentoDateRangePicker "hasActions" property',
|
|
730
734
|
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
731
735
|
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
732
736
|
"2.0.0"
|
|
733
737
|
);
|
|
734
738
|
});
|
|
735
|
-
const F =
|
|
739
|
+
const F = T(() => [
|
|
736
740
|
{
|
|
737
741
|
title: i("apply"),
|
|
738
742
|
event: () => {
|
|
739
|
-
|
|
743
|
+
J.value = M.value, _.value = structuredClone(le(v)), e(ae.INPUT, k.value), y(), S.value = !0;
|
|
740
744
|
},
|
|
741
745
|
disabled: S.value
|
|
742
746
|
},
|
|
@@ -745,17 +749,17 @@ const kt = {
|
|
|
745
749
|
event: y
|
|
746
750
|
}
|
|
747
751
|
]);
|
|
748
|
-
return
|
|
752
|
+
return ve(k, (f) => {
|
|
749
753
|
if (t.hasActions) {
|
|
750
754
|
S.value = g.value;
|
|
751
755
|
return;
|
|
752
756
|
}
|
|
753
|
-
e(
|
|
757
|
+
e(ae.INPUT, f);
|
|
754
758
|
}), {
|
|
755
759
|
// Refs
|
|
756
760
|
inputContainerRef: L,
|
|
757
761
|
// Values,
|
|
758
|
-
dateDisplayValue:
|
|
762
|
+
dateDisplayValue: M,
|
|
759
763
|
datePickerContainerId: m,
|
|
760
764
|
descriptionConditionalClasses: B,
|
|
761
765
|
displayedTextInputValue: A,
|
|
@@ -764,15 +768,15 @@ const kt = {
|
|
|
764
768
|
isDateRangePickerOpen: D,
|
|
765
769
|
isReadOnly: V,
|
|
766
770
|
labelId: r,
|
|
767
|
-
descriptionId:
|
|
768
|
-
dateErrorId:
|
|
769
|
-
errorId:
|
|
771
|
+
descriptionId: d,
|
|
772
|
+
dateErrorId: z,
|
|
773
|
+
errorId: O,
|
|
770
774
|
popoverAriaLabel: P,
|
|
771
|
-
shouldDisplayError:
|
|
772
|
-
ariaDescribedBy:
|
|
775
|
+
shouldDisplayError: I,
|
|
776
|
+
ariaDescribedBy: h,
|
|
773
777
|
textInputDisplayValue: v,
|
|
774
778
|
rangePickerButtonActions: F,
|
|
775
|
-
BentoButtonActionsLayout:
|
|
779
|
+
BentoButtonActionsLayout: ut,
|
|
776
780
|
// Events
|
|
777
781
|
closeDateRangePicker: y,
|
|
778
782
|
clearDateRangePickerValue: async () => {
|
|
@@ -781,10 +785,10 @@ const kt = {
|
|
|
781
785
|
openDateRangePicker: Y,
|
|
782
786
|
onRangeSelectorInput: (f) => {
|
|
783
787
|
if (f) {
|
|
784
|
-
const
|
|
785
|
-
locale:
|
|
788
|
+
const b = (G) => Z(G, R.NUMERIC_DATE_YEAR_FIRST, {
|
|
789
|
+
locale: u[n.value.substring(0, 2)] || u.enUS
|
|
786
790
|
});
|
|
787
|
-
v.startDate =
|
|
791
|
+
v.startDate = b(f.startDate), v.endDate = b(f.endDate), k.value = f;
|
|
788
792
|
}
|
|
789
793
|
},
|
|
790
794
|
onEnterPressedOverInput: () => {
|
|
@@ -792,13 +796,13 @@ const kt = {
|
|
|
792
796
|
},
|
|
793
797
|
onDateRangePickerInput: (f) => {
|
|
794
798
|
g.value = !1;
|
|
795
|
-
const
|
|
796
|
-
locale:
|
|
799
|
+
const b = (G, se) => G ? Z(G, se, {
|
|
800
|
+
locale: u[n.value.substring(0, 2)] || u.enUS
|
|
797
801
|
}) : void 0;
|
|
798
|
-
v.startDate =
|
|
802
|
+
v.startDate = b(
|
|
799
803
|
f.startDate,
|
|
800
804
|
R.NUMERIC_DATE_YEAR_FIRST
|
|
801
|
-
), v.endDate =
|
|
805
|
+
), v.endDate = b(f.endDate, R.NUMERIC_DATE_YEAR_FIRST), v.startTime = b(f.startDate, R.HOUR_MINUTE_SECONDS), v.endTime = b(f.endDate, R.HOUR_MINUTE_SECONDS), k.value = f;
|
|
802
806
|
},
|
|
803
807
|
onDateRangePickerError: (f) => {
|
|
804
808
|
g.value = !0, v.startDate = f.startDate, v.endDate = f.endDate, k.value = { startDate: null, endDate: null };
|
|
@@ -811,26 +815,26 @@ const kt = {
|
|
|
811
815
|
};
|
|
812
816
|
}
|
|
813
817
|
});
|
|
814
|
-
var
|
|
818
|
+
var ht = function() {
|
|
815
819
|
var e = this, n = e._self._c;
|
|
816
820
|
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n("field-label", { attrs: { id: e.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", { on: { keydown: function(i) {
|
|
817
821
|
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
|
|
818
822
|
} } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.shouldDisplayError, open: e.isDateRangePickerOpen, "display-value": e.displayedDateValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.shouldDisplayError ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.allowTimeInput, "quick-select-ranges": e.quickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, granularities: e.granularities, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, "date-form-data": e.displayedTextInputValue }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate }, scopedSlots: e._u([e.hasActions ? { key: "actions", fn: function() {
|
|
819
823
|
return [n("bento-divider"), n("div", { staticClass: "b-date-range-picker__footer" }, [n("bento-button-actions", { attrs: { actions: e.rangePickerButtonActions, layout: e.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
|
|
820
824
|
}, proxy: !0 } : null], null, !0) })], 1) : e._e()], 1);
|
|
821
|
-
},
|
|
822
|
-
St,
|
|
825
|
+
}, Ot = [], Mt = /* @__PURE__ */ Ae(
|
|
823
826
|
Et,
|
|
824
827
|
ht,
|
|
828
|
+
Ot,
|
|
825
829
|
!1,
|
|
826
830
|
null,
|
|
827
831
|
"83a361fe"
|
|
828
832
|
);
|
|
829
|
-
const
|
|
833
|
+
const ea = Mt.exports;
|
|
830
834
|
export {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
+
ea as B,
|
|
836
|
+
w as D,
|
|
837
|
+
ae as a,
|
|
838
|
+
Ie as i
|
|
835
839
|
};
|
|
836
|
-
//# sourceMappingURL=date-range-picker.
|
|
840
|
+
//# sourceMappingURL=date-range-picker.P2Q5FNB-.js.map
|