@crystaldesign/grid 24.4.0-beta.7 → 24.4.0-beta.8

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.
@@ -207,7 +207,8 @@ function Table(_ref2) {
207
207
  toggleSelected = _ref2$toggleSelected === void 0 ? function () {} : _ref2$toggleSelected,
208
208
  renderSubComponent = _ref2.renderSubComponent,
209
209
  dragDropRows = _ref2.dragDropRows,
210
- onDragEndAction = _ref2.onDragEndAction;
210
+ onDragEndAction = _ref2.onDragEndAction,
211
+ rowHight = _ref2.rowHight;
211
212
  var classes = useStyles$6();
212
213
  var onDragEnd = function onDragEnd(result) {
213
214
  if (!result.destination) {
@@ -311,7 +312,8 @@ function Table(_ref2) {
311
312
  toggleSelected: toggleSelected
312
313
  }, row.id);
313
314
  }), isLoading && /*#__PURE__*/jsx(Loading, {
314
- headerGroups: headerGroups
315
+ headerGroups: headerGroups,
316
+ rowHight: rowHight
315
317
  })]
316
318
  })), dragDropRows && /*#__PURE__*/jsx(DragDropContext, {
317
319
  onDragEnd: onDragEnd,
@@ -506,7 +508,8 @@ var cellStyleHelper = function cellStyleHelper(cell) {
506
508
  };
507
509
  };
508
510
  function Loading(_ref5) {
509
- var headerGroups = _ref5.headerGroups;
511
+ var headerGroups = _ref5.headerGroups,
512
+ rowHight = _ref5.rowHight;
510
513
  //TODO make it more dynamic, so that skeleton looks closer to actual data
511
514
  var row = /*#__PURE__*/jsx(TableRow, {
512
515
  children: headerGroups[headerGroups.length - 1].headers.flatMap(function (h) {
@@ -518,7 +521,8 @@ function Loading(_ref5) {
518
521
  padding: 0,
519
522
  position: 'relative',
520
523
  backgroundColor: 'white',
521
- zIndex: 4
524
+ zIndex: 4,
525
+ height: rowHight
522
526
  }
523
527
  }, h.id + '1'));
524
528
  cells.push( /*#__PURE__*/jsx(TableCell, {
@@ -528,7 +532,8 @@ function Loading(_ref5) {
528
532
  position: 'sticky',
529
533
  backgroundColor: 'white',
530
534
  zIndex: 3,
531
- right: 242
535
+ right: 242,
536
+ height: rowHight
532
537
  },
533
538
  children: /*#__PURE__*/jsx("div", {
534
539
  style: {
@@ -547,7 +552,8 @@ function Loading(_ref5) {
547
552
  position: h.fixed ? 'sticky' : 'relative',
548
553
  right: h.fixed ? 0 : undefined,
549
554
  backgroundColor: h.fixed ? 'white' : undefined,
550
- zIndex: h.fixed ? 4 : 3
555
+ zIndex: h.fixed ? 4 : 3,
556
+ height: rowHight
551
557
  },
552
558
  children: /*#__PURE__*/jsx(Skeleton, {})
553
559
  }, h.id));
@@ -3503,6 +3509,4 @@ var useStyles = makeStyles(function () {
3503
3509
  });
3504
3510
  });
3505
3511
 
3506
- //changes
3507
-
3508
3512
  export { Grid as default };
@@ -35,6 +35,7 @@ export interface TableProps<D extends object> {
35
35
  renderSubComponent?: (row?: Row<D>) => JSX.Element;
36
36
  dragDropRows?: boolean;
37
37
  onDragEndAction?: (from: number, to: number, rows: Row<D>[]) => void;
38
+ rowHight?: string | number;
38
39
  }
39
40
  export default function MemoizedTable<D extends object>({ headerGroups, rows, isLoading, selectedFlatRows, ...others }: TableProps<D>): JSX.Element;
40
41
  //# sourceMappingURL=Table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Table.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,UAAU,IAAI,YAAY,EAAE,WAAW,EAAE,GAAG,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUjI,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,MAAM;IAC1C;;OAEG;IACH,aAAa,EAAE,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;IACjE;;OAEG;IACH,iBAAiB,EAAE,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC;IAC3E;;OAEG;IACH,UAAU,EAAE,CA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4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@material-ui/pickers": "^3.2.10",
@@ -13,7 +13,7 @@
13
13
  "react-dom": "17.0.2"
14
14
  },
15
15
  "dependencies": {
16
- "@crystaldesign/searchfield": "24.4.0-beta.7",
16
+ "@crystaldesign/searchfield": "24.4.0-beta.8",
17
17
  "@date-io/core": "^1.3.13",
18
18
  "@date-io/date-fns": "^1.3.13",
19
19
  "@tinymce/tinymce-react": "^3.13.0",
@@ -43,5 +43,5 @@
43
43
  },
44
44
  "module": "build/esm/index.js",
45
45
  "types": "./build/types/grid/src/index.d.ts",
46
- "gitHead": "cde7a93dcd91cea515cd12187d80e0b563d305d5"
46
+ "gitHead": "ab9368e26698225d1994360125b11005bd0c14e0"
47
47
  }