@redvars/peacock 3.8.6 → 3.9.1

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 (85) hide show
  1. package/dist/code-highlighter.js +1 -4
  2. package/dist/code-highlighter.js.map +1 -1
  3. package/dist/custom-elements-jsdocs.json +93 -213
  4. package/dist/custom-elements.json +488 -2149
  5. package/dist/elevation.js +55 -2
  6. package/dist/elevation.js.map +1 -1
  7. package/dist/flow.js +762 -0
  8. package/dist/flow.js.map +1 -0
  9. package/dist/index.js +3 -3
  10. package/dist/loader.js +10 -9
  11. package/dist/loader.js.map +1 -1
  12. package/dist/menu-item.js +144 -63
  13. package/dist/menu-item.js.map +1 -1
  14. package/dist/menu.js +161 -73
  15. package/dist/menu.js.map +1 -1
  16. package/dist/src/flow/flow.d.ts +102 -0
  17. package/dist/src/flow/index.d.ts +2 -0
  18. package/dist/src/index.d.ts +3 -4
  19. package/dist/src/menu/menu/menu.d.ts +10 -9
  20. package/dist/src/menu/menu-item/menu-item.d.ts +1 -3
  21. package/dist/src/timeline/index.d.ts +2 -0
  22. package/dist/src/timeline/timeline-item.d.ts +23 -0
  23. package/dist/src/timeline/timeline.d.ts +26 -0
  24. package/dist/sub-menu.js +28 -1
  25. package/dist/sub-menu.js.map +1 -1
  26. package/dist/timeline-item.js +163 -0
  27. package/dist/timeline-item.js.map +1 -0
  28. package/dist/timeline.js +52 -0
  29. package/dist/timeline.js.map +1 -0
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/package.json +3 -2
  32. package/readme.md +2 -2
  33. package/src/code-highlighter/code-highlighter.scss +1 -7
  34. package/src/elevation/demo/index.html +52 -0
  35. package/src/elevation/elevation.scss +52 -5
  36. package/src/elevation/elevation.ts +8 -1
  37. package/src/flow/flow.scss +195 -0
  38. package/src/flow/flow.ts +683 -0
  39. package/src/flow/index.ts +2 -0
  40. package/src/index.ts +3 -16
  41. package/src/loader.ts +10 -9
  42. package/src/menu/menu/copy-component-files.mjs +47 -0
  43. package/src/menu/menu/menu.scss +55 -17
  44. package/src/menu/menu/menu.ts +155 -84
  45. package/src/menu/menu-item/menu-item-colors.scss +3 -3
  46. package/src/menu/menu-item/menu-item.scss +118 -24
  47. package/src/menu/menu-item/menu-item.ts +61 -55
  48. package/src/menu/sub-menu/sub-menu.scss +30 -1
  49. package/src/timeline/index.ts +2 -0
  50. package/src/timeline/timeline-item.scss +98 -0
  51. package/src/timeline/timeline-item.ts +63 -0
  52. package/src/timeline/timeline.scss +11 -0
  53. package/src/timeline/timeline.ts +41 -0
  54. package/dist/canvas.js +0 -385
  55. package/dist/canvas.js.map +0 -1
  56. package/dist/flow-designer-node-CGSm6cUH.js +0 -553
  57. package/dist/flow-designer-node-CGSm6cUH.js.map +0 -1
  58. package/dist/flow-designer-node.js +0 -4
  59. package/dist/flow-designer-node.js.map +0 -1
  60. package/dist/flow-designer.js +0 -1417
  61. package/dist/flow-designer.js.map +0 -1
  62. package/dist/src/canvas/canvas.d.ts +0 -92
  63. package/dist/src/canvas/index.d.ts +0 -2
  64. package/dist/src/flow-designer/commands.d.ts +0 -66
  65. package/dist/src/flow-designer/flow-designer-node.d.ts +0 -46
  66. package/dist/src/flow-designer/flow-designer.d.ts +0 -133
  67. package/dist/src/flow-designer/index.d.ts +0 -7
  68. package/dist/src/flow-designer/layout.d.ts +0 -30
  69. package/dist/src/flow-designer/types.d.ts +0 -142
  70. package/dist/src/flow-designer/validation.d.ts +0 -43
  71. package/dist/src/flow-designer/workflow-utils.d.ts +0 -40
  72. package/src/canvas/canvas.scss +0 -72
  73. package/src/canvas/canvas.ts +0 -413
  74. package/src/canvas/index.ts +0 -2
  75. package/src/flow-designer/DEMO.md +0 -239
  76. package/src/flow-designer/commands.ts +0 -278
  77. package/src/flow-designer/flow-designer-node.ts +0 -172
  78. package/src/flow-designer/flow-designer.scss +0 -457
  79. package/src/flow-designer/flow-designer.ts +0 -611
  80. package/src/flow-designer/index.ts +0 -41
  81. package/src/flow-designer/layout.ts +0 -357
  82. package/src/flow-designer/types.ts +0 -166
  83. package/src/flow-designer/validation.ts +0 -284
  84. package/src/flow-designer/workflow-utils.ts +0 -282
  85. /package/dist/test/{flow-designer.test.d.ts → elevation.test.d.ts} +0 -0
@@ -14177,7 +14177,7 @@
14177
14177
  "type": {
14178
14178
  "text": "string"
14179
14179
  },
14180
- "default": "''",
14180
+ "default": "\"\"",
14181
14181
  "description": "The value associated with this menu item, used to identify it on selection.",
14182
14182
  "attribute": "value",
14183
14183
  "inheritedFrom": {
@@ -14226,17 +14226,6 @@
14226
14226
  "description": "Whether the associated submenu is currently open.",
14227
14227
  "attribute": "submenu-open"
14228
14228
  },
14229
- {
14230
- "kind": "field",
14231
- "name": "variant",
14232
- "type": {
14233
- "text": "'standard' | 'vibrant'"
14234
- },
14235
- "default": "'standard'",
14236
- "description": "Visual variant of the menu item.",
14237
- "attribute": "variant",
14238
- "reflects": true
14239
- },
14240
14229
  {
14241
14230
  "kind": "field",
14242
14231
  "name": "itemElement",
@@ -14444,7 +14433,7 @@
14444
14433
  "type": {
14445
14434
  "text": "string"
14446
14435
  },
14447
- "default": "''",
14436
+ "default": "\"\"",
14448
14437
  "description": "The value associated with this menu item, used to identify it on selection.",
14449
14438
  "fieldName": "value",
14450
14439
  "inheritedFrom": {
@@ -14488,15 +14477,6 @@
14488
14477
  "description": "Whether the associated submenu is currently open.",
14489
14478
  "fieldName": "submenuOpen"
14490
14479
  },
14491
- {
14492
- "name": "variant",
14493
- "type": {
14494
- "text": "'standard' | 'vibrant'"
14495
- },
14496
- "default": "'standard'",
14497
- "description": "Visual variant of the menu item.",
14498
- "fieldName": "variant"
14499
- },
14500
14480
  {
14501
14481
  "name": "htmlType",
14502
14482
  "type": {
@@ -14689,9 +14669,9 @@
14689
14669
  "kind": "field",
14690
14670
  "name": "variant",
14691
14671
  "type": {
14692
- "text": "'standard' | 'vibrant'"
14672
+ "text": "\"standard\" | \"vibrant\""
14693
14673
  },
14694
- "default": "'standard'",
14674
+ "default": "\"standard\"",
14695
14675
  "description": "Visual variant of the menu. `\"vibrant\"` applies stronger color emphasis.",
14696
14676
  "attribute": "variant",
14697
14677
  "reflects": true
@@ -14702,7 +14682,7 @@
14702
14682
  "type": {
14703
14683
  "text": "string"
14704
14684
  },
14705
- "default": "''",
14685
+ "default": "\"\"",
14706
14686
  "description": "ID of the anchor element the menu is positioned relative to.",
14707
14687
  "attribute": "anchor"
14708
14688
  },
@@ -14753,7 +14733,7 @@
14753
14733
  "type": {
14754
14734
  "text": "Placement"
14755
14735
  },
14756
- "default": "'bottom-start'",
14736
+ "default": "\"bottom-start\"",
14757
14737
  "description": "Floating UI placement of the menu relative to its anchor.",
14758
14738
  "attribute": "placement"
14759
14739
  },
@@ -14800,7 +14780,7 @@
14800
14780
  "name": "_floatingController",
14801
14781
  "privacy": "private",
14802
14782
  "readonly": true,
14803
- "default": "new FloatingController(this, { trigger: 'manual', closeOnClickOutside: false, strategy: 'fixed', onOpenChange: isOpen => { if (isOpen || !this.open) { return; } this.close({ kind: 'outside-click' }); }, })",
14783
+ "default": "new FloatingController(this, { trigger: \"manual\", closeOnClickOutside: false, strategy: \"fixed\", onOpenChange: (isOpen) => { if (isOpen || !this.open) { return; } this.close({ kind: \"outside-click\" }); }, })",
14804
14784
  "description": "Controller managing floating-UI positioning."
14805
14785
  },
14806
14786
  {
@@ -14820,7 +14800,7 @@
14820
14800
  "text": "CloseReason"
14821
14801
  },
14822
14802
  "privacy": "private",
14823
- "default": "{ kind: 'programmatic' }",
14803
+ "default": "{ kind: \"programmatic\" }",
14824
14804
  "description": "Reason that triggered the most recent close, included in the `closed` event detail.",
14825
14805
  "expandedType": {
14826
14806
  "text": " | | | | "
@@ -14844,7 +14824,7 @@
14844
14824
  "parameters": [
14845
14825
  {
14846
14826
  "name": "reason",
14847
- "default": "{ kind: 'programmatic' }",
14827
+ "default": "{ kind: \"programmatic\" }",
14848
14828
  "type": {
14849
14829
  "text": "CloseReason"
14850
14830
  }
@@ -14978,6 +14958,11 @@
14978
14958
  "name": "_onSlotChange",
14979
14959
  "privacy": "private"
14980
14960
  },
14961
+ {
14962
+ "kind": "method",
14963
+ "name": "_syncItemPositions",
14964
+ "privacy": "private"
14965
+ },
14981
14966
  {
14982
14967
  "kind": "method",
14983
14968
  "name": "_applyPositioning",
@@ -15023,9 +15008,9 @@
15023
15008
  {
15024
15009
  "name": "variant",
15025
15010
  "type": {
15026
- "text": "'standard' | 'vibrant'"
15011
+ "text": "\"standard\" | \"vibrant\""
15027
15012
  },
15028
- "default": "'standard'",
15013
+ "default": "\"standard\"",
15029
15014
  "description": "Visual variant of the menu. `\"vibrant\"` applies stronger color emphasis.",
15030
15015
  "fieldName": "variant"
15031
15016
  },
@@ -15034,7 +15019,7 @@
15034
15019
  "type": {
15035
15020
  "text": "string"
15036
15021
  },
15037
- "default": "''",
15022
+ "default": "\"\"",
15038
15023
  "description": "ID of the anchor element the menu is positioned relative to.",
15039
15024
  "fieldName": "anchor"
15040
15025
  },
@@ -15079,7 +15064,7 @@
15079
15064
  "type": {
15080
15065
  "text": "Placement"
15081
15066
  },
15082
- "default": "'bottom-start'",
15067
+ "default": "\"bottom-start\"",
15083
15068
  "description": "Floating UI placement of the menu relative to its anchor.",
15084
15069
  "fieldName": "placement"
15085
15070
  },
@@ -16080,6 +16065,123 @@
16080
16065
  }
16081
16066
  ]
16082
16067
  },
