@ctlyst.id/internal-ui 4.1.15 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1085,7 +1085,16 @@ var useDataTable = ({
|
|
1085
1085
|
};
|
1086
1086
|
var DataTable = React5.forwardRef((props, ref) => {
|
1087
1087
|
var _a, _b, _c, _d, _e, _f, _g;
|
1088
|
-
const {
|
1088
|
+
const {
|
1089
|
+
isLoading,
|
1090
|
+
styles,
|
1091
|
+
headerSticky,
|
1092
|
+
onRowClick,
|
1093
|
+
container,
|
1094
|
+
columnPinning,
|
1095
|
+
isRowDisabled,
|
1096
|
+
cellLineClamp = 2
|
1097
|
+
} = props;
|
1089
1098
|
const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);
|
1090
1099
|
const refTable = React5.useRef(null);
|
1091
1100
|
React5.useImperativeHandle(ref, () => ({
|
@@ -1271,10 +1280,12 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1271
1280
|
onClick: (e) => {
|
1272
1281
|
e.stopPropagation();
|
1273
1282
|
},
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1283
|
+
...cellLineClamp > 0 ? {
|
1284
|
+
noOfLines: cellLineClamp,
|
1285
|
+
sx: {
|
1286
|
+
display: "-webkit-inline-box"
|
1287
|
+
}
|
1288
|
+
} : {},
|
1278
1289
|
children: flexRender(cell.column.columnDef.cell, cell.getContext())
|
1279
1290
|
}
|
1280
1291
|
)
|
@@ -4969,7 +4980,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4969
4980
|
isActive,
|
4970
4981
|
bg: activeParent,
|
4971
4982
|
"data-test-id": `CTA_nav-item-${item.title}`,
|
4972
|
-
onClick: () => setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink),
|
4983
|
+
onClick: () => setActive(item.children.length > 0 ? item.children[0].navLink : item.navLink, true),
|
4973
4984
|
position: "relative",
|
4974
4985
|
...itemStyles,
|
4975
4986
|
children: [
|