@eccenca/gui-elements 22.0.0-rc.7 → 22.1.0-rc.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 (378) hide show
  1. package/CHANGELOG.md +36 -4
  2. package/README.md +21 -7
  3. package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +23 -15
  4. package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  5. package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +23 -6
  6. package/dist/cjs/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
  7. package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js +59 -31
  8. package/dist/cjs/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
  9. package/dist/cjs/cmem/ActivityControl/index.js +11 -0
  10. package/dist/cjs/cmem/ActivityControl/index.js.map +1 -0
  11. package/dist/cjs/cmem/ContentBlobToggler/index.js +8 -0
  12. package/dist/cjs/cmem/ContentBlobToggler/index.js.map +1 -0
  13. package/dist/cjs/cmem/index.js +14 -13
  14. package/dist/cjs/cmem/index.js.map +1 -1
  15. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +57 -0
  16. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -0
  17. package/dist/cjs/cmem/react-flow/configuration/_colors-graph.module.scss +35 -0
  18. package/dist/cjs/cmem/react-flow/configuration/_colors-linking.module.scss +29 -0
  19. package/dist/cjs/cmem/react-flow/configuration/_colors-workflow.module.scss +22 -0
  20. package/dist/cjs/cmem/react-flow/configuration/graph.js +31 -0
  21. package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -0
  22. package/dist/cjs/cmem/react-flow/configuration/linking.js +29 -0
  23. package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -0
  24. package/dist/cjs/cmem/react-flow/configuration/unspecified.js +15 -0
  25. package/dist/cjs/cmem/react-flow/configuration/unspecified.js.map +1 -0
  26. package/dist/cjs/cmem/react-flow/configuration/workflow.js +27 -0
  27. package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -0
  28. package/dist/cjs/common/utils/stringUtils.js +7 -0
  29. package/dist/cjs/common/utils/stringUtils.js.map +1 -0
  30. package/dist/cjs/components/Application/ApplicationContent.js +1 -7
  31. package/dist/cjs/components/Application/ApplicationContent.js.map +1 -1
  32. package/dist/cjs/components/Application/ApplicationTitle.js +1 -7
  33. package/dist/cjs/components/Application/ApplicationTitle.js.map +1 -1
  34. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +284 -0
  35. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -0
  36. package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js +81 -0
  37. package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -0
  38. package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js +46 -0
  39. package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -0
  40. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +12 -15
  41. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  42. package/dist/cjs/components/Breadcrumb/BreadcrumbItem.js +1 -1
  43. package/dist/cjs/components/Button/Button.js +1 -1
  44. package/dist/cjs/components/Button/Button.js.map +1 -1
  45. package/dist/cjs/components/Card/Card.js +18 -3
  46. package/dist/cjs/components/Card/Card.js.map +1 -1
  47. package/dist/cjs/components/ContextOverlay/ContextMenu.js +1 -1
  48. package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
  49. package/dist/cjs/components/Dialog/Modal.js +2 -2
  50. package/dist/cjs/components/Dialog/Modal.js.map +1 -1
  51. package/dist/cjs/components/Dialog/SimpleDialog.js.map +1 -1
  52. package/dist/cjs/components/Form/FieldItemRow.js +2 -3
  53. package/dist/cjs/components/Form/FieldItemRow.js.map +1 -1
  54. package/dist/cjs/components/Icon/Icon.js.map +1 -1
  55. package/dist/cjs/components/Icon/canonicalIconNames.js +30 -0
  56. package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
  57. package/dist/cjs/components/MultiSelect/MultiSelect.js +212 -0
  58. package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -0
  59. package/dist/cjs/components/Notification/Notification.js +8 -2
  60. package/dist/cjs/components/Notification/Notification.js.map +1 -1
  61. package/dist/cjs/components/OverviewItem/OverviewItemList.js +1 -1
  62. package/dist/cjs/components/OverviewItem/OverviewItemList.js.map +1 -1
  63. package/dist/cjs/components/Spinner/Spinner.js +1 -1
  64. package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
  65. package/dist/cjs/components/Tabs/Tab.js +94 -0
  66. package/dist/cjs/components/Tabs/Tab.js.map +1 -0
  67. package/dist/cjs/components/Tabs/TabTitle.js +20 -0
  68. package/dist/cjs/components/Tabs/TabTitle.js.map +1 -0
  69. package/dist/cjs/components/Tabs/Tabs.js +26 -19
  70. package/dist/cjs/components/Tabs/Tabs.js.map +1 -1
  71. package/dist/cjs/components/Tag/Tag.js +7 -1
  72. package/dist/cjs/components/Tag/Tag.js.map +1 -1
  73. package/dist/cjs/components/Typography/HtmlContentBlock.js +6 -6
  74. package/dist/cjs/components/Typography/HtmlContentBlock.js.map +1 -1
  75. package/dist/cjs/components/Typography/classnames.js +2 -1
  76. package/dist/cjs/components/Typography/classnames.js.map +1 -1
  77. package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
  78. package/dist/cjs/extensions/react-flow/edges/getSmoothStepPath.js +98 -0
  79. package/dist/cjs/extensions/react-flow/edges/getSmoothStepPath.js.map +1 -0
  80. package/dist/cjs/extensions/react-flow/edges/utils.js +97 -4
  81. package/dist/cjs/extensions/react-flow/edges/utils.js.map +1 -1
  82. package/dist/cjs/extensions/react-flow/index.js +5 -1
  83. package/dist/cjs/extensions/react-flow/index.js.map +1 -1
  84. package/dist/cjs/extensions/react-flow/minimap/utils.js +2 -2
  85. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +141 -0
  86. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -0
  87. package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js +41 -0
  88. package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -0
  89. package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js +3 -130
  90. package/dist/cjs/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
  91. package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +11 -9
  92. package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
  93. package/dist/cjs/index.js +17 -2
  94. package/dist/cjs/index.js.map +1 -1
  95. package/dist/cjs/legacy-replacements/Button/AffirmativeButton.js +25 -0
  96. package/dist/cjs/legacy-replacements/Button/AffirmativeButton.js.map +1 -0
  97. package/dist/cjs/legacy-replacements/Button/Button.js +61 -0
  98. package/dist/cjs/legacy-replacements/Button/Button.js.map +1 -0
  99. package/dist/cjs/legacy-replacements/Button/DismissiveButton.js +25 -0
  100. package/dist/cjs/legacy-replacements/Button/DismissiveButton.js.map +1 -0
  101. package/dist/cjs/legacy-replacements/Button/DisruptiveButton.js +25 -0
  102. package/dist/cjs/legacy-replacements/Button/DisruptiveButton.js.map +1 -0
  103. package/dist/cjs/legacy-replacements/Checkbox/Checkbox.js +55 -0
  104. package/dist/cjs/legacy-replacements/Checkbox/Checkbox.js.map +1 -0
  105. package/dist/cjs/legacy-replacements/Radio/RadioButton.js +48 -0
  106. package/dist/cjs/legacy-replacements/Radio/RadioButton.js.map +1 -0
  107. package/dist/cjs/legacy-replacements/Tabs/Tabs.js +36 -0
  108. package/dist/cjs/legacy-replacements/Tabs/Tabs.js.map +1 -0
  109. package/dist/cjs/legacy-replacements/TextField/TextField.js +75 -0
  110. package/dist/cjs/legacy-replacements/TextField/TextField.js.map +1 -0
  111. package/dist/cjs/legacy-replacements/index.js +22 -0
  112. package/dist/cjs/legacy-replacements/index.js.map +1 -0
  113. package/dist/es5/cmem/ActivityControl/ActivityControlWidget.js +23 -15
  114. package/dist/es5/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  115. package/dist/es5/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +21 -4
  116. package/dist/es5/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +1 -1
  117. package/dist/es5/cmem/ActivityControl/SilkActivityControl.js +57 -31
  118. package/dist/es5/cmem/ActivityControl/SilkActivityControl.js.map +1 -1
  119. package/dist/es5/cmem/ActivityControl/index.js +4 -0
  120. package/dist/es5/cmem/ActivityControl/index.js.map +1 -0
  121. package/dist/es5/cmem/ContentBlobToggler/index.js +3 -0
  122. package/dist/es5/cmem/ContentBlobToggler/index.js.map +1 -0
  123. package/dist/es5/cmem/index.js +6 -8
  124. package/dist/es5/cmem/index.js.map +1 -1
  125. package/dist/es5/cmem/react-flow/ReactFlow/ReactFlow.js +43 -0
  126. package/dist/es5/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -0
  127. package/dist/es5/cmem/react-flow/configuration/_colors-graph.module.scss +35 -0
  128. package/dist/es5/cmem/react-flow/configuration/_colors-linking.module.scss +29 -0
  129. package/dist/es5/cmem/react-flow/configuration/_colors-workflow.module.scss +22 -0
  130. package/dist/es5/cmem/react-flow/configuration/graph.js +23 -0
  131. package/dist/es5/cmem/react-flow/configuration/graph.js.map +1 -0
  132. package/dist/es5/cmem/react-flow/configuration/linking.js +21 -0
  133. package/dist/es5/cmem/react-flow/configuration/linking.js.map +1 -0
  134. package/dist/es5/cmem/react-flow/configuration/unspecified.js +12 -0
  135. package/dist/es5/cmem/react-flow/configuration/unspecified.js.map +1 -0
  136. package/dist/es5/cmem/react-flow/configuration/workflow.js +19 -0
  137. package/dist/es5/cmem/react-flow/configuration/workflow.js.map +1 -0
  138. package/dist/es5/common/utils/stringUtils.js +3 -0
  139. package/dist/es5/common/utils/stringUtils.js.map +1 -0
  140. package/dist/es5/components/Application/ApplicationContent.js +1 -7
  141. package/dist/es5/components/Application/ApplicationContent.js.map +1 -1
  142. package/dist/es5/components/Application/ApplicationTitle.js +1 -7
  143. package/dist/es5/components/Application/ApplicationTitle.js.map +1 -1
  144. package/dist/es5/components/AutoSuggestion/AutoSuggestion.js +346 -0
  145. package/dist/es5/components/AutoSuggestion/AutoSuggestion.js.map +1 -0
  146. package/dist/es5/components/AutoSuggestion/AutoSuggestionList.js +93 -0
  147. package/dist/es5/components/AutoSuggestion/AutoSuggestionList.js.map +1 -0
  148. package/dist/es5/components/AutoSuggestion/SingleLineCodeEditor.js +42 -0
  149. package/dist/es5/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -0
  150. package/dist/es5/components/AutocompleteField/AutoCompleteField.js +12 -15
  151. package/dist/es5/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  152. package/dist/es5/components/Breadcrumb/BreadcrumbItem.js +1 -1
  153. package/dist/es5/components/Button/Button.js +1 -1
  154. package/dist/es5/components/Button/Button.js.map +1 -1
  155. package/dist/es5/components/Card/Card.js +18 -3
  156. package/dist/es5/components/Card/Card.js.map +1 -1
  157. package/dist/es5/components/ContextOverlay/ContextMenu.js +1 -1
  158. package/dist/es5/components/ContextOverlay/ContextMenu.js.map +1 -1
  159. package/dist/es5/components/Dialog/Modal.js +2 -2
  160. package/dist/es5/components/Dialog/Modal.js.map +1 -1
  161. package/dist/es5/components/Dialog/SimpleDialog.js.map +1 -1
  162. package/dist/es5/components/Form/FieldItemRow.js +2 -3
  163. package/dist/es5/components/Form/FieldItemRow.js.map +1 -1
  164. package/dist/es5/components/Icon/Icon.js.map +1 -1
  165. package/dist/es5/components/Icon/canonicalIconNames.js +30 -0
  166. package/dist/es5/components/Icon/canonicalIconNames.js.map +1 -1
  167. package/dist/es5/components/MultiSelect/MultiSelect.js +290 -0
  168. package/dist/es5/components/MultiSelect/MultiSelect.js.map +1 -0
  169. package/dist/es5/components/Notification/Notification.js +10 -3
  170. package/dist/es5/components/Notification/Notification.js.map +1 -1
  171. package/dist/es5/components/OverviewItem/OverviewItemList.js +1 -1
  172. package/dist/es5/components/OverviewItem/OverviewItemList.js.map +1 -1
  173. package/dist/es5/components/Spinner/Spinner.js +2 -2
  174. package/dist/es5/components/Spinner/Spinner.js.map +1 -1
  175. package/dist/es5/components/Tabs/Tab.js +97 -0
  176. package/dist/es5/components/Tabs/Tab.js.map +1 -0
  177. package/dist/es5/components/Tabs/TabTitle.js +16 -0
  178. package/dist/es5/components/Tabs/TabTitle.js.map +1 -0
  179. package/dist/es5/components/Tabs/Tabs.js +8 -21
  180. package/dist/es5/components/Tabs/Tabs.js.map +1 -1
  181. package/dist/es5/components/Tag/Tag.js +7 -1
  182. package/dist/es5/components/Tag/Tag.js.map +1 -1
  183. package/dist/es5/components/Typography/HtmlContentBlock.js +17 -8
  184. package/dist/es5/components/Typography/HtmlContentBlock.js.map +1 -1
  185. package/dist/es5/components/Typography/classnames.js +1 -0
  186. package/dist/es5/components/Typography/classnames.js.map +1 -1
  187. package/dist/es5/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
  188. package/dist/es5/extensions/react-flow/edges/getSmoothStepPath.js +119 -0
  189. package/dist/es5/extensions/react-flow/edges/getSmoothStepPath.js.map +1 -0
  190. package/dist/es5/extensions/react-flow/edges/utils.js +100 -5
  191. package/dist/es5/extensions/react-flow/edges/utils.js.map +1 -1
  192. package/dist/es5/extensions/react-flow/index.js +2 -0
  193. package/dist/es5/extensions/react-flow/index.js.map +1 -1
  194. package/dist/es5/extensions/react-flow/minimap/utils.js +1 -1
  195. package/dist/es5/extensions/react-flow/nodes/NodeContent.js +162 -0
  196. package/dist/es5/extensions/react-flow/nodes/NodeContent.js.map +1 -0
  197. package/dist/es5/extensions/react-flow/nodes/NodeContentExtension.js +45 -0
  198. package/dist/es5/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -0
  199. package/dist/es5/extensions/react-flow/nodes/NodeDefault.js +2 -129
  200. package/dist/es5/extensions/react-flow/nodes/NodeDefault.js.map +1 -1
  201. package/dist/es5/extensions/react-flow/nodes/NodeTools.js +12 -10
  202. package/dist/es5/extensions/react-flow/nodes/NodeTools.js.map +1 -1
  203. package/dist/es5/index.js +9 -4
  204. package/dist/es5/index.js.map +1 -1
  205. package/dist/es5/legacy-replacements/Button/AffirmativeButton.js +29 -0
  206. package/dist/es5/legacy-replacements/Button/AffirmativeButton.js.map +1 -0
  207. package/dist/es5/legacy-replacements/Button/Button.js +65 -0
  208. package/dist/es5/legacy-replacements/Button/Button.js.map +1 -0
  209. package/dist/es5/legacy-replacements/Button/DismissiveButton.js +29 -0
  210. package/dist/es5/legacy-replacements/Button/DismissiveButton.js.map +1 -0
  211. package/dist/es5/legacy-replacements/Button/DisruptiveButton.js +29 -0
  212. package/dist/es5/legacy-replacements/Button/DisruptiveButton.js.map +1 -0
  213. package/dist/es5/legacy-replacements/Checkbox/Checkbox.js +59 -0
  214. package/dist/es5/legacy-replacements/Checkbox/Checkbox.js.map +1 -0
  215. package/dist/es5/legacy-replacements/Radio/RadioButton.js +52 -0
  216. package/dist/es5/legacy-replacements/Radio/RadioButton.js.map +1 -0
  217. package/dist/es5/legacy-replacements/Tabs/Tabs.js +40 -0
  218. package/dist/es5/legacy-replacements/Tabs/Tabs.js.map +1 -0
  219. package/dist/es5/legacy-replacements/TextField/TextField.js +81 -0
  220. package/dist/es5/legacy-replacements/TextField/TextField.js.map +1 -0
  221. package/dist/es5/legacy-replacements/index.js +10 -0
  222. package/dist/es5/legacy-replacements/index.js.map +1 -0
  223. package/dist/types/cmem/ActivityControl/ActivityControlTypes.d.ts +2 -1
  224. package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +48 -2
  225. package/dist/types/cmem/ActivityControl/SilkActivityControl.d.ts +18 -3
  226. package/dist/types/cmem/ActivityControl/index.d.ts +3 -0
  227. package/dist/types/cmem/ContentBlobToggler/index.d.ts +2 -0
  228. package/dist/types/cmem/index.d.ts +8 -8
  229. package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +14 -0
  230. package/dist/types/cmem/react-flow/configuration/graph.d.ts +21 -0
  231. package/dist/types/cmem/react-flow/configuration/linking.d.ts +19 -0
  232. package/dist/types/cmem/react-flow/configuration/unspecified.d.ts +9 -0
  233. package/dist/types/cmem/react-flow/configuration/workflow.d.ts +17 -0
  234. package/dist/types/common/utils/stringUtils.d.ts +2 -0
  235. package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +67 -0
  236. package/dist/types/components/AutoSuggestion/AutoSuggestionList.d.ts +13 -0
  237. package/dist/types/components/AutoSuggestion/SingleLineCodeEditor.d.ts +25 -0
  238. package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +8 -7
  239. package/dist/types/components/Button/Button.d.ts +3 -2
  240. package/dist/types/components/Card/Card.d.ts +9 -4
  241. package/dist/types/components/ContextOverlay/ContextMenu.d.ts +6 -1
  242. package/dist/types/components/Dialog/Modal.d.ts +4 -3
  243. package/dist/types/components/Dialog/SimpleDialog.d.ts +2 -0
  244. package/dist/types/components/Form/FieldItemRow.d.ts +1 -0
  245. package/dist/types/components/Icon/Icon.d.ts +2 -2
  246. package/dist/types/components/Icon/IconButton.d.ts +1 -1
  247. package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -1
  248. package/dist/types/components/MultiSelect/MultiSelect.d.ts +86 -0
  249. package/dist/types/components/Notification/Notification.d.ts +55 -2
  250. package/dist/types/components/OverviewItem/OverviewItemList.d.ts +1 -1
  251. package/dist/types/components/Spinner/Spinner.d.ts +1 -1
  252. package/dist/types/components/Tabs/Tab.d.ts +549 -0
  253. package/dist/types/components/Tabs/TabTitle.d.ts +38 -0
  254. package/dist/types/components/Tabs/Tabs.d.ts +14 -20
  255. package/dist/types/components/Tag/Tag.d.ts +1 -1
  256. package/dist/types/components/Typography/HtmlContentBlock.d.ts +15 -5
  257. package/dist/types/components/Typography/classnames.d.ts +1 -0
  258. package/dist/types/extensions/react-flow/edges/getSmoothStepPath.d.ts +18 -0
  259. package/dist/types/extensions/react-flow/edges/utils.d.ts +1 -1
  260. package/dist/types/extensions/react-flow/index.d.ts +4 -0
  261. package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +127 -0
  262. package/dist/types/extensions/react-flow/nodes/NodeContentExtension.d.ts +34 -0
  263. package/dist/types/extensions/react-flow/nodes/NodeDefault.d.ts +4 -121
  264. package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +9 -2
  265. package/dist/types/extensions/react-flow/nodes/nodeTypes.d.ts +10 -10
  266. package/dist/types/index.d.ts +9 -4
  267. package/dist/types/legacy-replacements/Button/AffirmativeButton.d.ts +2 -0
  268. package/dist/types/legacy-replacements/Button/Button.d.ts +5 -0
  269. package/dist/types/legacy-replacements/Button/DismissiveButton.d.ts +2 -0
  270. package/dist/types/legacy-replacements/Button/DisruptiveButton.d.ts +2 -0
  271. package/dist/types/legacy-replacements/Checkbox/Checkbox.d.ts +2 -0
  272. package/dist/types/legacy-replacements/Radio/RadioButton.d.ts +2 -0
  273. package/dist/types/legacy-replacements/Tabs/Tabs.d.ts +22 -0
  274. package/dist/types/legacy-replacements/TextField/TextField.d.ts +2 -0
  275. package/dist/types/legacy-replacements/index.d.ts +10 -0
  276. package/package.json +48 -20
  277. package/src/cmem/ActivityControl/ActivityControlTypes.ts +3 -1
  278. package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +98 -0
  279. package/src/cmem/ActivityControl/ActivityControlWidget.tsx +144 -89
  280. package/src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx +11 -3
  281. package/src/cmem/ActivityControl/SilkActivityControl.tsx +182 -120
  282. package/src/cmem/ActivityControl/index.ts +3 -0
  283. package/src/cmem/ContentBlobToggler/index.ts +2 -0
  284. package/src/cmem/_index.scss +6 -0
  285. package/src/cmem/index.ts +10 -23
  286. package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +222 -0
  287. package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +40 -0
  288. package/src/cmem/react-flow/_edges.scss +23 -0
  289. package/src/cmem/react-flow/_handles.scss +34 -0
  290. package/src/cmem/react-flow/_index.scss +5 -0
  291. package/src/cmem/react-flow/_minimap.scss +33 -0
  292. package/src/cmem/react-flow/_nodes.scss +66 -0
  293. package/src/cmem/react-flow/configuration/_colors-graph.module.scss +35 -0
  294. package/src/cmem/react-flow/configuration/_colors-linking.module.scss +29 -0
  295. package/src/cmem/react-flow/configuration/_colors-workflow.module.scss +22 -0
  296. package/src/cmem/react-flow/configuration/_colors.scss +3 -0
  297. package/src/cmem/react-flow/configuration/graph.ts +29 -0
  298. package/src/cmem/react-flow/configuration/linking.ts +28 -0
  299. package/src/cmem/react-flow/configuration/unspecified.ts +13 -0
  300. package/src/cmem/react-flow/configuration/workflow.ts +25 -0
  301. package/src/common/utils/stringUtils.ts +2 -0
  302. package/src/components/Application/ApplicationContent.tsx +0 -5
  303. package/src/components/Application/ApplicationTitle.tsx +0 -5
  304. package/src/components/AutoSuggestion/AutoSuggestion.scss +100 -0
  305. package/src/components/AutoSuggestion/AutoSuggestion.tsx +446 -0
  306. package/src/components/AutoSuggestion/AutoSuggestionList.tsx +170 -0
  307. package/src/components/AutoSuggestion/SingleLineCodeEditor.tsx +97 -0
  308. package/src/components/AutoSuggestion/tests/AutoSuggestion.test.tsx +37 -0
  309. package/src/components/AutoSuggestion/tests/AutoSuggestionList.test.tsx +124 -0
  310. package/src/components/AutoSuggestion/tests/SingleLineCodeEditor.test.tsx +55 -0
  311. package/src/components/AutocompleteField/AutoCompleteField.tsx +24 -23
  312. package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +2 -1
  313. package/src/components/Breadcrumb/BreadcrumbItem.tsx +5 -5
  314. package/src/components/Breadcrumb/BreadcrumbList.tsx +1 -1
  315. package/src/components/Button/Button.stories.tsx +1 -1
  316. package/src/components/Button/Button.tsx +4 -3
  317. package/src/components/Card/Card.tsx +23 -4
  318. package/src/components/Card/card.scss +4 -0
  319. package/src/components/Checkbox/checkbox.scss +4 -0
  320. package/src/components/ContextOverlay/ContextMenu.tsx +8 -2
  321. package/src/components/Dialog/Modal.tsx +9 -2
  322. package/src/components/Dialog/SimpleDialog.tsx +2 -0
  323. package/src/components/Form/FieldItem.tsx +3 -3
  324. package/src/components/Form/FieldItemRow.tsx +2 -4
  325. package/src/components/Icon/Icon.tsx +4 -4
  326. package/src/components/Icon/IconButton.tsx +3 -3
  327. package/src/components/Icon/canonicalIconNames.tsx +39 -2
  328. package/src/components/Menu/MenuItem.tsx +1 -1
  329. package/src/components/MultiSelect/MultiSelect.stories.tsx +71 -0
  330. package/src/components/MultiSelect/MultiSelect.tsx +373 -0
  331. package/src/components/Notification/Notification.stories.tsx +82 -0
  332. package/src/components/Notification/Notification.tsx +62 -4
  333. package/src/components/Notification/notification.scss +2 -1
  334. package/src/components/OverviewItem/OverviewItemList.tsx +2 -2
  335. package/src/components/RadioButton/radiobutton.scss +4 -0
  336. package/src/components/Spinner/Spinner.tsx +1 -1
  337. package/src/components/Switch/switch.scss +1 -0
  338. package/src/components/Tabs/Tab.tsx +111 -0
  339. package/src/components/Tabs/TabTitle.tsx +71 -0
  340. package/src/components/Tabs/Tabs.tsx +22 -90
  341. package/src/components/Tabs/stories/Tab.stories.tsx +65 -0
  342. package/src/components/Tabs/stories/TabTitle.stories.tsx +35 -0
  343. package/src/components/Tabs/stories/Tabs.stories.tsx +98 -0
  344. package/src/components/Tabs/tabs.scss +11 -4
  345. package/src/components/Tag/Tag.tsx +10 -3
  346. package/src/components/Tag/tag.scss +2 -2
  347. package/src/components/TextField/TextField.tsx +1 -1
  348. package/src/components/Toolbar/toolbar.scss +1 -1
  349. package/src/components/Typography/HtmlContentBlock.tsx +27 -4
  350. package/src/components/Typography/classnames.ts +1 -0
  351. package/src/components/Typography/typography.scss +8 -0
  352. package/src/configuration/_variables.scss +3 -3
  353. package/src/extensions/react-flow/_config.scss +2 -2
  354. package/src/extensions/react-flow/_react-flow.scss +4 -0
  355. package/src/extensions/react-flow/edges/EdgeDefault.tsx +0 -1
  356. package/src/extensions/react-flow/edges/_edges.scss +3 -28
  357. package/src/extensions/react-flow/edges/getSmoothStepPath.ts +118 -0
  358. package/src/extensions/react-flow/edges/utils.ts +131 -4
  359. package/src/extensions/react-flow/handles/_handles.scss +4 -58
  360. package/src/extensions/react-flow/index.ts +4 -0
  361. package/src/extensions/react-flow/minimap/_minimap.scss +0 -45
  362. package/src/extensions/react-flow/minimap/utils.ts +1 -1
  363. package/src/extensions/react-flow/nodes/NodeContent.tsx +336 -0
  364. package/src/extensions/react-flow/nodes/NodeContentExtension.tsx +17 -10
  365. package/src/extensions/react-flow/nodes/NodeDefault.tsx +4 -326
  366. package/src/extensions/react-flow/nodes/NodeTools.tsx +27 -10
  367. package/src/extensions/react-flow/nodes/_nodes.scss +61 -196
  368. package/src/extensions/react-flow/nodes/{NodeContent.stories.tsx → stories/NodeContent.stories.tsx} +14 -5
  369. package/src/extensions/react-flow/nodes/stories/NodeContentExtension.stories.tsx +59 -0
  370. package/src/extensions/react-flow/nodes/{NodeDefault.stories.tsx → stories/NodeDefault.stories.tsx} +5 -3
  371. package/src/index.scss +1 -0
  372. package/src/index.ts +19 -4
  373. package/src/legacy-replacements/Tabs/Tabs.stories.tsx +46 -0
  374. package/src/legacy-replacements/Tabs/Tabs.tsx +84 -0
  375. package/src/legacy-replacements/index.ts +11 -0
  376. package/src/test/setupTests.js +19 -0
  377. package/src/components/Icon/canonicalIconNames.json +0 -120
  378. package/src/extensions/react-flow/nodes/NodeContentExtension.stories.tsx +0 -36