16068
+ {
16069
+ "kind": "javascript-module",
16070
+ "path": "src/timeline/timeline-item.ts",
16071
+ "declarations": [
16072
+ {
16073
+ "kind": "class",
16074
+ "description": "",
16075
+ "name": "TimelineItem",
16076
+ "members": [
16077
+ {
16078
+ "kind": "field",
16079
+ "name": "loading",
16080
+ "type": {
16081
+ "text": "boolean"
16082
+ },
16083
+ "default": "false",
16084
+ "attribute": "loading",
16085
+ "reflects": true
16086
+ }
16087
+ ],
16088
+ "attributes": [
16089
+ {
16090
+ "name": "loading",
16091
+ "type": {
16092
+ "text": "boolean"
16093
+ },
16094
+ "default": "false",
16095
+ "fieldName": "loading"
16096
+ }
16097
+ ],
16098
+ "superclass": {
16099
+ "name": "LitElement",
16100
+ "package": "lit"
16101
+ },
16102
+ "tagName": "wc-timeline-item",
16103
+ "customElement": true,
16104
+ "summary": "An item for use inside a timeline, with a dot/marker and description.",
16105
+ "rawTag": {
16106
+ "name": "timeline-item",
16107
+ "description": ""
16108
+ }
16109
+ }
16110
+ ],
16111
+ "exports": [
16112
+ {
16113
+ "kind": "js",
16114
+ "name": "TimelineItem",
16115
+ "declaration": {
16116
+ "name": "TimelineItem",
16117
+ "module": "src/timeline/timeline-item.ts"
16118
+ }
16119
+ }
16120
+ ]
16121
+ },
16122
+ {
16123
+ "kind": "javascript-module",
16124
+ "path": "src/timeline/timeline.ts",
16125
+ "declarations": [
16126
+ {
16127
+ "kind": "class",
16128
+ "description": "",
16129
+ "name": "Timeline",
16130
+ "members": [
16131
+ {
16132
+ "kind": "field",
16133
+ "name": "Item",
16134
+ "static": true,
16135
+ "default": "TimelineItem"
16136
+ }
16137
+ ],
16138
+ "superclass": {
16139
+ "name": "LitElement",
16140
+ "package": "lit"
16141
+ },
16142
+ "tagName": "wc-timeline",
16143
+ "customElement": true,
16144
+ "summary": "A vertical timeline layout for a series of timeline items.",
16145
+ "rawTag": {
16146
+ "name": "timeline",
16147
+ "description": ""
16148
+ }
16149
+ }
16150
+ ],
16151
+ "exports": [
16152
+ {
16153
+ "kind": "js",
16154
+ "name": "Timeline",
16155
+ "declaration": {
16156
+ "name": "Timeline",
16157
+ "module": "src/timeline/timeline.ts"
16158
+ }
16159
+ }
16160
+ ]
16161
+ },
16162
+ {
16163
+ "kind": "javascript-module",
16164
+ "path": "src/timeline/index.ts",
16165
+ "declarations": [],
16166
+ "exports": [
16167
+ {
16168
+ "kind": "js",
16169
+ "name": "Timeline",
16170
+ "declaration": {
16171
+ "name": "Timeline",
16172
+ "module": "./timeline.js"
16173
+ }
16174
+ },
16175
+ {
16176
+ "kind": "js",
16177
+ "name": "TimelineItem",
16178
+ "declaration": {
16179
+ "name": "TimelineItem",
16180
+ "module": "./timeline-item.js"
16181
+ }
16182
+ }
16183
+ ]
16184
+ },
16083
16185
  {
16084
16186
  "kind": "javascript-module",
16085
16187
  "path": "src/item/item.ts",
@@ -28570,55 +28672,52 @@
28570
28672
  },
