@progress/kendo-react-diagram 16.1.0 → 16.2.0-develop.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/cdn/js/kendo-react-diagram.js +1 -1
  2. package/hooks/useDiagramTooltip.js +1 -1
  3. package/hooks/useDiagramTooltip.mjs +37 -37
  4. package/index.d.mts +3 -2
  5. package/index.d.ts +3 -2
  6. package/index.js +1 -1
  7. package/index.mjs +52 -44
  8. package/messages/index.d.ts +437 -0
  9. package/messages/index.js +8 -0
  10. package/messages/index.mjs +182 -0
  11. package/package-metadata.js +1 -1
  12. package/package-metadata.mjs +2 -2
  13. package/package.json +10 -4
  14. package/rich-text-editing/ConnectionEditingToolbar.d.ts +17 -0
  15. package/rich-text-editing/ConnectionEditingToolbar.js +8 -0
  16. package/rich-text-editing/ConnectionEditingToolbar.mjs +126 -0
  17. package/rich-text-editing/DiagramEditor.d.ts +13 -0
  18. package/rich-text-editing/DiagramEditor.js +8 -0
  19. package/rich-text-editing/DiagramEditor.mjs +197 -0
  20. package/rich-text-editing/DiagramEditorContext.d.ts +34 -0
  21. package/rich-text-editing/DiagramEditorContext.js +8 -0
  22. package/rich-text-editing/DiagramEditorContext.mjs +117 -0
  23. package/rich-text-editing/FloatingToolbarPopup.d.ts +38 -0
  24. package/rich-text-editing/FloatingToolbarPopup.js +8 -0
  25. package/rich-text-editing/FloatingToolbarPopup.mjs +97 -0
  26. package/rich-text-editing/Icons-Dropdown.d.ts +31 -0
  27. package/rich-text-editing/Icons-Dropdown.js +8 -0
  28. package/rich-text-editing/Icons-Dropdown.mjs +160 -0
  29. package/rich-text-editing/MainToolbar.d.ts +21 -0
  30. package/rich-text-editing/MainToolbar.js +8 -0
  31. package/rich-text-editing/MainToolbar.mjs +143 -0
  32. package/rich-text-editing/ShapeEditingToolbar.d.ts +18 -0
  33. package/rich-text-editing/ShapeEditingToolbar.js +8 -0
  34. package/rich-text-editing/ShapeEditingToolbar.mjs +154 -0
  35. package/rich-text-editing/TextEditingToolbar.d.ts +25 -0
  36. package/rich-text-editing/TextEditingToolbar.js +8 -0
  37. package/rich-text-editing/TextEditingToolbar.mjs +212 -0
  38. package/rich-text-editing/border-style.d.ts +15 -0
  39. package/rich-text-editing/border-style.js +8 -0
  40. package/rich-text-editing/border-style.mjs +39 -0
  41. package/rich-text-editing/border-width.d.ts +19 -0
  42. package/rich-text-editing/border-width.js +8 -0
  43. package/rich-text-editing/border-width.mjs +112 -0
  44. package/rich-text-editing/cap-type.d.ts +25 -0
  45. package/rich-text-editing/cap-type.js +8 -0
  46. package/rich-text-editing/cap-type.mjs +40 -0
  47. package/rich-text-editing/connection-style.d.ts +15 -0
  48. package/rich-text-editing/connection-style.js +8 -0
  49. package/rich-text-editing/connection-style.mjs +39 -0
  50. package/rich-text-editing/connection-types.d.ts +15 -0
  51. package/rich-text-editing/connection-types.js +8 -0
  52. package/rich-text-editing/connection-types.mjs +33 -0
  53. package/rich-text-editing/default-toolbar-tools.d.ts +77 -0
  54. package/rich-text-editing/default-toolbar-tools.js +8 -0
  55. package/rich-text-editing/default-toolbar-tools.mjs +63 -0
  56. package/rich-text-editing/index.d.ts +10 -0
  57. package/rich-text-editing/shapes-dropdown.d.ts +23 -0
  58. package/rich-text-editing/shapes-dropdown.js +8 -0
  59. package/rich-text-editing/shapes-dropdown.mjs +66 -0
  60. package/rich-text-editing/types.d.ts +14 -0
  61. package/rich-text-editing/utils.d.ts +48 -0
  62. package/rich-text-editing/utils.js +8 -0
  63. package/rich-text-editing/utils.mjs +42 -0
