@progress/kendo-react-treeview 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059

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 (44) hide show
  1. package/dist/cdn/js/kendo-react-treeview.js +1 -1
  2. package/dist/es/ItemRenderProps.js +1 -0
  3. package/dist/es/TreeView.d.ts +5 -5
  4. package/dist/es/TreeView.js +9 -7
  5. package/dist/es/TreeViewDragAnalyzer.d.ts +3 -3
  6. package/dist/es/TreeViewDragAnalyzer.js +3 -3
  7. package/dist/es/TreeViewDragClue.d.ts +1 -1
  8. package/dist/es/TreeViewDragClue.js +5 -3
  9. package/dist/es/TreeViewItem.d.ts +7 -7
  10. package/dist/es/TreeViewItem.js +11 -9
  11. package/dist/es/TreeViewOperationDescriptors.js +1 -0
  12. package/dist/es/TreeViewProps.js +1 -0
  13. package/dist/es/events.d.ts +1 -1
  14. package/dist/es/events.js +1 -0
  15. package/dist/es/main.d.ts +5 -5
  16. package/dist/es/main.js +5 -5
  17. package/dist/es/moveTreeViewItem.d.ts +1 -1
  18. package/dist/es/moveTreeViewItem.js +1 -1
  19. package/dist/es/package-metadata.js +1 -1
  20. package/dist/es/processTreeViewItems.d.ts +1 -1
  21. package/dist/es/processTreeViewItems.js +1 -1
  22. package/dist/npm/TreeView.d.ts +5 -5
  23. package/dist/npm/TreeView.js +10 -7
  24. package/dist/npm/TreeViewDragAnalyzer.d.ts +3 -3
  25. package/dist/npm/TreeViewDragAnalyzer.js +4 -3
  26. package/dist/npm/TreeViewDragClue.d.ts +1 -1
  27. package/dist/npm/TreeViewDragClue.js +6 -3
  28. package/dist/npm/TreeViewItem.d.ts +7 -7
  29. package/dist/npm/TreeViewItem.js +12 -9
  30. package/dist/npm/events.d.ts +1 -1
  31. package/dist/npm/handleTreeViewCheckChange.js +1 -0
  32. package/dist/npm/main.d.ts +5 -5
  33. package/dist/npm/main.js +8 -7
  34. package/dist/npm/moveTreeViewItem.d.ts +1 -1
  35. package/dist/npm/moveTreeViewItem.js +2 -1
  36. package/dist/npm/package-metadata.js +2 -1
  37. package/dist/npm/processTreeViewItems.d.ts +1 -1
  38. package/dist/npm/processTreeViewItems.js +2 -1
  39. package/dist/npm/utils/consts.js +1 -0
  40. package/dist/npm/utils/itemIdUtils.js +1 -0
  41. package/dist/npm/utils/itemUtils.js +1 -0
  42. package/dist/npm/utils/misc.js +1 -0
  43. package/dist/systemjs/kendo-react-treeview.js +1 -1
  44. package/package.json +5 -5
@@ -127,7 +127,7 @@ var TreeViewDragAnalyzer = /** @class */ (function () {
127
127
  return false;
128
128
  }
129
129
  },
130
- enumerable: true,
130
+ enumerable: false,
131
131
  configurable: true
132
132
  });
