@reportportal/ui-kit 0.0.1-alpha.143 → 0.0.1-alpha.145
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/autocompletes.js +63 -62
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/modal/modalContent/modalContent.d.ts +2 -3
- package/dist/components/table/hooks/index.d.ts +1 -0
- package/dist/components/table/hooks/useColumnResize.d.ts +18 -0
- package/dist/components/table/resizeHandle/index.d.ts +1 -0
- package/dist/components/table/resizeHandle/resizeHandle.d.ts +2 -0
- package/dist/components/table/types.d.ts +4 -0
- package/dist/components/table/utils.d.ts +1 -1
- package/dist/icons.js +38 -37
- package/dist/index.js +135 -133
- package/dist/modal.js +111 -103
- package/dist/{chevronDownDropdown-66f5b1af.js → resizeColumn-d4107941.js} +3 -2
- package/dist/style.css +1 -1
- package/dist/table-a67da002.js +586 -0
- package/dist/table.js +3 -2
- package/package.json +4 -2
- package/dist/table-c172f35e.js +0 -504
package/dist/autocompletes.js
CHANGED
|
@@ -36,8 +36,8 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
36
36
|
error: d = !1,
|
|
37
37
|
editItem: v,
|
|
38
38
|
editable: p = !1,
|
|
39
|
-
getAdditionalCreationCondition:
|
|
40
|
-
storedOption:
|
|
39
|
+
getAdditionalCreationCondition: y = () => !0,
|
|
40
|
+
storedOption: g = !0,
|
|
41
41
|
highlightUnStoredItem: f = !1,
|
|
42
42
|
variant: k = "light",
|
|
43
43
|
getItemName: x,
|
|
@@ -45,12 +45,12 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
45
45
|
className: R,
|
|
46
46
|
textClassName: I
|
|
47
47
|
}) => {
|
|
48
|
-
const [
|
|
49
|
-
!c && p && !
|
|
48
|
+
const [w, b] = re(!1), [C, B] = re(""), [l, a] = re(!1), s = xe(null), i = () => {
|
|
49
|
+
!c && p && !g && (B((x == null ? void 0 : x(t)) || (n == null ? void 0 : n(t)) || ""), b(!0));
|
|
50
50
|
}, _ = (S) => {
|
|
51
51
|
B(S.target.value);
|
|
52
52
|
}, O = (S) => {
|
|
53
|
-
const j =
|
|
53
|
+
const j = y(C);
|
|
54
54
|
S.key === "Enter" && j && (v(t, C), b(!1), B(""));
|
|
55
55
|
}, H = () => {
|
|
56
56
|
b(!1), B("");
|
|
@@ -82,11 +82,11 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
82
82
|
[`validation-${d}`]: d,
|
|
83
83
|
disabled: c,
|
|
84
84
|
"mobile-disabled": r,
|
|
85
|
-
"highlight-un-stored-item": f && !
|
|
85
|
+
"highlight-un-stored-item": f && !g
|
|
86
86
|
},
|
|
87
87
|
R
|
|
88
88
|
);
|
|
89
|
-
return
|
|
89
|
+
return w ? /* @__PURE__ */ o(
|
|
90
90
|
"input",
|
|
91
91
|
{
|
|
92
92
|
autoFocus: !0,
|
|
@@ -129,8 +129,8 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
129
129
|
renderCustomSelectedItem: d,
|
|
130
130
|
selectedItemSingleLine: v,
|
|
131
131
|
selectedItemClassName: p,
|
|
132
|
-
selectedItemTextClassName:
|
|
133
|
-
...
|
|
132
|
+
selectedItemTextClassName: y,
|
|
133
|
+
...g
|
|
134
134
|
}) => t.map((f) => d ? d(f) : /* @__PURE__ */ o(
|
|
135
135
|
Xe,
|
|
136
136
|
{
|
|
@@ -141,8 +141,8 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
141
141
|
highlightUnStoredItem: n,
|
|
142
142
|
singleLine: v,
|
|
143
143
|
className: p,
|
|
144
|
-
textClassName:
|
|
145
|
-
...
|
|
144
|
+
textClassName: y,
|
|
145
|
+
...g
|
|
146
146
|
},
|
|
147
147
|
e == null ? void 0 : e(f)
|
|
148
148
|
)), Je = "_prompt_1xfmd_16", Qe = {
|
|
@@ -168,7 +168,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
168
168
|
newItemButtonText: v = "",
|
|
169
169
|
...p
|
|
170
170
|
}) => {
|
|
171
|
-
const
|
|
171
|
+
const y = () => v || (d === "key-variant" ? "New key" : "New value");
|
|
172
172
|
return c ? /* @__PURE__ */ $(ce, { children: [
|
|
173
173
|
/* @__PURE__ */ o("div", { className: ee("divider") }),
|
|
174
174
|
/* @__PURE__ */ $(
|
|
@@ -189,7 +189,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
189
189
|
className: ee({ "button-active": t }),
|
|
190
190
|
icon: /* @__PURE__ */ o(je, {}),
|
|
191
191
|
variant: "text",
|
|
192
|
-
children:
|
|
192
|
+
children: y()
|
|
193
193
|
}
|
|
194
194
|
)
|
|
195
195
|
]
|
|
@@ -219,8 +219,8 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
219
219
|
createWithoutConfirmation: d,
|
|
220
220
|
customEmptyListMessage: v,
|
|
221
221
|
customNoMatchesMessage: p,
|
|
222
|
-
optionVariant:
|
|
223
|
-
newItemButtonText:
|
|
222
|
+
optionVariant: y,
|
|
223
|
+
newItemButtonText: g,
|
|
224
224
|
renderOption: f,
|
|
225
225
|
getUniqKey: k,
|
|
226
226
|
getItemProps: x,
|
|
@@ -229,16 +229,16 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
229
229
|
(s, i, _ = !1) => f ? f(s, i, _, x) : /* @__PURE__ */ o(
|
|
230
230
|
ye,
|
|
231
231
|
{
|
|
232
|
-
optionVariant:
|
|
232
|
+
optionVariant: y,
|
|
233
233
|
...x({ item: s, index: i }),
|
|
234
234
|
isNew: _,
|
|
235
|
-
newItemButtonText:
|
|
235
|
+
newItemButtonText: g,
|
|
236
236
|
children: u(s)
|
|
237
237
|
},
|
|
238
238
|
(k == null ? void 0 : k(s)) || u(s)
|
|
239
239
|
),
|
|
240
|
-
[x, k,
|
|
241
|
-
),
|
|
240
|
+
[x, k, g, y, u, f]
|
|
241
|
+
), w = V(
|
|
242
242
|
(s) => s.length ? s.map((i, _) => I(i, _)) : "",
|
|
243
243
|
[I]
|
|
244
244
|
), b = V(
|
|
@@ -247,15 +247,16 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
247
247
|
return /* @__PURE__ */ o("div", { className: _e({ container: !i }), children: /* @__PURE__ */ o(
|
|
248
248
|
ye,
|
|
249
249
|
{
|
|
250
|
-
optionVariant:
|
|
250
|
+
optionVariant: y,
|
|
251
251
|
isNew: !0,
|
|
252
|
+
newItemButtonText: g,
|
|
252
253
|
...x({ item: r, index: i }),
|
|
253
254
|
children: u(r)
|
|
254
255
|
},
|
|
255
256
|
u(r)
|
|
256
257
|
) });
|
|
257
258
|
},
|
|
258
|
-
[x, r, g, u]
|
|
259
|
+
[x, r, g, y, u]
|
|
259
260
|
), C = V(
|
|
260
261
|
(s) => n ? /* @__PURE__ */ $(ce, { children: [
|
|
261
262
|
/* @__PURE__ */ o(Ue, { children: /* @__PURE__ */ o(Pe, {}) }),
|
|
@@ -267,7 +268,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
267
268
|
return /* @__PURE__ */ o("div", { className: _e("empty-list-message"), children: s });
|
|
268
269
|
}, [v, p, e == null ? void 0 : e.length]), l = c ? e : R(), a = C(e);
|
|
269
270
|
return a || /* @__PURE__ */ $("div", { className: _e({ container: e.length }), children: [
|
|
270
|
-
/* @__PURE__ */ o($e, { autoHeight: !0, autoHeightMax: 216, hideTracksWhenNotNeeded: !0, children: he(l) ? B() :
|
|
271
|
+
/* @__PURE__ */ o($e, { autoHeight: !0, autoHeightMax: 216, hideTracksWhenNotNeeded: !0, children: he(l) ? B() : w(l) }),
|
|
271
272
|
!d && b(l)
|
|
272
273
|
] });
|
|
273
274
|
}, it = "_menu_f64z5_16", dt = "_opened_f64z5_34", ut = "_dark_f64z5_37", mt = {
|
|
@@ -311,8 +312,8 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
311
312
|
children: d,
|
|
312
313
|
customizeNewSelectedValue: v = (f) => f,
|
|
313
314
|
getOptionUniqKey: p,
|
|
314
|
-
getOptionUniqKeyValue:
|
|
315
|
-
...
|
|
315
|
+
getOptionUniqKeyValue: y,
|
|
316
|
+
...g
|
|
316
317
|
}) => {
|
|
317
318
|
const [f, k] = re(n), x = (l, a) => {
|
|
318
319
|
const s = {
|
|
@@ -337,23 +338,23 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
337
338
|
}, I = (l, a) => {
|
|
338
339
|
const s = c.indexOf(l), i = [...c];
|
|
339
340
|
i.splice(s, 1, a), e == null || e(i, null);
|
|
340
|
-
},
|
|
341
|
+
}, w = (l, a) => {
|
|
341
342
|
const s = c.filter((_) => !ae(_, l));
|
|
342
343
|
e == null || e(s, a), u(l, (_) => r == null ? void 0 : r(s, _));
|
|
343
344
|
}, b = (l, a) => {
|
|
344
345
|
l && R(l, a);
|
|
345
346
|
}, C = (l) => ({
|
|
346
|
-
removeItem:
|
|
347
|
+
removeItem: w,
|
|
347
348
|
editItem: I,
|
|
348
349
|
handleChange: e,
|
|
349
|
-
getOptionUniqKeyValue:
|
|
350
|
+
getOptionUniqKeyValue: y,
|
|
350
351
|
storedItemsMap: f,
|
|
351
352
|
...l
|
|
352
353
|
});
|
|
353
354
|
return /* @__PURE__ */ o(
|
|
354
355
|
le,
|
|
355
356
|
{
|
|
356
|
-
...
|
|
357
|
+
...g,
|
|
357
358
|
stateReducer: (l, a) => {
|
|
358
359
|
switch (a.type) {
|
|
359
360
|
case le.stateChangeTypes.keyDownEnter:
|
|
@@ -398,8 +399,8 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
398
399
|
placeholder: d = "",
|
|
399
400
|
error: v = "",
|
|
400
401
|
touched: p = !1,
|
|
401
|
-
creatable:
|
|
402
|
-
editable:
|
|
402
|
+
creatable: y = !1,
|
|
403
|
+
editable: g = !1,
|
|
403
404
|
onChange: f = () => {
|
|
404
405
|
},
|
|
405
406
|
onFocus: k = () => {
|
|
@@ -409,7 +410,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
409
410
|
disabled: u = !1,
|
|
410
411
|
isDropdownMode: R = !1,
|
|
411
412
|
mobileDisabled: I = !1,
|
|
412
|
-
inputProps:
|
|
413
|
+
inputProps: w = {},
|
|
413
414
|
parseValueToString: b = (h) => h == null ? "" : String(h),
|
|
414
415
|
maxLength: C = null,
|
|
415
416
|
async: B = !1,
|
|
@@ -441,33 +442,33 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
441
442
|
ke(() => {
|
|
442
443
|
i();
|
|
443
444
|
}, [i, n]);
|
|
444
|
-
const oe = (h,
|
|
445
|
-
f(h,
|
|
446
|
-
}, ue = (h,
|
|
445
|
+
const oe = (h, N) => {
|
|
446
|
+
f(h, N);
|
|
447
|
+
}, ue = (h, N, E) => ({ item: m, index: q, ...A }) => h({
|
|
447
448
|
item: m,
|
|
448
449
|
index: q,
|
|
449
450
|
isSelected: E.some((U) => ae(U, m)),
|
|
450
451
|
...A,
|
|
451
|
-
isActive:
|
|
452
|
+
isActive: N === q
|
|
452
453
|
}), me = ({
|
|
453
454
|
event: h,
|
|
454
|
-
removeItem:
|
|
455
|
+
removeItem: N,
|
|
455
456
|
inputValue: E
|
|
456
457
|
}) => {
|
|
457
|
-
h.key === "Backspace" && !E && n.length &&
|
|
458
|
+
h.key === "Backspace" && !E && n.length && N(n[n.length - 1], null);
|
|
458
459
|
}, Y = ({
|
|
459
460
|
inputValue: h,
|
|
460
|
-
selectItem:
|
|
461
|
+
selectItem: N,
|
|
461
462
|
clearSelection: E
|
|
462
463
|
}) => {
|
|
463
464
|
if (H) {
|
|
464
465
|
const m = H(h);
|
|
465
|
-
(m.length ? m : [h]).forEach((A) =>
|
|
466
|
+
(m.length ? m : [h]).forEach((A) => N(A)), E();
|
|
466
467
|
} else
|
|
467
|
-
|
|
468
|
-
}, fe = (h) => (
|
|
469
|
-
h(
|
|
470
|
-
}, pe = e.filter((h) => n.every((
|
|
468
|
+
N(h), E();
|
|
469
|
+
}, fe = (h) => (N) => {
|
|
470
|
+
h(N, null), z.current && z.current.focus();
|
|
471
|
+
}, pe = e.filter((h) => n.every((N) => !ae(N, h)));
|
|
471
472
|
return /* @__PURE__ */ o(
|
|
472
473
|
ht,
|
|
473
474
|
{
|
|
@@ -481,7 +482,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
481
482
|
customizeNewSelectedValue: te,
|
|
482
483
|
children: ({
|
|
483
484
|
getInputProps: h,
|
|
484
|
-
getItemProps:
|
|
485
|
+
getItemProps: N,
|
|
485
486
|
isOpen: E,
|
|
486
487
|
inputValue: m = "",
|
|
487
488
|
highlightedIndex: q,
|
|
@@ -529,7 +530,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
529
530
|
getItemValidationErrorType: s,
|
|
530
531
|
renderCustomSelectedItem: S,
|
|
531
532
|
editItem: U,
|
|
532
|
-
editable:
|
|
533
|
+
editable: g,
|
|
533
534
|
getAdditionalCreationCondition: _,
|
|
534
535
|
storedItemsMap: De,
|
|
535
536
|
highlightUnStoredItem: O,
|
|
@@ -549,21 +550,21 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
549
550
|
R && se(), k();
|
|
550
551
|
},
|
|
551
552
|
onKeyDown: (F) => {
|
|
552
|
-
F.key === Re && m &&
|
|
553
|
+
F.key === Re && m && y && _(m) && Y({
|
|
553
554
|
inputValue: m,
|
|
554
555
|
selectItem: be,
|
|
555
556
|
clearSelection: ve
|
|
556
557
|
}), me({ event: F, removeItem: A, inputValue: m });
|
|
557
558
|
},
|
|
558
559
|
onBlur: () => {
|
|
559
|
-
x(), m &&
|
|
560
|
+
x(), m && y && _(m) && Y({
|
|
560
561
|
inputValue: m,
|
|
561
562
|
selectItem: be,
|
|
562
563
|
clearSelection: ve
|
|
563
564
|
});
|
|
564
565
|
},
|
|
565
566
|
disabled: u,
|
|
566
|
-
...
|
|
567
|
+
...w
|
|
567
568
|
}),
|
|
568
569
|
className: X("input", { disabled: u }),
|
|
569
570
|
"data-automation-id": W
|
|
@@ -572,14 +573,14 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
572
573
|
]
|
|
573
574
|
}
|
|
574
575
|
),
|
|
575
|
-
(
|
|
576
|
+
(w == null ? void 0 : w.clearable) && !he(n) && /* @__PURE__ */ o(
|
|
576
577
|
"button",
|
|
577
578
|
{
|
|
578
579
|
type: "button",
|
|
579
580
|
className: X("clear-icon", { "clear-icon--disabled": u }),
|
|
580
581
|
onClick: () => {
|
|
581
582
|
var F;
|
|
582
|
-
return !u && ((F =
|
|
583
|
+
return !u && ((F = w == null ? void 0 : w.onClear) == null ? void 0 : F.call(w));
|
|
583
584
|
},
|
|
584
585
|
onMouseDown: (F) => F.preventDefault(),
|
|
585
586
|
children: /* @__PURE__ */ o(We, {})
|
|
@@ -612,7 +613,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
612
613
|
isDropdownMode: R,
|
|
613
614
|
style: ie,
|
|
614
615
|
inputValue: qe.trim(),
|
|
615
|
-
getItemProps: ue(
|
|
616
|
+
getItemProps: ue(N, q, n),
|
|
616
617
|
parseValueToString: b,
|
|
617
618
|
createWithoutConfirmation: a,
|
|
618
619
|
options: pe,
|
|
@@ -640,15 +641,15 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
640
641
|
onBlur: v = () => {
|
|
641
642
|
},
|
|
642
643
|
disabled: p = !1,
|
|
643
|
-
inputProps:
|
|
644
|
-
parseValueToString:
|
|
644
|
+
inputProps: y = {},
|
|
645
|
+
parseValueToString: g = (D) => D === null ? "" : String(D),
|
|
645
646
|
minLength: f = 1,
|
|
646
647
|
skipOptionCreation: k = !1,
|
|
647
648
|
maxLength: x = null,
|
|
648
649
|
optionVariant: u = "",
|
|
649
650
|
isRequired: R = !1,
|
|
650
651
|
error: I = "",
|
|
651
|
-
touched:
|
|
652
|
+
touched: w = !1,
|
|
652
653
|
setTouch: b = () => {
|
|
653
654
|
},
|
|
654
655
|
createWithoutConfirmation: C = !1,
|
|
@@ -679,7 +680,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
679
680
|
le,
|
|
680
681
|
{
|
|
681
682
|
onChange: n,
|
|
682
|
-
itemToString:
|
|
683
|
+
itemToString: g,
|
|
683
684
|
selectedItem: c,
|
|
684
685
|
onStateChange: O,
|
|
685
686
|
defaultHighlightedIndex: It,
|
|
@@ -699,7 +700,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
699
700
|
const oe = de(void 0, { suppressRefError: !0 }), ue = {
|
|
700
701
|
...oe,
|
|
701
702
|
ref: (m) => (J.setReference(m), oe.ref(m))
|
|
702
|
-
}, me = Z ?? "", { onClear: Y, clearable: fe, ...pe } =
|
|
703
|
+
}, me = Z ?? "", { onClear: Y, clearable: fe, ...pe } = y, N = fe && c !== null, E = (...m) => {
|
|
703
704
|
z(null), Y == null || Y(...m);
|
|
704
705
|
};
|
|
705
706
|
return /* @__PURE__ */ o(ce, { children: /* @__PURE__ */ $("div", { className: Ne("input-wrapper"), ...ue, children: [
|
|
@@ -717,19 +718,19 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
717
718
|
m.key === Re && m.preventDefault(), Z && M && j(m, K);
|
|
718
719
|
},
|
|
719
720
|
onBlur: (m) => {
|
|
720
|
-
const q = me.trim(), A = !he(q), U = A ? e.find((se) =>
|
|
721
|
+
const q = me.trim(), A = !he(q), U = A ? e.find((se) => g(se) === q) : void 0;
|
|
721
722
|
z(U || (!k && C && A ? q : null)), v(m), s == null || s(
|
|
722
|
-
A ? !e.some((se) =>
|
|
723
|
+
A ? !e.some((se) => g(se) === q) : null
|
|
723
724
|
), a && M && T(), b == null || b(!0);
|
|
724
725
|
},
|
|
725
726
|
disabled: p,
|
|
726
727
|
defaultWidth: !1,
|
|
727
728
|
isRequired: R,
|
|
728
|
-
touched:
|
|
729
|
+
touched: w,
|
|
729
730
|
error: I,
|
|
730
731
|
...pe,
|
|
731
|
-
clearable:
|
|
732
|
-
onClear:
|
|
732
|
+
clearable: N,
|
|
733
|
+
onClear: N ? E : Y,
|
|
733
734
|
endIcon: a && !l ? /* @__PURE__ */ o(
|
|
734
735
|
"button",
|
|
735
736
|
{
|
|
@@ -755,7 +756,7 @@ const Le = "_disabled_1rpph_43", Ke = "_input_1rpph_107", Te = {
|
|
|
755
756
|
minLength: f,
|
|
756
757
|
inputValue: (Z || "").trim(),
|
|
757
758
|
getItemProps: S(L, ie, c),
|
|
758
|
-
parseValueToString:
|
|
759
|
+
parseValueToString: g,
|
|
759
760
|
optionVariant: u,
|
|
760
761
|
createWithoutConfirmation: C,
|
|
761
762
|
className: B,
|
|
@@ -52,6 +52,7 @@ export { default as PriorityLowIcon } from './svg/priorityLow.svg';
|
|
|
52
52
|
export { default as PriorityMediumIcon } from './svg/priorityMedium.svg';
|
|
53
53
|
export { default as PriorityUnspecifiedIcon } from './svg/priorityUnspecified.svg';
|
|
54
54
|
export { default as RefreshIcon } from './svg/refresh.svg';
|
|
55
|
+
export { default as ResizeColumnIcon } from './svg/resizeColumn.svg';
|
|
55
56
|
export { default as RerunIcon } from './svg/rerun.svg';
|
|
56
57
|
export { default as SearchIcon } from './svg/search.svg';
|
|
57
58
|
export { default as SortIcon } from './svg/sort.svg';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ReactNode
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ModalContentProps {
|
|
4
|
-
scrollable?: boolean;
|
|
5
4
|
children?: ReactNode;
|
|
6
5
|
}
|
|
7
|
-
export declare const ModalContent:
|
|
6
|
+
export declare const ModalContent: ({ children }: ModalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { ResizeCallbackData } from 'react-resizable';
|
|
3
|
+
|
|
4
|
+
interface UseColumnResizeProps {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
columnWidthsRef?: MutableRefObject<Map<string, number>>;
|
|
9
|
+
onColumnResize?: (columnKey: string, width: number) => void;
|
|
10
|
+
}
|
|
11
|
+
interface UseColumnResizeReturn {
|
|
12
|
+
columnWidths: Record<string, number>;
|
|
13
|
+
handleResize: (columnKey: string) => (e: React.SyntheticEvent, data: ResizeCallbackData) => void;
|
|
14
|
+
handleResizeStop: (columnKey: string) => () => void;
|
|
15
|
+
handleResizeStart: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const useColumnResize: ({ enabled, minWidth, maxWidth, columnWidthsRef, onColumnResize, }: UseColumnResizeProps) => UseColumnResizeReturn;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResizeHandle } from './resizeHandle';
|
|
@@ -60,9 +60,13 @@ export interface TableComponentProps {
|
|
|
60
60
|
setExpandedRowIds?: Dispatch<SetStateAction<Set<string | number>>>;
|
|
61
61
|
isAllExpandedByDefault?: boolean;
|
|
62
62
|
expandAllTooltip?: ReactNode;
|
|
63
|
+
isResizable?: boolean;
|
|
64
|
+
minColumnWidth?: number;
|
|
65
|
+
maxColumnWidth?: number;
|
|
63
66
|
onChangeSorting?: (sortConfig?: SortConfig) => void;
|
|
64
67
|
onToggleRowSelection?: (id: string | number) => void;
|
|
65
68
|
onToggleAllRowsSelection?: () => void;
|
|
66
69
|
onToggleRowExpansion?: (id: string | number) => void;
|
|
67
70
|
onToggleAllRowsExpansion?: () => void;
|
|
71
|
+
onColumnResize?: (columnKey: string, width: number) => void;
|
|
68
72
|
}
|
|
@@ -9,4 +9,4 @@ export declare const isPrimaryColumn: (column: PrimaryColumn | FixedColumn) => b
|
|
|
9
9
|
export declare const getRowSizeClassName: (rowData: RowData) => string;
|
|
10
10
|
export declare const calculatePinnedPosition: (columnIndex: number, columns: (PrimaryColumn | FixedColumn)[], columnWidthsRef: MutableRefObject<Map<string, number>>, isRowsExpandable: boolean, selectable: boolean) => number;
|
|
11
11
|
export declare const getCellStyle: (column: FixedColumn | PrimaryColumn, isPinned: boolean, pinnedIndex: number | undefined, pinnedColumns: (PrimaryColumn | FixedColumn)[], columnWidthsRef: MutableRefObject<Map<string, number>>, isRowsExpandable: boolean, selectable: boolean) => CSSProperties;
|
|
12
|
-
export declare const getGridTemplateColumns: (pinnedColumns: (PrimaryColumn | FixedColumn)[], scrollableColumns: (PrimaryColumn | FixedColumn)[], isRowsExpandable: boolean, selectable: boolean, renderRowActions: boolean, isHeader?: boolean) => string;
|
|
12
|
+
export declare const getGridTemplateColumns: (pinnedColumns: (PrimaryColumn | FixedColumn)[], scrollableColumns: (PrimaryColumn | FixedColumn)[], isRowsExpandable: boolean, selectable: boolean, renderRowActions: boolean, isHeader?: boolean, columnWidths?: Record<string, number>) => string;
|