devextreme-react 25.1.7 → 25.2.2-beta
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/cjs/accordion.d.ts +100 -100
- package/cjs/accordion.js +103 -103
- package/cjs/action-sheet.d.ts +79 -79
- package/cjs/action-sheet.js +91 -91
- package/cjs/autocomplete.d.ts +651 -651
- package/cjs/autocomplete.js +347 -347
- package/cjs/bar-gauge.d.ts +698 -698
- package/cjs/bar-gauge.js +410 -410
- package/cjs/box.d.ts +77 -77
- package/cjs/box.js +90 -90
- package/cjs/bullet.d.ts +205 -205
- package/cjs/bullet.js +155 -155
- package/cjs/button-group.d.ts +64 -64
- package/cjs/button-group.js +91 -91
- package/cjs/button.d.ts +30 -30
- package/cjs/button.js +61 -61
- package/cjs/calendar.d.ts +33 -33
- package/cjs/calendar.js +68 -68
- package/cjs/card-view.d.ts +2749 -2687
- package/cjs/card-view.js +1439 -1411
- package/cjs/chart.d.ts +4467 -4467
- package/cjs/chart.js +1569 -1569
- package/cjs/chat.d.ts +349 -190
- package/cjs/chat.js +215 -180
- package/cjs/check-box.d.ts +30 -30
- package/cjs/check-box.js +59 -59
- package/cjs/circular-gauge.d.ts +720 -720
- package/cjs/circular-gauge.js +427 -427
- package/cjs/color-box.d.ts +645 -625
- package/cjs/color-box.js +345 -323
- package/cjs/common/ai-integration.d.ts +3 -3
- package/cjs/common/ai-integration.js +7 -7
- package/cjs/common/charts.d.ts +3 -3
- package/cjs/common/charts.js +8 -8
- package/cjs/common/core/animation.d.ts +3 -3
- package/cjs/common/core/animation.js +11 -11
- package/cjs/common/core/environment.d.ts +3 -3
- package/cjs/common/core/environment.js +9 -9
- package/cjs/common/core/events.d.ts +3 -3
- package/cjs/common/core/events.js +10 -10
- package/cjs/common/core/index.d.ts +6 -6
- package/cjs/common/core/index.js +32 -32
- package/cjs/common/core/localization.d.ts +3 -3
- package/cjs/common/core/localization.js +13 -13
- package/cjs/common/data/custom-store.d.ts +3 -3
- package/cjs/common/data/custom-store.js +9 -9
- package/cjs/common/data.d.ts +3 -3
- package/cjs/common/data.js +25 -25
- package/cjs/common/export/excel.d.ts +3 -3
- package/cjs/common/export/excel.js +8 -8
- package/cjs/common/export/index.d.ts +4 -4
- package/cjs/common/export/index.js +30 -30
- package/cjs/common/export/pdf.d.ts +3 -3
- package/cjs/common/export/pdf.js +8 -8
- package/cjs/common/grids.d.ts +3 -3
- package/cjs/common/grids.js +4 -4
- package/cjs/common/index.d.ts +9 -9
- package/cjs/common/index.js +38 -38
- package/cjs/context-menu.d.ts +350 -350
- package/cjs/context-menu.js +295 -295
- package/cjs/core/component-base.d.ts +39 -39
- package/cjs/core/component-base.js +348 -344
- package/cjs/core/component.d.ts +42 -42
- package/cjs/core/component.js +85 -83
- package/cjs/core/config.d.ts +9 -9
- package/cjs/core/config.js +16 -16
- package/cjs/core/configuration/comparer.d.ts +12 -12
- package/cjs/core/configuration/comparer.js +101 -96
- package/cjs/core/configuration/config-node.d.ts +17 -33
- package/cjs/core/configuration/config-node.js +107 -105
- package/cjs/core/configuration/react/element.d.ts +36 -36
- package/cjs/core/configuration/react/element.js +52 -52
- package/cjs/core/configuration/react/templates.d.ts +7 -7
- package/cjs/core/configuration/react/templates.js +61 -61
- package/cjs/core/configuration/tree.d.ts +22 -22
- package/cjs/core/configuration/tree.js +118 -117
- package/cjs/core/configuration/utils.d.ts +16 -16
- package/cjs/core/configuration/utils.js +39 -38
- package/cjs/core/const.d.ts +3 -3
- package/cjs/core/const.js +78 -78
- package/cjs/core/contexts.d.ts +25 -25
- package/cjs/core/contexts.js +22 -21
- package/cjs/core/extension-component.d.ts +26 -26
- package/cjs/core/extension-component.js +66 -64
- package/cjs/core/helpers.d.ts +30 -30
- package/cjs/core/helpers.js +65 -64
- package/cjs/core/nested-option.d.ts +15 -15
- package/cjs/core/nested-option.js +60 -59
- package/cjs/core/options-manager.d.ts +35 -36
- package/cjs/core/options-manager.js +227 -223
- package/cjs/core/template-manager.d.ts +5 -5
- package/cjs/core/template-manager.js +164 -163
- package/cjs/core/template-wrapper.d.ts +5 -5
- package/cjs/core/template-wrapper.js +121 -120
- package/cjs/core/template.d.ts +21 -21
- package/cjs/core/template.js +33 -33
- package/cjs/core/types.d.ts +80 -64
- package/cjs/core/types.js +4 -4
- package/cjs/core/use-option-scanning.d.ts +9 -9
- package/cjs/core/use-option-scanning.js +50 -50
- package/cjs/core/widget-config.d.ts +11 -11
- package/cjs/core/widget-config.js +78 -76
- package/cjs/data-grid.d.ts +3897 -3551
- package/cjs/data-grid.js +1610 -1492
- package/cjs/date-box.d.ts +755 -753
- package/cjs/date-box.js +354 -354
- package/cjs/date-range-box.d.ts +759 -757
- package/cjs/date-range-box.js +355 -355
- package/cjs/diagram.d.ts +661 -661
- package/cjs/diagram.js +478 -478
- package/cjs/draggable.d.ts +43 -43
- package/cjs/draggable.js +78 -78
- package/cjs/drawer.d.ts +30 -30
- package/cjs/drawer.js +67 -67
- package/cjs/drop-down-box.d.ts +645 -625
- package/cjs/drop-down-box.js +349 -327
- package/cjs/drop-down-button.d.ts +560 -560
- package/cjs/drop-down-button.js +306 -306
- package/cjs/file-manager.d.ts +302 -302
- package/cjs/file-manager.js +233 -233
- package/cjs/file-uploader.d.ts +39 -39
- package/cjs/file-uploader.js +59 -59
- package/cjs/filter-builder.d.ts +216 -216
- package/cjs/filter-builder.js +156 -156
- package/cjs/form.d.ts +1020 -990
- package/cjs/form.js +527 -513
- package/cjs/funnel.d.ts +898 -898
- package/cjs/funnel.js +479 -479
- package/cjs/gallery.d.ts +79 -79
- package/cjs/gallery.js +92 -92
- package/cjs/gantt.d.ts +1029 -798
- package/cjs/gantt.js +564 -497
- package/cjs/html-editor.d.ts +480 -480
- package/cjs/html-editor.js +302 -302
- package/cjs/index.d.ts +87 -87
- package/cjs/index.js +198 -198
- package/cjs/linear-gauge.d.ts +734 -734
- package/cjs/linear-gauge.js +432 -432
- package/cjs/list.d.ts +416 -416
- package/cjs/list.js +196 -196
- package/cjs/load-indicator.d.ts +26 -26
- package/cjs/load-indicator.js +53 -53
- package/cjs/load-panel.d.ts +270 -253
- package/cjs/load-panel.js +237 -224
- package/cjs/lookup.d.ts +483 -483
- package/cjs/lookup.js +339 -339
- package/cjs/map.d.ts +156 -156
- package/cjs/map.js +164 -164
- package/cjs/menu.d.ts +355 -355
- package/cjs/menu.js +296 -296
- package/cjs/multi-view.d.ts +77 -77
- package/cjs/multi-view.js +92 -92
- package/cjs/number-box.d.ts +142 -142
- package/cjs/number-box.js +110 -110
- package/cjs/pagination.d.ts +22 -22
- package/cjs/pagination.js +60 -60
- package/cjs/pie-chart.d.ts +1449 -1449
- package/cjs/pie-chart.js +637 -637
- package/cjs/pivot-grid-field-chooser.d.ts +133 -133
- package/cjs/pivot-grid-field-chooser.js +125 -125
- package/cjs/pivot-grid.d.ts +350 -350
- package/cjs/pivot-grid.js +235 -235
- package/cjs/polar-chart.d.ts +3176 -3176
- package/cjs/polar-chart.js +1199 -1199
- package/cjs/popover.d.ts +331 -331
- package/cjs/popover.js +288 -288
- package/cjs/popup.d.ts +293 -293
- package/cjs/popup.js +262 -262
- package/cjs/progress-bar.d.ts +31 -31
- package/cjs/progress-bar.js +59 -59
- package/cjs/radio-group.d.ts +56 -56
- package/cjs/radio-group.js +90 -90
- package/cjs/range-selector.d.ts +2446 -2446
- package/cjs/range-selector.js +961 -961
- package/cjs/range-slider.d.ts +82 -82
- package/cjs/range-slider.js +107 -107
- package/cjs/recurrence-editor.d.ts +30 -30
- package/cjs/recurrence-editor.js +59 -59
- package/cjs/resizable.d.ts +33 -33
- package/cjs/resizable.js +60 -60
- package/cjs/responsive-box.d.ts +133 -133
- package/cjs/responsive-box.js +134 -134
- package/cjs/sankey.d.ts +610 -610
- package/cjs/sankey.js +352 -352
- package/cjs/scheduler.d.ts +1619 -549
- package/cjs/scheduler.js +775 -320
- package/cjs/scroll-view.d.ts +29 -29
- package/cjs/scroll-view.js +53 -53
- package/cjs/select-box.d.ts +674 -654
- package/cjs/select-box.js +374 -352
- package/cjs/slider.d.ts +82 -82
- package/cjs/slider.js +107 -107
- package/cjs/sortable.d.ts +47 -47
- package/cjs/sortable.js +78 -78
- package/cjs/sparkline.d.ts +205 -205
- package/cjs/sparkline.js +155 -155
- package/cjs/speech-to-text.d.ts +72 -0
- package/cjs/speech-to-text.js +94 -0
- package/cjs/speed-dial-action.d.ts +27 -27
- package/cjs/speed-dial-action.js +53 -53
- package/cjs/splitter.d.ts +85 -85
- package/cjs/splitter.js +90 -90
- package/cjs/stepper.d.ts +82 -82
- package/cjs/stepper.js +92 -92
- package/cjs/switch.d.ts +30 -30
- package/cjs/switch.js +59 -59
- package/cjs/tab-panel.d.ts +97 -97
- package/cjs/tab-panel.js +101 -101
- package/cjs/tabs.d.ts +90 -90
- package/cjs/tabs.js +94 -94
- package/cjs/tag-box.d.ts +675 -655
- package/cjs/tag-box.js +379 -357
- package/cjs/text-area.d.ts +40 -40
- package/cjs/text-area.js +59 -59
- package/cjs/text-box.d.ts +122 -122
- package/cjs/text-box.js +97 -97
- package/cjs/tile-view.d.ts +73 -73
- package/cjs/tile-view.js +90 -90
- package/cjs/toast.d.ts +255 -255
- package/cjs/toast.js +232 -232
- package/cjs/toolbar.d.ts +91 -91
- package/cjs/toolbar.js +99 -99
- package/cjs/tooltip.d.ts +283 -283
- package/cjs/tooltip.js +260 -260
- package/cjs/tree-list.d.ts +3453 -3093
- package/cjs/tree-list.js +1409 -1291
- package/cjs/tree-map.d.ts +586 -586
- package/cjs/tree-map.js +382 -382
- package/cjs/tree-view.d.ts +290 -290
- package/cjs/tree-view.js +145 -145
- package/cjs/validation-group.d.ts +25 -25
- package/cjs/validation-group.js +53 -53
- package/cjs/validation-summary.d.ts +66 -66
- package/cjs/validation-summary.js +90 -90
- package/cjs/validator.d.ts +271 -271
- package/cjs/validator.js +243 -243
- package/cjs/vector-map.d.ts +987 -987
- package/cjs/vector-map.js +487 -487
- package/esm/accordion.js +73 -73
- package/esm/action-sheet.js +61 -61
- package/esm/autocomplete.js +302 -302
- package/esm/bar-gauge.js +359 -359
- package/esm/box.js +60 -60
- package/esm/bullet.js +119 -119
- package/esm/button-group.js +61 -61
- package/esm/button.js +32 -32
- package/esm/calendar.js +39 -39
- package/esm/card-view.js +1332 -1306
- package/esm/chart.js +1447 -1447
- package/esm/chat.js +176 -143
- package/esm/check-box.js +30 -30
- package/esm/circular-gauge.js +374 -374
- package/esm/color-box.js +300 -279
- package/esm/common/ai-integration.js +3 -3
- package/esm/common/charts.js +3 -3
- package/esm/common/core/animation.js +3 -3
- package/esm/common/core/environment.js +3 -3
- package/esm/common/core/events.js +3 -3
- package/esm/common/core/index.js +6 -6
- package/esm/common/core/localization.js +3 -3
- package/esm/common/data/custom-store.js +3 -3
- package/esm/common/data.js +3 -3
- package/esm/common/export/excel.js +3 -3
- package/esm/common/export/index.js +4 -4
- package/esm/common/export/pdf.js +3 -3
- package/esm/common/grids.js +3 -3
- package/esm/common/index.js +9 -9
- package/esm/context-menu.js +251 -251
- package/esm/core/component-base.js +318 -314
- package/esm/core/component.js +59 -57
- package/esm/core/config.js +13 -13
- package/esm/core/configuration/comparer.js +97 -92
- package/esm/core/configuration/config-node.js +80 -78
- package/esm/core/configuration/react/element.js +47 -47
- package/esm/core/configuration/react/templates.js +57 -57
- package/esm/core/configuration/tree.js +110 -109
- package/esm/core/configuration/utils.js +32 -31
- package/esm/core/const.js +75 -75
- package/esm/core/contexts.js +19 -18
- package/esm/core/extension-component.js +39 -37
- package/esm/core/helpers.js +57 -56
- package/esm/core/nested-option.js +35 -34
- package/esm/core/options-manager.js +222 -218
- package/esm/core/template-manager.js +137 -136
- package/esm/core/template-wrapper.js +95 -94
- package/esm/core/template.js +29 -29
- package/esm/core/types.js +3 -3
- package/esm/core/use-option-scanning.js +46 -46
- package/esm/core/widget-config.js +73 -71
- package/esm/data-grid.js +1486 -1375
- package/esm/date-box.js +308 -308
- package/esm/date-range-box.js +309 -309
- package/esm/diagram.js +423 -423
- package/esm/draggable.js +48 -48
- package/esm/drawer.js +38 -38
- package/esm/drop-down-box.js +304 -283
- package/esm/drop-down-button.js +263 -263
- package/esm/file-manager.js +192 -192
- package/esm/file-uploader.js +30 -30
- package/esm/filter-builder.js +121 -121
- package/esm/form.js +475 -462
- package/esm/funnel.js +423 -423
- package/esm/gallery.js +62 -62
- package/esm/gantt.js +505 -442
- package/esm/html-editor.js +259 -259
- package/esm/index.js +87 -87
- package/esm/linear-gauge.js +378 -378
- package/esm/list.js +160 -160
- package/esm/load-indicator.js +24 -24
- package/esm/load-panel.js +196 -184
- package/esm/lookup.js +294 -294
- package/esm/map.js +128 -128
- package/esm/menu.js +252 -252
- package/esm/multi-view.js +62 -62
- package/esm/number-box.js +78 -78
- package/esm/pagination.js +31 -31
- package/esm/pie-chart.js +573 -573
- package/esm/pivot-grid-field-chooser.js +91 -91
- package/esm/pivot-grid.js +193 -193
- package/esm/polar-chart.js +1099 -1099
- package/esm/popover.js +245 -245
- package/esm/popup.js +221 -221
- package/esm/progress-bar.js +30 -30
- package/esm/radio-group.js +60 -60
- package/esm/range-selector.js +871 -871
- package/esm/range-slider.js +75 -75
- package/esm/recurrence-editor.js +30 -30
- package/esm/resizable.js +31 -31
- package/esm/responsive-box.js +101 -101
- package/esm/sankey.js +304 -304
- package/esm/scheduler.js +713 -281
- package/esm/scroll-view.js +24 -24
- package/esm/select-box.js +328 -307
- package/esm/slider.js +75 -75
- package/esm/sortable.js +48 -48
- package/esm/sparkline.js +119 -119
- package/esm/speech-to-text.js +63 -0
- package/esm/speed-dial-action.js +24 -24
- package/esm/splitter.js +60 -60
- package/esm/stepper.js +62 -62
- package/esm/switch.js +30 -30
- package/esm/tab-panel.js +71 -71
- package/esm/tabs.js +64 -64
- package/esm/tag-box.js +333 -312
- package/esm/text-area.js +30 -30
- package/esm/text-box.js +66 -66
- package/esm/tile-view.js +60 -60
- package/esm/toast.js +192 -192
- package/esm/toolbar.js +69 -69
- package/esm/tooltip.js +218 -218
- package/esm/tree-list.js +1297 -1186
- package/esm/tree-map.js +332 -332
- package/esm/tree-view.js +112 -112
- package/esm/validation-group.js +24 -24
- package/esm/validation-summary.js +60 -60
- package/esm/validator.js +203 -203
- package/esm/vector-map.js +432 -432
- package/package.json +14 -18
- package/speech-to-text/package.json +6 -0
- package/cjs/defer-rendering.d.ts +0 -217
- package/cjs/defer-rendering.js +0 -194
- package/defer-rendering/package.json +0 -6
- package/esm/defer-rendering.js +0 -156
package/cjs/diagram.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* devextreme-react
|
|
3
|
-
* Version: 25.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 25.2.2-beta
|
|
4
|
+
* Build date: Thu Nov 20 2025
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
*
|
|
@@ -11,662 +11,662 @@
|
|
|
11
11
|
* https://github.com/DevExpress/devextreme-react
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import * as React from "react";
|
|
15
|
-
import { Ref, ReactElement } from "react";
|
|
16
|
-
import dxDiagram, { Properties } from "devextreme/ui/diagram";
|
|
17
|
-
import { IHtmlOptions, NestedComponentMeta } from "./core/component";
|
|
18
|
-
import type { ContentReadyEvent, CustomCommandEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemDblClickEvent, RequestEditOperationEvent, RequestLayoutUpdateEvent, DataLayoutType, Command as DiagramCommand, CustomCommand, ShapeCategory, ToolboxDisplayMode, ShapeType, dxDiagramShape, ConnectorLineEnd, ConnectorLineType, PanelVisibility } from "devextreme/ui/diagram";
|
|
19
|
-
import type { Orientation, ToolbarItemLocation, template } from "devextreme/common";
|
|
20
|
-
import type { dxSVGElement } from "devextreme/core/element";
|
|
21
|
-
import type { DataSourceOptions } from "devextreme/data/data_source";
|
|
22
|
-
import type { Store } from "devextreme/data/store";
|
|
23
|
-
import type DataSource from "devextreme/data/data_source";
|
|
24
|
-
type ReplaceFieldTypes<TSource, TReplacement> = {
|
|
25
|
-
[P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
|
|
26
|
-
};
|
|
27
|
-
type IDiagramOptionsNarrowedEvents = {
|
|
28
|
-
onContentReady?: ((e: ContentReadyEvent) => void);
|
|
29
|
-
onCustomCommand?: ((e: CustomCommandEvent) => void);
|
|
30
|
-
onDisposing?: ((e: DisposingEvent) => void);
|
|
31
|
-
onInitialized?: ((e: InitializedEvent) => void);
|
|
32
|
-
onItemClick?: ((e: ItemClickEvent) => void);
|
|
33
|
-
onItemDblClick?: ((e: ItemDblClickEvent) => void);
|
|
34
|
-
onRequestEditOperation?: ((e: RequestEditOperationEvent) => void);
|
|
35
|
-
onRequestLayoutUpdate?: ((e: RequestLayoutUpdateEvent) => void);
|
|
36
|
-
};
|
|
37
|
-
type IDiagramOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IDiagramOptionsNarrowedEvents> & IHtmlOptions & {
|
|
38
|
-
customShapeRender?: (...params: any) => React.ReactNode;
|
|
39
|
-
customShapeComponent?: React.ComponentType<any>;
|
|
40
|
-
customShapeToolboxRender?: (...params: any) => React.ReactNode;
|
|
41
|
-
customShapeToolboxComponent?: React.ComponentType<any>;
|
|
42
|
-
defaultGridSize?: number | Record<string, any>;
|
|
43
|
-
defaultPageSize?: Record<string, any>;
|
|
44
|
-
defaultZoomLevel?: number | Record<string, any>;
|
|
45
|
-
onGridSizeChange?: (value: number | Record<string, any>) => void;
|
|
46
|
-
onPageSizeChange?: (value: Record<string, any>) => void;
|
|
47
|
-
onZoomLevelChange?: (value: number | Record<string, any>) => void;
|
|
48
|
-
}>;
|
|
49
|
-
interface DiagramRef {
|
|
50
|
-
instance: () => dxDiagram;
|
|
51
|
-
}
|
|
52
|
-
declare const Diagram: (props: React.PropsWithChildren<IDiagramOptions> & {
|
|
53
|
-
ref?: Ref<DiagramRef>;
|
|
54
|
-
}) => ReactElement | null;
|
|
55
|
-
type IAutoLayoutProps = React.PropsWithChildren<{
|
|
56
|
-
orientation?: Orientation;
|
|
57
|
-
type?: DataLayoutType;
|
|
58
|
-
}>;
|
|
59
|
-
declare const AutoLayout: ((props: IAutoLayoutProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
60
|
-
orientation?: Orientation | undefined;
|
|
61
|
-
type?: DataLayoutType | undefined;
|
|
62
|
-
} & {
|
|
63
|
-
children?: React.ReactNode;
|
|
64
|
-
} & {
|
|
65
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
66
|
-
}>>) & NestedComponentMeta;
|
|
67
|
-
type ICommandProps = React.PropsWithChildren<{
|
|
68
|
-
icon?: string;
|
|
69
|
-
items?: Array<DiagramCommand | CustomCommand>;
|
|
70
|
-
location?: ToolbarItemLocation;
|
|
71
|
-
name?: DiagramCommand | string;
|
|
72
|
-
text?: string;
|
|
73
|
-
}>;
|
|
74
|
-
declare const Command: ((props: ICommandProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
75
|
-
icon?: string | undefined;
|
|
76
|
-
items?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
77
|
-
location?: ToolbarItemLocation | undefined;
|
|
78
|
-
name?: string | undefined;
|
|
79
|
-
text?: string | undefined;
|
|
80
|
-
} & {
|
|
81
|
-
children?: React.ReactNode;
|
|
82
|
-
} & {
|
|
83
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
84
|
-
}>>) & NestedComponentMeta;
|
|
85
|
-
type ICommandItemProps = React.PropsWithChildren<{
|
|
86
|
-
icon?: string;
|
|
87
|
-
items?: Array<DiagramCommand | CustomCommand>;
|
|
88
|
-
location?: ToolbarItemLocation;
|
|
89
|
-
name?: DiagramCommand | string;
|
|
90
|
-
text?: string;
|
|
91
|
-
}>;
|
|
92
|
-
declare const CommandItem: ((props: ICommandItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
93
|
-
icon?: string | undefined;
|
|
94
|
-
items?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
95
|
-
location?: ToolbarItemLocation | undefined;
|
|
96
|
-
name?: string | undefined;
|
|
97
|
-
text?: string | undefined;
|
|
98
|
-
} & {
|
|
99
|
-
children?: React.ReactNode;
|
|
100
|
-
} & {
|
|
101
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
102
|
-
}>>) & NestedComponentMeta;
|
|
103
|
-
type IConnectionPointProps = React.PropsWithChildren<{
|
|
104
|
-
x?: number;
|
|
105
|
-
y?: number;
|
|
106
|
-
}>;
|
|
107
|
-
declare const ConnectionPoint: ((props: IConnectionPointProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
108
|
-
x?: number | undefined;
|
|
109
|
-
y?: number | undefined;
|
|
110
|
-
} & {
|
|
111
|
-
children?: React.ReactNode;
|
|
112
|
-
} & {
|
|
113
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
114
|
-
}>>) & NestedComponentMeta;
|
|
115
|
-
type IContextMenuProps = React.PropsWithChildren<{
|
|
116
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
117
|
-
enabled?: boolean;
|
|
118
|
-
}>;
|
|
119
|
-
declare const ContextMenu: ((props: IContextMenuProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
120
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
121
|
-
enabled?: boolean | undefined;
|
|
122
|
-
} & {
|
|
123
|
-
children?: React.ReactNode;
|
|
124
|
-
} & {
|
|
125
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
126
|
-
}>>) & NestedComponentMeta;
|
|
127
|
-
type IContextToolboxProps = React.PropsWithChildren<{
|
|
128
|
-
category?: ShapeCategory | string;
|
|
129
|
-
displayMode?: ToolboxDisplayMode;
|
|
130
|
-
enabled?: boolean;
|
|
131
|
-
shapeIconsPerRow?: number;
|
|
132
|
-
shapes?: Array<ShapeType>;
|
|
133
|
-
width?: number;
|
|
134
|
-
}>;
|
|
135
|
-
declare const ContextToolbox: ((props: IContextToolboxProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
136
|
-
category?: string | undefined;
|
|
137
|
-
displayMode?: ToolboxDisplayMode | undefined;
|
|
138
|
-
enabled?: boolean | undefined;
|
|
139
|
-
shapeIconsPerRow?: number | undefined;
|
|
140
|
-
shapes?: ShapeType[] | undefined;
|
|
141
|
-
width?: number | undefined;
|
|
142
|
-
} & {
|
|
143
|
-
children?: React.ReactNode;
|
|
144
|
-
} & {
|
|
145
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
146
|
-
}>>) & NestedComponentMeta;
|
|
147
|
-
type ICustomShapeProps = React.PropsWithChildren<{
|
|
148
|
-
allowEditImage?: boolean;
|
|
149
|
-
allowEditText?: boolean;
|
|
150
|
-
allowResize?: boolean;
|
|
151
|
-
backgroundImageHeight?: number;
|
|
152
|
-
backgroundImageLeft?: number;
|
|
153
|
-
backgroundImageToolboxUrl?: string;
|
|
154
|
-
backgroundImageTop?: number;
|
|
155
|
-
backgroundImageUrl?: string;
|
|
156
|
-
backgroundImageWidth?: number;
|
|
157
|
-
baseType?: ShapeType | string;
|
|
158
|
-
category?: string;
|
|
159
|
-
connectionPoints?: Array<Record<string, any>> | {
|
|
160
|
-
x?: number;
|
|
161
|
-
y?: number;
|
|
162
|
-
}[];
|
|
163
|
-
defaultHeight?: number;
|
|
164
|
-
defaultImageUrl?: string;
|
|
165
|
-
defaultText?: string;
|
|
166
|
-
defaultWidth?: number;
|
|
167
|
-
imageHeight?: number;
|
|
168
|
-
imageLeft?: number;
|
|
169
|
-
imageTop?: number;
|
|
170
|
-
imageWidth?: number;
|
|
171
|
-
keepRatioOnAutoSize?: boolean;
|
|
172
|
-
maxHeight?: number;
|
|
173
|
-
maxWidth?: number;
|
|
174
|
-
minHeight?: number;
|
|
175
|
-
minWidth?: number;
|
|
176
|
-
template?: ((container: dxSVGElement, data: {
|
|
177
|
-
item: dxDiagramShape;
|
|
178
|
-
}) => void) | template;
|
|
179
|
-
templateHeight?: number;
|
|
180
|
-
templateLeft?: number;
|
|
181
|
-
templateTop?: number;
|
|
182
|
-
templateWidth?: number;
|
|
183
|
-
textHeight?: number;
|
|
184
|
-
textLeft?: number;
|
|
185
|
-
textTop?: number;
|
|
186
|
-
textWidth?: number;
|
|
187
|
-
title?: string;
|
|
188
|
-
toolboxTemplate?: ((container: dxSVGElement, data: {
|
|
189
|
-
item: dxDiagramShape;
|
|
190
|
-
}) => void) | template;
|
|
191
|
-
toolboxWidthToHeightRatio?: number;
|
|
192
|
-
type?: string;
|
|
193
|
-
render?: (...params: any) => React.ReactNode;
|
|
194
|
-
component?: React.ComponentType<any>;
|
|
195
|
-
toolboxRender?: (...params: any) => React.ReactNode;
|
|
196
|
-
toolboxComponent?: React.ComponentType<any>;
|
|
197
|
-
}>;
|
|
198
|
-
declare const CustomShape: ((props: ICustomShapeProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
199
|
-
allowEditImage?: boolean | undefined;
|
|
200
|
-
allowEditText?: boolean | undefined;
|
|
201
|
-
allowResize?: boolean | undefined;
|
|
202
|
-
backgroundImageHeight?: number | undefined;
|
|
203
|
-
backgroundImageLeft?: number | undefined;
|
|
204
|
-
backgroundImageToolboxUrl?: string | undefined;
|
|
205
|
-
backgroundImageTop?: number | undefined;
|
|
206
|
-
backgroundImageUrl?: string | undefined;
|
|
207
|
-
backgroundImageWidth?: number | undefined;
|
|
208
|
-
baseType?: string | undefined;
|
|
209
|
-
category?: string | undefined;
|
|
210
|
-
connectionPoints?: Record<string, any>[] | {
|
|
211
|
-
x?: number | undefined;
|
|
212
|
-
y?: number | undefined;
|
|
213
|
-
}[] | undefined;
|
|
214
|
-
defaultHeight?: number | undefined;
|
|
215
|
-
defaultImageUrl?: string | undefined;
|
|
216
|
-
defaultText?: string | undefined;
|
|
217
|
-
defaultWidth?: number | undefined;
|
|
218
|
-
imageHeight?: number | undefined;
|
|
219
|
-
imageLeft?: number | undefined;
|
|
220
|
-
imageTop?: number | undefined;
|
|
221
|
-
imageWidth?: number | undefined;
|
|
222
|
-
keepRatioOnAutoSize?: boolean | undefined;
|
|
223
|
-
maxHeight?: number | undefined;
|
|
224
|
-
maxWidth?: number | undefined;
|
|
225
|
-
minHeight?: number | undefined;
|
|
226
|
-
minWidth?: number | undefined;
|
|
227
|
-
template?: template | ((container: dxSVGElement, data: {
|
|
228
|
-
item: dxDiagramShape;
|
|
229
|
-
}) => void) | undefined;
|
|
230
|
-
templateHeight?: number | undefined;
|
|
231
|
-
templateLeft?: number | undefined;
|
|
232
|
-
templateTop?: number | undefined;
|
|
233
|
-
templateWidth?: number | undefined;
|
|
234
|
-
textHeight?: number | undefined;
|
|
235
|
-
textLeft?: number | undefined;
|
|
236
|
-
textTop?: number | undefined;
|
|
237
|
-
textWidth?: number | undefined;
|
|
238
|
-
title?: string | undefined;
|
|
239
|
-
toolboxTemplate?: template | ((container: dxSVGElement, data: {
|
|
240
|
-
item: dxDiagramShape;
|
|
241
|
-
}) => void) | undefined;
|
|
242
|
-
toolboxWidthToHeightRatio?: number | undefined;
|
|
243
|
-
type?: string | undefined;
|
|
244
|
-
render?: ((...params: any) => React.ReactNode) | undefined;
|
|
245
|
-
component?: React.ComponentType<any> | undefined;
|
|
246
|
-
toolboxRender?: ((...params: any) => React.ReactNode) | undefined;
|
|
247
|
-
toolboxComponent?: React.ComponentType<any> | undefined;
|
|
248
|
-
} & {
|
|
249
|
-
children?: React.ReactNode;
|
|
250
|
-
} & {
|
|
251
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
252
|
-
}>>) & NestedComponentMeta;
|
|
253
|
-
type IDefaultItemPropertiesProps = React.PropsWithChildren<{
|
|
254
|
-
connectorLineEnd?: ConnectorLineEnd;
|
|
255
|
-
connectorLineStart?: ConnectorLineEnd;
|
|
256
|
-
connectorLineType?: ConnectorLineType;
|
|
257
|
-
shapeMaxHeight?: number | undefined;
|
|
258
|
-
shapeMaxWidth?: number | undefined;
|
|
259
|
-
shapeMinHeight?: number | undefined;
|
|
260
|
-
shapeMinWidth?: number | undefined;
|
|
261
|
-
style?: Record<string, any>;
|
|
262
|
-
textStyle?: Record<string, any>;
|
|
263
|
-
}>;
|
|
264
|
-
declare const DefaultItemProperties: ((props: IDefaultItemPropertiesProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
265
|
-
connectorLineEnd?: ConnectorLineEnd | undefined;
|
|
266
|
-
connectorLineStart?: ConnectorLineEnd | undefined;
|
|
267
|
-
connectorLineType?: ConnectorLineType | undefined;
|
|
268
|
-
shapeMaxHeight?: number | undefined;
|
|
269
|
-
shapeMaxWidth?: number | undefined;
|
|
270
|
-
shapeMinHeight?: number | undefined;
|
|
271
|
-
shapeMinWidth?: number | undefined;
|
|
272
|
-
style?: Record<string, any> | undefined;
|
|
273
|
-
textStyle?: Record<string, any> | undefined;
|
|
274
|
-
} & {
|
|
275
|
-
children?: React.ReactNode;
|
|
276
|
-
} & {
|
|
277
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
278
|
-
}>>) & NestedComponentMeta;
|
|
279
|
-
type IEdgesProps = React.PropsWithChildren<{
|
|
280
|
-
customDataExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
281
|
-
dataSource?: Array<any> | DataSource | DataSourceOptions | null | Store | string;
|
|
282
|
-
fromExpr?: ((data: any, value: any) => any) | string;
|
|
283
|
-
fromLineEndExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
284
|
-
fromPointIndexExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
285
|
-
keyExpr?: ((data: any, value: any) => any) | string;
|
|
286
|
-
lineTypeExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
287
|
-
lockedExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
288
|
-
pointsExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
289
|
-
styleExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
290
|
-
textExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
291
|
-
textStyleExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
292
|
-
toExpr?: ((data: any, value: any) => any) | string;
|
|
293
|
-
toLineEndExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
294
|
-
toPointIndexExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
295
|
-
zIndexExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
296
|
-
}>;
|
|
297
|
-
declare const Edges: ((props: IEdgesProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
298
|
-
customDataExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
299
|
-
dataSource?: string | any[] | DataSource<any, any> | DataSourceOptions<any, any, any, any> | Store<any, any> | null | undefined;
|
|
300
|
-
fromExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
301
|
-
fromLineEndExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
302
|
-
fromPointIndexExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
303
|
-
keyExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
304
|
-
lineTypeExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
305
|
-
lockedExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
306
|
-
pointsExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
307
|
-
styleExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
308
|
-
textExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
309
|
-
textStyleExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
310
|
-
toExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
311
|
-
toLineEndExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
312
|
-
toPointIndexExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
313
|
-
zIndexExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
314
|
-
} & {
|
|
315
|
-
children?: React.ReactNode;
|
|
316
|
-
} & {
|
|
317
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
318
|
-
}>>) & NestedComponentMeta;
|
|
319
|
-
type IEditingProps = React.PropsWithChildren<{
|
|
320
|
-
allowAddShape?: boolean;
|
|
321
|
-
allowChangeConnection?: boolean;
|
|
322
|
-
allowChangeConnectorPoints?: boolean;
|
|
323
|
-
allowChangeConnectorText?: boolean;
|
|
324
|
-
allowChangeShapeText?: boolean;
|
|
325
|
-
allowDeleteConnector?: boolean;
|
|
326
|
-
allowDeleteShape?: boolean;
|
|
327
|
-
allowMoveShape?: boolean;
|
|
328
|
-
allowResizeShape?: boolean;
|
|
329
|
-
}>;
|
|
330
|
-
declare const Editing: ((props: IEditingProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
331
|
-
allowAddShape?: boolean | undefined;
|
|
332
|
-
allowChangeConnection?: boolean | undefined;
|
|
333
|
-
allowChangeConnectorPoints?: boolean | undefined;
|
|
334
|
-
allowChangeConnectorText?: boolean | undefined;
|
|
335
|
-
allowChangeShapeText?: boolean | undefined;
|
|
336
|
-
allowDeleteConnector?: boolean | undefined;
|
|
337
|
-
allowDeleteShape?: boolean | undefined;
|
|
338
|
-
allowMoveShape?: boolean | undefined;
|
|
339
|
-
allowResizeShape?: boolean | undefined;
|
|
340
|
-
} & {
|
|
341
|
-
children?: React.ReactNode;
|
|
342
|
-
} & {
|
|
343
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
344
|
-
}>>) & NestedComponentMeta;
|
|
345
|
-
type IExportProps = React.PropsWithChildren<{
|
|
346
|
-
fileName?: string;
|
|
347
|
-
}>;
|
|
348
|
-
declare const Export: ((props: IExportProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
349
|
-
fileName?: string | undefined;
|
|
350
|
-
} & {
|
|
351
|
-
children?: React.ReactNode;
|
|
352
|
-
} & {
|
|
353
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
354
|
-
}>>) & NestedComponentMeta;
|
|
355
|
-
type IGridSizeProps = React.PropsWithChildren<{
|
|
356
|
-
items?: Array<number>;
|
|
357
|
-
value?: number;
|
|
358
|
-
defaultValue?: number;
|
|
359
|
-
onValueChange?: (value: number) => void;
|
|
360
|
-
}>;
|
|
361
|
-
declare const GridSize: ((props: IGridSizeProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
362
|
-
items?: number[] | undefined;
|
|
363
|
-
value?: number | undefined;
|
|
364
|
-
defaultValue?: number | undefined;
|
|
365
|
-
onValueChange?: ((value: number) => void) | undefined;
|
|
366
|
-
} & {
|
|
367
|
-
children?: React.ReactNode;
|
|
368
|
-
} & {
|
|
369
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
370
|
-
}>>) & NestedComponentMeta;
|
|
371
|
-
type IGroupProps = React.PropsWithChildren<{
|
|
372
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
373
|
-
title?: string;
|
|
374
|
-
category?: ShapeCategory | string;
|
|
375
|
-
displayMode?: ToolboxDisplayMode;
|
|
376
|
-
expanded?: boolean;
|
|
377
|
-
shapes?: Array<ShapeType>;
|
|
378
|
-
}>;
|
|
379
|
-
declare const Group: ((props: IGroupProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
380
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
381
|
-
title?: string | undefined;
|
|
382
|
-
category?: string | undefined;
|
|
383
|
-
displayMode?: ToolboxDisplayMode | undefined;
|
|
384
|
-
expanded?: boolean | undefined;
|
|
385
|
-
shapes?: ShapeType[] | undefined;
|
|
386
|
-
} & {
|
|
387
|
-
children?: React.ReactNode;
|
|
388
|
-
} & {
|
|
389
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
390
|
-
}>>) & NestedComponentMeta;
|
|
391
|
-
type IHistoryToolbarProps = React.PropsWithChildren<{
|
|
392
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
393
|
-
visible?: boolean;
|
|
394
|
-
}>;
|
|
395
|
-
declare const HistoryToolbar: ((props: IHistoryToolbarProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
396
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
397
|
-
visible?: boolean | undefined;
|
|
398
|
-
} & {
|
|
399
|
-
children?: React.ReactNode;
|
|
400
|
-
} & {
|
|
401
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
402
|
-
}>>) & NestedComponentMeta;
|
|
403
|
-
type IItemProps = React.PropsWithChildren<{
|
|
404
|
-
icon?: string;
|
|
405
|
-
items?: Array<DiagramCommand | CustomCommand>;
|
|
406
|
-
location?: ToolbarItemLocation;
|
|
407
|
-
name?: DiagramCommand | string;
|
|
408
|
-
text?: string;
|
|
409
|
-
height?: number;
|
|
410
|
-
width?: number;
|
|
411
|
-
}>;
|
|
412
|
-
declare const Item: ((props: IItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
413
|
-
icon?: string | undefined;
|
|
414
|
-
items?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
415
|
-
location?: ToolbarItemLocation | undefined;
|
|
416
|
-
name?: string | undefined;
|
|
417
|
-
text?: string | undefined;
|
|
418
|
-
height?: number | undefined;
|
|
419
|
-
width?: number | undefined;
|
|
420
|
-
} & {
|
|
421
|
-
children?: React.ReactNode;
|
|
422
|
-
} & {
|
|
423
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
424
|
-
}>>) & NestedComponentMeta;
|
|
425
|
-
type IMainToolbarProps = React.PropsWithChildren<{
|
|
426
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
427
|
-
visible?: boolean;
|
|
428
|
-
}>;
|
|
429
|
-
declare const MainToolbar: ((props: IMainToolbarProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
430
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
431
|
-
visible?: boolean | undefined;
|
|
432
|
-
} & {
|
|
433
|
-
children?: React.ReactNode;
|
|
434
|
-
} & {
|
|
435
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
436
|
-
}>>) & NestedComponentMeta;
|
|
437
|
-
type INodesProps = React.PropsWithChildren<{
|
|
438
|
-
autoLayout?: DataLayoutType | Record<string, any> | {
|
|
439
|
-
orientation?: Orientation;
|
|
440
|
-
type?: DataLayoutType;
|
|
441
|
-
};
|
|
442
|
-
autoSizeEnabled?: boolean;
|
|
443
|
-
containerChildrenExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
444
|
-
containerKeyExpr?: ((data: any, value: any) => any) | string;
|
|
445
|
-
customDataExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
446
|
-
dataSource?: Array<any> | DataSource | DataSourceOptions | null | Store | string;
|
|
447
|
-
heightExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
448
|
-
imageUrlExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
449
|
-
itemsExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
450
|
-
keyExpr?: ((data: any, value: any) => any) | string;
|
|
451
|
-
leftExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
452
|
-
lockedExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
453
|
-
parentKeyExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
454
|
-
styleExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
455
|
-
textExpr?: ((data: any, value: any) => any) | string;
|
|
456
|
-
textStyleExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
457
|
-
topExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
458
|
-
typeExpr?: ((data: any, value: any) => any) | string;
|
|
459
|
-
widthExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
460
|
-
zIndexExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
461
|
-
}>;
|
|
462
|
-
declare const Nodes: ((props: INodesProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
463
|
-
autoLayout?: Record<string, any> | DataLayoutType | {
|
|
464
|
-
orientation?: Orientation | undefined;
|
|
465
|
-
type?: DataLayoutType | undefined;
|
|
466
|
-
} | undefined;
|
|
467
|
-
autoSizeEnabled?: boolean | undefined;
|
|
468
|
-
containerChildrenExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
469
|
-
containerKeyExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
470
|
-
customDataExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
471
|
-
dataSource?: string | any[] | DataSource<any, any> | DataSourceOptions<any, any, any, any> | Store<any, any> | null | undefined;
|
|
472
|
-
heightExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
473
|
-
imageUrlExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
474
|
-
itemsExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
475
|
-
keyExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
476
|
-
leftExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
477
|
-
lockedExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
478
|
-
parentKeyExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
479
|
-
styleExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
480
|
-
textExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
481
|
-
textStyleExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
482
|
-
topExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
483
|
-
typeExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
484
|
-
widthExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
485
|
-
zIndexExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
486
|
-
} & {
|
|
487
|
-
children?: React.ReactNode;
|
|
488
|
-
} & {
|
|
489
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
490
|
-
}>>) & NestedComponentMeta;
|
|
491
|
-
type IPageSizeProps = React.PropsWithChildren<{
|
|
492
|
-
height?: number;
|
|
493
|
-
items?: Array<Record<string, any>> | {
|
|
494
|
-
height?: number;
|
|
495
|
-
text?: string;
|
|
496
|
-
width?: number;
|
|
497
|
-
}[];
|
|
498
|
-
width?: number;
|
|
499
|
-
defaultHeight?: number;
|
|
500
|
-
onHeightChange?: (value: number) => void;
|
|
501
|
-
defaultWidth?: number;
|
|
502
|
-
onWidthChange?: (value: number) => void;
|
|
503
|
-
}>;
|
|
504
|
-
declare const PageSize: ((props: IPageSizeProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
505
|
-
height?: number | undefined;
|
|
506
|
-
items?: Record<string, any>[] | {
|
|
507
|
-
height?: number | undefined;
|
|
508
|
-
text?: string | undefined;
|
|
509
|
-
width?: number | undefined;
|
|
510
|
-
}[] | undefined;
|
|
511
|
-
width?: number | undefined;
|
|
512
|
-
defaultHeight?: number | undefined;
|
|
513
|
-
onHeightChange?: ((value: number) => void) | undefined;
|
|
514
|
-
defaultWidth?: number | undefined;
|
|
515
|
-
onWidthChange?: ((value: number) => void) | undefined;
|
|
516
|
-
} & {
|
|
517
|
-
children?: React.ReactNode;
|
|
518
|
-
} & {
|
|
519
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
520
|
-
}>>) & NestedComponentMeta;
|
|
521
|
-
type IPageSizeItemProps = React.PropsWithChildren<{
|
|
522
|
-
height?: number;
|
|
523
|
-
text?: string;
|
|
524
|
-
width?: number;
|
|
525
|
-
}>;
|
|
526
|
-
declare const PageSizeItem: ((props: IPageSizeItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
527
|
-
height?: number | undefined;
|
|
528
|
-
text?: string | undefined;
|
|
529
|
-
width?: number | undefined;
|
|
530
|
-
} & {
|
|
531
|
-
children?: React.ReactNode;
|
|
532
|
-
} & {
|
|
533
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
534
|
-
}>>) & NestedComponentMeta;
|
|
535
|
-
type IPropertiesPanelProps = React.PropsWithChildren<{
|
|
536
|
-
tabs?: Array<Record<string, any>> | {
|
|
537
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
538
|
-
groups?: Array<Record<string, any>> | {
|
|
539
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
540
|
-
title?: string;
|
|
541
|
-
}[];
|
|
542
|
-
title?: string;
|
|
543
|
-
}[];
|
|
544
|
-
visibility?: PanelVisibility;
|
|
545
|
-
}>;
|
|
546
|
-
declare const PropertiesPanel: ((props: IPropertiesPanelProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
547
|
-
tabs?: Record<string, any>[] | {
|
|
548
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
549
|
-
groups?: Record<string, any>[] | {
|
|
550
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
551
|
-
title?: string | undefined;
|
|
552
|
-
}[] | undefined;
|
|
553
|
-
title?: string | undefined;
|
|
554
|
-
}[] | undefined;
|
|
555
|
-
visibility?: PanelVisibility | undefined;
|
|
556
|
-
} & {
|
|
557
|
-
children?: React.ReactNode;
|
|
558
|
-
} & {
|
|
559
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
560
|
-
}>>) & NestedComponentMeta;
|
|
561
|
-
type ITabProps = React.PropsWithChildren<{
|
|
562
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
563
|
-
groups?: Array<Record<string, any>> | {
|
|
564
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
565
|
-
title?: string;
|
|
566
|
-
}[];
|
|
567
|
-
title?: string;
|
|
568
|
-
}>;
|
|
569
|
-
declare const Tab: ((props: ITabProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
570
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
571
|
-
groups?: Record<string, any>[] | {
|
|
572
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
573
|
-
title?: string | undefined;
|
|
574
|
-
}[] | undefined;
|
|
575
|
-
title?: string | undefined;
|
|
576
|
-
} & {
|
|
577
|
-
children?: React.ReactNode;
|
|
578
|
-
} & {
|
|
579
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
580
|
-
}>>) & NestedComponentMeta;
|
|
581
|
-
type ITabGroupProps = React.PropsWithChildren<{
|
|
582
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
583
|
-
title?: string;
|
|
584
|
-
}>;
|
|
585
|
-
declare const TabGroup: ((props: ITabGroupProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
586
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
587
|
-
title?: string | undefined;
|
|
588
|
-
} & {
|
|
589
|
-
children?: React.ReactNode;
|
|
590
|
-
} & {
|
|
591
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
592
|
-
}>>) & NestedComponentMeta;
|
|
593
|
-
type IToolboxProps = React.PropsWithChildren<{
|
|
594
|
-
groups?: Array<Record<string, any>> | {
|
|
595
|
-
category?: ShapeCategory | string;
|
|
596
|
-
displayMode?: ToolboxDisplayMode;
|
|
597
|
-
expanded?: boolean;
|
|
598
|
-
shapes?: Array<ShapeType>;
|
|
599
|
-
title?: string;
|
|
600
|
-
}[];
|
|
601
|
-
shapeIconsPerRow?: number;
|
|
602
|
-
showSearch?: boolean;
|
|
603
|
-
visibility?: PanelVisibility;
|
|
604
|
-
width?: number | undefined;
|
|
605
|
-
}>;
|
|
606
|
-
declare const Toolbox: ((props: IToolboxProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
607
|
-
groups?: Record<string, any>[] | {
|
|
608
|
-
category?: string | undefined;
|
|
609
|
-
displayMode?: ToolboxDisplayMode | undefined;
|
|
610
|
-
expanded?: boolean | undefined;
|
|
611
|
-
shapes?: ShapeType[] | undefined;
|
|
612
|
-
title?: string | undefined;
|
|
613
|
-
}[] | undefined;
|
|
614
|
-
shapeIconsPerRow?: number | undefined;
|
|
615
|
-
showSearch?: boolean | undefined;
|
|
616
|
-
visibility?: PanelVisibility | undefined;
|
|
617
|
-
width?: number | undefined;
|
|
618
|
-
} & {
|
|
619
|
-
children?: React.ReactNode;
|
|
620
|
-
} & {
|
|
621
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
622
|
-
}>>) & NestedComponentMeta;
|
|
623
|
-
type IToolboxGroupProps = React.PropsWithChildren<{
|
|
624
|
-
category?: ShapeCategory | string;
|
|
625
|
-
displayMode?: ToolboxDisplayMode;
|
|
626
|
-
expanded?: boolean;
|
|
627
|
-
shapes?: Array<ShapeType>;
|
|
628
|
-
title?: string;
|
|
629
|
-
}>;
|
|
630
|
-
declare const ToolboxGroup: ((props: IToolboxGroupProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
631
|
-
category?: string | undefined;
|
|
632
|
-
displayMode?: ToolboxDisplayMode | undefined;
|
|
633
|
-
expanded?: boolean | undefined;
|
|
634
|
-
shapes?: ShapeType[] | undefined;
|
|
635
|
-
title?: string | undefined;
|
|
636
|
-
} & {
|
|
637
|
-
children?: React.ReactNode;
|
|
638
|
-
} & {
|
|
639
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
640
|
-
}>>) & NestedComponentMeta;
|
|
641
|
-
type IViewToolbarProps = React.PropsWithChildren<{
|
|
642
|
-
commands?: Array<DiagramCommand | CustomCommand>;
|
|
643
|
-
visible?: boolean;
|
|
644
|
-
}>;
|
|
645
|
-
declare const ViewToolbar: ((props: IViewToolbarProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
646
|
-
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
647
|
-
visible?: boolean | undefined;
|
|
648
|
-
} & {
|
|
649
|
-
children?: React.ReactNode;
|
|
650
|
-
} & {
|
|
651
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
652
|
-
}>>) & NestedComponentMeta;
|
|
653
|
-
type IZoomLevelProps = React.PropsWithChildren<{
|
|
654
|
-
items?: Array<number>;
|
|
655
|
-
value?: number | undefined;
|
|
656
|
-
defaultValue?: number | undefined;
|
|
657
|
-
onValueChange?: (value: number | undefined) => void;
|
|
658
|
-
}>;
|
|
659
|
-
declare const ZoomLevel: ((props: IZoomLevelProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
660
|
-
items?: number[] | undefined;
|
|
661
|
-
value?: number | undefined;
|
|
662
|
-
defaultValue?: number | undefined;
|
|
663
|
-
onValueChange?: ((value: number | undefined) => void) | undefined;
|
|
664
|
-
} & {
|
|
665
|
-
children?: React.ReactNode;
|
|
666
|
-
} & {
|
|
667
|
-
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
668
|
-
}>>) & NestedComponentMeta;
|
|
669
|
-
export default Diagram;
|
|
670
|
-
export { Diagram, IDiagramOptions, DiagramRef, AutoLayout, IAutoLayoutProps, Command, ICommandProps, CommandItem, ICommandItemProps, ConnectionPoint, IConnectionPointProps, ContextMenu, IContextMenuProps, ContextToolbox, IContextToolboxProps, CustomShape, ICustomShapeProps, DefaultItemProperties, IDefaultItemPropertiesProps, Edges, IEdgesProps, Editing, IEditingProps, Export, IExportProps, GridSize, IGridSizeProps, Group, IGroupProps, HistoryToolbar, IHistoryToolbarProps, Item, IItemProps, MainToolbar, IMainToolbarProps, Nodes, INodesProps, PageSize, IPageSizeProps, PageSizeItem, IPageSizeItemProps, PropertiesPanel, IPropertiesPanelProps, Tab, ITabProps, TabGroup, ITabGroupProps, Toolbox, IToolboxProps, ToolboxGroup, IToolboxGroupProps, ViewToolbar, IViewToolbarProps, ZoomLevel, IZoomLevelProps };
|
|
671
|
-
import type * as DiagramTypes from 'devextreme/ui/diagram_types';
|
|
672
|
-
export { DiagramTypes };
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import { Ref, ReactElement } from "react";
|
|
16
|
+
import dxDiagram, { Properties } from "devextreme/ui/diagram";
|
|
17
|
+
import { IHtmlOptions, NestedComponentMeta } from "./core/component";
|
|
18
|
+
import type { ContentReadyEvent, CustomCommandEvent, DisposingEvent, InitializedEvent, ItemClickEvent, ItemDblClickEvent, RequestEditOperationEvent, RequestLayoutUpdateEvent, DataLayoutType, Command as DiagramCommand, CustomCommand, ShapeCategory, ToolboxDisplayMode, ShapeType, dxDiagramShape, ConnectorLineEnd, ConnectorLineType, PanelVisibility } from "devextreme/ui/diagram";
|
|
19
|
+
import type { Orientation, ToolbarItemLocation, template } from "devextreme/common";
|
|
20
|
+
import type { dxSVGElement } from "devextreme/core/element";
|
|
21
|
+
import type { DataSourceOptions } from "devextreme/data/data_source";
|
|
22
|
+
import type { Store } from "devextreme/data/store";
|
|
23
|
+
import type DataSource from "devextreme/data/data_source";
|
|
24
|
+
type ReplaceFieldTypes<TSource, TReplacement> = {
|
|
25
|
+
[P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P];
|
|
26
|
+
};
|
|
27
|
+
type IDiagramOptionsNarrowedEvents = {
|
|
28
|
+
onContentReady?: ((e: ContentReadyEvent) => void);
|
|
29
|
+
onCustomCommand?: ((e: CustomCommandEvent) => void);
|
|
30
|
+
onDisposing?: ((e: DisposingEvent) => void);
|
|
31
|
+
onInitialized?: ((e: InitializedEvent) => void);
|
|
32
|
+
onItemClick?: ((e: ItemClickEvent) => void);
|
|
33
|
+
onItemDblClick?: ((e: ItemDblClickEvent) => void);
|
|
34
|
+
onRequestEditOperation?: ((e: RequestEditOperationEvent) => void);
|
|
35
|
+
onRequestLayoutUpdate?: ((e: RequestLayoutUpdateEvent) => void);
|
|
36
|
+
};
|
|
37
|
+
type IDiagramOptions = React.PropsWithChildren<ReplaceFieldTypes<Properties, IDiagramOptionsNarrowedEvents> & IHtmlOptions & {
|
|
38
|
+
customShapeRender?: (...params: any) => React.ReactNode;
|
|
39
|
+
customShapeComponent?: React.ComponentType<any>;
|
|
40
|
+
customShapeToolboxRender?: (...params: any) => React.ReactNode;
|
|
41
|
+
customShapeToolboxComponent?: React.ComponentType<any>;
|
|
42
|
+
defaultGridSize?: number | Record<string, any>;
|
|
43
|
+
defaultPageSize?: Record<string, any>;
|
|
44
|
+
defaultZoomLevel?: number | Record<string, any>;
|
|
45
|
+
onGridSizeChange?: (value: number | Record<string, any>) => void;
|
|
46
|
+
onPageSizeChange?: (value: Record<string, any>) => void;
|
|
47
|
+
onZoomLevelChange?: (value: number | Record<string, any>) => void;
|
|
48
|
+
}>;
|
|
49
|
+
interface DiagramRef {
|
|
50
|
+
instance: () => dxDiagram;
|
|
51
|
+
}
|
|
52
|
+
declare const Diagram: (props: React.PropsWithChildren<IDiagramOptions> & {
|
|
53
|
+
ref?: Ref<DiagramRef>;
|
|
54
|
+
}) => ReactElement | null;
|
|
55
|
+
type IAutoLayoutProps = React.PropsWithChildren<{
|
|
56
|
+
orientation?: Orientation;
|
|
57
|
+
type?: DataLayoutType;
|
|
58
|
+
}>;
|
|
59
|
+
declare const AutoLayout: ((props: IAutoLayoutProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
60
|
+
orientation?: Orientation | undefined;
|
|
61
|
+
type?: DataLayoutType | undefined;
|
|
62
|
+
} & {
|
|
63
|
+
children?: React.ReactNode;
|
|
64
|
+
} & {
|
|
65
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
66
|
+
}>>) & NestedComponentMeta;
|
|
67
|
+
type ICommandProps = React.PropsWithChildren<{
|
|
68
|
+
icon?: string;
|
|
69
|
+
items?: Array<DiagramCommand | CustomCommand>;
|
|
70
|
+
location?: ToolbarItemLocation;
|
|
71
|
+
name?: DiagramCommand | string;
|
|
72
|
+
text?: string;
|
|
73
|
+
}>;
|
|
74
|
+
declare const Command: ((props: ICommandProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
75
|
+
icon?: string | undefined;
|
|
76
|
+
items?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
77
|
+
location?: ToolbarItemLocation | undefined;
|
|
78
|
+
name?: string | undefined;
|
|
79
|
+
text?: string | undefined;
|
|
80
|
+
} & {
|
|
81
|
+
children?: React.ReactNode;
|
|
82
|
+
} & {
|
|
83
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
84
|
+
}>>) & NestedComponentMeta;
|
|
85
|
+
type ICommandItemProps = React.PropsWithChildren<{
|
|
86
|
+
icon?: string;
|
|
87
|
+
items?: Array<DiagramCommand | CustomCommand>;
|
|
88
|
+
location?: ToolbarItemLocation;
|
|
89
|
+
name?: DiagramCommand | string;
|
|
90
|
+
text?: string;
|
|
91
|
+
}>;
|
|
92
|
+
declare const CommandItem: ((props: ICommandItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
93
|
+
icon?: string | undefined;
|
|
94
|
+
items?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
95
|
+
location?: ToolbarItemLocation | undefined;
|
|
96
|
+
name?: string | undefined;
|
|
97
|
+
text?: string | undefined;
|
|
98
|
+
} & {
|
|
99
|
+
children?: React.ReactNode;
|
|
100
|
+
} & {
|
|
101
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
102
|
+
}>>) & NestedComponentMeta;
|
|
103
|
+
type IConnectionPointProps = React.PropsWithChildren<{
|
|
104
|
+
x?: number;
|
|
105
|
+
y?: number;
|
|
106
|
+
}>;
|
|
107
|
+
declare const ConnectionPoint: ((props: IConnectionPointProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
108
|
+
x?: number | undefined;
|
|
109
|
+
y?: number | undefined;
|
|
110
|
+
} & {
|
|
111
|
+
children?: React.ReactNode;
|
|
112
|
+
} & {
|
|
113
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
114
|
+
}>>) & NestedComponentMeta;
|
|
115
|
+
type IContextMenuProps = React.PropsWithChildren<{
|
|
116
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
117
|
+
enabled?: boolean;
|
|
118
|
+
}>;
|
|
119
|
+
declare const ContextMenu: ((props: IContextMenuProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
120
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
121
|
+
enabled?: boolean | undefined;
|
|
122
|
+
} & {
|
|
123
|
+
children?: React.ReactNode;
|
|
124
|
+
} & {
|
|
125
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
126
|
+
}>>) & NestedComponentMeta;
|
|
127
|
+
type IContextToolboxProps = React.PropsWithChildren<{
|
|
128
|
+
category?: ShapeCategory | string;
|
|
129
|
+
displayMode?: ToolboxDisplayMode;
|
|
130
|
+
enabled?: boolean;
|
|
131
|
+
shapeIconsPerRow?: number;
|
|
132
|
+
shapes?: Array<ShapeType>;
|
|
133
|
+
width?: number;
|
|
134
|
+
}>;
|
|
135
|
+
declare const ContextToolbox: ((props: IContextToolboxProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
136
|
+
category?: string | undefined;
|
|
137
|
+
displayMode?: ToolboxDisplayMode | undefined;
|
|
138
|
+
enabled?: boolean | undefined;
|
|
139
|
+
shapeIconsPerRow?: number | undefined;
|
|
140
|
+
shapes?: ShapeType[] | undefined;
|
|
141
|
+
width?: number | undefined;
|
|
142
|
+
} & {
|
|
143
|
+
children?: React.ReactNode;
|
|
144
|
+
} & {
|
|
145
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
146
|
+
}>>) & NestedComponentMeta;
|
|
147
|
+
type ICustomShapeProps = React.PropsWithChildren<{
|
|
148
|
+
allowEditImage?: boolean;
|
|
149
|
+
allowEditText?: boolean;
|
|
150
|
+
allowResize?: boolean;
|
|
151
|
+
backgroundImageHeight?: number;
|
|
152
|
+
backgroundImageLeft?: number;
|
|
153
|
+
backgroundImageToolboxUrl?: string;
|
|
154
|
+
backgroundImageTop?: number;
|
|
155
|
+
backgroundImageUrl?: string;
|
|
156
|
+
backgroundImageWidth?: number;
|
|
157
|
+
baseType?: ShapeType | string;
|
|
158
|
+
category?: string;
|
|
159
|
+
connectionPoints?: Array<Record<string, any>> | {
|
|
160
|
+
x?: number;
|
|
161
|
+
y?: number;
|
|
162
|
+
}[];
|
|
163
|
+
defaultHeight?: number;
|
|
164
|
+
defaultImageUrl?: string;
|
|
165
|
+
defaultText?: string;
|
|
166
|
+
defaultWidth?: number;
|
|
167
|
+
imageHeight?: number;
|
|
168
|
+
imageLeft?: number;
|
|
169
|
+
imageTop?: number;
|
|
170
|
+
imageWidth?: number;
|
|
171
|
+
keepRatioOnAutoSize?: boolean;
|
|
172
|
+
maxHeight?: number;
|
|
173
|
+
maxWidth?: number;
|
|
174
|
+
minHeight?: number;
|
|
175
|
+
minWidth?: number;
|
|
176
|
+
template?: ((container: dxSVGElement, data: {
|
|
177
|
+
item: dxDiagramShape;
|
|
178
|
+
}) => void) | template;
|
|
179
|
+
templateHeight?: number;
|
|
180
|
+
templateLeft?: number;
|
|
181
|
+
templateTop?: number;
|
|
182
|
+
templateWidth?: number;
|
|
183
|
+
textHeight?: number;
|
|
184
|
+
textLeft?: number;
|
|
185
|
+
textTop?: number;
|
|
186
|
+
textWidth?: number;
|
|
187
|
+
title?: string;
|
|
188
|
+
toolboxTemplate?: ((container: dxSVGElement, data: {
|
|
189
|
+
item: dxDiagramShape;
|
|
190
|
+
}) => void) | template;
|
|
191
|
+
toolboxWidthToHeightRatio?: number;
|
|
192
|
+
type?: string;
|
|
193
|
+
render?: (...params: any) => React.ReactNode;
|
|
194
|
+
component?: React.ComponentType<any>;
|
|
195
|
+
toolboxRender?: (...params: any) => React.ReactNode;
|
|
196
|
+
toolboxComponent?: React.ComponentType<any>;
|
|
197
|
+
}>;
|
|
198
|
+
declare const CustomShape: ((props: ICustomShapeProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
199
|
+
allowEditImage?: boolean | undefined;
|
|
200
|
+
allowEditText?: boolean | undefined;
|
|
201
|
+
allowResize?: boolean | undefined;
|
|
202
|
+
backgroundImageHeight?: number | undefined;
|
|
203
|
+
backgroundImageLeft?: number | undefined;
|
|
204
|
+
backgroundImageToolboxUrl?: string | undefined;
|
|
205
|
+
backgroundImageTop?: number | undefined;
|
|
206
|
+
backgroundImageUrl?: string | undefined;
|
|
207
|
+
backgroundImageWidth?: number | undefined;
|
|
208
|
+
baseType?: string | undefined;
|
|
209
|
+
category?: string | undefined;
|
|
210
|
+
connectionPoints?: Record<string, any>[] | {
|
|
211
|
+
x?: number | undefined;
|
|
212
|
+
y?: number | undefined;
|
|
213
|
+
}[] | undefined;
|
|
214
|
+
defaultHeight?: number | undefined;
|
|
215
|
+
defaultImageUrl?: string | undefined;
|
|
216
|
+
defaultText?: string | undefined;
|
|
217
|
+
defaultWidth?: number | undefined;
|
|
218
|
+
imageHeight?: number | undefined;
|
|
219
|
+
imageLeft?: number | undefined;
|
|
220
|
+
imageTop?: number | undefined;
|
|
221
|
+
imageWidth?: number | undefined;
|
|
222
|
+
keepRatioOnAutoSize?: boolean | undefined;
|
|
223
|
+
maxHeight?: number | undefined;
|
|
224
|
+
maxWidth?: number | undefined;
|
|
225
|
+
minHeight?: number | undefined;
|
|
226
|
+
minWidth?: number | undefined;
|
|
227
|
+
template?: template | ((container: dxSVGElement, data: {
|
|
228
|
+
item: dxDiagramShape;
|
|
229
|
+
}) => void) | undefined;
|
|
230
|
+
templateHeight?: number | undefined;
|
|
231
|
+
templateLeft?: number | undefined;
|
|
232
|
+
templateTop?: number | undefined;
|
|
233
|
+
templateWidth?: number | undefined;
|
|
234
|
+
textHeight?: number | undefined;
|
|
235
|
+
textLeft?: number | undefined;
|
|
236
|
+
textTop?: number | undefined;
|
|
237
|
+
textWidth?: number | undefined;
|
|
238
|
+
title?: string | undefined;
|
|
239
|
+
toolboxTemplate?: template | ((container: dxSVGElement, data: {
|
|
240
|
+
item: dxDiagramShape;
|
|
241
|
+
}) => void) | undefined;
|
|
242
|
+
toolboxWidthToHeightRatio?: number | undefined;
|
|
243
|
+
type?: string | undefined;
|
|
244
|
+
render?: ((...params: any) => React.ReactNode) | undefined;
|
|
245
|
+
component?: React.ComponentType<any> | undefined;
|
|
246
|
+
toolboxRender?: ((...params: any) => React.ReactNode) | undefined;
|
|
247
|
+
toolboxComponent?: React.ComponentType<any> | undefined;
|
|
248
|
+
} & {
|
|
249
|
+
children?: React.ReactNode;
|
|
250
|
+
} & {
|
|
251
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
252
|
+
}>>) & NestedComponentMeta;
|
|
253
|
+
type IDefaultItemPropertiesProps = React.PropsWithChildren<{
|
|
254
|
+
connectorLineEnd?: ConnectorLineEnd;
|
|
255
|
+
connectorLineStart?: ConnectorLineEnd;
|
|
256
|
+
connectorLineType?: ConnectorLineType;
|
|
257
|
+
shapeMaxHeight?: number | undefined;
|
|
258
|
+
shapeMaxWidth?: number | undefined;
|
|
259
|
+
shapeMinHeight?: number | undefined;
|
|
260
|
+
shapeMinWidth?: number | undefined;
|
|
261
|
+
style?: Record<string, any>;
|
|
262
|
+
textStyle?: Record<string, any>;
|
|
263
|
+
}>;
|
|
264
|
+
declare const DefaultItemProperties: ((props: IDefaultItemPropertiesProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
265
|
+
connectorLineEnd?: ConnectorLineEnd | undefined;
|
|
266
|
+
connectorLineStart?: ConnectorLineEnd | undefined;
|
|
267
|
+
connectorLineType?: ConnectorLineType | undefined;
|
|
268
|
+
shapeMaxHeight?: number | undefined;
|
|
269
|
+
shapeMaxWidth?: number | undefined;
|
|
270
|
+
shapeMinHeight?: number | undefined;
|
|
271
|
+
shapeMinWidth?: number | undefined;
|
|
272
|
+
style?: Record<string, any> | undefined;
|
|
273
|
+
textStyle?: Record<string, any> | undefined;
|
|
274
|
+
} & {
|
|
275
|
+
children?: React.ReactNode;
|
|
276
|
+
} & {
|
|
277
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
278
|
+
}>>) & NestedComponentMeta;
|
|
279
|
+
type IEdgesProps = React.PropsWithChildren<{
|
|
280
|
+
customDataExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
281
|
+
dataSource?: Array<any> | DataSource | DataSourceOptions | null | Store | string;
|
|
282
|
+
fromExpr?: ((data: any, value: any) => any) | string;
|
|
283
|
+
fromLineEndExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
284
|
+
fromPointIndexExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
285
|
+
keyExpr?: ((data: any, value: any) => any) | string;
|
|
286
|
+
lineTypeExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
287
|
+
lockedExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
288
|
+
pointsExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
289
|
+
styleExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
290
|
+
textExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
291
|
+
textStyleExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
292
|
+
toExpr?: ((data: any, value: any) => any) | string;
|
|
293
|
+
toLineEndExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
294
|
+
toPointIndexExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
295
|
+
zIndexExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
296
|
+
}>;
|
|
297
|
+
declare const Edges: ((props: IEdgesProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
298
|
+
customDataExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
299
|
+
dataSource?: string | any[] | DataSource<any, any> | DataSourceOptions<any, any, any, any> | Store<any, any> | null | undefined;
|
|
300
|
+
fromExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
301
|
+
fromLineEndExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
302
|
+
fromPointIndexExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
303
|
+
keyExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
304
|
+
lineTypeExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
305
|
+
lockedExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
306
|
+
pointsExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
307
|
+
styleExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
308
|
+
textExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
309
|
+
textStyleExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
310
|
+
toExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
311
|
+
toLineEndExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
312
|
+
toPointIndexExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
313
|
+
zIndexExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
314
|
+
} & {
|
|
315
|
+
children?: React.ReactNode;
|
|
316
|
+
} & {
|
|
317
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
318
|
+
}>>) & NestedComponentMeta;
|
|
319
|
+
type IEditingProps = React.PropsWithChildren<{
|
|
320
|
+
allowAddShape?: boolean;
|
|
321
|
+
allowChangeConnection?: boolean;
|
|
322
|
+
allowChangeConnectorPoints?: boolean;
|
|
323
|
+
allowChangeConnectorText?: boolean;
|
|
324
|
+
allowChangeShapeText?: boolean;
|
|
325
|
+
allowDeleteConnector?: boolean;
|
|
326
|
+
allowDeleteShape?: boolean;
|
|
327
|
+
allowMoveShape?: boolean;
|
|
328
|
+
allowResizeShape?: boolean;
|
|
329
|
+
}>;
|
|
330
|
+
declare const Editing: ((props: IEditingProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
331
|
+
allowAddShape?: boolean | undefined;
|
|
332
|
+
allowChangeConnection?: boolean | undefined;
|
|
333
|
+
allowChangeConnectorPoints?: boolean | undefined;
|
|
334
|
+
allowChangeConnectorText?: boolean | undefined;
|
|
335
|
+
allowChangeShapeText?: boolean | undefined;
|
|
336
|
+
allowDeleteConnector?: boolean | undefined;
|
|
337
|
+
allowDeleteShape?: boolean | undefined;
|
|
338
|
+
allowMoveShape?: boolean | undefined;
|
|
339
|
+
allowResizeShape?: boolean | undefined;
|
|
340
|
+
} & {
|
|
341
|
+
children?: React.ReactNode;
|
|
342
|
+
} & {
|
|
343
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
344
|
+
}>>) & NestedComponentMeta;
|
|
345
|
+
type IExportProps = React.PropsWithChildren<{
|
|
346
|
+
fileName?: string;
|
|
347
|
+
}>;
|
|
348
|
+
declare const Export: ((props: IExportProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
349
|
+
fileName?: string | undefined;
|
|
350
|
+
} & {
|
|
351
|
+
children?: React.ReactNode;
|
|
352
|
+
} & {
|
|
353
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
354
|
+
}>>) & NestedComponentMeta;
|
|
355
|
+
type IGridSizeProps = React.PropsWithChildren<{
|
|
356
|
+
items?: Array<number>;
|
|
357
|
+
value?: number;
|
|
358
|
+
defaultValue?: number;
|
|
359
|
+
onValueChange?: (value: number) => void;
|
|
360
|
+
}>;
|
|
361
|
+
declare const GridSize: ((props: IGridSizeProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
362
|
+
items?: number[] | undefined;
|
|
363
|
+
value?: number | undefined;
|
|
364
|
+
defaultValue?: number | undefined;
|
|
365
|
+
onValueChange?: ((value: number) => void) | undefined;
|
|
366
|
+
} & {
|
|
367
|
+
children?: React.ReactNode;
|
|
368
|
+
} & {
|
|
369
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
370
|
+
}>>) & NestedComponentMeta;
|
|
371
|
+
type IGroupProps = React.PropsWithChildren<{
|
|
372
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
373
|
+
title?: string;
|
|
374
|
+
category?: ShapeCategory | string;
|
|
375
|
+
displayMode?: ToolboxDisplayMode;
|
|
376
|
+
expanded?: boolean;
|
|
377
|
+
shapes?: Array<ShapeType>;
|
|
378
|
+
}>;
|
|
379
|
+
declare const Group: ((props: IGroupProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
380
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
381
|
+
title?: string | undefined;
|
|
382
|
+
category?: string | undefined;
|
|
383
|
+
displayMode?: ToolboxDisplayMode | undefined;
|
|
384
|
+
expanded?: boolean | undefined;
|
|
385
|
+
shapes?: ShapeType[] | undefined;
|
|
386
|
+
} & {
|
|
387
|
+
children?: React.ReactNode;
|
|
388
|
+
} & {
|
|
389
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
390
|
+
}>>) & NestedComponentMeta;
|
|
391
|
+
type IHistoryToolbarProps = React.PropsWithChildren<{
|
|
392
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
393
|
+
visible?: boolean;
|
|
394
|
+
}>;
|
|
395
|
+
declare const HistoryToolbar: ((props: IHistoryToolbarProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
396
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
397
|
+
visible?: boolean | undefined;
|
|
398
|
+
} & {
|
|
399
|
+
children?: React.ReactNode;
|
|
400
|
+
} & {
|
|
401
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
402
|
+
}>>) & NestedComponentMeta;
|
|
403
|
+
type IItemProps = React.PropsWithChildren<{
|
|
404
|
+
icon?: string;
|
|
405
|
+
items?: Array<DiagramCommand | CustomCommand>;
|
|
406
|
+
location?: ToolbarItemLocation;
|
|
407
|
+
name?: DiagramCommand | string;
|
|
408
|
+
text?: string;
|
|
409
|
+
height?: number;
|
|
410
|
+
width?: number;
|
|
411
|
+
}>;
|
|
412
|
+
declare const Item: ((props: IItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
413
|
+
icon?: string | undefined;
|
|
414
|
+
items?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
415
|
+
location?: ToolbarItemLocation | undefined;
|
|
416
|
+
name?: string | undefined;
|
|
417
|
+
text?: string | undefined;
|
|
418
|
+
height?: number | undefined;
|
|
419
|
+
width?: number | undefined;
|
|
420
|
+
} & {
|
|
421
|
+
children?: React.ReactNode;
|
|
422
|
+
} & {
|
|
423
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
424
|
+
}>>) & NestedComponentMeta;
|
|
425
|
+
type IMainToolbarProps = React.PropsWithChildren<{
|
|
426
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
427
|
+
visible?: boolean;
|
|
428
|
+
}>;
|
|
429
|
+
declare const MainToolbar: ((props: IMainToolbarProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
430
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
431
|
+
visible?: boolean | undefined;
|
|
432
|
+
} & {
|
|
433
|
+
children?: React.ReactNode;
|
|
434
|
+
} & {
|
|
435
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
436
|
+
}>>) & NestedComponentMeta;
|
|
437
|
+
type INodesProps = React.PropsWithChildren<{
|
|
438
|
+
autoLayout?: DataLayoutType | Record<string, any> | {
|
|
439
|
+
orientation?: Orientation;
|
|
440
|
+
type?: DataLayoutType;
|
|
441
|
+
};
|
|
442
|
+
autoSizeEnabled?: boolean;
|
|
443
|
+
containerChildrenExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
444
|
+
containerKeyExpr?: ((data: any, value: any) => any) | string;
|
|
445
|
+
customDataExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
446
|
+
dataSource?: Array<any> | DataSource | DataSourceOptions | null | Store | string;
|
|
447
|
+
heightExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
448
|
+
imageUrlExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
449
|
+
itemsExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
450
|
+
keyExpr?: ((data: any, value: any) => any) | string;
|
|
451
|
+
leftExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
452
|
+
lockedExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
453
|
+
parentKeyExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
454
|
+
styleExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
455
|
+
textExpr?: ((data: any, value: any) => any) | string;
|
|
456
|
+
textStyleExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
457
|
+
topExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
458
|
+
typeExpr?: ((data: any, value: any) => any) | string;
|
|
459
|
+
widthExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
460
|
+
zIndexExpr?: ((data: any, value: any) => any) | string | undefined;
|
|
461
|
+
}>;
|
|
462
|
+
declare const Nodes: ((props: INodesProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
463
|
+
autoLayout?: Record<string, any> | DataLayoutType | {
|
|
464
|
+
orientation?: Orientation | undefined;
|
|
465
|
+
type?: DataLayoutType | undefined;
|
|
466
|
+
} | undefined;
|
|
467
|
+
autoSizeEnabled?: boolean | undefined;
|
|
468
|
+
containerChildrenExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
469
|
+
containerKeyExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
470
|
+
customDataExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
471
|
+
dataSource?: string | any[] | DataSource<any, any> | DataSourceOptions<any, any, any, any> | Store<any, any> | null | undefined;
|
|
472
|
+
heightExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
473
|
+
imageUrlExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
474
|
+
itemsExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
475
|
+
keyExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
476
|
+
leftExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
477
|
+
lockedExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
478
|
+
parentKeyExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
479
|
+
styleExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
480
|
+
textExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
481
|
+
textStyleExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
482
|
+
topExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
483
|
+
typeExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
484
|
+
widthExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
485
|
+
zIndexExpr?: string | ((data: any, value: any) => any) | undefined;
|
|
486
|
+
} & {
|
|
487
|
+
children?: React.ReactNode;
|
|
488
|
+
} & {
|
|
489
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
490
|
+
}>>) & NestedComponentMeta;
|
|
491
|
+
type IPageSizeProps = React.PropsWithChildren<{
|
|
492
|
+
height?: number;
|
|
493
|
+
items?: Array<Record<string, any>> | {
|
|
494
|
+
height?: number;
|
|
495
|
+
text?: string;
|
|
496
|
+
width?: number;
|
|
497
|
+
}[];
|
|
498
|
+
width?: number;
|
|
499
|
+
defaultHeight?: number;
|
|
500
|
+
onHeightChange?: (value: number) => void;
|
|
501
|
+
defaultWidth?: number;
|
|
502
|
+
onWidthChange?: (value: number) => void;
|
|
503
|
+
}>;
|
|
504
|
+
declare const PageSize: ((props: IPageSizeProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
505
|
+
height?: number | undefined;
|
|
506
|
+
items?: Record<string, any>[] | {
|
|
507
|
+
height?: number | undefined;
|
|
508
|
+
text?: string | undefined;
|
|
509
|
+
width?: number | undefined;
|
|
510
|
+
}[] | undefined;
|
|
511
|
+
width?: number | undefined;
|
|
512
|
+
defaultHeight?: number | undefined;
|
|
513
|
+
onHeightChange?: ((value: number) => void) | undefined;
|
|
514
|
+
defaultWidth?: number | undefined;
|
|
515
|
+
onWidthChange?: ((value: number) => void) | undefined;
|
|
516
|
+
} & {
|
|
517
|
+
children?: React.ReactNode;
|
|
518
|
+
} & {
|
|
519
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
520
|
+
}>>) & NestedComponentMeta;
|
|
521
|
+
type IPageSizeItemProps = React.PropsWithChildren<{
|
|
522
|
+
height?: number;
|
|
523
|
+
text?: string;
|
|
524
|
+
width?: number;
|
|
525
|
+
}>;
|
|
526
|
+
declare const PageSizeItem: ((props: IPageSizeItemProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
527
|
+
height?: number | undefined;
|
|
528
|
+
text?: string | undefined;
|
|
529
|
+
width?: number | undefined;
|
|
530
|
+
} & {
|
|
531
|
+
children?: React.ReactNode;
|
|
532
|
+
} & {
|
|
533
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
534
|
+
}>>) & NestedComponentMeta;
|
|
535
|
+
type IPropertiesPanelProps = React.PropsWithChildren<{
|
|
536
|
+
tabs?: Array<Record<string, any>> | {
|
|
537
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
538
|
+
groups?: Array<Record<string, any>> | {
|
|
539
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
540
|
+
title?: string;
|
|
541
|
+
}[];
|
|
542
|
+
title?: string;
|
|
543
|
+
}[];
|
|
544
|
+
visibility?: PanelVisibility;
|
|
545
|
+
}>;
|
|
546
|
+
declare const PropertiesPanel: ((props: IPropertiesPanelProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
547
|
+
tabs?: Record<string, any>[] | {
|
|
548
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
549
|
+
groups?: Record<string, any>[] | {
|
|
550
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
551
|
+
title?: string | undefined;
|
|
552
|
+
}[] | undefined;
|
|
553
|
+
title?: string | undefined;
|
|
554
|
+
}[] | undefined;
|
|
555
|
+
visibility?: PanelVisibility | undefined;
|
|
556
|
+
} & {
|
|
557
|
+
children?: React.ReactNode;
|
|
558
|
+
} & {
|
|
559
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
560
|
+
}>>) & NestedComponentMeta;
|
|
561
|
+
type ITabProps = React.PropsWithChildren<{
|
|
562
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
563
|
+
groups?: Array<Record<string, any>> | {
|
|
564
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
565
|
+
title?: string;
|
|
566
|
+
}[];
|
|
567
|
+
title?: string;
|
|
568
|
+
}>;
|
|
569
|
+
declare const Tab: ((props: ITabProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
570
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
571
|
+
groups?: Record<string, any>[] | {
|
|
572
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
573
|
+
title?: string | undefined;
|
|
574
|
+
}[] | undefined;
|
|
575
|
+
title?: string | undefined;
|
|
576
|
+
} & {
|
|
577
|
+
children?: React.ReactNode;
|
|
578
|
+
} & {
|
|
579
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
580
|
+
}>>) & NestedComponentMeta;
|
|
581
|
+
type ITabGroupProps = React.PropsWithChildren<{
|
|
582
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
583
|
+
title?: string;
|
|
584
|
+
}>;
|
|
585
|
+
declare const TabGroup: ((props: ITabGroupProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
586
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
587
|
+
title?: string | undefined;
|
|
588
|
+
} & {
|
|
589
|
+
children?: React.ReactNode;
|
|
590
|
+
} & {
|
|
591
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
592
|
+
}>>) & NestedComponentMeta;
|
|
593
|
+
type IToolboxProps = React.PropsWithChildren<{
|
|
594
|
+
groups?: Array<Record<string, any>> | {
|
|
595
|
+
category?: ShapeCategory | string;
|
|
596
|
+
displayMode?: ToolboxDisplayMode;
|
|
597
|
+
expanded?: boolean;
|
|
598
|
+
shapes?: Array<ShapeType>;
|
|
599
|
+
title?: string;
|
|
600
|
+
}[];
|
|
601
|
+
shapeIconsPerRow?: number;
|
|
602
|
+
showSearch?: boolean;
|
|
603
|
+
visibility?: PanelVisibility;
|
|
604
|
+
width?: number | undefined;
|
|
605
|
+
}>;
|
|
606
|
+
declare const Toolbox: ((props: IToolboxProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
607
|
+
groups?: Record<string, any>[] | {
|
|
608
|
+
category?: string | undefined;
|
|
609
|
+
displayMode?: ToolboxDisplayMode | undefined;
|
|
610
|
+
expanded?: boolean | undefined;
|
|
611
|
+
shapes?: ShapeType[] | undefined;
|
|
612
|
+
title?: string | undefined;
|
|
613
|
+
}[] | undefined;
|
|
614
|
+
shapeIconsPerRow?: number | undefined;
|
|
615
|
+
showSearch?: boolean | undefined;
|
|
616
|
+
visibility?: PanelVisibility | undefined;
|
|
617
|
+
width?: number | undefined;
|
|
618
|
+
} & {
|
|
619
|
+
children?: React.ReactNode;
|
|
620
|
+
} & {
|
|
621
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
622
|
+
}>>) & NestedComponentMeta;
|
|
623
|
+
type IToolboxGroupProps = React.PropsWithChildren<{
|
|
624
|
+
category?: ShapeCategory | string;
|
|
625
|
+
displayMode?: ToolboxDisplayMode;
|
|
626
|
+
expanded?: boolean;
|
|
627
|
+
shapes?: Array<ShapeType>;
|
|
628
|
+
title?: string;
|
|
629
|
+
}>;
|
|
630
|
+
declare const ToolboxGroup: ((props: IToolboxGroupProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
631
|
+
category?: string | undefined;
|
|
632
|
+
displayMode?: ToolboxDisplayMode | undefined;
|
|
633
|
+
expanded?: boolean | undefined;
|
|
634
|
+
shapes?: ShapeType[] | undefined;
|
|
635
|
+
title?: string | undefined;
|
|
636
|
+
} & {
|
|
637
|
+
children?: React.ReactNode;
|
|
638
|
+
} & {
|
|
639
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
640
|
+
}>>) & NestedComponentMeta;
|
|
641
|
+
type IViewToolbarProps = React.PropsWithChildren<{
|
|
642
|
+
commands?: Array<DiagramCommand | CustomCommand>;
|
|
643
|
+
visible?: boolean;
|
|
644
|
+
}>;
|
|
645
|
+
declare const ViewToolbar: ((props: IViewToolbarProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
646
|
+
commands?: (DiagramCommand | CustomCommand)[] | undefined;
|
|
647
|
+
visible?: boolean | undefined;
|
|
648
|
+
} & {
|
|
649
|
+
children?: React.ReactNode;
|
|
650
|
+
} & {
|
|
651
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
652
|
+
}>>) & NestedComponentMeta;
|
|
653
|
+
type IZoomLevelProps = React.PropsWithChildren<{
|
|
654
|
+
items?: Array<number>;
|
|
655
|
+
value?: number | undefined;
|
|
656
|
+
defaultValue?: number | undefined;
|
|
657
|
+
onValueChange?: (value: number | undefined) => void;
|
|
658
|
+
}>;
|
|
659
|
+
declare const ZoomLevel: ((props: IZoomLevelProps) => React.FunctionComponentElement<React.PropsWithChildren<{
|
|
660
|
+
items?: number[] | undefined;
|
|
661
|
+
value?: number | undefined;
|
|
662
|
+
defaultValue?: number | undefined;
|
|
663
|
+
onValueChange?: ((value: number | undefined) => void) | undefined;
|
|
664
|
+
} & {
|
|
665
|
+
children?: React.ReactNode;
|
|
666
|
+
} & {
|
|
667
|
+
elementDescriptor: import("./core/configuration/react/element").IElementDescriptor;
|
|
668
|
+
}>>) & NestedComponentMeta;
|
|
669
|
+
export default Diagram;
|
|
670
|
+
export { Diagram, IDiagramOptions, DiagramRef, AutoLayout, IAutoLayoutProps, Command, ICommandProps, CommandItem, ICommandItemProps, ConnectionPoint, IConnectionPointProps, ContextMenu, IContextMenuProps, ContextToolbox, IContextToolboxProps, CustomShape, ICustomShapeProps, DefaultItemProperties, IDefaultItemPropertiesProps, Edges, IEdgesProps, Editing, IEditingProps, Export, IExportProps, GridSize, IGridSizeProps, Group, IGroupProps, HistoryToolbar, IHistoryToolbarProps, Item, IItemProps, MainToolbar, IMainToolbarProps, Nodes, INodesProps, PageSize, IPageSizeProps, PageSizeItem, IPageSizeItemProps, PropertiesPanel, IPropertiesPanelProps, Tab, ITabProps, TabGroup, ITabGroupProps, Toolbox, IToolboxProps, ToolboxGroup, IToolboxGroupProps, ViewToolbar, IViewToolbarProps, ZoomLevel, IZoomLevelProps };
|
|
671
|
+
import type * as DiagramTypes from 'devextreme/ui/diagram_types';
|
|
672
|
+
export { DiagramTypes };
|