28571
28673
  {
28572
28674
  "kind": "javascript-module",
28573
- "path": "src/canvas/canvas.ts",
28675
+ "path": "src/flow/flow.ts",
28574
28676
  "declarations": [
28575
28677
  {
28576
28678
  "kind": "class",
28577
28679
  "description": "",
28578
- "name": "Canvas",
28680
+ "name": "Flow",
28579
28681
  "cssProperties": [
28580
28682
  {
28581
28683
  "description": "Background color for the canvas wrapper. Defaults to surface-container-low.",
28582
- "name": "--canvas-background"
28684
+ "name": "--flow-background"
28583
28685
  },
28584
28686
  {
28585
28687
  "description": "Color of the background grid dots. Defaults to outline-variant.",
28586
- "name": "--canvas-dot-color"
28688
+ "name": "--flow-dot-color"
28587
28689
  },
28588
28690
  {
28589
28691
  "description": "Default stroke color for lines and connectors. Defaults to on-surface.",
28590
- "name": "--canvas-line-color"
28692
+ "name": "--flow-line-color"
28591
28693
  },
28592
28694
  {
28593
28695
  "description": "Stroke color on hover for clickable shapes. Defaults to primary.",
28594
- "name": "--canvas-hover-color"
28696
+ "name": "--flow-hover-color"
28595
28697
  },
28596
28698
  {
28597
28699
  "description": "Stroke color for arrow markers. Defaults to on-surface.",
28598
- "name": "--canvas-arrow-color"
28700
+ "name": "--flow-arrow-color"
28599
28701
  }
28600
28702
  ],
28601
28703
  "members": [
28602
28704
  {
28603
28705
  "kind": "field",
28604
- "name": "shapes",
28706
+ "name": "nodes",
28605
28707
  "type": {
28606
- "text": "CanvasShape[]"
28708
+ "text": "FlowNode[]"
28607
28709
  },
28608
28710
  "default": "[]",
28609
- "description": "Array of shape objects to render on the canvas.",
28610
- "attribute": "shapes"
28711
+ "attribute": "nodes"
28611
28712
  },
28612
28713
  {
28613
28714
  "kind": "field",
28614
- "name": "padding",
28715
+ "name": "edges",
28615
28716
  "type": {
28616
- "text": "number"
28717
+ "text": "FlowEdge[]"
28617
28718
  },
28618
- "default": "1",
28619
- "description": "Padding around the computed viewbox (in grid units).",
28620
- "attribute": "padding",
28621
- "reflects": true
28719
+ "default": "[]",
28720
+ "attribute": "edges"
28622
28721
  },
28623
28722
  {
28624
28723
  "kind": "field",
@@ -28627,1615 +28726,118 @@
28627
28726
  "text": "number"
28628
28727
  },
28629
28728
  "default": "1",
28630
- "description": "Zoom multiplier for the canvas dimensions.",
28631
28729
  "attribute": "zoom",
28632
28730
  "reflects": true
28633
28731
  },
28634
28732
  {
28635
28733
  "kind": "field",
28636
- "name": "viewbox",
28734
+ "name": "padding",
28637
28735
  "type": {
28638
- "text": "string | undefined"
28639
- },
28640
- "description": "Optional viewbox override string (e.g. \"0 0 100 100\").",
28641
- "attribute": "viewbox"
28642
- },
28643
- {
28644
- "kind": "method",
28645
- "name": "getNextPoint",
28646
- "privacy": "private",
28647
- "static": true,
28648
- "return": {
28649
- "type": {
28650
- "text": "CanvasPoint"
28651
- }
28736
+ "text": "number"
28652
28737
  },
28653
- "parameters": [
28654
- {
28655
- "name": "point",
28656
- "type": {
28657
- "text": "CanvasPoint"
28658
- }
28659
- },
28660
- {
28661
- "name": "direction",
28662
- "type": {
28663
- "text": "CanvasDirection"
28664
- }
28665
- },
28666
- {
28667
- "name": "length",
28668
- "type": {
28669
- "text": "number"
28670
- }
28671
- }
28672
- ]
28673
- },
28674
- {
28675
- "kind": "method",
28676
- "name": "updateExtents",
28677
- "privacy": "private",
28678
- "static": true,
28679
- "parameters": [
28680
- {
28681
- "name": "extents",
28682
- "type": {
28683
- "text": "CanvasExtents"
28684
- }
28685
- },
28686
- {
28687
- "name": "x",
28688
- "type": {
28689
- "text": "number"
28690
- }
28691
- },
28692
- {
28693
- "name": "y",
28694
- "type": {
28695
- "text": "number"
28696
- }
28697
- }
28698
- ]
28738
+ "default": "50",
28739
+ "attribute": "padding",
28740
+ "reflects": true
28699
28741
  },
28700
28742
  {
28701
- "kind": "method",
28702
- "name": "getStrokeVariantClasses",
28743
+ "kind": "field",
28744
+ "name": "nodeDimensions",
28703
28745
  "privacy": "private",
28704
- "static": true,
28705
- "parameters": [
28706
- {
28707
- "name": "variant",
28708
- "optional": true,
28709
- "type": {
28710
- "text": "CanvasStrokeVariant"
28711
- }
28712
- }
28713
- ]
28746
+ "default": "new Map<string, { width: number; height: number }>()"
28714
28747
  },
28715
28748
  {
28716
- "kind": "method",
28717
- "name": "computeShapes",
28749
+ "kind": "field",
28750
+ "name": "draggingNodeId",
28751
+ "type": {
28752
+ "text": "string | null"
28753
+ },
28718
28754
  "privacy": "private",
28719
- "parameters": [
28720
- {
28721
- "name": "initialBounds",
28722
- "type": {
28723
- "text": "CanvasBounds"
28724
- }
28725
- }
28726
- ]
28755
+ "default": "null"
28727
28756
  },
28728
28757
  {
28729
- "kind": "method",
28730
- "name": "renderBackgroundSvg",
28758
+ "kind": "field",
28759
+ "name": "dragStartMouseX",
28760
+ "type": {
28761
+ "text": "number"
28762
+ },
28731
28763
  "privacy": "private",
28732
- "parameters": [
28733
- {
28734
- "name": "computedViewBox",
28735
- "type": {
28736
- "text": "CanvasViewBox"
28737
- }
28738
- },
28739
- {
28740
- "name": "svgViewBox",
28741
- "type": {
28742
- "text": "string"
28743
- }
28744
- }
28745
- ]
28764
+ "default": "0"
28746
28765
  },
28747
28766
  {
28748
- "kind": "method",
28749
- "name": "renderShapesSvg",
28750
- "privacy": "private",
28751
- "parameters": [
28752
- {
28753
- "name": "shapes",
28754
- "type": {
28755
- "text": "unknown[]"
28756
- }
28757
- },
28758
- {
28759
- "name": "svgViewBox",
28760
- "type": {
28761
- "text": "string"
28762
- }
28763
- }
28764
- ]
28765
- }
28766
- ],
28767
- "attributes": [
28768
- {
28769
- "name": "shapes",
28767
+ "kind": "field",
28768
+ "name": "dragStartMouseY",
28770
28769
  "type": {
28771
- "text": "CanvasShape[]"
28770
+ "text": "number"
28772
28771
  },
28773
- "default": "[]",
28774
- "description": "Array of shape objects to render on the canvas.",
28775
- "fieldName": "shapes"
28772
+ "privacy": "private",
28773
+ "default": "0"
28776
28774
  },
28777
28775
  {
28778
- "name": "padding",
28776
+ "kind": "field",
28777
+ "name": "dragStartNodeX",
28779
28778
  "type": {
28780
28779
  "text": "number"
28781
28780
  },
28782
- "default": "1",
28783
- "description": "Padding around the computed viewbox (in grid units).",
28784
- "fieldName": "padding"
28781
+ "privacy": "private",
28782
+ "default": "0"
28785
28783
  },
28786
28784
  {
28787
- "name": "zoom",
28785
+ "kind": "field",
28786
+ "name": "dragStartNodeY",
28788
28787
  "type": {
28789
28788
  "text": "number"
28790
28789
  },
28791
- "default": "1",
28792
- "description": "Zoom multiplier for the canvas dimensions.",
28793
- "fieldName": "zoom"
28790
+ "privacy": "private",
28791
+ "default": "0"
28794
28792
  },
28795
28793
  {
28796
- "name": "viewbox",
28797
- "type": {
28798
- "text": "string | undefined"
28799
- },
28800
- "description": "Optional viewbox override string (e.g. \"0 0 100 100\").",
28801
- "fieldName": "viewbox"
28802
- }
28803
- ],
28804
- "superclass": {
28805
- "name": "LitElement",
28806
- "package": "lit"
28807
- },
28808
- "tagName": "wc-canvas",
28809
- "customElement": true,
28810
- "summary": "A SVG canvas for drawing shapes, lines, and connectors on a dotted grid.",
28811
- "rawTag": {
28812
- "name": "canvas",
28813
- "description": ""
28814
- }
28815
- }
28816
- ],
28817
- "exports": [
28818
- {
28819
- "kind": "js",
28820
- "name": "Canvas",
28821
- "declaration": {
28822
- "name": "Canvas",
28823
- "module": "src/canvas/canvas.ts"
28824
- }
28825
- }
28826
- ]
28827
- },
28828
- {
28829
- "kind": "javascript-module",
28830
- "path": "src/canvas/index.ts",
28831
- "declarations": [],
28832
- "exports": [
28833
- {
28834
- "kind": "js",
28835
- "name": "Canvas",
28836
- "declaration": {
28837
- "name": "Canvas",
28838
- "module": "./canvas.js"
28839
- }
28840
- },
28841
- {
28842
- "kind": "js",
28843
- "name": "CanvasShape",
28844
- "declaration": {
28845
- "name": "CanvasShape",
28846
- "module": "./canvas.js"
28847
- }
28848
- }
28849
- ]
28850
- },
28851
- {
28852
- "kind": "javascript-module",
28853
- "path": "src/flow-designer/types.ts",
28854
- "declarations": [],
28855
- "exports": []
28856
- },
28857
- {
28858
- "kind": "javascript-module",
28859
- "path": "src/flow-designer/flow-designer-node.ts",
28860
- "declarations": [
28861
- {
28862
- "kind": "class",
28863
- "description": "Individual node component for flow designer\nRenders a single workflow node with customizable slot templates",
28864
- "name": "FlowDesignerNode",
28865
- "members": [
28866
- {
28867
- "kind": "field",
28868
- "name": "node",
28869
- "type": {
28870
- "text": "WorkflowNode"
28871
- },
28872
- "default": "{ id: '', type: 'action', label: '' }",
28873
- "description": "The workflow node to render",
28874
- "attribute": "node"
28875
- },
28876
- {
28877
- "kind": "field",
28878
- "name": "isSelected",
28879
- "type": {
28880
- "text": "boolean"
28881
- },
28882
- "default": "false",
28883
- "description": "Whether this node is currently selected",
28884
- "attribute": "selected",
28885
- "reflects": true
28886
- },
28887
- {
28888
- "kind": "field",
28889
- "name": "isEditing",
28890
- "type": {
28891
- "text": "boolean"
28892
- },
28893
- "default": "false",
28894
- "description": "Whether this node is in edit mode",
28895
- "attribute": "editing",
28896
- "reflects": true
28897
- },
28898
- {
28899
- "kind": "field",
28900
- "name": "disabled",
28901
- "type": {
28902
- "text": "boolean"
28903
- },
28904
- "default": "false",
28905
- "description": "Whether this node is disabled",
28906
- "attribute": "disabled",
28907
- "reflects": true
28908
- },
28909
- {
28910
- "kind": "field",
28911
- "name": "showDelete",
28912
- "type": {
28913
- "text": "boolean"
28914
- },
28915
- "default": "true",
28916
- "description": "Whether to show the delete button",
28917
- "attribute": "show-delete"
28918
- },
28919
- {
28920
- "kind": "field",
28921
- "name": "_handleClick",
28922
- "privacy": "private"
28923
- },
28924
- {
28925
- "kind": "field",
28926
- "name": "_handleDoubleClick",
28927
- "privacy": "private"
28928
- },
28929
- {
28930
- "kind": "field",
28931
- "name": "_handleDelete",
28932
- "privacy": "private"
28933
- },
28934
- {
28935
- "kind": "field",
28936
- "name": "_handleMouseEnter",
28937
- "privacy": "private"
28938
- },
28939
- {
28940
- "kind": "field",
28941
- "name": "_handleMouseLeave",
28942
- "privacy": "private"
28943
- },
28944
- {
28945
- "kind": "method",
28946
- "name": "_renderDefaultHeader",
28947
- "privacy": "private"
28948
- },
28949
- {
28950
- "kind": "method",
28951
- "name": "_renderDefaultBody",
28952
- "privacy": "private"
28953
- }
28954
- ],
28955
- "attributes": [
28956
- {
28957
- "name": "node",
28958
- "type": {
28959
- "text": "WorkflowNode"
28960
- },
28961
- "default": "{ id: '', type: 'action', label: '' }",
28962
- "description": "The workflow node to render",
28963
- "fieldName": "node"
28964
- },
28965
- {
28966
- "name": "selected",
28967
- "type": {
28968
- "text": "boolean"
28969
- },
28970
- "default": "false",
28971
- "description": "Whether this node is currently selected",
28972
- "fieldName": "isSelected"
28973
- },
28974
- {
28975
- "name": "editing",
28976
- "type": {
28977
- "text": "boolean"
28978
- },
28979
- "default": "false",
28980
- "description": "Whether this node is in edit mode",
28981
- "fieldName": "isEditing"
28982
- },
28983
- {
28984
- "name": "disabled",
28985
- "type": {
28986
- "text": "boolean"
28987
- },
28988
- "default": "false",
28989
- "description": "Whether this node is disabled",
28990
- "fieldName": "disabled"
28991
- },
28992
- {
28993
- "name": "show-delete",
28994
- "type": {
28995
- "text": "boolean"
28996
- },
28997
- "default": "true",
28998
- "description": "Whether to show the delete button",
28999
- "fieldName": "showDelete"
29000
- }
29001
- ],
29002
- "superclass": {
29003
- "name": "LitElement",
29004
- "package": "lit"
29005
- },
29006
- "tagName": "wc-flow-designer-node",
29007
- "customElement": true,
29008
- "rawTag": {
29009
- "name": "flow-designer-node",
29010
- "description": ""
29011
- }
29012
- }
29013
- ],
29014
- "exports": [
29015
- {
29016
- "kind": "js",
29017
- "name": "FlowDesignerNode",
29018
- "declaration": {
29019
- "name": "FlowDesignerNode",
29020
- "module": "src/flow-designer/flow-designer-node.ts"
29021
- }
29022
- }
29023
- ]
29024
- },
29025
- {
29026
- "kind": "javascript-module",
29027
- "path": "src/flow-designer/workflow-utils.ts",
29028
- "declarations": [
29029
- {
29030
- "kind": "function",
29031
- "name": "cloneWorkflow",
29032
- "return": {
29033
- "type": {
29034
- "text": "Workflow"
29035
- }
29036
- },
29037
- "parameters": [
29038
- {
29039
- "name": "workflow",
29040
- "type": {
29041
- "text": "Workflow"
29042
- }
29043
- }
29044
- ],
29045
- "description": "Deep clone a workflow to ensure immutability"
29046
- },
29047
- {
29048
- "kind": "function",
29049
- "name": "cloneNode",
29050
- "return": {
29051
- "type": {
29052
- "text": "WorkflowNode"
29053
- }
29054
- },
29055
- "parameters": [
29056
- {
29057
- "name": "node",
29058
- "type": {
29059
- "text": "WorkflowNode"
29060
- }
29061
- }
29062
- ],
29063
- "description": "Deep clone a workflow node"
29064
- },
29065
- {
29066
- "kind": "function",
29067
- "name": "findNodeById",
29068
- "return": {
29069
- "type": {
29070
- "text": "WorkflowNode | null"
29071
- }
29072
- },
29073
- "parameters": [
29074
- {
29075
- "name": "node",
29076
- "type": {
29077
- "text": "WorkflowNode"
29078
- }
29079
- },
29080
- {
29081
- "name": "id",
29082
- "type": {
29083
- "text": "string"
29084
- }
29085
- }
29086
- ],
29087
- "description": "Find a node by ID anywhere in the workflow tree"
29088
- },
29089
- {
29090
- "kind": "function",
29091
- "name": "removeNodeById",
29092
- "return": {
29093
- "type": {
29094
- "text": "WorkflowNode"
29095
- }
29096
- },
29097
- "parameters": [
29098
- {
29099
- "name": "node",
29100
- "type": {
29101
- "text": "WorkflowNode"
29102
- }
29103
- },
29104
- {
29105
- "name": "id",
29106
- "type": {
29107
- "text": "string"
29108
- }
29109
- }
29110
- ],
29111
- "description": "Remove a node by ID from the workflow tree"
29112
- },
29113
- {
29114
- "kind": "function",
29115
- "name": "insertNodeIntoWorkflow",
29116
- "return": {
29117
- "type": {
29118
- "text": "void"
29119
- }
29120
- },
29121
- "parameters": [
29122
- {
29123
- "name": "parent",
29124
- "type": {
29125
- "text": "WorkflowNode"
29126
- }
29127
- },
29128
- {
29129
- "name": "nodeToInsert",
29130
- "type": {
29131
- "text": "WorkflowNode"
29132
- }
29133
- },
29134
- {
29135
- "name": "connectionType",
29136
- "default": "'child'",
29137
- "type": {
29138
- "text": "'child' | 'branch' | 'task'"
29139
- }
29140
- },
29141
- {
29142
- "name": "branchKey",
29143
- "optional": true,
29144
- "type": {
29145
- "text": "string"
29146
- }
29147
- }
29148
- ],
29149
- "description": "Insert a node into the workflow tree at a specific location"
29150
- },
29151
- {
29152
- "kind": "function",
29153
- "name": "getAllNodes",
29154
- "return": {
29155
- "type": {
29156
- "text": "WorkflowNode[]"
29157
- }
29158
- },
29159
- "parameters": [
29160
- {
29161
- "name": "node",
29162
- "type": {
29163
- "text": "WorkflowNode"
29164
- }
29165
- }
29166
- ],
29167
- "description": "Collect all nodes in the workflow (depth-first)"
29168
- },
29169
- {
29170
- "kind": "function",
29171
- "name": "getNodePath",
29172
- "return": {
29173
- "type": {
29174
- "text": "string[]"
29175
- }
29176
- },
29177
- "parameters": [
29178
- {
29179
- "name": "rootNode",
29180
- "type": {
29181
- "text": "WorkflowNode"
29182
- }
29183
- },
29184
- {
29185
- "name": "targetId",
29186
- "type": {
29187
- "text": "string"
29188
- }
29189
- }
29190
- ],
29191
- "description": "Get all parent node IDs for a given node (path from root to node)"
29192
- },
29193
- {
29194
- "kind": "function",
29195
- "name": "isDescendant",
29196
- "return": {
29197
- "type": {
29198
- "text": "boolean"
29199
- }
29200
- },
29201
- "parameters": [
29202
- {
29203
- "name": "rootNode",
29204
- "type": {
29205
- "text": "WorkflowNode"
29206
- }
29207
- },
29208
- {
29209
- "name": "potentialParentId",
29210
- "type": {
29211
- "text": "string"
29212
- }
29213
- },
29214
- {
29215
- "name": "nodeId",
29216
- "type": {
29217
- "text": "string"
29218
- }
29219
- }
29220
- ],
29221
- "description": "Check if a node is a descendant of another node"
29222
- },
29223
- {
29224
- "kind": "function",
29225
- "name": "replaceNode",
29226
- "return": {
29227
- "type": {
29228
- "text": "WorkflowNode"
29229
- }
29230
- },
29231
- "parameters": [
29232
- {
29233
- "name": "node",
29234
- "type": {
29235
- "text": "WorkflowNode"
29236
- }
29237
- },
29238
- {
29239
- "name": "targetId",
29240
- "type": {
29241
- "text": "string"
29242
- }
29243
- },
29244
- {
29245
- "name": "replacement",
29246
- "type": {
29247
- "text": "WorkflowNode"
29248
- }
29249
- }
29250
- ],
29251
- "description": "Replace a node in the tree"
29252
- }
29253
- ],
29254
- "exports": [
29255
- {
29256
- "kind": "js",
29257
- "name": "cloneWorkflow",
29258
- "declaration": {
29259
- "name": "cloneWorkflow",
29260
- "module": "src/flow-designer/workflow-utils.ts"
29261
- }
29262
- },
29263
- {
29264
- "kind": "js",
29265
- "name": "cloneNode",
29266
- "declaration": {
29267
- "name": "cloneNode",
29268
- "module": "src/flow-designer/workflow-utils.ts"
29269
- }
29270
- },
29271
- {
29272
- "kind": "js",
29273
- "name": "findNodeById",
29274
- "declaration": {
29275
- "name": "findNodeById",
29276
- "module": "src/flow-designer/workflow-utils.ts"
29277
- }
29278
- },
29279
- {
29280
- "kind": "js",
29281
- "name": "removeNodeById",
29282
- "declaration": {
29283
- "name": "removeNodeById",
29284
- "module": "src/flow-designer/workflow-utils.ts"
29285
- }
29286
- },
29287
- {
29288
- "kind": "js",
29289
- "name": "insertNodeIntoWorkflow",
29290
- "declaration": {
29291
- "name": "insertNodeIntoWorkflow",
29292
- "module": "src/flow-designer/workflow-utils.ts"
29293
- }
29294
- },
29295
- {
29296
- "kind": "js",
29297
- "name": "getAllNodes",
29298
- "declaration": {
29299
- "name": "getAllNodes",
29300
- "module": "src/flow-designer/workflow-utils.ts"
29301
- }
29302
- },
29303
- {
29304
- "kind": "js",
29305
- "name": "getNodePath",
29306
- "declaration": {
29307
- "name": "getNodePath",
29308
- "module": "src/flow-designer/workflow-utils.ts"
29309
- }
29310
- },
29311
- {
29312
- "kind": "js",
29313
- "name": "isDescendant",
29314
- "declaration": {
29315
- "name": "isDescendant",
29316
- "module": "src/flow-designer/workflow-utils.ts"
29317
- }
29318
- },
29319
- {
29320
- "kind": "js",
29321
- "name": "replaceNode",
29322
- "declaration": {
29323
- "name": "replaceNode",
29324
- "module": "src/flow-designer/workflow-utils.ts"
29325
- }
29326
- }
29327
- ]
29328
- },
29329
- {
29330
- "kind": "javascript-module",
29331
- "path": "src/flow-designer/commands.ts",
29332
- "declarations": [
29333
- {
29334
- "kind": "class",
29335
- "description": "Add Node Command",
29336
- "name": "AddNodeCommand",
29337
- "members": [
29338
- {
29339
- "kind": "field",
29340
- "name": "description",
29341
- "type": {
29342
- "text": "string"
29343
- },
29344
- "default": "'Add node'"
29345
- },
29346
- {
29347
- "kind": "method",
29348
- "name": "execute",
29349
- "return": {
29350
- "type": {
29351
- "text": "Workflow"
29352
- }
29353
- },
29354
- "parameters": [
29355
- {
29356
- "name": "workflow",
29357
- "type": {
29358
- "text": "Workflow"
29359
- }
29360
- }
29361
- ]
29362
- },
29363
- {
29364
- "kind": "method",
29365
- "name": "undo",
29366
- "return": {
29367
- "type": {
29368
- "text": "Workflow"
29369
- }
29370
- },
29371
- "parameters": [
29372
- {
29373
- "name": "workflow",
29374
- "type": {
29375
- "text": "Workflow"
29376
- }
29377
- }
29378
- ]
29379
- }
29380
- ]
29381
- },
29382
- {
29383
- "kind": "class",
29384
- "description": "Delete Node Command",
29385
- "name": "DeleteNodeCommand",
29386
- "members": [
29387
- {
29388
- "kind": "field",
29389
- "name": "description",
29390
- "type": {
29391
- "text": "string"
29392
- },
29393
- "default": "'Delete node'"
29394
- },
29395
- {
29396
- "kind": "field",
29397
- "name": "deletedNode",
29398
- "type": {
29399
- "text": "WorkflowNode | null"
29400
- },
29401
- "privacy": "private",
29402
- "default": "null"
29403
- },
29404
- {
29405
- "kind": "field",
29406
- "name": "parentReference",
29407
- "type": {
29408
- "text": "{\n parentId: string;\n connectionType: 'child' | 'branch' | 'task';\n branchKey?: string;\n } | null"
29409
- },
29410
- "privacy": "private",
29411
- "default": "null"
29412
- },
29413
- {
29414
- "kind": "method",
29415
- "name": "captureNodeContext",
29416
- "privacy": "private",
29417
- "parameters": [
29418
- {
29419
- "name": "workflow",
29420
- "type": {
29421
- "text": "Workflow"
29422
- }
29423
- }
29424
- ]
29425
- },
29426
- {
29427
- "kind": "method",
29428
- "name": "findParentReference",
29429
- "privacy": "private",
29430
- "parameters": [
29431
- {
29432
- "name": "node",
29433
- "type": {
29434
- "text": "WorkflowNode"
29435
- }
29436
- }
29437
- ]
29438
- },
29439
- {
29440
- "kind": "method",
29441
- "name": "execute",
29442
- "return": {
29443
- "type": {
29444
- "text": "Workflow"
29445
- }
29446
- },
29447
- "parameters": [
29448
- {
29449
- "name": "workflow",
29450
- "type": {
29451
- "text": "Workflow"
29452
- }
29453
- }
29454
- ]
29455
- },
29456
- {
29457
- "kind": "method",
29458
- "name": "undo",
29459
- "return": {
29460
- "type": {
29461
- "text": "Workflow"
29462
- }
29463
- },
29464
- "parameters": [
29465
- {
29466
- "name": "workflow",
29467
- "type": {
29468
- "text": "Workflow"
29469
- }
29470
- }
29471
- ]
29472
- }
29473
- ]
29474
- },
29475
- {
29476
- "kind": "class",
29477
- "description": "Edit Node Command",
29478
- "name": "EditNodeCommand",
29479
- "members": [
29480
- {
29481
- "kind": "field",
29482
- "name": "description",
29483
- "type": {
29484
- "text": "string"
29485
- },
29486
- "default": "'Edit node'"
29487
- },
29488
- {
29489
- "kind": "field",
29490
- "name": "previousState",
29491
- "type": {
29492
- "text": "Record<string, any>"
29493
- },
29494
- "privacy": "private",
29495
- "default": "{}"
29496
- },
29497
- {
29498
- "kind": "method",
29499
- "name": "execute",
29500
- "return": {
29501
- "type": {
29502
- "text": "Workflow"
29503
- }
29504
- },
29505
- "parameters": [
29506
- {
29507
- "name": "workflow",
29508
- "type": {
29509
- "text": "Workflow"
29510
- }
29511
- }
29512
- ]
29513
- },
29514
- {
29515
- "kind": "method",
29516
- "name": "undo",
29517
- "return": {
29518
- "type": {
29519
- "text": "Workflow"
29520
- }
29521
- },
29522
- "parameters": [
29523
- {
29524
- "name": "workflow",
29525
- "type": {
29526
- "text": "Workflow"
29527
- }
29528
- }
29529
- ]
29530
- }
29531
- ]
29532
- },
29533
- {
29534
- "kind": "class",
29535
- "description": "Move Node Command - reorder in array or change parent",
29536
- "name": "MoveNodeCommand",
29537
- "members": [
29538
- {
29539
- "kind": "field",
29540
- "name": "description",
29541
- "type": {
29542
- "text": "string"
29543
- },
29544
- "default": "'Move node'"
29545
- },
29546
- {
29547
- "kind": "field",
29548
- "name": "previousState",
29549
- "type": {
29550
- "text": "{\n parentId: string;\n index: number;\n connectionType: 'child' | 'branch' | 'task';\n branchKey?: string;\n } | null"
29551
- },
29552
- "privacy": "private",
29553
- "default": "null"
29554
- },
29555
- {
29556
- "kind": "method",
29557
- "name": "captureCurrentPosition",
29558
- "privacy": "private",
29559
- "parameters": [
29560
- {
29561
- "name": "workflow",
29562
- "type": {
29563
- "text": "Workflow"
29564
- }
29565
- }
29566
- ]
29567
- },
29568
- {
29569
- "kind": "method",
29570
- "name": "execute",
29571
- "return": {
29572
- "type": {
29573
- "text": "Workflow"
29574
- }
29575
- },
29576
- "parameters": [
29577
- {
29578
- "name": "workflow",
29579
- "type": {
29580
- "text": "Workflow"
29581
- }
29582
- }
29583
- ]
29584
- },
29585
- {
29586
- "kind": "method",
29587
- "name": "undo",
29588
- "return": {
29589
- "type": {
29590
- "text": "Workflow"
29591
- }
29592
- },
29593
- "parameters": [
29594
- {
29595
- "name": "workflow",
29596
- "type": {
29597
- "text": "Workflow"
29598
- }
29599
- }
29600
- ]
29601
- }
29602
- ]
29603
- },
29604
- {
29605
- "kind": "class",
29606
- "description": "Batch Command - combine multiple commands into one undo/redo step",
29607
- "name": "BatchCommand",
29608
- "members": [
29609
- {
29610
- "kind": "field",
29611
- "name": "description",
29612
- "type": {
29613
- "text": "string"
29614
- },
29615
- "default": "description"
29616
- },
29617
- {
29618
- "kind": "method",
29619
- "name": "execute",
29620
- "return": {
29621
- "type": {
29622
- "text": "Workflow"
29623
- }
29624
- },
29625
- "parameters": [
29626
- {
29627
- "name": "workflow",
29628
- "type": {
29629
- "text": "Workflow"
29630
- }
29631
- }
29632
- ]
29633
- },
29634
- {
29635
- "kind": "method",
29636
- "name": "undo",
29637
- "return": {
29638
- "type": {
29639
- "text": "Workflow"
29640
- }
29641
- },
29642
- "parameters": [
29643
- {
29644
- "name": "workflow",
29645
- "type": {
29646
- "text": "Workflow"
29647
- }
29648
- }
29649
- ]
29650
- }
29651
- ]
29652
- }
29653
- ],
29654
- "exports": [
29655
- {
29656
- "kind": "js",
29657
- "name": "AddNodeCommand",
29658
- "declaration": {
29659
- "name": "AddNodeCommand",
29660
- "module": "src/flow-designer/commands.ts"
29661
- }
29662
- },
29663
- {
29664
- "kind": "js",
29665
- "name": "DeleteNodeCommand",
29666
- "declaration": {
29667
- "name": "DeleteNodeCommand",
29668
- "module": "src/flow-designer/commands.ts"
29669
- }
29670
- },
29671
- {
29672
- "kind": "js",
29673
- "name": "EditNodeCommand",
29674
- "declaration": {
29675
- "name": "EditNodeCommand",
29676
- "module": "src/flow-designer/commands.ts"
29677
- }
29678
- },
29679
- {
29680
- "kind": "js",
29681
- "name": "MoveNodeCommand",
29682
- "declaration": {
29683
- "name": "MoveNodeCommand",
29684
- "module": "src/flow-designer/commands.ts"
29685
- }
29686
- },
29687
- {
29688
- "kind": "js",
29689
- "name": "BatchCommand",
29690
- "declaration": {
29691
- "name": "BatchCommand",
29692
- "module": "src/flow-designer/commands.ts"
29693
- }
29694
- }
29695
- ]
29696
- },
29697
- {
29698
- "kind": "javascript-module",
29699
- "path": "src/flow-designer/layout.ts",
29700
- "declarations": [
29701
- {
29702
- "kind": "class",
29703
- "description": "",
29704
- "name": "SwimlaneLayout",
29705
- "members": [
29706
- {
29707
- "kind": "method",
29708
- "name": "calculateLayout",
29709
- "static": true,
29710
- "return": {
29711
- "type": {
29712
- "text": "PositionedNode[]"
29713
- }
29714
- },
29715
- "parameters": [
29716
- {
29717
- "name": "rootNode",
29718
- "type": {
29719
- "text": "WorkflowNode"
29720
- }
29721
- }
29722
- ],
29723
- "description": "Calculate layout positions for all nodes in a workflow"
29724
- },
29725
- {
29726
- "kind": "method",
29727
- "name": "_traverseAndAssignLanes",
29728
- "privacy": "private",
29729
- "static": true,
29730
- "return": {
29731
- "type": {
29732
- "text": "void"
29733
- }
29734
- },
29735
- "parameters": [
29736
- {
29737
- "name": "node",
29738
- "type": {
29739
- "text": "WorkflowNode"
29740
- }
29741
- },
29742
- {
29743
- "name": "parent",
29744
- "type": {
29745
- "text": "WorkflowNode | null"
29746
- }
29747
- },
29748
- {
29749
- "name": "baseLane",
29750
- "type": {
29751
- "text": "string"
29752
- }
29753
- },
29754
- {
29755
- "name": "depth",
29756
- "type": {
29757
- "text": "number"
29758
- }
29759
- },
29760
- {
29761
- "name": "layoutNodes",
29762
- "type": {
29763
- "text": "LayoutNode[]"
29764
- }
29765
- },
29766
- {
29767
- "name": "lanes",
29768
- "type": {
29769
- "text": "Map<string, LayoutNode[]>"
29770
- }
29771
- }
29772
- ],
29773
- "description": "Traverse workflow tree and assign lane/depth to each node"
29774
- },
29775
- {
29776
- "kind": "method",
29777
- "name": "_calculateConnectors",
29778
- "privacy": "private",
29779
- "static": true,
29780
- "return": {
29781
- "type": {
29782
- "text": "void"
29783
- }
29784
- },
29785
- "parameters": [
29786
- {
29787
- "name": "positionedNodes",
29788
- "type": {
29789
- "text": "PositionedNode[]"
29790
- }
29791
- },
29792
- {
29793
- "name": "nodePositions",
29794
- "type": {
29795
- "text": "Map<string, { x: number; y: number }>"
29796
- }
29797
- }
29798
- ],
29799
- "description": "Calculate SVG connector points between nodes"
29800
- },
29801
- {
29802
- "kind": "method",
29803
- "name": "getSwimlanes",
29804
- "static": true,
29805
- "return": {
29806
- "type": {
29807
- "text": "SwimlaneConfig[]"
29808
- }
29809
- },
29810
- "parameters": [
29811
- {
29812
- "name": "positionedNodes",
29813
- "type": {
29814
- "text": "PositionedNode[]"
29815
- }
29816
- }
29817
- ],
29818
- "description": "Get swimlane configurations for rendering"
29819
- },
29820
- {
29821
- "kind": "method",
29822
- "name": "_getSwimlaneName",
29823
- "privacy": "private",
29824
- "static": true,
29825
- "return": {
29826
- "type": {
29827
- "text": "string"
29828
- }
29829
- },
29830
- "parameters": [
29831
- {
29832
- "name": "laneId",
29833
- "type": {
29834
- "text": "string"
29835
- }
29836
- }
29837
- ],
29838
- "description": "Generate human-readable swimlane name"
29839
- },
29840
- {
29841
- "kind": "method",
29842
- "name": "getCanvasBounds",
29843
- "static": true,
29844
- "return": {
29845
- "type": {
29846
- "text": "{\n width: number;\n height: number;\n }"
29847
- }
29848
- },
29849
- "parameters": [
29850
- {
29851
- "name": "positionedNodes",
29852
- "type": {
29853
- "text": "PositionedNode[]"
29854
- }
29855
- }
29856
- ],
29857
- "description": "Calculate canvas bounds for sizing"
29858
- }
29859
- ]
29860
- },
29861
- {
29862
- "kind": "variable",
29863
- "name": "x"
29864
- },
29865
- {
29866
- "kind": "variable",
29867
- "name": "y"
29868
- }
29869
- ],
29870
- "exports": [
29871
- {
29872
- "kind": "js",
29873
- "name": "SwimlaneLayout",
29874
- "declaration": {
29875
- "name": "SwimlaneLayout",
29876
- "module": "src/flow-designer/layout.ts"
29877
- }
29878
- }
29879
- ]
29880
- },
29881
- {
29882
- "kind": "javascript-module",
29883
- "path": "src/flow-designer/validation.ts",
29884
- "declarations": [
29885
- {
29886
- "kind": "class",
29887
- "description": "Workflow validation - checks for common errors and inconsistencies",
29888
- "name": "WorkflowValidator",
29889
- "members": [
29890
- {
29891
- "kind": "method",
29892
- "name": "validate",
29893
- "static": true,
29894
- "return": {
29895
- "type": {
29896
- "text": "ValidationError[]"
29897
- }
29898
- },
29899
- "parameters": [
29900
- {
29901
- "name": "workflow",
29902
- "type": {
29903
- "text": "Workflow"
29904
- }
29905
- }
29906
- ],
29907
- "description": "Validate entire workflow"
29908
- },
29909
- {
29910
- "kind": "method",
29911
- "name": "_checkCircularLoops",
29912
- "privacy": "private",
29913
- "static": true,
29914
- "return": {
29915
- "type": {
29916
- "text": "ValidationError[]"
29917
- }
29918
- },
29919
- "parameters": [
29920
- {
29921
- "name": "rootNode",
29922
- "type": {
29923
- "text": "WorkflowNode"
29924
- }
29925
- },
29926
- {
29927
- "name": "allNodes",
29928
- "type": {
29929
- "text": "WorkflowNode[]"
29930
- }
29931
- }
29932
- ],
29933
- "description": "Detect circular loop references\nA loop_end cannot point to a node that is its own descendant (after the loop_start)"
29934
- },
29935
- {
29936
- "kind": "method",
29937
- "name": "_checkOrphanedNodes",
29938
- "privacy": "private",
29939
- "static": true,
29940
- "return": {
29941
- "type": {
29942
- "text": "ValidationError[]"
29943
- }
29944
- },
29945
- "parameters": [
29946
- {
29947
- "name": "rootNode",
29948
- "type": {
29949
- "text": "WorkflowNode"
29950
- }
29951
- },
29952
- {
29953
- "name": "allNodes",
29954
- "type": {
29955
- "text": "WorkflowNode[]"
29956
- }
29957
- }
29958
- ],
29959
- "description": "Check for orphaned nodes (not reachable from root)"
29960
- },
29961
- {
29962
- "kind": "method",
29963
- "name": "_checkValidBranches",
29964
- "privacy": "private",
29965
- "static": true,
29966
- "return": {
29967
- "type": {
29968
- "text": "ValidationError[]"
29969
- }
29970
- },
29971
- "parameters": [
29972
- {
29973
- "name": "rootNode",
29974
- "type": {
29975
- "text": "WorkflowNode"
29976
- }
29977
- },
29978
- {
29979
- "name": "allNodes",
29980
- "type": {
29981
- "text": "WorkflowNode[]"
29982
- }
29983
- }
29984
- ],
29985
- "description": "Check that decision nodes have valid branches"
29986
- },
29987
- {
29988
- "kind": "method",
29989
- "name": "_checkMissingTargets",
29990
- "privacy": "private",
29991
- "static": true,
29992
- "return": {
29993
- "type": {
29994
- "text": "ValidationError[]"
29995
- }
29996
- },
29997
- "parameters": [
29998
- {
29999
- "name": "workflow",
30000
- "type": {
30001
- "text": "Workflow"
30002
- }
30003
- },
30004
- {
30005
- "name": "allNodes",
30006
- "type": {
30007
- "text": "WorkflowNode[]"
30008
- }
30009
- }
30010
- ],
30011
- "description": "Check that loop_end nodes reference valid loop_start nodes"
30012
- },
30013
- {
30014
- "kind": "method",
30015
- "name": "_checkForkJoinPairs",
30016
- "privacy": "private",
30017
- "static": true,
30018
- "return": {
30019
- "type": {
30020
- "text": "ValidationError[]"
30021
- }
30022
- },
30023
- "parameters": [
30024
- {
30025
- "name": "rootNode",
30026
- "type": {
30027
- "text": "WorkflowNode"
30028
- }
30029
- },
30030
- {
30031
- "name": "allNodes",
30032
- "type": {
30033
- "text": "WorkflowNode[]"
30034
- }
30035
- }
30036
- ],
30037
- "description": "Check that fork nodes have corresponding join nodes"
30038
- },
30039
- {
30040
- "kind": "method",
30041
- "name": "isExecutable",
30042
- "static": true,
30043
- "return": {
30044
- "type": {
30045
- "text": "boolean"
30046
- }
30047
- },
30048
- "parameters": [
30049
- {
30050
- "name": "workflow",
30051
- "type": {
30052
- "text": "Workflow"
30053
- }
30054
- }
30055
- ],
30056
- "description": "Check if workflow would create a valid execution path"
30057
- },
30058
- {
30059
- "kind": "method",
30060
- "name": "getWarnings",
30061
- "static": true,
30062
- "return": {
30063
- "type": {
30064
- "text": "ValidationError[]"
30065
- }
30066
- },
30067
- "parameters": [
30068
- {
30069
- "name": "workflow",
30070
- "type": {
30071
- "text": "Workflow"
30072
- }
30073
- }
30074
- ],
30075
- "description": "Get validation warnings only"
30076
- },
30077
- {
30078
- "kind": "method",
30079
- "name": "getErrors",
30080
- "static": true,
30081
- "return": {
30082
- "type": {
30083
- "text": "ValidationError[]"
30084
- }
30085
- },
30086
- "parameters": [
30087
- {
30088
- "name": "workflow",
30089
- "type": {
30090
- "text": "Workflow"
30091
- }
30092
- }
30093
- ],
30094
- "description": "Get validation errors only"
30095
- }
30096
- ]
30097
- }
30098
- ],
30099
- "exports": [
30100
- {
30101
- "kind": "js",
30102
- "name": "WorkflowValidator",
30103
- "declaration": {
30104
- "name": "WorkflowValidator",
30105
- "module": "src/flow-designer/validation.ts"
30106
- }
30107
- }
30108
- ]
30109
- },
30110
- {
30111
- "kind": "javascript-module",
30112
- "path": "src/flow-designer/flow-designer.ts",
30113
- "declarations": [
30114
- {
30115
- "kind": "class",
30116
- "description": "",
30117
- "name": "FlowDesigner",
30118
- "cssProperties": [
30119
- {
30120
- "description": "Height of the flow designer container. Defaults to 400px.",
30121
- "name": "--flow-designer-height"
30122
- },
30123
- {
30124
- "description": "Border color of the flow designer. Defaults to outline-variant.",
30125
- "name": "--flow-designer-border-color"
30126
- },
30127
- {
30128
- "description": "Background color of the designer. Defaults to surface.",
30129
- "name": "--flow-designer-background"
30130
- },
30131
- {
30132
- "description": "Corner radius. Defaults to medium shape.",
30133
- "name": "--flow-designer-border-radius"
30134
- },
30135
- {
30136
- "description": "Background color of the action bar. Defaults to surface-container.",
30137
- "name": "--flow-designer-action-bar-bg"
30138
- }
30139
- ],
30140
- "members": [
30141
- {
30142
- "kind": "field",
30143
- "name": "workflow",
30144
- "type": {
30145
- "text": "Workflow"
30146
- },
30147
- "default": "{ workflow_id: '', nodes: { id: 'root', type: 'trigger', label: 'Start' } }",
30148
- "description": "The workflow definition to display and edit",
30149
- "attribute": "workflow"
30150
- },
30151
- {
30152
- "kind": "field",
30153
- "name": "readonly",
30154
- "type": {
30155
- "text": "boolean"
30156
- },
30157
- "default": "false",
30158
- "description": "Whether the flow designer is in read-only mode",
30159
- "attribute": "readonly",
30160
- "reflects": true
30161
- },
30162
- {
30163
- "kind": "field",
30164
- "name": "disabled",
30165
- "type": {
30166
- "text": "boolean"
30167
- },
30168
- "default": "false",
30169
- "description": "Whether the flow designer is disabled",
30170
- "attribute": "disabled",
30171
- "reflects": true
30172
- },
30173
- {
30174
- "kind": "field",
30175
- "name": "showValidation",
28794
+ "kind": "field",
28795
+ "name": "isDrawingConnection",
30176
28796
  "type": {
30177
28797
  "text": "boolean"
30178
28798
  },
30179
- "default": "false",
30180
- "description": "Show validation errors/warnings",
30181
- "attribute": "show-validation"
30182
- },
30183
- {
30184
- "kind": "field",
30185
- "name": "_editor",
30186
- "type": {
30187
- "text": "EditorState"
30188
- },
30189
28799
  "privacy": "private",
30190
- "default": "{ selectedNodeId: null, isEditing: false, editingNode: null, hoveredNodeId: null, isDragging: false, draggedNodeId: null, zoom: 1, panX: 0, panY: 0, }"
28800
+ "default": "false"
30191
28801
  },
30192
28802
  {
30193
28803
  "kind": "field",
30194
- "name": "_positionedNodes",
28804
+ "name": "draggingSourceId",
30195
28805
  "type": {
30196
- "text": "PositionedNode[]"
28806
+ "text": "string | null"
30197
28807
  },
30198
28808
  "privacy": "private",
30199
- "default": "[]"
28809
+ "default": "null"
30200
28810
  },
30201
28811
  {
30202
28812
  "kind": "field",
30203
- "name": "_history",
28813
+ "name": "draggingSourceHandle",
30204
28814
  "type": {
30205
- "text": "HistoryEntry[]"
28815
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\" | null"
30206
28816
  },
30207
28817
  "privacy": "private",
30208
- "default": "[]"
28818
+ "default": "null"
30209
28819
  },
30210
28820
  {
30211
28821
  "kind": "field",
30212
- "name": "_historyIndex",
28822
+ "name": "connectionStartX",
30213
28823
  "type": {
30214
28824
  "text": "number"
30215
28825
  },
30216
28826
  "privacy": "private",
30217
- "default": "-1"
30218
- },
30219
- {
30220
- "kind": "field",
30221
- "name": "scrollElm",
30222
- "type": {
30223
- "text": "HTMLElement | undefined"
30224
- },
30225
- "privacy": "private"
28827
+ "default": "0"
30226
28828
  },
30227
28829
  {
30228
28830
  "kind": "field",
30229
- "name": "_isDragScrolling",
28831
+ "name": "connectionStartY",
30230
28832
  "type": {
30231
- "text": "boolean"
28833
+ "text": "number"
30232
28834
  },
30233
28835
  "privacy": "private",
30234
- "default": "false"
28836
+ "default": "0"
30235
28837
  },
30236
28838
  {
30237
28839
  "kind": "field",
30238
- "name": "_dragStartX",
28840
+ "name": "currentMouseX",
30239
28841
  "type": {
30240
28842
  "text": "number"
30241
28843
  },
@@ -30244,387 +28846,396 @@
30244
28846
  },
30245
28847
  {
30246
28848
  "kind": "field",
30247
- "name": "_dragStartY",
28849
+ "name": "currentMouseY",
30248
28850
  "type": {
30249
28851
  "text": "number"
30250
28852
  },
30251
28853
  "privacy": "private",
30252
28854
  "default": "0"
30253
28855
  },
28856
+ {
28857
+ "kind": "method",
28858
+ "name": "onNodeMouseDown",
28859
+ "privacy": "private",
28860
+ "parameters": [
28861
+ {
28862
+ "name": "event",
28863
+ "type": {
28864
+ "text": "MouseEvent"
28865
+ }
28866
+ },
28867
+ {
28868
+ "name": "node",
28869
+ "type": {
28870
+ "text": "FlowNode"
28871
+ }
28872
+ }
28873
+ ]
28874
+ },
28875
+ {
28876
+ "kind": "field",
28877
+ "name": "onNodeMouseMove",
28878
+ "privacy": "private"
28879
+ },
30254
28880
  {
30255
28881
  "kind": "field",
30256
- "name": "_scrollStartX",
30257
- "type": {
30258
- "text": "number"
30259
- },
30260
- "privacy": "private",
30261
- "default": "0"
28882
+ "name": "onNodeMouseUp",
28883
+ "privacy": "private"
30262
28884
  },
30263
28885
  {
30264
- "kind": "field",
30265
- "name": "_scrollStartY",
30266
- "type": {
30267
- "text": "number"
30268
- },
28886
+ "kind": "method",
28887
+ "name": "getNodeInputs",
30269
28888
  "privacy": "private",
30270
- "default": "0"
28889
+ "return": {
28890
+ "type": {
28891
+ "text": "(\"top\" | \"left\" | \"bottom\" | \"right\")[]"
28892
+ }
28893
+ },
28894
+ "parameters": [
28895
+ {
28896
+ "name": "node",
28897
+ "type": {
28898
+ "text": "FlowNode"
28899
+ }
28900
+ }
28901
+ ]
30271
28902
  },
30272
28903
  {
30273
28904
  "kind": "method",
30274
- "name": "_recalculateLayout",
28905
+ "name": "getNodeOutputs",
30275
28906
  "privacy": "private",
30276
- "description": "Recalculate layout when workflow changes"
28907
+ "return": {
28908
+ "type": {
28909
+ "text": "(\"top\" | \"left\" | \"bottom\" | \"right\")[]"
28910
+ }
28911
+ },
28912
+ "parameters": [
28913
+ {
28914
+ "name": "node",
28915
+ "type": {
28916
+ "text": "FlowNode"
28917
+ }
28918
+ }
28919
+ ]
30277
28920
  },
30278
28921
  {
30279
28922
  "kind": "method",
30280
- "name": "addNode",
28923
+ "name": "getHandleCoordinates",
28924
+ "privacy": "private",
30281
28925
  "return": {
30282
28926
  "type": {
30283
- "text": "void"
28927
+ "text": "FlowPoint"
30284
28928
  }
30285
28929
  },
30286
28930
  "parameters": [
30287
28931
  {
30288
- "name": "newNode",
28932
+ "name": "node",
30289
28933
  "type": {
30290
- "text": "WorkflowNode"
28934
+ "text": "FlowNode"
30291
28935
  }
30292
28936
  },
30293
28937
  {
30294
- "name": "parentNodeId",
28938
+ "name": "position",
30295
28939
  "type": {
30296
- "text": "string"
28940
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\""
28941
+ }
28942
+ },
28943
+ {
28944
+ "name": "dim",
28945
+ "type": {
28946
+ "text": "{ width: number; height: number }"
28947
+ }
28948
+ }
28949
+ ]
28950
+ },
28951
+ {
28952
+ "kind": "method",
28953
+ "name": "onHandleMouseDown",
28954
+ "privacy": "private",
28955
+ "parameters": [
28956
+ {
28957
+ "name": "event",
28958
+ "type": {
28959
+ "text": "MouseEvent"
30297
28960
  }
30298
28961
  },
30299
28962
  {
30300
- "name": "connectionType",
30301
- "default": "'child'",
28963
+ "name": "node",
30302
28964
  "type": {
30303
- "text": "'child' | 'branch' | 'task'"
28965
+ "text": "FlowNode"
30304
28966
  }
30305
28967
  },
30306
28968
  {
30307
- "name": "branchKey",
30308
- "optional": true,
28969
+ "name": "position",
30309
28970
  "type": {
30310
- "text": "string"
28971
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\""
30311
28972
  }
30312
28973
  }
30313
- ],
30314
- "description": "Add a new node"
28974
+ ]
28975
+ },
28976
+ {
28977
+ "kind": "field",
28978
+ "name": "onConnectionMouseMove",
28979
+ "privacy": "private"
28980
+ },
28981
+ {
28982
+ "kind": "field",
28983
+ "name": "onConnectionMouseUp",
28984
+ "privacy": "private"
30315
28985
  },
30316
28986
  {
30317
28987
  "kind": "method",
30318
- "name": "deleteNode",
30319
- "return": {
30320
- "type": {
30321
- "text": "void"
30322
- }
30323
- },
28988
+ "name": "getRoundedPath",
28989
+ "privacy": "private",
30324
28990
  "parameters": [
30325
28991
  {
30326
- "name": "nodeId",
28992
+ "name": "points",
30327
28993
  "type": {
30328
- "text": "string"
28994
+ "text": "FlowPoint[]"
30329
28995
  }
28996
+ },
28997
+ {
28998
+ "name": "radius",
28999
+ "default": "12"
30330
29000
  }
30331
- ],
30332
- "description": "Delete a node by ID"
29001
+ ]
30333
29002
  },
30334
29003
  {
30335
29004
  "kind": "method",
30336
- "name": "editNode",
30337
- "return": {
30338
- "type": {
30339
- "text": "void"
30340
- }
30341
- },
29005
+ "name": "getSmoothStepPath",
29006
+ "privacy": "private",
30342
29007
  "parameters": [
30343
29008
  {
30344
- "name": "nodeId",
29009
+ "name": "x1",
30345
29010
  "type": {
30346
- "text": "string"
29011
+ "text": "number"
29012
+ }
29013
+ },
29014
+ {
29015
+ "name": "y1",
29016
+ "type": {
29017
+ "text": "number"
29018
+ }
29019
+ },
29020
+ {
29021
+ "name": "x2",
29022
+ "type": {
29023
+ "text": "number"
29024
+ }
29025
+ },
29026
+ {
29027
+ "name": "y2",
29028
+ "type": {
29029
+ "text": "number"
29030
+ }
29031
+ },
29032
+ {
29033
+ "name": "sourceHandle",
29034
+ "default": "\"right\"",
29035
+ "type": {
29036
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\""
30347
29037
  }
30348
29038
  },
30349
29039
  {
30350
- "name": "updates",
29040
+ "name": "targetHandle",
29041
+ "default": "\"left\"",
30351
29042
  "type": {
30352
- "text": "Partial<WorkflowNode>"
29043
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\""
30353
29044
  }
30354
29045
  }
30355
- ],
30356
- "description": "Edit a node"
29046
+ ]
30357
29047
  },
30358
29048
  {
30359
29049
  "kind": "method",
30360
- "name": "moveNode",
30361
- "return": {
30362
- "type": {
30363
- "text": "void"
30364
- }
30365
- },
29050
+ "name": "getBezierPath",
29051
+ "privacy": "private",
30366
29052
  "parameters": [
30367
29053
  {
30368
- "name": "nodeId",
29054
+ "name": "x1",
30369
29055
  "type": {
30370
- "text": "string"
29056
+ "text": "number"
30371
29057
  }
30372
29058
  },
30373
29059
  {
30374
- "name": "newParentId",
29060
+ "name": "y1",
30375
29061
  "type": {
30376
- "text": "string"
29062
+ "text": "number"
30377
29063
  }
30378
29064
  },
30379
29065
  {
30380
- "name": "newIndex",
29066
+ "name": "x2",
30381
29067
  "type": {
30382
29068
  "text": "number"
30383
29069
  }
30384
29070
  },
30385
29071
  {
30386
- "name": "connectionType",
30387
- "default": "'child'",
29072
+ "name": "y2",
30388
29073
  "type": {
30389
- "text": "'child' | 'branch' | 'task'"
29074
+ "text": "number"
30390
29075
  }
30391
29076
  },
30392
29077
  {
30393
- "name": "branchKey",
30394
- "optional": true,
29078
+ "name": "sourceHandle",
29079
+ "default": "\"right\"",
30395
29080
  "type": {
30396
- "text": "string"
29081
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\""
29082
+ }
29083
+ },
29084
+ {
29085
+ "name": "targetHandle",
29086
+ "default": "\"left\"",
29087
+ "type": {
29088
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\""
30397
29089
  }
30398
29090
  }
30399
- ],
30400
- "description": "Move a node to a different parent/position"
29091
+ ]
30401
29092
  },
