autoforma 1.0.66 → 1.0.67
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/components/AutoForm/AutoForm.types.d.ts +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.es.js +176 -176
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -69,7 +69,7 @@ function Op() {
|
|
|
69
69
|
return "Suspense";
|
|
70
70
|
case M:
|
|
71
71
|
return "SuspenseList";
|
|
72
|
-
case
|
|
72
|
+
case O:
|
|
73
73
|
return "Activity";
|
|
74
74
|
}
|
|
75
75
|
if (typeof k == "object")
|
|
@@ -108,8 +108,8 @@ function Op() {
|
|
|
108
108
|
}
|
|
109
109
|
if (T) {
|
|
110
110
|
T = console;
|
|
111
|
-
var
|
|
112
|
-
return
|
|
111
|
+
var A = T.error, j = typeof Symbol == "function" && Symbol.toStringTag && k[Symbol.toStringTag] || k.constructor.name || "Object";
|
|
112
|
+
return A.call(
|
|
113
113
|
T,
|
|
114
114
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
115
115
|
j
|
|
@@ -142,14 +142,14 @@ function Op() {
|
|
|
142
142
|
return k.key !== void 0;
|
|
143
143
|
}
|
|
144
144
|
function l(k, T) {
|
|
145
|
-
function
|
|
145
|
+
function A() {
|
|
146
146
|
U || (U = !0, console.error(
|
|
147
147
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
148
148
|
T
|
|
149
149
|
));
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
get:
|
|
151
|
+
A.isReactWarning = !0, Object.defineProperty(k, "key", {
|
|
152
|
+
get: A,
|
|
153
153
|
configurable: !0
|
|
154
154
|
});
|
|
155
155
|
}
|
|
@@ -159,13 +159,13 @@ function Op() {
|
|
|
159
159
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
160
160
|
)), k = this.props.ref, k !== void 0 ? k : null;
|
|
161
161
|
}
|
|
162
|
-
function c(k, T,
|
|
163
|
-
var D =
|
|
162
|
+
function c(k, T, A, j, q, ue) {
|
|
163
|
+
var D = A.ref;
|
|
164
164
|
return k = {
|
|
165
165
|
$$typeof: p,
|
|
166
166
|
type: k,
|
|
167
167
|
key: T,
|
|
168
|
-
props:
|
|
168
|
+
props: A,
|
|
169
169
|
_owner: j
|
|
170
170
|
}, (D !== void 0 ? D : null) !== null ? Object.defineProperty(k, "ref", {
|
|
171
171
|
enumerable: !1,
|
|
@@ -192,7 +192,7 @@ function Op() {
|
|
|
192
192
|
value: ue
|
|
193
193
|
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
194
194
|
}
|
|
195
|
-
function u(k, T,
|
|
195
|
+
function u(k, T, A, j, q, ue) {
|
|
196
196
|
var D = T.children;
|
|
197
197
|
if (D !== void 0)
|
|
198
198
|
if (j)
|
|
@@ -223,18 +223,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
D
|
|
224
224
|
), I[D + j] = !0);
|
|
225
225
|
}
|
|
226
|
-
if (D = null,
|
|
227
|
-
|
|
226
|
+
if (D = null, A !== void 0 && (t(A), D = "" + A), i(T) && (t(T.key), D = "" + T.key), "key" in T) {
|
|
227
|
+
A = {};
|
|
228
228
|
for (var se in T)
|
|
229
|
-
se !== "key" && (
|
|
230
|
-
} else
|
|
229
|
+
se !== "key" && (A[se] = T[se]);
|
|
230
|
+
} else A = T;
|
|
231
231
|
return D && l(
|
|
232
|
-
|
|
232
|
+
A,
|
|
233
233
|
typeof k == "function" ? k.displayName || k.name || "Unknown" : k
|
|
234
234
|
), c(
|
|
235
235
|
k,
|
|
236
236
|
D,
|
|
237
|
-
|
|
237
|
+
A,
|
|
238
238
|
s(),
|
|
239
239
|
q,
|
|
240
240
|
ue
|
|
@@ -246,7 +246,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
246
246
|
function f(k) {
|
|
247
247
|
return typeof k == "object" && k !== null && k.$$typeof === p;
|
|
248
248
|
}
|
|
249
|
-
var h = dt, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), C = Symbol.for("react.consumer"), w = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), L = Symbol.for("react.lazy"),
|
|
249
|
+
var h = dt, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), C = Symbol.for("react.consumer"), w = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), B = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, _ = Object.prototype.hasOwnProperty, H = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
250
250
|
return null;
|
|
251
251
|
};
|
|
252
252
|
h = {
|
|
@@ -258,22 +258,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
258
258
|
h,
|
|
259
259
|
o
|
|
260
260
|
)(), Y = K(r(o)), I = {};
|
|
261
|
-
pr.Fragment = y, pr.jsx = function(k, T,
|
|
261
|
+
pr.Fragment = y, pr.jsx = function(k, T, A) {
|
|
262
262
|
var j = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
263
263
|
return u(
|
|
264
264
|
k,
|
|
265
265
|
T,
|
|
266
|
-
|
|
266
|
+
A,
|
|
267
267
|
!1,
|
|
268
268
|
j ? Error("react-stack-top-frame") : W,
|
|
269
269
|
j ? K(r(k)) : Y
|
|
270
270
|
);
|
|
271
|
-
}, pr.jsxs = function(k, T,
|
|
271
|
+
}, pr.jsxs = function(k, T, A) {
|
|
272
272
|
var j = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
273
273
|
return u(
|
|
274
274
|
k,
|
|
275
275
|
T,
|
|
276
|
-
|
|
276
|
+
A,
|
|
277
277
|
!0,
|
|
278
278
|
j ? Error("react-stack-top-frame") : W,
|
|
279
279
|
j ? K(r(k)) : Y
|
|
@@ -595,8 +595,8 @@ function Hp({
|
|
|
595
595
|
}, []), g = ee((v, M, E) => {
|
|
596
596
|
d((L) => mr(L, v) === M ? L : { ...L, [v]: M }, E);
|
|
597
597
|
}, []), y = ee((v, M) => {
|
|
598
|
-
const E = mr(c.current, v), L = !ns(Re(v, r.getValuesSnapshot()), M),
|
|
599
|
-
|
|
598
|
+
const E = mr(c.current, v), L = !ns(Re(v, r.getValuesSnapshot()), M), O = Xi(v, c.current);
|
|
599
|
+
O[v] = L, d(O, E !== L);
|
|
600
600
|
}, []), b = ee(
|
|
601
601
|
(v) => mr(a.current, v),
|
|
602
602
|
[]
|
|
@@ -613,8 +613,8 @@ function Hp({
|
|
|
613
613
|
const E = Re(v, c.current);
|
|
614
614
|
if (typeof E == "boolean")
|
|
615
615
|
return E;
|
|
616
|
-
const L = Re(v, r.refValues.current),
|
|
617
|
-
return !ns(L,
|
|
616
|
+
const L = Re(v, r.refValues.current), O = Re(v, r.valuesSnapshot.current);
|
|
617
|
+
return !ns(L, O);
|
|
618
618
|
}
|
|
619
619
|
return Object.keys(c.current).length > 0 ? mr(c.current) : !ns(r.refValues.current, r.valuesSnapshot.current);
|
|
620
620
|
}, []), w = ee(() => c.current, []), S = ee(() => a.current, []);
|
|
@@ -797,7 +797,7 @@ function Up({
|
|
|
797
797
|
touchTrigger: p = "change",
|
|
798
798
|
cascadeUpdates: g = !1
|
|
799
799
|
} = {}) {
|
|
800
|
-
const y = Ip(r), b = Wp({ initialValues: t, onValuesChange: c, mode: e }), x = Hp({ initialDirty: s, initialTouched: o, $values: b, mode: e }), C = Fp({ $values: b, $errors: y, $status: x }), w = Yp({ $status: x, cascadeUpdates: g }), [S, v] = be(0), [M, E] = be({}), [L,
|
|
800
|
+
const y = Ip(r), b = Wp({ initialValues: t, onValuesChange: c, mode: e }), x = Hp({ initialDirty: s, initialTouched: o, $values: b, mode: e }), C = Fp({ $values: b, $errors: y, $status: x }), w = Yp({ $status: x, cascadeUpdates: g }), [S, v] = be(0), [M, E] = be({}), [L, O] = be(!1), z = ee(() => {
|
|
801
801
|
b.resetValues(), y.clearErrors(), x.resetDirty(), x.resetTouched(), e === "uncontrolled" && v((D) => D + 1);
|
|
802
802
|
}, []), B = ee(
|
|
803
803
|
(D) => {
|
|
@@ -883,14 +883,14 @@ function Up({
|
|
|
883
883
|
u(b.refValues.current),
|
|
884
884
|
se
|
|
885
885
|
);
|
|
886
|
-
he instanceof Promise && (
|
|
886
|
+
he instanceof Promise && (O(!0), he.finally(() => O(!1)));
|
|
887
887
|
}
|
|
888
888
|
}, I = (D) => u(D || b.refValues.current), k = ee((D) => {
|
|
889
889
|
D.preventDefault(), z();
|
|
890
890
|
}, []), T = ee(
|
|
891
891
|
(D) => D ? !ss(D, f, b.refValues.current).hasError : !Zi(f, b.refValues.current).hasErrors,
|
|
892
892
|
[f]
|
|
893
|
-
),
|
|
893
|
+
), A = (D) => `${S}-${String(D)}-${M[String(D)] || 0}`, j = ee(
|
|
894
894
|
(D) => document.querySelector(`[data-path="${ic(n, D)}"]`),
|
|
895
895
|
[]
|
|
896
896
|
), q = ee(
|
|
@@ -915,7 +915,7 @@ function Up({
|
|
|
915
915
|
setValues: K,
|
|
916
916
|
setFieldValue: H,
|
|
917
917
|
submitting: L,
|
|
918
|
-
setSubmitting:
|
|
918
|
+
setSubmitting: O,
|
|
919
919
|
errors: y.errorsState,
|
|
920
920
|
setErrors: y.setErrors,
|
|
921
921
|
setFieldError: y.setFieldError,
|
|
@@ -941,7 +941,7 @@ function Up({
|
|
|
941
941
|
onReset: k,
|
|
942
942
|
isValid: T,
|
|
943
943
|
getTransformedValues: I,
|
|
944
|
-
key:
|
|
944
|
+
key: A,
|
|
945
945
|
getInputNode: j
|
|
946
946
|
};
|
|
947
947
|
return Lp(n, ue), ue;
|
|
@@ -1914,11 +1914,11 @@ function wm({
|
|
|
1914
1914
|
time: n || e || "",
|
|
1915
1915
|
amPmLabels: s,
|
|
1916
1916
|
format: r
|
|
1917
|
-
}), h = ye(!0), [p, g] = be(f.hours), [y, b] = be(f.minutes), [x, C] = be(f.seconds), [w, S] = be(f.amPm), v = a && !c && !u && (p !== null || y !== null || x !== null || w !== null), M = ye(null), E = ye(null), L = ye(null),
|
|
1918
|
-
var T,
|
|
1919
|
-
k === "hours" && ((T = M.current) == null || T.focus()), k === "minutes" && ((
|
|
1917
|
+
}), h = ye(!0), [p, g] = be(f.hours), [y, b] = be(f.minutes), [x, C] = be(f.seconds), [w, S] = be(f.amPm), v = a && !c && !u && (p !== null || y !== null || x !== null || w !== null), M = ye(null), E = ye(null), L = ye(null), O = ye(null), z = (k) => {
|
|
1918
|
+
var T, A, j, q;
|
|
1919
|
+
k === "hours" && ((T = M.current) == null || T.focus()), k === "minutes" && ((A = E.current) == null || A.focus()), k === "seconds" && ((j = L.current) == null || j.focus()), k === "amPm" && ((q = O.current) == null || q.focus());
|
|
1920
1920
|
}, B = (k, T) => {
|
|
1921
|
-
const
|
|
1921
|
+
const A = { hours: p, minutes: y, seconds: x, amPm: w, [k]: T }, j = Ss({ ...A, format: r, withSeconds: o, amPmLabels: s });
|
|
1922
1922
|
j.valid ? (h.current = !1, k === "hours" && g(T), k === "minutes" && b(T), k === "seconds" && C(T), k === "amPm" && S(T), t == null || t(j.value)) : (h.current = !1, typeof n == "string" && n !== "" && (t == null || t("")));
|
|
1923
1923
|
}, _ = (k) => {
|
|
1924
1924
|
h.current = !1;
|
|
@@ -1937,11 +1937,11 @@ function wm({
|
|
|
1937
1937
|
h.current = !1, g(null), b(null), C(null), S(null), t == null || t(""), z("hours");
|
|
1938
1938
|
}, Y = (k) => {
|
|
1939
1939
|
k.preventDefault();
|
|
1940
|
-
const T = k.clipboardData.getData("text"),
|
|
1940
|
+
const T = k.clipboardData.getData("text"), A = (d || kr)({ time: T, format: r, amPmLabels: s }), j = Ss({ ...A, format: r, withSeconds: o, amPmLabels: s });
|
|
1941
1941
|
if (j.valid) {
|
|
1942
1942
|
h.current = !1;
|
|
1943
1943
|
const q = dd(j.value, i || "00:00:00", l || "23:59:59");
|
|
1944
|
-
t == null || t(q.timeString), g(
|
|
1944
|
+
t == null || t(q.timeString), g(A.hours), b(A.minutes), C(A.seconds), S(A.amPm);
|
|
1945
1945
|
}
|
|
1946
1946
|
}, I = Ss({
|
|
1947
1947
|
hours: p,
|
|
@@ -1963,7 +1963,7 @@ function wm({
|
|
|
1963
1963
|
}
|
|
1964
1964
|
h.current = !0;
|
|
1965
1965
|
}, [n]), {
|
|
1966
|
-
refs: { hours: M, minutes: E, seconds: L, amPm:
|
|
1966
|
+
refs: { hours: M, minutes: E, seconds: L, amPm: O },
|
|
1967
1967
|
values: { hours: p, minutes: y, seconds: x, amPm: w },
|
|
1968
1968
|
setHours: H,
|
|
1969
1969
|
setMinutes: K,
|
|
@@ -2018,7 +2018,7 @@ const Tm = {
|
|
|
2018
2018
|
clearable: M,
|
|
2019
2019
|
onMouseDown: E,
|
|
2020
2020
|
onFocusCapture: L,
|
|
2021
|
-
onBlurCapture:
|
|
2021
|
+
onBlurCapture: O,
|
|
2022
2022
|
min: z,
|
|
2023
2023
|
max: B,
|
|
2024
2024
|
popoverProps: _,
|
|
@@ -2031,7 +2031,7 @@ const Tm = {
|
|
|
2031
2031
|
minutesInputProps: I,
|
|
2032
2032
|
secondsInputProps: k,
|
|
2033
2033
|
amPmSelectProps: T,
|
|
2034
|
-
readOnly:
|
|
2034
|
+
readOnly: A,
|
|
2035
2035
|
disabled: j,
|
|
2036
2036
|
size: q,
|
|
2037
2037
|
name: ue,
|
|
@@ -2079,7 +2079,7 @@ const Tm = {
|
|
|
2079
2079
|
max: B,
|
|
2080
2080
|
clearable: M,
|
|
2081
2081
|
disabled: j,
|
|
2082
|
-
readOnly:
|
|
2082
|
+
readOnly: A,
|
|
2083
2083
|
pasteSplit: Z
|
|
2084
2084
|
}), ot = xr(F.refs.hours, he), it = xr(F.refs.minutes, fe), vn = xr(F.refs.seconds, le), qn = xr(F.refs.amPm, re), Qr = dm(), fr = ye(!1), [ri, Yt] = be(!1), vt = (te) => {
|
|
2085
2085
|
fr.current || (fr.current = !0, U == null || U(te));
|
|
@@ -2105,7 +2105,7 @@ const Tm = {
|
|
|
2105
2105
|
transitionProps: { duration: 0 },
|
|
2106
2106
|
position: "bottom-start",
|
|
2107
2107
|
withRoles: !1,
|
|
2108
|
-
disabled: j ||
|
|
2108
|
+
disabled: j || A || !H,
|
|
2109
2109
|
..._,
|
|
2110
2110
|
children: [
|
|
2111
2111
|
/* @__PURE__ */ m.jsx(et.Target, { children: /* @__PURE__ */ m.jsxs(
|
|
@@ -2125,7 +2125,7 @@ const Tm = {
|
|
|
2125
2125
|
Yt(!0), L == null || L(te);
|
|
2126
2126
|
},
|
|
2127
2127
|
onBlurCapture: (te) => {
|
|
2128
|
-
Yt(!1),
|
|
2128
|
+
Yt(!1), O == null || O(te);
|
|
2129
2129
|
},
|
|
2130
2130
|
rightSection: K || F.isClearable && /* @__PURE__ */ m.jsx(
|
|
2131
2131
|
xp,
|
|
@@ -2170,7 +2170,7 @@ const Tm = {
|
|
|
2170
2170
|
step: p,
|
|
2171
2171
|
ref: ot,
|
|
2172
2172
|
"aria-label": x,
|
|
2173
|
-
readOnly:
|
|
2173
|
+
readOnly: A,
|
|
2174
2174
|
disabled: j,
|
|
2175
2175
|
onPaste: F.onPaste,
|
|
2176
2176
|
onFocus: (te) => {
|
|
@@ -2205,7 +2205,7 @@ const Tm = {
|
|
|
2205
2205
|
onNextInput: () => b ? F.focus("seconds") : F.focus("amPm"),
|
|
2206
2206
|
"aria-label": C,
|
|
2207
2207
|
tabIndex: -1,
|
|
2208
|
-
readOnly:
|
|
2208
|
+
readOnly: A,
|
|
2209
2209
|
disabled: j,
|
|
2210
2210
|
onPaste: F.onPaste,
|
|
2211
2211
|
onFocus: (te) => {
|
|
@@ -2236,7 +2236,7 @@ const Tm = {
|
|
|
2236
2236
|
onNextInput: () => F.focus("amPm"),
|
|
2237
2237
|
"aria-label": w,
|
|
2238
2238
|
tabIndex: -1,
|
|
2239
|
-
readOnly:
|
|
2239
|
+
readOnly: A,
|
|
2240
2240
|
disabled: j,
|
|
2241
2241
|
onPaste: F.onPaste,
|
|
2242
2242
|
onFocus: (te) => {
|
|
@@ -2258,7 +2258,7 @@ const Tm = {
|
|
|
2258
2258
|
ref: qn,
|
|
2259
2259
|
"aria-label": S,
|
|
2260
2260
|
onPreviousInput: () => b ? F.focus("seconds") : F.focus("minutes"),
|
|
2261
|
-
readOnly:
|
|
2261
|
+
readOnly: A,
|
|
2262
2262
|
disabled: j,
|
|
2263
2263
|
tabIndex: -1,
|
|
2264
2264
|
onPaste: F.onPaste,
|
|
@@ -2614,7 +2614,7 @@ const Fm = {
|
|
|
2614
2614
|
static: M,
|
|
2615
2615
|
__getDayRef: E,
|
|
2616
2616
|
__onDayKeyDown: L,
|
|
2617
|
-
__onDayClick:
|
|
2617
|
+
__onDayClick: O,
|
|
2618
2618
|
__onDayMouseEnter: z,
|
|
2619
2619
|
__preventFocus: B,
|
|
2620
2620
|
__stopPropagation: _,
|
|
@@ -2641,7 +2641,7 @@ const Fm = {
|
|
|
2641
2641
|
month: h,
|
|
2642
2642
|
firstDayOfWeek: k.getFirstDayOfWeek(d),
|
|
2643
2643
|
consistentWeeks: k.consistentWeeks
|
|
2644
|
-
}),
|
|
2644
|
+
}), A = Im({
|
|
2645
2645
|
dates: T,
|
|
2646
2646
|
minDate: Ue(b),
|
|
2647
2647
|
maxDate: Ue(x),
|
|
@@ -2655,7 +2655,7 @@ const Fm = {
|
|
|
2655
2655
|
props: t
|
|
2656
2656
|
}), ue = T.map((D, G) => {
|
|
2657
2657
|
const se = D.map((Z, he) => {
|
|
2658
|
-
const fe = !Oo(Z, h), le = (v == null ? void 0 : v(Z)) || N(Z).locale(u || k.locale).format("D MMMM YYYY"), re = g == null ? void 0 : g(Z), Le = N(Z).isSame(
|
|
2658
|
+
const fe = !Oo(Z, h), le = (v == null ? void 0 : v(Z)) || N(Z).locale(u || k.locale).format("D MMMM YYYY"), re = g == null ? void 0 : g(Z), Le = N(Z).isSame(A, "date");
|
|
2659
2659
|
return /* @__PURE__ */ m.jsx(
|
|
2660
2660
|
"td",
|
|
2661
2661
|
{
|
|
@@ -2693,7 +2693,7 @@ const Fm = {
|
|
|
2693
2693
|
},
|
|
2694
2694
|
onClick: (ce) => {
|
|
2695
2695
|
var Se;
|
|
2696
|
-
(Se = re == null ? void 0 : re.onClick) == null || Se.call(re, ce),
|
|
2696
|
+
(Se = re == null ? void 0 : re.onClick) == null || Se.call(re, ce), O == null || O(ce, Z);
|
|
2697
2697
|
},
|
|
2698
2698
|
onMouseDown: (ce) => {
|
|
2699
2699
|
var Se;
|
|
@@ -2849,7 +2849,7 @@ const Wm = {
|
|
|
2849
2849
|
size: M,
|
|
2850
2850
|
attributes: E,
|
|
2851
2851
|
...L
|
|
2852
|
-
} = t,
|
|
2852
|
+
} = t, O = kt({
|
|
2853
2853
|
name: g || "YearsList",
|
|
2854
2854
|
classes: vd,
|
|
2855
2855
|
props: t,
|
|
@@ -2872,12 +2872,12 @@ const Wm = {
|
|
|
2872
2872
|
return /* @__PURE__ */ m.jsx(
|
|
2873
2873
|
"td",
|
|
2874
2874
|
{
|
|
2875
|
-
...
|
|
2875
|
+
...O("yearsListCell"),
|
|
2876
2876
|
"data-with-spacing": v || void 0,
|
|
2877
2877
|
children: /* @__PURE__ */ m.jsx(
|
|
2878
2878
|
Do,
|
|
2879
2879
|
{
|
|
2880
|
-
...
|
|
2880
|
+
...O("yearsListControl"),
|
|
2881
2881
|
size: M,
|
|
2882
2882
|
unstyled: l,
|
|
2883
2883
|
"data-mantine-stop-propagation": S || void 0,
|
|
@@ -2887,20 +2887,20 @@ const Wm = {
|
|
|
2887
2887
|
},
|
|
2888
2888
|
...I,
|
|
2889
2889
|
onKeyDown: (T) => {
|
|
2890
|
-
var
|
|
2891
|
-
(
|
|
2890
|
+
var A;
|
|
2891
|
+
(A = I == null ? void 0 : I.onKeyDown) == null || A.call(I, T), b == null || b(T, { rowIndex: U, cellIndex: Y, date: W });
|
|
2892
2892
|
},
|
|
2893
2893
|
onClick: (T) => {
|
|
2894
|
-
var
|
|
2895
|
-
(
|
|
2894
|
+
var A;
|
|
2895
|
+
(A = I == null ? void 0 : I.onClick) == null || A.call(I, T), x == null || x(T, W);
|
|
2896
2896
|
},
|
|
2897
2897
|
onMouseEnter: (T) => {
|
|
2898
|
-
var
|
|
2899
|
-
(
|
|
2898
|
+
var A;
|
|
2899
|
+
(A = I == null ? void 0 : I.onMouseEnter) == null || A.call(I, T), C == null || C(T, W);
|
|
2900
2900
|
},
|
|
2901
2901
|
onMouseDown: (T) => {
|
|
2902
|
-
var
|
|
2903
|
-
(
|
|
2902
|
+
var A;
|
|
2903
|
+
(A = I == null ? void 0 : I.onMouseDown) == null || A.call(I, T), w && T.preventDefault();
|
|
2904
2904
|
},
|
|
2905
2905
|
tabIndex: w || !k ? -1 : 0,
|
|
2906
2906
|
children: N(W).locale(z.getLocale(d)).format(u)
|
|
@@ -2910,9 +2910,9 @@ const Wm = {
|
|
|
2910
2910
|
Y
|
|
2911
2911
|
);
|
|
2912
2912
|
});
|
|
2913
|
-
return /* @__PURE__ */ m.jsx("tr", { ...
|
|
2913
|
+
return /* @__PURE__ */ m.jsx("tr", { ...O("yearsListRow"), children: J }, U);
|
|
2914
2914
|
});
|
|
2915
|
-
return /* @__PURE__ */ m.jsx(ze, { component: "table", ref: e, size: M, ...
|
|
2915
|
+
return /* @__PURE__ */ m.jsx(ze, { component: "table", ref: e, size: M, ...O("yearsList"), ...L, children: /* @__PURE__ */ m.jsx("tbody", { children: H }) });
|
|
2916
2916
|
});
|
|
2917
2917
|
No.classes = vd;
|
|
2918
2918
|
No.displayName = "@mantine/dates/YearsList";
|
|
@@ -2976,7 +2976,7 @@ const Um = {
|
|
|
2976
2976
|
size: M,
|
|
2977
2977
|
attributes: E,
|
|
2978
2978
|
...L
|
|
2979
|
-
} = t,
|
|
2979
|
+
} = t, O = kt({
|
|
2980
2980
|
name: c || "MonthsList",
|
|
2981
2981
|
classes: Cd,
|
|
2982
2982
|
props: t,
|
|
@@ -2999,12 +2999,12 @@ const Um = {
|
|
|
2999
2999
|
return /* @__PURE__ */ m.jsx(
|
|
3000
3000
|
"td",
|
|
3001
3001
|
{
|
|
3002
|
-
...
|
|
3002
|
+
...O("monthsListCell"),
|
|
3003
3003
|
"data-with-spacing": v || void 0,
|
|
3004
3004
|
children: /* @__PURE__ */ m.jsx(
|
|
3005
3005
|
Do,
|
|
3006
3006
|
{
|
|
3007
|
-
...
|
|
3007
|
+
...O("monthsListControl"),
|
|
3008
3008
|
size: M,
|
|
3009
3009
|
unstyled: l,
|
|
3010
3010
|
__staticSelector: c || "MonthsList",
|
|
@@ -3019,20 +3019,20 @@ const Um = {
|
|
|
3019
3019
|
},
|
|
3020
3020
|
...I,
|
|
3021
3021
|
onKeyDown: (T) => {
|
|
3022
|
-
var
|
|
3023
|
-
(
|
|
3022
|
+
var A;
|
|
3023
|
+
(A = I == null ? void 0 : I.onKeyDown) == null || A.call(I, T), b == null || b(T, { rowIndex: U, cellIndex: Y, date: W });
|
|
3024
3024
|
},
|
|
3025
3025
|
onClick: (T) => {
|
|
3026
|
-
var
|
|
3027
|
-
(
|
|
3026
|
+
var A;
|
|
3027
|
+
(A = I == null ? void 0 : I.onClick) == null || A.call(I, T), x == null || x(T, W);
|
|
3028
3028
|
},
|
|
3029
3029
|
onMouseEnter: (T) => {
|
|
3030
|
-
var
|
|
3031
|
-
(
|
|
3030
|
+
var A;
|
|
3031
|
+
(A = I == null ? void 0 : I.onMouseEnter) == null || A.call(I, T), C == null || C(T, W);
|
|
3032
3032
|
},
|
|
3033
3033
|
onMouseDown: (T) => {
|
|
3034
|
-
var
|
|
3035
|
-
(
|
|
3034
|
+
var A;
|
|
3035
|
+
(A = I == null ? void 0 : I.onMouseDown) == null || A.call(I, T), w && T.preventDefault();
|
|
3036
3036
|
},
|
|
3037
3037
|
tabIndex: w || !k ? -1 : 0,
|
|
3038
3038
|
children: N(W).locale(z.getLocale(f)).format(d)
|
|
@@ -3042,9 +3042,9 @@ const Um = {
|
|
|
3042
3042
|
Y
|
|
3043
3043
|
);
|
|
3044
3044
|
});
|
|
3045
|
-
return /* @__PURE__ */ m.jsx("tr", { ...
|
|
3045
|
+
return /* @__PURE__ */ m.jsx("tr", { ...O("monthsListRow"), children: J }, U);
|
|
3046
3046
|
});
|
|
3047
|
-
return /* @__PURE__ */ m.jsx(ze, { component: "table", ref: e, size: M, ...
|
|
3047
|
+
return /* @__PURE__ */ m.jsx(ze, { component: "table", ref: e, size: M, ...O("monthsList"), ...L, children: /* @__PURE__ */ m.jsx("tbody", { children: H }) });
|
|
3048
3048
|
});
|
|
3049
3049
|
Lo.classes = Cd;
|
|
3050
3050
|
Lo.displayName = "@mantine/dates/MonthsList";
|
|
@@ -3084,7 +3084,7 @@ const Km = {
|
|
|
3084
3084
|
headerControlsOrder: M,
|
|
3085
3085
|
__staticSelector: E,
|
|
3086
3086
|
__preventFocus: L,
|
|
3087
|
-
__stopPropagation:
|
|
3087
|
+
__stopPropagation: O,
|
|
3088
3088
|
attributes: z,
|
|
3089
3089
|
...B
|
|
3090
3090
|
} = t, _ = kt({
|
|
@@ -3113,7 +3113,7 @@ const Km = {
|
|
|
3113
3113
|
disabled: x,
|
|
3114
3114
|
"data-disabled": x || void 0,
|
|
3115
3115
|
tabIndex: L || x ? -1 : 0,
|
|
3116
|
-
"data-mantine-stop-propagation":
|
|
3116
|
+
"data-mantine-stop-propagation": O || void 0
|
|
3117
3117
|
},
|
|
3118
3118
|
u || /* @__PURE__ */ m.jsx(
|
|
3119
3119
|
Ka,
|
|
@@ -3136,7 +3136,7 @@ const Km = {
|
|
|
3136
3136
|
"data-static": !C || void 0,
|
|
3137
3137
|
"aria-label": w,
|
|
3138
3138
|
tabIndex: L || !C ? -1 : 0,
|
|
3139
|
-
"data-mantine-stop-propagation":
|
|
3139
|
+
"data-mantine-stop-propagation": O || void 0
|
|
3140
3140
|
},
|
|
3141
3141
|
y
|
|
3142
3142
|
), J = S && /* @__PURE__ */ ci(
|
|
@@ -3152,7 +3152,7 @@ const Km = {
|
|
|
3152
3152
|
disabled: b,
|
|
3153
3153
|
"data-disabled": b || void 0,
|
|
3154
3154
|
tabIndex: L || b ? -1 : 0,
|
|
3155
|
-
"data-mantine-stop-propagation":
|
|
3155
|
+
"data-mantine-stop-propagation": O || void 0
|
|
3156
3156
|
},
|
|
3157
3157
|
c || /* @__PURE__ */ m.jsx(
|
|
3158
3158
|
Ka,
|
|
@@ -3200,7 +3200,7 @@ const Xm = {
|
|
|
3200
3200
|
levelControlAriaLabel: M,
|
|
3201
3201
|
withNext: E,
|
|
3202
3202
|
withPrevious: L,
|
|
3203
|
-
headerControlsOrder:
|
|
3203
|
+
headerControlsOrder: O,
|
|
3204
3204
|
// Other props
|
|
3205
3205
|
decadeLabelFormat: z,
|
|
3206
3206
|
classNames: B,
|
|
@@ -3211,7 +3211,7 @@ const Xm = {
|
|
|
3211
3211
|
size: J,
|
|
3212
3212
|
attributes: W,
|
|
3213
3213
|
...Y
|
|
3214
|
-
} = t, I = Ht(), [k, T] = Gm(r),
|
|
3214
|
+
} = t, I = Ht(), [k, T] = Gm(r), A = {
|
|
3215
3215
|
__staticSelector: K || "DecadeLevel",
|
|
3216
3216
|
classNames: B,
|
|
3217
3217
|
styles: _,
|
|
@@ -3241,8 +3241,8 @@ const Xm = {
|
|
|
3241
3241
|
levelControlAriaLabel: M,
|
|
3242
3242
|
withNext: E,
|
|
3243
3243
|
withPrevious: L,
|
|
3244
|
-
headerControlsOrder:
|
|
3245
|
-
...
|
|
3244
|
+
headerControlsOrder: O,
|
|
3245
|
+
...A
|
|
3246
3246
|
}
|
|
3247
3247
|
),
|
|
3248
3248
|
/* @__PURE__ */ m.jsx(
|
|
@@ -3261,7 +3261,7 @@ const Xm = {
|
|
|
3261
3261
|
__preventFocus: p,
|
|
3262
3262
|
__stopPropagation: U,
|
|
3263
3263
|
withCellSpacing: h,
|
|
3264
|
-
...
|
|
3264
|
+
...A
|
|
3265
3265
|
}
|
|
3266
3266
|
)
|
|
3267
3267
|
] });
|
|
@@ -3297,7 +3297,7 @@ const Qm = {
|
|
|
3297
3297
|
previousDisabled: M,
|
|
3298
3298
|
hasNextLevel: E,
|
|
3299
3299
|
levelControlAriaLabel: L,
|
|
3300
|
-
withNext:
|
|
3300
|
+
withNext: O,
|
|
3301
3301
|
withPrevious: z,
|
|
3302
3302
|
headerControlsOrder: B,
|
|
3303
3303
|
// Other props
|
|
@@ -3310,7 +3310,7 @@ const Qm = {
|
|
|
3310
3310
|
unstyled: Y,
|
|
3311
3311
|
attributes: I,
|
|
3312
3312
|
...k
|
|
3313
|
-
} = t, T = Ht(),
|
|
3313
|
+
} = t, T = Ht(), A = {
|
|
3314
3314
|
__staticSelector: H || "YearLevel",
|
|
3315
3315
|
classNames: J,
|
|
3316
3316
|
styles: W,
|
|
@@ -3336,10 +3336,10 @@ const Qm = {
|
|
|
3336
3336
|
previousDisabled: q,
|
|
3337
3337
|
hasNextLevel: E,
|
|
3338
3338
|
levelControlAriaLabel: L,
|
|
3339
|
-
withNext:
|
|
3339
|
+
withNext: O,
|
|
3340
3340
|
withPrevious: z,
|
|
3341
3341
|
headerControlsOrder: B,
|
|
3342
|
-
...
|
|
3342
|
+
...A
|
|
3343
3343
|
}
|
|
3344
3344
|
),
|
|
3345
3345
|
/* @__PURE__ */ m.jsx(
|
|
@@ -3358,7 +3358,7 @@ const Qm = {
|
|
|
3358
3358
|
__preventFocus: p,
|
|
3359
3359
|
__stopPropagation: K,
|
|
3360
3360
|
withCellSpacing: h,
|
|
3361
|
-
...
|
|
3361
|
+
...A
|
|
3362
3362
|
}
|
|
3363
3363
|
)
|
|
3364
3364
|
] });
|
|
@@ -3394,7 +3394,7 @@ const Zm = {
|
|
|
3394
3394
|
__preventFocus: M,
|
|
3395
3395
|
__stopPropagation: E,
|
|
3396
3396
|
nextIcon: L,
|
|
3397
|
-
previousIcon:
|
|
3397
|
+
previousIcon: O,
|
|
3398
3398
|
nextLabel: z,
|
|
3399
3399
|
previousLabel: B,
|
|
3400
3400
|
onNext: _,
|
|
@@ -3408,7 +3408,7 @@ const Zm = {
|
|
|
3408
3408
|
withPrevious: k,
|
|
3409
3409
|
headerControlsOrder: T,
|
|
3410
3410
|
// Other props
|
|
3411
|
-
monthLabelFormat:
|
|
3411
|
+
monthLabelFormat: A,
|
|
3412
3412
|
classNames: j,
|
|
3413
3413
|
styles: q,
|
|
3414
3414
|
unstyled: ue,
|
|
@@ -3429,11 +3429,11 @@ const Zm = {
|
|
|
3429
3429
|
/* @__PURE__ */ m.jsx(
|
|
3430
3430
|
fn,
|
|
3431
3431
|
{
|
|
3432
|
-
label: typeof
|
|
3432
|
+
label: typeof A == "function" ? A(r) : N(r).locale(s || fe.locale).format(A),
|
|
3433
3433
|
__preventFocus: M,
|
|
3434
3434
|
__stopPropagation: E,
|
|
3435
3435
|
nextIcon: L,
|
|
3436
|
-
previousIcon:
|
|
3436
|
+
previousIcon: O,
|
|
3437
3437
|
nextLabel: z,
|
|
3438
3438
|
previousLabel: B,
|
|
3439
3439
|
onNext: _,
|
|
@@ -3541,7 +3541,7 @@ const eg = {
|
|
|
3541
3541
|
styles: M,
|
|
3542
3542
|
unstyled: E,
|
|
3543
3543
|
__staticSelector: L,
|
|
3544
|
-
__stopPropagation:
|
|
3544
|
+
__stopPropagation: O,
|
|
3545
3545
|
numberOfColumns: z,
|
|
3546
3546
|
levelControlAriaLabel: B,
|
|
3547
3547
|
decadeLabelFormat: _,
|
|
@@ -3562,22 +3562,22 @@ const eg = {
|
|
|
3562
3562
|
decadeLabelFormat: _,
|
|
3563
3563
|
__onControlClick: c,
|
|
3564
3564
|
__onControlMouseEnter: u,
|
|
3565
|
-
__onControlKeyDown: (
|
|
3565
|
+
__onControlKeyDown: (A, j) => Fl({
|
|
3566
3566
|
levelIndex: k,
|
|
3567
3567
|
rowIndex: j.rowIndex,
|
|
3568
3568
|
cellIndex: j.cellIndex,
|
|
3569
|
-
event:
|
|
3569
|
+
event: A,
|
|
3570
3570
|
controlsRef: W
|
|
3571
3571
|
}),
|
|
3572
|
-
__getControlRef: (
|
|
3573
|
-
Array.isArray(W.current[k]) || (W.current[k] = []), Array.isArray(W.current[k][
|
|
3572
|
+
__getControlRef: (A, j, q) => {
|
|
3573
|
+
Array.isArray(W.current[k]) || (W.current[k] = []), Array.isArray(W.current[k][A]) || (W.current[k][A] = []), W.current[k][A][j] = q;
|
|
3574
3574
|
},
|
|
3575
3575
|
levelControlAriaLabel: typeof B == "function" ? B(T) : B,
|
|
3576
3576
|
locale: s,
|
|
3577
3577
|
minDate: o,
|
|
3578
3578
|
maxDate: i,
|
|
3579
3579
|
__preventFocus: f,
|
|
3580
|
-
__stopPropagation:
|
|
3580
|
+
__stopPropagation: O,
|
|
3581
3581
|
nextIcon: h,
|
|
3582
3582
|
previousIcon: p,
|
|
3583
3583
|
nextLabel: g,
|
|
@@ -3645,7 +3645,7 @@ const tg = {
|
|
|
3645
3645
|
// Other settings
|
|
3646
3646
|
classNames: E,
|
|
3647
3647
|
styles: L,
|
|
3648
|
-
unstyled:
|
|
3648
|
+
unstyled: O,
|
|
3649
3649
|
__staticSelector: z,
|
|
3650
3650
|
__stopPropagation: B,
|
|
3651
3651
|
numberOfColumns: _,
|
|
@@ -3655,29 +3655,29 @@ const tg = {
|
|
|
3655
3655
|
vars: J,
|
|
3656
3656
|
attributes: W,
|
|
3657
3657
|
...Y
|
|
3658
|
-
} = t, I = ye([]), k = Array(_).fill(0).map((T,
|
|
3659
|
-
const j = N(r).add(
|
|
3658
|
+
} = t, I = ye([]), k = Array(_).fill(0).map((T, A) => {
|
|
3659
|
+
const j = N(r).add(A, "years").format("YYYY-MM-DD");
|
|
3660
3660
|
return /* @__PURE__ */ m.jsx(
|
|
3661
3661
|
Io,
|
|
3662
3662
|
{
|
|
3663
3663
|
size: U,
|
|
3664
3664
|
monthsListFormat: l,
|
|
3665
3665
|
year: j,
|
|
3666
|
-
withNext:
|
|
3667
|
-
withPrevious:
|
|
3666
|
+
withNext: A === _ - 1,
|
|
3667
|
+
withPrevious: A === 0,
|
|
3668
3668
|
yearLabelFormat: K,
|
|
3669
3669
|
__stopPropagation: B,
|
|
3670
3670
|
__onControlClick: c,
|
|
3671
3671
|
__onControlMouseEnter: u,
|
|
3672
3672
|
__onControlKeyDown: (q, ue) => Fl({
|
|
3673
|
-
levelIndex:
|
|
3673
|
+
levelIndex: A,
|
|
3674
3674
|
rowIndex: ue.rowIndex,
|
|
3675
3675
|
cellIndex: ue.cellIndex,
|
|
3676
3676
|
event: q,
|
|
3677
3677
|
controlsRef: I
|
|
3678
3678
|
}),
|
|
3679
3679
|
__getControlRef: (q, ue, D) => {
|
|
3680
|
-
Array.isArray(I.current[
|
|
3680
|
+
Array.isArray(I.current[A]) || (I.current[A] = []), Array.isArray(I.current[A][q]) || (I.current[A][q] = []), I.current[A][q][ue] = D;
|
|
3681
3681
|
},
|
|
3682
3682
|
levelControlAriaLabel: typeof H == "function" ? H(j) : H,
|
|
3683
3683
|
locale: s,
|
|
@@ -3697,13 +3697,13 @@ const tg = {
|
|
|
3697
3697
|
getMonthControlProps: a,
|
|
3698
3698
|
classNames: E,
|
|
3699
3699
|
styles: L,
|
|
3700
|
-
unstyled:
|
|
3700
|
+
unstyled: O,
|
|
3701
3701
|
__staticSelector: z || "YearLevelGroup",
|
|
3702
3702
|
withCellSpacing: d,
|
|
3703
3703
|
headerControlsOrder: M,
|
|
3704
3704
|
attributes: W
|
|
3705
3705
|
},
|
|
3706
|
-
|
|
3706
|
+
A
|
|
3707
3707
|
);
|
|
3708
3708
|
});
|
|
3709
3709
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -3714,7 +3714,7 @@ const tg = {
|
|
|
3714
3714
|
__staticSelector: z || "YearLevelGroup",
|
|
3715
3715
|
ref: e,
|
|
3716
3716
|
size: U,
|
|
3717
|
-
unstyled:
|
|
3717
|
+
unstyled: O,
|
|
3718
3718
|
attributes: W,
|
|
3719
3719
|
...Y,
|
|
3720
3720
|
children: k
|
|
@@ -3752,7 +3752,7 @@ const ng = {
|
|
|
3752
3752
|
previousIcon: M,
|
|
3753
3753
|
nextLabel: E,
|
|
3754
3754
|
previousLabel: L,
|
|
3755
|
-
onNext:
|
|
3755
|
+
onNext: O,
|
|
3756
3756
|
onPrevious: z,
|
|
3757
3757
|
onLevelClick: B,
|
|
3758
3758
|
nextDisabled: _,
|
|
@@ -3766,7 +3766,7 @@ const ng = {
|
|
|
3766
3766
|
numberOfColumns: I,
|
|
3767
3767
|
levelControlAriaLabel: k,
|
|
3768
3768
|
monthLabelFormat: T,
|
|
3769
|
-
__staticSelector:
|
|
3769
|
+
__staticSelector: A,
|
|
3770
3770
|
__stopPropagation: j,
|
|
3771
3771
|
size: q,
|
|
3772
3772
|
static: ue,
|
|
@@ -3813,7 +3813,7 @@ const ng = {
|
|
|
3813
3813
|
previousIcon: M,
|
|
3814
3814
|
nextLabel: E,
|
|
3815
3815
|
previousLabel: L,
|
|
3816
|
-
onNext:
|
|
3816
|
+
onNext: O,
|
|
3817
3817
|
onPrevious: z,
|
|
3818
3818
|
onLevelClick: B,
|
|
3819
3819
|
nextDisabled: _,
|
|
@@ -3822,7 +3822,7 @@ const ng = {
|
|
|
3822
3822
|
classNames: J,
|
|
3823
3823
|
styles: W,
|
|
3824
3824
|
unstyled: Y,
|
|
3825
|
-
__staticSelector:
|
|
3825
|
+
__staticSelector: A || "MonthLevelGroup",
|
|
3826
3826
|
size: q,
|
|
3827
3827
|
static: ue,
|
|
3828
3828
|
withCellSpacing: x,
|
|
@@ -3839,7 +3839,7 @@ const ng = {
|
|
|
3839
3839
|
{
|
|
3840
3840
|
classNames: J,
|
|
3841
3841
|
styles: W,
|
|
3842
|
-
__staticSelector:
|
|
3842
|
+
__staticSelector: A || "MonthLevelGroup",
|
|
3843
3843
|
ref: e,
|
|
3844
3844
|
size: q,
|
|
3845
3845
|
attributes: G,
|
|
@@ -3877,12 +3877,12 @@ const zo = ve((n, e) => {
|
|
|
3877
3877
|
value: M,
|
|
3878
3878
|
name: E,
|
|
3879
3879
|
form: L,
|
|
3880
|
-
type:
|
|
3880
|
+
type: O,
|
|
3881
3881
|
onDropdownClose: z,
|
|
3882
3882
|
withTime: B,
|
|
3883
3883
|
..._
|
|
3884
3884
|
} = Gu("PickerInputBase", { size: "sm" }, n), H = /* @__PURE__ */ m.jsx(en.ClearButton, { onClick: b, unstyled: l, ...x }), K = () => {
|
|
3885
|
-
|
|
3885
|
+
O === "range" && Array.isArray(M) && M[0] && !M[1] && b(), h.close();
|
|
3886
3886
|
};
|
|
3887
3887
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
3888
3888
|
u === "modal" && !S && /* @__PURE__ */ m.jsx(
|
|
@@ -3949,7 +3949,7 @@ const zo = ve((n, e) => {
|
|
|
3949
3949
|
]
|
|
3950
3950
|
}
|
|
3951
3951
|
) }),
|
|
3952
|
-
/* @__PURE__ */ m.jsx($l, { value: M, name: E, form: L, type:
|
|
3952
|
+
/* @__PURE__ */ m.jsx($l, { value: M, name: E, form: L, type: O, withTime: B })
|
|
3953
3953
|
] });
|
|
3954
3954
|
});
|
|
3955
3955
|
zo.classes = Td;
|
|
@@ -4022,7 +4022,7 @@ const sg = {
|
|
|
4022
4022
|
__setDateRef: E,
|
|
4023
4023
|
__setLevelRef: L,
|
|
4024
4024
|
// MonthLevelGroup props
|
|
4025
|
-
firstDayOfWeek:
|
|
4025
|
+
firstDayOfWeek: O,
|
|
4026
4026
|
weekdayFormat: z,
|
|
4027
4027
|
weekendDays: B,
|
|
4028
4028
|
getDayProps: _,
|
|
@@ -4035,7 +4035,7 @@ const sg = {
|
|
|
4035
4035
|
nextIcon: I,
|
|
4036
4036
|
previousIcon: k,
|
|
4037
4037
|
__onDayClick: T,
|
|
4038
|
-
__onDayMouseEnter:
|
|
4038
|
+
__onDayMouseEnter: A,
|
|
4039
4039
|
withCellSpacing: j,
|
|
4040
4040
|
highlightToday: q,
|
|
4041
4041
|
withWeekNumbers: ue,
|
|
@@ -4157,7 +4157,7 @@ const sg = {
|
|
|
4157
4157
|
month: Rt,
|
|
4158
4158
|
minDate: ce,
|
|
4159
4159
|
maxDate: Se,
|
|
4160
|
-
firstDayOfWeek:
|
|
4160
|
+
firstDayOfWeek: O,
|
|
4161
4161
|
weekdayFormat: z,
|
|
4162
4162
|
weekendDays: B,
|
|
4163
4163
|
getDayProps: _,
|
|
@@ -4179,7 +4179,7 @@ const sg = {
|
|
|
4179
4179
|
previousIcon: k,
|
|
4180
4180
|
monthLabelFormat: Y,
|
|
4181
4181
|
__onDayClick: T,
|
|
4182
|
-
__onDayMouseEnter:
|
|
4182
|
+
__onDayMouseEnter: A,
|
|
4183
4183
|
__preventFocus: gn,
|
|
4184
4184
|
__stopPropagation: yn,
|
|
4185
4185
|
static: it,
|
|
@@ -4284,7 +4284,7 @@ function Kl(n) {
|
|
|
4284
4284
|
onPreviousYear: M,
|
|
4285
4285
|
onNextDecade: E,
|
|
4286
4286
|
onPreviousDecade: L,
|
|
4287
|
-
withCellSpacing:
|
|
4287
|
+
withCellSpacing: O,
|
|
4288
4288
|
highlightToday: z,
|
|
4289
4289
|
__updateDateOnYearSelect: B,
|
|
4290
4290
|
__updateDateOnMonthSelect: _,
|
|
@@ -4298,7 +4298,7 @@ function Kl(n) {
|
|
|
4298
4298
|
weekendDays: I,
|
|
4299
4299
|
getDayProps: k,
|
|
4300
4300
|
excludeDate: T,
|
|
4301
|
-
renderDay:
|
|
4301
|
+
renderDay: A,
|
|
4302
4302
|
hideOutsideDates: j,
|
|
4303
4303
|
hideWeekdays: q,
|
|
4304
4304
|
getDayAriaLabel: ue,
|
|
@@ -4347,7 +4347,7 @@ function Kl(n) {
|
|
|
4347
4347
|
onPreviousYear: M,
|
|
4348
4348
|
onNextDecade: E,
|
|
4349
4349
|
onPreviousDecade: L,
|
|
4350
|
-
withCellSpacing:
|
|
4350
|
+
withCellSpacing: O,
|
|
4351
4351
|
highlightToday: z,
|
|
4352
4352
|
__updateDateOnYearSelect: B,
|
|
4353
4353
|
__updateDateOnMonthSelect: _,
|
|
@@ -4360,7 +4360,7 @@ function Kl(n) {
|
|
|
4360
4360
|
weekendDays: I,
|
|
4361
4361
|
getDayProps: k,
|
|
4362
4362
|
excludeDate: T,
|
|
4363
|
-
renderDay:
|
|
4363
|
+
renderDay: A,
|
|
4364
4364
|
hideOutsideDates: j,
|
|
4365
4365
|
hideWeekdays: q,
|
|
4366
4366
|
getDayAriaLabel: ue,
|
|
@@ -4502,7 +4502,7 @@ const lg = Fn((n, { size: e }) => ({
|
|
|
4502
4502
|
vars: S,
|
|
4503
4503
|
attributes: v,
|
|
4504
4504
|
...M
|
|
4505
|
-
} = t, { calendarProps: E, others: L } = Kl(M),
|
|
4505
|
+
} = t, { calendarProps: E, others: L } = Kl(M), O = ye(null), z = ye(null), B = kt({
|
|
4506
4506
|
name: d || "DatePicker",
|
|
4507
4507
|
classes: ig,
|
|
4508
4508
|
props: t,
|
|
@@ -4540,7 +4540,7 @@ const lg = Fn((n, { size: e }) => ({
|
|
|
4540
4540
|
...E,
|
|
4541
4541
|
...y ? {} : L,
|
|
4542
4542
|
__stopPropagation: g,
|
|
4543
|
-
__setDateRef:
|
|
4543
|
+
__setDateRef: O,
|
|
4544
4544
|
__setLevelRef: z,
|
|
4545
4545
|
minLevel: E.minLevel || "month",
|
|
4546
4546
|
__onDayMouseEnter: (j, q) => {
|
|
@@ -4579,8 +4579,8 @@ const lg = Fn((n, { size: e }) => ({
|
|
|
4579
4579
|
const T = (j) => {
|
|
4580
4580
|
var ue, D;
|
|
4581
4581
|
const q = Array.isArray(j) ? j[0] : j;
|
|
4582
|
-
q !== void 0 && ((ue =
|
|
4583
|
-
},
|
|
4582
|
+
q !== void 0 && ((ue = O.current) == null || ue.call(O, q), (D = z.current) == null || D.call(z, "month"), p ? p(q) : W(j));
|
|
4583
|
+
}, A = y.map((j, q) => /* @__PURE__ */ m.jsx(
|
|
4584
4584
|
Ot,
|
|
4585
4585
|
{
|
|
4586
4586
|
...B("presetButton"),
|
|
@@ -4592,7 +4592,7 @@ const lg = Fn((n, { size: e }) => ({
|
|
|
4592
4592
|
q
|
|
4593
4593
|
));
|
|
4594
4594
|
return /* @__PURE__ */ m.jsxs(ze, { ...B("datePickerRoot"), size: w, ...L, children: [
|
|
4595
|
-
/* @__PURE__ */ m.jsx("div", { ...B("presetsList"), children:
|
|
4595
|
+
/* @__PURE__ */ m.jsx("div", { ...B("presetsList"), children: A }),
|
|
4596
4596
|
k
|
|
4597
4597
|
] });
|
|
4598
4598
|
});
|
|
@@ -4636,7 +4636,7 @@ const dg = {
|
|
|
4636
4636
|
name: M,
|
|
4637
4637
|
form: E,
|
|
4638
4638
|
rightSection: L,
|
|
4639
|
-
unstyled:
|
|
4639
|
+
unstyled: O,
|
|
4640
4640
|
classNames: z,
|
|
4641
4641
|
styles: B,
|
|
4642
4642
|
allowDeselect: _,
|
|
@@ -4647,7 +4647,7 @@ const dg = {
|
|
|
4647
4647
|
getYearControlProps: W,
|
|
4648
4648
|
disabled: Y,
|
|
4649
4649
|
...I
|
|
4650
|
-
} = t, k = ye(null), T = ye(null), [
|
|
4650
|
+
} = t, k = ye(null), T = ye(null), [A, j] = be(!1), { calendarProps: q, others: ue } = Kl(I), D = Ht(), se = p || ((F) => {
|
|
4651
4651
|
const ot = N(F, h, D.getLocale(f)).toDate();
|
|
4652
4652
|
return Number.isNaN(ot.getTime()) ? cg(F) : N(ot).format("YYYY-MM-DD");
|
|
4653
4653
|
}), Z = _ !== void 0 ? _ : a, he = (F) => F ? N(F).locale(D.getLocale(f)).format(h) : "", [fe, le, re] = jr({
|
|
@@ -4699,12 +4699,12 @@ const dg = {
|
|
|
4699
4699
|
onClick: () => {
|
|
4700
4700
|
le(null), !re && ae(""), j(!1);
|
|
4701
4701
|
},
|
|
4702
|
-
unstyled:
|
|
4702
|
+
unstyled: O,
|
|
4703
4703
|
...c
|
|
4704
4704
|
}
|
|
4705
4705
|
), st = a && !!fe && !v && !Y;
|
|
4706
4706
|
return Ns(() => {
|
|
4707
|
-
fe !== void 0 && !
|
|
4707
|
+
fe !== void 0 && !A && ae(he(fe));
|
|
4708
4708
|
}, [fe]), lm(() => j(!1), void 0, [
|
|
4709
4709
|
k.current,
|
|
4710
4710
|
T.current
|
|
@@ -4712,12 +4712,12 @@ const dg = {
|
|
|
4712
4712
|
/* @__PURE__ */ m.jsx(en.Wrapper, { ...s, __staticSelector: "DateInput", ref: k, children: /* @__PURE__ */ m.jsxs(
|
|
4713
4713
|
et,
|
|
4714
4714
|
{
|
|
4715
|
-
opened:
|
|
4715
|
+
opened: A,
|
|
4716
4716
|
trapFocus: !1,
|
|
4717
4717
|
position: "bottom-start",
|
|
4718
4718
|
disabled: v || Y,
|
|
4719
4719
|
withRoles: !1,
|
|
4720
|
-
unstyled:
|
|
4720
|
+
unstyled: O,
|
|
4721
4721
|
...u,
|
|
4722
4722
|
children: [
|
|
4723
4723
|
/* @__PURE__ */ m.jsx(et.Target, { children: /* @__PURE__ */ m.jsx(
|
|
@@ -4756,7 +4756,7 @@ const dg = {
|
|
|
4756
4756
|
...q,
|
|
4757
4757
|
classNames: z,
|
|
4758
4758
|
styles: B,
|
|
4759
|
-
unstyled:
|
|
4759
|
+
unstyled: O,
|
|
4760
4760
|
__preventFocus: !0,
|
|
4761
4761
|
minDate: g,
|
|
4762
4762
|
maxDate: y,
|
|
@@ -4823,7 +4823,7 @@ const pg = {
|
|
|
4823
4823
|
defaultTimeValue: M,
|
|
4824
4824
|
presets: E,
|
|
4825
4825
|
attributes: L,
|
|
4826
|
-
onDropdownClose:
|
|
4826
|
+
onDropdownClose: O,
|
|
4827
4827
|
...z
|
|
4828
4828
|
} = t, B = kt({
|
|
4829
4829
|
name: "DateTimePicker",
|
|
@@ -4841,7 +4841,7 @@ const pg = {
|
|
|
4841
4841
|
}), K = i || (h ? "DD/MM/YYYY HH:mm:ss" : "DD/MM/YYYY HH:mm"), U = ye(null), J = xr(U, d == null ? void 0 : d.hoursRef), {
|
|
4842
4842
|
calendarProps: { allowSingleDateInRange: W, ...Y },
|
|
4843
4843
|
others: I
|
|
4844
|
-
} = Kl(z), k = Ht(), [T,
|
|
4844
|
+
} = Kl(z), k = Ht(), [T, A] = jr({
|
|
4845
4845
|
type: "default",
|
|
4846
4846
|
value: r,
|
|
4847
4847
|
defaultValue: s,
|
|
@@ -4849,10 +4849,10 @@ const pg = {
|
|
|
4849
4849
|
withTime: !0
|
|
4850
4850
|
}), j = v || T, q = (ae) => ae ? N(ae).format(h ? "HH:mm:ss" : "HH:mm") : "", [ue, D] = be(M || q(T)), [G, se] = be(p || g || "month"), [Z, he] = Vl(!1), fe = T ? N(T).locale(k.getLocale(l)).format(K) : "", le = (ae) => {
|
|
4851
4851
|
var De;
|
|
4852
|
-
(De = d == null ? void 0 : d.onChange) == null || De.call(d, ae), D(ae), ae &&
|
|
4852
|
+
(De = d == null ? void 0 : d.onChange) == null || De.call(d, ae), D(ae), ae && A(cc(T, ae));
|
|
4853
4853
|
}, re = (ae) => {
|
|
4854
4854
|
var De;
|
|
4855
|
-
ae &&
|
|
4855
|
+
ae && A(cc(di(w, S, ae), ue || M || "")), (De = U.current) == null || De.focus();
|
|
4856
4856
|
}, Le = (ae) => {
|
|
4857
4857
|
ae.key === "Enter" && (ae.preventDefault(), he.close());
|
|
4858
4858
|
};
|
|
@@ -4863,7 +4863,7 @@ const pg = {
|
|
|
4863
4863
|
}, [Z]);
|
|
4864
4864
|
const ce = x === "popover", Se = () => {
|
|
4865
4865
|
const ae = di(w, S, T);
|
|
4866
|
-
T && T !== ae &&
|
|
4866
|
+
T && T !== ae && A(di(w, S, T)), O == null || O();
|
|
4867
4867
|
};
|
|
4868
4868
|
return /* @__PURE__ */ m.jsxs(
|
|
4869
4869
|
zo,
|
|
@@ -4875,7 +4875,7 @@ const pg = {
|
|
|
4875
4875
|
styles: H,
|
|
4876
4876
|
unstyled: u,
|
|
4877
4877
|
ref: e,
|
|
4878
|
-
onClear: () =>
|
|
4878
|
+
onClear: () => A(null),
|
|
4879
4879
|
shouldClear: !!T,
|
|
4880
4880
|
value: T,
|
|
4881
4881
|
size: y,
|
|
@@ -4914,7 +4914,7 @@ const pg = {
|
|
|
4914
4914
|
},
|
|
4915
4915
|
presets: E,
|
|
4916
4916
|
__onPresetSelect: (ae) => {
|
|
4917
|
-
|
|
4917
|
+
A(ae), ae && D(q(ae));
|
|
4918
4918
|
},
|
|
4919
4919
|
attributes: L
|
|
4920
4920
|
}
|
|
@@ -13977,7 +13977,7 @@ function ub(n, e, t, r, s) {
|
|
|
13977
13977
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
|
13978
13978
|
let M = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, E = ia(n, M);
|
|
13979
13979
|
if (E && !n.state.selection.eq(E)) {
|
|
13980
|
-
if (Ke && zt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (
|
|
13980
|
+
if (Ke && zt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (O) => O(n, Mn(13, "Enter"))))
|
|
13981
13981
|
return;
|
|
13982
13982
|
let L = n.state.tr.setSelection(E);
|
|
13983
13983
|
M == "pointer" ? L.setMeta("pointer", !0) : M == "key" && L.scrollIntoView(), o && L.setMeta("composition", o), n.dispatch(L);
|
|
@@ -16329,8 +16329,8 @@ function r1(n) {
|
|
|
16329
16329
|
n1(M, o.find, i).forEach((L) => {
|
|
16330
16330
|
if (L.index === void 0)
|
|
16331
16331
|
return;
|
|
16332
|
-
const
|
|
16333
|
-
from: t.tr.mapping.map(
|
|
16332
|
+
const O = S + L.index + 1, z = O + L[0].length, B = {
|
|
16333
|
+
from: t.tr.mapping.map(O),
|
|
16334
16334
|
to: t.tr.mapping.map(z)
|
|
16335
16335
|
}, _ = o.handler({
|
|
16336
16336
|
state: t,
|
|
@@ -17776,14 +17776,14 @@ function m1(n) {
|
|
|
17776
17776
|
const L = M.exec(E);
|
|
17777
17777
|
if (L === null)
|
|
17778
17778
|
break;
|
|
17779
|
-
const
|
|
17779
|
+
const O = L.index, z = L[1];
|
|
17780
17780
|
if (!((p = L[2]) != null && p.endsWith(":::"))) {
|
|
17781
17781
|
if (z)
|
|
17782
17782
|
w += 1;
|
|
17783
17783
|
else if (w -= 1, w === 0) {
|
|
17784
|
-
const B = E.slice(0,
|
|
17784
|
+
const B = E.slice(0, O);
|
|
17785
17785
|
v = B.trim();
|
|
17786
|
-
const _ = d.slice(0, S +
|
|
17786
|
+
const _ = d.slice(0, S + O + L[0].length);
|
|
17787
17787
|
let H = [];
|
|
17788
17788
|
if (v)
|
|
17789
17789
|
if (l === "block")
|
|
@@ -17922,7 +17922,7 @@ function kl(n, e, t) {
|
|
|
17922
17922
|
for (u += 1; u < l.length; ) {
|
|
17923
17923
|
const S = l[u];
|
|
17924
17924
|
if (S.trim() === "") {
|
|
17925
|
-
const M = l.slice(u + 1).findIndex((
|
|
17925
|
+
const M = l.slice(u + 1).findIndex((O) => O.trim() !== "");
|
|
17926
17926
|
if (M === -1)
|
|
17927
17927
|
break;
|
|
17928
17928
|
if ((((s = (r = l[u + 1 + M].match(/^(\s*)/)) == null ? void 0 : r[1]) == null ? void 0 : s.length) || 0) > g) {
|
|
@@ -19788,8 +19788,8 @@ function kk({
|
|
|
19788
19788
|
oe(C, n.numeric, w);
|
|
19789
19789
|
const S = pt(ys), v = pt();
|
|
19790
19790
|
oe(S, e, S), oe(S, t, v), oe(v, e, S), oe(v, t, v), P(x, Tt, S), P(w, Tt, S);
|
|
19791
|
-
const M = P(l, Zt), E = P(a, Zt), L = P(E, Tt),
|
|
19792
|
-
oe(l, n.domain, i), P(l, wt, b), P(l, mt, y), oe(a, n.domain, i), P(a, wt, b), P(a, mt, y), oe(M, n.domain, S), P(M, Tt, S), P(M, Rr, S), oe(
|
|
19791
|
+
const M = P(l, Zt), E = P(a, Zt), L = P(E, Tt), O = P(L, Tt);
|
|
19792
|
+
oe(l, n.domain, i), P(l, wt, b), P(l, mt, y), oe(a, n.domain, i), P(a, wt, b), P(a, mt, y), oe(M, n.domain, S), P(M, Tt, S), P(M, Rr, S), oe(O, n.domain, S), oe(O, e, S), P(O, Tt, S);
|
|
19793
19793
|
const z = [
|
|
19794
19794
|
[Dr, Nr],
|
|
19795
19795
|
// {}
|
|
@@ -22819,7 +22819,7 @@ const gS = pe({
|
|
|
22819
22819
|
_.key === "Enter" && (_.preventDefault(), E());
|
|
22820
22820
|
};
|
|
22821
22821
|
fm("edit-link", v, !1);
|
|
22822
|
-
const { resolvedClassNames:
|
|
22822
|
+
const { resolvedClassNames: O, resolvedStyles: z } = zn({ classNames: r, styles: i, props: t });
|
|
22823
22823
|
return /* @__PURE__ */ m.jsxs(
|
|
22824
22824
|
et,
|
|
22825
22825
|
{
|
|
@@ -22842,7 +22842,7 @@ const gS = pe({
|
|
|
22842
22842
|
onClick: v,
|
|
22843
22843
|
active: (B = h.editor) == null ? void 0 : B.isActive("link"),
|
|
22844
22844
|
ref: e,
|
|
22845
|
-
classNames:
|
|
22845
|
+
classNames: O,
|
|
22846
22846
|
styles: z,
|
|
22847
22847
|
className: s,
|
|
22848
22848
|
style: o,
|
|
@@ -23550,15 +23550,15 @@ const Va = (n) => {
|
|
|
23550
23550
|
}, b) {
|
|
23551
23551
|
const [x, C] = be(!1), w = Up({
|
|
23552
23552
|
validate: i,
|
|
23553
|
-
enhanceGetInputProps(
|
|
23553
|
+
enhanceGetInputProps(O) {
|
|
23554
23554
|
return {
|
|
23555
23555
|
onFieldChange: async (z) => {
|
|
23556
23556
|
var B;
|
|
23557
|
-
|
|
23557
|
+
O.inputProps.onChange(z), await ((B = a == null ? void 0 : a[O.field.replace(/\.\d+\./g, ".")]) == null ? void 0 : B.call(a, O.field, z, w));
|
|
23558
23558
|
}
|
|
23559
23559
|
};
|
|
23560
23560
|
}
|
|
23561
|
-
}), S = Bl[s], v = (
|
|
23561
|
+
}), S = Bl[s], v = (O, z, B) => O.map((_) => {
|
|
23562
23562
|
if (_.type === "object" || _.type === "array") {
|
|
23563
23563
|
const K = B == null ? void 0 : B[_.name];
|
|
23564
23564
|
return {
|
|
@@ -23570,37 +23570,37 @@ const Va = (n) => {
|
|
|
23570
23570
|
return H ? H(_, z) : _;
|
|
23571
23571
|
}), M = Uu(() => {
|
|
23572
23572
|
if (!c) return e;
|
|
23573
|
-
const
|
|
23574
|
-
return v(e,
|
|
23575
|
-
}, [e, w.values, c]), E = w.onSubmit(async (
|
|
23576
|
-
const z = tl(e,
|
|
23573
|
+
const O = w.getValues();
|
|
23574
|
+
return v(e, O, c);
|
|
23575
|
+
}, [e, w.values, c]), E = w.onSubmit(async (O) => {
|
|
23576
|
+
const z = tl(e, O);
|
|
23577
23577
|
if (Object.keys(z).length) {
|
|
23578
23578
|
w.setErrors(z);
|
|
23579
23579
|
return;
|
|
23580
23580
|
}
|
|
23581
|
-
const B = await u(
|
|
23581
|
+
const B = await u(O);
|
|
23582
23582
|
await l(B), d(B);
|
|
23583
23583
|
});
|
|
23584
23584
|
qi(b, () => ({
|
|
23585
23585
|
submit: () => E(),
|
|
23586
|
-
reset: (
|
|
23586
|
+
reset: (O) => L(O),
|
|
23587
23587
|
validate: () => {
|
|
23588
|
-
const
|
|
23589
|
-
return Object.keys(
|
|
23588
|
+
const O = w.validate();
|
|
23589
|
+
return Object.keys(O.errors).length === 0;
|
|
23590
23590
|
},
|
|
23591
23591
|
getValues: () => w.getValues(),
|
|
23592
|
-
setValues: (
|
|
23593
|
-
getFieldValue: (
|
|
23594
|
-
setFieldValue: (
|
|
23592
|
+
setValues: (O) => w.setValues(O),
|
|
23593
|
+
getFieldValue: (O) => w.getInputProps(O).value,
|
|
23594
|
+
setFieldValue: (O, z) => w.setFieldValue(O, z),
|
|
23595
23595
|
isValid: () => Object.keys(w.validate().errors).length === 0,
|
|
23596
23596
|
isDirty: () => w.isDirty(),
|
|
23597
23597
|
isLoading: () => x
|
|
23598
23598
|
}));
|
|
23599
|
-
async function L(
|
|
23600
|
-
if (
|
|
23599
|
+
async function L(O) {
|
|
23600
|
+
if (O) {
|
|
23601
23601
|
C(!0);
|
|
23602
23602
|
try {
|
|
23603
|
-
const z = typeof
|
|
23603
|
+
const z = typeof O == "function" ? await O() : O, B = zl(e, z);
|
|
23604
23604
|
w.setValues(B), w.setDirty(B);
|
|
23605
23605
|
} finally {
|
|
23606
23606
|
C(!1);
|
|
@@ -23618,10 +23618,10 @@ const Va = (n) => {
|
|
|
23618
23618
|
children: /* @__PURE__ */ m.jsxs("form", { onSubmit: E, style: { position: "relative" }, children: [
|
|
23619
23619
|
/* @__PURE__ */ m.jsx(wp, { visible: x || y }),
|
|
23620
23620
|
S(
|
|
23621
|
-
/* @__PURE__ */ m.jsx(m.Fragment, { children: M.map((
|
|
23621
|
+
/* @__PURE__ */ m.jsx(m.Fragment, { children: M.map((O) => {
|
|
23622
23622
|
const z = {
|
|
23623
|
-
...
|
|
23624
|
-
readOnly:
|
|
23623
|
+
...O,
|
|
23624
|
+
readOnly: O.readOnly || o
|
|
23625
23625
|
};
|
|
23626
23626
|
return z.visible === !1 ? null : /* @__PURE__ */ m.jsx(
|
|
23627
23627
|
_l,
|