@@ -1,6 +1,16 @@
1
- /// <reference types="react" />
2
- declare function HtmlContentBlock({ className, children, small, large, // currently unsupported
3
- muted, // currently unsupported
4
- disabled, // currently unsupported
5
- ...otherProps }: any): JSX.Element;
1
+ import React from "react";
2
+ export interface HtmlContentBlockProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ className?: string;
4
+ small?: boolean;
5
+ /** currently not supported */
6
+ large?: boolean;
7
+ /** currently not supported */
8
+ muted?: boolean;
9
+ /** currently not supported */
10
+ disabled?: boolean;
11
+ linebreakForced?: boolean;
12
+ linebreakPrevented?: boolean;
13
+ noScrollbarsOnChildren?: boolean;
14
+ }
15
+ declare function HtmlContentBlock({ className, children, small, large, muted, disabled, linebreakForced, linebreakPrevented, noScrollbarsOnChildren, ...otherProps }: HtmlContentBlockProps): JSX.Element;
6
16
  export default HtmlContentBlock;
@@ -1,6 +1,7 @@
1
1
  export declare const NOOVERFLOW: string;
2
2
  export declare const FORCELINEBREAK: string;
3
3
  export declare const PREVENTLINEBREAK: string;
4
+ export declare const NOSCROLLBARSONCHILDREN: string;
4
5
  export declare const LARGE: string;