30402
29093
  {
30403
29094
  "kind": "method",
30404
- "name": "_executeCommand",
29095
+ "name": "getStraightPath",
30405
29096
  "privacy": "private",
30406
- "return": {
30407
- "type": {
30408
- "text": "void"
30409
- }
30410
- },
30411
29097
  "parameters": [
30412
29098
  {
30413
- "name": "command",
29099
+ "name": "x1",
30414
29100
  "type": {
30415
- "text": "WorkflowCommand"
29101
+ "text": "number"
29102
+ }
29103
+ },
29104
+ {
29105
+ "name": "y1",
29106
+ "type": {
29107
+ "text": "number"
29108
+ }
29109
+ },
29110
+ {
29111
+ "name": "x2",
29112
+ "type": {
29113
+ "text": "number"
29114
+ }
29115
+ },
29116
+ {
29117
+ "name": "y2",
29118
+ "type": {
29119
+ "text": "number"
30416
29120
  }
30417
29121
  }
30418
- ],
30419
- "description": "Execute a command and add to history"
30420
- },
30421
- {
30422
- "kind": "method",
30423
- "name": "undo",
30424
- "return": {
30425
- "type": {
30426
- "text": "void"
30427
- }
30428
- },
30429
- "description": "Undo last operation"
30430
- },
30431
- {
30432
- "kind": "method",
30433
- "name": "redo",
30434
- "return": {
30435
- "type": {
30436
- "text": "void"
30437
- }
30438
- },
30439
- "description": "Redo last undone operation"
30440
- },
30441
- {
30442
- "kind": "method",
30443
- "name": "canUndo",
30444
- "return": {
30445
- "type": {
30446
- "text": "boolean"
30447
- }
30448
- },
30449
- "description": "Check if undo is available"
30450
- },
30451
- {
30452
- "kind": "method",
30453
- "name": "canRedo",
30454
- "return": {
30455
- "type": {
30456
- "text": "boolean"
30457
- }
30458
- },
30459
- "description": "Check if redo is available"
30460
- },
30461
- {
30462
- "kind": "method",
30463
- "name": "exportWorkflow",
30464
- "return": {
30465
- "type": {
30466
- "text": "string"
30467
- }
30468
- },
30469
- "description": "Export current workflow as JSON"
30470
- },
30471
- {
30472
- "kind": "method",
30473
- "name": "validate",
30474
- "return": {
30475
- "type": {
30476
- "text": "void"
30477
- }
30478
- },
30479
- "description": "Validate workflow"
29122
+ ]
30480
29123
  },
