react-table-edit 0.6.6 → 0.6.7
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
|
@@ -1848,7 +1848,7 @@ var SelectTable = (0, import_react13.forwardRef)((props, ref) => {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
}, [searchTerm]);
|
|
1850
1850
|
const checkOverflow = (indexRow, indexCol) => {
|
|
1851
|
-
const element = document.getElementById(`
|
|
1851
|
+
const element = document.getElementById(`select-${id}-${indexRow}-${indexCol}`);
|
|
1852
1852
|
return element && element.scrollWidth > element.clientWidth;
|
|
1853
1853
|
};
|
|
1854
1854
|
const RenderElement = (props2) => {
|
|
@@ -1910,7 +1910,7 @@ var SelectTable = (0, import_react13.forwardRef)((props, ref) => {
|
|
|
1910
1910
|
col.visible !== false && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1911
1911
|
"td",
|
|
1912
1912
|
{
|
|
1913
|
-
id: `
|
|
1913
|
+
id: `select-${id}-${indexRow}-${indexCol}`,
|
|
1914
1914
|
className: (0, import_classnames11.default)(`r-select-rowcell`, { "r-select-move": indexFocus === indexRow, "r-select-active": !isMulti && value && value[fieldValue ?? "value"] === row[fieldValue ?? "value"] }),
|
|
1915
1915
|
style: {
|
|
1916
1916
|
minWidth: col.minWidth,
|
|
@@ -1952,7 +1952,7 @@ var SelectTable = (0, import_react13.forwardRef)((props, ref) => {
|
|
|
1952
1952
|
},
|
|
1953
1953
|
`col-${indexRow}-${indexCol}`
|
|
1954
1954
|
),
|
|
1955
|
-
checkOverflow(indexRow, indexCol) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `
|
|
1955
|
+
checkOverflow(indexRow, indexCol) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `select-${id}-${indexRow}-${indexCol}`, children: col.template ? col.template(row, indexRow) : valueDisplay })
|
|
1956
1956
|
] }, indexCol);
|
|
1957
1957
|
})
|
|
1958
1958
|
]
|
|
@@ -3349,7 +3349,7 @@ var TableEdit = (0, import_react14.forwardRef)((props, ref) => {
|
|
|
3349
3349
|
children: [
|
|
3350
3350
|
typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }),
|
|
3351
3351
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { id: `error-${indexRow}-${indexCol}`, className: (0, import_classnames12.default)("cursor-pointer text-primary icon-table", { "d-none": !errorMessage }), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_becoxy_icons6.AlertCircle, { fontSize: 15.5 }) }),
|
|
3352
|
-
!(typeDis === 1 && !refreshRow) && checkOverflow(indexRow, indexCol) && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_reactstrap9.UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${idTable}
|
|
3352
|
+
!(typeDis === 1 && !refreshRow) && checkOverflow(indexRow, indexCol) && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_reactstrap9.UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: typeDis === 2 ? col.template(row, indexRow) : value }),
|
|
3353
3353
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
3354
3354
|
import_reactstrap9.UncontrolledTooltip,
|
|
3355
3355
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -1814,7 +1814,7 @@ var SelectTable = forwardRef2((props, ref) => {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
}, [searchTerm]);
|
|
1816
1816
|
const checkOverflow = (indexRow, indexCol) => {
|
|
1817
|
-
const element = document.getElementById(`
|
|
1817
|
+
const element = document.getElementById(`select-${id}-${indexRow}-${indexCol}`);
|
|
1818
1818
|
return element && element.scrollWidth > element.clientWidth;
|
|
1819
1819
|
};
|
|
1820
1820
|
const RenderElement = (props2) => {
|
|
@@ -1876,7 +1876,7 @@ var SelectTable = forwardRef2((props, ref) => {
|
|
|
1876
1876
|
col.visible !== false && /* @__PURE__ */ jsx13(
|
|
1877
1877
|
"td",
|
|
1878
1878
|
{
|
|
1879
|
-
id: `
|
|
1879
|
+
id: `select-${id}-${indexRow}-${indexCol}`,
|
|
1880
1880
|
className: classnames6(`r-select-rowcell`, { "r-select-move": indexFocus === indexRow, "r-select-active": !isMulti && value && value[fieldValue ?? "value"] === row[fieldValue ?? "value"] }),
|
|
1881
1881
|
style: {
|
|
1882
1882
|
minWidth: col.minWidth,
|
|
@@ -1918,7 +1918,7 @@ var SelectTable = forwardRef2((props, ref) => {
|
|
|
1918
1918
|
},
|
|
1919
1919
|
`col-${indexRow}-${indexCol}`
|
|
1920
1920
|
),
|
|
1921
|
-
checkOverflow(indexRow, indexCol) && /* @__PURE__ */ jsx13(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `
|
|
1921
|
+
checkOverflow(indexRow, indexCol) && /* @__PURE__ */ jsx13(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `select-${id}-${indexRow}-${indexCol}`, children: col.template ? col.template(row, indexRow) : valueDisplay })
|
|
1922
1922
|
] }, indexCol);
|
|
1923
1923
|
})
|
|
1924
1924
|
]
|
|
@@ -3315,7 +3315,7 @@ var TableEdit = forwardRef3((props, ref) => {
|
|
|
3315
3315
|
children: [
|
|
3316
3316
|
typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : /* @__PURE__ */ jsx14("div", { id: `content-${idTable}-row${indexRow}col-${indexCol}`, className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }),
|
|
3317
3317
|
/* @__PURE__ */ jsx14("span", { id: `error-${indexRow}-${indexCol}`, className: classnames7("cursor-pointer text-primary icon-table", { "d-none": !errorMessage }), children: /* @__PURE__ */ jsx14(AlertCircle, { fontSize: 15.5 }) }),
|
|
3318
|
-
!(typeDis === 1 && !refreshRow) && checkOverflow(indexRow, indexCol) && /* @__PURE__ */ jsx14(UncontrolledTooltip2, { className: "r-tooltip", autohide: false, target: `content-${idTable}
|
|
3318
|
+
!(typeDis === 1 && !refreshRow) && checkOverflow(indexRow, indexCol) && /* @__PURE__ */ jsx14(UncontrolledTooltip2, { className: "r-tooltip", autohide: false, target: `content-${idTable}-row${indexRow}col-${indexCol}`, children: typeDis === 2 ? col.template(row, indexRow) : value }),
|
|
3319
3319
|
/* @__PURE__ */ jsx14(
|
|
3320
3320
|
UncontrolledTooltip2,
|
|
3321
3321
|
{
|