@solfacil/girassol 0.26.0 → 0.26.2
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/README.md +0 -1
- package/dist/girassol.es.js +145 -143
- package/dist/girassol.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/girassol.es.js
CHANGED
|
@@ -1622,7 +1622,7 @@ function tc(e, t, n) {
|
|
|
1622
1622
|
const de = u(P == null ? void 0 : P.schema);
|
|
1623
1623
|
return de && !zn(de) && (z = gf(de, u(e)) || z), zn(z) || hn(z) || Array.isArray(z) ? z : Qs(z);
|
|
1624
1624
|
});
|
|
1625
|
-
async function
|
|
1625
|
+
async function ae(z) {
|
|
1626
1626
|
var de, ye;
|
|
1627
1627
|
return P != null && P.validateSchema ? (de = (await P.validateSchema(z)).results[u(e)]) !== null && de !== void 0 ? de : { valid: !0, errors: [] } : Hs(T.value, R.value, {
|
|
1628
1628
|
name: u(s) || u(e),
|
|
@@ -1630,7 +1630,7 @@ function tc(e, t, n) {
|
|
|
1630
1630
|
bails: r
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
|
-
const G = mr(async () => (D.pending = !0, D.validated = !0,
|
|
1633
|
+
const G = mr(async () => (D.pending = !0, D.validated = !0, ae("validated-only")), (z) => (x && (z.valid = !0, z.errors = []), L({ errors: z.errors }), D.pending = !1, z)), j = mr(async () => ae("silent"), (z) => (x && (z.valid = !0), D.valid = z.valid, z));
|
|
1634
1634
|
function B(z) {
|
|
1635
1635
|
return (z == null ? void 0 : z.mode) === "silent" ? j() : G();
|
|
1636
1636
|
}
|
|
@@ -1673,7 +1673,7 @@ function tc(e, t, n) {
|
|
|
1673
1673
|
function A(z) {
|
|
1674
1674
|
T.value = z;
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function ie(z) {
|
|
1677
1677
|
L({ errors: Array.isArray(z) ? z : [z] });
|
|
1678
1678
|
}
|
|
1679
1679
|
const se = {
|
|
@@ -1696,7 +1696,7 @@ function tc(e, t, n) {
|
|
|
1696
1696
|
handleBlur: X,
|
|
1697
1697
|
setState: L,
|
|
1698
1698
|
setTouched: m,
|
|
1699
|
-
setErrors:
|
|
1699
|
+
setErrors: ie,
|
|
1700
1700
|
setValue: A
|
|
1701
1701
|
};
|
|
1702
1702
|
if (Ss(Zd, se), dt(t) && typeof u(t) != "function" && $e(t, (z, de) => {
|
|
@@ -1879,9 +1879,9 @@ oe({
|
|
|
1879
1879
|
}, W = function(V) {
|
|
1880
1880
|
T(V), t.emit("update:modelValue", s.value);
|
|
1881
1881
|
}, D = O(() => {
|
|
1882
|
-
const { validateOnInput: $, validateOnChange: V, validateOnBlur: X, validateOnModelUpdate: R } = hf(e),
|
|
1882
|
+
const { validateOnInput: $, validateOnChange: V, validateOnBlur: X, validateOnModelUpdate: R } = hf(e), ae = [d, t.attrs.onBlur, X ? y : void 0].filter(Boolean), G = [(m) => h(m, $), t.attrs.onInput].filter(Boolean), j = [(m) => h(m, V), t.attrs.onChange].filter(Boolean), B = {
|
|
1883
1883
|
name: e.name,
|
|
1884
|
-
onBlur:
|
|
1884
|
+
onBlur: ae,
|
|
1885
1885
|
onInput: G,
|
|
1886
1886
|
onChange: j
|
|
1887
1887
|
};
|
|
@@ -1961,7 +1961,7 @@ function wf(e) {
|
|
|
1961
1961
|
}, {})), x = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), h = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: T, originalInitialValues: W, setInitialValues: D } = jf(r, c, e == null ? void 0 : e.initialValues), L = Nf(r, c, W, I), $ = O(() => [...i, ...Ke(r.value)].reduce((U, ee) => {
|
|
1962
1962
|
const ge = Fe(c, ee);
|
|
1963
1963
|
return Zt(U, ee, ge), U;
|
|
1964
|
-
}, {})), V = e == null ? void 0 : e.validationSchema, X = _o(Bt, 5), R = _o(Bt, 5),
|
|
1964
|
+
}, {})), V = e == null ? void 0 : e.validationSchema, X = _o(Bt, 5), R = _o(Bt, 5), ae = mr(async (U) => await U === "silent" ? X() : R(), (U, [ee]) => {
|
|
1965
1965
|
const ge = E.fieldsByPath.value || {}, De = Ke(E.errorBag.value);
|
|
1966
1966
|
return [
|
|
1967
1967
|
.../* @__PURE__ */ new Set([...Ke(U.results), ...Ke(ge), ...De])
|
|
@@ -1992,7 +1992,7 @@ function wf(e) {
|
|
|
1992
1992
|
setFieldError: _,
|
|
1993
1993
|
setTouched: de,
|
|
1994
1994
|
setFieldTouched: z,
|
|
1995
|
-
setValues:
|
|
1995
|
+
setValues: ie,
|
|
1996
1996
|
setFieldValue: A,
|
|
1997
1997
|
resetForm: ye
|
|
1998
1998
|
});
|
|
@@ -2024,14 +2024,14 @@ function wf(e) {
|
|
|
2024
2024
|
isSubmitting: l,
|
|
2025
2025
|
fieldArrays: s,
|
|
2026
2026
|
keepValuesOnUnmount: h,
|
|
2027
|
-
validateSchema: u(V) ?
|
|
2027
|
+
validateSchema: u(V) ? ae : void 0,
|
|
2028
2028
|
validate: Ne,
|
|
2029
2029
|
register: qe,
|
|
2030
2030
|
unregister: he,
|
|
2031
2031
|
setFieldErrorBag: d,
|
|
2032
2032
|
validateField: ze,
|
|
2033
2033
|
setFieldValue: A,
|
|
2034
|
-
setValues:
|
|
2034
|
+
setValues: ie,
|
|
2035
2035
|
setErrors: Q,
|
|
2036
2036
|
setFieldError: _,
|
|
2037
2037
|
setFieldTouched: z,
|
|
@@ -2075,7 +2075,7 @@ function wf(e) {
|
|
|
2075
2075
|
let Te = Se;
|
|
2076
2076
|
!m(Ae) && Ae.type === "checkbox" && !ge && !a && (Te = Ye(fr(Fe(c, U), ee, u(Ae.uncheckedValue)))), Zt(c, U, Te);
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function ie(U) {
|
|
2079
2079
|
Ke(c).forEach((ee) => {
|
|
2080
2080
|
delete c[ee];
|
|
2081
2081
|
}), Ke(U).forEach((ee) => {
|
|
@@ -2105,7 +2105,7 @@ function wf(e) {
|
|
|
2105
2105
|
function ye(U) {
|
|
2106
2106
|
a = !0, b((ge) => ge.resetField());
|
|
2107
2107
|
const ee = U != null && U.values ? U.values : W.value;
|
|
2108
|
-
D(ee),
|
|
2108
|
+
D(ee), ie(ee), U != null && U.touched && de(U.touched), Q((U == null ? void 0 : U.errors) || {}), o.value = (U == null ? void 0 : U.submitCount) || 0, Nt(() => {
|
|
2109
2109
|
a = !1;
|
|
2110
2110
|
});
|
|
2111
2111
|
}
|
|
@@ -2334,14 +2334,14 @@ oe({
|
|
|
2334
2334
|
initialTouched: e.initialTouched,
|
|
2335
2335
|
validateOnMount: e.validateOnMount,
|
|
2336
2336
|
keepValuesOnUnmount: a
|
|
2337
|
-
}), D = p((R, { evt:
|
|
2338
|
-
Rs(
|
|
2337
|
+
}), D = p((R, { evt: ae }) => {
|
|
2338
|
+
Rs(ae) && ae.target.submit();
|
|
2339
2339
|
}, e.onInvalidSubmit), L = e.onSubmit ? p(e.onSubmit, e.onInvalidSubmit) : D;
|
|
2340
2340
|
function $(R) {
|
|
2341
2341
|
ro(R) && R.preventDefault(), I(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
|
|
2342
2342
|
}
|
|
2343
|
-
function V(R,
|
|
2344
|
-
return p(typeof R == "function" && !
|
|
2343
|
+
function V(R, ae) {
|
|
2344
|
+
return p(typeof R == "function" && !ae ? R : ae, e.onInvalidSubmit)(R);
|
|
2345
2345
|
}
|
|
2346
2346
|
function X() {
|
|
2347
2347
|
return {
|
|
@@ -2376,13 +2376,13 @@ oe({
|
|
|
2376
2376
|
validate: f,
|
|
2377
2377
|
validateField: d
|
|
2378
2378
|
}), function() {
|
|
2379
|
-
const
|
|
2379
|
+
const ae = e.as === "form" ? e.as : Dt(e.as), G = Za(ae, t, X);
|
|
2380
2380
|
if (!e.as)
|
|
2381
2381
|
return G;
|
|
2382
2382
|
const j = e.as === "form" ? {
|
|
2383
2383
|
novalidate: !0
|
|
2384
2384
|
} : {};
|
|
2385
|
-
return Gi(
|
|
2385
|
+
return Gi(ae, Object.assign(Object.assign(Object.assign({}, j), t.attrs), { onSubmit: L, onReset: $ }), G);
|
|
2386
2386
|
};
|
|
2387
2387
|
}
|
|
2388
2388
|
});
|
|
@@ -3274,7 +3274,7 @@ const Mm = ["id", "data-testid", "aria-labelledby"], hm = ["id", "data-testid"],
|
|
|
3274
3274
|
direction: { default: "row" },
|
|
3275
3275
|
showMaxItems: null,
|
|
3276
3276
|
showMaxItemsStep: { default: 10 },
|
|
3277
|
-
showMoreLegend: { default: "Mostrar
|
|
3277
|
+
showMoreLegend: { default: "Mostrar mais" },
|
|
3278
3278
|
useField: null,
|
|
3279
3279
|
rules: null,
|
|
3280
3280
|
opts: null
|
|
@@ -3355,15 +3355,17 @@ const Mm = ["id", "data-testid", "aria-labelledby"], hm = ["id", "data-testid"],
|
|
|
3355
3355
|
}), null, 16, ["id", "class", "label", "name", "value", "checked", "error", "aria-invalid", "aria-describedby", "onChange"])) : k("", !0)
|
|
3356
3356
|
]);
|
|
3357
3357
|
}), 128)),
|
|
3358
|
-
Y(p.$slots, "showMoreLabel", {
|
|
3359
|
-
|
|
3360
|
-
|
|
3358
|
+
u(r) ? Y(p.$slots, "showMoreLabel", {
|
|
3359
|
+
key: 0,
|
|
3360
|
+
updateCurrentStep: M
|
|
3361
|
+
}, () => [
|
|
3362
|
+
S("button", {
|
|
3361
3363
|
class: "show-more",
|
|
3362
3364
|
onClick: M
|
|
3363
3365
|
}, [
|
|
3364
3366
|
S("span", pm, re(e.showMoreLegend), 1)
|
|
3365
|
-
])
|
|
3366
|
-
])
|
|
3367
|
+
])
|
|
3368
|
+
]) : k("", !0)
|
|
3367
3369
|
], 64)) : (g(!0), v(Me, { key: 1 }, xe(e.checkboxes, (P, x) => {
|
|
3368
3370
|
var h;
|
|
3369
3371
|
return g(), v("li", { key: x }, [
|
|
@@ -4005,7 +4007,7 @@ const mo = { name: "material-symbols-close-rounded", render: fy }, my = ["data-t
|
|
|
4005
4007
|
function R() {
|
|
4006
4008
|
a.value = !1, r.value = "", V();
|
|
4007
4009
|
}
|
|
4008
|
-
function
|
|
4010
|
+
function ae(b) {
|
|
4009
4011
|
return (_) => b === "search" ? P.value = _ == null ? void 0 : _.input : x.value = _ == null ? void 0 : _.list;
|
|
4010
4012
|
}
|
|
4011
4013
|
function G() {
|
|
@@ -4073,7 +4075,7 @@ const mo = { name: "material-symbols-close-rounded", render: fy }, my = ["data-t
|
|
|
4073
4075
|
select: p,
|
|
4074
4076
|
selected: e.selected
|
|
4075
4077
|
}, () => {
|
|
4076
|
-
var A,
|
|
4078
|
+
var A, ie, se;
|
|
4077
4079
|
return [
|
|
4078
4080
|
e.multiple && Array.isArray(u(s)) && ((A = u(s)) == null ? void 0 : A.length) ? (g(), v("div", gy, [
|
|
4079
4081
|
(g(!0), v(Me, null, xe(u(s), (Z, z) => (g(), te(Bi, {
|
|
@@ -4091,7 +4093,7 @@ const mo = { name: "material-symbols-close-rounded", render: fy }, my = ["data-t
|
|
|
4091
4093
|
class: "min-w-3xs text-left",
|
|
4092
4094
|
tabindex: "-1"
|
|
4093
4095
|
}, re(G()), 9, vy)),
|
|
4094
|
-
e.multiple && Array.isArray(u(s)) && ((
|
|
4096
|
+
e.multiple && Array.isArray(u(s)) && ((ie = u(s)) == null ? void 0 : ie.length) > 1 ? (g(), te(Ee, {
|
|
4095
4097
|
key: 2,
|
|
4096
4098
|
id: `select-${e.id}-clear-all`,
|
|
4097
4099
|
class: "clear-button",
|
|
@@ -4134,7 +4136,7 @@ const mo = { name: "material-symbols-close-rounded", render: fy }, my = ["data-t
|
|
|
4134
4136
|
}, [
|
|
4135
4137
|
le(za, {
|
|
4136
4138
|
id: `select-search-${e.id}`,
|
|
4137
|
-
ref:
|
|
4139
|
+
ref: ae("search"),
|
|
4138
4140
|
modelValue: r.value,
|
|
4139
4141
|
"onUpdate:modelValue": _[0] || (_[0] = (A) => r.value = A),
|
|
4140
4142
|
role: "combobox",
|
|
@@ -4151,8 +4153,8 @@ const mo = { name: "material-symbols-close-rounded", render: fy }, my = ["data-t
|
|
|
4151
4153
|
onClick: _[1] || (_[1] = _e(() => {
|
|
4152
4154
|
}, ["stop"])),
|
|
4153
4155
|
onInput: _[2] || (_[2] = (A) => {
|
|
4154
|
-
var
|
|
4155
|
-
return t("search", (
|
|
4156
|
+
var ie;
|
|
4157
|
+
return t("search", (ie = A.target) == null ? void 0 : ie.value);
|
|
4156
4158
|
})
|
|
4157
4159
|
}, null, 8, ["id", "modelValue", "placeholder", "aria-expanded", "aria-owns", "aria-controls", "aria-activedescendant", "aria-labelledby"]),
|
|
4158
4160
|
le(u(iy), {
|
|
@@ -4163,7 +4165,7 @@ const mo = { name: "material-symbols-close-rounded", render: fy }, my = ["data-t
|
|
|
4163
4165
|
py,
|
|
4164
4166
|
le(qm, {
|
|
4165
4167
|
id: e.id,
|
|
4166
|
-
ref:
|
|
4168
|
+
ref: ae("list"),
|
|
4167
4169
|
options: u(l),
|
|
4168
4170
|
name: u(o),
|
|
4169
4171
|
multiple: e.multiple,
|
|
@@ -5057,11 +5059,11 @@ const sc = { name: "material-symbols-more-vert", render: VI }, RI = ["id", "data
|
|
|
5057
5059
|
return (b = i.headers && ((N = i.headers[m]) == null ? void 0 : N.text)) != null ? b : m;
|
|
5058
5060
|
}
|
|
5059
5061
|
function I(m) {
|
|
5060
|
-
var N, b, _, Q, A,
|
|
5062
|
+
var N, b, _, Q, A, ie, se, Z, z;
|
|
5061
5063
|
if ((N = i.headers) != null && N[m]) {
|
|
5062
5064
|
if (((_ = (b = i.headers) == null ? void 0 : b[m]) == null ? void 0 : _.width) && o.value)
|
|
5063
5065
|
return `--basis-width: ${(A = (Q = i.headers) == null ? void 0 : Q[m]) == null ? void 0 : A.width}; --shrink: 0;`;
|
|
5064
|
-
if (((se = (
|
|
5066
|
+
if (((se = (ie = i.headers) == null ? void 0 : ie[m]) == null ? void 0 : se.mobileWidth) && !o.value)
|
|
5065
5067
|
return `--basis-width: ${(z = (Z = i.headers) == null ? void 0 : Z[m]) == null ? void 0 : z.mobileWidth}; --shrink: 0;`;
|
|
5066
5068
|
}
|
|
5067
5069
|
}
|
|
@@ -5108,12 +5110,12 @@ const sc = { name: "material-symbols-more-vert", render: VI }, RI = ["id", "data
|
|
|
5108
5110
|
}
|
|
5109
5111
|
return !1;
|
|
5110
5112
|
}
|
|
5111
|
-
function
|
|
5113
|
+
function ae(m) {
|
|
5112
5114
|
X.value = m, n("listitem:selected", m), n("update:selected", X.value);
|
|
5113
5115
|
}
|
|
5114
5116
|
function G(m) {
|
|
5115
|
-
const N = i.dataIdentifier.key, b = m[N], _ = Array.isArray(X.value) ? X.value : [], Q = R(m) ? _ == null ? void 0 : _.filter((
|
|
5116
|
-
X.value =
|
|
5117
|
+
const N = i.dataIdentifier.key, b = m[N], _ = Array.isArray(X.value) ? X.value : [], Q = _.concat(m), A = R(m) ? _ == null ? void 0 : _.filter((ie) => ie[N] !== b) : Q;
|
|
5118
|
+
X.value = A, n("listitem:selected", m), n("update:selected", X.value);
|
|
5117
5119
|
}
|
|
5118
5120
|
function j() {
|
|
5119
5121
|
const m = Object.keys(i.data[0]).includes(i.dataIdentifier.key);
|
|
@@ -5157,11 +5159,11 @@ const sc = { name: "material-symbols-more-vert", render: VI }, RI = ["id", "data
|
|
|
5157
5159
|
"onListitem:click": (Q) => n("listitem:click", { ...b, index: _ })
|
|
5158
5160
|
}, nt({
|
|
5159
5161
|
selectable: J(({ data: Q, label: A }) => {
|
|
5160
|
-
var
|
|
5162
|
+
var ie, se, Z, z, de, ye;
|
|
5161
5163
|
return [
|
|
5162
5164
|
e.selectMode === "checkbox" ? (g(), te(on, {
|
|
5163
5165
|
key: 0,
|
|
5164
|
-
id: `listitem-${Q[(
|
|
5166
|
+
id: `listitem-${Q[(ie = e.dataIdentifier) == null ? void 0 : ie.key]}`,
|
|
5165
5167
|
"hide-label": !0,
|
|
5166
5168
|
label: A,
|
|
5167
5169
|
checked: R(b),
|
|
@@ -5177,7 +5179,7 @@ const sc = { name: "material-symbols-more-vert", render: VI }, RI = ["id", "data
|
|
|
5177
5179
|
checked: R(b),
|
|
5178
5180
|
value: `${Q[(de = e.dataIdentifier) == null ? void 0 : de.key]}`,
|
|
5179
5181
|
name: (ye = e.dataIdentifier.inputName) != null ? ye : e.id,
|
|
5180
|
-
onChange: (Ie) =>
|
|
5182
|
+
onChange: (Ie) => ae(Q)
|
|
5181
5183
|
}, null, 8, ["id", "label", "checked", "value", "name", "onChange"])) : k("", !0)
|
|
5182
5184
|
];
|
|
5183
5185
|
}),
|
|
@@ -5187,12 +5189,12 @@ const sc = { name: "material-symbols-more-vert", render: VI }, RI = ["id", "data
|
|
|
5187
5189
|
id: `listitem-${e.id}-${_}`,
|
|
5188
5190
|
position: "left"
|
|
5189
5191
|
}, {
|
|
5190
|
-
trigger: J(({ arias:
|
|
5192
|
+
trigger: J(({ arias: ie, id: se, toggle: Z }) => [
|
|
5191
5193
|
le(Ee, {
|
|
5192
5194
|
id: se,
|
|
5193
|
-
"aria-haspopup":
|
|
5194
|
-
"aria-expanded":
|
|
5195
|
-
role:
|
|
5195
|
+
"aria-haspopup": ie.ariaHaspopup,
|
|
5196
|
+
"aria-expanded": ie.ariaExpanded,
|
|
5197
|
+
role: ie.role,
|
|
5196
5198
|
size: "small",
|
|
5197
5199
|
variant: "tertiary",
|
|
5198
5200
|
"aria-label": Q.ariaLabel,
|
|
@@ -5226,10 +5228,10 @@ const sc = { name: "material-symbols-more-vert", render: VI }, RI = ["id", "data
|
|
|
5226
5228
|
} : void 0,
|
|
5227
5229
|
xe(b, (Q, A) => ({
|
|
5228
5230
|
name: `column:${A}`,
|
|
5229
|
-
fn: J((
|
|
5231
|
+
fn: J((ie) => [
|
|
5230
5232
|
Y(m.$slots, `column:${A}`, {
|
|
5231
|
-
data:
|
|
5232
|
-
index:
|
|
5233
|
+
data: ie.data,
|
|
5234
|
+
index: ie.index,
|
|
5233
5235
|
columnIndex: _,
|
|
5234
5236
|
renderHeader: d,
|
|
5235
5237
|
headers: e.headers
|
|
@@ -5238,24 +5240,24 @@ const sc = { name: "material-symbols-more-vert", render: VI }, RI = ["id", "data
|
|
|
5238
5240
|
})),
|
|
5239
5241
|
xe(b, (Q, A) => ({
|
|
5240
5242
|
name: `header:${A}`,
|
|
5241
|
-
fn: J((
|
|
5243
|
+
fn: J((ie) => [
|
|
5242
5244
|
Y(m.$slots, `header:${A}`, {
|
|
5243
|
-
data:
|
|
5244
|
-
index:
|
|
5245
|
-
columnIndex:
|
|
5246
|
-
renderHeader:
|
|
5247
|
-
headers:
|
|
5245
|
+
data: ie.data,
|
|
5246
|
+
index: ie.index,
|
|
5247
|
+
columnIndex: ie.columnIndex,
|
|
5248
|
+
renderHeader: ie.renderHeader,
|
|
5249
|
+
headers: ie.headers
|
|
5248
5250
|
})
|
|
5249
5251
|
])
|
|
5250
5252
|
})),
|
|
5251
5253
|
xe(b, (Q, A) => ({
|
|
5252
5254
|
name: `value:${A}`,
|
|
5253
|
-
fn: J((
|
|
5255
|
+
fn: J((ie) => [
|
|
5254
5256
|
Y(m.$slots, `value:${A}`, {
|
|
5255
|
-
data:
|
|
5256
|
-
index:
|
|
5257
|
-
columnIndex:
|
|
5258
|
-
isHighlight:
|
|
5257
|
+
data: ie.data,
|
|
5258
|
+
index: ie.index,
|
|
5259
|
+
columnIndex: ie.columnIndex,
|
|
5260
|
+
isHighlight: ie.isHighlight
|
|
5259
5261
|
})
|
|
5260
5262
|
])
|
|
5261
5263
|
}))
|
|
@@ -5727,14 +5729,14 @@ const yo = { name: "material-symbols-chevron-left-rounded", render: N0 }, j0 = [
|
|
|
5727
5729
|
function R() {
|
|
5728
5730
|
c.value = 0;
|
|
5729
5731
|
}
|
|
5730
|
-
function
|
|
5732
|
+
function ae() {
|
|
5731
5733
|
document.documentElement.style.setProperty(
|
|
5732
5734
|
"--viewport-100vh",
|
|
5733
5735
|
`${window.innerHeight}px`
|
|
5734
5736
|
);
|
|
5735
5737
|
}
|
|
5736
5738
|
function G(E) {
|
|
5737
|
-
|
|
5739
|
+
ae(), p.value = !!E, E ? setTimeout(() => I.value = !0, 90) : I.value = !1;
|
|
5738
5740
|
}
|
|
5739
5741
|
function j(E, m) {
|
|
5740
5742
|
E && setTimeout(() => {
|
|
@@ -7474,7 +7476,7 @@ function En(e, t, n) {
|
|
|
7474
7476
|
var X = we(e);
|
|
7475
7477
|
if (!_n(X))
|
|
7476
7478
|
throw new RangeError("Invalid time value");
|
|
7477
|
-
var R = Hi(X),
|
|
7479
|
+
var R = Hi(X), ae = gc(X, R), G = {
|
|
7478
7480
|
firstWeekContainsDate: $,
|
|
7479
7481
|
weekStartsOn: V,
|
|
7480
7482
|
locale: L,
|
|
@@ -7494,7 +7496,7 @@ function En(e, t, n) {
|
|
|
7494
7496
|
return dv(B);
|
|
7495
7497
|
var m = vg[E];
|
|
7496
7498
|
if (m)
|
|
7497
|
-
return !(n != null && n.useAdditionalWeekYearTokens) && wc(B) && Fi(B, t, String(e)), !(n != null && n.useAdditionalDayOfYearTokens) && bc(B) && Fi(B, t, String(e)), m(
|
|
7499
|
+
return !(n != null && n.useAdditionalWeekYearTokens) && wc(B) && Fi(B, t, String(e)), !(n != null && n.useAdditionalDayOfYearTokens) && bc(B) && Fi(B, t, String(e)), m(ae, B, L.localize, G);
|
|
7498
7500
|
if (E.match(cv))
|
|
7499
7501
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + E + "`");
|
|
7500
7502
|
return B;
|
|
@@ -11524,7 +11526,7 @@ function Hl(e, t, n, i) {
|
|
|
11524
11526
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
11525
11527
|
if (L === "")
|
|
11526
11528
|
return D === "" ? we(n) : new Date(NaN);
|
|
11527
|
-
var
|
|
11529
|
+
var ae = {
|
|
11528
11530
|
firstWeekContainsDate: X,
|
|
11529
11531
|
weekStartsOn: R,
|
|
11530
11532
|
locale: V
|
|
@@ -11555,7 +11557,7 @@ function Hl(e, t, n, i) {
|
|
|
11555
11557
|
token: ke,
|
|
11556
11558
|
fullToken: Ie
|
|
11557
11559
|
});
|
|
11558
|
-
var ze = qe.run(D, Ie, V.match,
|
|
11560
|
+
var ze = qe.run(D, Ie, V.match, ae);
|
|
11559
11561
|
if (!ze)
|
|
11560
11562
|
return {
|
|
11561
11563
|
v: new Date(NaN)
|
|
@@ -11601,14 +11603,14 @@ function Hl(e, t, n, i) {
|
|
|
11601
11603
|
}), Q = we(n);
|
|
11602
11604
|
if (isNaN(Q.getTime()))
|
|
11603
11605
|
return new Date(NaN);
|
|
11604
|
-
var A = gc(Q, Hi(Q)),
|
|
11606
|
+
var A = gc(Q, Hi(Q)), ie = {}, se = os(_), Z;
|
|
11605
11607
|
try {
|
|
11606
11608
|
for (se.s(); !(Z = se.n()).done; ) {
|
|
11607
11609
|
var z = Z.value;
|
|
11608
|
-
if (!z.validate(A,
|
|
11610
|
+
if (!z.validate(A, ae))
|
|
11609
11611
|
return new Date(NaN);
|
|
11610
|
-
var de = z.set(A,
|
|
11611
|
-
Array.isArray(de) ? (A = de[0], fv(
|
|
11612
|
+
var de = z.set(A, ie, ae);
|
|
11613
|
+
Array.isArray(de) ? (A = de[0], fv(ie, de[1])) : A = de;
|
|
11612
11614
|
}
|
|
11613
11615
|
} catch (ye) {
|
|
11614
11616
|
se.e(ye);
|
|
@@ -12452,8 +12454,8 @@ const Mw = (e, t = 3) => {
|
|
|
12452
12454
|
var N;
|
|
12453
12455
|
return (N = e.hideNavigation) == null ? void 0 : N.includes(m);
|
|
12454
12456
|
}), y = (m) => {
|
|
12455
|
-
const N = e.maxDate ? yt(o(m), o(K(e.maxDate))) : !1, b = e.minDate ? lt(o(m), o(K(e.minDate))) : !1, _ = P(m, e.disabledDates), Q = n.value.filters.months.map((z) => +z).includes(Be(m)), A = e.disabledWeekDays.length ? e.disabledWeekDays.some((z) => +z === mv(m)) : !1,
|
|
12456
|
-
return !(N || b || _ || Q || Z || A ||
|
|
12457
|
+
const N = e.maxDate ? yt(o(m), o(K(e.maxDate))) : !1, b = e.minDate ? lt(o(m), o(K(e.minDate))) : !1, _ = P(m, e.disabledDates), Q = n.value.filters.months.map((z) => +z).includes(Be(m)), A = e.disabledWeekDays.length ? e.disabledWeekDays.some((z) => +z === mv(m)) : !1, ie = e.allowedDates.length ? !e.allowedDates.some((z) => Ve(o(K(z)), o(m))) : !1, se = Ue(m), Z = se < +e.yearRange[0] || se > +e.yearRange[1];
|
|
12458
|
+
return !(N || b || _ || Q || Z || A || ie);
|
|
12457
12459
|
}, f = (m) => {
|
|
12458
12460
|
const N = {
|
|
12459
12461
|
hours: Et(K()),
|
|
@@ -12494,26 +12496,26 @@ const Mw = (e, t = 3) => {
|
|
|
12494
12496
|
}, R = (m, N) => {
|
|
12495
12497
|
const b = K(JSON.parse(JSON.stringify(m))), _ = [];
|
|
12496
12498
|
for (let Q = 0; Q < 7; Q++) {
|
|
12497
|
-
const A = Rt(b, Q),
|
|
12499
|
+
const A = Rt(b, Q), ie = Be(A) !== N;
|
|
12498
12500
|
_.push({
|
|
12499
|
-
text: e.hideOffsetDates &&
|
|
12501
|
+
text: e.hideOffsetDates && ie ? "" : A.getDate(),
|
|
12500
12502
|
value: A,
|
|
12501
|
-
current: !
|
|
12503
|
+
current: !ie,
|
|
12502
12504
|
classData: {}
|
|
12503
12505
|
});
|
|
12504
12506
|
}
|
|
12505
12507
|
return _;
|
|
12506
|
-
},
|
|
12507
|
-
const b = [], _ = K(o(new Date(N, m))), Q = K(o(new Date(N, m + 1, 0))), A = _r(_, { weekStartsOn: e.weekStart }),
|
|
12508
|
+
}, ae = (m, N) => {
|
|
12509
|
+
const b = [], _ = K(o(new Date(N, m))), Q = K(o(new Date(N, m + 1, 0))), A = _r(_, { weekStartsOn: e.weekStart }), ie = (se) => {
|
|
12508
12510
|
const Z = R(se, m);
|
|
12509
12511
|
if (b.push({ days: Z }), !b[b.length - 1].days.some(
|
|
12510
12512
|
(z) => Ve(Pt(z.value), Pt(Q))
|
|
12511
12513
|
)) {
|
|
12512
12514
|
const z = Rt(se, 7);
|
|
12513
|
-
|
|
12515
|
+
ie(z);
|
|
12514
12516
|
}
|
|
12515
12517
|
};
|
|
12516
|
-
if (
|
|
12518
|
+
if (ie(A), e.sixWeeks && b.length < 6) {
|
|
12517
12519
|
const se = 6 - b.length;
|
|
12518
12520
|
for (let Z = 1; Z <= se; Z++) {
|
|
12519
12521
|
const z = b[b.length - 1], de = z.days[z.days.length - 1], ye = R(Rt(de.value, 1), Be(_));
|
|
@@ -12541,7 +12543,7 @@ const Mw = (e, t = 3) => {
|
|
|
12541
12543
|
matchDate: P,
|
|
12542
12544
|
setDateMonthOrYear: x,
|
|
12543
12545
|
isValidTime: X,
|
|
12544
|
-
getCalendarDays:
|
|
12546
|
+
getCalendarDays: ae,
|
|
12545
12547
|
validateMonthYearInRange: (m, N, b, _) => {
|
|
12546
12548
|
let Q = !1;
|
|
12547
12549
|
return _ ? e.minDate && e.maxDate ? Q = E(m, N, b) : (e.minDate && j(m, N) || e.maxDate && B(m, N)) && (Q = !0) : Q = !0, Q;
|
|
@@ -12655,7 +12657,7 @@ const Mw = (e, t = 3) => {
|
|
|
12655
12657
|
if (e.timePicker)
|
|
12656
12658
|
return R();
|
|
12657
12659
|
if (e.monthPicker && !e.range)
|
|
12658
|
-
return
|
|
12660
|
+
return ae();
|
|
12659
12661
|
if (e.yearPicker && !e.range)
|
|
12660
12662
|
return G();
|
|
12661
12663
|
if (f.value.multiCalendars)
|
|
@@ -12695,7 +12697,7 @@ const Mw = (e, t = 3) => {
|
|
|
12695
12697
|
bt(K(), w[1], q[1], j(!1))
|
|
12696
12698
|
];
|
|
12697
12699
|
}
|
|
12698
|
-
},
|
|
12700
|
+
}, ae = () => {
|
|
12699
12701
|
d.value = c(K(), C.value(0), P.value(0));
|
|
12700
12702
|
}, G = () => {
|
|
12701
12703
|
d.value = K();
|
|
@@ -12747,7 +12749,7 @@ const Mw = (e, t = 3) => {
|
|
|
12747
12749
|
return Re <= +e.maxRange;
|
|
12748
12750
|
}
|
|
12749
12751
|
return !0;
|
|
12750
|
-
},
|
|
12752
|
+
}, ie = (w) => Array.isArray(d.value) && d.value.length === 2 ? e.fixedStart && (yt(w, d.value[0]) || Ve(w, d.value[0])) ? [d.value[0], w] : e.fixedEnd && (lt(w, d.value[1]) || Ve(w, d.value[1])) ? [w, d.value[1]] : d.value : [], se = () => {
|
|
12751
12753
|
e.autoApply && x.value && t("auto-apply");
|
|
12752
12754
|
}, Z = () => {
|
|
12753
12755
|
e.autoApply && t("select-date");
|
|
@@ -12760,7 +12762,7 @@ const Mw = (e, t = 3) => {
|
|
|
12760
12762
|
const ue = [K(w.value), Rt(K(w.value), +e.autoRange)];
|
|
12761
12763
|
z(ue) && (q && b(w.value), I.value = ue);
|
|
12762
12764
|
}, qe = (w) => {
|
|
12763
|
-
I.value =
|
|
12765
|
+
I.value = ie(K(w.value));
|
|
12764
12766
|
}, he = (w) => e.noDisabledRange ? Q(I.value[0], w).some((q) => l(q)) : !1, Ne = (w, q) => {
|
|
12765
12767
|
if (Ie(), e.autoRange)
|
|
12766
12768
|
return ke(w, q);
|
|
@@ -12881,11 +12883,11 @@ const Mw = (e, t = 3) => {
|
|
|
12881
12883
|
e("internal-model-change", i.value);
|
|
12882
12884
|
});
|
|
12883
12885
|
const M = (A) => {
|
|
12884
|
-
const
|
|
12886
|
+
const ie = A || K();
|
|
12885
12887
|
return {
|
|
12886
|
-
hours: Et(
|
|
12887
|
-
minutes: $t(
|
|
12888
|
-
seconds: t.enableSeconds ? jn(
|
|
12888
|
+
hours: Et(ie),
|
|
12889
|
+
minutes: $t(ie),
|
|
12890
|
+
seconds: t.enableSeconds ? jn(ie) : 0
|
|
12889
12891
|
};
|
|
12890
12892
|
}, p = (A) => ({ month: Be(A), year: Ue(A) }), C = (A) => Array.isArray(A) ? s(() => [
|
|
12891
12893
|
ln(K(), A[0]),
|
|
@@ -12898,7 +12900,7 @@ const Mw = (e, t = 3) => {
|
|
|
12898
12900
|
A[1] ? f(null, +A[1].month, +A[1].year) : c()
|
|
12899
12901
|
]) : f(null, +A.month, +A.year), h = (A) => {
|
|
12900
12902
|
if (Array.isArray(A))
|
|
12901
|
-
return A.map((
|
|
12903
|
+
return A.map((ie) => m(ie));
|
|
12902
12904
|
throw new Error(Pa.dateArr("multi-dates"));
|
|
12903
12905
|
}, T = (A) => {
|
|
12904
12906
|
if (Array.isArray(A))
|
|
@@ -12915,28 +12917,28 @@ const Mw = (e, t = 3) => {
|
|
|
12915
12917
|
N(A[0]),
|
|
12916
12918
|
A[1] ? N(A[1]) : c()
|
|
12917
12919
|
];
|
|
12918
|
-
}, $ = () => i.value[1] ? L() : N(rt(i.value[0])), V = () => (i.value || []).map((A) => N(A)), X = () => (D(), t.modelAuto ? $() : t.multiDates ? V() : Array.isArray(i.value) ? s(() => L()) : N(rt(i.value))), R = (A) => A ? t.timePicker ? P(rt(A)) : t.monthPicker ? x(rt(A)) : t.yearPicker ? C(rt(A)) : t.multiDates ? h(rt(A)) : t.weekPicker ? T(rt(A)) : W(rt(A)) : null,
|
|
12919
|
-
const
|
|
12920
|
-
y(rt(
|
|
12920
|
+
}, $ = () => i.value[1] ? L() : N(rt(i.value[0])), V = () => (i.value || []).map((A) => N(A)), X = () => (D(), t.modelAuto ? $() : t.multiDates ? V() : Array.isArray(i.value) ? s(() => L()) : N(rt(i.value))), R = (A) => A ? t.timePicker ? P(rt(A)) : t.monthPicker ? x(rt(A)) : t.yearPicker ? C(rt(A)) : t.multiDates ? h(rt(A)) : t.weekPicker ? T(rt(A)) : W(rt(A)) : null, ae = (A) => {
|
|
12921
|
+
const ie = R(A);
|
|
12922
|
+
y(rt(ie)) ? (i.value = rt(ie), E()) : (i.value = null, I.value = "");
|
|
12921
12923
|
}, G = () => {
|
|
12922
12924
|
var A;
|
|
12923
|
-
const
|
|
12925
|
+
const ie = (se) => {
|
|
12924
12926
|
var Z;
|
|
12925
12927
|
return En(se, (Z = d.value.textInputOptions) == null ? void 0 : Z.format);
|
|
12926
12928
|
};
|
|
12927
|
-
return `${
|
|
12929
|
+
return `${ie(i.value[0])} ${(A = d.value.textInputOptions) == null ? void 0 : A.rangeSeparator} ${i.value[1] ? ie(i.value[1]) : ""}`;
|
|
12928
12930
|
}, j = () => {
|
|
12929
12931
|
var A;
|
|
12930
12932
|
return n.value && i.value ? Array.isArray(i.value) ? G() : En(i.value, (A = d.value.textInputOptions) == null ? void 0 : A.format) : l(i.value);
|
|
12931
12933
|
}, B = () => {
|
|
12932
12934
|
var A;
|
|
12933
|
-
return i.value ? t.multiDates ? i.value.map((
|
|
12935
|
+
return i.value ? t.multiDates ? i.value.map((ie) => l(ie)).join("; ") : t.textInput && typeof ((A = d.value.textInputOptions) == null ? void 0 : A.format) == "string" ? j() : l(i.value) : "";
|
|
12934
12936
|
}, E = () => {
|
|
12935
12937
|
!t.format || typeof t.format == "string" ? I.value = B() : I.value = t.format(i.value);
|
|
12936
12938
|
}, m = (A) => {
|
|
12937
12939
|
if (t.utc) {
|
|
12938
|
-
const
|
|
12939
|
-
return t.utc === "preserve" ? new Date(
|
|
12940
|
+
const ie = new Date(A);
|
|
12941
|
+
return t.utc === "preserve" ? new Date(ie.getTime() + ie.getTimezoneOffset() * 6e4) : ie;
|
|
12940
12942
|
}
|
|
12941
12943
|
return t.modelType ? t.modelType === "date" || t.modelType === "timestamp" ? r(new Date(A)) : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? Hl(A, o(), new Date()) : r(Hl(A, t.modelType, new Date())) : r(new Date(A));
|
|
12942
12944
|
}, N = (A) => t.utc ? Wb(A, t.utc === "preserve") : t.modelType ? t.modelType === "timestamp" ? +a(A) : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? l(a(A)) : l(a(A), t.modelType) : a(A), b = (A) => {
|
|
@@ -12949,7 +12951,7 @@ const Mw = (e, t = 3) => {
|
|
|
12949
12951
|
inputValue: I,
|
|
12950
12952
|
internalModelValue: i,
|
|
12951
12953
|
checkBeforeEmit: () => i.value ? t.range ? t.partialRange ? i.value.length >= 1 : i.value.length === 2 : !!i.value : !1,
|
|
12952
|
-
parseExternalModelValue:
|
|
12954
|
+
parseExternalModelValue: ae,
|
|
12953
12955
|
formatInputValue: E,
|
|
12954
12956
|
emitModelValue: () => (E(), t.monthPicker ? Q(p) : t.timePicker ? Q(M) : t.yearPicker ? Q(Ue) : t.weekPicker ? b(i.value) : b(X()))
|
|
12955
12957
|
};
|
|
@@ -13027,22 +13029,22 @@ const Pw = (e, t, n, i) => {
|
|
|
13027
13029
|
}) => {
|
|
13028
13030
|
window.screen.width > 768 && f(V, X), T(L, $);
|
|
13029
13031
|
}, x = (L, $) => {
|
|
13030
|
-
const { top: V, left: X, height: R, width:
|
|
13031
|
-
a.value.top = `${R + V + +i.offset}px`, P({ inputEl: L, menuEl: $, left: X, width:
|
|
13032
|
+
const { top: V, left: X, height: R, width: ae } = d(L);
|
|
13033
|
+
a.value.top = `${R + V + +i.offset}px`, P({ inputEl: L, menuEl: $, left: X, width: ae }), r.value = !1;
|
|
13032
13034
|
}, h = (L, $) => {
|
|
13033
|
-
const { top: V, left: X, width: R } = d(L), { height:
|
|
13034
|
-
a.value.top = `${V -
|
|
13035
|
+
const { top: V, left: X, width: R } = d(L), { height: ae } = $.getBoundingClientRect();
|
|
13036
|
+
a.value.top = `${V - ae - +i.offset}px`, P({ inputEl: L, menuEl: $, left: X, width: R }), r.value = !0;
|
|
13035
13037
|
}, T = (L, $) => {
|
|
13036
13038
|
if (i.autoPosition) {
|
|
13037
|
-
const { left: V, width: X } = d(L), { left: R, right:
|
|
13039
|
+
const { left: V, width: X } = d(L), { left: R, right: ae } = $.getBoundingClientRect();
|
|
13038
13040
|
if (R < 0)
|
|
13039
13041
|
return y(V);
|
|
13040
|
-
if (
|
|
13042
|
+
if (ae > document.documentElement.clientWidth)
|
|
13041
13043
|
return c(V, X);
|
|
13042
13044
|
}
|
|
13043
13045
|
}, W = (L, $) => {
|
|
13044
|
-
const { height: V } = $.getBoundingClientRect(), { top: X, height: R } = L.getBoundingClientRect(),
|
|
13045
|
-
return V <=
|
|
13046
|
+
const { height: V } = $.getBoundingClientRect(), { top: X, height: R } = L.getBoundingClientRect(), ae = window.innerHeight - X - R, G = X;
|
|
13047
|
+
return V <= ae ? x(L, $) : V > ae && V <= G ? h(L, $) : ae >= G ? x(L, $) : h(L, $);
|
|
13046
13048
|
}, D = () => {
|
|
13047
13049
|
const L = it(t), $ = it(e);
|
|
13048
13050
|
if (L && $)
|
|
@@ -13553,7 +13555,7 @@ const Pw = (e, t, n, i) => {
|
|
|
13553
13555
|
}, R = () => {
|
|
13554
13556
|
const j = i.vertical ? "Y" : "X";
|
|
13555
13557
|
Math.abs(I.value[`start${j}`] - I.value[`end${j}`]) > 10 && n("handle-swipe", I.value[`start${j}`] > I.value[`end${j}`] ? "right" : "left");
|
|
13556
|
-
},
|
|
13558
|
+
}, ae = (j, B, E) => {
|
|
13557
13559
|
j && (Array.isArray(c.value[B]) ? c.value[B][E] = j : c.value[B] = [j]), i.arrowNavigation && a(c.value, "calendar");
|
|
13558
13560
|
}, G = (j) => {
|
|
13559
13561
|
i.monthChangeOnScroll && (j.preventDefault(), n("handle-scroll", j));
|
|
@@ -13615,16 +13617,16 @@ const Pw = (e, t, n, i) => {
|
|
|
13615
13617
|
S("div", qw, re(e.getWeekNum(N.days)), 1)
|
|
13616
13618
|
])) : k("", !0),
|
|
13617
13619
|
(g(!0), v(Me, null, xe(N.days, (_, Q) => {
|
|
13618
|
-
var A,
|
|
13620
|
+
var A, ie, se;
|
|
13619
13621
|
return g(), v("div", {
|
|
13620
13622
|
role: "gridcell",
|
|
13621
13623
|
class: "dp__calendar_item",
|
|
13622
13624
|
ref_for: !0,
|
|
13623
|
-
ref: (Z) =>
|
|
13625
|
+
ref: (Z) => ae(Z, b, Q),
|
|
13624
13626
|
key: Q + b,
|
|
13625
13627
|
"aria-selected": _.classData.dp__active_date || _.classData.dp__range_start || _.classData.dp__range_start,
|
|
13626
13628
|
"aria-disabled": _.classData.dp__cell_disabled,
|
|
13627
|
-
"aria-label": (
|
|
13629
|
+
"aria-label": (ie = (A = u(l).ariaLabels) == null ? void 0 : A.day) == null ? void 0 : ie.call(A, _),
|
|
13628
13630
|
tabindex: "0",
|
|
13629
13631
|
"data-test": _.value,
|
|
13630
13632
|
onClick: _e((Z) => j.$emit("select-date", _), ["stop", "prevent"]),
|
|
@@ -13830,7 +13832,7 @@ const Pw = (e, t, n, i) => {
|
|
|
13830
13832
|
n("toggle"), n("reset-flow");
|
|
13831
13833
|
}, R = () => {
|
|
13832
13834
|
i.escClose && X();
|
|
13833
|
-
},
|
|
13835
|
+
}, ae = (j, B, E, m) => {
|
|
13834
13836
|
j && (B.value === +i.modelValue && !i.disabledValues.includes(B.value) && (c.value = j), i.arrowNavigation && (Array.isArray(f.value[E]) ? f.value[E][m] = j : f.value[E] = [j], G()));
|
|
13835
13837
|
}, G = () => {
|
|
13836
13838
|
var j, B;
|
|
@@ -13867,7 +13869,7 @@ const Pw = (e, t, n, i) => {
|
|
|
13867
13869
|
"aria-selected": b.value === e.modelValue && !e.disabledValues.includes(b.value),
|
|
13868
13870
|
"aria-disabled": b.className.dp__overlay_cell_disabled,
|
|
13869
13871
|
ref_for: !0,
|
|
13870
|
-
ref: (Q) =>
|
|
13872
|
+
ref: (Q) => ae(Q, b, N, _),
|
|
13871
13873
|
tabindex: "0",
|
|
13872
13874
|
"data-test": b.text,
|
|
13873
13875
|
onClick: (Q) => $(b.value),
|
|
@@ -14065,7 +14067,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14065
14067
|
return Be(K(i.minDate));
|
|
14066
14068
|
}
|
|
14067
14069
|
return null;
|
|
14068
|
-
}), R = O(() => i.maxDate && V.value ? V.value < i.year ? -1 : V.value === i.year ? Be(K(i.maxDate)) : null : null),
|
|
14070
|
+
}), R = O(() => i.maxDate && V.value ? V.value < i.year ? -1 : V.value === i.year ? Be(K(i.maxDate)) : null : null), ae = O(() => i.range && i.internalModelValue && (i.monthPicker || i.yearPicker) ? i.internalModelValue : []), G = (Z) => Z.reverse(), j = (Z, z = !1) => {
|
|
14069
14071
|
const de = [], ye = (Ie) => z ? G(Ie) : Ie;
|
|
14070
14072
|
for (let Ie = 0; Ie < Z.length; Ie += 3) {
|
|
14071
14073
|
const ke = [Z[Ie], Z[Ie + 1], Z[Ie + 2]];
|
|
@@ -14078,7 +14080,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14078
14080
|
A(Z), d.value = !d.value, d.value || n("overlay-closed");
|
|
14079
14081
|
}, A = (Z) => {
|
|
14080
14082
|
Z || n("reset-flow");
|
|
14081
|
-
},
|
|
14083
|
+
}, ie = (Z = !1) => {
|
|
14082
14084
|
c.value(Z) || n("update-month-year", {
|
|
14083
14085
|
year: Z ? i.year + 1 : i.year - 1,
|
|
14084
14086
|
month: i.month,
|
|
@@ -14245,7 +14247,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14245
14247
|
Z.monthPicker ? (g(), te(Gn, Ze({ key: 1 }, u(D)("month"), {
|
|
14246
14248
|
"skip-active": Z.range,
|
|
14247
14249
|
year: e.year,
|
|
14248
|
-
"multi-model-value": u(
|
|
14250
|
+
"multi-model-value": u(ae),
|
|
14249
14251
|
"month-picker": "",
|
|
14250
14252
|
modelValue: u(x),
|
|
14251
14253
|
"onUpdate:modelValue": z[17] || (z[17] = (he) => dt(x) ? x.value = he : null),
|
|
@@ -14261,8 +14263,8 @@ const Pw = (e, t, n, i) => {
|
|
|
14261
14263
|
tabindex: "0",
|
|
14262
14264
|
ref_key: "mpPrevIconRef",
|
|
14263
14265
|
ref: M,
|
|
14264
|
-
onClick: z[9] || (z[9] = (Le) =>
|
|
14265
|
-
onKeydown: z[10] || (z[10] = me((Le) =>
|
|
14266
|
+
onClick: z[9] || (z[9] = (Le) => ie(!1)),
|
|
14267
|
+
onKeydown: z[10] || (z[10] = me((Le) => ie(!1), ["enter"]))
|
|
14266
14268
|
}, [
|
|
14267
14269
|
S("div", {
|
|
14268
14270
|
class: ne(["dp__inner_nav", { dp__inner_nav_disabled: u(c)(!1) }]),
|
|
@@ -14296,8 +14298,8 @@ const Pw = (e, t, n, i) => {
|
|
|
14296
14298
|
tabindex: "0",
|
|
14297
14299
|
ref_key: "mpNextIconRef",
|
|
14298
14300
|
ref: C,
|
|
14299
|
-
onClick: z[13] || (z[13] = (Le) =>
|
|
14300
|
-
onKeydown: z[14] || (z[14] = me((Le) =>
|
|
14301
|
+
onClick: z[13] || (z[13] = (Le) => ie(!0)),
|
|
14302
|
+
onKeydown: z[14] || (z[14] = me((Le) => ie(!0), ["enter"]))
|
|
14301
14303
|
}, [
|
|
14302
14304
|
S("div", {
|
|
14303
14305
|
class: ne(["dp__inner_nav", { dp__inner_nav_disabled: u(c)(!0) }]),
|
|
@@ -14358,7 +14360,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14358
14360
|
Z.yearPicker ? (g(), te(Gn, Ze({ key: 2 }, u(D)("year"), {
|
|
14359
14361
|
modelValue: u(h),
|
|
14360
14362
|
"onUpdate:modelValue": z[19] || (z[19] = (he) => dt(h) ? h.value = he : null),
|
|
14361
|
-
"multi-model-value": u(
|
|
14363
|
+
"multi-model-value": u(ae),
|
|
14362
14364
|
"skip-active": Z.range,
|
|
14363
14365
|
"skip-button-ref": "",
|
|
14364
14366
|
"year-picker": "",
|
|
@@ -14455,7 +14457,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14455
14457
|
);
|
|
14456
14458
|
r(i.closeTimePickerBtn), f.value && (E[1] = E[1].concat(f.value)), a(E, i.order);
|
|
14457
14459
|
}
|
|
14458
|
-
},
|
|
14460
|
+
}, ae = (G, j) => G === "hours" && !i.is24 ? n(`update:${G}`, y.value === "PM" ? j + 12 : j) : n(`update:${G}`, j);
|
|
14459
14461
|
return t({ openChildCmp: X }), (G, j) => {
|
|
14460
14462
|
var B;
|
|
14461
14463
|
return G.disabled ? k("", !0) : (g(), v("div", IN, [
|
|
@@ -14560,7 +14562,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14560
14562
|
"esc-close": G.escClose,
|
|
14561
14563
|
"aria-labels": u(l).ariaLabels,
|
|
14562
14564
|
"hide-navigation": G.hideNavigation,
|
|
14563
|
-
"onUpdate:modelValue": (N) =>
|
|
14565
|
+
"onUpdate:modelValue": (N) => ae(E.type, N),
|
|
14564
14566
|
onSelected: (N) => W(E.type),
|
|
14565
14567
|
onToggle: (N) => W(E.type),
|
|
14566
14568
|
onResetFlow: j[0] || (j[0] = (N) => G.$emit("reset-flow")),
|
|
@@ -14621,19 +14623,19 @@ const Pw = (e, t, n, i) => {
|
|
|
14621
14623
|
}), x = O(() => {
|
|
14622
14624
|
const R = [];
|
|
14623
14625
|
if (i.range)
|
|
14624
|
-
for (let
|
|
14625
|
-
R.push(P(
|
|
14626
|
+
for (let ae = 0; ae < 2; ae++)
|
|
14627
|
+
R.push(P(ae));
|
|
14626
14628
|
else
|
|
14627
14629
|
R.push(P(0));
|
|
14628
14630
|
return R;
|
|
14629
|
-
}), h = (R,
|
|
14630
|
-
|
|
14631
|
+
}), h = (R, ae = !1, G = "") => {
|
|
14632
|
+
ae || n("reset-flow"), C.value = R, i.arrowNavigation && (r(R), R || n("overlay-closed")), Nt(() => {
|
|
14631
14633
|
G !== "" && I.value[0] && I.value[0].openChildCmp(G);
|
|
14632
14634
|
});
|
|
14633
14635
|
}, T = O(() => ({
|
|
14634
14636
|
dp__button: !0,
|
|
14635
14637
|
dp__button_bottom: i.autoApply
|
|
14636
|
-
})), W = rn(l, "timePicker"), D = (R,
|
|
14638
|
+
})), W = rn(l, "timePicker"), D = (R, ae, G) => i.range ? ae === 0 ? [R, x.value[1][G]] : [x.value[0][G], R] : R, L = (R) => {
|
|
14637
14639
|
n("update:hours", R);
|
|
14638
14640
|
}, $ = (R) => {
|
|
14639
14641
|
n("update:minutes", R);
|
|
@@ -14642,7 +14644,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14642
14644
|
}, X = () => {
|
|
14643
14645
|
M.value && i.arrowNavigation && M.value.focus({ preventScroll: !0 });
|
|
14644
14646
|
};
|
|
14645
|
-
return t({ toggleTimePicker: h }), (R,
|
|
14647
|
+
return t({ toggleTimePicker: h }), (R, ae) => {
|
|
14646
14648
|
var G;
|
|
14647
14649
|
return g(), v("div", null, [
|
|
14648
14650
|
R.timePicker ? k("", !0) : ot((g(), v("div", {
|
|
@@ -14654,10 +14656,10 @@ const Pw = (e, t, n, i) => {
|
|
|
14654
14656
|
ref_key: "openTimePickerBtn",
|
|
14655
14657
|
ref: f,
|
|
14656
14658
|
onKeydown: [
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
+
ae[0] || (ae[0] = me((j) => h(!0), ["enter"])),
|
|
14660
|
+
ae[1] || (ae[1] = me((j) => h(!0), ["space"]))
|
|
14659
14661
|
],
|
|
14660
|
-
onClick:
|
|
14662
|
+
onClick: ae[2] || (ae[2] = (j) => h(!0))
|
|
14661
14663
|
}, [
|
|
14662
14664
|
R.$slots["clock-icon"] ? Y(R.$slots, "clock-icon", { key: 0 }) : k("", !0),
|
|
14663
14665
|
R.$slots["clock-icon"] ? k("", !0) : (g(), te(u(Cc), { key: 1 }))
|
|
@@ -14726,10 +14728,10 @@ const Pw = (e, t, n, i) => {
|
|
|
14726
14728
|
"aria-label": (j = u(s).ariaLabels) == null ? void 0 : j.closeTimePicker,
|
|
14727
14729
|
tabindex: "0",
|
|
14728
14730
|
onKeydown: [
|
|
14729
|
-
|
|
14730
|
-
|
|
14731
|
+
ae[3] || (ae[3] = me((B) => h(!1), ["enter"])),
|
|
14732
|
+
ae[4] || (ae[4] = me((B) => h(!1), ["space"]))
|
|
14731
14733
|
],
|
|
14732
|
-
onClick:
|
|
14734
|
+
onClick: ae[5] || (ae[5] = (B) => h(!1))
|
|
14733
14735
|
}, [
|
|
14734
14736
|
R.$slots["calendar-icon"] ? Y(R.$slots, "calendar-icon", { key: 0 }) : k("", !0),
|
|
14735
14737
|
R.$slots["calendar-icon"] ? k("", !0) : (g(), te(u(Ga), { key: 1 }))
|
|
@@ -14802,7 +14804,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14802
14804
|
dp__cell_highlight: !$(m) && (L(m) || V(m)) && !D(m),
|
|
14803
14805
|
dp__cell_highlight_active: !$(m) && (L(m) || V(m)) && D(m),
|
|
14804
14806
|
dp__today: !t.noToday && Ve(m.value, l.value) && m.current
|
|
14805
|
-
}),
|
|
14807
|
+
}), ae = (m) => ({
|
|
14806
14808
|
dp__active_date: D(m),
|
|
14807
14809
|
dp__date_hover: W(m)
|
|
14808
14810
|
}), G = (m) => ({
|
|
@@ -14820,7 +14822,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14820
14822
|
dp__cell_auto_range: C(m),
|
|
14821
14823
|
dp__cell_auto_range_start: P(m),
|
|
14822
14824
|
dp__cell_auto_range_end: p(m)
|
|
14823
|
-
}), E = (m) => t.range ? t.autoRange ? B(m) : t.modelAuto ? { ...
|
|
14825
|
+
}), E = (m) => t.range ? t.autoRange ? B(m) : t.modelAuto ? { ...ae(m), ...j(m) } : j(m) : t.weekPicker ? G(m) : ae(m);
|
|
14824
14826
|
return {
|
|
14825
14827
|
setHoverDate: o,
|
|
14826
14828
|
clearHoverDate: s,
|
|
@@ -14898,7 +14900,7 @@ const Pw = (e, t, n, i) => {
|
|
|
14898
14900
|
x.value = -1;
|
|
14899
14901
|
}, {
|
|
14900
14902
|
calendars: R,
|
|
14901
|
-
modelValue:
|
|
14903
|
+
modelValue: ae,
|
|
14902
14904
|
month: G,
|
|
14903
14905
|
year: j,
|
|
14904
14906
|
time: B,
|
|
@@ -14909,11 +14911,11 @@ const Pw = (e, t, n, i) => {
|
|
|
14909
14911
|
monthYearSelect: _,
|
|
14910
14912
|
handleScroll: Q,
|
|
14911
14913
|
handleArrow: A,
|
|
14912
|
-
handleSwipe:
|
|
14914
|
+
handleSwipe: ie,
|
|
14913
14915
|
getMarker: se,
|
|
14914
14916
|
selectCurrentDate: Z,
|
|
14915
14917
|
presetDateRange: z
|
|
14916
|
-
} = Lw(i, n, V, L, x), { setHoverDate: de, clearHoverDate: ye, getDayClassData: Ie } = xN(
|
|
14918
|
+
} = Lw(i, n, V, L, x), { setHoverDate: de, clearHoverDate: ye, getDayClassData: Ie } = xN(ae, i);
|
|
14917
14919
|
$e(
|
|
14918
14920
|
R,
|
|
14919
14921
|
() => {
|
|
@@ -15105,7 +15107,7 @@ const Pw = (e, t, n, i) => {
|
|
|
15105
15107
|
onHandleSpace: (Oe) => q(Oe, !u(U)(pe)),
|
|
15106
15108
|
onSetHoverDate: ce[2] || (ce[2] = (Oe) => u(de)(Oe)),
|
|
15107
15109
|
onHandleScroll: (Oe) => u(Q)(Oe, pe),
|
|
15108
|
-
onHandleSwipe: (Oe) => u(
|
|
15110
|
+
onHandleSwipe: (Oe) => u(ie)(Oe, pe),
|
|
15109
15111
|
onMount: ce[3] || (ce[3] = (Oe) => ue("calendar")),
|
|
15110
15112
|
onResetFlow: X
|
|
15111
15113
|
}), nt({ _: 2 }, [
|
|
@@ -15255,7 +15257,7 @@ const Pw = (e, t, n, i) => {
|
|
|
15255
15257
|
parseExternalModelValue: V,
|
|
15256
15258
|
emitModelValue: X,
|
|
15257
15259
|
formatInputValue: R,
|
|
15258
|
-
checkBeforeEmit:
|
|
15260
|
+
checkBeforeEmit: ae
|
|
15259
15261
|
} = Ow(n, i, y), G = O(
|
|
15260
15262
|
() => ({
|
|
15261
15263
|
dp__main: !0,
|
|
@@ -15271,22 +15273,22 @@ const Pw = (e, t, n, i) => {
|
|
|
15271
15273
|
}, m = () => {
|
|
15272
15274
|
!i.disabled && !i.readonly && (D(), r.value = !0, Nt().then(() => {
|
|
15273
15275
|
W(), r.value && n("open");
|
|
15274
|
-
}), r.value ||
|
|
15276
|
+
}), r.value || ie(), V(i.modelValue));
|
|
15275
15277
|
}, N = () => {
|
|
15276
|
-
L.value = "",
|
|
15278
|
+
L.value = "", ie(), n("update:model-value", null), n("cleared"), se();
|
|
15277
15279
|
}, b = () => {
|
|
15278
15280
|
const Ne = $.value;
|
|
15279
15281
|
return !Ne || !Array.isArray(Ne) && M(Ne) ? !0 : Array.isArray(Ne) ? Ne.length === 2 && M(Ne[0]) && M(Ne[1]) ? !0 : M(Ne[0]) : !1;
|
|
15280
15282
|
}, _ = () => {
|
|
15281
|
-
|
|
15283
|
+
ae() && b() ? (X(), se()) : n("invalid-select", $.value);
|
|
15282
15284
|
}, Q = (Ne) => {
|
|
15283
15285
|
X(), i.closeOnAutoApply && !Ne && se();
|
|
15284
15286
|
}, A = (Ne = !1) => {
|
|
15285
15287
|
i.autoApply && p($.value) && b() && (i.range && Array.isArray($.value) ? (i.partialRange || $.value.length === 2) && Q(Ne) : Q(Ne));
|
|
15286
|
-
},
|
|
15288
|
+
}, ie = () => {
|
|
15287
15289
|
i.textInput || ($.value = null);
|
|
15288
15290
|
}, se = () => {
|
|
15289
|
-
i.inline || (r.value && (r.value = !1, f(!1), d(!1), I(), n("closed"), D(), L.value && V(l.value)),
|
|
15291
|
+
i.inline || (r.value && (r.value = !1, f(!1), d(!1), I(), n("closed"), D(), L.value && V(l.value)), ie(), c.value && c.value.focusInput());
|
|
15290
15292
|
}, Z = (Ne, ze) => {
|
|
15291
15293
|
if (!Ne) {
|
|
15292
15294
|
$.value = null;
|