5
6
  export declare const SMALL: string;
6
7
  export declare const MUTED: string;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copied from `react-flow` because we need to change there routing.
3
+ * We use the 10.2.0cversion minus commit 87d518f8b5540a91a3f9c163a2315c2de47abc31
4
+ * @see https://github.com/wbkd/react-flow/commit/87d518f8b5540a91a3f9c163a2315c2de47abc31
5
+ */
6
+ import { Position } from "react-flow-renderer";
7
+ export interface GetSmoothStepPathParams {
8
+ sourceX: number;
9
+ sourceY: number;
10
+ sourcePosition?: Position;
11
+ targetX: number;
12
+ targetY: number;
13
+ targetPosition?: Position;
14
+ borderRadius?: number;
15
+ centerX?: number;
16
+ centerY?: number;
17
+ }
18
+ export declare function getSmoothStepPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, borderRadius, centerX, centerY, }: GetSmoothStepPathParams): string;
@@ -1,4 +1,4 @@
1
1
  import { EdgeDefaultProps } from "./EdgeDefault";
2
2
  import { EdgeStepProps } from "./EdgeStep";
3
- export declare const drawEdgeStraight: ({ sourceX, sourceY, targetX, targetY, }: EdgeDefaultProps) => string;
3
+ export declare const drawEdgeStraight: ({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, }: EdgeDefaultProps) => string;
4
4
  export declare const drawEdgeStep: ({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, data, }: EdgeStepProps) => string;
