@progress/kendo-react-data-tools 5.17.0-dev.202308110815 → 5.17.0-dev.202308141334

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.
@@ -2,6 +2,16 @@ import { FilterCellProps } from '../../filteringCells';
2
2
  import { CellProps } from '../CellProps';
3
3
  import { ExtendedColumnProps, TreeColumnBaseProps } from '../ColumnProps';
4
4
  import { HeaderCellProps } from '../HeaderCell';
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare function nextColumn(columns: {
9
+ depth: number;
10
+ locked?: boolean;
11
+ }[], current: number): {
12
+ depth: number;
13
+ locked?: boolean | undefined;
14
+ } | null;
5
15
  /**
6
16
  * @hidden
7
17
  */
@@ -20,6 +30,42 @@ export declare function mapColumns(columns: Array<{
20
30
  rightBorder: boolean;
21
31
  ariaColumnIndex: number;
22
32
  }>): number[][];
33
+ /**
34
+ * @hidden
35
+ */
36
+ export declare function updateLeft(columnsMap: number[][], columns: Array<{
37
+ parentIndex: number;
38
+ colSpan: number;
39
+ rowSpan: number;
40
+ depth: number;
41
+ kFirst?: boolean;
42
+ children: any[];
43
+ width?: string | number;
44
+ locked?: boolean;
45
+ index: number;
46
+ left: number;
47
+ right: number;
48
+ rightBorder: boolean;
49
+ ariaColumnIndex: number;
50
+ }>, generateLeft?: boolean): void;
51
+ /**
52
+ * @hidden
53
+ */
54
+ export declare function updateRight(columnsMap: number[][], columns: Array<{
55
+ parentIndex: number;
56
+ colSpan: number;
57
+ rowSpan: number;
58
+ depth: number;
59
+ kFirst?: boolean;
60
+ children: any[];
61
+ width?: string | number;
62
+ locked?: boolean;
63
+ index: number;
64
+ left: number;
65
+ right: number;
66
+ rightBorder: boolean;
67
+ ariaColumnIndex: number;
68
+ }>, generateRight?: boolean): void;
23
69
  /**
24
70
  * @hidden
25
71
  */
@@ -1,6 +1,9 @@
1
1
  import { generateNavigatableId } from '../../navigation/utils';
2
2
  import { ColumnDefaultProps } from '../ColumnProps';
