@oliasoft-open-source/react-ui-library 3.11.0-beta-9 → 3.11.0-beta-10
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 +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59799,16 +59799,17 @@ const CellWrapper = (props) => {
|
|
|
59799
59799
|
}
|
|
59800
59800
|
};
|
|
59801
59801
|
const Cell = (props) => {
|
|
59802
|
+
var _a, _b;
|
|
59802
59803
|
const {
|
|
59803
59804
|
cell: cell2,
|
|
59804
59805
|
isHeader,
|
|
59805
59806
|
columnHeaderAlignment,
|
|
59806
59807
|
columnAlignment,
|
|
59807
|
-
width:
|
|
59808
|
+
width: columnWidthProp,
|
|
59808
59809
|
snapshot,
|
|
59809
59810
|
testId
|
|
59810
59811
|
} = props;
|
|
59811
|
-
const { style: styleProp, colSpan, rowSpan } = cell2;
|
|
59812
|
+
const { style: styleProp, colSpan, rowSpan, width: cellWidthProp } = cell2;
|
|
59812
59813
|
const ref2 = useRef(null);
|
|
59813
59814
|
const alignment = {
|
|
59814
59815
|
bodyAlignment: columnAlignment,
|
|
@@ -59843,8 +59844,8 @@ const Cell = (props) => {
|
|
|
59843
59844
|
cellAlignmentStyle,
|
|
59844
59845
|
cell2.breakWord ? styles$7.breakWord : ""
|
|
59845
59846
|
);
|
|
59846
|
-
const width =
|
|
59847
|
-
const style2 = { ...styleProp, width };
|
|
59847
|
+
const width = (_b = (_a = cellWidthProp != null ? cellWidthProp : columnWidthProp) != null ? _a : (snapshot == null ? void 0 : snapshot.isDragging) && ref2.current && ref2.current.offsetWidth) != null ? _b : void 0;
|
|
59848
|
+
const style2 = { ...styleProp, width, minWidth: width };
|
|
59848
59849
|
const Element2 = isHeader ? "th" : "td";
|
|
59849
59850
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(Element2, {
|
|
59850
59851
|
ref: ref2,
|