@@ -1,4 +1,6 @@
1
1
  export { NodeDefault } from "./nodes/NodeDefault";
2
+ export { NodeContent } from "./nodes/NodeContent";
3
+ export { NodeContentExtension } from "./nodes/NodeContentExtension";
2
4
  export { NodeTools } from "./nodes/NodeTools";
3
5
  export { nodeTypes } from "./nodes/nodeTypes";
4
6
  export { EdgeDefault } from "./edges/EdgeDefault";
@@ -8,6 +10,8 @@ export { edgeTypes } from "./edges/edgeTypes";
8
10
  export { MiniMap } from "./minimap/MiniMap";
9
11
  export { minimapNodeClassName, minimapNodeColor } from "./minimap/utils";
10
12
  export type { NodeProps } from "./nodes/NodeDefault";
13
+ export type { NodeContentProps } from "./nodes/NodeContent";
14
+ export type { NodeContentExtensionProps } from "./nodes/NodeContentExtension";
11
15
  export type { NodeToolsProps } from "./nodes/NodeTools";
12
16
  export type { EdgeDefaultProps } from "./edges/EdgeDefault";
13
17
  export type { EdgeStepProps } from "./edges/EdgeStep";
@@ -0,0 +1,127 @@
1
+ import React from "react";
2
+ import { Position } from "react-flow-renderer";
3
+ import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
4
+ import { HandleProps } from "./../handles/HandleDefault";
5
+ import { NodeProps } from "./NodeDefault";
6
+ import { NodeContentExtensionProps } from "./NodeContentExtension";
7
+ export declare type HighlightingState = "success" | "warning" | "danger" | "match" | "altmatch";
8
+ export interface IHandleProps extends HandleProps {
9
+ category?: "configuration";
10
+ }
11
+ interface NodeContentData<CONTENT_PROPS = any> {
12
+ /**
13
+ * Name of icon that should be displayed before the node label.
14
+ * Must be a name from our list of canonical icon names.
15
+ */
16
+ iconName?: ValidIconName;
17
+ /**
18
+ * Valid and accessible URL or `data-uri` for an image that should be displayed before the node label.
19
+ */
20
+ depiction?: string;
21
+ /**
22
+ * Label that is displayed in the node header.
23
+ */
24
+ label: string;
25
+ /**
26
+ * Content element, displayed in the node body.
27
+ */
28
+ content?: React.ReactNode | ((adjustedContentProps: Partial<CONTENT_PROPS>) => React.ReactNode);
29
+ /**
30
+ * Content extension, displayed at the bottom side of a node.
31
+ */
32
+ contentExtension?: React.ReactElement<NodeContentExtensionProps>;
33
+ }
34
+ export interface NodeContentProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends NodeContentData, React.HTMLAttributes<HTMLDivElement> {
35
+ /**
36
+ * Size of the node.
37
+ * If `minimalShape` is not set to `none`then the configured size definition is only used for the selected node state.
38
+ */
39
+ size?: "tiny" | "small" | "medium" | "large";
40
+ /**
41
+ * Defines if the node is initially displayed within a very small shape.
42
+ * If not set to `none` then the node is only displayed in normal size when it is selected.
43
+ */
44
+ minimalShape?: "none" | "circular" | "rectangular";
45
+ /**
46
+ * Set the type of used highlights to mark the node.
47
+ */
48
+ highlightedState?: HighlightingState | HighlightingState[];
49
+ /**
50
+ * Text used for tooltip used on icon and depiction.
51
+ */
52
+ typeLabel?: string;
53
+ /**
54
+ * If `executionButtons` content is included or not.
55
+ * It is displayed in the node header between label and menu.
56
+ */
57
+ showExecutionButtons?: boolean;
58
+ /**
59
+ * Set of defined buttons and icons that can be displayed.
60
+ */
61
+ executionButtons?: (adjustedContentProps: Partial<NODE_CONTENT_PROPS>, setAdjustedContentProps: React.Dispatch<React.SetStateAction<Partial<NODE_CONTENT_PROPS>>>) => React.ReactElement<NODE_CONTENT_PROPS>;
62
+ /**
63
+ * Can be used for permanent action button or context menu.
64
+ * It is displayed at the node header right to the label.
65
+ */
66
+ menuButtons?: React.ReactNode;
67
+ /**
68
+ * Array of property definition objects for `Handle` components that need to be created for the node.
69
+ * @see https://reactflow.dev/docs/api/handle/
70
+ */
71
+ handles?: IHandleProps[];
72
+ /**
73
+ * Set the minimal number of handles on left or right side of the node to activate the recalculation of the minimal height of the node.
74
+ */
75
+ adaptHeightForHandleMinCount?: number;
76
+ /**
77
+ * Height per handle in px (without the unit) used for minimal height calculation of the node.
78
+ */
79
+ adaptSizeIncrement?: number;
80
+ /**
81
+ * Callback function to provide content for the tooltip on a node with a defined `minimalShape`.
82
+ * If you do not want a tooltip in this state you need to provide a callback that returns an empty value.
83
+ */
84
+ getMinimalTooltipData?: (node: NodeProps<NODE_DATA>) => NodeContentData;
85
+ /**
86
+ * Set if a handle is displayed even if it does not allow a connection to an edge.
87
+ */
88
+ showUnconnectableHandles?: boolean;
89
+ /**
90
+ * The node is displayed with some animated shadow for highlighting purposes.
91
+ */
92
+ animated?: boolean;
93
+ /** Additional data stored in the node. */
94
+ businessData?: NODE_DATA;
95
+ /**
96
+ * This property is only forwarded from the `NodeDefault` element.
97
+ * If set then it will be always overwritten internally.
98
+ */
99
+ targetPosition?: typeof Position[keyof typeof Position];
100
+ /**
101
+ * This property is only forwarded from the `NodeDefault` element.
102
+ * If set then it will be always overwritten internally.
103
+ */
104
+ sourcePosition?: typeof Position[keyof typeof Position];
105
+ /**
106
+ * This property is only forwarded from the `NodeDefault` element.
107
+ * If set then it will be always overwritten internally.
108
+ */
109
+ isConnectable?: boolean;
110
+ /**
111
+ * This property is only forwarded from the `NodeDefault` element.
112
+ * If set then it will be always overwritten internally.
113
+ */
114
+ selected?: boolean;
115
+ /**
116
+ * Allow react flow wheel events, e.g. for zooming using the mouse wheel over a node.
117
+ * If this is allowed scrolling inside a node is not possible.
118
+ */
119
+ letPassWheelEvents?: boolean;
120
+ }
121
+ export declare const gethighlightedStateClasses: (state: any, baseClassName: any) => any;
122
+ /**
123
+ * The `NodeContent` element manages the main view of how a node is displaying which content.
124
+ * This element cannot be used directly, all properties must be routed through the `data` property of an `elements` property item inside the `ReactFlow` container.
125
+ */
126
+ export declare function NodeContent<CONTENT_PROPS = any>({ iconName, depiction, typeLabel, label, showExecutionButtons, executionButtons, menuButtons, content, contentExtension, size, minimalShape, highlightedState, handles, adaptHeightForHandleMinCount, adaptSizeIncrement, getMinimalTooltipData, style, showUnconnectableHandles, animated, targetPosition, sourcePosition, isConnectable, selected, letPassWheelEvents, businessData, ...otherProps }: NodeContentProps<any>): JSX.Element;
127
+ export {};
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ export interface NodeContentExtensionProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * When enabled the element is displayed in a way that it does not count into the node size calculation.
5
+ */
6
+ slideOutOfNode?: boolean;
7
+ /**
8
+ * Element is displayed in expanded state.
9
+ * If it has no `onToggle` handler property set then it is always expanded.
10
+ */
11
+ isExpanded?: boolean;
12
+ /**
13
+ * Click handler to manage the expanded state from outside the the element.
14
+ * This state is not managed automatically by the element itself.
15
+ */
16
+ onToggle?: (event: React.MouseEvent<HTMLElement>, isExpanded: boolean) => void;
17
+ /**
18
+ * Single element or aray of `IconButton` and `Button` elements.
19
+ * They will be displayed beside the closing button under the element content body.
20
+ */
21
+ actionButtons?: React.ReactNode | React.ReactNode[];
22
+ /**
23
+ * Tooltip text for expand button.
24
+ */
25
+ tooltipExpand?: string;
26
+ /**
27
+ * Tooltip text for expand button.
28
+ */
29
+ tooltipReduce?: string;
30
+ }
31
+ /**
32
+ * Displays an content area that can be attached to `NodeContent` elements.
33
+ */
34
+ export declare const NodeContentExtension: ({ children, slideOutOfNode, isExpanded, onToggle, actionButtons, tooltipExpand, tooltipReduce, ...otherProps }: NodeContentExtensionProps) => JSX.Element;
@@ -1,133 +1,16 @@
1
1
  import React from "react";
