@progress/kendo-react-orgchart 13.3.0 → 13.4.0-develop.2

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.
package/index.d.ts CHANGED
@@ -5,565 +5,10 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { JSX } from 'react/jsx-runtime';
9
- import * as React_2 from 'react';
10
-
11
- /**
12
- * Represents the OrgChart component.
13
- */
14
- export declare const OrgChart: React_2.FunctionComponent<OrgChartProps>;
15
-
16
- /**
17
- * Represents the OrgChartActionEvent event argument.
18
- */
19
- export declare interface OrgChartActionEvent {
20
- /**
21
- * Represents the triggered React event.
22
- */
23
- event: React.KeyboardEvent | React.MouseEvent | React.FocusEvent;
24
- /**
25
- * Item that triggers the event.
26
- */
27
- item?: any;
28
- /**
29
- * Items that belong to the group that triggers the event.
30
- */
31
- items?: any;
32
- /**
33
- * @hidden
34
- */
35
- containerRef?: React.RefObject<HTMLDivElement | null>;
36
- }
37
-
38
- /**
39
- * The descriptor which is used for checking.
40
- */
41
- declare interface OrgChartCheckDescriptor extends OrgChartOperationDescriptor {
42
- /**
43
- * Determines if a parent item will have an indeterminate state when not all its children are checked.
44
- */
45
- applyCheckIndeterminate?: boolean;
46
- /**
47
- * The name of the field which will provide a Boolean representation for the indeterminate state of a parent item.
48
- * Defaults to `checkIndeterminate`.
49
- */
50
- checkIndeterminateField?: string;
51
- }
52
-
53
- /**
54
- * Represents the OrgChartExpandChangeEvent event argument.
55
- */
56
- export declare interface OrgChartExpandChangeEvent {
57
- /**
58
- * Represents the triggered React event.
59
- */
60
- event: React.MouseEvent | React.KeyboardEvent;
61
- /**
62
- * Represents expand value of the item or group.
63
- */
64
- expand: boolean;
65
- /**
66
- * Item that triggers the event.
67
- */
68
- item?: any;
69
- /**
70
- * Items that belong to the group that triggers the event.
71
- */
72
- items?: any[];
73
- }
74
-
75
- /**
76
- * @hidden
77
- */
78
- export declare interface OrgChartGroupSubtitleProps {
79
- /**
80
- * The styles that are applied to the OrgChart.
81
- */
82
- style?: React_2.CSSProperties;
83
- /**
84
- * The default class that is applied to the OrgChart group title.
85
- */
86
- className?: string;
87
- /**
88
- * The default subtitle that are passed to the OrgChart group.
89
- */
90
- subtitle?: string;
91
- /**
92
- * The collection of inner items of the group.
93
- */
94
- items?: any[];
95
- /**
96
- * The level of the group.
97
- */
98
- level?: number;
99
- /**
100
- * The expanded state of the group.
101
- */
102
- expanded?: boolean;
103
- }
104
-
105
- /**
106
- * @hidden
107
- */
108
- export declare interface OrgChartGroupTitleProps {
109
- /**
110
- * The styles that are applied to the OrgChart group title.
111
- */
112
- style?: React_2.CSSProperties;
113
- /**
114
- * The default class that is applied to the OrgChart group title.
115
- */
116
- className?: string;
117
- /**
118
- * The default title that are passed to the OrgChart group.
119
- */
120
- title?: string;
121
- /**
122
- * The collection of inner items of the group.
123
- */
124
- items?: any[];
125
- /**
126
- * The level of the group.
127
- */
128
- level?: number;
129
- /**
130
- * The expanded state of the group.
131
- */
132
- expanded?: boolean;
133
- }
134
-
135
- /**
136
- * The props that are passed to the itemRender component.
137
- */
138
- export declare interface OrgChartItemRenderProps {
139
- /**
140
- * The item passed to the ItemRender.
141
- */
142
- item?: any;
143
- /**
144
- * The title of the item.
145
- */
146
- title?: string;
147
- /**
148
- * The subtitle of the item.
149
- */
150
- subtitle?: string;
151
- /**
152
- * The level of the item.
153
- */
154
- level?: number;
155
- /**
156
- * The expanded state of the item.
157
- */
158
- expanded?: boolean;
159
- /**
160
- * The color of the item.
161
- */
162
- color?: string;
163
- }
164
-
165
- /**
166
- * The descriptor which is used for expanding, selecting, and checking.
167
- */
168
- declare interface OrgChartOperationDescriptor {
169
- /**
170
- * The IDs of the items to which the operation will be applied. By default, the OrgChart applies the hierarchical indices of the items. These indices are zero-based. The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
171
- */
172
- ids?: any[];
173
- /**
174
- * The name of the field which will provide a Boolean representation for the operation state of the item.
175
- *
176
- * The default fields are:
177
- * * `expanded`&mdash;Indicates that an item is expanded.
178
- * * `selected`&mdash;Indicates that an item is selected.
179
- * * `checked`&mdash;Indicates that an item is checked.
180
- */
181
- operationField?: string;
182
- /**
183
- * The name of the field which will uniquely describe an item as an alternative to its hierarchical index.
184
- */
185
- idField?: string;
186
- }
187
-
188
- /**
189
- * The descriptors of the data operations which are applied to the OrgChart component.
190
- */
191
- declare interface OrgChartOperationDescriptors {
192
- /**
193
- * The hierarchical indices of the items to which the expand operation will be applied, or the descriptor of the operation.
194
- */
195
- expand?: string[] | OrgChartOperationDescriptor;
196
- /**
197
- * The hierarchical indices of the items to which the select operation will be applied, or the descriptor of the operation.
198
- */
199
- select?: string[] | OrgChartOperationDescriptor;
200
- /**
201
- * Sets the hierarchical indices of the items to which the check operation applies, or the descriptor of the operation.
202
- */
203
- check?: string[] | OrgChartCheckDescriptor;
204
- /**
205
- * When the operations are applied, the corresponding items and their parents are cloned.
206
- * For performance reasons, OrgChart items are cloned only once.
207
- * The name of the field which provides a Boolean representation of whether an item is already cloned.
208
- * Defaults to `cloned`.
209
- */
210
- cloneField?: string;
211
- /**
212
- * The expand field of the item.
213
- */
214
- expandField?: string;
215
- /**
216
- * The select field of the item.
217
- */
218
- selectField?: string;
219
- /**
220
- * The check field of the item.
221
- */
222
- checkField?: string;
223
- /**
224
- * The children field of the item.
225
- */
226
- childrenField?: string;
227
- }
228
-
229
- /**
230
- * Represents the props of the [KendoReact OrgChart component](https://www.telerik.com/kendo-react-ui/components/orgchart).
231
- */
232
- export declare interface OrgChartProps {
233
- /**
234
- * @hidden
235
- */
236
- children?: React_2.ReactNode;
237
- /**
238
- * Sets additional classes to the OrgChart.
239
- */
240
- className?: string;
241
- /**
242
- * Sets custom id to the OrgChart.
243
- */
244
- id?: string;
245
- /**
246
- * Sets custom aria-label to the OrgChart. The default value is "Org Chart"
247
- */
248
- ariaLabel?: string;
249
- /**
250
- * Sets the name of the field which provides an id for the item.
251
- *
252
- * @default "id"
253
- */
254
- idField?: string;
255
- /**
256
- * Sets the name of the field which provides an array representation of the item children.
257
- */
258
- childrenField?: string;
259
- /**
260
- * Sets the name of the field which provides a Boolean representation for the expanded state of the item.
261
- *
262
- * @default "expanded"
263
- */
264
- expandField?: string;
265
- /**
266
- * Sets the name of the field which provides a title representation for the item.
267
- *
268
- * @default "text"
269
- */
270
- titleField?: string;
271
- /**
272
- * Sets the name of the field which indicates to the OrgChart that an item has
273
- * children even if the children are not initially passed. Used for implementing the load-on-demand feature.
274
- *
275
- * @default undefined
276
- */
277
- hasChildrenField?: string;
278
- /**
279
- * Sets the name of the field which provides a subtitle representation for the item.
280
- *
281
- * @default "subtitle"
282
- */
283
- subtitleField?: string;
284
- /**
285
- * Sets the field which provides an avatar representation for the item.
286
- *
287
- * @default "avatar"
288
- */
289
- avatarField?: string;
290
- /**
291
- * Sets the type of the Avatar that renders for the OrgChart item.
292
- *
293
- * @default "image"
294
- */
295
- avatarType?: string;
296
- /**
297
- * Sets if the Avatar inside the OrgChart's cards is displayed.
298
- *
299
- * @default true
300
- */
301
- showAvatar?: boolean;
302
- /**
303
- * Sets a string array with the colors for the items. By default the colors come from the current Kendo Theme.
304
- */
305
- cardsColors?: string[];
306
- /**
307
- * Sets additional CSS styles to the OrgChart.
308
- */
309
- style?: React_2.CSSProperties;
310
- /**
311
- * Sets the data of the OrgChart.
312
- */
313
- data?: any[];
314
- /**
315
- * Sets the field by which the OrgChart data is grouped.
316
- */
317
- groupField?: string;
318
- /**
319
- * Sets the height of the card of the OrgChart.
320
- */
321
- cardHeight?: number;
322
- /**
323
- * Sets the width of the card of the OrgChart.
324
- */
325
- cardWidth?: number;
326
- /**
327
- * Sets the height of the title of the grouped OrgChart.
328
- */
329
- groupTitleHeight?: number;
330
- /**
331
- * Sets the height of the subtitle of the grouped OrgChart.
332
- */
333
- groupSubtitleHeight?: number;
334
- /**
335
- * Sets the component that renders each of the OrgChart items.
336
- */
337
- itemRender?: React_2.ComponentType<OrgChartItemRenderProps>;
338
- /**
339
- * Sets the component that renders each of the grouped OrgChart title.
340
- */
341
- groupTitleRender?: React_2.ComponentType<OrgChartGroupTitleProps>;
342
- /**
343
- * Sets the component that renders each of the grouped OrgChart subtitle.
344
- */
345
- groupSubtitleRender?: React_2.ComponentType<OrgChartGroupSubtitleProps>;
346
- /**
347
- * Sets the height of the vertical line of the OrgChart.
348
- */
349
- verticalLine?: number;
350
- /**
351
- * Sets the height of the OrgChart.
352
- */
353
- height?: string | number;
354
- /**
355
- * Sets if the OrgChart can be navigated with the keyboard.
356
- *
357
- * @default true
358
- *
359
- * @example
360
- * ```jsx
361
- * <OrgChart navigatable={false} />
362
- * ```
363
- */
364
- navigatable?: boolean;
365
- /**
366
- * Fires when a node or group is expanded.
367
- *
368
- * @example
369
- * ```jsx
370
- * <OrgChart onExpandChange={(ev) => console.log('Expanded:', ev)} />
371
- * ```
372
- */
373
- onExpandChange?: (ev: OrgChartExpandChangeEvent) => void;
374
- /**
375
- * @hidden
376
- */
377
- onKeyDown?: (ev: OrgChartActionEvent) => void;
378
- /**
379
- * Triggers the item action event.
380
- *
381
- * @example
382
- * ```jsx
383
- * <OrgChart onItemAction={(ev) => console.log('Item action:', ev)} />
384
- * ```
385
- */
386
- onItemAction?: (ev: OrgChartActionEvent) => void;
387
- /**
388
- * Triggers the item double-click action event.
389
- *
390
- * @example
391
- * ```jsx
392
- * <OrgChart onItemDoubleClick={(ev) => console.log('Item double-clicked:', ev)} />
393
- * ```
394
- */
395
- onItemDoubleClick?: (ev: OrgChartActionEvent) => void;
396
- /**
397
- * Triggers the item context menu action event.
398
- *
399
- * @example
400
- * ```jsx
401
- * <OrgChart onItemContextMenu={(ev) => console.log('Context menu:', ev)} />
402
- * ```
403
- */
404
- onItemContextMenu?: (ev: OrgChartActionEvent) => void;
405
- /**
406
- * Triggers the group action event.
407
- *
408
- * @example
409
- * ```jsx
410
- * <OrgChart onGroupAction={(ev) => console.log('Group action:', ev)} />
411
- * ```
412
- */
413
- onGroupAction?: (ev: OrgChartActionEvent) => void;
414
- /**
415
- * @hidden
416
- */
417
- onGroupBlur?: (ev: OrgChartActionEvent) => void;
418
- /**
419
- * @hidden
420
- */
421
- onGroupFocus?: (ev: OrgChartActionEvent) => void;
422
- }
423
-
424
- /**
425
- * A helper function which applies the specified operation descriptors to the data.
426
- * * [Expanding and collapsing items](https://www.telerik.com/kendo-react-ui/components/treeview/expansion/update-expanded-items#toc-using-a-helper-function)
427
- * * [Selecting and deselecting items](https://www.telerik.com/kendo-react-ui/components/treeview/selection/update-selected-items#toc-using-a-helper-function)
428
- * * [Checking and unchecking items](https://www.telerik.com/kendo-react-ui/components/treeview/checkboxes/helper-functions)
429
- *
430
- * @param data - The data that will be processed.
431
- * @param operations - The operation descriptors that will be applied to the data.
432
- * @returns - The processed copy of the input data.
433
- *
434
- * @example
435
- * ```jsx
436
- * const App = () => {
437
- * const [items, setItems] = React.useState(tree);
438
- * const [expand, setExpand] = React.useState([]);
439
- * const [select, setSelect] = React.useState([]);
440
- * const [check, setCheck] = React.useState([]);
441
- *
442
- * const onExpandChange = (event) => {
443
- * let newExpand = expand.slice();
444
- * const index = newExpand.indexOf(event.itemHierarchicalIndex);
445
- * index === -1 ? newExpand.push(event.itemHierarchicalIndex) : newExpand.splice(index, 1);
446
- * setExpand(newExpand);
447
- * }
448
- *
449
- * return (
450
- * <OrgChart
451
- * data={processOrgChartItems(items, { expand, select, check })}
452
- * expandIcons={true} onExpandChange={onExpandChange} checkboxes={true}
453
- * onCheckChange={event => setCheck([event.itemHierarchicalIndex])}
454
- * onItemClick={event => setSelect([event.itemHierarchicalIndex])}
455
- * />
456
- * );
457
- * }
458
- *
459
- * const tree = [{
460
- * text: 'Item1',
461
- * items: [
462
- * { text: 'Item1.1' },
463
- * { text: 'Item1.2' },
464
- * { text: 'Item1.3', items: [{ text: 'Item1.3.1' }] }]
465
- * }, {
466
- * text: 'Item2', disabled: true,
467
- * items: [{ text: 'Item2.1' }, { text: 'Item2.2' }, { text: 'Item2.3' }]
468
- * }, {
469
- * text: 'Item3'
470
- * }];
471
- * ```
472
- */
473
- export declare function processOrgChartItems(data: any[] | null | undefined, operations: OrgChartOperationDescriptors): any[];
474
-
475
- /**
476
- * @hidden
477
- */
478
- export declare const ServerOrgChart: {
479
- (props: OrgChartProps): JSX.Element;
480
- displayName: string;
481
- };
482
-
483
- /**
484
- * @hidden
485
- */
486
- export declare const ServerOrgChartGroup: React_2.FunctionComponent<ServerOrgChartGroupProps>;
487
-
488
- /**
489
- * @hidden
490
- */
491
- export declare interface ServerOrgChartGroupProps {
492
- /**
493
- * @hidden
494
- */
495
- children?: React_2.ReactNode;
496
- /**
497
- * Sets additional classes to the OrgChart.
498
- */
499
- className?: string;
500
- id?: string;
501
- /**
502
- * The styles that are applied to the OrgChart.
503
- */
504
- style?: React_2.CSSProperties;
505
- title?: string;
506
- subtitle?: string;
507
- line?: boolean;
508
- plus?: boolean;
509
- focus?: boolean;
510
- expanded?: boolean;
511
- nodes?: any[];
512
- level: number;
513
- groupTitleHeight?: number;
514
- groupSubtitleHeight?: number;
515
- childLineWidth?: number;
516
- verticalLine?: number;
517
- orientation?: 'horizontal' | 'vertical';
518
- groupTitleRender?: React_2.ComponentType<OrgChartGroupTitleProps>;
519
- groupSubtitleRender?: React_2.ComponentType<OrgChartGroupSubtitleProps>;
520
- }
521
-
522
- /**
523
- * @hidden
524
- */
525
- export declare const ServerOrgChartNode: React_2.FunctionComponent<ServerOrgChartNodeProps>;
526
-
527
- /**
528
- * @hidden
529
- */
530
- export declare interface ServerOrgChartNodeProps {
531
- /**
532
- * @hidden
533
- */
534
- children?: React_2.ReactNode;
535
- /**
536
- * Sets additional classes to the OrgChart.
537
- */
538
- className?: string;
539
- /**
540
- * Passes the OrgChart id to the node.
541
- */
542
- id?: string;
543
- /**
544
- * The styles that are applied to the OrgChart.
545
- */
546
- style?: React_2.CSSProperties;
547
- level: number;
548
- childLineWidth?: number;
549
- title?: string;
550
- subtitle?: string;
551
- details?: boolean;
552
- color?: string;
553
- line?: boolean;
554
- plus?: boolean;
555
- expanded?: boolean;
556
- avatar?: string;
557
- avatarType?: string;
558
- showAvatar?: boolean;
559
- cardHeight?: number;
560
- cardWidth?: number;
561
- verticalLine?: number;
562
- itemRender?: React_2.ComponentType<OrgChartItemRenderProps>;
563
- onExpandChange?: (ev: OrgChartExpandChangeEvent) => void;
564
- onItemAction?: (ev: OrgChartActionEvent) => void;
565
- onItemKeyDown?: (ev: OrgChartActionEvent) => void;
566
- node?: any;
567
- }
568
-
569
- export { }
8
+ export { ServerOrgChart } from './server/ServerOrgChart.js';
9
+ export * from './OrgChart.js';
10
+ export { type OrgChartExpandChangeEvent } from './interfaces/OrgChartExpandChangeEvent.js';
11
+ export { type OrgChartActionEvent } from './interfaces/OrgChartActionEvent.js';
12
+ export * from './processOrgChartItems.js';
13
+ export * from './server/ServerOrgChartNode.js';
14
+ export * from './server/ServerOrgChartGroup.js';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * @hidden
10
+ */
11
+ export interface ChildGroup {
12
+ items: any[];
13
+ groupedItems: any[];
14
+ level: number;
15
+ ids: number[];
16
+ parentId: number;
17
+ hasChildren: boolean;
18
+ orientation: 'horizontal' | 'vertical';
19
+ width: number | null;
20
+ childLineWidths?: number[];
21
+ left?: number;
22
+ top?: number;
23
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * Represents the OrgChartActionEvent event argument.
10
+ */
11
+ export interface OrgChartActionEvent {
12
+ /**
13
+ * Represents the triggered React event.
14
+ */
15
+ event: React.KeyboardEvent | React.MouseEvent | React.FocusEvent;
16
+ /**
17
+ * Item that triggers the event.
18
+ */
19
+ item?: any;
20
+ /**
21
+ * Items that belong to the group that triggers the event.
22
+ */
23
+ items?: any;
24
+ /**
25
+ * @hidden
26
+ */
27
+ containerRef?: React.RefObject<HTMLDivElement | null>;
28
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * Represents the OrgChartExpandChangeEvent event argument.
10
+ */
11
+ export interface OrgChartExpandChangeEvent {
12
+ /**
13
+ * Represents the triggered React event.
14
+ */
15
+ event: React.MouseEvent | React.KeyboardEvent;
16
+ /**
17
+ * Represents expand value of the item or group.
18
+ */
19
+ expand: boolean;
20
+ /**
21
+ * Item that triggers the event.
22
+ */
23
+ item?: any;
24
+ /**
25
+ * Items that belong to the group that triggers the event.
26
+ */
27
+ items?: any[];
28
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { PackageMetadata } from '@progress/kendo-licensing';
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const packageMetadata: PackageMetadata;
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-orgchart",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1768550525,version:"13.3.0",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"});exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-orgchart",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1770288294,version:"13.4.0-develop.2",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"});exports.packageMetadata=e;
@@ -1,19 +1,13 @@
1
1
  /**
2
- * @license
3
- *-------------------------------------------------------------------------------------------
4
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
- * Licensed under commercial license. See LICENSE.md in the package root for more information
6
- *-------------------------------------------------------------------------------------------
2
+ * @hidden
7
3
  */
8
- const e = Object.freeze({
9
- name: "@progress/kendo-react-orgchart",
10
- productName: "KendoReact",
11
- productCode: "KENDOUIREACT",
12
- productCodes: ["KENDOUIREACT"],
13
- publishDate: 1768550525,
14
- version: "13.3.0",
15
- 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"
4
+ export const packageMetadata = Object.freeze({
5
+ name: '@progress/kendo-react-orgchart',
6
+ productName: 'KendoReact',
7
+ productCode: 'KENDOUIREACT',
8
+ productCodes: ['KENDOUIREACT'],
9
+ publishDate: 0,
10
+ version: '13.4.0-develop.2',
11
+ licensingDocsUrl:
12
+ 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
16
13
  });
17
- export {
18
- e as packageMetadata
19
- };