@@ -0,0 +1,33 @@
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 * as n from "react";
9
+ import { useLocalization as l } from "@progress/kendo-react-intl";
10
+ import { EditingUtils as i } from "@progress/kendo-diagram-common";
11
+ import { editingConnectionType as e, messages as r, editingConnectionTypePolyline as m, editingConnectionTypeCascading as g } from "../messages/index.mjs";
12
+ import { IconsDropdown as d } from "./Icons-Dropdown.mjs";
13
+ import { localizeDataLabels as u, dropdownPopupClass as y } from "./utils.mjs";
14
+ const t = i.Data.connectionTypes, T = i.Icons.diagonalLineIcon, C = {
15
+ cascading: g,
16
+ polyline: m
17
+ }, D = (c) => {
18
+ const o = l(), a = o.toLanguageString(e, r[e]), s = n.useMemo(() => u(t, o, C, (p) => p.value), [o]);
19
+ return /* @__PURE__ */ n.createElement(
20
+ d,
21
+ {
22
+ ...c,
23
+ data: s,
24
+ buttonIcon: T,
25
+ buttonTitle: a,
26
+ columns: t.length,
27
+ popupClass: y
28
+ }
29
+ );
30
+ };
31
+ export {
32
+ D as ConnectionTypes
33
+ };
@@ -0,0 +1,77 @@
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 { ToolbarTools } from './types';
9
+ /**
10
+ * The default set of tools for the main toolbar.
11
+ *
12
+ * The configuration is an array of tool identifiers:
13
+ * - 'undo': Undo tool
14
+ * - 'redo': Redo tool
15
+ * - 'separator': Separator
16
+ * - 'select': Select tool
17
+ * - 'pan': Pan tool
18
+ * - 'separator': Separator
19
+ * - 'text': Text insertion tool
20
+ * - 'separator': Separator
21
+ * - 'shape': Shape insertion tool
22
+ */
23
+ export declare const defaultMainToolbarTools: ToolbarTools;
24
+ /**
25
+ * The default set of tools for the shape editing toolbar.
26
+ *
27
+ * The configuration is an array of tool identifiers:
28
+ * - 'type': Shape type tool
29
+ * - 'backColor': Fill color tool
30
+ * - 'separator': Separator
31
+ * - 'borderWidth': Border width tool
32
+ * - 'borderColor': Border color tool
33
+ * - 'borderStyle': Border style tool
34
+ * - 'separator': Separator
35
+ * - ['toFront', 'toBack']: Z-order tools in a group
36
+ * - 'separator': Separator
37
+ * - ['rotateLeft', 'rotateRight']: Rotation tools in a group
38
+ * - 'separator': Separator
39
+ * - ['duplicate', 'delete']: Duplicate and delete tools in a group
40
+ */
41
+ export declare const defaultShapeToolbarTools: ToolbarTools;
42
+ /**
43
+ * The default set of tools for the connection editing toolbar.
44
+ *
45
+ * The configuration is an array of tool identifiers:
46
+ * - 'color': Stroke color tool
47
+ * - 'separator': Separator
48
+ * - 'width': Stroke width tool
49
+ * - 'separator': Separator
50
+ * - 'style': Stroke style tool
51
+ * - 'separator': Separator
52
+ * - 'text': Text editing tool
53
+ * - 'separator': Separator
54
+ * - 'startCap': Start cap type tool
55
+ * - 'separator': Separator
56
+ * - 'type': Connection type tool
57
+ * - 'separator': Separator
58
+ * - 'endCap': End cap type tool
59
+ * - 'separator': Separator
60
+ * - 'delete': Delete tool
61
+ */
62
+ export declare const defaultConnectionToolbarTools: ToolbarTools;
63
+ /**
64
+ * The default set of tools for the text editing toolbar.
65
+ *
66
+ * The configuration is an array of tool identifiers:
67
+ * - 'color': Text color tool
68
+ * - 'separator': Separator
69
+ * - 'fontSize': Font size tool
70
+ * - 'separator': Separator
71
+ * - 'fontType': Font type tool
72
+ * - 'separator': Separator
73
+ * - ['bold', 'italic', 'underline']: Text formatting tools in a group
74
+ * - 'separator': Separator
75
+ * - 'align': Text alignment tool
76
+ */
77
+ export declare const defaultTextToolbarTools: ToolbarTools;
@@ -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 o=["undo","redo","separator","select","pan","separator","text","separator","shape"],a=["type","backColor","separator","borderWidth","borderColor","borderStyle","separator",["toFront","toBack"],"separator",["rotateLeft","rotateRight"],"separator",["duplicate","delete"]],t=["color","separator","width","separator","style","separator","text","separator","startCap","separator","type","separator","endCap","separator","delete"],e=["color","separator","fontSize","separator","fontType","separator",["bold","italic","underline"],"separator","align"];exports.defaultConnectionToolbarTools=t;exports.defaultMainToolbarTools=o;exports.defaultShapeToolbarTools=a;exports.defaultTextToolbarTools=e;
@@ -0,0 +1,63 @@
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 o = [
9
+ "undo",
10
+ "redo",
11
+ "separator",
12
+ "select",
13
+ "pan",
14
+ "separator",
15
+ "text",
16
+ "separator",
17
+ "shape"
18
+ ], a = [
19
+ "type",
20
+ "backColor",
21
+ "separator",
22
+ "borderWidth",
23
+ "borderColor",
24
+ "borderStyle",
25
+ "separator",
26
+ ["toFront", "toBack"],
27
+ "separator",
28
+ ["rotateLeft", "rotateRight"],
29
+ "separator",
30
+ ["duplicate", "delete"]
31
+ ], r = [
32
+ "color",
33
+ "separator",
34
+ "width",
35
+ "separator",
36
+ "style",
37
+ "separator",
38
+ "text",
39
+ "separator",
40
+ "startCap",
41
+ "separator",
42
+ "type",
43
+ "separator",
44
+ "endCap",
45
+ "separator",
46
+ "delete"
47
+ ], t = [
48
+ "color",
49
+ "separator",
50
+ "fontSize",
51
+ "separator",
52
+ "fontType",
53
+ "separator",
54
+ ["bold", "italic", "underline"],
55
+ "separator",
56
+ "align"
57
+ ];
58
+ export {
59
+ r as defaultConnectionToolbarTools,
60
+ o as defaultMainToolbarTools,
61
+ a as defaultShapeToolbarTools,
62
+ t as defaultTextToolbarTools
63
+ };
@@ -0,0 +1,10 @@
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 { DiagramEditor } from './DiagramEditor.js';
9
+ export { defaultTextToolbarTools } from './default-toolbar-tools.js';
10
+ export * from './types';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { FlowchartShapeType, DiagramEditorOverlayOwner } from '@progress/kendo-diagram-common';
9
+ import { ButtonHandle } from '@progress/kendo-react-buttons';
10
+ import * as React from 'react';
11
+ /** @hidden */
12
+ export interface ShapeSelectorProps {
13
+ onSelect: (type: FlowchartShapeType) => void;
14
+ onOpenChange?: (open: boolean) => void;
15
+ value: FlowchartShapeType | null;
16
+ active?: boolean;
17
+ buttonTitle: string;
18
+ shapes?: FlowchartShapeType[];
19
+ popupClass?: string;
20
+ overlayOwner: DiagramEditorOverlayOwner;
21
+ }
22
+ /** @hidden */
23
+ export declare const ShapeSelector: React.ForwardRefExoticComponent<ShapeSelectorProps & React.RefAttributes<ButtonHandle>>;
@@ -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 u=require("react"),e=require("@progress/kendo-diagram-common"),g=require("@progress/kendo-react-intl"),t=require("../messages/index.js"),d=require("./Icons-Dropdown.js"),y=require("@progress/kendo-svg-icons"),w=require("./utils.js");function T(o){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const i in o)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(o,i);Object.defineProperty(a,i,r.get?r:{enumerable:!0,get:()=>o[i]})}}return a.default=o,Object.freeze(a)}const h=T(u),{shapesData:D}=e.EditingUtils.Icons,{workflowShapes:m}=e.EditingUtils.Data,F={[e.FlowchartShapeType.Collate]:t.editingShapeCollate,[e.FlowchartShapeType.OnPageConnector]:t.editingShapeConnector,[e.FlowchartShapeType.DataStorage]:t.editingShapeDataStorage,[e.FlowchartShapeType.Database]:t.editingShapeDatabase,[e.FlowchartShapeType.Decision]:t.editingShapeDecision,[e.FlowchartShapeType.Delay]:t.editingShapeDelay,[e.FlowchartShapeType.DirectAccessStorage]:t.editingShapeDirectAccessStorage,[e.FlowchartShapeType.Display]:t.editingShapeDisplay,[e.FlowchartShapeType.Document]:t.editingShapeDocument,[e.FlowchartShapeType.Extract]:t.editingShapeExtract,[e.FlowchartShapeType.DataInputOutput]:t.editingShapeInputOutput,[e.FlowchartShapeType.InternalStorage]:t.editingShapeInternalStorage,[e.FlowchartShapeType.LogicalOr]:t.editingShapeLogicalOr,[e.FlowchartShapeType.ManualInputOutput]:t.editingShapeManualInputOutput,[e.FlowchartShapeType.ManualOperation]:t.editingShapeManualOperation,[e.FlowchartShapeType.Merge]:t.editingShapeMerge,[e.FlowchartShapeType.MultipleDocuments]:t.editingShapeMultipleDocuments,[e.FlowchartShapeType.OffPageConnector]:t.editingShapeOffPageConnector,[e.FlowchartShapeType.PredefinedProcess]:t.editingShapePredefinedProcess,[e.FlowchartShapeType.Preparation]:t.editingShapePreparation,[e.FlowchartShapeType.Process]:t.editingShapeProcess,[e.FlowchartShapeType.Sort]:t.editingShapeSort,[e.FlowchartShapeType.SummingJunction]:t.editingShapeSummingJunction,[e.FlowchartShapeType.Terminator]:t.editingShapeTerminator},f=h.forwardRef(function(a,i){const r=g.useLocalization(),p=h.useMemo(()=>w.localizeDataLabels(D,r,F,l=>l.type),[r]),s=h.useMemo(()=>{const l=new Map(p.map(({label:c,icon:n,type:S})=>[S,{icon:n,label:c}]));return(a.shapes||m).map(c=>{const n=l.get(c);return{label:(n==null?void 0:n.label)||p[0].label,icon:(n==null?void 0:n.icon)||p[0].icon,value:c}})},[p,a.shapes]);return h.createElement(d.IconsDropdown,{...a,ref:i,data:s,buttonIcon:y.shapesIcon,buttonTitle:a.buttonTitle,columns:4})});exports.ShapeSelector=f;
@@ -0,0 +1,66 @@
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 * as o from "react";
9
+ import { EditingUtils as c, FlowchartShapeType as e } from "@progress/kendo-diagram-common";
10
+ import { useLocalization as S } from "@progress/kendo-react-intl";
11
+ import { editingShapeTerminator as u, editingShapeSummingJunction as h, editingShapeSort as d, editingShapeProcess as m, editingShapePreparation as D, editingShapePredefinedProcess as f, editingShapeOffPageConnector as M, editingShapeMultipleDocuments as O, editingShapeMerge as P, editingShapeManualOperation as I, editingShapeManualInputOutput as b, editingShapeLogicalOr as y, editingShapeInternalStorage as w, editingShapeInputOutput as C, editingShapeExtract as T, editingShapeDocument as z, editingShapeDisplay as E, editingShapeDirectAccessStorage as L, editingShapeDelay as x, editingShapeDecision as A, editingShapeDatabase as J, editingShapeDataStorage as R, editingShapeConnector as k, editingShapeCollate as v } from "../messages/index.mjs";
12
+ import { IconsDropdown as B } from "./Icons-Dropdown.mjs";
13
+ import { shapesIcon as F } from "@progress/kendo-svg-icons";
14
+ import { localizeDataLabels as K } from "./utils.mjs";
15
+ const { shapesData: U } = c.Icons, { workflowShapes: j } = c.Data, q = {
16
+ [e.Collate]: v,
17
+ [e.OnPageConnector]: k,
18
+ [e.DataStorage]: R,
19
+ [e.Database]: J,
20
+ [e.Decision]: A,
21
+ [e.Delay]: x,
22
+ [e.DirectAccessStorage]: L,
23
+ [e.Display]: E,
24
+ [e.Document]: z,
25
+ [e.Extract]: T,
26
+ [e.DataInputOutput]: C,
27
+ [e.InternalStorage]: w,
28
+ [e.LogicalOr]: y,
29
+ [e.ManualInputOutput]: b,
30
+ [e.ManualOperation]: I,
31
+ [e.Merge]: P,
32
+ [e.MultipleDocuments]: O,
33
+ [e.OffPageConnector]: M,
34
+ [e.PredefinedProcess]: f,
35
+ [e.Preparation]: D,
36
+ [e.Process]: m,
37
+ [e.Sort]: d,
38
+ [e.SummingJunction]: h,
39
+ [e.Terminator]: u
40
+ }, Y = o.forwardRef(function(a, s) {
41
+ const p = S(), n = o.useMemo(() => K(U, p, q, (r) => r.type), [p]), l = o.useMemo(() => {
42
+ const r = new Map(n.map(({ label: i, icon: t, type: g }) => [g, { icon: t, label: i }]));
43
+ return (a.shapes || j).map((i) => {
44
+ const t = r.get(i);
45
+ return {
46
+ label: (t == null ? void 0 : t.label) || n[0].label,
47
+ icon: (t == null ? void 0 : t.icon) || n[0].icon,
48
+ value: i
49
+ };
50
+ });
51
+ }, [n, a.shapes]);
52
+ return /* @__PURE__ */ o.createElement(
53
+ B,
54
+ {
55
+ ...a,
56
+ ref: s,
57
+ data: l,
58
+ buttonIcon: F,
59
+ buttonTitle: a.buttonTitle,
60
+ columns: 4
61
+ }
62
+ );
63
+ });
64
+ export {
65
+ Y as ShapeSelector
66
+ };
@@ -0,0 +1,14 @@
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 { DiagramEditorOptions } from '@progress/kendo-diagram-common';
9
+ export type { ToolbarTools, FontTypeItem, FontSizeItem, ConnectionToolbarOptions, MainToolbarOptions, ShapeToolbarOptions, TextToolbarOptions } from '@progress/kendo-diagram-common';
10
+ /**
11
+ * The props of the `DiagramEditor` component.
12
+ */
13
+ export interface DiagramEditorProps extends DiagramEditorOptions {
14
+ }
@@ -0,0 +1,48 @@
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 { messages } from '../messages/index.js';
9
+ import { ToolbarTools } from './types';
10
+ import * as React from 'react';
11
+ type LocalizationLike = {
12
+ toLanguageString: (messageKey: string, defaultValue: string) => string;
13
+ };
14
+ /** @hidden */
15
+ export declare const preventDefault: (e: {
16
+ preventDefault: () => void;
17
+ }) => void;
18
+ /** @hidden */
19
+ export declare const preventFocusSteal: {
20
+ onMouseDown: (e: {
21
+ preventDefault: () => void;
22
+ }) => void;
23
+ onPointerDown: (e: {
24
+ preventDefault: () => void;
25
+ }) => void;
26
+ };
27
+ /** @hidden */
28
+ export declare const floatingToolbarButtons: string[];
29
+ /** @hidden */
30
+ export declare const mapTools: (tools: ToolbarTools, toolsMap: {
31
+ [key: string]: {
32
+ component: React.ComponentType<any>;
33
+ props: any;
34
+ };
35
+ }) => (React.JSX.Element | null)[];
36
+ /** @hidden */
37
+ export declare const localizeDataLabels: <T extends {
38
+ label: string;
39
+ }, K extends string | number>(items: T[], localization: LocalizationLike, messageKeysMap: Partial<Record<string, keyof typeof messages>>, getItemKey: (item: T) => K) => (T & {
40
+ label: string;
41
+ })[];
42
+ /** @hidden */
43
+ export declare const dropdownPopupClass = "k-diagram-context-toolbar-popup";
44
+ /** @hidden */
45
+ export declare const toolbarPopupWrapClass = "k-diagram-context-toolbar-container";
46
+ /** @hidden */
47
+ export declare const mainToolbarPopupClass = "k-diagram-main-toolbar-popup";
48
+ export {};
@@ -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 i=require("react"),b=require("@progress/kendo-react-buttons"),m=require("../messages/index.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const c=g(i),l=t=>t.preventDefault(),d={onMouseDown:l,onPointerDown:l},u=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",f=[`button${u}`,`.k-button-group > button${u}`,".k-colorpicker",".k-dropdownlist"],s=(t,e)=>`${t}-${e}`,p=(t,e)=>{if(!t)return null;const{component:o,props:n}=t;return c.createElement(o,{...n,key:e})},k=(t,e)=>t.map((o,n)=>Array.isArray(o)?c.createElement(b.ButtonGroup,{key:s("group",n)},o.map((r,a)=>p(e[r],s(r,a))).filter(Boolean)):p(e[o],s(o,n))).filter(Boolean),y=(t,e,o,n)=>t.map(r=>{const a=o[String(n(r))];return{...r,label:a?e.toLanguageString(a,m.messages[a]):r.label}}),P="k-diagram-context-toolbar-popup",D="k-diagram-context-toolbar-container",w="k-diagram-main-toolbar-popup";exports.dropdownPopupClass=P;exports.floatingToolbarButtons=f;exports.localizeDataLabels=y;exports.mainToolbarPopupClass=w;exports.mapTools=k;exports.preventDefault=l;exports.preventFocusSteal=d;exports.toolbarPopupWrapClass=D;
@@ -0,0 +1,42 @@
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 * as c from "react";
9
+ import { ButtonGroup as i } from "@progress/kendo-react-buttons";
10
+ import { messages as m } from "../messages/index.mjs";
11
+ const s = (o) => o.preventDefault(), g = {
12
+ onMouseDown: s,
13
+ onPointerDown: s
14
+ }, l = ":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)", f = [
15
+ `button${l}`,
16
+ `.k-button-group > button${l}`,
17
+ ".k-colorpicker",
18
+ ".k-dropdownlist"
19
+ ], p = (o, t) => `${o}-${t}`, u = (o, t) => {
20
+ if (!o)
21
+ return null;
22
+ const { component: n, props: r } = o;
23
+ return /* @__PURE__ */ c.createElement(n, { ...r, key: t });
24
+ }, d = (o, t) => o.map((n, r) => Array.isArray(n) ? /* @__PURE__ */ c.createElement(i, { key: p("group", r) }, n.map(
25
+ (e, a) => u(t[e], p(e, a))
26
+ ).filter(Boolean)) : u(t[n], p(n, r))).filter(Boolean), w = (o, t, n, r) => o.map((e) => {
27
+ const a = n[String(r(e))];
28
+ return {
29
+ ...e,
30
+ label: a ? t.toLanguageString(a, m[a]) : e.label
31
+ };
32
+ }), y = "k-diagram-context-toolbar-popup", B = "k-diagram-context-toolbar-container", C = "k-diagram-main-toolbar-popup";
33
+ export {
34
+ y as dropdownPopupClass,
35
+ f as floatingToolbarButtons,
36
+ w as localizeDataLabels,
37
+ C as mainToolbarPopupClass,
38
+ d as mapTools,
39
+ s as preventDefault,
40
+ g as preventFocusSteal,
41
+ B as toolbarPopupWrapClass
42
+ };