2
- import { NodeProps as ReactFlowNodeProps, Position } from "react-flow-renderer";
3
- import { HandleProps } from "./../handles/HandleDefault";
4
- import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
5
- declare type HighlightingState = "success" | "warning" | "danger" | "match" | "altmatch";
6
- export interface IHandleProps extends HandleProps {
7
- category?: "configuration";
8
- }
9
- interface NodeContentData {
10
- /**
11
- * Name of icon that should be displayed before the node label.
12
- * Must be a name from our list of canonical icon names.
13
- */
14
- iconName?: ValidIconName;
15
- /**
16
- * Valid and accessible URL or `data-uri` for an image that should be displayed before the node label.
17
- */
18
- depiction?: string;
19
- /**
20
- * Label that is displayed in the node header.
21
- */
22
- label: string;
23
- /**
24
- * Content element, displayed in the node body.
25
- */
26
- content?: React.ReactNode;
27
- /**
28
- * Content extension, displayed at the bottom side of a node.
29
- */
30
- contentExtension?: React.ReactNode;
31
- }
32
- export interface NodeContentProps<T> extends NodeContentData, React.HTMLAttributes<HTMLDivElement> {
33
- /**
34
- * Size of the node.
35
- * If `minimalShape` is not set to `none`then the configured size definition is only used for the selected node state.
36
- */
37
- size?: "tiny" | "small" | "medium" | "large";
38
- /**
39
- * Defines if the node is initially displayed within a very small shape.
40
- * If not set to `none` then the node is only displayed in normal size when it is selected.
41
- */
42
- minimalShape?: "none" | "circular" | "rectangular";
43
- /**
44
- * Set the type of used highlights to mark the node.
45
- */
46
- highlightedState?: HighlightingState | HighlightingState[];
47
- /**
48
- * Text used for tooltip used on icon and depiction.
49
- */
50
- typeLabel?: string;
51
- /**
52
- * If `executionButtons` content is included or not.
53
- * It is displayed in the node header between label and menu.
54
- */
55
- showExecutionButtons?: boolean;
56
- /**
57
- * Set of defined buttons and icons that can be displayed.
58
- */
59
- executionButtons?: () => React.ReactNode;
60
- /**
61
- * Can be used for permanent action button or context menu.
62
- * It is displayed at the node header right to the label.
63
- */
64
- menuButtons?: React.ReactNode;
65
- /**
66
- * Array of property definition objects for `Handle` components that need to be created for the node.
67
- * @see https://reactflow.dev/docs/api/handle/
68
- */
69
- handles?: IHandleProps[];
70
- /**
71
- * Set the minimal number of handles on left or right side of the node to activate the recalculation of the minimal height of the node.
72
- */
73
- adaptHeightForHandleMinCount?: number;
74
- /**
75
- * Height per handle in px (without the unit) used for minimal height calculation of the node.
76
- */
77
- adaptSizeIncrement?: number;
78
- /**
79
- * Callback function to provide content for the tooltip on a node with a defined `minimalShape`.
80
- * If you do not want a tooltip in this state you need to provide a callback that returns an empty value.
81
- */
82
- getMinimalTooltipData?: (node: NodeProps<T>) => NodeContentData;
83
- /**
84
- * Set if a handle is displayed even if it does not allow a connection to an edge.
85
- */
86
- showUnconnectableHandles?: boolean;
87
- /**
88
- * The node is displayed with some animated shadow for highlighting purposes.
89
- */
90
- animated?: boolean;
91
- /** Additional data stored in the node. */
92
- businessData?: T;
93
- /**
94
- * This property is only forwarded from the `NodeDefault` element.
95
- * If set then it will be always overwritten internally.
96
- */
97
- targetPosition?: typeof Position[keyof typeof Position];
98
- /**
99
- * This property is only forwarded from the `NodeDefault` element.
100
- * If set then it will be always overwritten internally.
101
- */
102
- sourcePosition?: typeof Position[keyof typeof Position];
103
- /**
104
- * This property is only forwarded from the `NodeDefault` element.
105
- * If set then it will be always overwritten internally.
106
- */
107
- isConnectable?: boolean;
108
- /**
109
- * This property is only forwarded from the `NodeDefault` element.
110
- * If set then it will be always overwritten internally.
111
- */
112
- selected?: boolean;
113
- }
114
- export interface NodeProps<T> extends ReactFlowNodeProps {
2
+ import { NodeProps as ReactFlowNodeProps } from "react-flow-renderer";
3
+ import { NodeContentProps } from "./NodeContent";
4
+ export interface NodeProps<NODE_DATA, NODE_CONTENT_PROPS = any> extends ReactFlowNodeProps {
115
5
  /**
116
6
  * Contains all properties for our implementation of the React-Flow node.
117
7
  * For details pls see the `NodeContent` element documentation.
118
8
  */
119
- data: NodeContentProps<T>;
9
+ data: NodeContentProps<NODE_DATA, NODE_CONTENT_PROPS>;
120
10
  }
121
- export declare const gethighlightedStateClasses: (state: any, baseClassName: any) => any;
122
11
  /**
123
12
  * The `NodeDefault` element manages the display of React-Flow nodes.
124
13
  * This element cannot be used directly, it must be connected via a `nodeTypes` definition and all properties need to be routed through the `elements` property items inside the `ReactFlow` container.
125
14
  * @see https://reactflow.dev/docs/api/nodes/
126
15
  */
127
16
  export declare const NodeDefault: React.MemoExoticComponent<(node: NodeProps<any>) => JSX.Element>;
128
- /**
129
- * The `NodeContent` element manages the main view of how a node is displaying which content.
130
- * This element cannot be used directly, all properties must be routed through the `data` property of an `elements` property item inside the `ReactFlow` container.
131
- */
132
- export declare const NodeContent: ({ iconName, depiction, typeLabel, label, showExecutionButtons, executionButtons, menuButtons, content, contentExtension, size, minimalShape, highlightedState, handles, adaptHeightForHandleMinCount, adaptSizeIncrement, getMinimalTooltipData, style, showUnconnectableHandles, animated, targetPosition, sourcePosition, isConnectable, selected, businessData, ...otherProps }: NodeContentProps<any>) => JSX.Element;
133
- export {};
@@ -1,9 +1,16 @@
1
1
  import React from "react";
2
2
  import { IPopoverProps as IBlueprintPopoverProps } from "@blueprintjs/core";
3
+ import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
3
4
  export interface NodeToolsProps extends IBlueprintPopoverProps {
4
5
  children: string | JSX.Element;
5
- togglerElement?: string | JSX.Element;
6
+ togglerElement?: ValidIconName | JSX.Element;
6
7
  togglerText?: string;
7
8
  menuButtonDataTestId?: string;
9
+ /** If defined this function will be called with the menu API object to be used externally. */
10
+ menuFunctionsCallback?: (menuFunctions: NodeToolsMenuFunctions) => any;
8
11
  }
9
- export declare const NodeTools: React.MemoExoticComponent<({ children, togglerElement, togglerText, menuButtonDataTestId, ...otherOverlayProps }: NodeToolsProps) => JSX.Element>;
12
+ export interface NodeToolsMenuFunctions {
13
+ /** Closes the menu if its open. */
14
+ closeMenu: () => void;
15
+ }
16
+ export declare const NodeTools: React.MemoExoticComponent<({ children, togglerElement, togglerText, menuButtonDataTestId, menuFunctionsCallback, ...otherOverlayProps }: NodeToolsProps) => JSX.Element>;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const nodeTypes: {
3
- default: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
4
- graphNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
5
- classNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
6
- instanceNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
7
- propertyNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
8
- datasetNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
9
- linkingNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
10
- transformNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
11
- taskNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
12
- workflowNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any>) => JSX.Element>;
3
+ default: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
4
+ graphNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
5
+ classNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
6
+ instanceNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
7
+ propertyNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
8
+ datasetNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
9
+ linkingNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
10
+ transformNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
11
+ taskNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
12
+ workflowNode: import("react").MemoExoticComponent<(node: import("./NodeDefault").NodeProps<any, any>) => JSX.Element>;
13
13
  };
