@equinor/apollo-components 3.1.2-rowfix.11 → 3.1.2-rowfix.12
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
|
@@ -1037,7 +1037,7 @@ var DataTableWrapper = import_styled_components16.default.div`
|
|
|
1037
1037
|
}
|
|
1038
1038
|
`;
|
|
1039
1039
|
function DataTable(props) {
|
|
1040
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
1040
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
1041
1041
|
const { columns, data, bannerConfig, cellConfig, sorting } = props;
|
|
1042
1042
|
const [internalColumnVisibility, setInternalColumnVisibility] = (0, import_react6.useState)({});
|
|
1043
1043
|
const [columnVisibility, setColumnVisibility] = [
|
|
@@ -1122,7 +1122,7 @@ function DataTable(props) {
|
|
|
1122
1122
|
const [hasRef, setHasRef] = (0, import_react6.useState)(false);
|
|
1123
1123
|
(0, import_react6.useEffect)(() => {
|
|
1124
1124
|
setHasRef(Boolean(tableContainerRef.current));
|
|
1125
|
-
}, [tableContainerRef.current.toString()]);
|
|
1125
|
+
}, [(_q = tableContainerRef.current) == null ? void 0 : _q.toString()]);
|
|
1126
1126
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(DataTableWrapper, {
|
|
1127
1127
|
height: props == null ? void 0 : props.height,
|
|
1128
1128
|
width: props == null ? void 0 : props.width,
|
|
@@ -1136,9 +1136,9 @@ function DataTable(props) {
|
|
|
1136
1136
|
}),
|
|
1137
1137
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", {
|
|
1138
1138
|
...props.tableContainerProps,
|
|
1139
|
-
className: "--table-container " + (((
|
|
1139
|
+
className: "--table-container " + (((_r = props.tableContainerProps) == null ? void 0 : _r.className) ?? ""),
|
|
1140
1140
|
style: { contain: "strict" },
|
|
1141
|
-
onScroll: ((
|
|
1141
|
+
onScroll: ((_s = props.tableContainerProps) == null ? void 0 : _s.onScroll) ?? onTableContainerScroll,
|
|
1142
1142
|
ref: (node) => {
|
|
1143
1143
|
var _a2;
|
|
1144
1144
|
console.log({ node });
|
package/dist/index.mjs
CHANGED
|
@@ -994,7 +994,7 @@ var DataTableWrapper = styled16.div`
|
|
|
994
994
|
}
|
|
995
995
|
`;
|
|
996
996
|
function DataTable(props) {
|
|
997
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
997
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
998
998
|
const { columns, data, bannerConfig, cellConfig, sorting } = props;
|
|
999
999
|
const [internalColumnVisibility, setInternalColumnVisibility] = useState5({});
|
|
1000
1000
|
const [columnVisibility, setColumnVisibility] = [
|
|
@@ -1079,7 +1079,7 @@ function DataTable(props) {
|
|
|
1079
1079
|
const [hasRef, setHasRef] = useState5(false);
|
|
1080
1080
|
useEffect3(() => {
|
|
1081
1081
|
setHasRef(Boolean(tableContainerRef.current));
|
|
1082
|
-
}, [tableContainerRef.current.toString()]);
|
|
1082
|
+
}, [(_q = tableContainerRef.current) == null ? void 0 : _q.toString()]);
|
|
1083
1083
|
return /* @__PURE__ */ jsxs11(DataTableWrapper, {
|
|
1084
1084
|
height: props == null ? void 0 : props.height,
|
|
1085
1085
|
width: props == null ? void 0 : props.width,
|
|
@@ -1093,9 +1093,9 @@ function DataTable(props) {
|
|
|
1093
1093
|
}),
|
|
1094
1094
|
/* @__PURE__ */ jsx19("div", {
|
|
1095
1095
|
...props.tableContainerProps,
|
|
1096
|
-
className: "--table-container " + (((
|
|
1096
|
+
className: "--table-container " + (((_r = props.tableContainerProps) == null ? void 0 : _r.className) ?? ""),
|
|
1097
1097
|
style: { contain: "strict" },
|
|
1098
|
-
onScroll: ((
|
|
1098
|
+
onScroll: ((_s = props.tableContainerProps) == null ? void 0 : _s.onScroll) ?? onTableContainerScroll,
|
|
1099
1099
|
ref: (node) => {
|
|
1100
1100
|
var _a2;
|
|
1101
1101
|
console.log({ node });
|