30481
29124
  {
30482
29125
  "kind": "method",
30483
- "name": "_emitWorkflowChange",
29126
+ "name": "drawPath",
30484
29127
  "privacy": "private",
30485
- "return": {
30486
- "type": {
30487
- "text": "void"
30488
- }
30489
- },
30490
29128
  "parameters": [
29129
+ {
29130
+ "name": "sourceId",
29131
+ "type": {
29132
+ "text": "string"
29133
+ }
29134
+ },
29135
+ {
29136
+ "name": "targetId",
29137
+ "type": {
29138
+ "text": "string"
29139
+ }
29140
+ },
30491
29141
  {
30492
29142
  "name": "type",
29143
+ "optional": true,
30493
29144
  "type": {
30494
- "text": "WorkflowChangeEvent['type']"
29145
+ "text": "\"smoothstep\" | \"bezier\" | \"straight\""
30495
29146
  }
30496
29147
  },
30497
29148
  {
30498
- "name": "nodeId",
29149
+ "name": "sourceHandle",
30499
29150
  "optional": true,
30500
29151
  "type": {
30501
- "text": "string"
29152
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\""
30502
29153
  }
30503
- }
30504
- ]
30505
- },
30506
- {
30507
- "kind": "field",
30508
- "name": "_handleKeyDown",
30509
- "privacy": "private"
30510
- },
30511
- {
30512
- "kind": "field",
30513
- "name": "_handleMouseUp",
30514
- "privacy": "private"
30515
- },
30516
- {
30517
- "kind": "field",
30518
- "name": "_handleCanvasMouseDown",
30519
- "privacy": "private"
30520
- },
30521
- {
30522
- "kind": "field",
30523
- "name": "_handleCanvasMouseMove",
30524
- "privacy": "private"
30525
- },
30526
- {
30527
- "kind": "field",
30528
- "name": "_handleNodeClick",
30529
- "privacy": "private"
30530
- },
30531
- {
30532
- "kind": "field",
30533
- "name": "_handleNodeDelete",
30534
- "privacy": "private"
30535
- },
30536
- {
30537
- "kind": "field",
30538
- "name": "_handleNodeEdit",
30539
- "privacy": "private"
30540
- },
30541
- {
30542
- "kind": "field",
30543
- "name": "_handleZoomIn",
30544
- "privacy": "private"
30545
- },
30546
- {
30547
- "kind": "field",
30548
- "name": "_handleZoomOut",
30549
- "privacy": "private"
29154
+ },
29155
+ {
29156
+ "name": "targetHandle",
29157
+ "optional": true,
29158
+ "type": {
29159
+ "text": "\"top\" | \"left\" | \"bottom\" | \"right\""
29160
+ }
29161
+ }
29162
+ ]
30550
29163
  },
