@envisiongroup/porygon 1.0.0-rc.33 → 1.0.0-rc.34
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/react-components/fields/Attachments/EFWAttachmentsField.js +25 -23
- package/dist/react-components/fields/DatePicker/EFWDatePickerField.js +31 -29
- package/dist/react-components/fields/Input/EFWInputField.js +15 -13
- package/dist/react-components/fields/NumberInput/EFWNumberInputField.js +19 -17
- package/dist/react-components/fields/Switch/EFWSwitchField.js +25 -23
- package/dist/react-components/fields/TagPicker/EFWTagPickerField.js +33 -31
- package/dist/react-components/fields/TextArea/EFWTextAreaField.js +18 -16
- package/dist/react-components/fields/_shared/EFWField/EFWField.js +20 -18
- package/dist/react-components/fields/_shared/EFWField/EFWField.types.d.ts +4 -0
- package/dist/react-components/forms/EFWForm/EFWForm.utils.js +66 -59
- package/dist/react-components/i18n/defaultLocaleText.js +3 -0
- package/dist/react-components/i18n/localePresets.js +11 -5
- package/dist/react-components/i18n/porygonI18n.types.d.ts +3 -0
- package/dist/react-components/tables/EFWTable/EFWTable.js +540 -523
- package/dist/react-components/tables/EFWTable/EFWTable.types.d.ts +21 -0
- package/dist/react-components/tables/EFWTable/components/EFWTableHeader/EFWTableHeader.js +73 -75
- package/dist/react-components/tables/EFWTable/hooks/useDefaultAddButton/useDefaultAddButton.js +5 -5
- package/dist/react-components/tables/EFWTable/hooks/useDefaultDeleteButton/useDefaultDeleteButton.js +12 -12
- package/dist/react-components/tables/EFWTable/hooks/useDefaultFilterButton/useDefaultFilterButton.js +45 -34
- package/dist/react-components/tables/EFWTable/hooks/useDefaultUpdateButton/useDefaultUpdateButton.js +23 -23
- package/dist/react-components/tables/EFWTable/hooks/useTableController/useTableController.js +118 -108
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { EFWField as
|
|
3
|
-
import { EFWAttachment as
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
const
|
|
2
|
+
import { EFWField as L } from "../_shared/EFWField/EFWField.js";
|
|
3
|
+
import { EFWAttachment as M } from "./EFWAttachments.js";
|
|
4
|
+
import { mergeClasses as S } from "@griffel/react";
|
|
5
|
+
const P = (t) => {
|
|
6
6
|
const {
|
|
7
7
|
title: l,
|
|
8
|
-
infoLabel:
|
|
9
|
-
hint:
|
|
8
|
+
infoLabel: s,
|
|
9
|
+
hint: i,
|
|
10
10
|
className: n,
|
|
11
11
|
style: o = {},
|
|
12
|
-
required:
|
|
13
|
-
validationState:
|
|
14
|
-
validationMessage:
|
|
12
|
+
required: r = !1,
|
|
13
|
+
validationState: m,
|
|
14
|
+
validationMessage: d,
|
|
15
15
|
validationMessageIcon: c,
|
|
16
16
|
disabled: f = !1,
|
|
17
17
|
editable: e = !0,
|
|
@@ -24,32 +24,34 @@ const I = (t) => {
|
|
|
24
24
|
labels: C,
|
|
25
25
|
onRemoveAttachment: v,
|
|
26
26
|
onChange: x,
|
|
27
|
-
onValidationChange: A
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
onValidationChange: A,
|
|
28
|
+
...E
|
|
29
|
+
} = t, N = (w, y) => {
|
|
30
|
+
x?.(w, y);
|
|
31
|
+
}, W = S(n, "efw-attachments-field");
|
|
31
32
|
return /* @__PURE__ */ a(
|
|
32
|
-
|
|
33
|
+
L,
|
|
33
34
|
{
|
|
34
|
-
className:
|
|
35
|
+
className: W,
|
|
35
36
|
style: o,
|
|
36
37
|
title: l,
|
|
37
|
-
infoLabel:
|
|
38
|
+
infoLabel: s,
|
|
38
39
|
weightLabel: e ? "regular" : "semibold",
|
|
39
|
-
hint:
|
|
40
|
+
hint: i,
|
|
40
41
|
hidden: h,
|
|
41
|
-
required:
|
|
42
|
-
validationState:
|
|
43
|
-
validationMessage:
|
|
42
|
+
required: r,
|
|
43
|
+
validationState: m,
|
|
44
|
+
validationMessage: d,
|
|
44
45
|
validationMessageIcon: c,
|
|
45
46
|
onValidationChange: A,
|
|
47
|
+
...E,
|
|
46
48
|
children: /* @__PURE__ */ a(
|
|
47
|
-
|
|
49
|
+
M,
|
|
48
50
|
{
|
|
49
51
|
files: g,
|
|
50
52
|
defaultFiles: p,
|
|
51
53
|
editable: e,
|
|
52
|
-
onChange:
|
|
54
|
+
onChange: N,
|
|
53
55
|
disabled: f,
|
|
54
56
|
multiple: u,
|
|
55
57
|
acceptedTypes: F,
|
|
@@ -62,5 +64,5 @@ const I = (t) => {
|
|
|
62
64
|
);
|
|
63
65
|
};
|
|
64
66
|
export {
|
|
65
|
-
|
|
67
|
+
P as EFWAttachmentsField
|
|
66
68
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { EFWField as
|
|
1
|
+
import { jsx as o, jsxs as oe } from "react/jsx-runtime";
|
|
2
|
+
import { EFWField as se } from "../_shared/EFWField/EFWField.js";
|
|
3
3
|
import { EFWDatePicker as q } from "./EFWDatePicker.js";
|
|
4
|
-
import { getDatePickerFormattedValue as
|
|
5
|
-
import { EFWInput as
|
|
6
|
-
import { useMemo as C, useState as
|
|
7
|
-
import { makeStyles as
|
|
8
|
-
import { useFieldsLocaleText as
|
|
9
|
-
const
|
|
4
|
+
import { getDatePickerFormattedValue as re } from "./EFWDatePicker.utils.js";
|
|
5
|
+
import { EFWInput as ce } from "../Input/EFWInput.js";
|
|
6
|
+
import { useMemo as C, useState as de, useRef as me, useEffect as Y, useCallback as _ } from "react";
|
|
7
|
+
import { makeStyles as ue, mergeClasses as fe, Text as A } from "@fluentui/react-components";
|
|
8
|
+
import { useFieldsLocaleText as he } from "../../i18n/PorygonI18nProvider.js";
|
|
9
|
+
const De = ue({
|
|
10
10
|
dateTimeContainer: {
|
|
11
11
|
display: "flex",
|
|
12
12
|
gap: "8px",
|
|
@@ -35,7 +35,7 @@ const he = me({
|
|
|
35
35
|
width: "75px"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
}),
|
|
38
|
+
}), ge = {}, Se = [];
|
|
39
39
|
function $(e, t) {
|
|
40
40
|
const l = new Date(e.getTime());
|
|
41
41
|
if (t && t.length === 4) {
|
|
@@ -45,23 +45,23 @@ function $(e, t) {
|
|
|
45
45
|
}
|
|
46
46
|
return l.setHours(0, 0, 0, 0), l;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Te(e) {
|
|
49
49
|
const t = e.getHours().toString().padStart(2, "0"), l = e.getMinutes().toString().padStart(2, "0");
|
|
50
50
|
return `${t}${l}`;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
53
|
-
const t =
|
|
52
|
+
const be = (e) => {
|
|
53
|
+
const t = De(), l = C(
|
|
54
54
|
() => ({ placeholder: e.timePlaceholder }),
|
|
55
55
|
[e.timePlaceholder]
|
|
56
56
|
);
|
|
57
57
|
if (!e.editable) {
|
|
58
|
-
const i =
|
|
58
|
+
const i = re(e.currentDate, {
|
|
59
59
|
includeTime: !0,
|
|
60
60
|
timeValue: e.currentTime
|
|
61
61
|
});
|
|
62
62
|
return i ? /* @__PURE__ */ o(A, { children: i }) : /* @__PURE__ */ o(A, { style: { opacity: 0.7 }, children: e.labels?.emptyState ?? "" });
|
|
63
63
|
}
|
|
64
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ oe("div", { className: t.dateTimeContainer, children: [
|
|
65
65
|
/* @__PURE__ */ o("div", { className: t.datePickerWrapper, children: /* @__PURE__ */ o(
|
|
66
66
|
q,
|
|
67
67
|
{
|
|
@@ -87,7 +87,7 @@ const Te = (e) => {
|
|
|
87
87
|
}
|
|
88
88
|
) }),
|
|
89
89
|
/* @__PURE__ */ o("div", { className: t.timeInputWrapper, children: /* @__PURE__ */ o(
|
|
90
|
-
|
|
90
|
+
ce,
|
|
91
91
|
{
|
|
92
92
|
value: e.currentTime,
|
|
93
93
|
formatType: "time",
|
|
@@ -100,13 +100,13 @@ const Te = (e) => {
|
|
|
100
100
|
}
|
|
101
101
|
) })
|
|
102
102
|
] });
|
|
103
|
-
},
|
|
103
|
+
}, Ne = (e) => {
|
|
104
104
|
const {
|
|
105
105
|
title: t,
|
|
106
106
|
infoLabel: l,
|
|
107
107
|
hint: i,
|
|
108
108
|
className: c,
|
|
109
|
-
style: U =
|
|
109
|
+
style: U = ge,
|
|
110
110
|
required: J = !1,
|
|
111
111
|
validationState: K,
|
|
112
112
|
validationMessage: Q,
|
|
@@ -118,7 +118,7 @@ const Te = (e) => {
|
|
|
118
118
|
selectedDates: s,
|
|
119
119
|
defaultSelectedDates: f,
|
|
120
120
|
allowRangeSelection: w = !1,
|
|
121
|
-
restrictedDates: y =
|
|
121
|
+
restrictedDates: y = Se,
|
|
122
122
|
allowTextInput: P = !0,
|
|
123
123
|
minDate: I,
|
|
124
124
|
maxDate: v,
|
|
@@ -134,8 +134,9 @@ const Te = (e) => {
|
|
|
134
134
|
includeTime: u = !1,
|
|
135
135
|
timeValue: R,
|
|
136
136
|
defaultTimeValue: ee = "",
|
|
137
|
-
timePlaceholder: te = "HH:MM"
|
|
138
|
-
|
|
137
|
+
timePlaceholder: te = "HH:MM",
|
|
138
|
+
...ae
|
|
139
|
+
} = e, V = he().datePicker.labels, H = V.placeholder, O = V.emptyState, j = M?.placeholder, z = M?.emptyState, B = C(() => ({
|
|
139
140
|
placeholder: j ?? H,
|
|
140
141
|
emptyState: z ?? O
|
|
141
142
|
}), [
|
|
@@ -143,7 +144,7 @@ const Te = (e) => {
|
|
|
143
144
|
z,
|
|
144
145
|
H,
|
|
145
146
|
O
|
|
146
|
-
]), d = R !== void 0, [
|
|
147
|
+
]), d = R !== void 0, [ne, D] = de(ee), g = d ? R : ne, S = me(null), T = C(() => {
|
|
147
148
|
const n = s ?? f ?? [];
|
|
148
149
|
if (n.length === 0) return null;
|
|
149
150
|
const a = n[0];
|
|
@@ -158,7 +159,7 @@ const Te = (e) => {
|
|
|
158
159
|
return;
|
|
159
160
|
}
|
|
160
161
|
const n = s[0], a = n instanceof Date ? n : new Date(n);
|
|
161
|
-
isNaN(a.getTime()) || d || D(
|
|
162
|
+
isNaN(a.getTime()) || d || D(Te(a));
|
|
162
163
|
}, [s, u, d]);
|
|
163
164
|
const G = _((n) => {
|
|
164
165
|
const a = (r) => r instanceof Date ? r.toISOString() : r;
|
|
@@ -168,17 +169,17 @@ const Te = (e) => {
|
|
|
168
169
|
}
|
|
169
170
|
const b = n.map((r) => r instanceof Date ? $(r, g).toISOString() : r);
|
|
170
171
|
m?.(b);
|
|
171
|
-
}, [u, g, m]),
|
|
172
|
+
}, [u, g, m]), le = _((n) => {
|
|
172
173
|
const a = n ?? "";
|
|
173
174
|
if (d || D(a), S.current && a.length === 4) {
|
|
174
175
|
const b = $(S.current, a);
|
|
175
176
|
m?.([b.toISOString()]);
|
|
176
177
|
}
|
|
177
|
-
}, [d, m]),
|
|
178
|
+
}, [d, m]), ie = fe(c, "efw-datePicker-field");
|
|
178
179
|
return /* @__PURE__ */ o(
|
|
179
|
-
|
|
180
|
+
se,
|
|
180
181
|
{
|
|
181
|
-
className:
|
|
182
|
+
className: ie,
|
|
182
183
|
style: U,
|
|
183
184
|
title: t,
|
|
184
185
|
infoLabel: l,
|
|
@@ -190,8 +191,9 @@ const Te = (e) => {
|
|
|
190
191
|
validationMessage: Q,
|
|
191
192
|
validationMessageIcon: X,
|
|
192
193
|
onValidationChange: p,
|
|
194
|
+
...ae,
|
|
193
195
|
children: u ? /* @__PURE__ */ o(
|
|
194
|
-
|
|
196
|
+
be,
|
|
195
197
|
{
|
|
196
198
|
editable: h,
|
|
197
199
|
disabled: x,
|
|
@@ -211,7 +213,7 @@ const Te = (e) => {
|
|
|
211
213
|
onFormatDate: L,
|
|
212
214
|
labels: B,
|
|
213
215
|
currentTime: g,
|
|
214
|
-
onTimeChange:
|
|
216
|
+
onTimeChange: le,
|
|
215
217
|
timePlaceholder: te,
|
|
216
218
|
currentDate: T
|
|
217
219
|
}
|
|
@@ -241,5 +243,5 @@ const Te = (e) => {
|
|
|
241
243
|
);
|
|
242
244
|
};
|
|
243
245
|
export {
|
|
244
|
-
|
|
246
|
+
Ne as EFWDatePickerField
|
|
245
247
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { EFWField as A } from "../_shared/EFWField/EFWField.js";
|
|
3
3
|
import { EFWInput as B } from "./EFWInput.js";
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
const
|
|
4
|
+
import { mergeClasses as S } from "@griffel/react";
|
|
5
|
+
const H = (a) => {
|
|
6
6
|
const {
|
|
7
7
|
title: n,
|
|
8
8
|
infoLabel: o,
|
|
@@ -14,10 +14,10 @@ const G = (a) => {
|
|
|
14
14
|
contentBefore: f,
|
|
15
15
|
contentAfter: m,
|
|
16
16
|
minLength: g = 0,
|
|
17
|
-
maxLength:
|
|
18
|
-
validationState:
|
|
19
|
-
validationMessage:
|
|
20
|
-
validationMessageIcon:
|
|
17
|
+
maxLength: p = 250,
|
|
18
|
+
validationState: u,
|
|
19
|
+
validationMessage: c,
|
|
20
|
+
validationMessageIcon: h,
|
|
21
21
|
value: C,
|
|
22
22
|
defaultValue: b,
|
|
23
23
|
editable: e = !0,
|
|
@@ -31,10 +31,11 @@ const G = (a) => {
|
|
|
31
31
|
formatFunction: M,
|
|
32
32
|
labels: N,
|
|
33
33
|
validationMessages: W,
|
|
34
|
-
onValidationChange: w
|
|
34
|
+
onValidationChange: w,
|
|
35
|
+
...P
|
|
35
36
|
} = a, V = (q, z) => {
|
|
36
37
|
x?.(q, z);
|
|
37
|
-
}, j =
|
|
38
|
+
}, j = S(r, "efw-input-field");
|
|
38
39
|
return /* @__PURE__ */ t(
|
|
39
40
|
A,
|
|
40
41
|
{
|
|
@@ -46,11 +47,12 @@ const G = (a) => {
|
|
|
46
47
|
hint: i,
|
|
47
48
|
size: s,
|
|
48
49
|
required: d,
|
|
49
|
-
validationState:
|
|
50
|
-
validationMessage:
|
|
51
|
-
validationMessageIcon:
|
|
50
|
+
validationState: u,
|
|
51
|
+
validationMessage: c,
|
|
52
|
+
validationMessageIcon: h,
|
|
52
53
|
onValidationChange: w,
|
|
53
54
|
hidden: v,
|
|
55
|
+
...P,
|
|
54
56
|
children: /* @__PURE__ */ t(
|
|
55
57
|
B,
|
|
56
58
|
{
|
|
@@ -59,7 +61,7 @@ const G = (a) => {
|
|
|
59
61
|
editable: e,
|
|
60
62
|
onChange: V,
|
|
61
63
|
minLength: g,
|
|
62
|
-
maxLength:
|
|
64
|
+
maxLength: p,
|
|
63
65
|
disabled: F,
|
|
64
66
|
autoComplete: L,
|
|
65
67
|
type: y,
|
|
@@ -76,5 +78,5 @@ const G = (a) => {
|
|
|
76
78
|
);
|
|
77
79
|
};
|
|
78
80
|
export {
|
|
79
|
-
|
|
81
|
+
H as EFWInputField
|
|
80
82
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { EFWField as
|
|
3
|
-
import { EFWNumberInput as
|
|
2
|
+
import { EFWField as B } from "../_shared/EFWField/EFWField.js";
|
|
3
|
+
import { EFWNumberInput as P } from "./EFWNumberInput.js";
|
|
4
4
|
import { mergeClasses as T } from "@griffel/react";
|
|
5
5
|
const H = (t) => {
|
|
6
6
|
const {
|
|
7
7
|
title: n,
|
|
8
8
|
infoLabel: o,
|
|
9
9
|
hint: l,
|
|
10
|
-
className:
|
|
11
|
-
style:
|
|
10
|
+
className: r,
|
|
11
|
+
style: i = {},
|
|
12
12
|
required: s = !1,
|
|
13
13
|
contentBefore: m,
|
|
14
14
|
contentAfter: d,
|
|
15
15
|
minValue: u,
|
|
16
16
|
maxValue: f,
|
|
17
|
-
validationState:
|
|
18
|
-
validationMessage:
|
|
17
|
+
validationState: p,
|
|
18
|
+
validationMessage: c,
|
|
19
19
|
validationMessageIcon: b,
|
|
20
20
|
value: g,
|
|
21
21
|
defaultValue: h,
|
|
@@ -31,32 +31,34 @@ const H = (t) => {
|
|
|
31
31
|
decimalSeparator: M,
|
|
32
32
|
labels: S,
|
|
33
33
|
validationMessages: W,
|
|
34
|
-
onValidationChange: w
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
onValidationChange: w,
|
|
35
|
+
...y
|
|
36
|
+
} = t, L = (q, A) => {
|
|
37
|
+
v?.(q, A);
|
|
38
|
+
}, j = T(r, "efw-numberInput-field");
|
|
38
39
|
return /* @__PURE__ */ a(
|
|
39
|
-
|
|
40
|
+
B,
|
|
40
41
|
{
|
|
41
|
-
className:
|
|
42
|
-
style:
|
|
42
|
+
className: j,
|
|
43
|
+
style: i,
|
|
43
44
|
title: n,
|
|
44
45
|
infoLabel: o,
|
|
45
46
|
weightLabel: e ? "regular" : "semibold",
|
|
46
47
|
hint: l,
|
|
47
48
|
required: s,
|
|
48
|
-
validationState:
|
|
49
|
-
validationMessage:
|
|
49
|
+
validationState: p,
|
|
50
|
+
validationMessage: c,
|
|
50
51
|
validationMessageIcon: b,
|
|
51
52
|
onValidationChange: w,
|
|
52
53
|
hidden: F,
|
|
54
|
+
...y,
|
|
53
55
|
children: /* @__PURE__ */ a(
|
|
54
|
-
|
|
56
|
+
P,
|
|
55
57
|
{
|
|
56
58
|
value: g,
|
|
57
59
|
defaultValue: h,
|
|
58
60
|
editable: e,
|
|
59
|
-
onChange:
|
|
61
|
+
onChange: L,
|
|
60
62
|
disabled: C,
|
|
61
63
|
autoComplete: N,
|
|
62
64
|
contentBefore: m,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { EFWField as
|
|
3
|
-
import { EFWSwitch as
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
const
|
|
2
|
+
import { EFWField as S } from "../_shared/EFWField/EFWField.js";
|
|
3
|
+
import { EFWSwitch as W } from "./EFWSwitch.js";
|
|
4
|
+
import { mergeClasses as x } from "@griffel/react";
|
|
5
|
+
const q = (l) => {
|
|
6
6
|
const {
|
|
7
7
|
title: i,
|
|
8
|
-
infoLabel:
|
|
9
|
-
hint:
|
|
8
|
+
infoLabel: s,
|
|
9
|
+
hint: t,
|
|
10
10
|
className: o,
|
|
11
11
|
style: n = {},
|
|
12
|
-
required:
|
|
13
|
-
validationState:
|
|
12
|
+
required: r = !1,
|
|
13
|
+
validationState: d,
|
|
14
14
|
validationMessage: m,
|
|
15
15
|
validationMessageIcon: f,
|
|
16
16
|
value: h,
|
|
@@ -19,33 +19,35 @@ const j = (l) => {
|
|
|
19
19
|
disabled: g = !1,
|
|
20
20
|
hidden: u = !1,
|
|
21
21
|
labels: b,
|
|
22
|
-
onChange:
|
|
23
|
-
onValidationChange:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
onChange: p,
|
|
23
|
+
onValidationChange: C,
|
|
24
|
+
...w
|
|
25
|
+
} = l, F = (E, N) => {
|
|
26
|
+
p?.(E, N);
|
|
27
|
+
}, v = x(o, "efw-switch-field");
|
|
27
28
|
return /* @__PURE__ */ a(
|
|
28
|
-
|
|
29
|
+
S,
|
|
29
30
|
{
|
|
30
|
-
className:
|
|
31
|
+
className: v,
|
|
31
32
|
style: n,
|
|
32
33
|
title: i,
|
|
33
|
-
infoLabel:
|
|
34
|
+
infoLabel: s,
|
|
34
35
|
weightLabel: e ? "regular" : "semibold",
|
|
35
|
-
hint:
|
|
36
|
-
required:
|
|
37
|
-
validationState:
|
|
36
|
+
hint: t,
|
|
37
|
+
required: r,
|
|
38
|
+
validationState: d,
|
|
38
39
|
validationMessage: m,
|
|
39
40
|
validationMessageIcon: f,
|
|
40
|
-
onValidationChange:
|
|
41
|
+
onValidationChange: C,
|
|
41
42
|
hidden: u,
|
|
43
|
+
...w,
|
|
42
44
|
children: /* @__PURE__ */ a(
|
|
43
|
-
|
|
45
|
+
W,
|
|
44
46
|
{
|
|
45
47
|
value: h,
|
|
46
48
|
defaultValue: c,
|
|
47
49
|
editable: e,
|
|
48
|
-
onChange:
|
|
50
|
+
onChange: F,
|
|
49
51
|
disabled: g,
|
|
50
52
|
labels: b
|
|
51
53
|
}
|
|
@@ -54,5 +56,5 @@ const j = (l) => {
|
|
|
54
56
|
);
|
|
55
57
|
};
|
|
56
58
|
export {
|
|
57
|
-
|
|
59
|
+
q as EFWSwitchField
|
|
58
60
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { EFWField as
|
|
3
|
-
import { EFWTagPicker as
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
const
|
|
2
|
+
import { EFWField as y } from "../_shared/EFWField/EFWField.js";
|
|
3
|
+
import { EFWTagPicker as I } from "./EFWTagPicker.js";
|
|
4
|
+
import { mergeClasses as j } from "@griffel/react";
|
|
5
|
+
const R = (i) => {
|
|
6
6
|
const {
|
|
7
|
-
title:
|
|
7
|
+
title: t,
|
|
8
8
|
// description,
|
|
9
|
-
infoLabel:
|
|
9
|
+
infoLabel: n,
|
|
10
10
|
hint: o,
|
|
11
|
-
className:
|
|
12
|
-
style:
|
|
11
|
+
className: s,
|
|
12
|
+
style: l = {},
|
|
13
13
|
required: r = !1,
|
|
14
14
|
labels: d,
|
|
15
15
|
validationState: g = "none",
|
|
16
16
|
validationMessage: m = "",
|
|
17
|
-
validationMessageIcon:
|
|
18
|
-
minQueryLength:
|
|
17
|
+
validationMessageIcon: p,
|
|
18
|
+
minQueryLength: f = 0,
|
|
19
19
|
options: c = [],
|
|
20
20
|
selectedOptions: h,
|
|
21
21
|
defaultSelectedOptions: u,
|
|
@@ -24,50 +24,52 @@ const Q = (i) => {
|
|
|
24
24
|
hidden: C = !1,
|
|
25
25
|
noPopover: F = !1,
|
|
26
26
|
multiple: O = !1,
|
|
27
|
-
tagSize:
|
|
28
|
-
tagShape:
|
|
29
|
-
tagAppearance:
|
|
30
|
-
onChange:
|
|
27
|
+
tagSize: P = "medium",
|
|
28
|
+
tagShape: S = "rounded",
|
|
29
|
+
tagAppearance: v = "brand",
|
|
30
|
+
onChange: M,
|
|
31
31
|
beforeRenderOptions: k,
|
|
32
32
|
renderOptionMedia: w,
|
|
33
33
|
showOptionMediaInSelectedTags: E = !1,
|
|
34
|
-
onValidationChange: L
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
onValidationChange: L,
|
|
35
|
+
...N
|
|
36
|
+
} = i, T = (x = []) => {
|
|
37
|
+
M?.(x);
|
|
38
|
+
}, W = j(s, "efw-tagPicker-field");
|
|
38
39
|
return /* @__PURE__ */ a(
|
|
39
|
-
|
|
40
|
+
y,
|
|
40
41
|
{
|
|
41
42
|
hint: o,
|
|
42
|
-
className:
|
|
43
|
-
style:
|
|
44
|
-
title:
|
|
45
|
-
infoLabel:
|
|
43
|
+
className: W,
|
|
44
|
+
style: l,
|
|
45
|
+
title: t,
|
|
46
|
+
infoLabel: n,
|
|
46
47
|
weightLabel: e ? "regular" : "semibold",
|
|
47
48
|
required: r,
|
|
48
49
|
validationState: g,
|
|
49
50
|
validationMessage: m,
|
|
50
|
-
validationMessageIcon:
|
|
51
|
+
validationMessageIcon: p,
|
|
51
52
|
onValidationChange: L,
|
|
52
53
|
hidden: C,
|
|
54
|
+
...N,
|
|
53
55
|
children: /* @__PURE__ */ a(
|
|
54
|
-
|
|
56
|
+
I,
|
|
55
57
|
{
|
|
56
58
|
editable: e,
|
|
57
59
|
labels: d,
|
|
58
60
|
selectedOptions: h,
|
|
59
61
|
defaultSelectedOptions: u,
|
|
60
|
-
minQueryLength:
|
|
62
|
+
minQueryLength: f,
|
|
61
63
|
options: c,
|
|
62
|
-
onChange:
|
|
64
|
+
onChange: T,
|
|
63
65
|
beforeRenderOptions: k,
|
|
64
66
|
renderOptionMedia: w,
|
|
65
67
|
showOptionMediaInSelectedTags: E,
|
|
66
68
|
disabled: b,
|
|
67
69
|
noPopover: F,
|
|
68
|
-
tagSize:
|
|
69
|
-
tagShape:
|
|
70
|
-
tagAppearance:
|
|
70
|
+
tagSize: P,
|
|
71
|
+
tagShape: S,
|
|
72
|
+
tagAppearance: v,
|
|
71
73
|
multiple: O
|
|
72
74
|
}
|
|
73
75
|
)
|
|
@@ -75,5 +77,5 @@ const Q = (i) => {
|
|
|
75
77
|
);
|
|
76
78
|
};
|
|
77
79
|
export {
|
|
78
|
-
|
|
80
|
+
R as EFWTagPickerField
|
|
79
81
|
};
|
|
@@ -2,13 +2,13 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { EFWField as j } from "../_shared/EFWField/EFWField.js";
|
|
3
3
|
import { EFWTextArea as q } from "./EFWTextArea.js";
|
|
4
4
|
import { mergeClasses as z } from "@griffel/react";
|
|
5
|
-
const
|
|
5
|
+
const S = (t) => {
|
|
6
6
|
const {
|
|
7
7
|
title: o,
|
|
8
8
|
infoLabel: n,
|
|
9
9
|
hint: l,
|
|
10
|
-
className:
|
|
11
|
-
style:
|
|
10
|
+
className: s,
|
|
11
|
+
style: i = {},
|
|
12
12
|
required: r = !1,
|
|
13
13
|
contentBefore: d,
|
|
14
14
|
contentAfter: f,
|
|
@@ -17,10 +17,10 @@ const P = (t) => {
|
|
|
17
17
|
validationState: g,
|
|
18
18
|
validationMessage: h,
|
|
19
19
|
validationMessageIcon: u,
|
|
20
|
-
value:
|
|
21
|
-
defaultValue:
|
|
20
|
+
value: p,
|
|
21
|
+
defaultValue: C,
|
|
22
22
|
editable: e = !0,
|
|
23
|
-
disabled:
|
|
23
|
+
disabled: b = !1,
|
|
24
24
|
hidden: x = !1,
|
|
25
25
|
onChange: F,
|
|
26
26
|
onKeyDown: v,
|
|
@@ -29,15 +29,16 @@ const P = (t) => {
|
|
|
29
29
|
formatFunction: E,
|
|
30
30
|
labels: L,
|
|
31
31
|
validationMessages: M,
|
|
32
|
-
onValidationChange: N
|
|
33
|
-
|
|
32
|
+
onValidationChange: N,
|
|
33
|
+
...W
|
|
34
|
+
} = t, y = (T, V) => {
|
|
34
35
|
F?.(T, V);
|
|
35
|
-
},
|
|
36
|
+
}, P = z(s, "efw-textArea-field");
|
|
36
37
|
return /* @__PURE__ */ a(
|
|
37
38
|
j,
|
|
38
39
|
{
|
|
39
|
-
className:
|
|
40
|
-
style:
|
|
40
|
+
className: P,
|
|
41
|
+
style: i,
|
|
41
42
|
title: o,
|
|
42
43
|
infoLabel: n,
|
|
43
44
|
weightLabel: e ? "regular" : "semibold",
|
|
@@ -48,17 +49,18 @@ const P = (t) => {
|
|
|
48
49
|
validationMessageIcon: u,
|
|
49
50
|
onValidationChange: N,
|
|
50
51
|
hidden: x,
|
|
52
|
+
...W,
|
|
51
53
|
children: /* @__PURE__ */ a(
|
|
52
54
|
q,
|
|
53
55
|
{
|
|
54
|
-
value:
|
|
55
|
-
defaultValue:
|
|
56
|
+
value: p,
|
|
57
|
+
defaultValue: C,
|
|
56
58
|
editable: e,
|
|
57
|
-
onChange:
|
|
59
|
+
onChange: y,
|
|
58
60
|
onKeyDown: v,
|
|
59
61
|
maxLength: m,
|
|
60
62
|
size: c,
|
|
61
|
-
disabled:
|
|
63
|
+
disabled: b,
|
|
62
64
|
autoComplete: A,
|
|
63
65
|
contentBefore: d,
|
|
64
66
|
contentAfter: f,
|
|
@@ -72,5 +74,5 @@ const P = (t) => {
|
|
|
72
74
|
);
|
|
73
75
|
};
|
|
74
76
|
export {
|
|
75
|
-
|
|
77
|
+
S as EFWTextAreaField
|
|
76
78
|
};
|