@progress/kendo-react-diagram 14.3.1-develop.3
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/Diagram.d.ts +19 -0
- package/Diagram.js +8 -0
- package/Diagram.mjs +187 -0
- package/DiagramConnectionTooltip.d.ts +36 -0
- package/DiagramConnectionTooltip.js +8 -0
- package/DiagramConnectionTooltip.mjs +12 -0
- package/DiagramShapeTooltip.d.ts +36 -0
- package/DiagramShapeTooltip.js +8 -0
- package/DiagramShapeTooltip.mjs +12 -0
- package/LICENSE.md +11 -0
- package/NOTICE.txt +99 -0
- package/README.md +3 -0
- package/dist/cdn/js/kendo-react-diagram.js +15 -0
- package/hooks/index.d.ts +10 -0
- package/hooks/useDiagramData.d.ts +22 -0
- package/hooks/useDiagramData.js +8 -0
- package/hooks/useDiagramData.mjs +39 -0
- package/hooks/useDiagramEvents.d.ts +80 -0
- package/hooks/useDiagramEvents.js +8 -0
- package/hooks/useDiagramEvents.mjs +57 -0
- package/hooks/useDiagramTooltip.d.ts +67 -0
- package/hooks/useDiagramTooltip.js +8 -0
- package/hooks/useDiagramTooltip.mjs +116 -0
- package/index.d.mts +13 -0
- package/index.d.ts +13 -0
- package/index.js +8 -0
- package/index.mjs +60 -0
- package/interfaces/ConnectionTypes.d.ts +59 -0
- package/interfaces/DiagramEventTypes.d.ts +9 -0
- package/interfaces/DiagramTypes.d.ts +208 -0
- package/interfaces/ShapeTypes.d.ts +139 -0
- package/interfaces/TooltipTypes.d.ts +21 -0
- package/interfaces/index.d.ts +12 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +13 -0
- package/package.json +66 -0
- package/utils/consts.d.ts +37 -0
- package/utils/consts.js +8 -0
- package/utils/consts.mjs +27 -0
- package/utils/index.d.ts +9 -0
- package/utils/navigate.d.ts +17 -0
- package/utils/navigate.js +8 -0
- package/utils/navigate.mjs +24 -0
|
@@ -0,0 +1,208 @@
|
|
|
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 { NavigationOptions, DiagramChangeEvent, DiagramDomEvent, DiagramDragEvent, DiagramItemBoundsChangeEvent, DiagramPanEvent, DiagramSelectEvent, DiagramZoomEndEvent, DiagramZoomStartEvent, DiagramEditable, DiagramLayout, Pannable, Selectable } from '@progress/kendo-diagram-common';
|
|
9
|
+
import { ConnectionDefaults, ConnectionModelFields, ConnectionOptions } from './ConnectionTypes.js';
|
|
10
|
+
import { ShapeDefaults, ShapeModelFields, ShapeOptions } from './ShapeTypes.js';
|
|
11
|
+
/**
|
|
12
|
+
* Represents a typed item or a custom data object used for data binding in the `Diagram`.
|
|
13
|
+
* When `T` is provided, the item is a known typed option (e.g., `ShapeOptions` or `ConnectionOptions`).
|
|
14
|
+
* Otherwise, it can be a custom object that will be mapped using the corresponding model fields configuration.
|
|
15
|
+
*/
|
|
16
|
+
export type DiagramDataItem<T> = T | Record<string, unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the navigation configuration options for the `Diagram`.
|
|
19
|
+
*/
|
|
20
|
+
export interface DiagramNavigationOptions extends Pick<NavigationOptions, 'smallStep' | 'largeStep'> {
|
|
21
|
+
/**
|
|
22
|
+
* Controls whether navigation is enabled.
|
|
23
|
+
*/
|
|
24
|
+
enabled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Represents the props of the [KendoReact Diagram component](https://www.telerik.com/kendo-react-ui/components/diagram).
|
|
28
|
+
*/
|
|
29
|
+
export interface DiagramProps {
|
|
30
|
+
/**
|
|
31
|
+
* Defines the default configuration options applicable to all connections.
|
|
32
|
+
*/
|
|
33
|
+
connectionDefaults?: ConnectionDefaults;
|
|
34
|
+
/**
|
|
35
|
+
* Defines the connections that render between the shapes in the `Diagram`.
|
|
36
|
+
* Accepts either an array of `ConnectionOptions` or an array of any objects
|
|
37
|
+
* that will be mapped using the `connectionModelFields` configuration.
|
|
38
|
+
*/
|
|
39
|
+
connections?: DiagramDataItem<ConnectionOptions>[];
|
|
40
|
+
/**
|
|
41
|
+
* Defines the field mapping configuration for connections data binding.
|
|
42
|
+
* Maps source object properties to `Diagram` connection properties.
|
|
43
|
+
* Only used when `connections` is an array of custom objects instead of `ConnectionOptions`.
|
|
44
|
+
*/
|
|
45
|
+
connectionModelFields?: ConnectionModelFields;
|
|
46
|
+
/**
|
|
47
|
+
* A set of settings to configure the `Diagram` behavior when the user attempts to drag, resize, or remove shapes.
|
|
48
|
+
* Changing the property value dynamically triggers a reinitialization of the `Diagram`.
|
|
49
|
+
*
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
editable?: boolean | DiagramEditable;
|
|
53
|
+
/**
|
|
54
|
+
* Defines the layout configuration for arranging shapes and connections in the `Diagram`.
|
|
55
|
+
*/
|
|
56
|
+
layout?: DiagramLayout;
|
|
57
|
+
/**
|
|
58
|
+
* Defines the pannable options. Use this setting to disable `Diagram` pan or change the key that activates the pan behavior.
|
|
59
|
+
*
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
pannable?: boolean | Pannable;
|
|
63
|
+
/**
|
|
64
|
+
* Defines the `Diagram` selection options.
|
|
65
|
+
*
|
|
66
|
+
* @default true
|
|
67
|
+
*/
|
|
68
|
+
selectable?: boolean | Selectable;
|
|
69
|
+
/**
|
|
70
|
+
* Defines the default configuration options applicable to all shapes.
|
|
71
|
+
*/
|
|
72
|
+
shapeDefaults?: ShapeDefaults;
|
|
73
|
+
/**
|
|
74
|
+
* Defines the shapes that render in the `Diagram`.
|
|
75
|
+
* Accepts either an array of `ShapeOptions` or an array of any objects
|
|
76
|
+
* that will be mapped using the `shapeModelFields` configuration.
|
|
77
|
+
*/
|
|
78
|
+
shapes?: DiagramDataItem<ShapeOptions>[];
|
|
79
|
+
/**
|
|
80
|
+
* Defines the field mapping configuration for shapes data binding.
|
|
81
|
+
* Maps source object properties to `Diagram` shape properties.
|
|
82
|
+
* Only used when `shapes` is an array of custom objects instead of `ShapeOptions`.
|
|
83
|
+
*/
|
|
84
|
+
shapeModelFields?: ShapeModelFields;
|
|
85
|
+
/**
|
|
86
|
+
* Defines the zoom level of the `Diagram`.
|
|
87
|
+
*
|
|
88
|
+
* @default 1
|
|
89
|
+
*/
|
|
90
|
+
zoom?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Defines the maximum zoom level of the `Diagram`.
|
|
93
|
+
*
|
|
94
|
+
* @default 2
|
|
95
|
+
*/
|
|
96
|
+
zoomMax?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Defines the minimum zoom level of the `Diagram`.
|
|
99
|
+
*
|
|
100
|
+
* @default 0.1
|
|
101
|
+
*/
|
|
102
|
+
zoomMin?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Defines the zoom rate of the `Diagram`.
|
|
105
|
+
*
|
|
106
|
+
* @default 0.1
|
|
107
|
+
*/
|
|
108
|
+
zoomRate?: number;
|
|
109
|
+
/**
|
|
110
|
+
* Enables keyboard navigation in the `Diagram`.
|
|
111
|
+
* When set to `true`, navigate between shapes using arrow keys.
|
|
112
|
+
* Alternatively, pass a `DiagramNavigationOptions` object to customize navigation behavior.
|
|
113
|
+
*
|
|
114
|
+
* @default true
|
|
115
|
+
*
|
|
116
|
+
* @remarks
|
|
117
|
+
* This property is related to accessibility.
|
|
118
|
+
*/
|
|
119
|
+
navigable?: boolean | DiagramNavigationOptions;
|
|
120
|
+
/**
|
|
121
|
+
* Fires when a shape or connection is created or removed.
|
|
122
|
+
*/
|
|
123
|
+
onChange?: (event: DiagramChangeEvent) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Fires when the user clicks on a shape or a connection.
|
|
126
|
+
*/
|
|
127
|
+
onDiagramClick?: (event: DiagramDomEvent) => void;
|
|
128
|
+
/**
|
|
129
|
+
* Fires when the user drags an item.
|
|
130
|
+
*/
|
|
131
|
+
onDrag?: (event: DiagramDragEvent) => void;
|
|
132
|
+
/**
|
|
133
|
+
* Fires when the user stops dragging an item.
|
|
134
|
+
*/
|
|
135
|
+
onDragEnd?: (event: DiagramDragEvent) => void;
|
|
136
|
+
/**
|
|
137
|
+
* Fires when the user starts dragging an item.
|
|
138
|
+
*/
|
|
139
|
+
onDragStart?: (event: DiagramDragEvent) => void;
|
|
140
|
+
/**
|
|
141
|
+
* Fires when the location or size of an item are changed.
|
|
142
|
+
*/
|
|
143
|
+
onShapeBoundsChange?: (event: DiagramItemBoundsChangeEvent) => void;
|
|
144
|
+
/**
|
|
145
|
+
* Fires when the mouse pointer enters a shape or connection.
|
|
146
|
+
*/
|
|
147
|
+
onMouseEnter?: (event: DiagramDomEvent) => void;
|
|
148
|
+
/**
|
|
149
|
+
* Fires when the mouse pointer leaves a shape or connection.
|
|
150
|
+
*/
|
|
151
|
+
onMouseLeave?: (event: DiagramDomEvent) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Fires when the user pans the `Diagram`.
|
|
154
|
+
*/
|
|
155
|
+
onPan?: (event: DiagramPanEvent) => void;
|
|
156
|
+
/**
|
|
157
|
+
* Fires when the user selects one or more items.
|
|
158
|
+
*/
|
|
159
|
+
onSelect?: (event: DiagramSelectEvent) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Fires when the `Diagram` has finished zooming out.
|
|
162
|
+
*/
|
|
163
|
+
onZoomEnd?: (event: DiagramZoomEndEvent) => void;
|
|
164
|
+
/**
|
|
165
|
+
* Fires when the `Diagram` starts zooming in or out.
|
|
166
|
+
*/
|
|
167
|
+
onZoomStart?: (event: DiagramZoomStartEvent) => void;
|
|
168
|
+
/**
|
|
169
|
+
* Fires when a tooltip should be shown for a shape or connection.
|
|
170
|
+
*/
|
|
171
|
+
onTooltipShow?: (item: ShapeOptions | ConnectionOptions) => void;
|
|
172
|
+
/**
|
|
173
|
+
* Fires when a tooltip should be hidden.
|
|
174
|
+
*/
|
|
175
|
+
onTooltipHide?: (item: ShapeOptions | ConnectionOptions) => void;
|
|
176
|
+
/**
|
|
177
|
+
* Sets the inline styles for the outermost wrapper element of the `Diagram`.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```tsx
|
|
181
|
+
* <Diagram style={{ height: 500 }} />
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
style?: React.CSSProperties;
|
|
185
|
+
/**
|
|
186
|
+
* Sets additional CSS class names on the outermost wrapper element of the `Diagram`.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```tsx
|
|
190
|
+
* <Diagram className="my-diagram" />
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
193
|
+
className?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Sets the `role` attribute on the outermost wrapper element of the `Diagram`.
|
|
196
|
+
*
|
|
197
|
+
* @default 'application'
|
|
198
|
+
*/
|
|
199
|
+
role?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Sets the `aria-label` attribute on the outermost wrapper element of the `Diagram`.
|
|
202
|
+
*/
|
|
203
|
+
ariaLabel?: string;
|
|
204
|
+
/**
|
|
205
|
+
* @hidden
|
|
206
|
+
*/
|
|
207
|
+
children?: React.ReactNode;
|
|
208
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
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 { ShapeDefaultsBase, ShapeOptionsBase } from '@progress/kendo-diagram-common';
|
|
9
|
+
import { TooltipOptions } from './TooltipTypes.js';
|
|
10
|
+
/**
|
|
11
|
+
* Defines the configuration options for diagram shapes.
|
|
12
|
+
* Extends the base shape options and adds tooltip support.
|
|
13
|
+
*/
|
|
14
|
+
export interface ShapeOptions extends Omit<ShapeOptionsBase, ''> {
|
|
15
|
+
/**
|
|
16
|
+
* Configures the tooltip that displays when you hover over the shape.
|
|
17
|
+
*/
|
|
18
|
+
tooltip?: TooltipOptions;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the text content displayed in the tooltip.
|
|
21
|
+
*/
|
|
22
|
+
tooltipText?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Defines the default configuration options for all shapes in the `Diagram`.
|
|
26
|
+
* These settings apply to shapes unless overridden by individual shape options.
|
|
27
|
+
*/
|
|
28
|
+
export interface ShapeDefaults extends Omit<ShapeDefaultsBase, ''> {
|
|
29
|
+
/**
|
|
30
|
+
* Configures the default tooltip settings for all shapes.
|
|
31
|
+
*/
|
|
32
|
+
tooltip?: TooltipOptions;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Defines the field mapping configuration for shapes data binding.
|
|
36
|
+
* Maps source object properties to `Diagram` shape properties.
|
|
37
|
+
*/
|
|
38
|
+
export interface ShapeModelFields {
|
|
39
|
+
/**
|
|
40
|
+
* The field that contains the unique identifier of the shape.
|
|
41
|
+
*/
|
|
42
|
+
id?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The field that contains the connectors configuration.
|
|
45
|
+
*/
|
|
46
|
+
connectors?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The field that contains the connector defaults configuration.
|
|
49
|
+
*/
|
|
50
|
+
connectorDefaults?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The field that contains the content configuration.
|
|
53
|
+
*/
|
|
54
|
+
content?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The field that contains the editable configuration.
|
|
57
|
+
*/
|
|
58
|
+
editable?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The field that contains the fill configuration.
|
|
61
|
+
*/
|
|
62
|
+
fill?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The field that contains the height value.
|
|
65
|
+
*/
|
|
66
|
+
height?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The field that contains the hover configuration.
|
|
69
|
+
*/
|
|
70
|
+
hover?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The field that contains the minimum height value.
|
|
73
|
+
*/
|
|
74
|
+
minHeight?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The field that contains the minimum width value.
|
|
77
|
+
*/
|
|
78
|
+
minWidth?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The field that contains the path configuration.
|
|
81
|
+
*/
|
|
82
|
+
path?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The field that contains the rotation configuration.
|
|
85
|
+
*/
|
|
86
|
+
rotation?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The field that contains the selectable configuration.
|
|
89
|
+
*/
|
|
90
|
+
selectable?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The field that contains the source configuration.
|
|
93
|
+
*/
|
|
94
|
+
source?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The field that contains the stroke configuration.
|
|
97
|
+
*/
|
|
98
|
+
stroke?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The field that contains the type configuration.
|
|
101
|
+
*/
|
|
102
|
+
type?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The field that contains the visual configuration.
|
|
105
|
+
*/
|
|
106
|
+
visual?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The field that contains the width value.
|
|
109
|
+
*/
|
|
110
|
+
width?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The field that contains the x coordinate.
|
|
113
|
+
*/
|
|
114
|
+
x?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The field that contains the y coordinate.
|
|
117
|
+
*/
|
|
118
|
+
y?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The field that contains the corner radius value.
|
|
121
|
+
*/
|
|
122
|
+
cornerRadius?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The field that contains the center configuration.
|
|
125
|
+
*/
|
|
126
|
+
center?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The field that contains the radius value.
|
|
129
|
+
*/
|
|
130
|
+
radius?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The field that contains the data item reference.
|
|
133
|
+
*/
|
|
134
|
+
dataItem?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The field that contains the tooltip text.
|
|
137
|
+
*/
|
|
138
|
+
tooltipText?: string;
|
|
139
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
* Defines the tooltip configuration for shapes and connections.
|
|
10
|
+
* Controls the visibility, content, and styling of tooltips.
|
|
11
|
+
*/
|
|
12
|
+
export interface TooltipOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Controls whether the tooltip displays when you hover over the item.
|
|
15
|
+
*/
|
|
16
|
+
visible?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Sets custom CSS classes for the Tooltip wrapper element.
|
|
19
|
+
*/
|
|
20
|
+
cssClass?: string;
|
|
21
|
+
}
|
|
@@ -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
|
+
export * from './TooltipTypes.js';
|
|
9
|
+
export * from './DiagramEventTypes.js';
|
|
10
|
+
export * from './ShapeTypes.js';
|
|
11
|
+
export * from './ConnectionTypes.js';
|
|
12
|
+
export * from './DiagramTypes.js';
|
|
@@ -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;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-diagram",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1775209720,version:"14.3.1-develop.3",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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export const packageMetadata = Object.freeze({
|
|
5
|
+
name: '@progress/kendo-react-diagram',
|
|
6
|
+
productName: 'KendoReact',
|
|
7
|
+
productCode: 'KENDOUIREACT',
|
|
8
|
+
productCodes: ['KENDOUIREACT'],
|
|
9
|
+
publishDate: 1775209720,
|
|
10
|
+
version: '14.3.1-develop.3',
|
|
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'
|
|
13
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@progress/kendo-react-diagram",
|
|
3
|
+
"version": "14.3.1-develop.3",
|
|
4
|
+
"description": "React Diagram component. KendoReact Diagram package",
|
|
5
|
+
"author": "Progress",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
|
+
"homepage": "https://www.telerik.com/kendo-react-ui",
|
|
8
|
+
"main": "./index.js",
|
|
9
|
+
"module": "./index.mjs",
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./index.d.mts",
|
|
15
|
+
"default": "./index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"default": "./index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"./package.json": {
|
|
23
|
+
"default": "./package.json"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@progress/kendo-licensing": "^1.7.2",
|
|
29
|
+
"@progress/kendo-react-common": "14.3.1-develop.3",
|
|
30
|
+
"@progress/kendo-diagram-common": "0.0.0-PLACEHOLDER",
|
|
31
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
32
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"prop-types": "^15.6.0"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"Kendo UI",
|
|
39
|
+
"React",
|
|
40
|
+
"Progress",
|
|
41
|
+
"diagram",
|
|
42
|
+
"KendoReact",
|
|
43
|
+
"reactjs",
|
|
44
|
+
"UI",
|
|
45
|
+
"components",
|
|
46
|
+
"React component",
|
|
47
|
+
"Telerik"
|
|
48
|
+
],
|
|
49
|
+
"@progress": {
|
|
50
|
+
"friendlyName": "Diagram",
|
|
51
|
+
"framework": "KendoReact",
|
|
52
|
+
"package": {
|
|
53
|
+
"productName": "KendoReact",
|
|
54
|
+
"productCode": "KENDOUIREACT",
|
|
55
|
+
"publishDate": 1775209720,
|
|
56
|
+
"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"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/telerik/kendo-react.git"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { DiagramNavigationOptions, DiagramDataItem } from '../interfaces/index.js';
|
|
9
|
+
import { ConnectionOptions } from '../interfaces/ConnectionTypes.js';
|
|
10
|
+
import { ShapeOptions } from '../interfaces/ShapeTypes.js';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare const DIAGRAM_CLASSNAME = "k-diagram";
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export declare const DEFAULT_NAVIGABLE_OPTIONS: DiagramNavigationOptions;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export declare const diagramDefaultProps: {
|
|
23
|
+
connections: DiagramDataItem<ConnectionOptions>[];
|
|
24
|
+
shapes: DiagramDataItem<ShapeOptions>[];
|
|
25
|
+
editable: boolean;
|
|
26
|
+
pannable: {
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
showScrollbars: boolean;
|
|
29
|
+
autoHideScrollbars: boolean;
|
|
30
|
+
};
|
|
31
|
+
selectable: boolean;
|
|
32
|
+
zoom: number;
|
|
33
|
+
zoomMax: number;
|
|
34
|
+
zoomMin: number;
|
|
35
|
+
zoomRate: number;
|
|
36
|
+
role: string;
|
|
37
|
+
};
|
package/utils/consts.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={enabled:!0,smallStep:1,largeStep:5},a={connections:[],shapes:[],editable:!0,pannable:{enabled:!0,showScrollbars:!0,autoHideScrollbars:!0},selectable:!0,zoom:1,zoomMax:2,zoomMin:.1,zoomRate:.1,role:"application"};exports.DEFAULT_NAVIGABLE_OPTIONS=e;exports.diagramDefaultProps=a;
|
package/utils/consts.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
const e = { enabled: !0, smallStep: 1, largeStep: 5 }, o = {
|
|
9
|
+
connections: [],
|
|
10
|
+
shapes: [],
|
|
11
|
+
editable: !0,
|
|
12
|
+
pannable: {
|
|
13
|
+
enabled: !0,
|
|
14
|
+
showScrollbars: !0,
|
|
15
|
+
autoHideScrollbars: !0
|
|
16
|
+
},
|
|
17
|
+
selectable: !0,
|
|
18
|
+
zoom: 1,
|
|
19
|
+
zoomMax: 2,
|
|
20
|
+
zoomMin: 0.1,
|
|
21
|
+
zoomRate: 0.1,
|
|
22
|
+
role: "application"
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
e as DEFAULT_NAVIGABLE_OPTIONS,
|
|
26
|
+
o as diagramDefaultProps
|
|
27
|
+
};
|
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export * from './consts.js';
|
|
9
|
+
export * from './navigate.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { DiagramNavigationOptions } from '../interfaces/index.js';
|
|
9
|
+
import { NavigationOptions } from '@progress/kendo-diagram-common';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const normalizeNavigable: (navigable: boolean | DiagramNavigationOptions | undefined) => DiagramNavigationOptions;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare const toNavigationOptions: (nav: DiagramNavigationOptions) => NavigationOptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./consts.js"),o=e=>{var r;return e===void 0||e===!0?t.DEFAULT_NAVIGABLE_OPTIONS:e===!1?{...t.DEFAULT_NAVIGABLE_OPTIONS,enabled:!1}:{...t.DEFAULT_NAVIGABLE_OPTIONS,...e,enabled:(r=e.enabled)!=null?r:!0}},l=e=>({disabled:!e.enabled,smallStep:e.smallStep,largeStep:e.largeStep});exports.normalizeNavigable=o;exports.toNavigationOptions=l;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { DEFAULT_NAVIGABLE_OPTIONS as t } from "./consts.mjs";
|
|
9
|
+
const o = (e) => {
|
|
10
|
+
var r;
|
|
11
|
+
return e === void 0 || e === !0 ? t : e === !1 ? { ...t, enabled: !1 } : {
|
|
12
|
+
...t,
|
|
13
|
+
...e,
|
|
14
|
+
enabled: (r = e.enabled) != null ? r : !0
|
|
15
|
+
};
|
|
16
|
+
}, s = (e) => ({
|
|
17
|
+
disabled: !e.enabled,
|
|
18
|
+
smallStep: e.smallStep,
|
|
19
|
+
largeStep: e.largeStep
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
o as normalizeNavigable,
|
|
23
|
+
s as toNavigationOptions
|
|
24
|
+
};
|