30551
29164
  {
30552
29165
  "kind": "method",
30553
- "name": "_renderConnectors",
29166
+ "name": "getBounds",
30554
29167
  "privacy": "private"
30555
29168
  },
30556
29169
  {
30557
29170
  "kind": "method",
30558
- "name": "_renderSwimlanes",
30559
- "privacy": "private"
29171
+ "name": "isCustomNode",
29172
+ "privacy": "private",
29173
+ "parameters": [
29174
+ {
29175
+ "name": "node",
29176
+ "type": {
29177
+ "text": "FlowNode"
29178
+ }
29179
+ }
29180
+ ]
30560
29181
  },
30561
29182
  {
30562
29183
  "kind": "method",
30563
- "name": "_renderNodes",
30564
- "privacy": "private"
30565
- }
30566
- ],
30567
- "events": [
30568
- {
30569
- "name": "validation-result",
30570
- "type": {
30571
- "text": "CustomEvent"
30572
- }
30573
- },
30574
- {
30575
- "name": "workflow-changed",
30576
- "type": {
30577
- "text": "CustomEvent"
30578
- }
29184
+ "name": "renderNodeContent",
29185
+ "privacy": "private",
29186
+ "parameters": [
29187
+ {
29188
+ "name": "node",
29189
+ "type": {
29190
+ "text": "FlowNode"
29191
+ }
29192
+ }
29193
+ ]
30579
29194
  }
30580
29195
  ],
