@lax-wp/design-system 0.13.34 → 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/data-display/infinite-table/body/cell/CheckboxCell.cjs.js +1 -1
- package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.cjs.js.map +1 -1
- package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.es.js +23 -23
- package/dist/components/data-display/infinite-table/body/cell/CheckboxCell.es.js.map +1 -1
- package/dist/components/data-display/infinite-table/head/CheckAll.cjs.js +1 -1
- package/dist/components/data-display/infinite-table/head/CheckAll.cjs.js.map +1 -1
- package/dist/components/data-display/infinite-table/head/CheckAll.es.js +4 -4
- package/dist/components/data-display/infinite-table/head/CheckAll.es.js.map +1 -1
- package/dist/components/data-display/infinite-table/head/index.cjs.js +1 -1
- package/dist/components/data-display/infinite-table/head/index.cjs.js.map +1 -1
- package/dist/components/data-display/infinite-table/head/index.es.js +5 -5
- package/dist/components/data-display/infinite-table/head/index.es.js.map +1 -1
- 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,119 +1,148 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { Tooltip as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { Typography as
|
|
7
|
-
import { Label as
|
|
8
|
-
import { BoltOutlined as $e, NoteAddOutlined as
|
|
9
|
-
import { AIExtractedIndicator as
|
|
10
|
-
import { AIStarIcon as
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import l from "../../../_virtual/index.es.js";
|
|
3
|
+
import { forwardRef as Ee, useState as f, useRef as Ne, useEffect as k } from "react";
|
|
4
|
+
import { Tooltip as Ie } from "antd";
|
|
5
|
+
import { useTranslation as Be } from "react-i18next";
|
|
6
|
+
import { Typography as ze } from "../../data-display/typography/Typography.es.js";
|
|
7
|
+
import { Label as Ve } from "../../data-display/label/Label.es.js";
|
|
8
|
+
import { BoltOutlined as $e, NoteAddOutlined as Ae, TableChartRounded as Re } from "@mui/icons-material";
|
|
9
|
+
import { AIExtractedIndicator as Le } from "../../icons/AIExtractedIndicator.es.js";
|
|
10
|
+
import { AIStarIcon as We } from "../../icons/AIStarIcon.es.js";
|
|
11
11
|
import { HelpIcon as Me } from "../../icons/HelpIcon.es.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { InputLabel as
|
|
15
|
-
import { shouldShowConfidenceScore as J, getConfidenceScoreBadgeFill as
|
|
16
|
-
import { CloseIcon as
|
|
17
|
-
const
|
|
12
|
+
import z from "../../tooltip/Tooltip.es.js";
|
|
13
|
+
import D from "../../button/IconButton.es.js";
|
|
14
|
+
import { InputLabel as Oe } from "../shared/InputLabel.es.js";
|
|
15
|
+
import { shouldShowConfidenceScore as J, getConfidenceScoreBadgeFill as je, getConfidenceScoreBadgeColor as He, getConfidenceScoreBadgeTextColor as Ke, getConfidenceScoreBadgeClass as Pe } from "../../../utils/confidenceScoreUtils.es.js";
|
|
16
|
+
import { CloseIcon as _e } from "../../icon/icons.generated.es.js";
|
|
17
|
+
const qe = Ee(
|
|
18
18
|
({
|
|
19
19
|
id: Q,
|
|
20
20
|
label: T,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
21
|
+
labelExtra: U,
|
|
22
|
+
placeholder: X,
|
|
23
|
+
value: i,
|
|
24
|
+
onChange: V,
|
|
25
|
+
errorMessage: o,
|
|
26
|
+
defaultValue: Y,
|
|
27
|
+
required: $ = !1,
|
|
28
|
+
isRequiredConditional: Z = !1,
|
|
29
|
+
masterDataName: b,
|
|
30
|
+
masterDataColumnName: G,
|
|
31
|
+
masterDataFormula: s,
|
|
32
|
+
masterDataFilters: ee,
|
|
33
|
+
tags: te,
|
|
34
|
+
index: re,
|
|
35
|
+
tooltip: A = "",
|
|
36
|
+
originalCase: le = !1,
|
|
37
|
+
color: d = "",
|
|
38
|
+
isGTN: v = !1,
|
|
39
|
+
labelClassName: ne,
|
|
39
40
|
gtnName: R = null,
|
|
40
|
-
isAiExtracted:
|
|
41
|
-
confidenceScore:
|
|
42
|
-
confidenceType:
|
|
41
|
+
isAiExtracted: oe = !1,
|
|
42
|
+
confidenceScore: w,
|
|
43
|
+
confidenceType: m = "high",
|
|
43
44
|
confidenceTooltip: C,
|
|
44
|
-
sourceMeta:
|
|
45
|
-
onConfidenceScoreClick:
|
|
46
|
-
disabled:
|
|
47
|
-
reference:
|
|
48
|
-
isLiveField:
|
|
49
|
-
onBlur:
|
|
50
|
-
onAddGTNToDocument:
|
|
51
|
-
riskDetails:
|
|
52
|
-
isRiskAnalysisOpen:
|
|
53
|
-
RiskDetailsCard:
|
|
54
|
-
primaryColorShades:
|
|
55
|
-
setDisableActions:
|
|
56
|
-
showDeprecatedFieldWarning:
|
|
57
|
-
MasterDataModal:
|
|
58
|
-
parseMasterDataFormula:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
g(()
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
45
|
+
sourceMeta: ae = [],
|
|
46
|
+
onConfidenceScoreClick: ie,
|
|
47
|
+
disabled: L = !1,
|
|
48
|
+
reference: se = {},
|
|
49
|
+
isLiveField: de = !1,
|
|
50
|
+
onBlur: ce,
|
|
51
|
+
onAddGTNToDocument: y,
|
|
52
|
+
riskDetails: c,
|
|
53
|
+
isRiskAnalysisOpen: W = !1,
|
|
54
|
+
RiskDetailsCard: M,
|
|
55
|
+
primaryColorShades: ue,
|
|
56
|
+
setDisableActions: O,
|
|
57
|
+
showDeprecatedFieldWarning: j,
|
|
58
|
+
MasterDataModal: H,
|
|
59
|
+
parseMasterDataFormula: x,
|
|
60
|
+
inputEmphasis: S = "default"
|
|
61
|
+
}, fe) => {
|
|
62
|
+
const { t: me } = Be(), g = !!(W && c?.color), pe = S === "modified" && !o && !g, be = S === "deleted" && !o && !g, xe = S === "success" && !o && !g, [h, F] = f(!1), [a, p] = f(null), [u, K] = f(!1), [ge, he] = f(""), [E, P] = f(null), [ke, ve] = f(!1), N = Ne(null), I = fe || N;
|
|
63
|
+
k(() => {
|
|
64
|
+
const e = () => {
|
|
65
|
+
const r = I.current || N.current;
|
|
66
|
+
r && ve(r.scrollWidth > r.clientWidth);
|
|
65
67
|
};
|
|
66
|
-
return
|
|
67
|
-
}, [
|
|
68
|
-
|
|
69
|
-
}, [
|
|
70
|
-
|
|
71
|
-
}, [
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
},
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
77
|
-
|
|
68
|
+
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
69
|
+
}, [a, i]), k(() => {
|
|
70
|
+
p(i);
|
|
71
|
+
}, [re, i]), k(() => {
|
|
72
|
+
a !== null && a !== i && V(a, E);
|
|
73
|
+
}, [a, E]);
|
|
74
|
+
const B = () => {
|
|
75
|
+
O?.(!u), K(!u);
|
|
76
|
+
}, we = (e) => {
|
|
77
|
+
if (e.keyCode === 9 || e.key === "Enter") {
|
|
78
|
+
const r = I.current || N.current;
|
|
79
|
+
r && (p(ge), r.blur());
|
|
78
80
|
}
|
|
79
|
-
},
|
|
80
|
-
let
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
|
|
81
|
+
}, Ce = (e, r) => {
|
|
82
|
+
let q = e;
|
|
83
|
+
s && x && (q = x(s, r)), he(""), p(q), B(), P(r);
|
|
84
|
+
}, ye = () => {
|
|
85
|
+
p(""), P(null);
|
|
86
|
+
}, Se = (e) => {
|
|
87
|
+
y && R && y({
|
|
86
88
|
key: R,
|
|
87
|
-
value:
|
|
89
|
+
value: e
|
|
88
90
|
});
|
|
89
|
-
},
|
|
90
|
-
const
|
|
91
|
-
return
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
}, Fe = () => {
|
|
92
|
+
const e = "border h-8 text-sm rounded-lg block w-full p-2.5 pr-16 font-inter font-medium", r = "placeholder:text-neutral-900 dark:placeholder:text-black-400";
|
|
93
|
+
return o ? l(
|
|
94
|
+
e,
|
|
95
|
+
r,
|
|
96
|
+
"border-red-300 bg-gray-200 dark:border-black-600 dark:bg-black-600",
|
|
97
|
+
d || "text-neutral-900 dark:text-black-200"
|
|
98
|
+
) : g && c?.color ? l(
|
|
99
|
+
e,
|
|
100
|
+
r,
|
|
101
|
+
`border-${c.color}-300 bg-${c.color}-50`,
|
|
102
|
+
d || "text-neutral-900 dark:text-black-200"
|
|
103
|
+
) : be ? l(
|
|
104
|
+
e,
|
|
105
|
+
r,
|
|
106
|
+
"border-[var(--Error-200,#FECACA)] bg-[var(--Error-50,#FEF2F2)] !text-[#475467] dark:border-[var(--Error-200,#FECACA)] dark:bg-[var(--Error-50,#FEF2F2)] dark:!text-[#475467]"
|
|
107
|
+
) : pe ? l(
|
|
108
|
+
e,
|
|
109
|
+
r,
|
|
110
|
+
"border-[var(--Warning-200,#FEDF89)] bg-[var(--Warning-50,#FFFAEB)] text-neutral-900 dark:text-black-100 dark:border-[var(--Warning-200,#FEDF89)] dark:bg-[var(--Warning-50,#FFFAEB)]"
|
|
111
|
+
) : xe ? l(
|
|
112
|
+
e,
|
|
113
|
+
r,
|
|
114
|
+
"border-[var(--Success-200,#BBF7D0)] bg-[var(--Success-50,#F0FDF4)] !text-[#101828] dark:border-[var(--Success-200,#BBF7D0)] dark:bg-[var(--Success-50,#F0FDF4)] dark:!text-[#101828]"
|
|
115
|
+
) : l(
|
|
116
|
+
e,
|
|
117
|
+
r,
|
|
118
|
+
"border-gray-300 bg-gray-200 dark:border-black-600 dark:bg-black-600",
|
|
119
|
+
d || "text-neutral-900 dark:text-black-200"
|
|
120
|
+
);
|
|
121
|
+
}, _ = () => a !== null ? a : s && x ? x(s, se) : i;
|
|
122
|
+
return k(() => {
|
|
123
|
+
u && !b && (j?.(), K(!1));
|
|
124
|
+
}, [u, b, j]), /* @__PURE__ */ n(
|
|
96
125
|
"div",
|
|
97
126
|
{
|
|
98
|
-
className:
|
|
127
|
+
className: l(
|
|
99
128
|
"flex gap-0.5 w-full relative",
|
|
100
|
-
h &&
|
|
101
|
-
{ "error-field": !!
|
|
129
|
+
h && v ? "border rounded-lg border-primary-100 p-1" : "",
|
|
130
|
+
{ "error-field": !!o }
|
|
102
131
|
),
|
|
103
|
-
onMouseEnter: () =>
|
|
104
|
-
onMouseLeave: () =>
|
|
132
|
+
onMouseEnter: () => F(!0),
|
|
133
|
+
onMouseLeave: () => F(!1),
|
|
105
134
|
children: [
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
135
|
+
v && !h ? /* @__PURE__ */ t("div", { className: "w-1 h-1 bg-primary-600 rounded-full animate-blink mt-1.5" }) : null,
|
|
136
|
+
/* @__PURE__ */ n("div", { className: l("flex flex-col w-full"), children: [
|
|
137
|
+
/* @__PURE__ */ t(
|
|
109
138
|
"label",
|
|
110
139
|
{
|
|
111
140
|
htmlFor: "text",
|
|
112
|
-
className: `text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${
|
|
113
|
-
children: /* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
|
|
141
|
+
className: `text-xs font-medium text-gray-600 inline-flex items-center gap-1 ${le ? "" : "capitalize"} ${ne || ""}`,
|
|
142
|
+
children: /* @__PURE__ */ n("div", { className: "grid w-full grid-cols-[minmax(0,1fr)_auto] items-start gap-x-1", children: [
|
|
143
|
+
/* @__PURE__ */ n("div", { className: "inline-flex min-w-0 items-center gap-1 flex-wrap", children: [
|
|
144
|
+
/* @__PURE__ */ t(Oe, { label: T || "", required: $ || !1, isRequiredConditional: Z || !1 }),
|
|
145
|
+
de && /* @__PURE__ */ t(
|
|
117
146
|
$e,
|
|
118
147
|
{
|
|
119
148
|
sx: {
|
|
@@ -123,44 +152,45 @@ const Pe = Ce(
|
|
|
123
152
|
}
|
|
124
153
|
}
|
|
125
154
|
),
|
|
126
|
-
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
|
|
129
|
-
|
|
155
|
+
oe && !J(w) && /* @__PURE__ */ t(Le, {}),
|
|
156
|
+
/* @__PURE__ */ t(Ve, { labels: te }),
|
|
157
|
+
A && /* @__PURE__ */ t(
|
|
158
|
+
z,
|
|
130
159
|
{
|
|
131
160
|
placement: "top",
|
|
132
|
-
title: `${
|
|
133
|
-
children: /* @__PURE__ */
|
|
161
|
+
title: `${A}${s ? ` | ${s}` : ""}`,
|
|
162
|
+
children: /* @__PURE__ */ t("div", { className: "cursor-pointer", children: /* @__PURE__ */ t(Me, { className: "w-icon-sm h-icon-sm" }) })
|
|
134
163
|
}
|
|
135
|
-
)
|
|
164
|
+
),
|
|
165
|
+
U
|
|
136
166
|
] }),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
J(
|
|
139
|
-
|
|
167
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-1 justify-self-end", children: [
|
|
168
|
+
J(w) && m ? /* @__PURE__ */ t(
|
|
169
|
+
z,
|
|
140
170
|
{
|
|
141
171
|
placement: "top-end",
|
|
142
172
|
title: C ?? "",
|
|
143
173
|
hideTooltip: C == null,
|
|
144
174
|
className: "cursor-pointer",
|
|
145
|
-
children: /* @__PURE__ */
|
|
175
|
+
children: /* @__PURE__ */ n(
|
|
146
176
|
"div",
|
|
147
177
|
{
|
|
148
|
-
className:
|
|
178
|
+
className: l(
|
|
149
179
|
"inline-flex min-w-[50px] items-center gap-1 rounded-md px-1 py-0.5",
|
|
150
|
-
|
|
180
|
+
Pe(m)
|
|
151
181
|
),
|
|
152
|
-
onClick: () =>
|
|
182
|
+
onClick: () => ie?.(ae),
|
|
153
183
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
|
|
184
|
+
/* @__PURE__ */ t(
|
|
185
|
+
We,
|
|
156
186
|
{
|
|
157
187
|
size: 12,
|
|
158
|
-
fill:
|
|
159
|
-
fillSecondary:
|
|
188
|
+
fill: He(m),
|
|
189
|
+
fillSecondary: je(m)
|
|
160
190
|
}
|
|
161
191
|
),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
|
|
192
|
+
/* @__PURE__ */ n("span", { className: l("text-xs font-medium leading-4", Ke(m)), children: [
|
|
193
|
+
w,
|
|
164
194
|
"%"
|
|
165
195
|
] })
|
|
166
196
|
]
|
|
@@ -168,19 +198,19 @@ const Pe = Ce(
|
|
|
168
198
|
)
|
|
169
199
|
}
|
|
170
200
|
) : null,
|
|
171
|
-
|
|
201
|
+
v && h && y ? /* @__PURE__ */ t(
|
|
172
202
|
"button",
|
|
173
203
|
{
|
|
174
204
|
id: "btn-master-data-input-add-to-document",
|
|
175
205
|
className: "cursor-pointer",
|
|
176
|
-
onClick: () =>
|
|
206
|
+
onClick: () => Se(i?.toString() || ""),
|
|
177
207
|
type: "button",
|
|
178
|
-
children: /* @__PURE__ */
|
|
179
|
-
|
|
208
|
+
children: /* @__PURE__ */ t(Ie, { placement: "top", title: me("Add to document"), children: /* @__PURE__ */ t(
|
|
209
|
+
Ae,
|
|
180
210
|
{
|
|
181
211
|
sx: {
|
|
182
212
|
fontSize: 16,
|
|
183
|
-
color:
|
|
213
|
+
color: ue?.[600] || "var(--color-primary-600)"
|
|
184
214
|
}
|
|
185
215
|
}
|
|
186
216
|
) })
|
|
@@ -190,53 +220,53 @@ const Pe = Ce(
|
|
|
190
220
|
] })
|
|
191
221
|
}
|
|
192
222
|
),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
|
|
223
|
+
/* @__PURE__ */ n("label", { className: "relative block mt-1", children: [
|
|
224
|
+
/* @__PURE__ */ t(
|
|
225
|
+
z,
|
|
196
226
|
{
|
|
197
|
-
title:
|
|
198
|
-
children: /* @__PURE__ */
|
|
227
|
+
title: ke ? _() : "",
|
|
228
|
+
children: /* @__PURE__ */ t(
|
|
199
229
|
"input",
|
|
200
230
|
{
|
|
201
231
|
id: Q,
|
|
202
|
-
ref:
|
|
203
|
-
required:
|
|
204
|
-
placeholder:
|
|
205
|
-
className:
|
|
206
|
-
onChange: (
|
|
207
|
-
|
|
232
|
+
ref: I,
|
|
233
|
+
required: $,
|
|
234
|
+
placeholder: X,
|
|
235
|
+
className: Fe(),
|
|
236
|
+
onChange: (e) => {
|
|
237
|
+
V(e.target.value, E), p(e.target?.value);
|
|
208
238
|
},
|
|
209
|
-
onKeyDown:
|
|
210
|
-
value:
|
|
211
|
-
defaultValue:
|
|
239
|
+
onKeyDown: we,
|
|
240
|
+
value: _(),
|
|
241
|
+
defaultValue: Y,
|
|
212
242
|
disabled: !0,
|
|
213
243
|
autoComplete: "off",
|
|
214
|
-
onBlur:
|
|
244
|
+
onBlur: ce
|
|
215
245
|
}
|
|
216
246
|
)
|
|
217
247
|
}
|
|
218
248
|
),
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
|
|
249
|
+
/* @__PURE__ */ t(
|
|
250
|
+
D,
|
|
221
251
|
{
|
|
222
252
|
id: "btn-dynamic-data-input-rx-cross",
|
|
223
|
-
onClick:
|
|
253
|
+
onClick: ye,
|
|
224
254
|
className: "absolute inset-y-0 right-1 flex items-center px-2 focus:border-transparent",
|
|
225
255
|
variant: "ghost",
|
|
226
|
-
disabled:
|
|
227
|
-
children: /* @__PURE__ */
|
|
256
|
+
disabled: L,
|
|
257
|
+
children: /* @__PURE__ */ t(_e, { className: "w-6 h-6 text-neutral-500 dark:text-neutral-400 w-sm h-sm" })
|
|
228
258
|
}
|
|
229
259
|
),
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
|
|
260
|
+
/* @__PURE__ */ t(
|
|
261
|
+
D,
|
|
232
262
|
{
|
|
233
263
|
id: "btn-dynamic-data-input-ai-outline-pic-center",
|
|
234
|
-
onClick:
|
|
264
|
+
onClick: B,
|
|
235
265
|
className: "absolute inset-y-0 right-8 flex items-center px-2 focus:border-transparent",
|
|
236
266
|
variant: "ghost",
|
|
237
|
-
disabled:
|
|
238
|
-
children: /* @__PURE__ */
|
|
239
|
-
|
|
267
|
+
disabled: L,
|
|
268
|
+
children: /* @__PURE__ */ t(
|
|
269
|
+
Re,
|
|
240
270
|
{
|
|
241
271
|
className: "text-neutral-500 dark:text-neutral-400 w-sm h-sm"
|
|
242
272
|
}
|
|
@@ -244,42 +274,42 @@ const Pe = Ce(
|
|
|
244
274
|
}
|
|
245
275
|
)
|
|
246
276
|
] }),
|
|
247
|
-
|
|
248
|
-
|
|
277
|
+
o && /* @__PURE__ */ t(
|
|
278
|
+
ze,
|
|
249
279
|
{
|
|
250
280
|
className: "text-error-500 mt-1",
|
|
251
281
|
appearance: "custom",
|
|
252
282
|
size: "extra-small",
|
|
253
283
|
variant: "medium",
|
|
254
|
-
children:
|
|
284
|
+
children: o
|
|
255
285
|
}
|
|
256
286
|
),
|
|
257
|
-
|
|
258
|
-
|
|
287
|
+
u && H && /* @__PURE__ */ t(
|
|
288
|
+
H,
|
|
259
289
|
{
|
|
260
|
-
isVisible:
|
|
261
|
-
onSelected:
|
|
262
|
-
onClose:
|
|
263
|
-
masterDataColumnName:
|
|
264
|
-
masterDataFilters:
|
|
265
|
-
masterDataName:
|
|
266
|
-
masterDataId:
|
|
290
|
+
isVisible: u,
|
|
291
|
+
onSelected: Ce,
|
|
292
|
+
onClose: B,
|
|
293
|
+
masterDataColumnName: G,
|
|
294
|
+
masterDataFilters: ee,
|
|
295
|
+
masterDataName: b,
|
|
296
|
+
masterDataId: b,
|
|
267
297
|
showFilters: !0
|
|
268
298
|
}
|
|
269
299
|
)
|
|
270
300
|
] }),
|
|
271
|
-
h &&
|
|
301
|
+
h && c && W && M && /* @__PURE__ */ t(
|
|
272
302
|
"div",
|
|
273
303
|
{
|
|
274
304
|
role: "tooltip",
|
|
275
305
|
tabIndex: 0,
|
|
276
306
|
className: "absolute left-0 right-0 top-[95%] mt-1 z-50 bg-white dark:bg-black-600 rounded-xl",
|
|
277
|
-
onClick: (
|
|
278
|
-
onMouseDown: (
|
|
279
|
-
onKeyDown: (
|
|
280
|
-
|
|
307
|
+
onClick: (e) => e.stopPropagation(),
|
|
308
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
309
|
+
onKeyDown: (e) => {
|
|
310
|
+
e.key === "Escape" && F(!1);
|
|
281
311
|
},
|
|
282
|
-
children: /* @__PURE__ */
|
|
312
|
+
children: /* @__PURE__ */ t(M, { riskDetails: c })
|
|
283
313
|
}
|
|
284
314
|
)
|
|
285
315
|
]
|
|
@@ -287,8 +317,8 @@ const Pe = Ce(
|
|
|
287
317
|
);
|
|
288
318
|
}
|
|
289
319
|
);
|
|
290
|
-
|
|
320
|
+
qe.displayName = "MasterDataInputField";
|
|
291
321
|
export {
|
|
292
|
-
|
|
322
|
+
qe as MasterDataInputField
|
|
293
323
|
};
|
|
294
324
|
//# sourceMappingURL=MasterDataInputField.es.js.map
|