react-table-edit 1.0.1 → 1.0.2
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2494,7 +2494,7 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
|
|
|
2494
2494
|
className: (0, import_classnames13.default)(`r-select-rowcell`, { "r-select-active": !isMulti && value && isSelected }),
|
|
2495
2495
|
style: {
|
|
2496
2496
|
textAlign: "center",
|
|
2497
|
-
paddingLeft: level * 15 + (row[fieldChildren ?? "children"]
|
|
2497
|
+
paddingLeft: level * 15 + (row[fieldChildren ?? "children"]?.length > 0 ? 0 : 10)
|
|
2498
2498
|
},
|
|
2499
2499
|
onClick: (e) => {
|
|
2500
2500
|
if (isMulti) {
|
|
@@ -2527,7 +2527,7 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
},
|
|
2529
2529
|
children: [
|
|
2530
|
-
row[fieldChildren ?? "children"]
|
|
2530
|
+
row[fieldChildren ?? "children"]?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2531
2531
|
import_becoxy_icons6.ChevronRight,
|
|
2532
2532
|
{
|
|
2533
2533
|
onClick: (e) => {
|
|
@@ -2573,7 +2573,7 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
|
|
|
2573
2573
|
id: `select-${id}-${indexRow}-${indexCol}`,
|
|
2574
2574
|
className: (0, import_classnames13.default)(`r-select-rowcell`, { "r-select-active": !isMulti && value && isSelected }),
|
|
2575
2575
|
style: {
|
|
2576
|
-
paddingLeft: 9 + (indexCol === 0 && !isMulti ? level * 10 + (row[fieldChildren ?? "children"]
|
|
2576
|
+
paddingLeft: 9 + (indexCol === 0 && !isMulti ? level * 10 + (row[fieldChildren ?? "children"]?.length > 0 ? 0 : 15) : 0),
|
|
2577
2577
|
textAlign: col.textAlign ? col.textAlign : "left"
|
|
2578
2578
|
},
|
|
2579
2579
|
onClick: (e) => {
|
|
@@ -2613,7 +2613,7 @@ var SelectTableTree = (0, import_react15.forwardRef)((props, ref) => {
|
|
|
2613
2613
|
e.stopPropagation();
|
|
2614
2614
|
},
|
|
2615
2615
|
children: [
|
|
2616
|
-
!isMulti && indexCol === 0 && row[fieldChildren ?? "children"]
|
|
2616
|
+
!isMulti && indexCol === 0 && row[fieldChildren ?? "children"]?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2617
2617
|
import_becoxy_icons6.ChevronRight,
|
|
2618
2618
|
{
|
|
2619
2619
|
onClick: (e) => {
|
package/dist/index.mjs
CHANGED
|
@@ -2463,7 +2463,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
|
|
|
2463
2463
|
className: classnames8(`r-select-rowcell`, { "r-select-active": !isMulti && value && isSelected }),
|
|
2464
2464
|
style: {
|
|
2465
2465
|
textAlign: "center",
|
|
2466
|
-
paddingLeft: level * 15 + (row[fieldChildren ?? "children"]
|
|
2466
|
+
paddingLeft: level * 15 + (row[fieldChildren ?? "children"]?.length > 0 ? 0 : 10)
|
|
2467
2467
|
},
|
|
2468
2468
|
onClick: (e) => {
|
|
2469
2469
|
if (isMulti) {
|
|
@@ -2496,7 +2496,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
},
|
|
2498
2498
|
children: [
|
|
2499
|
-
row[fieldChildren ?? "children"]
|
|
2499
|
+
row[fieldChildren ?? "children"]?.length > 0 && /* @__PURE__ */ jsx15(
|
|
2500
2500
|
ChevronRight3,
|
|
2501
2501
|
{
|
|
2502
2502
|
onClick: (e) => {
|
|
@@ -2542,7 +2542,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
|
|
|
2542
2542
|
id: `select-${id}-${indexRow}-${indexCol}`,
|
|
2543
2543
|
className: classnames8(`r-select-rowcell`, { "r-select-active": !isMulti && value && isSelected }),
|
|
2544
2544
|
style: {
|
|
2545
|
-
paddingLeft: 9 + (indexCol === 0 && !isMulti ? level * 10 + (row[fieldChildren ?? "children"]
|
|
2545
|
+
paddingLeft: 9 + (indexCol === 0 && !isMulti ? level * 10 + (row[fieldChildren ?? "children"]?.length > 0 ? 0 : 15) : 0),
|
|
2546
2546
|
textAlign: col.textAlign ? col.textAlign : "left"
|
|
2547
2547
|
},
|
|
2548
2548
|
onClick: (e) => {
|
|
@@ -2582,7 +2582,7 @@ var SelectTableTree = forwardRef3((props, ref) => {
|
|
|
2582
2582
|
e.stopPropagation();
|
|
2583
2583
|
},
|
|
2584
2584
|
children: [
|
|
2585
|
-
!isMulti && indexCol === 0 && row[fieldChildren ?? "children"]
|
|
2585
|
+
!isMulti && indexCol === 0 && row[fieldChildren ?? "children"]?.length > 0 && /* @__PURE__ */ jsx15(
|
|
2586
2586
|
ChevronRight3,
|
|
2587
2587
|
{
|
|
2588
2588
|
onClick: (e) => {
|