133
133
  Object.defineProperty(TreeViewDragAnalyzer.prototype, "destinationMeta", {
@@ -139,7 +139,7 @@ var TreeViewDragAnalyzer = /** @class */ (function () {
139
139
  get: function () {
140
140
  return { itemHierarchicalIndex: this.destItemId, treeViewGuid: this.destTreeViewGuid };
141
141
  },
142
- enumerable: true,
142
+ enumerable: false,
143
143
  configurable: true
144
144
  });
145
145
  /**
@@ -181,4 +181,4 @@ var TreeViewDragAnalyzer = /** @class */ (function () {
181
181
  };
182
182
  return TreeViewDragAnalyzer;
183
183
  }());
184
- export default TreeViewDragAnalyzer;
184
+ export { TreeViewDragAnalyzer };
@@ -108,7 +108,7 @@ export interface TreeViewDragClueState {
108
108
  * ReactDOM.render(<App />, document.querySelector('my-app'));
109
109
  * ```
110
110
  */
111
- export default class TreeViewDragClue extends React.PureComponent<TreeViewDragClueProps, TreeViewDragClueState> {
111
+ export declare class TreeViewDragClue extends React.PureComponent<TreeViewDragClueProps, TreeViewDragClueState> {
112
112
  /**
113
113
  * @hidden
114
114
  */
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -134,7 +136,7 @@ var TreeViewDragClue = /** @class */ (function (_super) {
134
136
  */
135
137
  TreeViewDragClue.prototype.render = function () {
136
138
  var dynamicStyle = { top: this.state.top + 'px', left: this.state.left + 'px' };
137
- return this.state.visible && (React.createElement("div", { className: "k-header k-drag-clue", style: __assign({}, this.props.style, dynamicStyle) },
139
+ return this.state.visible && (React.createElement("div", { className: "k-header k-drag-clue", style: __assign(__assign({}, this.props.style), dynamicStyle) },
138
140
  React.createElement("span", { className: classNames('k-icon k-drag-status k-icon-with-modifier', this.state.operationClassName) },
139
141
  React.createElement("span", { className: "k-icon k-icon-modifier" })),
140
142
  this.state.text));
@@ -162,4 +164,4 @@ var TreeViewDragClue = /** @class */ (function (_super) {
162
164
  TreeViewDragClue.defaultProps = { style: { display: 'block', position: 'absolute', zIndex: 20000, padding: '4px 6px' } };
163
165
  return TreeViewDragClue;
164
166
  }(React.PureComponent));
165
- export default TreeViewDragClue;
167
+ export { TreeViewDragClue };
@@ -61,13 +61,13 @@ declare class TreeViewItemWithoutContext extends React.Component<TreeViewItemPro
61
61
  private onPress;
62
62
  private onDrag;
63
63
  private onRelease;
64
- private readonly fieldsSvc;
65
- private readonly itemId;
66
- private readonly item;
67
- private readonly tabIndex;
68
- private readonly ariaExpanded;
69
- private readonly ariaChecked;
70
- private readonly ariaSelected;
64
+ private get fieldsSvc();
65
+ private get itemId();
66
+ private get item();
67
+ private get tabIndex();
68
+ private get ariaExpanded();
69
+ private get ariaChecked();
70
+ private get ariaSelected();
71
71
  private getIconClassName;
72
72
  private getRootClassName;
73
73
  private getContentClassName;
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -105,8 +107,8 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
105
107
  }
106
108
  };
107
109
  TreeViewItemWithoutContext.prototype.renderCheckbox = function () {
108
- var _this = this;
109
110
  var _a;
111
+ var _this = this;
110
112
  if (this.props.checkboxes) {
111
113
  var size = this.props.size;
112
114
  return (React.createElement("div", { className: "k-checkbox-wrap" },
@@ -145,28 +147,28 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
145
147
  get: function () {
146
148
  return this.props.fieldsService;
147
149
  },
148
- enumerable: true,
150
+ enumerable: false,
149
151
  configurable: true
150
152
  });
151
153
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "itemId", {
152
154
  get: function () {
153
155
  return this.props.itemId;
154
156
  },
155
- enumerable: true,
157
+ enumerable: false,
156
158
  configurable: true
157
159
  });
158
160
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "item", {
159
161
  get: function () {
160
162
  return this.props.item;
161
163
  },
162
- enumerable: true,
164
+ enumerable: false,
163
165
  configurable: true
164
166
  });
165
167
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "tabIndex", {
166
168
  get: function () {
167
169
  return (this.props.focusedItemId || this.props.tabbableItemId) === this.itemId ? 0 : -1;
168
170
  },
169
- enumerable: true,
171
+ enumerable: false,
170
172
  configurable: true
171
173
  });
172
174
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "ariaExpanded", {
@@ -174,7 +176,7 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
174
176
  return this.fieldsSvc.hasChildren(this.item) || hasChildren(this.item, this.fieldsSvc.getChildrenField()) ?
175
177
  Boolean(this.fieldsSvc.expanded(this.item)) : undefined;
176
178
  },
177
- enumerable: true,
179
+ enumerable: false,
178
180
  configurable: true
179
181
  });
180
182
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "ariaChecked", {
@@ -191,7 +193,7 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
191
193
  return undefined;
192
194
  }
193
195
  },
194
- enumerable: true,
196
+ enumerable: false,
195
197
  configurable: true
196
198
  });
197
199
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "ariaSelected", {
@@ -206,7 +208,7 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
206
208
  return undefined;
207
209
  }
208
210
  },
209
- enumerable: true,
211
+ enumerable: false,
210
212
  configurable: true
211
213
  });
212
214
  TreeViewItemWithoutContext.prototype.getIconClassName = function () {
@@ -1 +1,2 @@
1
1
  /* eslint-disable max-len */
2
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { BaseEvent } from '@progress/kendo-react-common';
2
- import TreeView from './TreeView';
2
+ import { TreeView } from './TreeView';
3
3
  /**
4
4
  * Represents the object of the `onExpandChange` event ([see example]({% slug overview_treeview %}#toc-basic-usage)).
5
5
  */
package/dist/es/events.js CHANGED
@@ -0,0 +1 @@
1
+ export {};
package/dist/es/main.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import TreeView from './TreeView';
1
+ import { TreeView } from './TreeView';
2
2
  import { TreeViewItemClickEvent, TreeViewExpandChangeEvent, TreeViewCheckChangeEvent, TreeViewItemDragOverEvent, TreeViewItemDragStartEvent, TreeViewItemDragEndEvent } from './events';
3
- import processTreeViewItems from './processTreeViewItems';
4
- import moveTreeViewItem from './moveTreeViewItem';
3
+ import { processTreeViewItems } from './processTreeViewItems';
4
+ import { moveTreeViewItem } from './moveTreeViewItem';
5
5
  import { handleTreeViewCheckChange, TreeViewCheckChangeSettings } from './handleTreeViewCheckChange';
6
6
  import { TreeViewOperationDescriptor, TreeViewOperationDescriptors, TreeViewCheckDescriptor } from './TreeViewOperationDescriptors';
7
7
  import { ItemRenderProps } from './ItemRenderProps';
8
8
  import { TreeViewProps } from './TreeViewProps';
9
- import TreeViewDragClue from './TreeViewDragClue';
10
- import TreeViewDragAnalyzer from './TreeViewDragAnalyzer';
9
+ import { TreeViewDragClue } from './TreeViewDragClue';
10
+ import { TreeViewDragAnalyzer } from './TreeViewDragAnalyzer';
11
11
  import { TreeViewItemPropsContext } from './TreeViewItem';
12
12
  export { TreeViewItemPropsContext, TreeView, processTreeViewItems, handleTreeViewCheckChange, TreeViewCheckChangeSettings, TreeViewItemClickEvent, TreeViewExpandChangeEvent, TreeViewCheckChangeEvent, TreeViewItemDragOverEvent, TreeViewItemDragStartEvent, TreeViewItemDragEndEvent, TreeViewOperationDescriptor, TreeViewOperationDescriptors, TreeViewCheckDescriptor, TreeViewProps, ItemRenderProps, TreeViewDragClue, moveTreeViewItem, TreeViewDragAnalyzer };
package/dist/es/main.js CHANGED
@@ -1,8 +1,8 @@
1
- import TreeView from './TreeView';
2
- import processTreeViewItems from './processTreeViewItems';
3
- import moveTreeViewItem from './moveTreeViewItem';
1
+ import { TreeView } from './TreeView';
2
+ import { processTreeViewItems } from './processTreeViewItems';
3
+ import { moveTreeViewItem } from './moveTreeViewItem';
4
4
  import { handleTreeViewCheckChange } from './handleTreeViewCheckChange';
5
- import TreeViewDragClue from './TreeViewDragClue';
6
- import TreeViewDragAnalyzer from './TreeViewDragAnalyzer';
5
+ import { TreeViewDragClue } from './TreeViewDragClue';
6
+ import { TreeViewDragAnalyzer } from './TreeViewDragAnalyzer';
7
7
  import { TreeViewItemPropsContext } from './TreeViewItem';
8
8
  export { TreeViewItemPropsContext, TreeView, processTreeViewItems, handleTreeViewCheckChange, TreeViewDragClue, moveTreeViewItem, TreeViewDragAnalyzer };
@@ -103,7 +103,7 @@
103
103
  * ReactDOM.render(<App />, document.querySelector('my-app'));
104
104
  * ```
105
105
  */
106
- export default function moveTreeViewItem(sourceItemHierarchicalIndex: string, sourceData: any[] | null | undefined, operation: 'before' | 'after' | 'child', targetItemHierarchicalIndex: string, targetData?: any[] | null, childrenField?: string): any[] | {
106
+ export declare function moveTreeViewItem(sourceItemHierarchicalIndex: string, sourceData: any[] | null | undefined, operation: 'before' | 'after' | 'child', targetItemHierarchicalIndex: string, targetData?: any[] | null, childrenField?: string): any[] | {
107
107
  sourceData: any[];
108
108
  targetData: any[];
109
109
  };
@@ -106,7 +106,7 @@ import { CHILDREN_FIELD } from './utils/consts';
106
106
  * ReactDOM.render(<App />, document.querySelector('my-app'));
107
107
  * ```
108
108
  */
109
- export default function moveTreeViewItem(sourceItemHierarchicalIndex, sourceData, operation, targetItemHierarchicalIndex, targetData, childrenField) {
109
+ export function moveTreeViewItem(sourceItemHierarchicalIndex, sourceData, operation, targetItemHierarchicalIndex, targetData, childrenField) {
110
110
  var subItemsField = childrenField || CHILDREN_FIELD;
111
111
  if (!validateInput()) {
112
112
  return prepareInputDataForReturn();
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-treeview',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1653456730,
8
+ publishDate: 1653648152,
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
  };
@@ -48,4 +48,4 @@ import { TreeViewOperationDescriptors } from './TreeViewOperationDescriptors';
48
48
  * ReactDOM.render(<App />, document.querySelector('my-app'));
49
49
  * ```
50
50
  */
51
- export default function processTreeViewItems(data: any[] | null | undefined, operations: TreeViewOperationDescriptors): any[];
51
+ export declare function processTreeViewItems(data: any[] | null | undefined, operations: TreeViewOperationDescriptors): any[];
@@ -62,7 +62,7 @@ import { getNestedValue, isArray } from './utils/misc';
62
62
  * ReactDOM.render(<App />, document.querySelector('my-app'));
63
63
  * ```
64
64
  */
65
- export default function processTreeViewItems(data, operations) {
65
+ export function processTreeViewItems(data, operations) {
66
66
  if (!data || !data.length) {
67
67
  return [];
68
68
  }
@@ -29,7 +29,7 @@ export interface TreeViewState {
29
29
  * ReactDOM.render(<App />, document.querySelector('my-app'));
30
30
  * ```
31
31
  */
32
- export default class TreeView extends React.Component<TreeViewProps, TreeViewState> {
32
+ export declare class TreeView extends React.Component<TreeViewProps, TreeViewState> {
33
33
  /**
34
34
  * @hidden
35
35
  */
@@ -84,7 +84,7 @@ export default class TreeView extends React.Component<TreeViewProps, TreeViewSta
84
84
  /**
85
85
  * @hidden
86
86
  */
87
- readonly element: HTMLDivElement;
87
+ get element(): HTMLDivElement;
88
88
  constructor(props: TreeViewProps);
89
89
  /**
90
90
  * @hidden
@@ -112,11 +112,11 @@ export default class TreeView extends React.Component<TreeViewProps, TreeViewSta
112
112
  private dispatchExpandChange;
113
113
  private dispatchItemClick;
114
114
  private refocusDueToFocusIdField;
115
- private readonly ariaMultiSelectable;
116
- private readonly data;
115
+ private get ariaMultiSelectable();
116
+ private get data();
117
117
  private focusDomItem;
118
118
  /**
119
119
  * Returns the `guid` which is associated with the TreeView.
120
120
  */
121
- readonly guid: string;
121
+ get guid(): string;
122
122
  }
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
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");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.TreeView = void 0;
16
19
  var React = require("react");
17
20
  var PropTypes = require("prop-types");
18
21
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -142,15 +145,15 @@ var TreeView = /** @class */ (function (_super) {
142
145
  get: function () {
143
146
  return this._element;
144
147
  },
145
- enumerable: true,
148
+ enumerable: false,
146
149
  configurable: true
147
150
  });
148
151
  /**
149
152
  * @hidden
150
153
  */
151
154
  TreeView.prototype.render = function () {
152
- var _this = this;
153
155
  var _a;
156
+ var _this = this;
154
157
  this.fieldsSvc = new FieldsService_1.default(this.props);
155
158
  var _b = this.props, size = _b.size, className = _b.className;
156
159
  return (React.createElement("div", { className: kendo_react_common_1.classNames('k-treeview', (_a = {},
@@ -242,14 +245,14 @@ var TreeView = /** @class */ (function (_super) {
242
245
  get: function () {
243
246
  return this.props['aria-multiselectable'] === true || this.props['aria-multiselectable'] === 'true';
244
247
  },
245
- enumerable: true,
248
+ enumerable: false,
246
249
  configurable: true
247
250
  });
248
251
  Object.defineProperty(TreeView.prototype, "data", {
249
252
  get: function () {
250
253
  return this.props.data || [];
251
254
  },
252
- enumerable: true,
255
+ enumerable: false,
253
256
  configurable: true
254
257
  });
255
258
  TreeView.prototype.focusDomItem = function (domItem) {
@@ -262,7 +265,7 @@ var TreeView = /** @class */ (function (_super) {
262
265
  get: function () {
263
266
  return this.treeGuid;
264
267
  },
265
- enumerable: true,
268
+ enumerable: false,
266
269
  configurable: true
267
270
  });
268
271
  /**
@@ -315,4 +318,4 @@ var TreeView = /** @class */ (function (_super) {
315
318
  };
316
319
  return TreeView;
317
320
  }(React.Component));
318
- exports.default = TreeView;
321
+ exports.TreeView = TreeView;
@@ -89,7 +89,7 @@ import { TreeViewItemDragOverEvent, TreeViewItemDragEndEvent } from './events';
89
89
  * ReactDOM.render(<App />, document.querySelector('my-app'));
90
90
  * ```
91
91
  */
92
- export default class TreeViewDragAnalyzer {
92
+ export declare class TreeViewDragAnalyzer {
93
93
  private event;
94
94
  private itemId;
95
95
  private treeViewGuid;
@@ -111,13 +111,13 @@ export default class TreeViewDragAnalyzer {
111
111
  /**
112
112
  * Returns `true` if dropping is allowed. Otherwise, returns `false`.
113
113
  */
114
- readonly isDropAllowed: boolean;
114
+ get isDropAllowed(): boolean;
115
115
  /**
116
116
  * Returns an object which contains:
117
117
  * * The `itemHierarchicalIndex` of the destination item (the item below the dragged item) and
118
118
  * * The `guid` of the destination TreeView (the TreeView which renders the destination item).
119
119
  */
120
- readonly destinationMeta: {
120
+ get destinationMeta(): {
121
121
  itemHierarchicalIndex: string;
122
122
  treeViewGuid: string;
123
123
  };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TreeViewDragAnalyzer = void 0;
3
4
  var consts_1 = require("./utils/consts");
4
5
  var DROPZONE_BOUNDARY_DELTA = 6;
5
6
  /**
@@ -129,7 +130,7 @@ var TreeViewDragAnalyzer = /** @class */ (function () {
129
130
  return false;
130
131
  }
131
132
  },
132
- enumerable: true,
133
+ enumerable: false,
133
134
  configurable: true
134
135
  });
135
136
  Object.defineProperty(TreeViewDragAnalyzer.prototype, "destinationMeta", {
@@ -141,7 +142,7 @@ var TreeViewDragAnalyzer = /** @class */ (function () {
141
142
  get: function () {
142
143
  return { itemHierarchicalIndex: this.destItemId, treeViewGuid: this.destTreeViewGuid };
143
144
  },
144
- enumerable: true,
145
+ enumerable: false,
145
146
  configurable: true
146
147
  });
147
148
  /**
@@ -183,4 +184,4 @@ var TreeViewDragAnalyzer = /** @class */ (function () {
183
184
  };
184
185
  return TreeViewDragAnalyzer;
185
186
  }());
186
- exports.default = TreeViewDragAnalyzer;
187
+ exports.TreeViewDragAnalyzer = TreeViewDragAnalyzer;
@@ -108,7 +108,7 @@ export interface TreeViewDragClueState {
108
108
  * ReactDOM.render(<App />, document.querySelector('my-app'));
109
109
  * ```
110
110
  */
111
- export default class TreeViewDragClue extends React.PureComponent<TreeViewDragClueProps, TreeViewDragClueState> {
111
+ export declare class TreeViewDragClue extends React.PureComponent<TreeViewDragClueProps, TreeViewDragClueState> {
112
112
  /**
113
113
  * @hidden
114
114
  */
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
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");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
24
26
  return __assign.apply(this, arguments);
25
27
  };
26
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TreeViewDragClue = void 0;
27
30
  var React = require("react");
28
31
  var kendo_react_common_1 = require("@progress/kendo-react-common");
29
32
  /**
@@ -136,7 +139,7 @@ var TreeViewDragClue = /** @class */ (function (_super) {
136
139
  */
137
140
  TreeViewDragClue.prototype.render = function () {
138
141
  var dynamicStyle = { top: this.state.top + 'px', left: this.state.left + 'px' };
139
- return this.state.visible && (React.createElement("div", { className: "k-header k-drag-clue", style: __assign({}, this.props.style, dynamicStyle) },
142
+ return this.state.visible && (React.createElement("div", { className: "k-header k-drag-clue", style: __assign(__assign({}, this.props.style), dynamicStyle) },
140
143
  React.createElement("span", { className: kendo_react_common_1.classNames('k-icon k-drag-status k-icon-with-modifier', this.state.operationClassName) },
141
144
  React.createElement("span", { className: "k-icon k-icon-modifier" })),
142
145
  this.state.text));
@@ -164,4 +167,4 @@ var TreeViewDragClue = /** @class */ (function (_super) {
164
167
  TreeViewDragClue.defaultProps = { style: { display: 'block', position: 'absolute', zIndex: 20000, padding: '4px 6px' } };
165
168
  return TreeViewDragClue;
166
169
  }(React.PureComponent));
167
- exports.default = TreeViewDragClue;
170
+ exports.TreeViewDragClue = TreeViewDragClue;
@@ -61,13 +61,13 @@ declare class TreeViewItemWithoutContext extends React.Component<TreeViewItemPro
61
61
  private onPress;
62
62
  private onDrag;
63
63
  private onRelease;
64
- private readonly fieldsSvc;
65
- private readonly itemId;
66
- private readonly item;
67
- private readonly tabIndex;
68
- private readonly ariaExpanded;
69
- private readonly ariaChecked;
70
- private readonly ariaSelected;
64
+ private get fieldsSvc();
65
+ private get itemId();
66
+ private get item();
67
+ private get tabIndex();
68
+ private get ariaExpanded();
69
+ private get ariaChecked();
70
+ private get ariaSelected();
71
71
  private getIconClassName;
72
72
  private getRootClassName;
73
73
  private getContentClassName;
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
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");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
24
26
  return __assign.apply(this, arguments);
25
27
  };
26
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TreeViewItem = exports.TreeViewItemPropsContext = void 0;
27
30
  var React = require("react");
28
31
  var kendo_react_common_1 = require("@progress/kendo-react-common");
29
32
  var itemIdUtils_1 = require("./utils/itemIdUtils");
@@ -107,8 +110,8 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
107
110
  }
108
111
  };
109
112
  TreeViewItemWithoutContext.prototype.renderCheckbox = function () {
110
- var _this = this;
111
113
  var _a;
114
+ var _this = this;
112
115
  if (this.props.checkboxes) {
113
116
  var size = this.props.size;
114
117
  return (React.createElement("div", { className: "k-checkbox-wrap" },
@@ -147,28 +150,28 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
147
150
  get: function () {
148
151
  return this.props.fieldsService;
149
152
  },
150
- enumerable: true,
153
+ enumerable: false,
151
154
  configurable: true
152
155
  });
153
156
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "itemId", {
154
157
  get: function () {
155
158
  return this.props.itemId;
156
159
  },
157
- enumerable: true,
160
+ enumerable: false,
158
161
  configurable: true
159
162
  });
160
163
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "item", {
161
164
  get: function () {
162
165
  return this.props.item;
163
166
  },
164
- enumerable: true,
167
+ enumerable: false,
165
168
  configurable: true
166
169
  });
167
170
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "tabIndex", {
168
171
  get: function () {
169
172
  return (this.props.focusedItemId || this.props.tabbableItemId) === this.itemId ? 0 : -1;
170
173
  },
171
- enumerable: true,
174
+ enumerable: false,
172
175
  configurable: true
173
176
  });
174
177
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "ariaExpanded", {
@@ -176,7 +179,7 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
176
179
  return this.fieldsSvc.hasChildren(this.item) || itemUtils_1.hasChildren(this.item, this.fieldsSvc.getChildrenField()) ?
177
180
  Boolean(this.fieldsSvc.expanded(this.item)) : undefined;
178
181
  },
179
- enumerable: true,
182
+ enumerable: false,
180
183
  configurable: true
181
184
  });
182
185
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "ariaChecked", {
@@ -193,7 +196,7 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
193
196
  return undefined;
194
197
  }
195
198
  },
196
- enumerable: true,
199
+ enumerable: false,
197
200
  configurable: true
198
201
  });
199
202
  Object.defineProperty(TreeViewItemWithoutContext.prototype, "ariaSelected", {
@@ -208,7 +211,7 @@ var TreeViewItemWithoutContext = /** @class */ (function (_super) {
208
211
  return undefined;
209
212
  }
210
213
  },
211
- enumerable: true,
214
+ enumerable: false,
212
215
  configurable: true
213
216
  });
214
217
  TreeViewItemWithoutContext.prototype.getIconClassName = function () {
@@ -1,5 +1,5 @@
1
1
  import { BaseEvent } from '@progress/kendo-react-common';
2
- import TreeView from './TreeView';
2
+ import { TreeView } from './TreeView';
3
3
  /**
4
4
  * Represents the object of the `onExpandChange` event ([see example]({% slug overview_treeview %}#toc-basic-usage)).
5
5
  */
@@ -27,6 +27,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
27
27
  }
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.handleTreeViewCheckChange = void 0;
30
31
  var itemUtils_1 = require("./utils/itemUtils");
31
32
  var itemIdUtils_1 = require("./utils/itemIdUtils");
32
33
  var misc_1 = require("./utils/misc");
@@ -1,12 +1,12 @@
1
- import TreeView from './TreeView';
1
+ import { TreeView } from './TreeView';
2
2
  import { TreeViewItemClickEvent, TreeViewExpandChangeEvent, TreeViewCheckChangeEvent, TreeViewItemDragOverEvent, TreeViewItemDragStartEvent, TreeViewItemDragEndEvent } from './events';
3
- import processTreeViewItems from './processTreeViewItems';
4
- import moveTreeViewItem from './moveTreeViewItem';
3
+ import { processTreeViewItems } from './processTreeViewItems';
4
+ import { moveTreeViewItem } from './moveTreeViewItem';
5
5
  import { handleTreeViewCheckChange, TreeViewCheckChangeSettings } from './handleTreeViewCheckChange';
6
6
  import { TreeViewOperationDescriptor, TreeViewOperationDescriptors, TreeViewCheckDescriptor } from './TreeViewOperationDescriptors';
7
7
  import { ItemRenderProps } from './ItemRenderProps';
8
8
  import { TreeViewProps } from './TreeViewProps';
9
- import TreeViewDragClue from './TreeViewDragClue';
10
- import TreeViewDragAnalyzer from './TreeViewDragAnalyzer';
9
+ import { TreeViewDragClue } from './TreeViewDragClue';
10
+ import { TreeViewDragAnalyzer } from './TreeViewDragAnalyzer';
11
11
  import { TreeViewItemPropsContext } from './TreeViewItem';
12
12
  export { TreeViewItemPropsContext, TreeView, processTreeViewItems, handleTreeViewCheckChange, TreeViewCheckChangeSettings, TreeViewItemClickEvent, TreeViewExpandChangeEvent, TreeViewCheckChangeEvent, TreeViewItemDragOverEvent, TreeViewItemDragStartEvent, TreeViewItemDragEndEvent, TreeViewOperationDescriptor, TreeViewOperationDescriptors, TreeViewCheckDescriptor, TreeViewProps, ItemRenderProps, TreeViewDragClue, moveTreeViewItem, TreeViewDragAnalyzer };