30581
29196
  "attributes": [
30582
29197
  {
30583
- "name": "workflow",
29198
+ "name": "nodes",
30584
29199
  "type": {
30585
- "text": "Workflow"
29200
+ "text": "FlowNode[]"
30586
29201
  },
30587
- "default": "{ workflow_id: '', nodes: { id: 'root', type: 'trigger', label: 'Start' } }",
30588
- "description": "The workflow definition to display and edit",
30589
- "fieldName": "workflow"
29202
+ "default": "[]",
29203
+ "fieldName": "nodes"
30590
29204
  },
30591
29205
  {
30592
- "name": "readonly",
29206
+ "name": "edges",
30593
29207
  "type": {
30594
- "text": "boolean"
29208
+ "text": "FlowEdge[]"
30595
29209
  },
30596
- "default": "false",
30597
- "description": "Whether the flow designer is in read-only mode",
30598
- "fieldName": "readonly"
29210
+ "default": "[]",
29211
+ "fieldName": "edges"
30599
29212
  },
30600
29213
  {
30601
- "name": "disabled",
29214
+ "name": "zoom",
30602
29215
  "type": {
30603
- "text": "boolean"
29216
+ "text": "number"
30604
29217
  },
30605
- "default": "false",
30606
- "description": "Whether the flow designer is disabled",
30607
- "fieldName": "disabled"
29218
+ "default": "1",
29219
+ "fieldName": "zoom"
30608
29220
  },
30609
29221
  {
30610
- "name": "show-validation",
29222
+ "name": "padding",
30611
29223
  "type": {
30612
- "text": "boolean"
29224
+ "text": "number"
30613
29225
  },
30614
- "default": "false",
30615
- "description": "Show validation errors/warnings",
30616
- "fieldName": "showValidation"
29226
+ "default": "50",
29227
+ "fieldName": "padding"
30617
29228
  }
30618
29229
  ],
30619
29230
  "superclass": {
30620
29231
  "name": "LitElement",
30621
29232
  "package": "lit"
30622
29233
  },
30623
- "tagName": "wc-flow-designer",
29234
+ "tagName": "wc-flow",
30624
29235
  "customElement": true,
30625
- "summary": "Low-code business process flow designer with swimlane layout, undo/redo, and interactive editing.",
29236
+ "summary": "An interactive node editor canvas with draggable nodes, custom HTML element rendering, and mouse-based edge connection creation on a dotted grid.",
30626
29237
  "rawTag": {
30627
- "name": "flow-designer",
29238
+ "name": "flow",
30628
29239
  "description": ""
30629
29240
  }
30630
29241
  }
@@ -30632,249 +29243,49 @@
30632
29243
  "exports": [
30633
29244
  {
30634
29245
  "kind": "js",
30635
- "name": "FlowDesigner",
29246
+ "name": "Flow",
30636
29247
  "declaration": {
30637
- "name": "FlowDesigner",
30638
- "module": "src/flow-designer/flow-designer.ts"
29248
+ "name": "Flow",
29249
+ "module": "src/flow/flow.ts"
30639
29250
  }
30640
29251
  }
30641
29252
  ]
30642
29253
  },
