@adyen/bento-vue3 1.95.0 → 1.96.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 +77 -0
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{calendar.74nP7Nu6.js → calendar.iQyNwQBL.js} +64 -58
- package/dist/chunks/calendar.iQyNwQBL.js.map +1 -0
- package/dist/chunks/{checkbox-group.BWx4wn0F.js → checkbox-group.BcDIXL27.js} +2 -2
- package/dist/chunks/{checkbox-group.BWx4wn0F.js.map → checkbox-group.BcDIXL27.js.map} +1 -1
- package/dist/chunks/{checkbox.DwfrmbwI.js → checkbox.LTRqb-pE.js} +18 -18
- package/dist/chunks/{checkbox.DwfrmbwI.js.map → checkbox.LTRqb-pE.js.map} +1 -1
- package/dist/chunks/{code-snippet.B9QFjFXf.js → code-snippet.DHzB-8JJ.js} +2 -2
- package/dist/chunks/{code-snippet.B9QFjFXf.js.map → code-snippet.DHzB-8JJ.js.map} +1 -1
- package/dist/chunks/{dashboard-section.C4plNql-.js → dashboard-section.Da6ZFGtm.js} +2 -2
- package/dist/chunks/{dashboard-section.C4plNql-.js.map → dashboard-section.Da6ZFGtm.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Bwxo0AII.js → data-grid-template.-MuGcJp1.js} +2 -2
- package/dist/chunks/{data-grid-template.Bwxo0AII.js.map → data-grid-template.-MuGcJp1.js.map} +1 -1
- package/dist/chunks/{data-grid.Bx3Xy1tb.js → data-grid.CNIXkdCJ.js} +8 -8
- package/dist/chunks/{data-grid.Bx3Xy1tb.js.map → data-grid.CNIXkdCJ.js.map} +1 -1
- package/dist/chunks/{date-picker.89J8PGKn.js → date-picker.DyImOUH4.js} +61 -61
- package/dist/chunks/date-picker.DyImOUH4.js.map +1 -0
- package/dist/chunks/{date-range-picker.iaXigXuW.js → date-range-picker.BigC6wm2.js} +67 -67
- package/dist/chunks/{date-range-picker.iaXigXuW.js.map → date-range-picker.BigC6wm2.js.map} +1 -1
- package/dist/chunks/draggable-handle.C1dudqKz.js +1649 -0
- package/dist/chunks/{draggable-handle.CKuHzAzS.js.map → draggable-handle.C1dudqKz.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DNWUbf7x.js → dropdown-tag.C1ei1SyR.js} +2 -2
- package/dist/chunks/{dropdown-tag.DNWUbf7x.js.map → dropdown-tag.C1ei1SyR.js.map} +1 -1
- package/dist/chunks/{dropdown.CK8cdMyV.js → dropdown.C5um1anU.js} +292 -278
- package/dist/chunks/dropdown.C5um1anU.js.map +1 -0
- package/dist/chunks/{filter-bar.CqbdRCQD.js → filter-bar.CvZnM3hM.js} +279 -276
- package/dist/chunks/{filter-bar.CqbdRCQD.js.map → filter-bar.CvZnM3hM.js.map} +1 -1
- package/dist/chunks/{header-with-views.CB8M1Udi.js → header-with-views.ubPTyW9A.js} +4 -4
- package/dist/chunks/{header-with-views.CB8M1Udi.js.map → header-with-views.ubPTyW9A.js.map} +1 -1
- package/dist/chunks/{input-field-password.DJKloBB3.js → input-field-password.CZ-NTpZF.js} +5 -3
- package/dist/chunks/input-field-password.CZ-NTpZF.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.C3fQypln.js → input-field-phone-number.DOHk6gSp.js} +2 -2
- package/dist/chunks/{input-field-phone-number.C3fQypln.js.map → input-field-phone-number.DOHk6gSp.js.map} +1 -1
- package/dist/chunks/{input-field.HgrRdDec.js → input-field.DBlTGgAD.js} +2 -2
- package/dist/chunks/{input-field.HgrRdDec.js.map → input-field.DBlTGgAD.js.map} +1 -1
- package/dist/chunks/{input-time.DxCYIHSf.js → input-time.CHIjCO74.js} +3 -3
- package/dist/chunks/{input-time.DxCYIHSf.js.map → input-time.CHIjCO74.js.map} +1 -1
- package/dist/chunks/{pagination.vqSlDmeK.js → pagination.DbpHH_53.js} +2 -2
- package/dist/chunks/{pagination.vqSlDmeK.js.map → pagination.DbpHH_53.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.u_fKHVgZ.js → rich-text-editor.u-V4fNWK.js} +2 -2
- package/dist/chunks/{rich-text-editor.u_fKHVgZ.js.map → rich-text-editor.u-V4fNWK.js.map} +1 -1
- package/dist/chunks/{search-bar.CgSUD89l.js → search-bar.TKgi1KLs.js} +3 -3
- package/dist/chunks/{search-bar.CgSUD89l.js.map → search-bar.TKgi1KLs.js.map} +1 -1
- package/dist/chunks/secondary-nav.0OsJiAWI.js +315 -0
- package/dist/chunks/{secondary-nav.BqqNrHZE.js.map → secondary-nav.0OsJiAWI.js.map} +1 -1
- package/dist/chunks/{selection-card-group.C2Av3uyz.js → selection-card-group.C59ZIrVm.js} +9 -9
- package/dist/chunks/{selection-card-group.C2Av3uyz.js.map → selection-card-group.C59ZIrVm.js.map} +1 -1
- package/dist/chunks/{tab.DWoYKpTv.js → tab.ByjWuWQz.js} +107 -98
- package/dist/chunks/{tab.DWoYKpTv.js.map → tab.ByjWuWQz.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CtWNiy-e.js → use-cached-selected-values.DOw5IKdU.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.CtWNiy-e.js.map → use-cached-selected-values.DOw5IKdU.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.BshboCF9.js → use-date-input-formatter.x285YiSd.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BshboCF9.js.map → use-date-input-formatter.x285YiSd.js.map} +1 -1
- 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/date-time-picker.js +4 -4
- package/dist/draggable.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +25 -25
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +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/tabs.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/chunks/calendar.74nP7Nu6.js.map +0 -1
- package/dist/chunks/date-picker.89J8PGKn.js.map +0 -1
- package/dist/chunks/draggable-handle.CKuHzAzS.js +0 -1639
- package/dist/chunks/dropdown.CK8cdMyV.js.map +0 -1
- package/dist/chunks/input-field-password.DJKloBB3.js.map +0 -1
- package/dist/chunks/secondary-nav.BqqNrHZE.js +0 -306
|
@@ -3,20 +3,20 @@ import { b as qa } from "./index.oOAkh64h.js";
|
|
|
3
3
|
import { B as _a } from "./divider.BIY84UH7.js";
|
|
4
4
|
import { h as Pa, B as Ba } from "./button-actions.CxTxPprd.js";
|
|
5
5
|
import { B as Oe, d as We } from "./typography.B3J6_tYk.js";
|
|
6
|
+
import { B as Ca, D as Na } from "./dropdown.C5um1anU.js";
|
|
6
7
|
import { g as le } from "./generate-uid.DBWe4g6T.js";
|
|
7
8
|
import { u as qe } from "./index.B875RXHM.js";
|
|
8
|
-
import { j as ie, k as q, s as h, l as
|
|
9
|
-
import { u as _e, a as
|
|
10
|
-
import { t as
|
|
11
|
-
import { u as
|
|
12
|
-
import { B as
|
|
13
|
-
import { u as
|
|
14
|
-
import { B as et, D as at } from "./dropdown.CK8cdMyV.js";
|
|
9
|
+
import { j as ie, k as q, s as h, l as Va, m as je, n as za, f as Ge, o as Qa, q as Ua, r as Wa, t as Le, u as ja, b as N, v as Ga, h as La, i as Ja, e as x, w as Je, x as $e, g as $a } from "./calendar.iQyNwQBL.js";
|
|
10
|
+
import { u as _e, a as Ka } from "./use-date-input-formatter.x285YiSd.js";
|
|
11
|
+
import { t as Te, n as Ha, c as Xa } from "./en-US.BR6y7foR.js";
|
|
12
|
+
import { u as Za } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
13
|
+
import { B as et } from "./directive.D1-d-C2K.js";
|
|
14
|
+
import { u as at } from "./form-field.D_2g7vaP.js";
|
|
15
15
|
import { B as tt } from "./alert.RD0qOLhx.js";
|
|
16
|
-
import { B as Ke } from "./input-field.
|
|
17
|
-
import { B as He, i as Xe } from "./input-time.
|
|
16
|
+
import { B as Ke } from "./input-field.DBlTGgAD.js";
|
|
17
|
+
import { B as He, i as Xe } from "./input-time.CHIjCO74.js";
|
|
18
18
|
import { B as nt } from "./segmented-control.D6Yvxxpc.js";
|
|
19
|
-
import { d as Ze } from "./use-cached-selected-values.
|
|
19
|
+
import { d as Ze } from "./use-cached-selected-values.DOw5IKdU.js";
|
|
20
20
|
import { u as rt } from "./use-has-slot.CyMiImRQ.js";
|
|
21
21
|
import { u as st } from "./use-touch-device.DTqFAbXh.js";
|
|
22
22
|
import { e as B, a as ea } from "./differenceInMonths.yz4Dfe-b.js";
|
|
@@ -29,52 +29,52 @@ import { E as ra } from "./error-message.Dyvrw6ZB.js";
|
|
|
29
29
|
import { B as it } from "./button-actions.types.BptAXjD8.js";
|
|
30
30
|
import "../assets/date-range-picker.css";
|
|
31
31
|
function sa(r, p) {
|
|
32
|
-
return
|
|
32
|
+
return Te(r, p?.in).getFullYear();
|
|
33
33
|
}
|
|
34
34
|
function we(r, p) {
|
|
35
|
-
return +
|
|
35
|
+
return +Te(r) == +Te(p);
|
|
36
36
|
}
|
|
37
|
-
function ut(r, p,
|
|
38
|
-
const [i, D] =
|
|
39
|
-
|
|
37
|
+
function ut(r, p, T) {
|
|
38
|
+
const [i, D] = Ha(
|
|
39
|
+
T?.in,
|
|
40
40
|
r,
|
|
41
41
|
p
|
|
42
42
|
);
|
|
43
43
|
return +ie(i) == +ie(D);
|
|
44
44
|
}
|
|
45
45
|
function oa(r, p) {
|
|
46
|
-
const
|
|
47
|
-
return
|
|
46
|
+
const T = Te(r, p?.in);
|
|
47
|
+
return T.setMilliseconds(0), T;
|
|
48
48
|
}
|
|
49
49
|
function Fe(r, p) {
|
|
50
50
|
return +oa(r) == +oa(p);
|
|
51
51
|
}
|
|
52
52
|
function dt(r, p) {
|
|
53
53
|
return q(
|
|
54
|
-
|
|
54
|
+
Xa(r, r),
|
|
55
55
|
ot(r)
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
const ct = ({
|
|
59
59
|
firstDayOfWeek: r,
|
|
60
60
|
min: p,
|
|
61
|
-
max:
|
|
61
|
+
max: T
|
|
62
62
|
}) => ({ getGranularCalendarLimits: (D) => {
|
|
63
|
-
if (!p && !
|
|
63
|
+
if (!p && !T)
|
|
64
64
|
return { min: null, max: null };
|
|
65
|
-
let a = p ? h(p) : null, l =
|
|
65
|
+
let a = p ? h(p) : null, l = T ? B(T) : null;
|
|
66
66
|
if (D?.type === "weekly") {
|
|
67
67
|
if (D.earliest)
|
|
68
68
|
a = h(D.earliest);
|
|
69
69
|
else if (a) {
|
|
70
70
|
const v = aa(a, { weekStartsOn: r });
|
|
71
|
-
q(a, v) || (a = h(
|
|
71
|
+
q(a, v) || (a = h(Va(je(a, { weekStartsOn: r }), 1)));
|
|
72
72
|
}
|
|
73
73
|
if (D.latest)
|
|
74
74
|
l = B(D.latest);
|
|
75
75
|
else if (l) {
|
|
76
76
|
const v = je(l, { weekStartsOn: r });
|
|
77
|
-
q(l, v) || (l = B(
|
|
77
|
+
q(l, v) || (l = B(za(aa(l, { weekStartsOn: r }), 1)));
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
if (D?.type === "monthly") {
|
|
@@ -82,13 +82,13 @@ const ct = ({
|
|
|
82
82
|
a = h(D.earliest);
|
|
83
83
|
else if (a) {
|
|
84
84
|
const v = Ge(a);
|
|
85
|
-
q(a, v) || (a = Ge(
|
|
85
|
+
q(a, v) || (a = Ge(Qa(a, 1)));
|
|
86
86
|
}
|
|
87
87
|
if (D.latest)
|
|
88
88
|
l = B(D.latest);
|
|
89
89
|
else if (l) {
|
|
90
90
|
const v = ea(l);
|
|
91
|
-
q(l, v) || (l = ea(
|
|
91
|
+
q(l, v) || (l = ea(Ua(l, 1)));
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
if (D?.type === "quarterly") {
|
|
@@ -96,13 +96,13 @@ const ct = ({
|
|
|
96
96
|
a = ie(D.earliest);
|
|
97
97
|
else if (a) {
|
|
98
98
|
const v = ie(a);
|
|
99
|
-
q(a, v) || (a = ie(
|
|
99
|
+
q(a, v) || (a = ie(Wa(a, 1)));
|
|
100
100
|
}
|
|
101
101
|
if (D.latest)
|
|
102
102
|
l = B(D.latest);
|
|
103
103
|
else if (l) {
|
|
104
104
|
const v = Le(l);
|
|
105
|
-
q(l, v) || (l = Le(
|
|
105
|
+
q(l, v) || (l = Le(ja(l, 1)));
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
return { min: a, max: l };
|
|
@@ -125,7 +125,7 @@ const ct = ({
|
|
|
125
125
|
};
|
|
126
126
|
var m = /* @__PURE__ */ ((r) => (r.CUSTOM_RANGE = "custom-range", r.INPUT = "input", r.ERROR = "error", r.FORM_DATE = "form-date", r.START_DATE_SELECTED = "start-date-selected", r))(m || {});
|
|
127
127
|
const da = {
|
|
128
|
-
"de-DE": { "DD-MM-YYYY": "TT-MM-JJJJ", "MM-DD-YYYY": "
|
|
128
|
+
"de-DE": { "DD-MM-YYYY": "TT-MM-JJJJ", "MM-DD-YYYY": "MM-TT-JJJJ", "YYYY-MM-DD": "JJJJ-MM-TT", customRange: "Benutzerdefinierter Bereich", daily: "Täglich", dateFrom: "Datum von", dateTo: "Datum bis", lastMonth: "Letzter Monat", lastSevenDays: "Letzte 7 Tage", lastThreeMonths: "Letzte drei Monate", maxRangeDays: "Sie können bis zu {count} Tag auswählen | Sie können bis zu {count} Tage auswählen", maxRangeMonths: "Sie können bis zu {count} Monat auswählen | Sie können bis zu {count} Monate auswählen", maxRangeQuarters: "Sie können bis zu {count} Quartal auswählen | Sie können bis zu {count} Quartale auswählen", maxRangeWeeks: "Sie können bis zu {count} Woche auswählen | Sie können bis zu {count} Wochen auswählen", monthly: "Monatlich", quarterly: "Vierteljährlich", timeFrom: "Zeit von", timeTo: "Zeit bis", weekly: "Wöchentlich" },
|
|
129
129
|
"en-GB": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "The last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
|
|
130
130
|
"en-US": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "Last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
|
|
131
131
|
"es-ES": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha desde", dateTo: "Fecha hasta", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días", maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses", maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres", maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas", monthly: "Mensualmente", quarterly: "Trimestral", timeFrom: "Hora desde", timeTo: "Hora hasta", weekly: "Semanal" },
|
|
@@ -134,7 +134,7 @@ const da = {
|
|
|
134
134
|
"it-IT": { "DD-MM-YYYY": "GG-MM-AAAA", "MM-DD-YYYY": "MM-GG-AAAA", "YYYY-MM-DD": "AAAA-MM-GG", customRange: "Intervallo personalizzato", daily: "Giornaliero", dateFrom: "Data da", dateTo: "Da", lastMonth: "Il mese scorso", lastSevenDays: "Ultimi 7 giorni", lastThreeMonths: "Gli ultimi tre mesi", maxRangeDays: "Puoi selezionare fino a {count} giorno | Puoi selezionare fino a {count} giorni", maxRangeMonths: "Puoi selezionare fino a {count} mese | Puoi selezionare fino a {count} mesi", maxRangeQuarters: "Puoi selezionare fino a {count} trimestre | Puoi selezionare fino a {count} trimestri", maxRangeWeeks: "Puoi selezionare fino a {count} settimana | Puoi selezionare fino a {count} settimane", monthly: "Mensile", quarterly: "Trimestrale", timeFrom: "Tempo dal", timeTo: "Tempo fino al", weekly: "Settimanale" },
|
|
135
135
|
"ja-JP": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "終了日", lastMonth: "先月", lastSevenDays: "過去 7 日間", lastThreeMonths: "過去3か月", maxRangeDays: "{count}日間まで選択できます | {count}日間まで選択できます", maxRangeMonths: "{count}か月まで選択できます | {count}か月まで選択できます", maxRangeQuarters: "{count}四半期まで選択できます | {count}四半期まで選択できます", maxRangeWeeks: "{count}週間まで選択できます | {count}週間まで選択できます", monthly: "毎月", quarterly: "四半期ごと", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
|
|
136
136
|
"pt-BR": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Intervalo personalizado", daily: "Diário", dateFrom: "Data a partir de", dateTo: "Data até", lastMonth: "Último mês", lastSevenDays: "Últimos 7 dias", lastThreeMonths: "Últimos 3 meses", maxRangeDays: "Você pode selecionar até {count} dia | Você pode selecionar até {count} dias", maxRangeMonths: "Você pode selecionar até {count} mês | Você pode selecionar até {count} meses", maxRangeQuarters: "Você pode selecionar até {count} trimestre | Você pode selecionar até {count} trimestres", maxRangeWeeks: "Você pode selecionar até {count} semana | Você pode selecionar até {count} semanas", monthly: "Mensal", quarterly: "Trimestral", timeFrom: "Horário a partir de", timeTo: "Horário até", weekly: "Semanal" },
|
|
137
|
-
"zh-CN": { "DD-MM-YYYY": "日-月-年", "MM-DD-YYYY": "
|
|
137
|
+
"zh-CN": { "DD-MM-YYYY": "日-月-年", "MM-DD-YYYY": "月-日-年", "YYYY-MM-DD": "年-月-日", customRange: "自定义范围", daily: "每日", dateFrom: "日期自", dateTo: "日期至", lastMonth: "上个月", lastSevenDays: "最近 7 天", lastThreeMonths: "过去三个月", maxRangeDays: "您可以选择最多 {count} 天 | 您可以选择最多 {count} 天", maxRangeMonths: "您可以选择最多 {count} 个月 | 您可以选择最多 {count} 个月", maxRangeQuarters: "您最多可以选择 {count} 个季度 | 您最多可以选择 {count} 个季度", maxRangeWeeks: "您最多可以选择 {count} 周 | 您最多可以选择 {count} 周", monthly: "每月", quarterly: "每季度", timeFrom: "时间自", timeTo: "是时候", weekly: "每周" }
|
|
138
138
|
}, Dt = { class: "b-date-range-picker-calendar" }, pt = { class: "b-date-range-picker-calendar__form" }, vt = { key: 0 }, ft = {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "b-date-range-picker-calendar__calendars-container",
|
|
@@ -229,7 +229,7 @@ const da = {
|
|
|
229
229
|
weekly: "maxRangeWeeks",
|
|
230
230
|
monthly: "maxRangeMonths",
|
|
231
231
|
quarterly: "maxRangeQuarters"
|
|
232
|
-
}, a = r, l = p, v = Ea(), z = rt(v), { t:
|
|
232
|
+
}, a = r, l = p, v = Ea(), z = rt(v), { t: Y, tc: A } = qe({ messages: da }), { isTouchDevice: k } = st(), {
|
|
233
233
|
dateFormat: ne,
|
|
234
234
|
isFormatValid: R,
|
|
235
235
|
parseDate: g,
|
|
@@ -265,13 +265,13 @@ const da = {
|
|
|
265
265
|
)), se = c(() => ({
|
|
266
266
|
"b-date-range-picker-calendar__form-input-wrapper": a.allowTimeInput
|
|
267
267
|
})), oe = c(() => [
|
|
268
|
-
{ label:
|
|
268
|
+
{ label: Y("customRange"), value: i },
|
|
269
269
|
...a.quickSelectRanges ? a.quickSelectRanges : []
|
|
270
270
|
]), $ = c(
|
|
271
271
|
() => a.granularities?.find(({ type: e }) => e === n.granularity) || null
|
|
272
|
-
),
|
|
272
|
+
), Ye = c(
|
|
273
273
|
() => a.granularities?.map(({ type: e, disabled: t }) => ({
|
|
274
|
-
label:
|
|
274
|
+
label: Y(e),
|
|
275
275
|
value: e,
|
|
276
276
|
disabled: t
|
|
277
277
|
})) ?? []
|
|
@@ -287,7 +287,7 @@ const da = {
|
|
|
287
287
|
adjustEndDateInputForMonthly: U,
|
|
288
288
|
adjustStartDateInputForQuarterly: ee,
|
|
289
289
|
adjustEndDateInputForQuarterly: Ae
|
|
290
|
-
} =
|
|
290
|
+
} = Ga(a.firstDayOfWeek), { savedRanges: W, saveRange: ke, resetSavedRanges: me } = mt(), S = (e) => e ? re(e) : "", H = _(!1), X = _(!1), s = he({
|
|
291
291
|
startDate: a.dateFormData.startDate,
|
|
292
292
|
endDate: a.dateFormData.endDate,
|
|
293
293
|
startTime: a.dateFormData.startTime,
|
|
@@ -302,7 +302,7 @@ const da = {
|
|
|
302
302
|
return !0;
|
|
303
303
|
};
|
|
304
304
|
return Xe(e) && d();
|
|
305
|
-
}, o = c(() => a.variant === "month"), j = (e) => e ? o.value ?
|
|
305
|
+
}, o = c(() => a.variant === "month"), j = (e) => e ? o.value ? La(e) : Ja(e) : "", pe = c(() => j(n.startDate)), ca = c(() => j(n.endDate)), Be = c(() => k.value ? o.value ? "month" : "date" : "text"), ma = c(() => k.value ? pe.value : s.startDate), Da = c(() => k.value ? ca.value : s.endDate), O = (e, t) => !t || !Xe(t) || a.variant === "month" ? e : ta(new Date(e), t), pa = (e) => {
|
|
306
306
|
s.startTime = x(
|
|
307
307
|
a.min && a.allowTimeInput && q(a.min, e.startDate) ? a.min : h(e.startDate)
|
|
308
308
|
), s.endTime = x(
|
|
@@ -447,9 +447,9 @@ const da = {
|
|
|
447
447
|
Ma(s.endDate);
|
|
448
448
|
}, Ve = (e) => {
|
|
449
449
|
C(e);
|
|
450
|
-
}, Ya = () => {
|
|
451
|
-
l(m.ERROR, { ...s });
|
|
452
450
|
}, Ta = () => {
|
|
451
|
+
l(m.ERROR, { ...s });
|
|
452
|
+
}, Ya = () => {
|
|
453
453
|
const e = s.startTime;
|
|
454
454
|
if (!De(e, s.startDate)) {
|
|
455
455
|
l(m.ERROR, { ...s });
|
|
@@ -556,16 +556,16 @@ const da = {
|
|
|
556
556
|
}, [
|
|
557
557
|
L("div", pt, [
|
|
558
558
|
u(z)("title") ? Qe(e.$slots, "title", { key: 0 }, void 0, !0) : F("", !0),
|
|
559
|
-
r.quickSelectRanges ? (I(), P(
|
|
559
|
+
r.quickSelectRanges ? (I(), P(Ca, {
|
|
560
560
|
key: 1,
|
|
561
|
-
"aria-label": u(
|
|
561
|
+
"aria-label": u(Y)("customRange"),
|
|
562
562
|
items: oe.value,
|
|
563
563
|
"model-value": E.value,
|
|
564
564
|
"onUpdate:modelValue": Sa
|
|
565
565
|
}, null, 8, ["aria-label", "items", "model-value"])) : F("", !0),
|
|
566
566
|
r.granularities ? (I(), P(u(nt), {
|
|
567
567
|
key: 2,
|
|
568
|
-
items:
|
|
568
|
+
items: Ye.value,
|
|
569
569
|
"model-value": n.granularity,
|
|
570
570
|
"full-width": "",
|
|
571
571
|
"onUpdate:modelValue": wa
|
|
@@ -594,7 +594,7 @@ const da = {
|
|
|
594
594
|
class: ye(se.value)
|
|
595
595
|
}, [
|
|
596
596
|
V(u(Ke), {
|
|
597
|
-
"aria-label": u(
|
|
597
|
+
"aria-label": u(Y)("dateFrom"),
|
|
598
598
|
"model-value": ma.value,
|
|
599
599
|
error: H.value,
|
|
600
600
|
class: "b-date-range-picker-calendar__form-input",
|
|
@@ -605,19 +605,19 @@ const da = {
|
|
|
605
605
|
u(k) ? void 0 : {
|
|
606
606
|
name: "description",
|
|
607
607
|
fn: J(() => [
|
|
608
|
-
te(ge(u(
|
|
608
|
+
te(ge(u(Y)(u(ne))), 1)
|
|
609
609
|
]),
|
|
610
610
|
key: "0"
|
|
611
611
|
}
|
|
612
612
|
]), 1032, ["aria-label", "model-value", "error", "type"]),
|
|
613
613
|
r.allowTimeInput ? (I(), P(u(He), {
|
|
614
614
|
key: 0,
|
|
615
|
-
"aria-label": u(
|
|
615
|
+
"aria-label": u(Y)("timeFrom"),
|
|
616
616
|
"model-value": s.startTime,
|
|
617
617
|
class: "b-date-range-picker-calendar__form-input",
|
|
618
618
|
"onUpdate:modelValue": Aa,
|
|
619
|
-
"onInput:error":
|
|
620
|
-
"onInput:valid":
|
|
619
|
+
"onInput:error": Ta,
|
|
620
|
+
"onInput:valid": Ya
|
|
621
621
|
}, null, 8, ["aria-label", "model-value"])) : F("", !0)
|
|
622
622
|
], 2)
|
|
623
623
|
]),
|
|
@@ -637,7 +637,7 @@ const da = {
|
|
|
637
637
|
}, [
|
|
638
638
|
V(u(Ke), {
|
|
639
639
|
class: "b-date-range-picker-calendar__form-input",
|
|
640
|
-
"aria-label": u(
|
|
640
|
+
"aria-label": u(Y)("dateTo"),
|
|
641
641
|
"model-value": Da.value,
|
|
642
642
|
error: X.value,
|
|
643
643
|
type: Be.value,
|
|
@@ -647,14 +647,14 @@ const da = {
|
|
|
647
647
|
u(k) ? void 0 : {
|
|
648
648
|
name: "description",
|
|
649
649
|
fn: J(() => [
|
|
650
|
-
te(ge(u(
|
|
650
|
+
te(ge(u(Y)(u(ne))), 1)
|
|
651
651
|
]),
|
|
652
652
|
key: "0"
|
|
653
653
|
}
|
|
654
654
|
]), 1032, ["aria-label", "model-value", "error", "type"]),
|
|
655
655
|
r.allowTimeInput ? (I(), P(u(He), {
|
|
656
656
|
key: 0,
|
|
657
|
-
"aria-label": u(
|
|
657
|
+
"aria-label": u(Y)("timeTo"),
|
|
658
658
|
"model-value": s.endTime,
|
|
659
659
|
class: "b-date-range-picker-calendar__form-input",
|
|
660
660
|
"onUpdate:modelValue": ka,
|
|
@@ -698,16 +698,16 @@ const da = {
|
|
|
698
698
|
"it-IT": { apply: "Applica", cancel: "Annulla", dateRangePicker: "Selettore intervallo di date {name}", provideDateInAFormat: "Inserisci la data nel formato AAAA-MM-GG", quarter: "Q{quarter} {year}", selectDate: "Seleziona una data", selectDateRange: "Seleziona un intervallo di date", selectedDateIsNotAvailable: "La data selezionata non è disponibile" },
|
|
699
699
|
"ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
|
|
700
700
|
"pt-BR": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Seletor de intervalo de datas {name}", provideDateInAFormat: "Inclua a data no formato AAAA-MM-DD", quarter: "{quarter}º trimestre de {year}", selectDate: "Selecione uma data", selectDateRange: "Selecione um intervalo de datas", selectedDateIsNotAvailable: "A data selecionada não está disponível" },
|
|
701
|
-
"zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", provideDateInAFormat: "
|
|
701
|
+
"zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", provideDateInAFormat: "提供年-月-日格式的日期", quarter: "{year} {quarter} 季度", selectDate: "选择日期", selectDateRange: "选择日期范围", selectedDateIsNotAvailable: "所选日期不可用" }
|
|
702
702
|
}, ht = ({
|
|
703
703
|
datePickerValue: r,
|
|
704
704
|
isDateIncorrect: p,
|
|
705
|
-
quickSelectRanges:
|
|
705
|
+
quickSelectRanges: T,
|
|
706
706
|
isMonthVariant: i,
|
|
707
707
|
withTimeInput: D,
|
|
708
708
|
placeholder: a
|
|
709
709
|
}) => {
|
|
710
|
-
const { locale: l, t: v } = qe({ messages: Pe }), { dateToInputDateString: z } = _e(),
|
|
710
|
+
const { locale: l, t: v } = qe({ messages: Pe }), { dateToInputDateString: z } = _e(), Y = (R) => !!R && !isNaN(R.getTime()), A = he({
|
|
711
711
|
startDate: null,
|
|
712
712
|
endDate: null,
|
|
713
713
|
startTime: null,
|
|
@@ -726,8 +726,8 @@ const da = {
|
|
|
726
726
|
return `${A.startDate || ""} - ${A.endDate || ""}`;
|
|
727
727
|
if (!r.value || !r.value.startDate && !r.value.endDate)
|
|
728
728
|
return a?.value || v("selectDateRange");
|
|
729
|
-
if (
|
|
730
|
-
const g =
|
|
729
|
+
if (T.value?.length) {
|
|
730
|
+
const g = T.value.find(({ value: C }) => C === r.value?.range);
|
|
731
731
|
if (g)
|
|
732
732
|
return g.label;
|
|
733
733
|
}
|
|
@@ -738,7 +738,7 @@ const da = {
|
|
|
738
738
|
const re = v("quarter", { quarter: $e(C), year: sa(C) });
|
|
739
739
|
return `${Q} - ${re}`;
|
|
740
740
|
}
|
|
741
|
-
if (!
|
|
741
|
+
if (!Y(r.value.startDate) || !Y(r.value.endDate))
|
|
742
742
|
return `${A.startDate || ""} - ${A.endDate || ""}`;
|
|
743
743
|
let R = i?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
|
|
744
744
|
return D.value && (R = {
|
|
@@ -747,7 +747,7 @@ const da = {
|
|
|
747
747
|
minute: "numeric",
|
|
748
748
|
second: "numeric",
|
|
749
749
|
hour12: !1
|
|
750
|
-
}),
|
|
750
|
+
}), $a(l.value, R).formatRange(
|
|
751
751
|
r.value.startDate,
|
|
752
752
|
r.value.endDate
|
|
753
753
|
);
|
|
@@ -756,7 +756,7 @@ const da = {
|
|
|
756
756
|
// Methods
|
|
757
757
|
formatTextInputDisplayValue: () => ""
|
|
758
758
|
};
|
|
759
|
-
},
|
|
759
|
+
}, Tt = { class: "b-date-range-picker" }, Yt = { class: "b-date-range-picker__footer" }, Rt = {
|
|
760
760
|
i18n: { messages: Pe },
|
|
761
761
|
name: "bento-date-range-picker",
|
|
762
762
|
model: { prop: "modelValue" }
|
|
@@ -789,7 +789,7 @@ const da = {
|
|
|
789
789
|
},
|
|
790
790
|
emits: ["update:model-value", "input"],
|
|
791
791
|
setup(r, { emit: p }) {
|
|
792
|
-
const
|
|
792
|
+
const T = p, i = r, D = xa(), { t: a } = qe({ messages: Pe }), { dateToInputDateString: l } = _e(), v = le("bento-date-range-picker-container"), z = le("bento-date-range-picker-label"), Y = le("bento-date-range-picker-description"), A = le("bento-date-range-picker-error"), k = le("bento-date-range-picker-date-error"), ne = c(() => i.label || a("dateRangePicker", { name: v })), { resolvedFirstDayOfWeek: R } = Ka(Ie(i, "firstDayOfWeek")), g = qa({
|
|
793
793
|
none: 0,
|
|
794
794
|
one: 710,
|
|
795
795
|
// width of date range picker with one panes
|
|
@@ -818,7 +818,7 @@ const da = {
|
|
|
818
818
|
timeDifference: j
|
|
819
819
|
}
|
|
820
820
|
};
|
|
821
|
-
})), re = c(() => i.label ? z : D?.["aria-labelledby"] ?? null), b = _(!1), Z = _(null), w = _(!1), { isReadOnly: n } =
|
|
821
|
+
})), re = c(() => i.label ? z : D?.["aria-labelledby"] ?? null), b = _(!1), Z = _(null), w = _(!1), { isReadOnly: n } = Za(Ie(i, "readonly")), { emitValue: E } = at(T);
|
|
822
822
|
Me(
|
|
823
823
|
() => i.disabled,
|
|
824
824
|
() => {
|
|
@@ -827,15 +827,15 @@ const da = {
|
|
|
827
827
|
);
|
|
828
828
|
const se = c(() => i.modelValue || i.value), oe = c(() => i.hasActions ? !ee.value && b.value : b.value), $ = c(() => ({
|
|
829
829
|
"b-date-range-picker__description--error": !!i.errorMessage || oe.value
|
|
830
|
-
})),
|
|
830
|
+
})), Ye = c(() => i.variant === "month"), ue = c(() => i.allowTimeInput && i.variant !== "month"), { dateDisplayValue: f, textInputDisplayValue: M } = ht({
|
|
831
831
|
datePickerValue: se,
|
|
832
832
|
isDateIncorrect: b,
|
|
833
833
|
quickSelectRanges: Q,
|
|
834
|
-
isMonthVariant:
|
|
834
|
+
isMonthVariant: Ye,
|
|
835
835
|
withTimeInput: ue,
|
|
836
836
|
placeholder: Ie(i, "placeholder")
|
|
837
837
|
}), Re = c(
|
|
838
|
-
() => `${i.description ?
|
|
838
|
+
() => `${i.description ? Y : ""} ${i.errorMessage ? A : ""} ${b.value ? k : ""}`.trim() || null
|
|
839
839
|
), K = () => {
|
|
840
840
|
w.value = !1;
|
|
841
841
|
}, be = () => {
|
|
@@ -900,7 +900,7 @@ const da = {
|
|
|
900
900
|
}, De = (o) => {
|
|
901
901
|
o && (M.startDate = l(o.startDate), M.endDate = l(o.endDate), M.startTime = x(o.startDate), M.endTime = x(o.endDate), U.value = o);
|
|
902
902
|
};
|
|
903
|
-
return (o, j) => Oa((I(), fe("div",
|
|
903
|
+
return (o, j) => Oa((I(), fe("div", Tt, [
|
|
904
904
|
o.label ? (I(), P(u(lt), {
|
|
905
905
|
key: 0,
|
|
906
906
|
id: u(z),
|
|
@@ -912,7 +912,7 @@ const da = {
|
|
|
912
912
|
L("div", {
|
|
913
913
|
onKeydown: Ue(H, ["enter"])
|
|
914
914
|
}, [
|
|
915
|
-
V(u(
|
|
915
|
+
V(u(Na), {
|
|
916
916
|
ref_key: "inputContainerRef",
|
|
917
917
|
ref: Z,
|
|
918
918
|
"always-combobox-is-input": "",
|
|
@@ -945,7 +945,7 @@ const da = {
|
|
|
945
945
|
}, null, 8, ["id", "error-message"])) : F("", !0),
|
|
946
946
|
o.description ? (I(), P(u(Oe), {
|
|
947
947
|
key: 3,
|
|
948
|
-
id: u(
|
|
948
|
+
id: u(Y),
|
|
949
949
|
class: ye(["b-date-range-picker__description", $.value]),
|
|
950
950
|
el: "span"
|
|
951
951
|
}, {
|
|
@@ -992,7 +992,7 @@ const da = {
|
|
|
992
992
|
name: "actions",
|
|
993
993
|
fn: J(() => [
|
|
994
994
|
V(u(_a)),
|
|
995
|
-
L("div",
|
|
995
|
+
L("div", Yt, [
|
|
996
996
|
V(u(Ba), {
|
|
997
997
|
actions: ke.value,
|
|
998
998
|
layout: u(it).SPACE_BETWEEN
|
|
@@ -1006,7 +1006,7 @@ const da = {
|
|
|
1006
1006
|
_: 1
|
|
1007
1007
|
}, 8, ["id", "open", "target-element", "aria-label"])) : F("", !0)
|
|
1008
1008
|
])), [
|
|
1009
|
-
[u(
|
|
1009
|
+
[u(et), K]
|
|
1010
1010
|
]);
|
|
1011
1011
|
}
|
|
1012
1012
|
}), en = /* @__PURE__ */ ua(bt, [["__scopeId", "data-v-e00826fe"]]);
|
|
@@ -1016,4 +1016,4 @@ export {
|
|
|
1016
1016
|
dt as a,
|
|
1017
1017
|
we as i
|
|
1018
1018
|
};
|
|
1019
|
-
//# sourceMappingURL=date-range-picker.
|
|
1019
|
+
//# sourceMappingURL=date-range-picker.BigC6wm2.js.map
|