@@ -9,6 +9,9 @@ import ApplicationToolbar from "./components/Application/ApplicationToolbar";
9
9
  import ApplicationToolbarSection from "./components/Application/ApplicationToolbarSection";
10
10
  import ApplicationToolbarAction from "./components/Application/ApplicationToolbarAction";
11
11
  import ApplicationToolbarPanel from "./components/Application/ApplicationToolbarPanel";
12
+ import AutoSuggestion from "./components/AutoSuggestion/AutoSuggestion";
13
+ import { AutoSuggestionList } from "./components/AutoSuggestion/AutoSuggestionList";
14
+ import SingleLineCodeEditor from "./components/AutoSuggestion/SingleLineCodeEditor";
12
15
  import HtmlContentBlock from "./components/Typography/HtmlContentBlock";
13
16
  import OverflowText from "./components/Typography/OverflowText";
14
17
  import WhiteSpaceContainer from "./components/Typography/WhiteSpaceContainer";
@@ -27,6 +30,8 @@ import Button from "./components/Button/Button";
27
30
  import Checkbox from "./components/Checkbox/Checkbox";
28
31
  import RadioButton from "./components/RadioButton/RadioButton";
29
32
  import Tabs from "./components/Tabs/Tabs";
33
+ import Tab from "./components/Tabs/Tab";
34
+ import TabTitle from "./components/Tabs/TabTitle";
30
35
  import TextField from "./components/TextField/TextField";