30643
29254
  {
30644
29255
  "kind": "javascript-module",
30645
- "path": "src/flow-designer/index.ts",
29256
+ "path": "src/flow/index.ts",
30646
29257
  "declarations": [],
30647
29258
  "exports": [
30648
29259
  {
30649
29260
  "kind": "js",
30650
- "name": "FlowDesigner",
30651
- "declaration": {
30652
- "name": "FlowDesigner",
30653
- "module": "./flow-designer.js"
30654
- }
30655
- },
30656
- {
30657
- "kind": "js",
30658
- "name": "FlowDesignerNode",
30659
- "declaration": {
30660
- "name": "FlowDesignerNode",
30661
- "module": "./flow-designer-node.js"
30662
- }
30663
- },
30664
- {
30665
- "kind": "js",
30666
- "name": "Workflow",
30667
- "declaration": {
30668
- "name": "Workflow",
30669
- "module": "./types.js"
30670
- }
30671
- },
30672
- {
30673
- "kind": "js",
30674
- "name": "WorkflowNode",
30675
- "declaration": {
30676
- "name": "WorkflowNode",
30677
- "module": "./types.js"
30678
- }
30679
- },
30680
- {
30681
- "kind": "js",
30682
- "name": "WorkflowCommand",
30683
- "declaration": {
30684
- "name": "WorkflowCommand",
30685
- "module": "./types.js"
30686
- }
30687
- },
30688
- {
30689
- "kind": "js",
30690
- "name": "PositionedNode",
30691
- "declaration": {
30692
- "name": "PositionedNode",
30693
- "module": "./types.js"
30694
- }
30695
- },
30696
- {
30697
- "kind": "js",
30698
- "name": "ValidationError",
30699
- "declaration": {
30700
- "name": "ValidationError",
30701
- "module": "./types.js"
30702
- }
30703
- },
30704
- {
30705
- "kind": "js",
30706
- "name": "HistoryEntry",
30707
- "declaration": {
30708
- "name": "HistoryEntry",
30709
- "module": "./types.js"
30710
- }
30711
- },
30712
- {
30713
- "kind": "js",
30714
- "name": "EditorState",
30715
- "declaration": {
30716
- "name": "EditorState",
30717
- "module": "./types.js"
30718
- }
30719
- },
30720
- {
30721
- "kind": "js",
30722
- "name": "NodeType",
30723
- "declaration": {
30724
- "name": "NodeType",
30725
- "module": "./types.js"
30726
- }
30727
- },
30728
- {
30729
- "kind": "js",
30730
- "name": "WorkflowChangeEvent",
30731
- "declaration": {
30732
- "name": "WorkflowChangeEvent",
30733
- "module": "./types.js"
30734
- }
30735
- },
30736
- {
30737
- "kind": "js",
30738
- "name": "SwimlaneConfig",
30739
- "declaration": {
30740
- "name": "SwimlaneConfig",
30741
- "module": "./types.js"
30742
- }
30743
- },
30744
- {
30745
- "kind": "js",
30746
- "name": "NodeTemplate",
30747
- "declaration": {
30748
- "name": "NodeTemplate",
30749
- "module": "./types.js"
30750
- }
30751
- },
30752
- {
30753
- "kind": "js",
30754
- "name": "SwimlaneLayout",
30755
- "declaration": {
30756
- "name": "SwimlaneLayout",
30757
- "module": "./layout.js"
30758
- }
30759
- },
30760
- {
30761
- "kind": "js",
30762
- "name": "WorkflowValidator",
30763
- "declaration": {
30764
- "name": "WorkflowValidator",
30765
- "module": "./validation.js"
30766
- }
30767
- },
30768
- {
30769
- "kind": "js",
30770
- "name": "cloneWorkflow",
30771
- "declaration": {
30772
- "name": "cloneWorkflow",
30773
- "module": "./workflow-utils.js"
30774
- }
30775
- },
30776
- {
30777
- "kind": "js",
30778
- "name": "cloneNode",
30779
- "declaration": {
30780
- "name": "cloneNode",
30781
- "module": "./workflow-utils.js"
30782
- }
30783
- },
30784
- {
30785
- "kind": "js",
30786
- "name": "findNodeById",
30787
- "declaration": {
30788
- "name": "findNodeById",
30789
- "module": "./workflow-utils.js"
30790
- }
30791
- },
30792
- {
30793
- "kind": "js",
30794
- "name": "removeNodeById",
30795
- "declaration": {
30796
- "name": "removeNodeById",
30797
- "module": "./workflow-utils.js"
30798
- }
30799
- },
30800
- {
30801
- "kind": "js",
30802
- "name": "insertNodeIntoWorkflow",
30803
- "declaration": {
30804
- "name": "insertNodeIntoWorkflow",
30805
- "module": "./workflow-utils.js"
30806
- }
30807
- },
30808
- {
30809
- "kind": "js",
30810
- "name": "getAllNodes",
30811
- "declaration": {
30812
- "name": "getAllNodes",
30813
- "module": "./workflow-utils.js"
30814
- }
30815
- },
30816
- {
30817
- "kind": "js",
30818
- "name": "getNodePath",
30819
- "declaration": {
30820
- "name": "getNodePath",
30821
- "module": "./workflow-utils.js"
30822
- }
30823
- },
30824
- {
30825
- "kind": "js",
30826
- "name": "isDescendant",
29261
+ "name": "Flow",
30827
29262
  "declaration": {
30828
- "name": "isDescendant",
30829
- "module": "./workflow-utils.js"
29263
+ "name": "Flow",
29264
+ "module": "./flow.js"
30830
29265
  }
30831
29266
  },
30832
29267
  {
30833
29268
  "kind": "js",
30834
- "name": "replaceNode",
29269
+ "name": "FlowNode",
30835
29270
  "declaration": {
30836
- "name": "replaceNode",
30837
- "module": "./workflow-utils.js"
29271
+ "name": "FlowNode",
29272
+ "module": "./flow.js"
30838
29273
  }
30839
29274
  },
30840
29275
  {
30841
29276
  "kind": "js",
30842
- "name": "AddNodeCommand",
29277
+ "name": "FlowEdge",
30843
29278
  "declaration": {
30844
- "name": "AddNodeCommand",
30845
- "module": "./commands.js"
29279
+ "name": "FlowEdge",
29280
+ "module": "./flow.js"
30846
29281
  }
30847
29282
  },
30848
29283
  {
30849
29284
  "kind": "js",
30850
- "name": "DeleteNodeCommand",
29285
+ "name": "FlowStrokeVariant",
30851
29286
  "declaration": {
30852
- "name": "DeleteNodeCommand",
30853
- "module": "./commands.js"
30854
- }
30855
- },
30856
- {
30857
- "kind": "js",
30858
- "name": "EditNodeCommand",
30859
- "declaration": {
30860
- "name": "EditNodeCommand",
30861
- "module": "./commands.js"
30862
- }
30863
- },
30864
- {
30865
- "kind": "js",
30866
- "name": "MoveNodeCommand",
30867
- "declaration": {
30868
- "name": "MoveNodeCommand",
30869
- "module": "./commands.js"
30870
- }
30871
- },
30872
- {
30873
- "kind": "js",
30874
- "name": "BatchCommand",
30875
- "declaration": {
30876
- "name": "BatchCommand",
30877
- "module": "./commands.js"
29287
+ "name": "FlowStrokeVariant",
29288
+ "module": "./flow.js"
30878
29289
  }
30879
29290
  }
30880
29291
  ]
@@ -31701,6 +30112,22 @@
31701
30112
  "module": "./list/index.js"
31702
30113
  }
31703
30114
  },
30115
+ {
30116
+ "kind": "js",
30117
+ "name": "Timeline",
30118
+ "declaration": {
30119
+ "name": "Timeline",
30120
+ "module": "./timeline/index.js"
30121
+ }
30122
+ },
30123
+ {
30124
+ "kind": "js",
30125
+ "name": "TimelineItem",
30126
+ "declaration": {
30127
+ "name": "TimelineItem",
30128
+ "module": "./timeline/index.js"
30129
+ }
30130
+ },
31704
30131
  {
31705
30132
  "kind": "js",
31706
30133
  "name": "Item",
@@ -32055,122 +30482,34 @@
32055
30482
  },
32056
30483
  {
32057
30484
  "kind": "js",
32058
- "name": "Canvas",
32059
- "declaration": {
32060
- "name": "Canvas",
32061
- "module": "./canvas/index.js"
32062
- }
32063
- },
32064
- {
32065
- "kind": "js",
32066
- "name": "CanvasShape",
32067
- "declaration": {
32068
- "name": "CanvasShape",
32069
- "module": "./canvas/index.js"
32070
- }
32071
- },
32072
- {
32073
- "kind": "js",
32074
- "name": "FlowDesigner",
32075
- "declaration": {
32076
- "name": "FlowDesigner",
32077
- "module": "./flow-designer/index.js"
32078
- }
32079
- },
32080
- {
32081
- "kind": "js",
32082
- "name": "FlowDesignerNode",
32083
- "declaration": {
32084
- "name": "FlowDesignerNode",
32085
- "module": "./flow-designer/index.js"
32086
- }
32087
- },
32088
- {
32089
- "kind": "js",
32090
- "name": "Workflow",
32091
- "declaration": {
32092
- "name": "Workflow",
32093
- "module": "./flow-designer/index.js"
32094
- }
32095
- },
32096
- {
32097
- "kind": "js",
32098
- "name": "WorkflowNode",
32099
- "declaration": {
32100
- "name": "WorkflowNode",
32101
- "module": "./flow-designer/index.js"
32102
- }
32103
- },
32104
- {
32105
- "kind": "js",
32106
- "name": "WorkflowCommand",
32107
- "declaration": {
32108
- "name": "WorkflowCommand",
32109
- "module": "./flow-designer/index.js"
32110
- }
32111
- },
32112
- {
32113
- "kind": "js",
32114
- "name": "PositionedNode",
32115
- "declaration": {
32116
- "name": "PositionedNode",
32117
- "module": "./flow-designer/index.js"
32118
- }
32119
- },
32120
- {
32121
- "kind": "js",
32122
- "name": "ValidationError",
32123
- "declaration": {
32124
- "name": "ValidationError",
32125
- "module": "./flow-designer/index.js"
32126
- }
32127
- },
32128
- {
32129
- "kind": "js",
32130
- "name": "HistoryEntry",
32131
- "declaration": {
32132
- "name": "HistoryEntry",
32133
- "module": "./flow-designer/index.js"
32134
- }
32135
- },
32136
- {
32137
- "kind": "js",
32138
- "name": "EditorState",
32139
- "declaration": {
32140
- "name": "EditorState",
32141
- "module": "./flow-designer/index.js"
32142
- }
32143
- },
32144
- {
32145
- "kind": "js",
32146
- "name": "NodeType",
30485
+ "name": "Flow",
32147
30486
  "declaration": {
32148
- "name": "NodeType",
32149
- "module": "./flow-designer/index.js"
30487
+ "name": "Flow",
30488
+ "module": "./flow/index.js"
32150
30489
  }
32151
30490
  },
32152
30491
  {
32153
30492
  "kind": "js",
32154
- "name": "WorkflowChangeEvent",
30493
+ "name": "FlowNode",
32155
30494
  "declaration": {
32156
- "name": "WorkflowChangeEvent",
32157
- "module": "./flow-designer/index.js"
30495
+ "name": "FlowNode",
30496
+ "module": "./flow/index.js"
32158
30497
  }
32159
30498
  },
32160
30499
  {
32161
30500
  "kind": "js",
32162
- "name": "SwimlaneConfig",
30501
+ "name": "FlowEdge",
32163
30502
  "declaration": {
32164
- "name": "SwimlaneConfig",
32165
- "module": "./flow-designer/index.js"
30503
+ "name": "FlowEdge",
30504
+ "module": "./flow/index.js"
32166
30505
  }
32167
30506
  },
32168
30507
  {
32169
30508
  "kind": "js",
32170
- "name": "NodeTemplate",
30509
+ "name": "FlowStrokeVariant",
32171
30510
  "declaration": {
32172
- "name": "NodeTemplate",
32173
- "module": "./flow-designer/index.js"
30511
+ "name": "FlowStrokeVariant",
30512
+ "module": "./flow/index.js"
32174
30513
  }
32175
30514
  },
32176
30515
  {