@envisiongroup/porygon 1.0.0-rc.2 → 1.0.0-rc.4
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/index.js +23 -20
- package/dist/react-components/fields/EFWDatePicker/EFWDatePicker.js +28 -28
- package/dist/react-components/fields/EFWTagPicker/EFWTagPicker.js +44 -44
- package/dist/react-components/tables/EFWTable/EFWTable.d.ts +1 -1
- package/dist/react-components/tables/EFWTable/EFWTable.js +405 -344
- package/dist/react-components/tables/EFWTable/EFWTable.types.d.ts +59 -3
- package/dist/react-components/tables/EFWTable/components/EFWTableCell/EFWTableCell.js +14 -13
- package/dist/react-components/tables/EFWTable/components/EFWTableOverlay/EFWTableOverlay.d.ts +15 -0
- package/dist/react-components/tables/EFWTable/components/EFWTableOverlay/EFWTableOverlay.js +253 -0
- package/dist/react-components/tables/EFWTable/components/EFWTableOverlay/EFWTableOverlay.types.d.ts +102 -0
- package/dist/react-components/tables/EFWTable/components/EFWTableOverlay/index.d.ts +2 -0
- package/dist/react-components/tables/EFWTable/components/EFWTableOverlay/index.js +5 -0
- package/dist/react-components/tables/EFWTable/hooks/useTableController/useTableController.js +78 -64
- package/dist/react-components/tables/EFWTable/index.d.ts +2 -0
- package/dist/react-components/tables/EFWTable/index.js +7 -4
- package/dist/react-components/tables/EFWTable/utils/cache.js +19 -19
- package/package.json +1 -1
- package/dist/react-components/tables/EFWTable/components/EFWTableEmpty/EFWTableEmpty.d.ts +0 -3
- package/dist/react-components/tables/EFWTable/components/EFWTableEmpty/EFWTableEmpty.js +0 -66
- package/dist/react-components/tables/EFWTable/components/EFWTableEmpty/EFWTableEmpty.types.d.ts +0 -16
- package/dist/react-components/tables/EFWTable/components/EFWTableEmpty/index.d.ts +0 -2
- package/dist/react-components/tables/EFWTable/components/EFWTableEmpty/index.js +0 -4
- package/dist/react-components/tables/EFWTable/hooks/useTableController/useTableController copy.d.ts +0 -4
- package/dist/react-components/tables/EFWTable/hooks/useTableController/useTableController copy.js +0 -178
package/dist/index.js
CHANGED
|
@@ -2,23 +2,23 @@ import { formatFileSize as o, getErrorMessage as t, getFileIconUrl as F } from "
|
|
|
2
2
|
import { EFWMessageBarManager as p } from "./react-components/forms/EFWMessageBarManager/EFWMessageBarManager.js";
|
|
3
3
|
import { EFWButton as f } from "./react-components/buttons/EFWButton/EFWButton.js";
|
|
4
4
|
import { useEFWButton as W } from "./react-components/buttons/EFWButton/EFWButton.hooks.js";
|
|
5
|
-
import { EFWDrawerButton as
|
|
5
|
+
import { EFWDrawerButton as l } from "./react-components/buttons/EFWDrawerButton/EFWDrawerButton.js";
|
|
6
6
|
import { EFWGroupButton as u } from "./react-components/buttons/EFWGroupButton/EFWGroupButton.js";
|
|
7
7
|
import { EFWAttachment as s } from "./react-components/fields/EFWAttachments/EFWAttachments.js";
|
|
8
8
|
import { EFWAttachmentsField as d } from "./react-components/fields/EFWAttachmentsField/EFWAttachmentsField.js";
|
|
9
9
|
import { EFWDatePicker as T } from "./react-components/fields/EFWDatePicker/EFWDatePicker.js";
|
|
10
|
-
import { EFWDatePickerField as
|
|
11
|
-
import { EFWField as
|
|
10
|
+
import { EFWDatePickerField as B } from "./react-components/fields/EFWDatePickerField/EFWDatePickerField.js";
|
|
11
|
+
import { EFWField as I } from "./react-components/fields/EFWField/EFWField.js";
|
|
12
12
|
import { EFWInput as k } from "./react-components/fields/EFWInput/EFWInput.js";
|
|
13
13
|
import { EFWInputField as A } from "./react-components/fields/EFWInputField/EFWInputField.js";
|
|
14
14
|
import { EFWNumberInput as P } from "./react-components/fields/EFWNumberInput/EFWNumberInput.js";
|
|
15
|
-
import { EFWNumberInputField as
|
|
16
|
-
import { EFWSwitch as
|
|
17
|
-
import { EFWSwitchField as
|
|
18
|
-
import { EFWTagPicker as
|
|
19
|
-
import { EFWTagPickerField as
|
|
20
|
-
import { EFWTextArea as
|
|
21
|
-
import { EFWTextAreaField as
|
|
15
|
+
import { EFWNumberInputField as S } from "./react-components/fields/EFWNumberInputField/EFWNumberInputField.js";
|
|
16
|
+
import { EFWSwitch as G } from "./react-components/fields/EFWSwitch/EFWSwitch.js";
|
|
17
|
+
import { EFWSwitchField as v } from "./react-components/fields/EFWSwitchField/EFWSwitchField.js";
|
|
18
|
+
import { EFWTagPicker as O } from "./react-components/fields/EFWTagPicker/EFWTagPicker.js";
|
|
19
|
+
import { EFWTagPickerField as j } from "./react-components/fields/EFWTagPickerField/EFWTagPickerField.js";
|
|
20
|
+
import { EFWTextArea as H } from "./react-components/fields/EFWTextArea/EFWTextArea.js";
|
|
21
|
+
import { EFWTextAreaField as K } from "./react-components/fields/EFWTextAreaField/EFWTextAreaField.js";
|
|
22
22
|
import { getEFWFormFieldDisplayText as Q } from "./react-components/forms/EFWForm/EFWForm.converter.js";
|
|
23
23
|
import { useFormController as V } from "./react-components/forms/EFWForm/EFWForm.hooks.js";
|
|
24
24
|
import { EFWForm as Y } from "./react-components/forms/EFWForm/EFWForm.js";
|
|
@@ -26,14 +26,15 @@ import { EFWFormMessageBarGroup as _ } from "./react-components/forms/EFWFormMes
|
|
|
26
26
|
import { useDrawer as rr } from "./react-components/hooks/useDrawer/useDrawer.js";
|
|
27
27
|
import { EFWTable as or } from "./react-components/tables/EFWTable/EFWTable.js";
|
|
28
28
|
import { useTableController as Fr } from "./react-components/tables/EFWTable/hooks/useTableController/useTableController.js";
|
|
29
|
+
import { EFWTableEmpty as pr, EFWTableOverlay as xr } from "./react-components/tables/EFWTable/components/EFWTableOverlay/EFWTableOverlay.js";
|
|
29
30
|
export {
|
|
30
31
|
s as EFWAttachment,
|
|
31
32
|
d as EFWAttachmentsField,
|
|
32
33
|
f as EFWButton,
|
|
33
34
|
T as EFWDatePicker,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
B as EFWDatePickerField,
|
|
36
|
+
l as EFWDrawerButton,
|
|
37
|
+
I as EFWField,
|
|
37
38
|
Y as EFWForm,
|
|
38
39
|
_ as EFWFormMessageBarGroup,
|
|
39
40
|
u as EFWGroupButton,
|
|
@@ -41,14 +42,16 @@ export {
|
|
|
41
42
|
A as EFWInputField,
|
|
42
43
|
p as EFWMessageBarManager,
|
|
43
44
|
P as EFWNumberInput,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
S as EFWNumberInputField,
|
|
46
|
+
G as EFWSwitch,
|
|
47
|
+
v as EFWSwitchField,
|
|
47
48
|
or as EFWTable,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
pr as EFWTableEmpty,
|
|
50
|
+
xr as EFWTableOverlay,
|
|
51
|
+
O as EFWTagPicker,
|
|
52
|
+
j as EFWTagPickerField,
|
|
53
|
+
H as EFWTextArea,
|
|
54
|
+
K as EFWTextAreaField,
|
|
52
55
|
o as formatFileSize,
|
|
53
56
|
Q as getEFWFormFieldDisplayText,
|
|
54
57
|
t as getErrorMessage,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as g, Fragment as H } from "react/jsx-runtime";
|
|
2
2
|
import { makeStyles as J, tokens as l, mergeClasses as K, Text as O } from "@fluentui/react-components";
|
|
3
|
-
import { useId as Q, useMemo as
|
|
3
|
+
import { useId as Q, useMemo as M, useState as X, useRef as F, useCallback as h, useEffect as Z } from "react";
|
|
4
4
|
import { DatePicker as ee } from "@fluentui/react-datepicker-compat";
|
|
5
|
-
import { mapToValidDates as
|
|
6
|
-
const
|
|
5
|
+
import { mapToValidDates as D, esLocalizedStrings as x } from "./EFWDatePicker.utils.js";
|
|
6
|
+
const p = [], te = J({
|
|
7
7
|
efwDatePickerControl: {
|
|
8
8
|
"& [disabled]": {
|
|
9
9
|
backgroundColor: l.colorNeutralBackground3,
|
|
@@ -25,42 +25,42 @@ const C = [], te = J({
|
|
|
25
25
|
borderBottomWidth: "2px"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
}), se = (
|
|
28
|
+
}), se = (C) => {
|
|
29
29
|
const {
|
|
30
30
|
editable: T = !0,
|
|
31
31
|
disabled: Y = !1,
|
|
32
32
|
placeholder: B = "DD/MM/YYYY",
|
|
33
33
|
className: V = "",
|
|
34
|
-
selectedDates:
|
|
35
|
-
defaultSelectedDates:
|
|
34
|
+
selectedDates: S = p,
|
|
35
|
+
defaultSelectedDates: u = p,
|
|
36
36
|
allowTextInput: $ = !0,
|
|
37
|
-
localizedStrings: w =
|
|
37
|
+
localizedStrings: w = x,
|
|
38
38
|
minDate: E,
|
|
39
39
|
maxDate: I,
|
|
40
40
|
showGoToToday: N = !0,
|
|
41
41
|
showCloseButton: R = !0,
|
|
42
|
-
restrictedDates: v =
|
|
43
|
-
friendlyDateFormat:
|
|
42
|
+
restrictedDates: v = p,
|
|
43
|
+
friendlyDateFormat: k = !1,
|
|
44
44
|
onSelectDate: s,
|
|
45
|
-
onChange:
|
|
45
|
+
onChange: d,
|
|
46
46
|
validationState: z = "none",
|
|
47
|
-
setParentComponentState:
|
|
48
|
-
} =
|
|
47
|
+
setParentComponentState: m
|
|
48
|
+
} = C, P = Q(), b = te(), n = C.selectedDates !== void 0, A = M(() => D(S ?? []), [S]), y = M(() => D(u), [u]), [L, f] = X(() => D(u)), e = n ? A : L, W = F(null), j = F(null), G = h((o) => {
|
|
49
49
|
if (!o) return "";
|
|
50
50
|
const a = o.getDate(), t = o.getMonth(), c = o.getFullYear();
|
|
51
|
-
if (
|
|
52
|
-
return `${
|
|
51
|
+
if (k)
|
|
52
|
+
return `${x.months[t]} ${a}, ${c}`;
|
|
53
53
|
{
|
|
54
54
|
const i = a < 10 ? `0${a}` : a, r = t + 1 < 10 ? `0${t + 1}` : t + 1;
|
|
55
55
|
return `${i}/${r}/${c}`;
|
|
56
56
|
}
|
|
57
|
-
}, [
|
|
57
|
+
}, [k]), U = h((o) => {
|
|
58
58
|
const a = e.length && e[0] instanceof Date ? e[0] : /* @__PURE__ */ new Date(), t = (o || "").trim().split("/"), c = t.length > 0 ? Math.max(1, Math.min(31, parseInt(t[0], 10))) : a.getDate(), i = t.length > 1 ? Math.max(1, Math.min(12, parseInt(t[1], 10))) - 1 : a.getMonth();
|
|
59
59
|
let r = t.length > 2 ? parseInt(t[2], 10) : a.getFullYear();
|
|
60
60
|
return r < 100 && (r += a.getFullYear() - a.getFullYear() % 100), new Date(r, i, c);
|
|
61
|
-
}, [e]), _ =
|
|
61
|
+
}, [e]), _ = h((o) => {
|
|
62
62
|
if (!(o instanceof Date)) {
|
|
63
|
-
!n && e.length > 0 &&
|
|
63
|
+
!n && e.length > 0 && f([]), s?.(null), d?.([]), m?.("none", "");
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
if (e.length > 0 && e[0] instanceof Date ? e[0].getTime() === o.getTime() : !1) {
|
|
@@ -68,17 +68,17 @@ const C = [], te = J({
|
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
const t = [o];
|
|
71
|
-
n ||
|
|
72
|
-
}, [e, n, s,
|
|
71
|
+
n || f(t), s?.(o), d?.(t), m?.("none", "");
|
|
72
|
+
}, [e, n, s, d, m]);
|
|
73
73
|
Z(() => {
|
|
74
|
-
n ||
|
|
75
|
-
}, [n,
|
|
74
|
+
n || f(y);
|
|
75
|
+
}, [n, y]);
|
|
76
76
|
const q = K(
|
|
77
77
|
V,
|
|
78
|
-
|
|
79
|
-
z === "error" &&
|
|
78
|
+
b.efwDatePickerControl,
|
|
79
|
+
z === "error" && b.efwDatePickerControlError
|
|
80
80
|
);
|
|
81
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ g(H, { children: T ? /* @__PURE__ */ g(
|
|
82
82
|
ee,
|
|
83
83
|
{
|
|
84
84
|
calendar: {
|
|
@@ -88,8 +88,8 @@ const C = [], te = J({
|
|
|
88
88
|
strings: w,
|
|
89
89
|
className: q,
|
|
90
90
|
ref: W,
|
|
91
|
-
id:
|
|
92
|
-
name:
|
|
91
|
+
id: P,
|
|
92
|
+
name: P,
|
|
93
93
|
autoComplete: "off",
|
|
94
94
|
autoCorrect: "off",
|
|
95
95
|
autoCapitalize: "off",
|
|
@@ -107,7 +107,7 @@ const C = [], te = J({
|
|
|
107
107
|
showGoToToday: N,
|
|
108
108
|
showCloseButton: R
|
|
109
109
|
}
|
|
110
|
-
) : /* @__PURE__ */
|
|
110
|
+
) : /* @__PURE__ */ g(O, { style: e.length ? void 0 : { opacity: 0.7 }, children: e.length > 0 && e[0] instanceof Date ? e[0].toLocaleDateString() : "Sin datos disponibles" }) });
|
|
111
111
|
};
|
|
112
112
|
export {
|
|
113
113
|
se as EFWDatePicker
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as t, Fragment as pe, jsxs as
|
|
2
|
-
import { useRef as y, useState as C, useMemo as
|
|
3
|
-
import { makeStyles as ue, tokens as r, useTagPickerFilter as fe, TagPickerOption as
|
|
1
|
+
import { jsx as t, Fragment as pe, jsxs as V } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as y, useState as C, useMemo as q, useEffect as T, useCallback as u } from "react";
|
|
3
|
+
import { makeStyles as ue, tokens as r, useTagPickerFilter as fe, TagPickerOption as R, Avatar as ge, Spinner as me, mergeClasses as be, TagPicker as he, TagPickerControl as Ce, TagPickerGroup as Se, Tag as Oe, TagPickerInput as ke, Button as ye, TagPickerList as Te, Text as xe } from "@fluentui/react-components";
|
|
4
4
|
import { CollectionsEmpty20Regular as Pe, Eraser20Regular as ve } from "@fluentui/react-icons";
|
|
5
|
-
const
|
|
5
|
+
const E = [], Ne = ue({
|
|
6
6
|
efwTagPickerControlError: {
|
|
7
7
|
backgroundColor: r.colorPaletteRedBackground1,
|
|
8
8
|
"::after": {
|
|
@@ -40,78 +40,78 @@ const w = [], Ne = ue({
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}), De = (
|
|
43
|
+
}), De = (w) => {
|
|
44
44
|
const {
|
|
45
45
|
placeholder: Q = "Selecciona una opción",
|
|
46
46
|
noMatchesMessage: W = "No se encontraron coincidencias",
|
|
47
47
|
loadingMessage: G = "Buscando información...",
|
|
48
48
|
className: J = "",
|
|
49
49
|
minQueryLength: f = 0,
|
|
50
|
-
options: a =
|
|
50
|
+
options: a = E,
|
|
51
51
|
hidden: Y = !1,
|
|
52
52
|
disabled: D = !1,
|
|
53
53
|
editable: H = !0,
|
|
54
|
-
selectedOptions:
|
|
55
|
-
defaultSelectedOptions:
|
|
54
|
+
selectedOptions: L = E,
|
|
55
|
+
defaultSelectedOptions: x = E,
|
|
56
56
|
noPopover: U = !1,
|
|
57
57
|
tagSize: X = "medium",
|
|
58
58
|
tagShape: Z = "rounded",
|
|
59
59
|
tagAppearance: $ = "brand",
|
|
60
60
|
onChange: S,
|
|
61
61
|
beforeRenderOptions: g,
|
|
62
|
-
multiple:
|
|
63
|
-
validationState:
|
|
62
|
+
multiple: M = !0,
|
|
63
|
+
validationState: z = "none",
|
|
64
64
|
validationMessage: K,
|
|
65
|
-
setParentComponentState:
|
|
66
|
-
} =
|
|
67
|
-
Object.fromEntries(
|
|
68
|
-
),
|
|
69
|
-
() =>
|
|
70
|
-
[
|
|
65
|
+
setParentComponentState: P
|
|
66
|
+
} = w, ee = y(z), oe = y(K), [l, A] = C(""), i = w.selectedOptions !== void 0, I = (i ? L : x) ?? [], [te, v] = C(I), s = i ? L ?? [] : te, d = q(() => s.map((e) => e.key), [s]), [c, m] = C([]), [re, N] = C(!1), [b, O] = C(!1), p = y(), k = y(
|
|
67
|
+
Object.fromEntries(I.map((e) => [e.key, e]))
|
|
68
|
+
), _ = q(
|
|
69
|
+
() => x ?? [],
|
|
70
|
+
[x]
|
|
71
71
|
);
|
|
72
72
|
T(() => {
|
|
73
73
|
s.forEach((e) => {
|
|
74
|
-
|
|
74
|
+
k.current[e.key] = e;
|
|
75
75
|
});
|
|
76
76
|
}, [s]);
|
|
77
|
-
const
|
|
77
|
+
const j = Ne(), ne = u((e) => (s.find((n) => n.key === e) || k.current[e])?.text || e, [s]);
|
|
78
78
|
T(() => {
|
|
79
|
-
typeof a == "function" && l.length < f && b &&
|
|
79
|
+
typeof a == "function" && l.length < f && b && O(!1);
|
|
80
80
|
}, [l, f, a, b]), T(() => b ? (p.current?.abort(), p.current = new AbortController(), (async () => {
|
|
81
81
|
if (typeof a != "function") {
|
|
82
82
|
const o = g ? g(a) : a;
|
|
83
83
|
m(o);
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
P?.(ee.current, oe.current);
|
|
87
87
|
try {
|
|
88
|
-
|
|
88
|
+
N(!0), m([]);
|
|
89
89
|
const o = await a(l, { signal: p.current.signal }), n = g ? g(o) : o;
|
|
90
90
|
m(n);
|
|
91
91
|
} catch (o) {
|
|
92
|
-
p.current?.signal.aborted || (console.error("Error loading options:", o), m([]),
|
|
92
|
+
p.current?.signal.aborted || (console.error("Error loading options:", o), m([]), P?.("error", JSON.stringify(o)));
|
|
93
93
|
} finally {
|
|
94
|
-
p.current?.signal.aborted ||
|
|
94
|
+
p.current?.signal.aborted || N(!1);
|
|
95
95
|
}
|
|
96
|
-
})(), () => p.current?.abort()) : void 0, [b, a, l, g,
|
|
96
|
+
})(), () => p.current?.abort()) : void 0, [b, a, l, g, P, f]);
|
|
97
97
|
const ae = u(() => {
|
|
98
|
-
i ||
|
|
98
|
+
i || v([]), S?.([]);
|
|
99
99
|
}, [i, S]), le = u((e, o) => {
|
|
100
100
|
if (o.open && typeof a == "function" && l.length < f) {
|
|
101
|
-
|
|
101
|
+
O(!1);
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
o.open && typeof a == "function" && (
|
|
104
|
+
o.open && typeof a == "function" && (N(!0), m([])), O(o.open);
|
|
105
105
|
}, [a, l, f]), se = u((e, o) => {
|
|
106
106
|
if (o.value === "no-matches") return;
|
|
107
107
|
let n;
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
return
|
|
108
|
+
M ? n = o.selectedOptions : (n = o.selectedOptions.slice(-1), O(!1)), A("");
|
|
109
|
+
const F = n.map((h) => {
|
|
110
|
+
const B = c.find((de) => de.key === h) || k.current[h];
|
|
111
|
+
return B && (k.current[h] = B), B || { key: h, text: h };
|
|
112
112
|
});
|
|
113
|
-
i ||
|
|
114
|
-
}, [c, S,
|
|
113
|
+
i || v(F), S?.(F);
|
|
114
|
+
}, [c, S, M, i]), ie = fe({
|
|
115
115
|
// La consulta actual ingresada por el usuario para filtrar opciones.
|
|
116
116
|
query: l,
|
|
117
117
|
// Lista de claves (como strings) de las opciones disponibles, obtenidas de 'availableOptions'.
|
|
@@ -135,7 +135,7 @@ const w = [], Ne = ue({
|
|
|
135
135
|
) : (
|
|
136
136
|
// Si no está cargando y no hay opciones, muestra un mensaje de "sin coincidencias".
|
|
137
137
|
/* @__PURE__ */ t(
|
|
138
|
-
|
|
138
|
+
R,
|
|
139
139
|
{
|
|
140
140
|
value: "no-matches",
|
|
141
141
|
media: /* @__PURE__ */ t(Pe, {}),
|
|
@@ -151,7 +151,7 @@ const w = [], Ne = ue({
|
|
|
151
151
|
renderOption: u((e) => {
|
|
152
152
|
const o = c.find((n) => n.key === e);
|
|
153
153
|
return o ? /* @__PURE__ */ t(
|
|
154
|
-
|
|
154
|
+
R,
|
|
155
155
|
{
|
|
156
156
|
secondaryContent: o.secondaryContent || "",
|
|
157
157
|
media: /* @__PURE__ */ t(ge, { shape: "square", "aria-hidden": !0, name: o.text, color: "colorful" }),
|
|
@@ -161,7 +161,7 @@ const w = [], Ne = ue({
|
|
|
161
161
|
o.key
|
|
162
162
|
) : (
|
|
163
163
|
// Si no se encuentra la opción, renderiza una versión básica con solo la clave.
|
|
164
|
-
/* @__PURE__ */ t(
|
|
164
|
+
/* @__PURE__ */ t(R, { value: e, children: e }, e)
|
|
165
165
|
);
|
|
166
166
|
}, [c]),
|
|
167
167
|
// Dependencia: se recrea si 'availableOptions' cambia.
|
|
@@ -178,12 +178,12 @@ const w = [], Ne = ue({
|
|
|
178
178
|
if (Y) return null;
|
|
179
179
|
const ce = be(
|
|
180
180
|
J,
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
j.efwTagPickerControl,
|
|
182
|
+
z === "error" && j.efwTagPickerControlError
|
|
183
183
|
);
|
|
184
184
|
return T(() => {
|
|
185
|
-
i ||
|
|
186
|
-
}, [i,
|
|
185
|
+
i || v(_);
|
|
186
|
+
}, [i, _]), /* @__PURE__ */ t(pe, { children: H ? /* @__PURE__ */ V(
|
|
187
187
|
he,
|
|
188
188
|
{
|
|
189
189
|
open: b,
|
|
@@ -194,7 +194,7 @@ const w = [], Ne = ue({
|
|
|
194
194
|
selectedOptions: d,
|
|
195
195
|
noPopover: U,
|
|
196
196
|
children: [
|
|
197
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ V(
|
|
198
198
|
Ce,
|
|
199
199
|
{
|
|
200
200
|
className: ce,
|
|
@@ -211,7 +211,7 @@ const w = [], Ne = ue({
|
|
|
211
211
|
) : void 0,
|
|
212
212
|
children: [
|
|
213
213
|
/* @__PURE__ */ t(Se, { "aria-label": "Selected items", children: d.map((e) => /* @__PURE__ */ t(
|
|
214
|
-
|
|
214
|
+
Oe,
|
|
215
215
|
{
|
|
216
216
|
style: { paddingTop: "0px", paddingBottom: "0px" },
|
|
217
217
|
shape: Z,
|
|
@@ -222,13 +222,13 @@ const w = [], Ne = ue({
|
|
|
222
222
|
e
|
|
223
223
|
)) }),
|
|
224
224
|
/* @__PURE__ */ t(
|
|
225
|
-
|
|
225
|
+
ke,
|
|
226
226
|
{
|
|
227
227
|
placeholder: d.length ? "" : Q,
|
|
228
228
|
autoComplete: "off",
|
|
229
229
|
"aria-label": "Select items",
|
|
230
230
|
value: l,
|
|
231
|
-
onChange: (e) =>
|
|
231
|
+
onChange: (e) => A(e.target.value)
|
|
232
232
|
}
|
|
233
233
|
)
|
|
234
234
|
]
|
|
@@ -5,4 +5,4 @@ export declare const COLS_MIN_WIDTH = 80;
|
|
|
5
5
|
export declare const COLS_MAX_WIDTH = 2500;
|
|
6
6
|
export declare const SELECTOR_CELL_WIDTH = 48;
|
|
7
7
|
export declare const SELECTOR_CELL_HEIGHT = 48;
|
|
8
|
-
export declare const EFWTable: ({ appearance, style, className, fields, items: itemsProp, defaultItems, height, itemSize, enableSelection, enableCommandBar, defaultSelectedItems, onSelectionChange, onRowClick, resizableColumns, columnSizing: columnSizingOptions, useVirtualization, autoSizeColumns, tableRef: externalTableRef, onItemsChange, onScroll, addButtonConfig, updateButtonConfig, deleteButtonConfig, alwaysButtons, noSelectionButtons, singleSelectionButtons, multiSelectionButtons, beforeAddItems, beforeUpdateItems, beforeDeleteItems, columnRenderers, useDefaultRendererAsFallback, }: EFWTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const EFWTable: ({ appearance, style, className, fields, items: itemsProp, defaultItems, height, itemSize, enableSelection, enableCommandBar, defaultSelectedItems, onSelectionChange, onRowClick, resizableColumns, columnSizing: columnSizingOptions, useVirtualization, autoSizeColumns, tableRef: externalTableRef, onItemsChange, onScroll, addButtonConfig, updateButtonConfig, deleteButtonConfig, alwaysButtons, noSelectionButtons, singleSelectionButtons, multiSelectionButtons, beforeAddItems, beforeUpdateItems, beforeDeleteItems, columnRenderers, useDefaultRendererAsFallback, overlayState: overlayStateProp, defaultOverlayState, onOverlayStateChange, overlayCustomization, }: EFWTableProps) => import("react/jsx-runtime").JSX.Element;
|