@progress/kendo-react-treelist 6.1.1 → 7.0.0-develop.10

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.
Files changed (176) hide show
  1. package/LICENSE.md +1 -1
  2. package/ScrollMode.d.ts +5 -0
  3. package/{dist/es/TreeList.d.ts → TreeList.d.ts} +6 -2
  4. package/{dist/es/TreeListNoRecords.d.ts → TreeListNoRecords.d.ts} +4 -0
  5. package/TreeListToolbar.d.ts +15 -0
  6. package/cells/EditCells/TreeListBooleanEditor.d.ts +11 -0
  7. package/cells/EditCells/TreeListDateEditor.d.ts +11 -0
  8. package/{dist/es/cells → cells}/EditCells/TreeListNumericEditor.d.ts +4 -0
  9. package/cells/EditCells/TreeListTextEditor.d.ts +11 -0
  10. package/{dist/npm/cells → cells}/FilterCells/TreeListBooleanFilter.d.ts +4 -0
  11. package/{dist/npm/cells → cells}/FilterCells/TreeListDateFilter.d.ts +4 -0
  12. package/{dist/es/cells → cells}/FilterCells/TreeListNumericFilter.d.ts +4 -0
  13. package/{dist/es/cells → cells}/FilterCells/TreeListTextFilter.d.ts +4 -0
  14. package/{dist/npm/cells → cells}/FilterCells/utils.d.ts +4 -0
  15. package/cells/TreeListCell.d.ts +9 -0
  16. package/cells/TreeListSelectionCell.d.ts +11 -0
  17. package/{dist/es/constants → constants}/index.d.ts +4 -0
  18. package/dist/cdn/js/kendo-react-treelist.js +5 -1
  19. package/header/TreeListHeaderCell.d.ts +7 -0
  20. package/header/TreeListHeaderSelectionCell.d.ts +15 -0
  21. package/index.d.ts +38 -0
  22. package/index.js +5 -0
  23. package/index.mjs +1181 -0
  24. package/interfaces/DataItemWrapper.d.ts +14 -0
  25. package/{dist/npm/interfaces → interfaces}/TreeListCellProps.d.ts +4 -1
  26. package/{dist/es/interfaces → interfaces}/TreeListColumnProps.d.ts +4 -0
  27. package/interfaces/TreeListFilterCellProps.d.ts +10 -0
  28. package/interfaces/TreeListFilterOperator.d.ts +10 -0
  29. package/interfaces/TreeListHeaderCellProps.d.ts +10 -0
  30. package/interfaces/TreeListNoRecordsProps.d.ts +13 -0
  31. package/{dist/es/interfaces → interfaces}/TreeListProps.d.ts +4 -1
  32. package/{dist/es/interfaces → interfaces}/TreeListRowProps.d.ts +4 -1
  33. package/{dist/es/interfaces → interfaces}/TreeListSelectableSettings.d.ts +5 -1
  34. package/interfaces/TreeListSortSettings.d.ts +13 -0
  35. package/interfaces/TreeListToolbarProps.d.ts +13 -0
  36. package/{dist/es/interfaces → interfaces}/events.d.ts +4 -0
  37. package/{dist/npm/messages → messages}/index.d.ts +4 -0
  38. package/package-metadata.d.ts +9 -0
  39. package/package.json +36 -57
  40. package/{dist/es/rows → rows}/TreeListDraggableRow.d.ts +5 -1
  41. package/rows/TreeListRow.d.ts +10 -0
  42. package/{dist/npm/utils → utils}/index.d.ts +4 -0
  43. package/about.md +0 -3
  44. package/debug.log +0 -3
  45. package/dist/es/ScrollMode.d.ts +0 -1
  46. package/dist/es/ScrollMode.js +0 -1
  47. package/dist/es/TreeList.js +0 -632
  48. package/dist/es/TreeListNoRecords.js +0 -37
  49. package/dist/es/TreeListToolbar.d.ts +0 -11
  50. package/dist/es/TreeListToolbar.js +0 -33
  51. package/dist/es/cells/EditCells/TreeListBooleanEditor.d.ts +0 -8
  52. package/dist/es/cells/EditCells/TreeListBooleanEditor.js +0 -41
  53. package/dist/es/cells/EditCells/TreeListDateEditor.d.ts +0 -8
  54. package/dist/es/cells/EditCells/TreeListDateEditor.js +0 -40
  55. package/dist/es/cells/EditCells/TreeListNumericEditor.js +0 -41
  56. package/dist/es/cells/EditCells/TreeListTextEditor.d.ts +0 -8
  57. package/dist/es/cells/EditCells/TreeListTextEditor.js +0 -39
  58. package/dist/es/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -10
  59. package/dist/es/cells/FilterCells/TreeListBooleanFilter.js +0 -30
  60. package/dist/es/cells/FilterCells/TreeListDateFilter.d.ts +0 -10
  61. package/dist/es/cells/FilterCells/TreeListDateFilter.js +0 -30
  62. package/dist/es/cells/FilterCells/TreeListNumericFilter.js +0 -30
  63. package/dist/es/cells/FilterCells/TreeListTextFilter.js +0 -30
  64. package/dist/es/cells/FilterCells/utils.d.ts +0 -38
  65. package/dist/es/cells/FilterCells/utils.js +0 -66
  66. package/dist/es/cells/TreeListCell.d.ts +0 -6
  67. package/dist/es/cells/TreeListCell.js +0 -61
  68. package/dist/es/cells/TreeListSelectionCell.d.ts +0 -8
  69. package/dist/es/cells/TreeListSelectionCell.js +0 -31
  70. package/dist/es/constants/index.js +0 -7
  71. package/dist/es/header/TreeListHeaderCell.d.ts +0 -3
  72. package/dist/es/header/TreeListHeaderCell.js +0 -14
  73. package/dist/es/header/TreeListHeaderSelectionCell.d.ts +0 -11
  74. package/dist/es/header/TreeListHeaderSelectionCell.js +0 -45
  75. package/dist/es/interfaces/DataItemWrapper.d.ts +0 -10
  76. package/dist/es/interfaces/DataItemWrapper.js +0 -1
  77. package/dist/es/interfaces/TreeListCellProps.d.ts +0 -42
  78. package/dist/es/interfaces/TreeListCellProps.js +0 -1
  79. package/dist/es/interfaces/TreeListColumnProps.js +0 -1
  80. package/dist/es/interfaces/TreeListFilterCellProps.d.ts +0 -6
  81. package/dist/es/interfaces/TreeListFilterCellProps.js +0 -1
  82. package/dist/es/interfaces/TreeListFilterOperator.d.ts +0 -6
  83. package/dist/es/interfaces/TreeListFilterOperator.js +0 -1
  84. package/dist/es/interfaces/TreeListHeaderCellProps.d.ts +0 -6
  85. package/dist/es/interfaces/TreeListHeaderCellProps.js +0 -1
  86. package/dist/es/interfaces/TreeListNoRecordsProps.d.ts +0 -10
  87. package/dist/es/interfaces/TreeListNoRecordsProps.js +0 -1
  88. package/dist/es/interfaces/TreeListProps.js +0 -1
  89. package/dist/es/interfaces/TreeListRowProps.js +0 -1
  90. package/dist/es/interfaces/TreeListSelectableSettings.js +0 -2
  91. package/dist/es/interfaces/TreeListSortSettings.d.ts +0 -9
  92. package/dist/es/interfaces/TreeListSortSettings.js +0 -1
  93. package/dist/es/interfaces/TreeListToolbarProps.d.ts +0 -10
  94. package/dist/es/interfaces/TreeListToolbarProps.js +0 -1
  95. package/dist/es/interfaces/events.js +0 -1
  96. package/dist/es/main.d.ts +0 -34
  97. package/dist/es/main.js +0 -23
  98. package/dist/es/messages/index.d.ts +0 -120
  99. package/dist/es/messages/index.js +0 -121
  100. package/dist/es/package-metadata.d.ts +0 -5
  101. package/dist/es/package-metadata.js +0 -11
  102. package/dist/es/rows/TreeListDraggableRow.js +0 -171
  103. package/dist/es/rows/TreeListRow.d.ts +0 -6
  104. package/dist/es/rows/TreeListRow.js +0 -31
  105. package/dist/es/utils/index.d.ts +0 -17
  106. package/dist/es/utils/index.js +0 -68
  107. package/dist/npm/ScrollMode.d.ts +0 -1
  108. package/dist/npm/ScrollMode.js +0 -2
  109. package/dist/npm/TreeList.d.ts +0 -133
  110. package/dist/npm/TreeList.js +0 -635
  111. package/dist/npm/TreeListNoRecords.d.ts +0 -12
  112. package/dist/npm/TreeListNoRecords.js +0 -40
  113. package/dist/npm/TreeListToolbar.d.ts +0 -11
  114. package/dist/npm/TreeListToolbar.js +0 -36
  115. package/dist/npm/cells/EditCells/TreeListBooleanEditor.d.ts +0 -8
  116. package/dist/npm/cells/EditCells/TreeListBooleanEditor.js +0 -45
  117. package/dist/npm/cells/EditCells/TreeListDateEditor.d.ts +0 -8
  118. package/dist/npm/cells/EditCells/TreeListDateEditor.js +0 -44
  119. package/dist/npm/cells/EditCells/TreeListNumericEditor.d.ts +0 -8
  120. package/dist/npm/cells/EditCells/TreeListNumericEditor.js +0 -45
  121. package/dist/npm/cells/EditCells/TreeListTextEditor.d.ts +0 -8
  122. package/dist/npm/cells/EditCells/TreeListTextEditor.js +0 -43
  123. package/dist/npm/cells/FilterCells/TreeListBooleanFilter.js +0 -34
  124. package/dist/npm/cells/FilterCells/TreeListDateFilter.js +0 -34
  125. package/dist/npm/cells/FilterCells/TreeListNumericFilter.d.ts +0 -10
  126. package/dist/npm/cells/FilterCells/TreeListNumericFilter.js +0 -34
  127. package/dist/npm/cells/FilterCells/TreeListTextFilter.d.ts +0 -10
  128. package/dist/npm/cells/FilterCells/TreeListTextFilter.js +0 -34
  129. package/dist/npm/cells/FilterCells/utils.js +0 -70
  130. package/dist/npm/cells/TreeListCell.d.ts +0 -6
  131. package/dist/npm/cells/TreeListCell.js +0 -65
  132. package/dist/npm/cells/TreeListSelectionCell.d.ts +0 -8
  133. package/dist/npm/cells/TreeListSelectionCell.js +0 -35
  134. package/dist/npm/constants/index.d.ts +0 -6
  135. package/dist/npm/constants/index.js +0 -10
  136. package/dist/npm/header/TreeListHeaderCell.d.ts +0 -3
  137. package/dist/npm/header/TreeListHeaderCell.js +0 -18
  138. package/dist/npm/header/TreeListHeaderSelectionCell.d.ts +0 -11
  139. package/dist/npm/header/TreeListHeaderSelectionCell.js +0 -48
  140. package/dist/npm/interfaces/DataItemWrapper.d.ts +0 -10
  141. package/dist/npm/interfaces/DataItemWrapper.js +0 -2
  142. package/dist/npm/interfaces/TreeListCellProps.js +0 -2
  143. package/dist/npm/interfaces/TreeListColumnProps.d.ts +0 -41
  144. package/dist/npm/interfaces/TreeListColumnProps.js +0 -2
  145. package/dist/npm/interfaces/TreeListFilterCellProps.d.ts +0 -6
  146. package/dist/npm/interfaces/TreeListFilterCellProps.js +0 -2
  147. package/dist/npm/interfaces/TreeListFilterOperator.d.ts +0 -6
  148. package/dist/npm/interfaces/TreeListFilterOperator.js +0 -2
  149. package/dist/npm/interfaces/TreeListHeaderCellProps.d.ts +0 -6
  150. package/dist/npm/interfaces/TreeListHeaderCellProps.js +0 -2
  151. package/dist/npm/interfaces/TreeListNoRecordsProps.d.ts +0 -10
  152. package/dist/npm/interfaces/TreeListNoRecordsProps.js +0 -2
  153. package/dist/npm/interfaces/TreeListProps.d.ts +0 -234
  154. package/dist/npm/interfaces/TreeListProps.js +0 -2
  155. package/dist/npm/interfaces/TreeListRowProps.d.ts +0 -93
  156. package/dist/npm/interfaces/TreeListRowProps.js +0 -2
  157. package/dist/npm/interfaces/TreeListSelectableSettings.d.ts +0 -18
  158. package/dist/npm/interfaces/TreeListSelectableSettings.js +0 -3
  159. package/dist/npm/interfaces/TreeListSortSettings.d.ts +0 -9
  160. package/dist/npm/interfaces/TreeListSortSettings.js +0 -2
  161. package/dist/npm/interfaces/TreeListToolbarProps.d.ts +0 -10
  162. package/dist/npm/interfaces/TreeListToolbarProps.js +0 -2
  163. package/dist/npm/interfaces/events.d.ts +0 -265
  164. package/dist/npm/interfaces/events.js +0 -2
  165. package/dist/npm/main.d.ts +0 -34
  166. package/dist/npm/main.js +0 -63
  167. package/dist/npm/messages/index.js +0 -124
  168. package/dist/npm/package-metadata.d.ts +0 -5
  169. package/dist/npm/package-metadata.js +0 -14
  170. package/dist/npm/rows/TreeListDraggableRow.d.ts +0 -32
  171. package/dist/npm/rows/TreeListDraggableRow.js +0 -174
  172. package/dist/npm/rows/TreeListRow.d.ts +0 -6
  173. package/dist/npm/rows/TreeListRow.js +0 -34
  174. package/dist/npm/utils/index.js +0 -74
  175. package/dist/systemjs/kendo-react-treelist.js +0 -1
  176. package/e2e-next/basic.tests.ts +0 -24
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.TreeListSelectionCell = void 0;
15
- var React = require("react");
16
- var kendo_react_common_1 = require("@progress/kendo-react-common");
17
- var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
18
- var TreeListSelectionCell = function (props) {
19
- var handleOnChange = React.useCallback(function (syntheticEvent) {
20
- if (props.selectionChange) {
21
- props.selectionChange({ syntheticEvent: syntheticEvent });
22
- }
23
- }, [props.selectionChange]);
24
- var inputId = React.useMemo(function () { return (0, kendo_react_common_1.guid)(); }, []);
25
- var selectedValue = (0, kendo_react_common_1.getNestedValue)(props.field, props.dataItem);
26
- var navigationAttributes = (0, kendo_react_data_tools_1.useTableKeyboardNavigation)(props.id);
27
- var defaultRendering = (React.createElement("td", __assign({ style: props.style, className: (0, kendo_react_common_1.classNames)('k-table-td', props.className), "aria-colindex": props.ariaColumnIndex, role: 'gridcell' }, navigationAttributes),
28
- React.createElement("input", { checked: typeof selectedValue === 'boolean' && selectedValue, id: inputId, type: "checkbox", className: "k-checkbox k-checkbox-md k-rounded-md", onChange: handleOnChange }),
29
- React.createElement("label", { className: "k-checkbox-label", htmlFor: inputId })));
30
- return props.render ?
31
- props.render.call(undefined, defaultRendering, props) :
32
- defaultRendering;
33
- };
34
- exports.TreeListSelectionCell = TreeListSelectionCell;
35
- exports.TreeListSelectionCell.displayName = 'KendoReactTreeListSelectionCell';
@@ -1,6 +0,0 @@
1
- /** The attribute required by the TreeList selection on TreeList `tr` elements. */
2
- export declare const TREELIST_ROW_INDEX_ATTRIBUTE = "data-grid-row-index";
3
- /** The attribute required by the TreeList selection on TreeList `td` elements. */
4
- export declare const TREELIST_COL_INDEX_ATTRIBUTE = "data-grid-col-index";
5
- /** Attribute which disable selection start from this element. */
6
- export declare const TREELIST_PREVENT_SELECTION_ELEMENT = "data-prevent-selection";
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TREELIST_PREVENT_SELECTION_ELEMENT = exports.TREELIST_COL_INDEX_ATTRIBUTE = exports.TREELIST_ROW_INDEX_ATTRIBUTE = void 0;
4
- var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
5
- /** The attribute required by the TreeList selection on TreeList `tr` elements. */
6
- exports.TREELIST_ROW_INDEX_ATTRIBUTE = kendo_react_data_tools_1.TABLE_ROW_INDEX_ATTRIBUTE;
7
- /** The attribute required by the TreeList selection on TreeList `td` elements. */
8
- exports.TREELIST_COL_INDEX_ATTRIBUTE = kendo_react_data_tools_1.TABLE_COL_INDEX_ATTRIBUTE;
9
- /** Attribute which disable selection start from this element. */
10
- exports.TREELIST_PREVENT_SELECTION_ELEMENT = kendo_react_data_tools_1.TABLE_PREVENT_SELECTION_ELEMENT;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- import { TreeListHeaderCellProps } from '../interfaces/TreeListHeaderCellProps';
3
- export declare const TreeListHeaderCell: React.FunctionComponent<TreeListHeaderCellProps>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.TreeListHeaderCell = void 0;
15
- var React = require("react");
16
- var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
17
- var TreeListHeaderCell = function (props) { return React.createElement(kendo_react_data_tools_1.HeaderCell, __assign({}, props)); };
18
- exports.TreeListHeaderCell = TreeListHeaderCell;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { HeaderCellProps } from '@progress/kendo-react-data-tools';
3
- export interface TreeListHeaderSelectionCellProps extends HeaderCellProps {
4
- }
5
- export declare class TreeListHeaderSelectionCell extends React.Component<TreeListHeaderSelectionCellProps> {
6
- private _inputId;
7
- /**
8
- * @hidden
9
- */
10
- render(): JSX.Element;
11
- }
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.TreeListHeaderSelectionCell = void 0;
30
- var React = require("react");
31
- var kendo_react_common_1 = require("@progress/kendo-react-common");
32
- var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
33
- var TreeListHeaderSelectionCell = /** @class */ (function (_super) {
34
- __extends(TreeListHeaderSelectionCell, _super);
35
- function TreeListHeaderSelectionCell() {
36
- var _this = _super !== null && _super.apply(this, arguments) || this;
37
- _this._inputId = (0, kendo_react_common_1.guid)();
38
- return _this;
39
- }
40
- /**
41
- * @hidden
42
- */
43
- TreeListHeaderSelectionCell.prototype.render = function () {
44
- return React.createElement(kendo_react_data_tools_1.HeaderSelectionCell, __assign({ inputId: this._inputId }, this.props));
45
- };
46
- return TreeListHeaderSelectionCell;
47
- }(React.Component));
48
- exports.TreeListHeaderSelectionCell = TreeListHeaderSelectionCell;
@@ -1,10 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export interface DataItemWrapper {
5
- dataItem: any;
6
- level: number[];
7
- height: number;
8
- offsetTop: number;
9
- levelCount: number;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,41 +0,0 @@
1
- import { ComponentType } from 'react';
2
- import { TreeColumnBaseProps } from '@progress/kendo-react-data-tools';
3
- import { TreeListCellProps } from './TreeListCellProps';
4
- import { TreeListHeaderCellProps } from './TreeListHeaderCellProps';
5
- import { TreeListFilterCellProps } from './TreeListFilterCellProps';
6
- /**
7
- * The props of the columns of the TreeList component.
8
- */
9
- export interface TreeListColumnProps extends Omit<TreeColumnBaseProps, 'children' | 'cell' | 'editCell'> {
10
- /**
11
- * Defines the component that will be rendered as a cell. If not set, a `TreeListCell` will be rendered by default.
12
- */
13
- cell?: ComponentType<TreeListCellProps>;
14
- /**
15
- * Defines the component that will be rendered as an edit cell.
16
- */
17
- editCell?: ComponentType<TreeListCellProps>;
18
- /**
19
- * Defines the component that will be rendered as a header cell.
20
- * If not set, a `TreeListHeaderCell` will be rendered by default.
21
- */
22
- headerCell?: ComponentType<TreeListHeaderCellProps>;
23
- /**
24
- * **Deprecated**. Use `filterCell` prop instead.
25
- */
26
- filter?: ComponentType<TreeListFilterCellProps>;
27
- /**
28
- * Defines the component that will be rendered as a filter cell.
29
- */
30
- filterCell?: ComponentType<TreeListFilterCellProps>;
31
- /**
32
- * A collection of child columns.
33
- */
34
- children?: TreeListColumnProps[];
35
- /**
36
- * Defines if the column is locked (frozen or sticky).
37
- * Locked columns are the columns that are visible at all times while the user scrolls the component horizontally.
38
- * Defaults to `false`.
39
- */
40
- locked?: boolean;
41
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { FilterCellProps } from '@progress/kendo-react-data-tools';
2
- /**
3
- * @hidden
4
- */
5
- export interface TreeListFilterCellProps extends FilterCellProps {
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { FilterOperator } from '@progress/kendo-react-data-tools';
2
- /**
3
- * The filter operator for the TreeList filters.
4
- */
5
- export interface TreeListFilterOperator extends FilterOperator {
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { HeaderCellProps } from '@progress/kendo-react-data-tools';
2
- /**
3
- * The props of the TreeListHeaderCell component.
4
- */
5
- export interface TreeListHeaderCellProps extends HeaderCellProps {
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * The props of the TreeListNoRecords component.
4
- */
5
- export interface TreeListNoRecordsProps {
6
- /**
7
- * The React elements which will be rendered inside the TreeList when no records are available.
8
- */
9
- children?: React.ReactNode;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,234 +0,0 @@
1
- /// <reference types="react" />
2
- import { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
3
- import { TreeListSortChangeEvent, TreeListFilterChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListItemChangeEvent, TreeListDataStateChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListColumnMenuFilterChangeEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListKeyDownEvent } from './events';
4
- import { ScrollMode } from '../ScrollMode';
5
- import { TreeListCellProps } from './TreeListCellProps';
6
- import { SortSettings as TreeListSortSettings, FilterRowProps } from '@progress/kendo-react-data-tools';
7
- import { TreeListRowProps } from './TreeListRowProps';
8
- import { TreeListHeaderCellProps } from './TreeListHeaderCellProps';
9
- import { TreeListColumnProps } from './TreeListColumnProps';
10
- import { TreeListToolbarProps } from './TreeListToolbarProps';
11
- import { TreeListNoRecordsProps } from './TreeListNoRecordsProps';
12
- import { TreeListSelectableSettings } from './TreeListSelectableSettings';
13
- /**
14
- * Represents the props of the [KendoReact TreeList component]({% slug getstarted_treelist %}).
15
- */
16
- export interface TreeListProps {
17
- /**
18
- * Sets the TreeList row key prop to the value of this field in the dataItem.
19
- * If not set, the dataItem index will be used for the row key, which might lead to row not updated during paging or scrolling.
20
- */
21
- dataItemKey?: string;
22
- /**
23
- * Sets custom CSS classes to the TreeList DOM element.
24
- */
25
- className?: string;
26
- /**
27
- * A collection of `TreeListColumnProps` for creating columns.
28
- */
29
- columns?: TreeListColumnProps[];
30
- /**
31
- * Enables the virtualization of the columns
32
- * ([see example]({% slug virtual_columns_treelist %})).
33
- * If enabled, the columns outside the viewport are not rendered.
34
- */
35
- columnVirtualization?: boolean;
36
- /**
37
- * Sets the data of the TreeList.
38
- */
39
- data?: any[];
40
- /**
41
- * Enables sorting ([see example]({% slug sorting_treelist %})).
42
- */
43
- sortable?: TreeListSortSettings;
44
- /**
45
- * Fires when the sorting of the TreeList is changed ([see example]({% slug sorting_treelist %})).
46
- * You have to handle the event yourself and sort the data.
47
- */
48
- onSortChange?: (event: TreeListSortChangeEvent) => void;
49
- /**
50
- * The descriptors by which the data is sorted. Applies the sorting styles and buttons to the affected columns.
51
- */
52
- sort?: SortDescriptor[];
53
- /**
54
- * If set, it will be rendered instead of the default `FilterRow` TreeList component.
55
- */
56
- filterRow?: React.ComponentType<FilterRowProps>;
57
- /**
58
- * If set and when the data item is in edit mode, the `editRow` value will be rendered.
59
- */
60
- editRow?: React.ComponentType<TreeListRowProps>;
61
- /**
62
- * Represents the TreeList toolbar component.
63
- */
64
- toolbar?: React.ReactElement<TreeListToolbarProps>;
65
- /**
66
- * Represents the component that will be rendered when the `data` property of the TreeList is empty or undefined.
67
- */
68
- noRecords?: React.ReactElement<TreeListNoRecordsProps>;
69
- /**
70
- * The descriptors by which the data is filtered ([more information and examples]({% slug filtering_treelist %})).
71
- * This affects the values and buttons in the `FilterRow` of the TreeList.
72
- */
73
- filter?: FilterDescriptor[];
74
- /**
75
- * Fires when the TreeList filter is modified through the UI
76
- * ([more information and examples]({% slug filtering_treelist %})).
77
- * You have to handle the event yourself and filter the data.
78
- */
79
- onFilterChange?: (event: TreeListFilterChangeEvent) => void;
80
- /**
81
- * Fires when the user clicks on the expand or collapse icon of a row.
82
- */
83
- onExpandChange?: (event: TreeListExpandChangeEvent) => void;
84
- /**
85
- * Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
86
- */
87
- expandField?: string;
88
- /**
89
- * Specifies the name of the field which will provide an array representation of the item subitems.
90
- */
91
- subItemsField?: string;
92
- /**
93
- * The TreeList selectable settings.
94
- */
95
- selectable?: TreeListSelectableSettings;
96
- /**
97
- * Specifies the name of the field which will provide a Boolean representation of the selected state of the item
98
- * ([see example]({% slug selection_treelist %})).
99
- */
100
- selectedField?: string;
101
- /**
102
- * Fires when the user tries to select or deselect a row or cell.
103
- * ([more information and example]({% slug selection_treelist %})).
104
- */
105
- onSelectionChange?: (event: TreeListSelectionChangeEvent) => void;
106
- /**
107
- * Fires when the user press keyboard key.
108
- */
109
- onKeyDown?: (event: TreeListKeyDownEvent) => void;
110
- /**
111
- * Fires when the user clicks the checkbox of a column header whose `field` matches `selectedField`
112
- * ([more information and example]({% slug selection_treelist %})).
113
- */
114
- onHeaderSelectionChange?: (event: TreeListHeaderSelectionChangeEvent) => void;
115
- /**
116
- * Fires when the user changes the values of the item.
117
- * The event is not debounced and fires on every `onChange` event of the input in the current `EditCell`
118
- * ([more information and examples]({% slug editing_inline_treelist %})).
119
- */
120
- onItemChange?: (event: TreeListItemChangeEvent) => void;
121
- /**
122
- * Fires when the user clicks a row.
123
- */
124
- onRowClick?: (event: TreeListRowClickEvent) => void;
125
- /**
126
- * Fires when the user double clicks a row.
127
- */
128
- onRowDoubleClick?: (event: TreeListRowDoubleClickEvent) => void;
129
- /**
130
- * Fires when the user trigger the context menu of row.
131
- */
132
- onRowContextMenu?: (event: TreeListRowContextMenuEvent) => void;
133
- /**
134
- * Specifies the name of the field which will provide a Boolean representation of the edit state of the current item
135
- * ([more information and examples]({% slug editing_inline_treelist %})).
136
- */
137
- editField?: string;
138
- /**
139
- * Defines the scroll mode of the TreeList.
140
- *
141
- * The available options are:
142
- * - `none`&mdash;Renders no scrollbar.
143
- * - `scrollable`&mdash;Represents the default scroll mode of the TreeList.
144
- * Requires you to set the `overflow` and `height` (for vertical scrolling),
145
- * or `width` (for horizontal scrolling) styles.
146
- * - `virtual`&mdash;Enables the vertical virtual scrolling of the TreeList.
147
- * Requires you to set the `overflow` and `height` styles and `rowHeight` prop of the TreeList.
148
- */
149
- scrollable?: ScrollMode;
150
- /**
151
- * If set to `true`, the user can resize columns by dragging the edges (resize handles) of their header cells.
152
- */
153
- resizable?: boolean;
154
- /**
155
- * If set to `true`, the user can reorder columns by dragging their header cells.
156
- */
157
- reorderable?: boolean;
158
- /**
159
- * If set to `true`, the user can drag and drop rows.
160
- */
161
- rowDraggable?: boolean;
162
- /**
163
- * Defines the row height and implements equal heights for all rows.
164
- */
165
- rowHeight?: number;
166
- /**
167
- * Represents the `style` HTML attribute.
168
- */
169
- style?: React.CSSProperties;
170
- /**
171
- * A props object that will be passed to the underlying HTML table.
172
- */
173
- tableProps?: React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
174
- columnMenu?: React.ComponentType<any>;
175
- columnMenuFilter?: CompositeFilterDescriptor[];
176
- onColumnMenuFilterChange?: (event: TreeListColumnMenuFilterChangeEvent) => void;
177
- /**
178
- * The pager component that the TreeList will render.
179
- */
180
- pager?: React.ComponentType<any>;
181
- /**
182
- * The number of records that will be skipped.
183
- */
184
- skip?: number;
185
- /**
186
- * The number of records that will be taken.
187
- */
188
- take?: number;
189
- /**
190
- * The TreeList row component.
191
- */
192
- row?: React.ComponentType<TreeListRowProps>;
193
- /**
194
- * If set to `true`, the user can use dedicated shortcuts to interact with the TreeList.
195
- * By default, navigation is disabled and the TreeList content is accessible in the normal tab sequence.
196
- */
197
- navigatable?: boolean;
198
- /**
199
- * Fires when the page of the TreeList is changed.
200
- */
201
- onPageChange?: (event: TreeListPageChangeEvent) => void;
202
- /**
203
- * Fires when the data state of the TreeList is changed.
204
- */
205
- onDataStateChange?: (event: TreeListDataStateChangeEvent) => void;
206
- /**
207
- * Fires when a column is resized.
208
- */
209
- onColumnResize?: (event: TreeListColumnResizeEvent) => void;
210
- /**
211
- * Fires when the columns are reordered.
212
- */
213
- onColumnReorder?: (event: TreeListColumnReorderEvent) => void;
214
- /**
215
- * Fires when a row is dragged.
216
- */
217
- onRowDrag?: (event: TreeListRowDragEvent) => void;
218
- /**
219
- * Fires when a row is dragged and dropped.
220
- */
221
- onRowDrop?: (event: TreeListRowDragEvent) => void;
222
- /**
223
- * Fires when a row is about to be rendered. Useful for overriding the default rendering of the row.
224
- */
225
- rowRender?: (row: React.ReactElement<HTMLTableRowElement>, props: TreeListRowProps) => React.ReactNode;
226
- /**
227
- * Fires when a cell is about to be rendered. Useful for overriding the default rendering of the cell.
228
- */
229
- cellRender?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: TreeListCellProps) => React.ReactElement<HTMLTableCellElement> | null;
230
- /**
231
- * Fires when a header cell is about to be rendered. Useful for overriding the default rendering of the header cell.
232
- */
233
- headerCellRender?: (defaultRendering: React.ReactNode | null, props: TreeListHeaderCellProps) => React.ReactNode;
234
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,93 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * The props that the TreeList passes to the TreeListRow component when creating it.
4
- * Accessible during the `rowRender` callback of the TreeList.
5
- */
6
- export interface TreeListRowProps {
7
- /**
8
- * The `data` object that represents the current row.
9
- */
10
- dataItem: any;
11
- /**
12
- * The event that is fired when the row is clicked.
13
- */
14
- onClick?: any;
15
- /**
16
- * The event that is fired when the row is double clicked.
17
- */
18
- onDoubleClick?: any;
19
- /**
20
- * The event that is fired when the row context menu is triggered.
21
- */
22
- onContextMenu?: any;
23
- /**
24
- * The name of the field which will provide a Boolean representation of the selected state of the item.
25
- */
26
- selectedField?: string;
27
- /**
28
- * Sets the height of the row.
29
- */
30
- rowHeight?: number;
31
- /**
32
- * A function for overriding the default rendering of the row.
33
- */
34
- render?: (row: React.ReactElement<HTMLTableRowElement>, props: TreeListRowProps) => React.ReactNode;
35
- /**
36
- * An array of indexes of each parent and current item in the data tree.
37
- */
38
- level: number[];
39
- /**
40
- * Fires when a row is dragged.
41
- */
42
- onDrag?: (event: {
43
- nativeEvent: any;
44
- dragged: number[];
45
- draggedOver: number[] | null;
46
- draggedItem: any;
47
- }) => void;
48
- /**
49
- * Fires when a row is dragged and dropped.
50
- */
51
- onDrop?: (event: {
52
- nativeEvent: any;
53
- dragged: number[];
54
- draggedOver: number[] | null;
55
- draggedItem: any;
56
- }) => void;
57
- /**
58
- * The expanded state of the row. Useful for applying `aria-expanded` accessibility attribute.
59
- */
60
- expanded: boolean;
61
- /**
62
- * The index of the row. Useful for applying `aria-rowindex` accessibility attribute.
63
- */
64
- rowIndex: number;
65
- /**
66
- * @hidden
67
- */
68
- children: React.ReactNode;
69
- /**
70
- * @hidden
71
- */
72
- levels: number[][];
73
- /**
74
- * @hidden
75
- */
76
- isAltRow?: boolean;
77
- /**
78
- * The index to be applied to the `aria-rowindex` attribute.
79
- */
80
- ariaRowIndex?: number;
81
- /**
82
- * The count of items on current level, applied to the `aria-setsize` attribute.
83
- */
84
- ariaSetSize?: number;
85
- /**
86
- * The index of the item on current level, applied to the `aria-posinset` attribute.
87
- */
88
- ariaPosInSet?: number;
89
- /**
90
- * Indicates if the row is selected.
91
- */
92
- isSelected: boolean;
93
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- import { TableSelectableMode, TableSelectableSettings } from '@progress/kendo-react-data-tools';
2
- /**
3
- * Represents the available selection modes.
4
- */
5
- export declare type TreeListSelectableMode = TableSelectableMode;
6
- /**
7
- * Represents the TreeList selectable settings.
8
- */
9
- export interface TreeListSelectableSettings extends TableSelectableSettings {
10
- /**
11
- * The available values are:
12
- * * `single`
13
- * * `multiple`
14
- *
15
- * @default "multiple"
16
- */
17
- mode?: TreeListSelectableMode;
18
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- ;
@@ -1,9 +0,0 @@
1
- import { ColumnSortSettings, SortSettings } from '@progress/kendo-react-data-tools';
2
- /**
3
- * The settings for sorting the TreeList columns.
4
- */
5
- export declare type TreeListColumnSortSettings = ColumnSortSettings;
6
- /**
7
- * The settings for sorting the TreeList data.
8
- */
9
- export declare type TreeListSortSettings = SortSettings;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * The props of the TreeListToolbar component.
4
- */
5
- export interface TreeListToolbarProps {
6
- /**
7
- * The React elements that will be rendered inside the toolbar of the TreeList.
8
- */
9
- children?: React.ReactNode;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });