@adyen/bento-vue3 1.75.0 → 1.76.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/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.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/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/calendar.Tm7Cvpwu.js +2001 -0
- package/dist/chunks/calendar.Tm7Cvpwu.js.map +1 -0
- package/dist/chunks/{checkbox-group.8ebmaHsA.js → checkbox-group.8J29fVna.js} +2 -2
- package/dist/chunks/{checkbox-group.8ebmaHsA.js.map → checkbox-group.8J29fVna.js.map} +1 -1
- package/dist/chunks/{checkbox.BI0dqARY.js → checkbox.CfNYUty6.js} +18 -18
- package/dist/chunks/{checkbox.BI0dqARY.js.map → checkbox.CfNYUty6.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bjf1ma1L.js → code-snippet.EeIcRV20.js} +2 -2
- package/dist/chunks/{code-snippet.Bjf1ma1L.js.map → code-snippet.EeIcRV20.js.map} +1 -1
- package/dist/chunks/constructNow.CHWWeLPc.js +8 -0
- package/dist/chunks/constructNow.CHWWeLPc.js.map +1 -0
- package/dist/chunks/{dashboard-section.CVttsom5.js → dashboard-section.Cqi0PWeJ.js} +2 -2
- package/dist/chunks/{dashboard-section.CVttsom5.js.map → dashboard-section.Cqi0PWeJ.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CFt1NV_4.js → data-grid-template.D7kB3S1u.js} +2 -2
- package/dist/chunks/{data-grid-template.CFt1NV_4.js.map → data-grid-template.D7kB3S1u.js.map} +1 -1
- package/dist/chunks/{data-grid.8Neri_45.js → data-grid.DJIxBwCa.js} +19 -22
- package/dist/chunks/{data-grid.8Neri_45.js.map → data-grid.DJIxBwCa.js.map} +1 -1
- package/dist/chunks/{date-picker.DSkvT_CA.js → date-picker.CobmiKaJ.js} +16 -16
- package/dist/chunks/date-picker.CobmiKaJ.js.map +1 -0
- package/dist/chunks/date-range-picker.B6UKl1_N.js +1114 -0
- package/dist/chunks/date-range-picker.B6UKl1_N.js.map +1 -0
- package/dist/chunks/{get-date-locale.CAyOIbcp.js → differenceInMonths.C8FyCrav.js} +580 -364
- package/dist/chunks/differenceInMonths.C8FyCrav.js.map +1 -0
- package/dist/chunks/{dropdown-tag.DFeoXIgH.js → dropdown-tag.CMjilUQb.js} +2 -2
- package/dist/chunks/{dropdown-tag.DFeoXIgH.js.map → dropdown-tag.CMjilUQb.js.map} +1 -1
- package/dist/chunks/{dropdown.KStrJVoP.js → dropdown.DG_EnV8g.js} +18 -18
- package/dist/chunks/{dropdown.KStrJVoP.js.map → dropdown.DG_EnV8g.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{filter-bar.C6A0MJ8m.js → filter-bar.dmC284Po.js} +735 -709
- package/dist/chunks/filter-bar.dmC284Po.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/{index.BrH1t1iu.js → getTimezoneOffsetInMilliseconds.BW7U6PxE.js} +254 -177
- package/dist/chunks/getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map +1 -0
- package/dist/chunks/header-meta.BE6QfUNi.js +221 -0
- package/dist/chunks/header-meta.BE6QfUNi.js.map +1 -0
- package/dist/chunks/{header-with-views.f5BlTD7U.js → header-with-views.BZ16v5-m.js} +4 -4
- package/dist/chunks/{header-with-views.f5BlTD7U.js.map → header-with-views.BZ16v5-m.js.map} +1 -1
- package/dist/chunks/{header.DARVAeE9.js → header.3It50Clh.js} +2 -2
- package/dist/chunks/{header.DARVAeE9.js.map → header.3It50Clh.js.map} +1 -1
- package/dist/chunks/{input-field-password.BGyFeRu0.js → input-field-password.BVnZWBAV.js} +3 -3
- package/dist/chunks/{input-field-password.BGyFeRu0.js.map → input-field-password.BVnZWBAV.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DSvCOtqX.js → input-field-phone-number.CWhPGQ1U.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DSvCOtqX.js.map → input-field-phone-number.CWhPGQ1U.js.map} +1 -1
- package/dist/chunks/{input-field.Dm47icwU.js → input-field.A-dEZZfC.js} +2 -2
- package/dist/chunks/{input-field.Dm47icwU.js.map → input-field.A-dEZZfC.js.map} +1 -1
- package/dist/chunks/{pagination.BaBWNlIF.js → pagination.B4qBK4pM.js} +2 -2
- package/dist/chunks/{pagination.BaBWNlIF.js.map → pagination.B4qBK4pM.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BK9AivIm.js → rich-text-editor.BA6_k4Vv.js} +354 -352
- package/dist/chunks/{rich-text-editor.BK9AivIm.js.map → rich-text-editor.BA6_k4Vv.js.map} +1 -1
- package/dist/chunks/{search-bar.CbNBCQnM.js → search-bar.dZ7UCMxb.js} +3 -3
- package/dist/chunks/{search-bar.CbNBCQnM.js.map → search-bar.dZ7UCMxb.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DXsgUTqk.js → secondary-nav.CE082cQ_.js} +2 -2
- package/dist/chunks/{secondary-nav.DXsgUTqk.js.map → secondary-nav.CE082cQ_.js.map} +1 -1
- package/dist/chunks/{selection-card-group.F8alOPtl.js → selection-card-group.NnTbPQjj.js} +9 -9
- package/dist/chunks/{selection-card-group.F8alOPtl.js.map → selection-card-group.NnTbPQjj.js.map} +1 -1
- package/dist/chunks/timeline-item.DNjubXL2.js +556 -0
- package/dist/chunks/timeline-item.DNjubXL2.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.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 +2 -2
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +23 -23
- 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/internal.js +2 -2
- package/dist/pagination.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/selection-card.js +1 -1
- package/dist/styles/bento-dark.css +7 -5
- package/dist/styles/bento-light.css +7 -5
- package/dist/styles/bento.css +7 -5
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +7 -5
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +8 -23
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
- package/dist/chunks/calendar.Cqjyxc69.js +0 -2223
- package/dist/chunks/calendar.Cqjyxc69.js.map +0 -1
- package/dist/chunks/date-picker.DSkvT_CA.js.map +0 -1
- package/dist/chunks/date-range-picker.DSMt6XMF.js +0 -1117
- package/dist/chunks/date-range-picker.DSMt6XMF.js.map +0 -1
- package/dist/chunks/filter-bar.C6A0MJ8m.js.map +0 -1
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +0 -1
- package/dist/chunks/header-meta.C4iaUsfq.js +0 -236
- package/dist/chunks/header-meta.C4iaUsfq.js.map +0 -1
- package/dist/chunks/index.BrH1t1iu.js.map +0 -1
- package/dist/chunks/index.BxBB1rsx.js +0 -15
- package/dist/chunks/index.BxBB1rsx.js.map +0 -1
- package/dist/chunks/timeline-item.C8PA_w7m.js +0 -568
- package/dist/chunks/timeline-item.C8PA_w7m.js.map +0 -1
|
@@ -1,1117 +0,0 @@
|
|
|
1
|
-
import { reactive as he, defineComponent as nt, ref as F, computed as S, onMounted as rt, toRaw as Oe, resolveComponent as ve, createElementBlock as _e, openBlock as U, createElementVNode as H, createCommentVNode as q, renderSlot as Pe, createBlock as W, createVNode as z, withCtx as V, createTextVNode as oe, normalizeClass as Ce, toRef as ke, watch as Me, withDirectives as bt, unref as I, withKeys as Le, toDisplayString as Rt, createSlots as St } from "vue";
|
|
2
|
-
import { B as Et } from "./divider.DnKNNyWB.js";
|
|
3
|
-
import { h as wt, B as ht } from "./button-actions.BQ3AFQqt.js";
|
|
4
|
-
import { B as st, d as kt } from "./typography.yBEME_Gu.js";
|
|
5
|
-
import { D as Mt } from "./dropdown-default-textbox.MkU0tMf1.js";
|
|
6
|
-
import { e as L, a as Ye, g as Fe } from "./get-date-locale.CAyOIbcp.js";
|
|
7
|
-
import { g as ge } from "./generate-uid.NJ8tVoha.js";
|
|
8
|
-
import { u as Ae } from "./index.pdBj0KQU.js";
|
|
9
|
-
import { e as lt, t as fe, g as ye, i as $, h as A, j as je, k as Ot, l as Ke, m as _t, s as Qe, n as Ct, o as Ge, b as ae, u as Ft, f as ce } from "./calendar.Cqjyxc69.js";
|
|
10
|
-
import { f as He, v as At, D as k } from "./date-format.B8RU7D42.js";
|
|
11
|
-
import { r as _, t as J } from "./index.BrH1t1iu.js";
|
|
12
|
-
import { u as Ut } from "./use-form-layout-loading.D3lALhtC.js";
|
|
13
|
-
import { B as Nt } from "./directive.Cbdox5VL.js";
|
|
14
|
-
import { B as Bt } from "./input-field.Dm47icwU.js";
|
|
15
|
-
import { B as qt } from "./dropdown.KStrJVoP.js";
|
|
16
|
-
import { B as $t } from "./segmented-control.BCHGDSrf.js";
|
|
17
|
-
import { d as Se } from "./debounce.DUTu11PS.js";
|
|
18
|
-
import { u as Pt } from "./use-has-slot.B7eQSabc.js";
|
|
19
|
-
import { _ as ot } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
20
|
-
import { F as Lt, E as Ve } from "./field-label.C97CrBI_.js";
|
|
21
|
-
import { B as Yt } from "./button-actions.types.BptAXjD8.js";
|
|
22
|
-
import "../assets/date-range-picker.css";
|
|
23
|
-
function it(e, a) {
|
|
24
|
-
_(2, arguments);
|
|
25
|
-
var u = fe(a), r = u * 3;
|
|
26
|
-
return lt(e, r);
|
|
27
|
-
}
|
|
28
|
-
function We(e) {
|
|
29
|
-
_(1, arguments);
|
|
30
|
-
var a = J(e), u = Math.floor(a.getMonth() / 3) + 1;
|
|
31
|
-
return u;
|
|
32
|
-
}
|
|
33
|
-
function ze(e) {
|
|
34
|
-
return _(1, arguments), J(e).getFullYear();
|
|
35
|
-
}
|
|
36
|
-
function Ee(e, a) {
|
|
37
|
-
_(2, arguments);
|
|
38
|
-
var u = J(e), r = J(a);
|
|
39
|
-
return u.getTime() === r.getTime();
|
|
40
|
-
}
|
|
41
|
-
function jt(e, a) {
|
|
42
|
-
_(2, arguments);
|
|
43
|
-
var u = ye(e), r = ye(a);
|
|
44
|
-
return u.getTime() === r.getTime();
|
|
45
|
-
}
|
|
46
|
-
function Je(e) {
|
|
47
|
-
_(1, arguments);
|
|
48
|
-
var a = J(e);
|
|
49
|
-
return a.setMilliseconds(0), a;
|
|
50
|
-
}
|
|
51
|
-
function Xe(e, a) {
|
|
52
|
-
_(2, arguments);
|
|
53
|
-
var u = Je(e), r = Je(a);
|
|
54
|
-
return u.getTime() === r.getTime();
|
|
55
|
-
}
|
|
56
|
-
function Kt(e) {
|
|
57
|
-
return _(1, arguments), $(e, Date.now());
|
|
58
|
-
}
|
|
59
|
-
function Qt(e, a) {
|
|
60
|
-
_(2, arguments);
|
|
61
|
-
var u = J(e), r = fe(a);
|
|
62
|
-
return u.setHours(r), u;
|
|
63
|
-
}
|
|
64
|
-
function Ze(e, a) {
|
|
65
|
-
_(2, arguments);
|
|
66
|
-
var u = J(e), r = fe(a);
|
|
67
|
-
return u.setMilliseconds(r), u;
|
|
68
|
-
}
|
|
69
|
-
function Gt(e, a) {
|
|
70
|
-
_(2, arguments);
|
|
71
|
-
var u = J(e), r = fe(a);
|
|
72
|
-
return u.setMinutes(r), u;
|
|
73
|
-
}
|
|
74
|
-
function Ht(e, a) {
|
|
75
|
-
_(2, arguments);
|
|
76
|
-
var u = J(e), r = fe(a);
|
|
77
|
-
return u.setSeconds(r), u;
|
|
78
|
-
}
|
|
79
|
-
function Vt(e, a) {
|
|
80
|
-
_(2, arguments);
|
|
81
|
-
var u = fe(a);
|
|
82
|
-
return it(e, -u);
|
|
83
|
-
}
|
|
84
|
-
function ie(e) {
|
|
85
|
-
if (e == null)
|
|
86
|
-
return A(/* @__PURE__ */ new Date());
|
|
87
|
-
const [a, u, r] = e.split("-").map((m) => parseInt(m, 10));
|
|
88
|
-
return new Date(a, u - 1, r);
|
|
89
|
-
}
|
|
90
|
-
const Wt = ({
|
|
91
|
-
firstDayOfWeek: e,
|
|
92
|
-
min: a,
|
|
93
|
-
max: u
|
|
94
|
-
}) => ({ getGranularCalendarLimits: (m) => {
|
|
95
|
-
let D = A(a), c = L(u);
|
|
96
|
-
if ((m == null ? void 0 : m.type) === "weekly") {
|
|
97
|
-
if (m.earliest)
|
|
98
|
-
D = A(m.earliest);
|
|
99
|
-
else {
|
|
100
|
-
const g = je(D, { weekStartsOn: e });
|
|
101
|
-
$(D, g) || (D = A(Ot(Ke(D, { weekStartsOn: e }), 1)));
|
|
102
|
-
}
|
|
103
|
-
if (m.latest)
|
|
104
|
-
c = L(m.latest);
|
|
105
|
-
else {
|
|
106
|
-
const g = Ke(c, { weekStartsOn: e });
|
|
107
|
-
$(c, g) || (c = L(_t(je(c, { weekStartsOn: e }), 1)));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if ((m == null ? void 0 : m.type) === "monthly") {
|
|
111
|
-
if (m.earliest)
|
|
112
|
-
D = A(m.earliest);
|
|
113
|
-
else {
|
|
114
|
-
const g = Qe(D);
|
|
115
|
-
$(D, g) || (D = Qe(lt(D, 1)));
|
|
116
|
-
}
|
|
117
|
-
if (m.latest)
|
|
118
|
-
c = L(m.latest);
|
|
119
|
-
else {
|
|
120
|
-
const g = Ye(c);
|
|
121
|
-
$(c, g) || (c = Ye(Ct(c, 1)));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
if ((m == null ? void 0 : m.type) === "quarterly") {
|
|
125
|
-
if (m.earliest)
|
|
126
|
-
D = ye(m.earliest);
|
|
127
|
-
else {
|
|
128
|
-
const g = ye(D);
|
|
129
|
-
$(D, g) || (D = ye(it(D, 1)));
|
|
130
|
-
}
|
|
131
|
-
if (m.latest)
|
|
132
|
-
c = L(m.latest);
|
|
133
|
-
else {
|
|
134
|
-
const g = Ge(c);
|
|
135
|
-
$(c, g) || (c = Ge(Vt(c, 1)));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return { min: D, max: c };
|
|
139
|
-
} }), zt = () => {
|
|
140
|
-
const e = he({
|
|
141
|
-
daily: null,
|
|
142
|
-
weekly: null,
|
|
143
|
-
monthly: null,
|
|
144
|
-
quarterly: null
|
|
145
|
-
});
|
|
146
|
-
return {
|
|
147
|
-
savedRanges: e,
|
|
148
|
-
saveRange: (r, m) => {
|
|
149
|
-
e[r] = m;
|
|
150
|
-
},
|
|
151
|
-
resetSavedRanges: () => {
|
|
152
|
-
e.daily = null, e.weekly = null, e.monthly = null, e.quarterly = null;
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
var T = /* @__PURE__ */ ((e) => (e.CUSTOM_RANGE = "custom-range", e.INPUT = "input", e.ERROR = "error", e.FORM_DATE = "form-date", e.START_DATE_SELECTED = "start-date-selected", e))(T || {});
|
|
157
|
-
const Jt = /[\d]/, Xt = /^\d{2}$/, Zt = /^\d{2}:\d{2}$/, xt = (e) => {
|
|
158
|
-
const { selectionStart: a } = e.target, u = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], r = Jt.test(e.key) || u.includes(e.key), m = [1, 2, 4, 5].includes(a) && e.key === ":";
|
|
159
|
-
!r && !m && e.preventDefault();
|
|
160
|
-
}, xe = (e) => {
|
|
161
|
-
if (!e)
|
|
162
|
-
return e;
|
|
163
|
-
let a = e;
|
|
164
|
-
if (a.length === 1 && parseInt(e, 10) > 2)
|
|
165
|
-
return `0${a}:`;
|
|
166
|
-
const [u, r] = a.slice(-2);
|
|
167
|
-
return [2, 5].includes(a.length) && r === ":" && (a = `${a.slice(0, a.length - 2)}0${u}`), (Xt.test(a) || Zt.test(a)) && (a += ":"), a;
|
|
168
|
-
}, et = {
|
|
169
|
-
"en-US": {
|
|
170
|
-
customRange: "Custom range",
|
|
171
|
-
daily: "Daily",
|
|
172
|
-
dateFrom: "Date from",
|
|
173
|
-
dateTo: "Date to",
|
|
174
|
-
lastMonth: "Last month",
|
|
175
|
-
lastSevenDays: "Last 7 days",
|
|
176
|
-
lastThreeMonths: "Last three months",
|
|
177
|
-
monthly: "Monthly",
|
|
178
|
-
quarterly: "Quarterly",
|
|
179
|
-
timeFrom: "Time from",
|
|
180
|
-
timeTo: "Time to",
|
|
181
|
-
weekly: "Weekly"
|
|
182
|
-
},
|
|
183
|
-
"ja-JP": {
|
|
184
|
-
customRange: "カスタム範囲を選択",
|
|
185
|
-
daily: "毎日",
|
|
186
|
-
lastMonth: "先月",
|
|
187
|
-
lastSevenDays: "過去7日間",
|
|
188
|
-
monthly: "毎月",
|
|
189
|
-
weekly: "毎週"
|
|
190
|
-
},
|
|
191
|
-
"pt-BR": {
|
|
192
|
-
customRange: "Selecione um intervalo personalizado",
|
|
193
|
-
daily: "Diário",
|
|
194
|
-
lastMonth: "Último mês",
|
|
195
|
-
lastSevenDays: "Últimos 7 dias",
|
|
196
|
-
monthly: "Mensal",
|
|
197
|
-
weekly: "Semanal"
|
|
198
|
-
}
|
|
199
|
-
}, tt = 300, at = "customRange", ea = nt({
|
|
200
|
-
i18n: { messages: et },
|
|
201
|
-
name: "date-range-picker-calendar",
|
|
202
|
-
components: {
|
|
203
|
-
BentoDropdown: qt,
|
|
204
|
-
BentoInputField: Bt,
|
|
205
|
-
BentoSegmentedControl: $t,
|
|
206
|
-
BentoTypography: st,
|
|
207
|
-
Calendar: ae
|
|
208
|
-
},
|
|
209
|
-
props: {
|
|
210
|
-
/**
|
|
211
|
-
* Allows user to enter time values in the form
|
|
212
|
-
*/
|
|
213
|
-
allowTimeInput: { type: Boolean, default: !1 },
|
|
214
|
-
/**
|
|
215
|
-
* Ranges form persistance data
|
|
216
|
-
*/
|
|
217
|
-
dateFormData: {
|
|
218
|
-
type: Object,
|
|
219
|
-
default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
|
|
220
|
-
},
|
|
221
|
-
/**
|
|
222
|
-
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
223
|
-
*/
|
|
224
|
-
firstDayOfWeek: ae.props.firstDayOfWeek,
|
|
225
|
-
/**
|
|
226
|
-
* A list of available granularities.
|
|
227
|
-
* If present, the date picker will display a segmented control to change granularity.
|
|
228
|
-
*/
|
|
229
|
-
granularities: {
|
|
230
|
-
type: Array,
|
|
231
|
-
default: null
|
|
232
|
-
},
|
|
233
|
-
/**
|
|
234
|
-
* Indicate if a date should be disabled or not
|
|
235
|
-
*/
|
|
236
|
-
isDateDisabled: ae.props.isDateDisabled,
|
|
237
|
-
/**
|
|
238
|
-
* Set a maximum number of dates to be selectable by the range.
|
|
239
|
-
*/
|
|
240
|
-
maxRange: ae.props.maxRange,
|
|
241
|
-
/**
|
|
242
|
-
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
243
|
-
*/
|
|
244
|
-
min: ae.props.min,
|
|
245
|
-
/**
|
|
246
|
-
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
247
|
-
*/
|
|
248
|
-
max: ae.props.max,
|
|
249
|
-
/**
|
|
250
|
-
* Number of months rendered on pane
|
|
251
|
-
*/
|
|
252
|
-
numberOfMonths: ae.props.numberOfMonths,
|
|
253
|
-
/**
|
|
254
|
-
* Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
|
|
255
|
-
*/
|
|
256
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
257
|
-
/**
|
|
258
|
-
* Enables the custom range selector.
|
|
259
|
-
* If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
|
|
260
|
-
* `label` - label of custom range item.
|
|
261
|
-
* `value` - a unique key of the custom range item.
|
|
262
|
-
* `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
|
|
263
|
-
*/
|
|
264
|
-
quickSelectRanges: {
|
|
265
|
-
type: Array,
|
|
266
|
-
default: void 0
|
|
267
|
-
},
|
|
268
|
-
/**
|
|
269
|
-
* Selected date
|
|
270
|
-
*/
|
|
271
|
-
value: { type: Object, default: void 0 },
|
|
272
|
-
/**
|
|
273
|
-
* The type of calendar to display. Defaults to showing days.
|
|
274
|
-
*/
|
|
275
|
-
variant: ae.props.variant
|
|
276
|
-
},
|
|
277
|
-
emits: [
|
|
278
|
-
T.CUSTOM_RANGE,
|
|
279
|
-
T.INPUT,
|
|
280
|
-
T.ERROR,
|
|
281
|
-
T.FORM_DATE,
|
|
282
|
-
T.START_DATE_SELECTED
|
|
283
|
-
],
|
|
284
|
-
setup(e, { emit: a, slots: u }) {
|
|
285
|
-
var Ne, Be, qe, $e;
|
|
286
|
-
const { locale: r, t: m } = Ae({ messages: et }), D = Fe(), c = F({}), g = S(() => e.variant === "month" ? "monthly" : "daily"), n = he({
|
|
287
|
-
startDate: (Ne = e.value) == null ? void 0 : Ne.startDate,
|
|
288
|
-
endDate: (Be = e.value) == null ? void 0 : Be.endDate,
|
|
289
|
-
range: (qe = e.value) == null ? void 0 : qe.range,
|
|
290
|
-
...e.granularities ? {
|
|
291
|
-
granularity: (($e = e.value) == null ? void 0 : $e.granularity) || g.value
|
|
292
|
-
} : {}
|
|
293
|
-
});
|
|
294
|
-
function y(t) {
|
|
295
|
-
return t ? new Date(
|
|
296
|
-
t.getUTCFullYear(),
|
|
297
|
-
t.getUTCMonth(),
|
|
298
|
-
t.getUTCDate(),
|
|
299
|
-
t.getUTCHours(),
|
|
300
|
-
t.getUTCMinutes(),
|
|
301
|
-
t.getUTCSeconds()
|
|
302
|
-
) : null;
|
|
303
|
-
}
|
|
304
|
-
const b = S(() => {
|
|
305
|
-
var t, l;
|
|
306
|
-
return (
|
|
307
|
-
// eslint-disable-next-line consistent-return
|
|
308
|
-
((l = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ value: d, data: i }) => {
|
|
309
|
-
var h;
|
|
310
|
-
if (!i.endDate) {
|
|
311
|
-
if (i.isRelativeToNow) {
|
|
312
|
-
const O = (h = c.value) == null ? void 0 : h[d];
|
|
313
|
-
return O ? Ee(
|
|
314
|
-
y(O.startDate),
|
|
315
|
-
y(n.startDate)
|
|
316
|
-
) && Ee(
|
|
317
|
-
y(O.endDate),
|
|
318
|
-
y(n.endDate)
|
|
319
|
-
) : (
|
|
320
|
-
// If not stored calculated dates, fall back to comparing the quick select item's value
|
|
321
|
-
// with the internal range's stored range identifier.
|
|
322
|
-
d === n.range
|
|
323
|
-
);
|
|
324
|
-
}
|
|
325
|
-
return Ee(
|
|
326
|
-
y(i.startDate),
|
|
327
|
-
y(n.startDate)
|
|
328
|
-
) && Ee(
|
|
329
|
-
y(n.endDate),
|
|
330
|
-
y(L(n.endDate))
|
|
331
|
-
) && Kt(y(n.endDate)) && (e.granularities ? i.granularity === n.granularity : !0);
|
|
332
|
-
}
|
|
333
|
-
if (e.allowTimeInput)
|
|
334
|
-
return Xe(
|
|
335
|
-
y(i.startDate),
|
|
336
|
-
y(n.startDate)
|
|
337
|
-
) && Xe(
|
|
338
|
-
y(i.endDate),
|
|
339
|
-
y(n.endDate)
|
|
340
|
-
) && (e.granularities ? i.granularity === n.granularity : !0);
|
|
341
|
-
if (i.endDate)
|
|
342
|
-
return $(i.startDate, n.startDate) && $(i.endDate, n.endDate) && (e.granularities ? i.granularity === n.granularity : !0);
|
|
343
|
-
})) == null ? void 0 : l.value) ?? at
|
|
344
|
-
);
|
|
345
|
-
}), Y = S(() => ({
|
|
346
|
-
"b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
|
|
347
|
-
})), Te = S(() => [
|
|
348
|
-
{ label: m("customRange"), value: at },
|
|
349
|
-
...e.quickSelectRanges ? e.quickSelectRanges : []
|
|
350
|
-
]), X = S(
|
|
351
|
-
() => {
|
|
352
|
-
var t;
|
|
353
|
-
return ((t = e.granularities) == null ? void 0 : t.find(({ type: l }) => l === n.granularity)) || null;
|
|
354
|
-
}
|
|
355
|
-
), w = S(
|
|
356
|
-
() => {
|
|
357
|
-
var t;
|
|
358
|
-
return ((t = e.granularities) == null ? void 0 : t.map(({ type: l, disabled: d }) => ({
|
|
359
|
-
label: m(l),
|
|
360
|
-
value: l,
|
|
361
|
-
disabled: d
|
|
362
|
-
}))) ?? [];
|
|
363
|
-
}
|
|
364
|
-
), { getGranularCalendarLimits: Z } = Wt(e), f = S(
|
|
365
|
-
() => e.granularities ? Z(X.value) : { min: A(e.min), max: L(e.max) }
|
|
366
|
-
), {
|
|
367
|
-
adjustDateForQuarterly: ue,
|
|
368
|
-
adjustDateForMonthly: M,
|
|
369
|
-
adjustDateForWeekly: ne,
|
|
370
|
-
adjustStartDateInputForWeekly: x,
|
|
371
|
-
adjustEndDateInputForWeekly: de,
|
|
372
|
-
adjustStartDateInputForMonthly: ee,
|
|
373
|
-
adjustEndDateInputForMonthly: p,
|
|
374
|
-
adjustStartDateInputForQuarterly: me,
|
|
375
|
-
adjustEndDateInputForQuarterly: j
|
|
376
|
-
} = Ft(e.firstDayOfWeek), { savedRanges: P, saveRange: re, resetSavedRanges: C } = zt(), v = (t) => {
|
|
377
|
-
var l;
|
|
378
|
-
return t ? ce(t, k.NUMERIC_DATE_YEAR_FIRST, {
|
|
379
|
-
locale: D[(l = r.value) == null ? void 0 : l.substring(0, 2)] || D.enUS
|
|
380
|
-
}) : "";
|
|
381
|
-
}, E = (t) => {
|
|
382
|
-
var l;
|
|
383
|
-
return t ? ce(t, k.HOUR_MINUTE_SECONDS, {
|
|
384
|
-
locale: D[(l = r.value) == null ? void 0 : l.substring(0, 2)] || D.enUS
|
|
385
|
-
}) : "";
|
|
386
|
-
}, K = F(!1), se = F(!1), Q = F(!1), G = F(!1), o = he({
|
|
387
|
-
startDate: e.dateFormData.startDate,
|
|
388
|
-
endDate: e.dateFormData.endDate,
|
|
389
|
-
startTime: e.dateFormData.startTime,
|
|
390
|
-
endTime: e.dateFormData.endTime
|
|
391
|
-
}), pe = (t, l) => {
|
|
392
|
-
let d = new Date(t);
|
|
393
|
-
const [i, h, O] = l.split(":");
|
|
394
|
-
return d = Qt(d, parseInt(i, 10)), d = Gt(d, parseInt(h, 10)), d = Ht(d, parseInt(O, 10)), d;
|
|
395
|
-
}, Ie = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), De = (t, l) => {
|
|
396
|
-
const d = () => {
|
|
397
|
-
if (l && R(l)) {
|
|
398
|
-
const i = pe(new Date(l), t);
|
|
399
|
-
if (e.min && i < Ze(e.min, 0) || e.max && i > Ze(e.max, 0))
|
|
400
|
-
return !1;
|
|
401
|
-
}
|
|
402
|
-
return !0;
|
|
403
|
-
};
|
|
404
|
-
return Ie(t) && d();
|
|
405
|
-
}, N = (t, l) => !l || !Ie(l) || e.variant === "month" ? t : pe(new Date(t), l), s = (t) => {
|
|
406
|
-
o.startTime = E(
|
|
407
|
-
e.min && e.allowTimeInput && $(e.min, t.startDate) ? e.min : A(t.startDate)
|
|
408
|
-
), o.endTime = E(
|
|
409
|
-
e.max && e.allowTimeInput && $(e.max, t.endDate) ? e.max : L(t.endDate)
|
|
410
|
-
), n.startDate = N(t.startDate, o.startTime), n.endDate = N(t.endDate, o.endTime), n.range = null, e.granularities && C(), a(T.INPUT, {
|
|
411
|
-
...n,
|
|
412
|
-
range: b.value
|
|
413
|
-
});
|
|
414
|
-
}, R = (t) => {
|
|
415
|
-
const l = (i) => e.min && A(i) < A(e.min) || e.max && A(i) > A(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(A(i)) : !0;
|
|
416
|
-
return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && l(new Date(t));
|
|
417
|
-
};
|
|
418
|
-
rt(() => {
|
|
419
|
-
K.value = !!(e.dateFormData.startDate && !R(e.dateFormData.startDate)), e.allowTimeInput ? Q.value = !!(e.dateFormData.startTime && !De(e.dateFormData.startTime, e.dateFormData.startDate)) : Q.value = !1, se.value = !!(e.dateFormData.endDate && !R(e.dateFormData.endDate)), e.allowTimeInput ? G.value = !!(e.dateFormData.endTime && !De(e.dateFormData.endTime, e.dateFormData.endDate)) : G.value = !1;
|
|
420
|
-
});
|
|
421
|
-
const le = (t) => {
|
|
422
|
-
var l;
|
|
423
|
-
o.startDate = v(t), o.startTime ? Q.value && (o.startTime = (l = e.dateFormData) == null ? void 0 : l.startTime) : o.startTime = E(t), K.value = !1, Q.value = !1, a(T.START_DATE_SELECTED, t);
|
|
424
|
-
}, te = (t) => {
|
|
425
|
-
var l;
|
|
426
|
-
o.endDate = v(t), o.endTime ? G.value && (o.endTime = (l = e.dateFormData) == null ? void 0 : l.endTime) : o.endTime = E(L(t)), se.value = !1, G.value = !1;
|
|
427
|
-
}, B = (t) => {
|
|
428
|
-
const l = e.value[t];
|
|
429
|
-
if (l)
|
|
430
|
-
return l;
|
|
431
|
-
if (e.dateFormData[t] && R(e.dateFormData[t]))
|
|
432
|
-
return new Date(e.dateFormData[t]);
|
|
433
|
-
}, be = Se((t) => {
|
|
434
|
-
var l;
|
|
435
|
-
if (R(t)) {
|
|
436
|
-
let d = t;
|
|
437
|
-
switch (K.value = !1, (l = X.value) == null ? void 0 : l.type) {
|
|
438
|
-
case "weekly":
|
|
439
|
-
d = x(
|
|
440
|
-
t,
|
|
441
|
-
v,
|
|
442
|
-
f.value.min,
|
|
443
|
-
f.value.max
|
|
444
|
-
), o.startDate = d;
|
|
445
|
-
break;
|
|
446
|
-
case "monthly":
|
|
447
|
-
d = ee(
|
|
448
|
-
t,
|
|
449
|
-
v,
|
|
450
|
-
f.value.min,
|
|
451
|
-
f.value.max
|
|
452
|
-
), o.startDate = d;
|
|
453
|
-
break;
|
|
454
|
-
case "quarterly":
|
|
455
|
-
d = me(
|
|
456
|
-
t,
|
|
457
|
-
v,
|
|
458
|
-
f.value.min,
|
|
459
|
-
f.value.max
|
|
460
|
-
), o.startDate = d;
|
|
461
|
-
break;
|
|
462
|
-
}
|
|
463
|
-
const i = ie(d);
|
|
464
|
-
n.startDate = N(i, o.startTime), n.endDate = N(
|
|
465
|
-
ie(o.endDate),
|
|
466
|
-
o.endTime
|
|
467
|
-
), R(o.endDate) && (n.endDate = N(
|
|
468
|
-
ie(o.endDate),
|
|
469
|
-
o.endTime
|
|
470
|
-
));
|
|
471
|
-
const h = B("endDate");
|
|
472
|
-
n.range = null, a(T.FORM_DATE, {
|
|
473
|
-
startDate: i,
|
|
474
|
-
endDate: h
|
|
475
|
-
}), a(T.INPUT, {
|
|
476
|
-
...n,
|
|
477
|
-
range: b.value
|
|
478
|
-
});
|
|
479
|
-
} else
|
|
480
|
-
K.value = !0, a(T.ERROR, { ...o });
|
|
481
|
-
}, tt), ut = (t) => {
|
|
482
|
-
o.startDate = He(t), be(o.startDate);
|
|
483
|
-
}, dt = Se((t) => {
|
|
484
|
-
var l;
|
|
485
|
-
if (R(t)) {
|
|
486
|
-
let d = t;
|
|
487
|
-
switch (se.value = !1, (l = X.value) == null ? void 0 : l.type) {
|
|
488
|
-
case "weekly":
|
|
489
|
-
d = de(
|
|
490
|
-
t,
|
|
491
|
-
v,
|
|
492
|
-
f.value.min,
|
|
493
|
-
f.value.max
|
|
494
|
-
), o.endDate = d;
|
|
495
|
-
break;
|
|
496
|
-
case "monthly":
|
|
497
|
-
d = p(
|
|
498
|
-
t,
|
|
499
|
-
v,
|
|
500
|
-
f.value.min,
|
|
501
|
-
f.value.max
|
|
502
|
-
), o.endDate = d;
|
|
503
|
-
break;
|
|
504
|
-
case "quarterly":
|
|
505
|
-
d = j(
|
|
506
|
-
t,
|
|
507
|
-
v,
|
|
508
|
-
f.value.min,
|
|
509
|
-
f.value.max
|
|
510
|
-
), o.endDate = d;
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
const i = ie(d);
|
|
514
|
-
n.endDate = N(i, o.endTime), R(o.startDate) && (n.startDate = N(
|
|
515
|
-
ie(o.startDate),
|
|
516
|
-
o.startTime
|
|
517
|
-
));
|
|
518
|
-
const h = B("startDate");
|
|
519
|
-
n.range = null, a(T.FORM_DATE, {
|
|
520
|
-
startDate: h,
|
|
521
|
-
endDate: i
|
|
522
|
-
}), a(T.INPUT, {
|
|
523
|
-
...n,
|
|
524
|
-
range: b.value
|
|
525
|
-
});
|
|
526
|
-
} else
|
|
527
|
-
se.value = !0, a(T.ERROR, { ...o });
|
|
528
|
-
}, tt), mt = (t) => {
|
|
529
|
-
o.endDate = He(t), dt(o.endDate);
|
|
530
|
-
}, Dt = (t) => {
|
|
531
|
-
At(t);
|
|
532
|
-
}, ct = Se((t) => {
|
|
533
|
-
if (De(t, e.dateFormData.startDate)) {
|
|
534
|
-
Q.value = !1, n.startDate = N(n.startDate, t);
|
|
535
|
-
const l = B("endDate");
|
|
536
|
-
a(T.FORM_DATE, {
|
|
537
|
-
startDate: n.startDate,
|
|
538
|
-
endDate: l,
|
|
539
|
-
startTime: t,
|
|
540
|
-
endTime: o.endTime ?? e.dateFormData.endTime
|
|
541
|
-
}), a(T.INPUT, {
|
|
542
|
-
...n,
|
|
543
|
-
range: b.value
|
|
544
|
-
});
|
|
545
|
-
} else
|
|
546
|
-
Q.value = !0, a(T.ERROR, { ...o });
|
|
547
|
-
}), ft = Se((t) => {
|
|
548
|
-
De(t, e.dateFormData.endDate) ? (G.value = !1, n.endDate = N(n.endDate, t), a(T.FORM_DATE, {
|
|
549
|
-
startDate: n.startDate,
|
|
550
|
-
endDate: n.endDate,
|
|
551
|
-
startTime: o.startTime ?? e.dateFormData.startTime,
|
|
552
|
-
endTime: t
|
|
553
|
-
}), a(T.INPUT, {
|
|
554
|
-
...n,
|
|
555
|
-
range: b.value
|
|
556
|
-
})) : (G.value = !0, a(T.ERROR, { ...o }));
|
|
557
|
-
}), vt = (t) => {
|
|
558
|
-
o.startTime = xe(t), ct(o.startTime);
|
|
559
|
-
}, gt = (t) => {
|
|
560
|
-
o.endTime = xe(t), ft(o.endTime);
|
|
561
|
-
}, yt = (t) => {
|
|
562
|
-
xt(t);
|
|
563
|
-
}, Re = (t, l, d, i) => {
|
|
564
|
-
n.startDate = t, n.endDate = l, d && (n.granularity = d), i && (n.range = i);
|
|
565
|
-
}, Tt = (t) => {
|
|
566
|
-
var d;
|
|
567
|
-
const l = (d = e.quickSelectRanges) == null ? void 0 : d.find(({ value: i }) => i === t);
|
|
568
|
-
if (l) {
|
|
569
|
-
C();
|
|
570
|
-
const i = l.data, h = i.endDate || (i.isRelativeToNow ? new Date(Date.now()) : L(new Date(Date.now()))), O = i.isRelativeToNow && i.timeDifference ? new Date(h.getTime() - i.timeDifference) : i.startDate;
|
|
571
|
-
o.endDate = v(h), o.startDate = v(O), Re(O, h, null, t), e.granularities && (n.granularity = i.granularity || g.value), o.startTime = E(O), o.endTime = E(h), n.startDate = O, n.endDate = h, i.isRelativeToNow && (c.value = {
|
|
572
|
-
...c.value,
|
|
573
|
-
[t]: {
|
|
574
|
-
startDate: O,
|
|
575
|
-
endDate: h
|
|
576
|
-
}
|
|
577
|
-
}), a(T.CUSTOM_RANGE, {
|
|
578
|
-
...l.data,
|
|
579
|
-
startDate: O,
|
|
580
|
-
endDate: h,
|
|
581
|
-
range: l.value
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
}, pt = {
|
|
585
|
-
weekly: ne,
|
|
586
|
-
monthly: M,
|
|
587
|
-
quarterly: ue
|
|
588
|
-
}, It = (t) => {
|
|
589
|
-
const l = n.granularity;
|
|
590
|
-
if (n.granularity = t, l && re(l, structuredClone(Oe(n))), n.startDate && n.endDate) {
|
|
591
|
-
switch (t) {
|
|
592
|
-
case "quarterly":
|
|
593
|
-
case "monthly":
|
|
594
|
-
case "weekly": {
|
|
595
|
-
if (P[t]) {
|
|
596
|
-
Re(P[t].startDate, P[t].endDate, t);
|
|
597
|
-
break;
|
|
598
|
-
}
|
|
599
|
-
const { startDate: d, endDate: i } = pt[t](
|
|
600
|
-
n.startDate,
|
|
601
|
-
n.endDate,
|
|
602
|
-
f.value.min,
|
|
603
|
-
f.value.max
|
|
604
|
-
);
|
|
605
|
-
Re(d, i, t);
|
|
606
|
-
break;
|
|
607
|
-
}
|
|
608
|
-
case "daily":
|
|
609
|
-
P.daily && Re(P.daily.startDate, P.daily.endDate, t);
|
|
610
|
-
break;
|
|
611
|
-
}
|
|
612
|
-
o.startDate = v(n.startDate), o.endDate = v(n.endDate), a(T.INPUT, {
|
|
613
|
-
...n,
|
|
614
|
-
range: b.value
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
return {
|
|
619
|
-
// Values
|
|
620
|
-
internalRangeDate: n,
|
|
621
|
-
dateTextInput: o,
|
|
622
|
-
endDateError: se,
|
|
623
|
-
endTimeError: G,
|
|
624
|
-
granularityItems: w,
|
|
625
|
-
selectedGranularity: X,
|
|
626
|
-
computedMinMax: f,
|
|
627
|
-
selectedRangeSelectorValue: b,
|
|
628
|
-
startDateError: K,
|
|
629
|
-
startTimeError: Q,
|
|
630
|
-
quickSelectRangeDefaultItems: Te,
|
|
631
|
-
formInputWrapperConditionalClasses: Y,
|
|
632
|
-
// Methods
|
|
633
|
-
hasSlot: Pt(u),
|
|
634
|
-
t: m,
|
|
635
|
-
// Events
|
|
636
|
-
onDateInput: s,
|
|
637
|
-
onDateInputKeyDown: Dt,
|
|
638
|
-
onEndDateInput: mt,
|
|
639
|
-
onEndDateSelected: te,
|
|
640
|
-
onEndTimeInput: gt,
|
|
641
|
-
onGranularityInput: It,
|
|
642
|
-
onRangeSelectorInput: Tt,
|
|
643
|
-
onStartDateInput: ut,
|
|
644
|
-
onStartDateSelected: le,
|
|
645
|
-
onStartTimeInput: vt,
|
|
646
|
-
onTimeInputKeyDown: yt
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
}), ta = { class: "b-date-range-picker-calendar" }, aa = { class: "b-date-range-picker-calendar__form-container" }, na = { class: "b-date-range-picker-calendar__form" }, ra = { key: 0 }, sa = { class: "b-date-range-picker-calendar__calendars-container" };
|
|
650
|
-
function la(e, a, u, r, m, D) {
|
|
651
|
-
const c = ve("bento-dropdown"), g = ve("bento-segmented-control"), n = ve("bento-typography"), y = ve("bento-input-field"), b = ve("calendar");
|
|
652
|
-
return U(), _e("div", ta, [
|
|
653
|
-
H("div", aa, [
|
|
654
|
-
H("div", na, [
|
|
655
|
-
e.hasSlot("title") ? Pe(e.$slots, "title", { key: 0 }, void 0, !0) : q("", !0),
|
|
656
|
-
e.quickSelectRanges ? (U(), W(c, {
|
|
657
|
-
key: 1,
|
|
658
|
-
"aria-label": e.t("customRange"),
|
|
659
|
-
items: e.quickSelectRangeDefaultItems,
|
|
660
|
-
value: e.selectedRangeSelectorValue,
|
|
661
|
-
onInput: e.onRangeSelectorInput
|
|
662
|
-
}, null, 8, ["aria-label", "items", "value", "onInput"])) : q("", !0),
|
|
663
|
-
e.granularities ? (U(), W(g, {
|
|
664
|
-
key: 2,
|
|
665
|
-
items: e.granularityItems,
|
|
666
|
-
"model-value": e.internalRangeDate.granularity,
|
|
667
|
-
"full-width": "",
|
|
668
|
-
"onUpdate:modelValue": e.onGranularityInput
|
|
669
|
-
}, null, 8, ["items", "model-value", "onUpdate:modelValue"])) : q("", !0),
|
|
670
|
-
H("div", null, [
|
|
671
|
-
z(n, {
|
|
672
|
-
stronger: "",
|
|
673
|
-
el: "span",
|
|
674
|
-
class: "b-date-range-picker-calendar__label"
|
|
675
|
-
}, {
|
|
676
|
-
default: V(() => a[0] || (a[0] = [
|
|
677
|
-
oe(" From ")
|
|
678
|
-
])),
|
|
679
|
-
_: 1
|
|
680
|
-
}),
|
|
681
|
-
H("div", {
|
|
682
|
-
class: Ce(e.formInputWrapperConditionalClasses)
|
|
683
|
-
}, [
|
|
684
|
-
z(y, {
|
|
685
|
-
"aria-label": e.t("dateFrom"),
|
|
686
|
-
value: e.dateTextInput.startDate,
|
|
687
|
-
error: e.startDateError,
|
|
688
|
-
class: "b-date-range-picker-calendar__form-input",
|
|
689
|
-
onInput: e.onStartDateInput,
|
|
690
|
-
onKeydown: e.onDateInputKeyDown
|
|
691
|
-
}, {
|
|
692
|
-
description: V(() => a[1] || (a[1] = [
|
|
693
|
-
oe("YYYY-MM-DD")
|
|
694
|
-
])),
|
|
695
|
-
_: 1
|
|
696
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
|
|
697
|
-
e.allowTimeInput ? (U(), W(y, {
|
|
698
|
-
key: 0,
|
|
699
|
-
"aria-label": e.t("timeFrom"),
|
|
700
|
-
value: e.dateTextInput.startTime,
|
|
701
|
-
error: e.startTimeError,
|
|
702
|
-
class: "b-date-range-picker-calendar__form-input",
|
|
703
|
-
onInput: e.onStartTimeInput,
|
|
704
|
-
onKeydown: e.onTimeInputKeyDown
|
|
705
|
-
}, {
|
|
706
|
-
description: V(() => a[2] || (a[2] = [
|
|
707
|
-
oe("HH:MM:SS")
|
|
708
|
-
])),
|
|
709
|
-
_: 1
|
|
710
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : q("", !0)
|
|
711
|
-
], 2)
|
|
712
|
-
]),
|
|
713
|
-
H("div", null, [
|
|
714
|
-
z(n, {
|
|
715
|
-
stronger: "",
|
|
716
|
-
el: "span",
|
|
717
|
-
class: "b-date-range-picker-calendar__label"
|
|
718
|
-
}, {
|
|
719
|
-
default: V(() => a[3] || (a[3] = [
|
|
720
|
-
oe(" To ")
|
|
721
|
-
])),
|
|
722
|
-
_: 1
|
|
723
|
-
}),
|
|
724
|
-
H("div", {
|
|
725
|
-
class: Ce(e.formInputWrapperConditionalClasses)
|
|
726
|
-
}, [
|
|
727
|
-
z(y, {
|
|
728
|
-
class: "b-date-range-picker-calendar__form-input",
|
|
729
|
-
"aria-label": e.t("dateTo"),
|
|
730
|
-
value: e.dateTextInput.endDate,
|
|
731
|
-
error: e.endDateError,
|
|
732
|
-
onInput: e.onEndDateInput,
|
|
733
|
-
onKeydown: e.onDateInputKeyDown
|
|
734
|
-
}, {
|
|
735
|
-
description: V(() => a[4] || (a[4] = [
|
|
736
|
-
oe("YYYY-MM-DD")
|
|
737
|
-
])),
|
|
738
|
-
_: 1
|
|
739
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
|
|
740
|
-
e.allowTimeInput ? (U(), W(y, {
|
|
741
|
-
key: 0,
|
|
742
|
-
"aria-label": e.t("timeTo"),
|
|
743
|
-
value: e.dateTextInput.endTime,
|
|
744
|
-
error: e.endTimeError,
|
|
745
|
-
class: "b-date-range-picker-calendar__form-input",
|
|
746
|
-
onInput: e.onEndTimeInput,
|
|
747
|
-
onKeydown: e.onTimeInputKeyDown
|
|
748
|
-
}, {
|
|
749
|
-
description: V(() => a[5] || (a[5] = [
|
|
750
|
-
oe("HH:MM:SS")
|
|
751
|
-
])),
|
|
752
|
-
_: 1
|
|
753
|
-
}, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : q("", !0)
|
|
754
|
-
], 2)
|
|
755
|
-
])
|
|
756
|
-
]),
|
|
757
|
-
e.hasSlot("actions") ? (U(), _e("div", ra, [
|
|
758
|
-
Pe(e.$slots, "actions", {}, void 0, !0)
|
|
759
|
-
])) : q("", !0)
|
|
760
|
-
]),
|
|
761
|
-
H("div", sa, [
|
|
762
|
-
z(b, {
|
|
763
|
-
value: e.internalRangeDate,
|
|
764
|
-
"first-day-of-week": e.firstDayOfWeek,
|
|
765
|
-
"is-date-disabled": e.isDateDisabled,
|
|
766
|
-
"max-range": e.maxRange,
|
|
767
|
-
min: e.computedMinMax.min,
|
|
768
|
-
max: e.computedMinMax.max,
|
|
769
|
-
"number-of-months": e.numberOfMonths,
|
|
770
|
-
"show-end-date-on-open": e.showEndDateOnOpen,
|
|
771
|
-
granularity: e.selectedGranularity,
|
|
772
|
-
variant: e.variant,
|
|
773
|
-
"is-range": "",
|
|
774
|
-
onInput: e.onDateInput,
|
|
775
|
-
onStartDateSelected: e.onStartDateSelected,
|
|
776
|
-
onEndDateSelected: e.onEndDateSelected
|
|
777
|
-
}, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant", "onInput", "onStartDateSelected", "onEndDateSelected"])
|
|
778
|
-
])
|
|
779
|
-
]);
|
|
780
|
-
}
|
|
781
|
-
const oa = /* @__PURE__ */ ot(ea, [["render", la], ["__scopeId", "data-v-dd07a8f5"]]), Ue = {
|
|
782
|
-
"en-US": {
|
|
783
|
-
apply: "Apply",
|
|
784
|
-
cancel: "Cancel",
|
|
785
|
-
dateRangePicker: "Date range picker {name}",
|
|
786
|
-
provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
|
|
787
|
-
quarter: "Q{quarter} {year}",
|
|
788
|
-
selectDate: "Select a date",
|
|
789
|
-
selectDateRange: "Select a date range",
|
|
790
|
-
selectedDateIsNotAvailable: "Selected date is not available"
|
|
791
|
-
},
|
|
792
|
-
"ja-JP": {
|
|
793
|
-
apply: "適用",
|
|
794
|
-
cancel: "キャンセル",
|
|
795
|
-
selectDate: "日付を選択"
|
|
796
|
-
},
|
|
797
|
-
"pt-BR": {
|
|
798
|
-
apply: "Aplicar",
|
|
799
|
-
cancel: "Cancelar",
|
|
800
|
-
selectDate: "Selecione uma data"
|
|
801
|
-
}
|
|
802
|
-
}, ia = ({
|
|
803
|
-
datePickerValue: e,
|
|
804
|
-
isDateIncorrect: a,
|
|
805
|
-
quickSelectRanges: u,
|
|
806
|
-
isMonthVariant: r,
|
|
807
|
-
withTimeInput: m,
|
|
808
|
-
placeholder: D
|
|
809
|
-
}) => {
|
|
810
|
-
var w, Z, f, ue;
|
|
811
|
-
const { locale: c, t: g } = Ae({ messages: Ue }), n = Fe(), y = (M) => !!M && !isNaN(M.getTime()), b = (M, ne) => {
|
|
812
|
-
var x;
|
|
813
|
-
return y(M) ? ce(M, ne, {
|
|
814
|
-
locale: n[(x = c.value) == null ? void 0 : x.substring(0, 2)] || n.enUS
|
|
815
|
-
}) : void 0;
|
|
816
|
-
}, Y = he({
|
|
817
|
-
startDate: b((w = e.value) == null ? void 0 : w.startDate, k.NUMERIC_DATE_YEAR_FIRST),
|
|
818
|
-
endDate: b((Z = e.value) == null ? void 0 : Z.endDate, k.NUMERIC_DATE_YEAR_FIRST),
|
|
819
|
-
startTime: b((f = e.value) == null ? void 0 : f.startDate, k.HOUR_MINUTE_SECONDS),
|
|
820
|
-
endTime: b((ue = e.value) == null ? void 0 : ue.endDate, k.HOUR_MINUTE_SECONDS)
|
|
821
|
-
});
|
|
822
|
-
return {
|
|
823
|
-
// Values
|
|
824
|
-
dateDisplayValue: S(() => {
|
|
825
|
-
var re;
|
|
826
|
-
if (a.value)
|
|
827
|
-
return `${Y.startDate || ""} - ${Y.endDate || ""}`;
|
|
828
|
-
if (!e.value || !e.value.startDate && !e.value.endDate)
|
|
829
|
-
return (D == null ? void 0 : D.value) || g("selectDateRange");
|
|
830
|
-
if ((re = u.value) != null && re.length) {
|
|
831
|
-
const C = u.value.find(({ value: v }) => {
|
|
832
|
-
var E;
|
|
833
|
-
return v === ((E = e.value) == null ? void 0 : E.range);
|
|
834
|
-
});
|
|
835
|
-
if (C)
|
|
836
|
-
return C.label;
|
|
837
|
-
}
|
|
838
|
-
if (e.value.granularity === "quarterly") {
|
|
839
|
-
const { startDate: C, endDate: v } = e.value, E = g("quarter", { quarter: We(C), year: ze(C) });
|
|
840
|
-
if (jt(C, v))
|
|
841
|
-
return E;
|
|
842
|
-
const K = g("quarter", { quarter: We(v), year: ze(v) });
|
|
843
|
-
return `${E} - ${K}`;
|
|
844
|
-
}
|
|
845
|
-
const { startDate: M, endDate: ne, startTime: x, endTime: de } = Y, ee = r != null && r.value ? k.LONG_MONTH_YEAR : k.FULL_DATE_MONTH_FIRST, p = b(ie(M), ee), me = b(ie(ne), ee);
|
|
846
|
-
if (!m.value)
|
|
847
|
-
return `${p} - ${me}`;
|
|
848
|
-
const j = [p, x].filter(Boolean).join(", "), P = [me, de].filter(Boolean).join(", ");
|
|
849
|
-
return `${j} - ${P}`;
|
|
850
|
-
}),
|
|
851
|
-
textInputDisplayValue: Y,
|
|
852
|
-
// Methods
|
|
853
|
-
formatTextInputDisplayValue: () => ""
|
|
854
|
-
};
|
|
855
|
-
};
|
|
856
|
-
var we = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(we || {});
|
|
857
|
-
const ua = { class: "b-date-range-picker" }, da = { class: "b-date-range-picker__footer" }, ma = {
|
|
858
|
-
i18n: { messages: Ue },
|
|
859
|
-
name: "bento-date-range-picker"
|
|
860
|
-
}, Da = /* @__PURE__ */ nt({
|
|
861
|
-
...ma,
|
|
862
|
-
props: {
|
|
863
|
-
allowTimeInput: { type: Boolean },
|
|
864
|
-
firstDayOfWeek: { default: 1 },
|
|
865
|
-
granularities: {},
|
|
866
|
-
isDateDisabled: { type: Function, default: void 0 },
|
|
867
|
-
showEndDateOnOpen: { type: Boolean, default: !1 },
|
|
868
|
-
quickSelectRanges: { default: void 0 },
|
|
869
|
-
maxRange: { default: null },
|
|
870
|
-
min: { default: null },
|
|
871
|
-
max: { default: null },
|
|
872
|
-
numberOfMonths: { default: void 0 },
|
|
873
|
-
value: { default: null },
|
|
874
|
-
variant: { default: void 0 },
|
|
875
|
-
hasActions: { type: Boolean, default: !1 },
|
|
876
|
-
description: { default: void 0 },
|
|
877
|
-
disabled: { type: Boolean, default: !1 },
|
|
878
|
-
errorMessage: { default: null },
|
|
879
|
-
label: { default: void 0 },
|
|
880
|
-
optional: { type: Boolean, default: !1 },
|
|
881
|
-
placeholder: { default: null },
|
|
882
|
-
readonly: { type: Boolean, default: !1 },
|
|
883
|
-
required: { type: Boolean, default: !1 },
|
|
884
|
-
tooltipText: { default: null }
|
|
885
|
-
},
|
|
886
|
-
emits: [we.INPUT],
|
|
887
|
-
setup(e, { emit: a }) {
|
|
888
|
-
const u = a, r = e, { locale: m, t: D } = Ae({ messages: Ue }), c = Fe(), g = ge("bento-date-range-picker-container"), n = ge("bento-date-range-picker-label"), y = ge("bento-date-range-picker-description"), b = ge("bento-date-range-picker-error"), Y = ge("bento-date-range-picker-date-error"), Te = S(() => r.label || D("dateRangePicker", { name: g })), X = S(() => (r == null ? void 0 : r.quickSelectRanges) && r.quickSelectRanges.map((s) => {
|
|
889
|
-
const R = s.data.endDate ? void 0 : new Date(Date.now()).getTime() - s.data.startDate.getTime();
|
|
890
|
-
return {
|
|
891
|
-
...s,
|
|
892
|
-
data: {
|
|
893
|
-
...s.data,
|
|
894
|
-
// Adding timeDifference to calculate an up-to-date endDate on range selection
|
|
895
|
-
timeDifference: R
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
|
-
})), w = F(!1), Z = F(null), f = F(!1), { isReadOnly: ue } = Ut(ke(r, "readonly"));
|
|
899
|
-
Me(
|
|
900
|
-
() => r.disabled,
|
|
901
|
-
() => {
|
|
902
|
-
r.disabled && f.value && (f.value = !1);
|
|
903
|
-
}
|
|
904
|
-
);
|
|
905
|
-
const M = S(() => r.hasActions ? !E.value && w.value : w.value), ne = S(() => ({
|
|
906
|
-
"b-date-range-picker__description--error": !!r.errorMessage || M.value
|
|
907
|
-
})), x = S(() => r.variant === "month"), de = S(() => r.allowTimeInput && r.variant !== "month"), { dateDisplayValue: ee, textInputDisplayValue: p } = ia({
|
|
908
|
-
datePickerValue: ke(r, "value"),
|
|
909
|
-
isDateIncorrect: w,
|
|
910
|
-
quickSelectRanges: X,
|
|
911
|
-
isMonthVariant: x,
|
|
912
|
-
withTimeInput: de,
|
|
913
|
-
placeholder: ke(r, "placeholder")
|
|
914
|
-
}), me = S(
|
|
915
|
-
() => `${r.description ? y : ""} ${r.errorMessage ? b : ""} ${w.value ? Y : ""}`.trim() || null
|
|
916
|
-
), j = () => {
|
|
917
|
-
f.value = !1;
|
|
918
|
-
}, P = () => {
|
|
919
|
-
f.value = !0;
|
|
920
|
-
}, re = F(ee.value), C = F(
|
|
921
|
-
// textInputDisplayValue is a reactive object
|
|
922
|
-
structuredClone(Oe(p))
|
|
923
|
-
), v = F(r.value), E = F(!0), K = S(
|
|
924
|
-
() => r.hasActions ? C.value : p
|
|
925
|
-
), se = S(
|
|
926
|
-
() => r.hasActions ? re.value : ee.value
|
|
927
|
-
);
|
|
928
|
-
rt(() => {
|
|
929
|
-
if (r.hasActions || kt(
|
|
930
|
-
'BentoDateRangePicker "hasActions" property',
|
|
931
|
-
`Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
|
|
932
|
-
This will be the default behavior in the v2 and "hasActions" will be removed.`,
|
|
933
|
-
"2.0.0"
|
|
934
|
-
), r.granularities && r.variant !== "month" && r.granularities.find(({ type: s }) => s === "quarterly"))
|
|
935
|
-
throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
|
|
936
|
-
}), Me(
|
|
937
|
-
() => r.value,
|
|
938
|
-
() => {
|
|
939
|
-
re.value = ee.value, C.value = structuredClone(Oe(p));
|
|
940
|
-
}
|
|
941
|
-
);
|
|
942
|
-
const Q = S(() => [
|
|
943
|
-
{
|
|
944
|
-
title: D("apply"),
|
|
945
|
-
event: () => {
|
|
946
|
-
u(we.INPUT, v.value), j(), E.value = !0;
|
|
947
|
-
},
|
|
948
|
-
disabled: E.value
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
title: D("cancel"),
|
|
952
|
-
event: j
|
|
953
|
-
}
|
|
954
|
-
]);
|
|
955
|
-
Me(v, (s) => {
|
|
956
|
-
if (r.hasActions) {
|
|
957
|
-
E.value = w.value;
|
|
958
|
-
return;
|
|
959
|
-
}
|
|
960
|
-
u(we.INPUT, s);
|
|
961
|
-
});
|
|
962
|
-
const G = (s) => {
|
|
963
|
-
w.value = !1;
|
|
964
|
-
const R = (le, te) => {
|
|
965
|
-
var B;
|
|
966
|
-
return le ? ce(le, te, {
|
|
967
|
-
locale: c[(B = m.value) == null ? void 0 : B.substring(0, 2)] || c.enUS
|
|
968
|
-
}) : void 0;
|
|
969
|
-
};
|
|
970
|
-
p.startDate = R(s.startDate, k.NUMERIC_DATE_YEAR_FIRST), p.endDate = R(s.endDate, k.NUMERIC_DATE_YEAR_FIRST), p.startTime = R(s.startDate, k.HOUR_MINUTE_SECONDS), p.endTime = R(s.endDate, k.HOUR_MINUTE_SECONDS), v.value = s;
|
|
971
|
-
}, o = async () => {
|
|
972
|
-
w.value && (w.value = !1), v.value = null;
|
|
973
|
-
}, pe = () => {
|
|
974
|
-
if (!f.value) {
|
|
975
|
-
f.value = !0;
|
|
976
|
-
return;
|
|
977
|
-
}
|
|
978
|
-
w.value || (f.value = !1);
|
|
979
|
-
}, Ie = (s) => {
|
|
980
|
-
w.value = !1, s.startTime && (p.startTime = s.startTime), s.endTime && (p.endTime = s.endTime);
|
|
981
|
-
}, De = (s) => {
|
|
982
|
-
w.value = !0, p.startDate = s.startDate, p.endDate = s.endDate, v.value = { startDate: null, endDate: null };
|
|
983
|
-
}, N = (s) => {
|
|
984
|
-
if (s) {
|
|
985
|
-
const R = (te, B) => {
|
|
986
|
-
var be;
|
|
987
|
-
return te ? ce(te, B, {
|
|
988
|
-
locale: c[(be = m.value) == null ? void 0 : be.substring(0, 2)] || c.enUS
|
|
989
|
-
}) : void 0;
|
|
990
|
-
}, le = (te) => {
|
|
991
|
-
var B;
|
|
992
|
-
return ce(te, k.NUMERIC_DATE_YEAR_FIRST, {
|
|
993
|
-
locale: c[(B = m.value) == null ? void 0 : B.substring(0, 2)] || c.enUS
|
|
994
|
-
});
|
|
995
|
-
};
|
|
996
|
-
p.startDate = le(s.startDate), p.endDate = le(s.endDate), p.startTime = R(
|
|
997
|
-
s.startDate,
|
|
998
|
-
k.HOUR_MINUTE_SECONDS
|
|
999
|
-
), p.endTime = R(s.endDate, k.HOUR_MINUTE_SECONDS), v.value = s;
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
return (s, R) => bt((U(), _e("div", ua, [
|
|
1003
|
-
s.label ? (U(), W(I(Lt), {
|
|
1004
|
-
key: 0,
|
|
1005
|
-
id: I(n),
|
|
1006
|
-
label: s.label,
|
|
1007
|
-
"tooltip-text": s.tooltipText,
|
|
1008
|
-
optional: s.optional,
|
|
1009
|
-
required: s.required
|
|
1010
|
-
}, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : q("", !0),
|
|
1011
|
-
H("div", {
|
|
1012
|
-
onKeydown: Le(pe, ["enter"])
|
|
1013
|
-
}, [
|
|
1014
|
-
z(I(Mt), {
|
|
1015
|
-
ref_key: "inputContainerRef",
|
|
1016
|
-
ref: Z,
|
|
1017
|
-
"always-combobox-is-input": "",
|
|
1018
|
-
ariaControls: I(g),
|
|
1019
|
-
ariaExpanded: f.value,
|
|
1020
|
-
"aria-labelledby": s.label ? I(n) : null,
|
|
1021
|
-
"aria-describedby": me.value,
|
|
1022
|
-
disabled: s.disabled,
|
|
1023
|
-
"is-invalid": !!s.errorMessage || M.value,
|
|
1024
|
-
open: f.value,
|
|
1025
|
-
"display-value": se.value,
|
|
1026
|
-
readonly: I(ue),
|
|
1027
|
-
onOpen: P,
|
|
1028
|
-
onClear: o,
|
|
1029
|
-
onClose: j
|
|
1030
|
-
}, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly"])
|
|
1031
|
-
], 32),
|
|
1032
|
-
M.value ? (U(), W(I(Ve), {
|
|
1033
|
-
key: 1,
|
|
1034
|
-
id: I(Y),
|
|
1035
|
-
"error-message": I(D)("provideDateInAFormat"),
|
|
1036
|
-
class: "b-date-range-picker__error-message"
|
|
1037
|
-
}, null, 8, ["id", "error-message"])) : q("", !0),
|
|
1038
|
-
s.errorMessage ? (U(), W(I(Ve), {
|
|
1039
|
-
key: 2,
|
|
1040
|
-
id: I(b),
|
|
1041
|
-
"error-message": s.errorMessage,
|
|
1042
|
-
class: "b-date-range-picker__error-message"
|
|
1043
|
-
}, null, 8, ["id", "error-message"])) : q("", !0),
|
|
1044
|
-
s.description ? (U(), W(I(st), {
|
|
1045
|
-
key: 3,
|
|
1046
|
-
id: I(y),
|
|
1047
|
-
class: Ce(["b-date-range-picker__description", ne.value]),
|
|
1048
|
-
el: "span"
|
|
1049
|
-
}, {
|
|
1050
|
-
default: V(() => [
|
|
1051
|
-
oe(Rt(s.description), 1)
|
|
1052
|
-
]),
|
|
1053
|
-
_: 1
|
|
1054
|
-
}, 8, ["id", "class"])) : q("", !0),
|
|
1055
|
-
Z.value ? (U(), W(I(wt), {
|
|
1056
|
-
key: 4,
|
|
1057
|
-
id: I(g),
|
|
1058
|
-
class: "b-date-range-picker__container",
|
|
1059
|
-
open: f.value,
|
|
1060
|
-
"target-element": Z.value,
|
|
1061
|
-
"aria-label": Te.value,
|
|
1062
|
-
position: "bottom-start",
|
|
1063
|
-
"without-space": "",
|
|
1064
|
-
"fit-content": "",
|
|
1065
|
-
"trap-all": "",
|
|
1066
|
-
onKeydown: Le(j, ["esc", "native"])
|
|
1067
|
-
}, {
|
|
1068
|
-
default: V(() => [
|
|
1069
|
-
z(I(oa), {
|
|
1070
|
-
"allow-time-input": de.value,
|
|
1071
|
-
"quick-select-ranges": X.value,
|
|
1072
|
-
value: s.value,
|
|
1073
|
-
"first-day-of-week": s.firstDayOfWeek,
|
|
1074
|
-
granularities: s.granularities,
|
|
1075
|
-
"is-date-disabled": s.isDateDisabled,
|
|
1076
|
-
"max-range": s.maxRange,
|
|
1077
|
-
min: s.min,
|
|
1078
|
-
max: s.max,
|
|
1079
|
-
"number-of-months": s.numberOfMonths,
|
|
1080
|
-
"show-end-date-on-open": s.showEndDateOnOpen,
|
|
1081
|
-
"date-form-data": K.value,
|
|
1082
|
-
variant: s.variant,
|
|
1083
|
-
onCustomRange: N,
|
|
1084
|
-
onInput: G,
|
|
1085
|
-
onError: De,
|
|
1086
|
-
onFormDate: Ie
|
|
1087
|
-
}, St({ _: 2 }, [
|
|
1088
|
-
s.hasActions ? {
|
|
1089
|
-
name: "actions",
|
|
1090
|
-
fn: V(() => [
|
|
1091
|
-
z(I(Et)),
|
|
1092
|
-
H("div", da, [
|
|
1093
|
-
z(I(ht), {
|
|
1094
|
-
actions: Q.value,
|
|
1095
|
-
layout: I(Yt).SPACE_BETWEEN
|
|
1096
|
-
}, null, 8, ["actions", "layout"])
|
|
1097
|
-
])
|
|
1098
|
-
]),
|
|
1099
|
-
key: "0"
|
|
1100
|
-
} : void 0
|
|
1101
|
-
]), 1032, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "date-form-data", "variant"])
|
|
1102
|
-
]),
|
|
1103
|
-
_: 1
|
|
1104
|
-
}, 8, ["id", "open", "target-element", "aria-label"])) : q("", !0)
|
|
1105
|
-
])), [
|
|
1106
|
-
[I(Nt), j]
|
|
1107
|
-
]);
|
|
1108
|
-
}
|
|
1109
|
-
}), Ua = /* @__PURE__ */ ot(Da, [["__scopeId", "data-v-a569926c"]]);
|
|
1110
|
-
export {
|
|
1111
|
-
Ua as B,
|
|
1112
|
-
oa as D,
|
|
1113
|
-
we as a,
|
|
1114
|
-
Kt as b,
|
|
1115
|
-
Ee as i
|
|
1116
|
-
};
|
|
1117
|
-
//# sourceMappingURL=date-range-picker.DSMt6XMF.js.map
|