impact-nova 1.7.24 → 1.7.26
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/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +45 -36
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +0 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +92 -75
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +52 -41
- package/dist/components/ui/ag-grid-react/hooks/useStopEditingOnClickOutside.d.ts +5 -0
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/data-table/data-table-column-list.js +119 -108
- package/dist/components/ui/nested-list/components/NestedListContent.d.ts +1 -0
- package/dist/components/ui/nested-list/components/NestedListContent.js +134 -63
- package/dist/components/ui/nested-list/components/SortableItem.js +65 -82
- package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.js +176 -153
- package/dist/components/ui/nested-list/nested-list.js +190 -203
- package/dist/components/ui/select/components/Submenu.js +7 -5
- package/dist/components/ui/select/select.js +390 -369
- package/dist/i18n/defaultMessages.d.ts +3 -0
- package/dist/i18n/defaultMessages.js +14 -11
- package/dist/i18n/locales/de.js +4 -1
- package/dist/i18n/locales/es.js +4 -1
- package/dist/i18n/locales/hi.js +4 -1
- package/dist/i18n/locales/kn.js +4 -1
- package/dist/icons/assets/DraftNote.svg.js +5 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +253 -251
- package/dist/impact-nova.css +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import j, { forwardRef as A, useRef as D, useImperativeHandle as I, useEffect as k, useCallback as f } from "react";
|
|
3
|
+
const g = A((o, h) => {
|
|
4
4
|
const {
|
|
5
|
-
value:
|
|
5
|
+
value: e,
|
|
6
6
|
placeholder: v,
|
|
7
7
|
min: b,
|
|
8
8
|
max: y,
|
|
9
9
|
step: w,
|
|
10
10
|
maxLength: c,
|
|
11
|
-
onValueChange:
|
|
11
|
+
onValueChange: i,
|
|
12
12
|
colDef: x,
|
|
13
13
|
className: N
|
|
14
|
-
} = o, d = x?.cellDataType === "number" ? "number" : "text", a = d === "number",
|
|
15
|
-
I(
|
|
14
|
+
} = o, d = x?.cellDataType === "number" ? "number" : "text", a = d === "number", l = D(null), p = e && typeof e == "object" && "value" in e, m = p ? e.cellMetadata : void 0;
|
|
15
|
+
I(h, () => ({
|
|
16
16
|
getValue() {
|
|
17
|
-
const
|
|
17
|
+
const t = l.current?.value;
|
|
18
18
|
let n;
|
|
19
19
|
if (a)
|
|
20
|
-
if (!
|
|
20
|
+
if (!t || t === "" || t === "-")
|
|
21
21
|
n = null;
|
|
22
22
|
else {
|
|
23
|
-
const u = Number(
|
|
23
|
+
const u = Number(t);
|
|
24
24
|
n = isNaN(u) ? null : u;
|
|
25
25
|
}
|
|
26
26
|
else
|
|
27
|
-
n =
|
|
27
|
+
n = t === "" ? null : t;
|
|
28
28
|
return p ? {
|
|
29
29
|
value: n,
|
|
30
30
|
...m !== void 0 && { cellMetadata: m }
|
|
@@ -37,11 +37,11 @@ const h = D((o, g) => {
|
|
|
37
37
|
return !1;
|
|
38
38
|
}
|
|
39
39
|
}), []), k(() => {
|
|
40
|
-
if (
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
const
|
|
44
|
-
Object.defineProperty(
|
|
40
|
+
if (l.current) {
|
|
41
|
+
const r = e && typeof e == "object" && "value" in e ? e.value : e;
|
|
42
|
+
if (l.current.value = r != null ? String(r) : "", a) {
|
|
43
|
+
const t = l.current, n = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value");
|
|
44
|
+
Object.defineProperty(t, "value", {
|
|
45
45
|
get() {
|
|
46
46
|
const u = this.valueAsNumber;
|
|
47
47
|
return isNaN(u) ? n.get.call(this) : u;
|
|
@@ -52,37 +52,46 @@ const h = D((o, g) => {
|
|
|
52
52
|
configurable: !0
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
o.suppressAutoFocus || (
|
|
55
|
+
o.suppressAutoFocus || (l.current.focus(), l.current.select());
|
|
56
56
|
}
|
|
57
57
|
return () => {
|
|
58
58
|
};
|
|
59
59
|
}, []);
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
if (!(c &&
|
|
63
|
-
if (a &&
|
|
64
|
-
const n =
|
|
65
|
-
isNaN(n) ||
|
|
60
|
+
const V = f((r) => {
|
|
61
|
+
const t = l.current?.value;
|
|
62
|
+
if (!(c && t && t.length > c)) {
|
|
63
|
+
if (a && l.current) {
|
|
64
|
+
const n = l.current.valueAsNumber;
|
|
65
|
+
isNaN(n) || l.current.setAttribute("data-value", String(n));
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
i?.(t);
|
|
68
68
|
}
|
|
69
|
-
}, [c,
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
}, [c, i, a]), C = f((r) => {
|
|
70
|
+
if (r.key === "Escape") {
|
|
71
|
+
if (r.stopPropagation(), l.current) {
|
|
72
|
+
const n = e && typeof e == "object" && "value" in e ? e.value : e;
|
|
73
|
+
l.current.value = n != null ? String(n) : "";
|
|
74
|
+
}
|
|
75
|
+
const t = e && typeof e == "object" && "value" in e ? e.value : e;
|
|
76
|
+
i?.(t != null ? String(t) : void 0), o.stopEditing?.();
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
r.key === "Enter" || r.key === "Tab" || ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(r.key) && r.stopPropagation();
|
|
80
|
+
}, [e, i, o]), E = f(() => {
|
|
72
81
|
o.stopEditing?.();
|
|
73
82
|
}, [o, a]);
|
|
74
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ s("div", { className: `w-full h-full flex items-center ag-cell-inner-padding in-ag-editable-cell-highlight ${N}`, children: /* @__PURE__ */ s(
|
|
75
84
|
"div",
|
|
76
85
|
{
|
|
77
86
|
className: `flex w-full items-center rounded-[8px] bg-canvas-elevated px-1.5 h-7 ${a ? "justify-end text-right" : ""}`,
|
|
78
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ s(
|
|
79
88
|
"input",
|
|
80
89
|
{
|
|
81
|
-
ref:
|
|
90
|
+
ref: l,
|
|
82
91
|
type: d,
|
|
83
|
-
onChange:
|
|
84
|
-
onKeyDown:
|
|
85
|
-
onBlur:
|
|
92
|
+
onChange: V,
|
|
93
|
+
onKeyDown: C,
|
|
94
|
+
onBlur: E,
|
|
86
95
|
placeholder: v,
|
|
87
96
|
className: `flex h-full w-full bg-transparent p-0 text-sm font-medium text-content outline-none placeholder:font-medium placeholder:text-content-empty ${a ? "text-right" : ""}`,
|
|
88
97
|
min: b,
|
|
@@ -93,8 +102,8 @@ const h = D((o, g) => {
|
|
|
93
102
|
}
|
|
94
103
|
) });
|
|
95
104
|
});
|
|
96
|
-
|
|
97
|
-
const
|
|
105
|
+
g.displayName = "InputCellEditor";
|
|
106
|
+
const M = j.memo(g, () => !0);
|
|
98
107
|
export {
|
|
99
|
-
|
|
108
|
+
M as InputCellEditor
|
|
100
109
|
};
|
|
@@ -41,7 +41,6 @@ export interface SplitCellEditorProps extends Omit<ICellEditorParams, 'context'>
|
|
|
41
41
|
frameworkComponents?: Record<string, React.ComponentType<SubCellComponentProps>>;
|
|
42
42
|
onCellUpdate?: (payload: CellUpdatePayload) => void;
|
|
43
43
|
};
|
|
44
|
-
/** Column-level value formatter (lowest priority: cell > row > split > column) */
|
|
45
44
|
valueFormatter?: ValueFormatter;
|
|
46
45
|
}
|
|
47
46
|
export declare const SplitCellEditor: React.ForwardRefExoticComponent<SplitCellEditorProps & React.RefAttributes<unknown>>;
|
|
@@ -1,87 +1,104 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
const { splits:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as K } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as G, useMemo as C, useEffect as B, useState as H, useCallback as q } from "react";
|
|
3
|
+
import { resolveCellEditable as h, resolveValueFormatter as z, applyValueFormatter as J } from "../cell-renderer-utils.js";
|
|
4
|
+
const Q = G((L) => {
|
|
5
|
+
const { splits: l, commonParams: F, data: s, node: r, api: b, column: W, context: v, value: o, colDef: n, valueFormatter: N } = L, w = C(() => document.__splitCellLastClickY == null, []), j = C(() => document.__splitCellLastWasEditable !== !1, []), D = C(() => {
|
|
6
|
+
try {
|
|
7
|
+
const t = L.eGridCell;
|
|
8
|
+
if (!t || !l?.length) return 0;
|
|
9
|
+
if (w) {
|
|
10
|
+
const c = document.__splitCellLastActiveIndex;
|
|
11
|
+
if (c != null && c >= 0 && c < l.length) {
|
|
12
|
+
const m = s, k = typeof n?.editable == "boolean" ? n.editable : void 0, g = l[c], I = g?.field?.split(".")?.pop(), T = I ? o?.[I] : void 0, $ = h(k, g?.editable, m, T);
|
|
13
|
+
return document.__splitCellLastWasEditable = $, c;
|
|
14
|
+
}
|
|
15
|
+
const S = s, U = typeof n?.editable == "boolean" ? n.editable : void 0;
|
|
16
|
+
for (let m = 0; m < l.length; m++) {
|
|
17
|
+
const k = l[m], g = k?.field?.split(".")?.pop(), I = g ? o?.[g] : void 0;
|
|
18
|
+
if (h(U, k?.editable, S, I))
|
|
19
|
+
return document.__splitCellLastWasEditable = !0, m;
|
|
20
|
+
}
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
const e = document.__splitCellLastClickY, a = t.getBoundingClientRect(), i = e - a.top, d = a.height / l.length, u = Math.floor(i / d), p = Math.max(0, Math.min(u, l.length - 1));
|
|
24
|
+
document.__splitCellLastClickY = void 0, document.__splitCellLastActiveIndex = p;
|
|
25
|
+
const E = s, R = typeof n?.editable == "boolean" ? n.editable : void 0, f = l[p], V = f?.field?.split(".")?.pop(), _ = V ? o?.[V] : void 0, x = h(R, f?.editable, E, _);
|
|
26
|
+
return document.__splitCellLastWasEditable = x, p;
|
|
27
|
+
} catch {
|
|
28
|
+
return 0;
|
|
29
|
+
}
|
|
30
|
+
}, [l, L, w, s, n, o]), A = C(() => {
|
|
31
|
+
if (!l?.length) return !1;
|
|
32
|
+
const t = l[D];
|
|
33
|
+
if (!t) return !1;
|
|
34
|
+
const e = s, a = typeof n?.editable == "boolean" ? n.editable : void 0, i = t.field?.split(".")?.pop(), d = i ? o?.[i] : void 0;
|
|
35
|
+
return !h(a, t.editable, e, d);
|
|
36
|
+
}, [l, D, s, n, o]);
|
|
37
|
+
B(() => {
|
|
38
|
+
(A || w && !j) && setTimeout(() => {
|
|
39
|
+
b?.stopEditing();
|
|
40
|
+
}, 0);
|
|
41
|
+
}, [A, w, j, b]);
|
|
42
|
+
const O = C(() => l?.map((t) => {
|
|
43
|
+
const e = t?.field?.split(".")?.pop() ?? "", a = o?.[e]?.value;
|
|
44
|
+
return { valueKey: e, field: t.field, newValue: a };
|
|
45
|
+
}) ?? [], [l, o]), [y, Y] = H(O), M = q((t) => {
|
|
46
|
+
const e = y.find((u) => u.field === t);
|
|
47
|
+
if (!e) return;
|
|
48
|
+
const a = o?.[e.valueKey]?.value;
|
|
49
|
+
if (String(e.newValue ?? "") === String(a ?? ""))
|
|
11
50
|
return;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
51
|
+
document.__splitCellLastWasEditable = !0;
|
|
52
|
+
const i = {
|
|
53
|
+
api: b,
|
|
54
|
+
colDef: n,
|
|
55
|
+
column: W,
|
|
56
|
+
context: v,
|
|
17
57
|
data: s,
|
|
18
|
-
field:
|
|
19
|
-
node:
|
|
20
|
-
rowIndex:
|
|
21
|
-
rowPinned:
|
|
58
|
+
field: n.field,
|
|
59
|
+
node: r,
|
|
60
|
+
rowIndex: r?.rowIndex ?? null,
|
|
61
|
+
rowPinned: r?.rowPinned ?? void 0,
|
|
22
62
|
source: "edit",
|
|
23
63
|
type: "cellValueChanged",
|
|
24
64
|
currentCellUpdate: e,
|
|
25
65
|
newValue: { [e.valueKey]: { value: e.newValue } },
|
|
26
|
-
oldValue: { [e.valueKey]: { value:
|
|
66
|
+
oldValue: { [e.valueKey]: { value: o?.[e.valueKey]?.value } },
|
|
27
67
|
value: { [e.valueKey]: { value: e.newValue } }
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
if (typeof
|
|
32
|
-
const e =
|
|
33
|
-
return
|
|
68
|
+
}, d = o?.[e.valueKey] ?? {};
|
|
69
|
+
r.setDataValue(n.field, { ...o, [e.valueKey]: { ...d, value: e.newValue } }), v?.onCellUpdate?.(i);
|
|
70
|
+
}, [y, b, n, W, v, s, r, o]), P = (t) => {
|
|
71
|
+
if (typeof t == "string") {
|
|
72
|
+
const e = b?.getGridOption("components");
|
|
73
|
+
return v?.frameworkComponents?.[t] || e?.[t];
|
|
34
74
|
}
|
|
35
|
-
return
|
|
75
|
+
return t;
|
|
36
76
|
};
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
"
|
|
39
|
-
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
valueFormatted: I,
|
|
62
|
-
colDef: { ...l, editable: V },
|
|
63
|
-
stopEditing: () => {
|
|
64
|
-
U(l.field);
|
|
65
|
-
},
|
|
66
|
-
node: a,
|
|
67
|
-
suppressAutoFocus: e !== 0,
|
|
68
|
-
className: e !== i.length - 1 ? "border-b border-stroke-hairline" : ""
|
|
69
|
-
}
|
|
70
|
-
) : /* @__PURE__ */ f(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
className: "w-full h-full flex items-center ag-cell-inner-padding overflow-hidden text-ellipsis whitespace-nowrap",
|
|
74
|
-
children: "No cell found"
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
},
|
|
78
|
-
`${l.field}-${e}`
|
|
79
|
-
);
|
|
80
|
-
})
|
|
81
|
-
}
|
|
82
|
-
);
|
|
77
|
+
return /* @__PURE__ */ K("div", { style: { display: "grid", gridTemplateRows: `repeat(${l?.length}, 1fr)`, height: "100%", width: "100%" }, children: l?.map((t, e) => {
|
|
78
|
+
const a = t?.field?.split(".")?.pop(), i = o?.[a], d = i?.value, u = s, p = z(i, u, t?.valueFormatter, N ?? null), E = p ? J(p, d) : d?.toString(), R = typeof n?.editable == "boolean" ? n.editable : void 0, f = h(R, t.editable, u, i), V = e === D && f, _ = f ? F?.cellEditor ?? F?.cellRenderer : F?.cellRenderer ?? void 0, x = _ ? P(_) : void 0;
|
|
79
|
+
return /* @__PURE__ */ K("div", { className: "flex items-center max-h-full overflow-hidden", children: x ? /* @__PURE__ */ K(
|
|
80
|
+
x,
|
|
81
|
+
{
|
|
82
|
+
context: v,
|
|
83
|
+
data: s,
|
|
84
|
+
value: i,
|
|
85
|
+
onValueChange: (c) => {
|
|
86
|
+
const S = y.find((U) => U.field === t.field);
|
|
87
|
+
S ? S.newValue = c : Y([...y, { valueKey: a, field: t.field, newValue: c }]);
|
|
88
|
+
},
|
|
89
|
+
valueFormatted: E,
|
|
90
|
+
colDef: { ...t, editable: f },
|
|
91
|
+
stopEditing: () => {
|
|
92
|
+
M(t.field);
|
|
93
|
+
},
|
|
94
|
+
node: r,
|
|
95
|
+
suppressAutoFocus: !V,
|
|
96
|
+
className: e !== l.length - 1 ? "border-b border-stroke-hairline" : ""
|
|
97
|
+
}
|
|
98
|
+
) : /* @__PURE__ */ K("div", { className: "w-full h-full flex items-center ag-cell-inner-padding overflow-hidden text-ellipsis whitespace-nowrap", children: String(E ?? d ?? "") }) }, `${t.field}-${e}`);
|
|
99
|
+
}) });
|
|
83
100
|
});
|
|
84
|
-
|
|
101
|
+
Q.displayName = "SplitCellEditor";
|
|
85
102
|
export {
|
|
86
|
-
|
|
103
|
+
Q as SplitCellEditor
|
|
87
104
|
};
|
|
@@ -1,50 +1,61 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { resolveCellEditable as
|
|
4
|
-
const
|
|
5
|
-
const { splits: l, commonParams:
|
|
3
|
+
import { resolveCellEditable as R, resolveValueFormatter as V, applyValueFormatter as N } from "./cell-renderer-utils.js";
|
|
4
|
+
const D = (h) => {
|
|
5
|
+
const { splits: l, commonParams: i, data: c, node: v, api: s, column: g, context: d, value: b, colDef: m, valueFormatter: y } = h;
|
|
6
6
|
if (!l || !Array.isArray(l)) return null;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
if (typeof
|
|
10
|
-
const
|
|
11
|
-
return
|
|
7
|
+
const C = (e) => {
|
|
8
|
+
const t = e;
|
|
9
|
+
if (typeof t == "string") {
|
|
10
|
+
const n = s?.getGridOption("components");
|
|
11
|
+
return d?.frameworkComponents?.[t] || n?.[t];
|
|
12
12
|
}
|
|
13
|
-
return
|
|
13
|
+
return t;
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
column: b,
|
|
28
|
-
context: s,
|
|
29
|
-
data: i,
|
|
30
|
-
value: r,
|
|
31
|
-
colDef: { ...t, editable: F },
|
|
32
|
-
valueFormatted: R,
|
|
33
|
-
className: e !== l.length - 1 ? "border-b border-stroke-hairline" : ""
|
|
34
|
-
}
|
|
35
|
-
) : /* @__PURE__ */ o(
|
|
15
|
+
return /* @__PURE__ */ a(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
style: { display: "grid", gridTemplateRows: `repeat(${l?.length}, 1fr)`, height: "100%", width: "100%" },
|
|
19
|
+
onMouseDown: (e) => {
|
|
20
|
+
document.__splitCellLastClickY = e.clientY;
|
|
21
|
+
const t = e.currentTarget.getBoundingClientRect(), n = e.clientY - t.top, o = t.height / (l?.length || 1), r = Math.floor(n / o);
|
|
22
|
+
document.__splitCellLastActiveIndex = Math.max(0, Math.min(r, (l?.length || 1) - 1));
|
|
23
|
+
},
|
|
24
|
+
children: l?.map((e, t) => {
|
|
25
|
+
const n = e?.field?.split(".")?.pop(), o = b?.[n], r = o?.value?.toString(), p = c, w = typeof m?.editable == "boolean" ? m.editable : void 0, x = R(w, e.editable, p, o), u = V(o, p, e?.valueFormatter, y ?? null), F = u ? N(u, r) : r, f = i?.cellRenderer && typeof i?.cellRenderer == "string" ? C(i?.cellRenderer) : void 0;
|
|
26
|
+
return /* @__PURE__ */ a(
|
|
36
27
|
"div",
|
|
37
28
|
{
|
|
38
|
-
className: "
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
29
|
+
className: "flex items-center overflow-hidden",
|
|
30
|
+
"data-split-index": t,
|
|
31
|
+
children: f ? /* @__PURE__ */ a(
|
|
32
|
+
f,
|
|
33
|
+
{
|
|
34
|
+
node: v,
|
|
35
|
+
api: s,
|
|
36
|
+
column: g,
|
|
37
|
+
context: d,
|
|
38
|
+
data: c,
|
|
39
|
+
value: o,
|
|
40
|
+
colDef: { ...e, editable: x },
|
|
41
|
+
valueFormatted: F,
|
|
42
|
+
className: t !== l.length - 1 ? "border-b border-stroke-hairline" : ""
|
|
43
|
+
}
|
|
44
|
+
) : /* @__PURE__ */ a(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: "w-full h-full flex items-center ag-cell-inner-padding overflow-hidden text-ellipsis whitespace-nowrap",
|
|
48
|
+
children: "No cell found"
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
},
|
|
52
|
+
`${e.field}-${t}`
|
|
53
|
+
);
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
);
|
|
46
57
|
};
|
|
47
|
-
|
|
58
|
+
D.displayName = "SplitCellRenderer";
|
|
48
59
|
export {
|
|
49
|
-
|
|
60
|
+
D as SplitCellRenderer
|
|
50
61
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GridApi } from 'ag-grid-community';
|
|
2
|
+
/**
|
|
3
|
+
* Stops AG Grid cell editing when user clicks outside the grid container.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useStopEditingOnClickOutside(gridApiRef: React.MutableRefObject<GridApi | null>, containerRef: React.MutableRefObject<HTMLElement | null>): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const alertVariants: (props?: {
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "error" | "info" | "warning" | "success";
|
|
5
5
|
emphasis?: "flat" | "elevated";
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) => string;
|
|
7
7
|
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|