@lax-wp/design-system 0.13.35 → 0.13.36
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/forms/date-time-field/DateTimeField.cjs.js +1 -1
- package/dist/components/forms/date-time-field/DateTimeField.cjs.js.map +1 -1
- package/dist/components/forms/date-time-field/DateTimeField.es.js +97 -92
- package/dist/components/forms/date-time-field/DateTimeField.es.js.map +1 -1
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.cjs.js +1 -1
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.cjs.js.map +1 -1
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.d.ts +6 -0
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.es.js +172 -142
- package/dist/components/forms/dynamic-data-input/DynamicDataInputField.es.js.map +1 -1
- package/dist/components/forms/link-input/LinkInputField.cjs.js +2 -0
- package/dist/components/forms/link-input/LinkInputField.cjs.js.map +1 -0
- package/dist/components/forms/link-input/LinkInputField.d.ts +59 -0
- package/dist/components/forms/link-input/LinkInputField.es.js +102 -0
- package/dist/components/forms/link-input/LinkInputField.es.js.map +1 -0
- package/dist/components/forms/master-data-input/MasterDataInputField.cjs.js +1 -1
- package/dist/components/forms/master-data-input/MasterDataInputField.cjs.js.map +1 -1
- package/dist/components/forms/master-data-input/MasterDataInputField.d.ts +6 -0
- package/dist/components/forms/master-data-input/MasterDataInputField.es.js +199 -169
- package/dist/components/forms/master-data-input/MasterDataInputField.es.js.map +1 -1
- package/dist/components/forms/percentage-input/PercentageInputField.cjs.js +1 -5
- package/dist/components/forms/percentage-input/PercentageInputField.cjs.js.map +1 -1
- package/dist/components/forms/percentage-input/PercentageInputField.d.ts +6 -0
- package/dist/components/forms/percentage-input/PercentageInputField.es.js +141 -134
- package/dist/components/forms/percentage-input/PercentageInputField.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.es.js +407 -405
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { DatePicker as
|
|
2
|
+
import { DatePicker as de, Tooltip as Le } from "antd";
|
|
3
3
|
import B from "../../../_virtual/index.es.js";
|
|
4
4
|
import { useTranslation as Ne } from "react-i18next";
|
|
5
5
|
import l from "dayjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import Re from "dayjs/plugin/customParseFormat";
|
|
7
|
+
import Oe from "dayjs/plugin/localeData";
|
|
8
|
+
import Pe from "dayjs/plugin/utc";
|
|
9
9
|
import _e from "dayjs/plugin/weekday";
|
|
10
10
|
import { forwardRef as $e, useState as V, useRef as X, useCallback as Y, useEffect as A } from "react";
|
|
11
11
|
import { Typography as we } from "../../data-display/typography/Typography.es.js";
|
|
@@ -13,17 +13,17 @@ import { Label as qe } from "../../data-display/label/Label.es.js";
|
|
|
13
13
|
import { AIExtractedIndicator as Ke } from "../../icons/AIExtractedIndicator.es.js";
|
|
14
14
|
import { AIStarIcon as Te } from "../../icons/AIStarIcon.es.js";
|
|
15
15
|
import { HelpIcon as Ue } from "../../icons/HelpIcon.es.js";
|
|
16
|
-
import
|
|
16
|
+
import fe from "../../tooltip/Tooltip.es.js";
|
|
17
17
|
import { BoltOutlined as Ze, NoteAddOutlined as je } from "@mui/icons-material";
|
|
18
|
-
import { InputLabel as
|
|
19
|
-
import { shouldShowConfidenceScore as
|
|
18
|
+
import { InputLabel as ze } from "../shared/InputLabel.es.js";
|
|
19
|
+
import { shouldShowConfidenceScore as Ye, getConfidenceScoreBadgeFill as We, getConfidenceScoreBadgeColor as Xe, getConfidenceScoreBadgeTextColor as Je, getConfidenceScoreBadgeClass as Qe } from "../../../utils/confidenceScoreUtils.es.js";
|
|
20
|
+
l.extend(Pe);
|
|
20
21
|
l.extend(Re);
|
|
21
|
-
l.extend(Oe);
|
|
22
22
|
l.extend(_e);
|
|
23
|
-
l.extend(
|
|
24
|
-
const Ge = "MM/DD/YYYY",
|
|
23
|
+
l.extend(Oe);
|
|
24
|
+
const Ge = "MM/DD/YYYY", W = "MM/DD/YYYY - hh:mm A", pe = "YYYY-MM-DD", De = "YYYY-MM-DDTHH:mm:ss", Me = {
|
|
25
25
|
ENTER: "Enter"
|
|
26
|
-
},
|
|
26
|
+
}, Ee = [
|
|
27
27
|
"MM/DD/YYYY",
|
|
28
28
|
"M/DD/YYYY",
|
|
29
29
|
"MM/D/YYYY",
|
|
@@ -60,12 +60,12 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
60
60
|
"M/DD/YY HH:mm",
|
|
61
61
|
"MM/D/YY HH:mm",
|
|
62
62
|
"M/D/YY HH:mm",
|
|
63
|
-
...
|
|
63
|
+
...Ee,
|
|
64
64
|
"YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
65
65
|
"YYYY-MM-DDTHH:mm:ssZ"
|
|
66
66
|
], tt = () => Math.random().toString(36).substring(2, 9), F = (c, m = !1) => {
|
|
67
67
|
if (!c) return null;
|
|
68
|
-
const d = m ? et :
|
|
68
|
+
const d = m ? et : Ee;
|
|
69
69
|
for (const p of d) {
|
|
70
70
|
const b = l(c, p, !0);
|
|
71
71
|
if (b.isValid())
|
|
@@ -73,7 +73,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
73
73
|
}
|
|
74
74
|
const u = l(c);
|
|
75
75
|
return u.isValid() ? u : null;
|
|
76
|
-
},
|
|
76
|
+
}, he = (c, m) => {
|
|
77
77
|
const d = X(m);
|
|
78
78
|
A(() => {
|
|
79
79
|
d.current = m;
|
|
@@ -94,44 +94,44 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
94
94
|
errorMessage: D,
|
|
95
95
|
handleOnChange: M,
|
|
96
96
|
showTime: o = !0,
|
|
97
|
-
tags:
|
|
98
|
-
needConfirm:
|
|
99
|
-
simpleMode:
|
|
100
|
-
originalCase:
|
|
97
|
+
tags: ge,
|
|
98
|
+
needConfirm: be = !1,
|
|
99
|
+
simpleMode: ve,
|
|
100
|
+
originalCase: ye = !1,
|
|
101
101
|
dateFormat: J = void 0,
|
|
102
102
|
tooltip: Q,
|
|
103
|
-
isAiExtracted:
|
|
103
|
+
isAiExtracted: Se = !1,
|
|
104
104
|
confidenceScore: L,
|
|
105
105
|
confidenceType: v = "high",
|
|
106
106
|
confidenceTooltip: N,
|
|
107
|
-
sourceMeta:
|
|
108
|
-
onConfidenceScoreClick:
|
|
109
|
-
isGTN:
|
|
107
|
+
sourceMeta: Fe = [],
|
|
108
|
+
onConfidenceScoreClick: Ae,
|
|
109
|
+
isGTN: R = !1,
|
|
110
110
|
gtnName: G = null,
|
|
111
|
-
shouldPopOnParent:
|
|
111
|
+
shouldPopOnParent: ee = !1,
|
|
112
112
|
allowTimezoneConversion: h = !0,
|
|
113
113
|
inputStyle: xe,
|
|
114
|
-
labelClassName:
|
|
115
|
-
isLiveField:
|
|
116
|
-
labelExtra:
|
|
117
|
-
inputEmphasis:
|
|
114
|
+
labelClassName: Ie,
|
|
115
|
+
isLiveField: ke = !1,
|
|
116
|
+
labelExtra: te,
|
|
117
|
+
inputEmphasis: O = "default",
|
|
118
118
|
riskDetails: E,
|
|
119
|
-
isRiskAnalysisOpen:
|
|
120
|
-
RiskDetailsCard:
|
|
119
|
+
isRiskAnalysisOpen: P = !1,
|
|
120
|
+
RiskDetailsCard: re,
|
|
121
121
|
onAddGTNToDocument: x,
|
|
122
122
|
formatDateForGTN: _,
|
|
123
123
|
...$
|
|
124
|
-
},
|
|
125
|
-
const { t: Ce } = Ne(), w = !!(
|
|
124
|
+
}, He) => {
|
|
125
|
+
const { t: Ce } = Ne(), w = !!(P && E?.color), ne = O === "modified" && !D && !w, oe = O === "deleted" && !D && !w, le = O === "success" && !D && !w, [I, q] = V(!1), [ae, g] = V(null), [se, K] = V(
|
|
126
126
|
null
|
|
127
|
-
), [
|
|
128
|
-
|
|
127
|
+
), [k, ie] = V(!1), s = J || (o ? W : Ge), a = $?.id || `date-picker-${tt()}`, y = X(null), H = X(!1);
|
|
128
|
+
he("paste", (e) => {
|
|
129
129
|
document.activeElement?.id === a && (e.preventDefault(), navigator.clipboard.readText().then((t) => {
|
|
130
130
|
const r = F(t, o);
|
|
131
131
|
r && T(r);
|
|
132
132
|
}));
|
|
133
|
-
}),
|
|
134
|
-
if (e.key ===
|
|
133
|
+
}), he("keydown", (e) => {
|
|
134
|
+
if (e.key === Me.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id === a) {
|
|
135
135
|
const t = F(document?.activeElement?.value, o);
|
|
136
136
|
t && T(t);
|
|
137
137
|
}
|
|
@@ -163,7 +163,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
163
163
|
}, []), S = Y(
|
|
164
164
|
(e) => {
|
|
165
165
|
if (!h) {
|
|
166
|
-
const t = o ?
|
|
166
|
+
const t = o ? De : pe;
|
|
167
167
|
if (M(e ? e.format(t) : null), e) {
|
|
168
168
|
const r = document.getElementById(a);
|
|
169
169
|
if (r) {
|
|
@@ -203,7 +203,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
203
203
|
M(null);
|
|
204
204
|
},
|
|
205
205
|
[h, M, o, a, s]
|
|
206
|
-
),
|
|
206
|
+
), ce = Y(
|
|
207
207
|
(e) => {
|
|
208
208
|
if (!e) return null;
|
|
209
209
|
if (!h)
|
|
@@ -232,7 +232,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
232
232
|
(e) => {
|
|
233
233
|
if (e?.isValid() || e === null) {
|
|
234
234
|
g(e);
|
|
235
|
-
const t = o ?
|
|
235
|
+
const t = o ? De : pe, r = h ? e?.toISOString() : e ? e.format(t) : "";
|
|
236
236
|
if (M(r || null), e?.isValid()) {
|
|
237
237
|
const i = document.getElementById(a);
|
|
238
238
|
if (i) {
|
|
@@ -253,10 +253,10 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
253
253
|
[h, s, M, a, o]
|
|
254
254
|
);
|
|
255
255
|
A(() => {
|
|
256
|
-
g(
|
|
257
|
-
}, [m,
|
|
258
|
-
|
|
259
|
-
}, [
|
|
256
|
+
g(ce(m));
|
|
257
|
+
}, [m, ce]), A(() => {
|
|
258
|
+
se && K(null);
|
|
259
|
+
}, [se]), A(() => {
|
|
260
260
|
const e = document.getElementById(a);
|
|
261
261
|
if (!e) return;
|
|
262
262
|
const t = (r) => {
|
|
@@ -276,8 +276,8 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
276
276
|
setTimeout(() => {
|
|
277
277
|
document.querySelectorAll(
|
|
278
278
|
".ant-picker-dropdown:not(.ant-picker-dropdown-hidden)"
|
|
279
|
-
).forEach((
|
|
280
|
-
|
|
279
|
+
).forEach((z) => {
|
|
280
|
+
z instanceof HTMLElement && (z.style.display = "none", z.classList.add("ant-picker-dropdown-hidden"));
|
|
281
281
|
});
|
|
282
282
|
}, 50);
|
|
283
283
|
}, 50));
|
|
@@ -293,8 +293,8 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
293
293
|
);
|
|
294
294
|
};
|
|
295
295
|
}, [a, s, S, o]);
|
|
296
|
-
const
|
|
297
|
-
if (e.key ===
|
|
296
|
+
const me = Y((e) => {
|
|
297
|
+
if (e.key === Me.ENTER && !k) {
|
|
298
298
|
e.preventDefault(), e.stopPropagation();
|
|
299
299
|
const t = e.target.closest("form");
|
|
300
300
|
if (t) {
|
|
@@ -302,26 +302,26 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
302
302
|
r ? r.click() : t.requestSubmit();
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
}, [
|
|
306
|
-
if (e &&
|
|
307
|
-
|
|
305
|
+
}, [k]), ue = Y((e) => {
|
|
306
|
+
if (e && H.current) {
|
|
307
|
+
H.current = !1, ie(!1);
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
ie(e), e || (H.current = !0, requestAnimationFrame(() => {
|
|
311
311
|
y.current?.focus(), requestAnimationFrame(() => {
|
|
312
|
-
|
|
312
|
+
H.current = !1;
|
|
313
313
|
});
|
|
314
314
|
}));
|
|
315
315
|
}, []);
|
|
316
|
-
return
|
|
317
|
-
|
|
316
|
+
return ve ? /* @__PURE__ */ n("div", { onKeyDownCapture: me, children: /* @__PURE__ */ n(
|
|
317
|
+
de,
|
|
318
318
|
{
|
|
319
319
|
...$,
|
|
320
320
|
showTime: o,
|
|
321
|
-
open:
|
|
321
|
+
open: k,
|
|
322
322
|
format: s,
|
|
323
|
-
placeholder: s ===
|
|
324
|
-
value:
|
|
323
|
+
placeholder: s === W ? "MM/DD/YYYY hh:mm" : s,
|
|
324
|
+
value: ae,
|
|
325
325
|
needConfirm: !1,
|
|
326
326
|
onChange: (e) => {
|
|
327
327
|
g(e), S(e), K(e?.toISOString() || null);
|
|
@@ -329,7 +329,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
329
329
|
className: b,
|
|
330
330
|
showNow: !1,
|
|
331
331
|
onFocus: Ve,
|
|
332
|
-
onOpenChange:
|
|
332
|
+
onOpenChange: ue,
|
|
333
333
|
onBlur: (e) => {
|
|
334
334
|
const t = e.target.value;
|
|
335
335
|
if (t) {
|
|
@@ -339,29 +339,31 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
339
339
|
},
|
|
340
340
|
ref: y,
|
|
341
341
|
disabled: p,
|
|
342
|
-
id: a
|
|
342
|
+
id: a,
|
|
343
|
+
getPopupContainer: ee ? (e) => e.parentElement : () => document.body,
|
|
344
|
+
styles: { popup: { root: { zIndex: 9999 } } }
|
|
343
345
|
}
|
|
344
346
|
) }) : /* @__PURE__ */ f(
|
|
345
347
|
"div",
|
|
346
348
|
{
|
|
347
|
-
ref:
|
|
349
|
+
ref: He,
|
|
348
350
|
className: B(
|
|
349
351
|
"flex gap-0.5 relative",
|
|
350
|
-
|
|
352
|
+
I && R ? "border rounded-lg border-primary-100 bg-primary-50 p-1" : ""
|
|
351
353
|
),
|
|
352
354
|
onMouseEnter: () => q(!0),
|
|
353
355
|
onMouseLeave: () => q(!1),
|
|
354
356
|
children: [
|
|
355
|
-
|
|
356
|
-
/* @__PURE__ */ f("div", { className: `w-full flex flex-col font-inter ${b || ""}`, onKeyDownCapture:
|
|
357
|
-
c ||
|
|
357
|
+
R && !I ? /* @__PURE__ */ n("div", { className: "w-1 h-1 bg-primary-600 rounded-full animate-blink mt-1.5" }) : null,
|
|
358
|
+
/* @__PURE__ */ f("div", { className: `w-full flex flex-col font-inter ${b || ""}`, onKeyDownCapture: me, children: [
|
|
359
|
+
c || te ? /* @__PURE__ */ n(
|
|
358
360
|
"label",
|
|
359
361
|
{
|
|
360
|
-
className: `mb-1 text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${
|
|
362
|
+
className: `mb-1 text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${ye ? "" : "capitalize"} ${Ie || ""}`,
|
|
361
363
|
children: /* @__PURE__ */ f("div", { className: "grid w-full grid-cols-[minmax(0,1fr)_auto] items-start gap-x-1", children: [
|
|
362
364
|
/* @__PURE__ */ f("div", { className: "inline-flex min-w-0 items-center gap-1 flex-wrap", children: [
|
|
363
|
-
(c || d || u) && /* @__PURE__ */ n(
|
|
364
|
-
|
|
365
|
+
(c || d || u) && /* @__PURE__ */ n(ze, { label: c || "", required: d || !1, isRequiredConditional: u || !1 }),
|
|
366
|
+
ke && /* @__PURE__ */ n(
|
|
365
367
|
Ze,
|
|
366
368
|
{
|
|
367
369
|
sx: {
|
|
@@ -371,14 +373,14 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
371
373
|
}
|
|
372
374
|
}
|
|
373
375
|
),
|
|
374
|
-
|
|
375
|
-
/* @__PURE__ */ n(qe, { labels:
|
|
376
|
-
Q && /* @__PURE__ */ n(
|
|
377
|
-
|
|
376
|
+
Se && !Ye(L) && /* @__PURE__ */ n(Ke, {}),
|
|
377
|
+
/* @__PURE__ */ n(qe, { labels: ge }),
|
|
378
|
+
Q && /* @__PURE__ */ n(fe, { placement: "top", title: Q, children: /* @__PURE__ */ n("div", { className: "cursor-pointer", children: /* @__PURE__ */ n(Ue, { className: "w-icon-sm h-icon-sm" }) }) }),
|
|
379
|
+
te
|
|
378
380
|
] }),
|
|
379
381
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-1 justify-self-end", children: [
|
|
380
|
-
|
|
381
|
-
|
|
382
|
+
Ye(L) && v ? /* @__PURE__ */ n(
|
|
383
|
+
fe,
|
|
382
384
|
{
|
|
383
385
|
placement: "top-end",
|
|
384
386
|
title: N ?? "",
|
|
@@ -391,14 +393,14 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
391
393
|
"inline-flex min-w-[50px] items-center gap-1 rounded-md px-1 py-0.5",
|
|
392
394
|
Qe(v)
|
|
393
395
|
),
|
|
394
|
-
onClick: () =>
|
|
396
|
+
onClick: () => Ae?.(Fe),
|
|
395
397
|
children: [
|
|
396
398
|
/* @__PURE__ */ n(
|
|
397
399
|
Te,
|
|
398
400
|
{
|
|
399
401
|
size: 12,
|
|
400
402
|
fill: Xe(v),
|
|
401
|
-
fillSecondary:
|
|
403
|
+
fillSecondary: We(v)
|
|
402
404
|
}
|
|
403
405
|
),
|
|
404
406
|
/* @__PURE__ */ f("span", { className: B("text-xs font-medium leading-4", Je(v)), children: [
|
|
@@ -410,7 +412,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
410
412
|
)
|
|
411
413
|
}
|
|
412
414
|
) : null,
|
|
413
|
-
|
|
415
|
+
R && I && x ? /* @__PURE__ */ n(
|
|
414
416
|
"button",
|
|
415
417
|
{
|
|
416
418
|
id: "btn-date-field-add-to-document",
|
|
@@ -433,43 +435,46 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
433
435
|
}
|
|
434
436
|
) : null,
|
|
435
437
|
/* @__PURE__ */ n(
|
|
436
|
-
|
|
438
|
+
de,
|
|
437
439
|
{
|
|
438
440
|
...$,
|
|
439
441
|
showTime: o ? { use12Hours: !0 } : !1,
|
|
440
|
-
open:
|
|
442
|
+
open: k,
|
|
441
443
|
format: s,
|
|
442
|
-
placeholder: s ===
|
|
444
|
+
placeholder: s === W ? "MM/DD/YYYY - HH:MM" : s,
|
|
443
445
|
className: B(
|
|
444
446
|
"w-full h-8 text-sm font-medium dark:text-black-300",
|
|
445
447
|
D && "border-red-400",
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
448
|
+
P && E?.color && `bg-${E.color}-50 border-${E.color}-300`,
|
|
449
|
+
oe && "!border-[var(--Error-200,#FECACA)] !bg-[var(--Error-50,#FEF2F2)] !text-[#475467]",
|
|
450
|
+
ne && "!border-[var(--Warning-200,#FEDF89)] !bg-[var(--Warning-50,#FFFAEB)]",
|
|
451
|
+
le && "!border-[var(--Success-200,#BBF7D0)] !bg-[var(--Success-50,#F0FDF4)] !text-[#101828]"
|
|
450
452
|
),
|
|
451
453
|
styles: {
|
|
452
454
|
root: {
|
|
453
455
|
...xe,
|
|
454
456
|
borderRadius: "7px",
|
|
455
|
-
...
|
|
457
|
+
...oe && {
|
|
456
458
|
borderColor: "var(--Error-200, #FECACA)",
|
|
457
459
|
backgroundColor: "var(--Error-50, #FEF2F2)",
|
|
458
460
|
color: "#475467"
|
|
459
461
|
},
|
|
460
|
-
...
|
|
462
|
+
...ne && {
|
|
461
463
|
borderColor: "var(--Warning-200, #FEDF89)",
|
|
462
464
|
backgroundColor: "var(--Warning-50, #FFFAEB)"
|
|
463
465
|
},
|
|
464
|
-
...
|
|
466
|
+
...le && {
|
|
465
467
|
borderColor: "var(--Success-200, #BBF7D0)",
|
|
466
468
|
backgroundColor: "var(--Success-50, #F0FDF4)",
|
|
467
469
|
color: "#101828"
|
|
468
470
|
}
|
|
471
|
+
},
|
|
472
|
+
popup: {
|
|
473
|
+
root: { zIndex: 9999 }
|
|
469
474
|
}
|
|
470
475
|
},
|
|
471
476
|
showNow: !1,
|
|
472
|
-
value:
|
|
477
|
+
value: ae,
|
|
473
478
|
onChange: (e) => {
|
|
474
479
|
g(e), S(e), K(e?.toISOString() || null);
|
|
475
480
|
},
|
|
@@ -480,12 +485,12 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
480
485
|
r && (g(r), S(r));
|
|
481
486
|
}
|
|
482
487
|
},
|
|
483
|
-
needConfirm:
|
|
488
|
+
needConfirm: be,
|
|
484
489
|
ref: y,
|
|
485
490
|
disabled: p,
|
|
486
491
|
inputReadOnly: !1,
|
|
487
|
-
onOpenChange:
|
|
488
|
-
getPopupContainer:
|
|
492
|
+
onOpenChange: ue,
|
|
493
|
+
getPopupContainer: ee ? (e) => e.parentElement : () => document.body,
|
|
489
494
|
id: a,
|
|
490
495
|
autoComplete: "off"
|
|
491
496
|
}
|
|
@@ -501,7 +506,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
501
506
|
}
|
|
502
507
|
)
|
|
503
508
|
] }),
|
|
504
|
-
|
|
509
|
+
I && E && P && re && /* @__PURE__ */ n(
|
|
505
510
|
"div",
|
|
506
511
|
{
|
|
507
512
|
role: "tooltip",
|
|
@@ -512,7 +517,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
512
517
|
onKeyDown: (e) => {
|
|
513
518
|
e.key === "Escape" && q(!1);
|
|
514
519
|
},
|
|
515
|
-
children: /* @__PURE__ */ n(
|
|
520
|
+
children: /* @__PURE__ */ n(re, { riskDetails: E })
|
|
516
521
|
}
|
|
517
522
|
)
|
|
518
523
|
]
|
|
@@ -523,7 +528,7 @@ const Ge = "MM/DD/YYYY", z = "MM/DD/YYYY - hh:mm A", Ye = "YYYY-MM-DD", pe = "YY
|
|
|
523
528
|
rt.displayName = "DateTimeField";
|
|
524
529
|
export {
|
|
525
530
|
rt as DateTimeField,
|
|
526
|
-
|
|
531
|
+
W as UNIVERSAL_DATETIME_FORMAT,
|
|
527
532
|
Ge as UNIVERSAL_DATE_FORMAT
|
|
528
533
|
};
|
|
529
534
|
//# sourceMappingURL=DateTimeField.es.js.map
|