31
36
  import TextArea from "./components/TextField/TextArea";
32
37
  import SearchField from "./components/TextField/SearchField";
@@ -47,6 +52,7 @@ import TagList from "./components/Tag/TagList";
47
52
  import Notification from "./components/Notification/Notification";
48
53
  import Toast from "./components/Notification/Toast";
49
54
  import { Select } from "@blueprintjs/select";
55
+ import MultiSelect from "./components/MultiSelect/MultiSelect";
50
56
  import { Iframe } from "./components/Iframe/Iframe";
51
57
  import { IframeModal } from "./components/Iframe/IframeModal";
52
58
  import { OverviewItem, OverviewItemActions, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemList } from "./components/OverviewItem";
@@ -75,6 +81,7 @@ import { PropertyName, PropertyValue, PropertyValuePair, PropertyValueList } fro
75
81
  import * as TypographyClassNames from "./components/Typography/classnames";
76
82
  import { ProgressBar } from "./components/ProgressBar/ProgressBar";
77
83
  import List from "./components/List/List";
84
+ import * as LegacyReplacements from "./legacy-replacements";
78
85
  declare const HelperClasses: {
79
86
  Typography: typeof TypographyClassNames;
80
87
  Intent: {
@@ -84,9 +91,7 @@ declare const HelperClasses: {
84
91
  declare const Utilities: {
85
92
  openInNewTab: (event: import("react").MouseEvent<HTMLElement, MouseEvent>, handler?: ((e: import("react").MouseEvent<HTMLElement, MouseEvent>) => void) | undefined, url?: string | undefined) => void;
86
93
  };
87
- export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, HtmlContentBlock, OverflowText, WhiteSpaceContainer, Highlighter, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, Icon, IconButton, Label, Button, Checkbox, RadioButton, Tabs, TextField, TextArea, SearchField, Switch, // TODO: scss styles
88
- NumericInput, // TODO: scss styles
89
- FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, // TODO: include as own element
90
- AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities };
94
+ export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, AutoSuggestion, AutoSuggestionList, SingleLineCodeEditor, HtmlContentBlock, OverflowText, WhiteSpaceContainer, Highlighter, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, Icon, IconButton, Label, Button, Checkbox, RadioButton, Tabs, Tab, TabTitle, TextField, TextArea, SearchField, Switch, NumericInput, FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, // FIXME: CMEM-3742: include as own element
95
+ MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
91
96
  export * from "./cmem";
92
97
  export * from "./extensions/react-flow";
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function AffirmativeButtonReplacement({ children, ...otherProps }: any): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const iconMappings: {
3
+ [key: string]: any;
4
+ };
5
+ export declare function ButtonReplacement({ children, className, fabSize, iconName, tooltip, progress, disabled, affirmative, dismissive, disruptive, raised, colored, ...otherProps }: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function DismissiveButtonReplacement({ children, ...otherProps }: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function DisruptiveButtonReplacement({ children, ...otherProps }: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function CheckboxReplacement({ children, checked, className, disabled, label, onChange, ...otherProps }: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function RadioButtonReplacement({ children, label, ...otherProps }: any): JSX.Element;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { TabsProps as BlueprintTabsProps } from "@blueprintjs/core";
3
+ interface TabsProps extends Omit<BlueprintTabsProps, "vertical" | "onChange" | "large" | "id" | "renderActiveTabPanelOnly"> {
4
+ activeTab: string;
5
+ tabs: DeprecatedTabProps[];
6
+ onTabClick?: ({ props }: any) => void;
7
+ prefixTabNames: string;
8
+ allowScrollbars?: boolean;
9
+ /**
10
+ * If controlled usage is enable then a `onTabClick` handler is ncessary to control tab panel content and `activeTab` updates.
11
+ */
12
+ controlled?: boolean;
13
+ }
14
+ export interface DeprecatedTabProps {
15
+ tabId: string;
16
+ tabTitle: React.ReactNode;
17
+ tabContent?: JSX.Element;
18
+ dontShrink?: boolean;
19
+ className?: string;
20
+ }
21
+ export declare function TabsReplacement({ activeTab, tabs, onTabClick, controlled, prefixTabNames, className, allowScrollbars, ...restProps }: TabsProps): JSX.Element;
22
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function TextFieldReplacement({ className, disabled, error, inputClassName, label, multiline, onChange, onClearValue, required, stretch, value, ...otherProps }: any): JSX.Element;
@@ -0,0 +1,10 @@
1
+ export { ButtonReplacement as Button } from "./Button/Button";
2
+ export { AffirmativeButtonReplacement as AffirmativeButton } from "./Button/AffirmativeButton";
3
+ export { DismissiveButtonReplacement as DismissiveButton } from "./Button/DismissiveButton";
4
+ export { DisruptiveButtonReplacement as DisruptiveButton } from "./Button/DisruptiveButton";
5
+ export { ButtonReplacement as ProgressButton } from "./Button/Button";
6
+ export { CheckboxReplacement as Checkbox } from "./Checkbox/Checkbox";
7
+ export { RadioButtonReplacement as Radio } from "./Radio/RadioButton";
8
+ export { TabsReplacement as Tabs } from "./Tabs/Tabs";
9
+ export { TextFieldReplacement as TextField } from "./TextField/TextField";
10
+ export type { DeprecatedTabProps } from "./Tabs/Tabs";