@infinite-table/infinite-react 7.3.5 → 7.3.6
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/index.d.ts +4 -2
- package/index.dev.js +24 -8
- package/index.dev.mjs +24 -8
- package/index.js +5 -5
- package/index.mjs +5 -5
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -2852,6 +2852,7 @@ interface InfiniteTableMappedState<T> {
|
|
|
2852
2852
|
cellStyle: InfiniteTableProps<T>['cellStyle'];
|
|
2853
2853
|
rowProps: InfiniteTableProps<T>['rowProps'];
|
|
2854
2854
|
rowClassName: InfiniteTableProps<T>['rowClassName'];
|
|
2855
|
+
rowHoverClassName: InfiniteTableProps<T>['rowHoverClassName'];
|
|
2855
2856
|
cellClassName: InfiniteTableProps<T>['cellClassName'];
|
|
2856
2857
|
pinnedStartMaxWidth: InfiniteTableProps<T>['pinnedStartMaxWidth'];
|
|
2857
2858
|
pinnedEndMaxWidth: InfiniteTableProps<T>['pinnedEndMaxWidth'];
|
|
@@ -3320,12 +3321,12 @@ type InfiniteTableHeaderProps<_T> = {
|
|
|
3320
3321
|
};
|
|
3321
3322
|
|
|
3322
3323
|
type InfiniteTableBodyProps<_T> = {
|
|
3323
|
-
|
|
3324
|
+
rowHoverClassName?: string | string[];
|
|
3324
3325
|
};
|
|
3325
3326
|
|
|
3326
3327
|
declare function InfiniteTableBody<T>(props: InfiniteTableBodyProps<T>): React$1.JSX.Element;
|
|
3327
3328
|
declare namespace InfiniteTableBody {
|
|
3328
|
-
var
|
|
3329
|
+
var rowHoverClassName: string[];
|
|
3329
3330
|
}
|
|
3330
3331
|
|
|
3331
3332
|
declare const InfiniteTableClassName: string;
|
|
@@ -7371,6 +7372,7 @@ interface InfiniteTableProps<T> {
|
|
|
7371
7372
|
cellStyle?: InfiniteTablePropCellStyle<T>;
|
|
7372
7373
|
cellClassName?: InfiniteTablePropCellClassName<T>;
|
|
7373
7374
|
rowClassName?: InfiniteTablePropRowClassName<T>;
|
|
7375
|
+
rowHoverClassName?: string;
|
|
7374
7376
|
columnHeaderHeight?: number | string;
|
|
7375
7377
|
onKeyDown?: (context: InfiniteTablePublicContext<T> & {
|
|
7376
7378
|
actions: InfiniteTableEventHandlerContext<T>['actions'];
|
package/index.dev.js
CHANGED
|
@@ -23961,6 +23961,7 @@ var forwardProps4 = (_setupState) => {
|
|
|
23961
23961
|
cellStyle: 1,
|
|
23962
23962
|
rowProps: 1,
|
|
23963
23963
|
rowClassName: 1,
|
|
23964
|
+
rowHoverClassName: 1,
|
|
23964
23965
|
cellClassName: 1,
|
|
23965
23966
|
repeatWrappedGroupRows: 1,
|
|
23966
23967
|
pinnedStartMaxWidth: 1,
|
|
@@ -25362,7 +25363,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
25362
25363
|
}
|
|
25363
25364
|
let valid2 = isValidLicense(licenseKey, {
|
|
25364
25365
|
publishedAt: 1624970570587,
|
|
25365
|
-
version: "7.3.
|
|
25366
|
+
version: "7.3.6"
|
|
25366
25367
|
});
|
|
25367
25368
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
25368
25369
|
return true;
|
|
@@ -29922,6 +29923,12 @@ var _HOVERED_CLASS_NAMES = [
|
|
|
29922
29923
|
RowHoverCls,
|
|
29923
29924
|
`${InfiniteTableColumnCellClassName}--hovered`
|
|
29924
29925
|
];
|
|
29926
|
+
function toClassNameArray(str) {
|
|
29927
|
+
if (Array.isArray(str)) {
|
|
29928
|
+
str = str.join(" ");
|
|
29929
|
+
}
|
|
29930
|
+
return str.split(" ").map((s) => s.trim()).filter(Boolean);
|
|
29931
|
+
}
|
|
29925
29932
|
function InfiniteTableBody(props) {
|
|
29926
29933
|
const context = useInfiniteTable();
|
|
29927
29934
|
const masterContext = useMasterDetailContext();
|
|
@@ -29943,7 +29950,8 @@ function InfiniteTableBody(props) {
|
|
|
29943
29950
|
showHoverRows,
|
|
29944
29951
|
wrapRowsHorizontally,
|
|
29945
29952
|
domProps,
|
|
29946
|
-
domRef
|
|
29953
|
+
domRef,
|
|
29954
|
+
rowHoverClassName
|
|
29947
29955
|
} = componentState;
|
|
29948
29956
|
const LoadMaskCmp = components2?.LoadMask ?? LoadMask;
|
|
29949
29957
|
const computed = getComputed();
|
|
@@ -30002,14 +30010,22 @@ function InfiniteTableBody(props) {
|
|
|
30002
30010
|
if (!showHoverRows) {
|
|
30003
30011
|
return void 0;
|
|
30004
30012
|
}
|
|
30005
|
-
|
|
30006
|
-
|
|
30013
|
+
let result = [];
|
|
30014
|
+
if (rowHoverClassName) {
|
|
30015
|
+
result = result.concat(rowHoverClassName);
|
|
30016
|
+
}
|
|
30017
|
+
if (props.rowHoverClassName) {
|
|
30018
|
+
result = result.concat(props.rowHoverClassName);
|
|
30019
|
+
}
|
|
30020
|
+
if (InfiniteTableBody.rowHoverClassName) {
|
|
30021
|
+
result = result.concat(InfiniteTableBody.rowHoverClassName);
|
|
30007
30022
|
}
|
|
30008
|
-
return
|
|
30023
|
+
return toClassNameArray(result);
|
|
30009
30024
|
}, [
|
|
30010
30025
|
showHoverRows,
|
|
30011
|
-
|
|
30012
|
-
|
|
30026
|
+
rowHoverClassName,
|
|
30027
|
+
props.rowHoverClassName,
|
|
30028
|
+
InfiniteTableBody.rowHoverClassName
|
|
30013
30029
|
]);
|
|
30014
30030
|
return /* @__PURE__ */ React77.createElement(InfiniteTableBodyContainer, { onContextMenu }, /* @__PURE__ */ React77.createElement(
|
|
30015
30031
|
HeadlessTable,
|
|
@@ -30035,7 +30051,7 @@ function InfiniteTableBody(props) {
|
|
|
30035
30051
|
}
|
|
30036
30052
|
), /* @__PURE__ */ React77.createElement(LoadMaskCmp, { visible: loading }, loadingText));
|
|
30037
30053
|
}
|
|
30038
|
-
InfiniteTableBody.
|
|
30054
|
+
InfiniteTableBody.rowHoverClassName = _HOVERED_CLASS_NAMES;
|
|
30039
30055
|
|
|
30040
30056
|
// src/components/InfiniteTable/index.tsx
|
|
30041
30057
|
var InfiniteTableClassName = internalProps.rootClassName;
|
package/index.dev.mjs
CHANGED
|
@@ -23910,6 +23910,7 @@ var forwardProps4 = (_setupState) => {
|
|
|
23910
23910
|
cellStyle: 1,
|
|
23911
23911
|
rowProps: 1,
|
|
23912
23912
|
rowClassName: 1,
|
|
23913
|
+
rowHoverClassName: 1,
|
|
23913
23914
|
cellClassName: 1,
|
|
23914
23915
|
repeatWrappedGroupRows: 1,
|
|
23915
23916
|
pinnedStartMaxWidth: 1,
|
|
@@ -25311,7 +25312,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
25311
25312
|
}
|
|
25312
25313
|
let valid2 = isValidLicense(licenseKey, {
|
|
25313
25314
|
publishedAt: 1624970570587,
|
|
25314
|
-
version: "7.3.
|
|
25315
|
+
version: "7.3.6"
|
|
25315
25316
|
});
|
|
25316
25317
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
25317
25318
|
return true;
|
|
@@ -29881,6 +29882,12 @@ var _HOVERED_CLASS_NAMES = [
|
|
|
29881
29882
|
RowHoverCls,
|
|
29882
29883
|
`${InfiniteTableColumnCellClassName}--hovered`
|
|
29883
29884
|
];
|
|
29885
|
+
function toClassNameArray(str) {
|
|
29886
|
+
if (Array.isArray(str)) {
|
|
29887
|
+
str = str.join(" ");
|
|
29888
|
+
}
|
|
29889
|
+
return str.split(" ").map((s) => s.trim()).filter(Boolean);
|
|
29890
|
+
}
|
|
29884
29891
|
function InfiniteTableBody(props) {
|
|
29885
29892
|
const context = useInfiniteTable();
|
|
29886
29893
|
const masterContext = useMasterDetailContext();
|
|
@@ -29902,7 +29909,8 @@ function InfiniteTableBody(props) {
|
|
|
29902
29909
|
showHoverRows,
|
|
29903
29910
|
wrapRowsHorizontally,
|
|
29904
29911
|
domProps,
|
|
29905
|
-
domRef
|
|
29912
|
+
domRef,
|
|
29913
|
+
rowHoverClassName
|
|
29906
29914
|
} = componentState;
|
|
29907
29915
|
const LoadMaskCmp = components2?.LoadMask ?? LoadMask;
|
|
29908
29916
|
const computed = getComputed();
|
|
@@ -29961,14 +29969,22 @@ function InfiniteTableBody(props) {
|
|
|
29961
29969
|
if (!showHoverRows) {
|
|
29962
29970
|
return void 0;
|
|
29963
29971
|
}
|
|
29964
|
-
|
|
29965
|
-
|
|
29972
|
+
let result = [];
|
|
29973
|
+
if (rowHoverClassName) {
|
|
29974
|
+
result = result.concat(rowHoverClassName);
|
|
29975
|
+
}
|
|
29976
|
+
if (props.rowHoverClassName) {
|
|
29977
|
+
result = result.concat(props.rowHoverClassName);
|
|
29978
|
+
}
|
|
29979
|
+
if (InfiniteTableBody.rowHoverClassName) {
|
|
29980
|
+
result = result.concat(InfiniteTableBody.rowHoverClassName);
|
|
29966
29981
|
}
|
|
29967
|
-
return
|
|
29982
|
+
return toClassNameArray(result);
|
|
29968
29983
|
}, [
|
|
29969
29984
|
showHoverRows,
|
|
29970
|
-
|
|
29971
|
-
|
|
29985
|
+
rowHoverClassName,
|
|
29986
|
+
props.rowHoverClassName,
|
|
29987
|
+
InfiniteTableBody.rowHoverClassName
|
|
29972
29988
|
]);
|
|
29973
29989
|
return /* @__PURE__ */ React77.createElement(InfiniteTableBodyContainer, { onContextMenu }, /* @__PURE__ */ React77.createElement(
|
|
29974
29990
|
HeadlessTable,
|
|
@@ -29994,7 +30010,7 @@ function InfiniteTableBody(props) {
|
|
|
29994
30010
|
}
|
|
29995
30011
|
), /* @__PURE__ */ React77.createElement(LoadMaskCmp, { visible: loading }, loadingText));
|
|
29996
30012
|
}
|
|
29997
|
-
InfiniteTableBody.
|
|
30013
|
+
InfiniteTableBody.rowHoverClassName = _HOVERED_CLASS_NAMES;
|
|
29998
30014
|
|
|
29999
30015
|
// src/components/InfiniteTable/index.tsx
|
|
30000
30016
|
var InfiniteTableClassName = internalProps.rootClassName;
|