3
- function nextColumn(columns, current) {
3
+ /**
4
+ * @hidden
5
+ */
6
+ export function nextColumn(columns, current) {
4
7
  var currentDepth = columns[current].depth;
5
8
  var next = null;
6
9
  for (var index = current + 1; index < columns.length; index++) {
@@ -57,11 +60,19 @@ export function mapColumns(columns) {
57
60
  colIndexByLevel[ci] = (colIndexByLevel[ci] || 0) + column.colSpan;
58
61
  }
59
62
  });
63
+ updateLeft(columnsMap, columns);
64
+ updateRight(columnsMap, columns);
65
+ return columnsMap;
66
+ }
67
+ /**
68
+ * @hidden
69
+ */
70
+ export function updateLeft(columnsMap, columns, generateLeft) {
60
71
  var stickyLeftWidth = new Array(columnsMap.length).fill(0);
61
72
  var width = 0;
62
73
  // set left AND create stickyLeftWidth
63
74
  columns.forEach(function (column) {
64
- if (column.locked) {
75
+ if (column.locked && (!column.left || generateLeft)) {
65
76
  column.left = stickyLeftWidth[column.depth];
66
77
  width = getColumnWidth(column);
67
78
  if (column.children.length === 0) {
@@ -74,11 +85,17 @@ export function mapColumns(columns) {
74
85
  }
75
86
  }
76
87
  });
88
+ }
89
+ /**
90
+ * @hidden
91
+ */
92
+ export function updateRight(columnsMap, columns, generateRight) {
93
+ var width = 0;
77
94
  var stickyRightWidth = new Array(columnsMap.length).fill(0);
78
95
  // set right, rightBorder AND create stickyRightWidth
79
96
  for (var i = columns.length - 1; i >= 0; i--) {
80
97
  var column = columns[i];
81
- if (column.locked) {
98
+ if (column.locked && (!column.right || generateRight)) {
82
99
  column.right = stickyRightWidth[column.depth];
83
100
  width = getColumnWidth(column);
84
101
  if (column.children.length === 0) {
@@ -93,7 +110,6 @@ export function mapColumns(columns) {
93
110
  column.rightBorder = !(next && next.locked);
94
111
  }
95
112
  }
96
- return columnsMap;
97
113
  }
98
114
  /**
99
115
  * @hidden
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-data-tools',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1691739918,
8
+ publishDate: 1692018274,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -2,6 +2,16 @@ import { FilterCellProps } from '../../filteringCells';
2
2
  import { CellProps } from '../CellProps';
3
3
  import { ExtendedColumnProps, TreeColumnBaseProps } from '../ColumnProps';
4
4
  import { HeaderCellProps } from '../HeaderCell';
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare function nextColumn(columns: {
9
+ depth: number;
10
+ locked?: boolean;
11
+ }[], current: number): {
12
+ depth: number;
13
+ locked?: boolean | undefined;
14
+ } | null;
5
15
  /**
6
16
  * @hidden
7
17
  */
@@ -20,6 +30,42 @@ export declare function mapColumns(columns: Array<{
20
30
  rightBorder: boolean;
21
31
  ariaColumnIndex: number;
22
32
  }>): number[][];
33
+ /**
34
+ * @hidden
35
+ */
36
+ export declare function updateLeft(columnsMap: number[][], columns: Array<{
37
+ parentIndex: number;
38
+ colSpan: number;
39
+ rowSpan: number;
40
+ depth: number;
41
+ kFirst?: boolean;
42
+ children: any[];
43
+ width?: string | number;
44
+ locked?: boolean;
45
+ index: number;
46
+ left: number;
47
+ right: number;
48
+ rightBorder: boolean;
49
+ ariaColumnIndex: number;
50
+ }>, generateLeft?: boolean): void;
51
+ /**
52
+ * @hidden
53
+ */
54
+ export declare function updateRight(columnsMap: number[][], columns: Array<{
55
+ parentIndex: number;
56
+ colSpan: number;
57
+ rowSpan: number;
58
+ depth: number;
59
+ kFirst?: boolean;
60
+ children: any[];
61
+ width?: string | number;
62
+ locked?: boolean;
63
+ index: number;
64
+ left: number;
65
+ right: number;
66
+ rightBorder: boolean;
67
+ ariaColumnIndex: number;
68
+ }>, generateRight?: boolean): void;
23
69
  /**
24
70
  * @hidden
25
71
  */
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIndex = exports.isRtl = exports.readColumns = exports.mapColumns = void 0;
3
+ exports.getIndex = exports.isRtl = exports.readColumns = exports.updateRight = exports.updateLeft = exports.mapColumns = exports.nextColumn = void 0;
4
4
  var utils_1 = require("../../navigation/utils");
5
5
  var ColumnProps_1 = require("../ColumnProps");
6
+ /**
7
+ * @hidden
8
+ */
6
9
  function nextColumn(columns, current) {
7
10
  var currentDepth = columns[current].depth;
8
11
  var next = null;
@@ -14,6 +17,7 @@ function nextColumn(columns, current) {
14
17
  }
15
18
  return next;
16
19
  }
20
+ exports.nextColumn = nextColumn;
17
21
  var getColumnWidth = function (column) {
18
22
  var width = column.width ? parseFloat(column.width.toString()) : 0;
19
23
  if (!width && column.children && column.children.length) {
@@ -60,11 +64,20 @@ function mapColumns(columns) {
60
64
  colIndexByLevel[ci] = (colIndexByLevel[ci] || 0) + column.colSpan;
61
65
  }
62
66
  });
67
+ updateLeft(columnsMap, columns);
68
+ updateRight(columnsMap, columns);
69
+ return columnsMap;
70
+ }
71
+ exports.mapColumns = mapColumns;
72
+ /**
73
+ * @hidden
74
+ */
75
+ function updateLeft(columnsMap, columns, generateLeft) {
63
76
  var stickyLeftWidth = new Array(columnsMap.length).fill(0);
64
77
  var width = 0;
65
78
  // set left AND create stickyLeftWidth
66
79
  columns.forEach(function (column) {
67
- if (column.locked) {
80
+ if (column.locked && (!column.left || generateLeft)) {
68
81
  column.left = stickyLeftWidth[column.depth];
69
82
  width = getColumnWidth(column);
70
83
  if (column.children.length === 0) {
@@ -77,11 +90,18 @@ function mapColumns(columns) {
77
90
  }
78
91
  }
79
92
  });
93
+ }
94
+ exports.updateLeft = updateLeft;
95
+ /**
96
+ * @hidden
97
+ */
98
+ function updateRight(columnsMap, columns, generateRight) {
99
+ var width = 0;
80
100
  var stickyRightWidth = new Array(columnsMap.length).fill(0);
81
101
  // set right, rightBorder AND create stickyRightWidth
82
102
  for (var i = columns.length - 1; i >= 0; i--) {
83
103
  var column = columns[i];
84
- if (column.locked) {
104
+ if (column.locked && (!column.right || generateRight)) {
85
105
  column.right = stickyRightWidth[column.depth];
86
106
  width = getColumnWidth(column);
87
107
  if (column.children.length === 0) {
@@ -96,9 +116,8 @@ function mapColumns(columns) {
96
116
  column.rightBorder = !(next && next.locked);
97
117
  }
98
118
  }
99
- return columnsMap;
100
119
  }
101
- exports.mapColumns = mapColumns;
120
+ exports.updateRight = updateRight;
102
121
  /**
103
122
  * @hidden
104
123
  */
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-data-tools',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1691739918,
11
+ publishDate: 1692018274,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };