@eccenca/gui-elements 22.1.0-rc.1 → 23.0.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 (455) hide show
  1. package/CHANGELOG.md +40 -4
  2. package/README.md +1 -11
  3. package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +1 -1
  4. package/dist/cjs/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
  5. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +7 -1
  6. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  7. package/dist/cjs/cmem/react-flow/configuration/customLabel.js +13 -0
  8. package/dist/cjs/cmem/react-flow/configuration/customLabel.js.map +1 -0
  9. package/dist/cjs/cmem/react-flow/configuration/graph.js +1 -6
  10. package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
  11. package/dist/cjs/cmem/react-flow/configuration/inverseEdge.js +13 -0
  12. package/dist/cjs/cmem/react-flow/configuration/inverseEdge.js.map +1 -0
  13. package/dist/cjs/cmem/react-flow/configuration/linking.js +1 -6
  14. package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
  15. package/dist/cjs/cmem/react-flow/configuration/workflow.js +1 -6
  16. package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
  17. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +2 -0
  18. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
  19. package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js +3 -3
  20. package/dist/cjs/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -1
  21. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +1 -0
  22. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  23. package/dist/cjs/components/Dialog/Modal.js +1 -1
  24. package/dist/cjs/components/Dialog/Modal.js.map +1 -1
  25. package/dist/cjs/components/Dialog/SimpleDialog.js +9 -4
  26. package/dist/cjs/components/Dialog/SimpleDialog.js.map +1 -1
  27. package/dist/cjs/components/Form/FieldItemRow.js +1 -1
  28. package/dist/cjs/components/Form/FieldItemRow.js.map +1 -1
  29. package/dist/cjs/components/Form/FieldSet.js +2 -2
  30. package/dist/cjs/components/Form/FieldSet.js.map +1 -1
  31. package/dist/cjs/components/Icon/canonicalIconNames.js +10 -0
  32. package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
  33. package/dist/cjs/components/Iframe/Iframe.js +1 -1
  34. package/dist/cjs/components/Iframe/Iframe.js.map +1 -1
  35. package/dist/cjs/components/Iframe/IframeModal.js +2 -6
  36. package/dist/cjs/components/Iframe/IframeModal.js.map +1 -1
  37. package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
  38. package/dist/cjs/components/OverviewItem/OverviewItemList.js +1 -1
  39. package/dist/cjs/components/OverviewItem/OverviewItemList.js.map +1 -1
  40. package/dist/cjs/components/Spinner/Spinner.js +1 -0
  41. package/dist/cjs/components/Spinner/Spinner.js.map +1 -1
  42. package/dist/cjs/components/Tag/TagList.js +2 -2
  43. package/dist/cjs/components/Tag/TagList.js.map +1 -1
  44. package/dist/cjs/extensions/codemirror/CodeMirror.js +59 -0
  45. package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -0
  46. package/dist/cjs/extensions/index.js +15 -0
  47. package/dist/cjs/extensions/index.js.map +1 -0
  48. package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js +5 -5
  49. package/dist/cjs/extensions/react-flow/edges/EdgeDefault.js.map +1 -1
  50. package/dist/cjs/extensions/react-flow/index.js +5 -1
  51. package/dist/cjs/extensions/react-flow/index.js.map +1 -1
  52. package/dist/cjs/extensions/react-flow/markers/MarkerArrowClosedInverse.js +13 -0
  53. package/dist/cjs/extensions/react-flow/markers/MarkerArrowClosedInverse.js.map +1 -0
  54. package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js +15 -0
  55. package/dist/cjs/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -0
  56. package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +1 -1
  57. package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
  58. package/dist/cjs/index.js +1 -1
  59. package/dist/cjs/index.js.map +1 -1
  60. package/dist/{es5 → esm}/cmem/ActivityControl/ActivityControlTypes.js +0 -0
  61. package/dist/{es5 → esm}/cmem/ActivityControl/ActivityControlTypes.js.map +0 -0
  62. package/dist/{es5 → esm}/cmem/ActivityControl/ActivityControlWidget.js +2 -2
  63. package/dist/{es5 → esm}/cmem/ActivityControl/ActivityControlWidget.js.map +0 -0
  64. package/dist/{es5 → esm}/cmem/ActivityControl/ActivityExecutionErrorReportModal.js +1 -1
  65. package/dist/{es5 → esm}/cmem/ActivityControl/ActivityExecutionErrorReportModal.js.map +0 -0
  66. package/dist/{es5 → esm}/cmem/ActivityControl/SilkActivityControl.js +4 -4
  67. package/dist/{es5 → esm}/cmem/ActivityControl/SilkActivityControl.js.map +0 -0
  68. package/dist/esm/cmem/ActivityControl/index.js +4 -0
  69. package/dist/{es5 → esm}/cmem/ActivityControl/index.js.map +0 -0
  70. package/dist/{es5 → esm}/cmem/ContentBlobToggler/ContentBlobToggler.js +1 -1
  71. package/dist/{es5 → esm}/cmem/ContentBlobToggler/ContentBlobToggler.js.map +0 -0
  72. package/dist/{es5 → esm}/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js +1 -1
  73. package/dist/{es5 → esm}/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.js.map +1 -1
  74. package/dist/esm/cmem/ContentBlobToggler/index.js +3 -0
  75. package/dist/{es5 → esm}/cmem/ContentBlobToggler/index.js.map +0 -0
  76. package/dist/{es5 → esm}/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js +0 -0
  77. package/dist/{es5 → esm}/cmem/DateTimeDisplay/ElapsedDateTimeDisplay.js.map +0 -0
  78. package/dist/{es5 → esm}/cmem/index.js +6 -6
  79. package/dist/{es5 → esm}/cmem/index.js.map +0 -0
  80. package/dist/{es5 → esm}/cmem/markdown/Markdown.js +2 -2
  81. package/dist/{es5 → esm}/cmem/markdown/Markdown.js.map +0 -0
  82. package/dist/{es5 → esm}/cmem/react-flow/ReactFlow/ReactFlow.js +11 -5
  83. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -0
  84. package/dist/esm/cmem/react-flow/configuration/customLabel.js +10 -0
  85. package/dist/esm/cmem/react-flow/configuration/customLabel.js.map +1 -0
  86. package/dist/{es5 → esm}/cmem/react-flow/configuration/graph.js +3 -4
  87. package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -0
  88. package/dist/esm/cmem/react-flow/configuration/inverseEdge.js +10 -0
  89. package/dist/esm/cmem/react-flow/configuration/inverseEdge.js.map +1 -0
  90. package/dist/{es5 → esm}/cmem/react-flow/configuration/linking.js +3 -4
  91. package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -0
  92. package/dist/{es5 → esm}/cmem/react-flow/configuration/unspecified.js +3 -3
  93. package/dist/{es5 → esm}/cmem/react-flow/configuration/unspecified.js.map +0 -0
  94. package/dist/{es5 → esm}/cmem/react-flow/configuration/workflow.js +3 -4
  95. package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -0
  96. package/dist/{es5 → esm}/common/Intent/index.js +1 -1
  97. package/dist/{es5 → esm}/common/Intent/index.js.map +0 -0
  98. package/dist/{es5 → esm}/common/utils/openInNewTab.js +0 -0
  99. package/dist/{es5 → esm}/common/utils/openInNewTab.js.map +0 -0
  100. package/dist/{es5 → esm}/common/utils/stringUtils.js +0 -0
  101. package/dist/{es5 → esm}/common/utils/stringUtils.js.map +0 -0
  102. package/dist/{es5 → esm}/components/Accordion/Accordion.js +1 -1
  103. package/dist/{es5 → esm}/components/Accordion/Accordion.js.map +0 -0
  104. package/dist/{es5 → esm}/components/Accordion/AccordionItem.js +1 -1
  105. package/dist/{es5 → esm}/components/Accordion/AccordionItem.js.map +0 -0
  106. package/dist/{es5 → esm}/components/Application/ApplicationContainer.js +1 -1
  107. package/dist/{es5 → esm}/components/Application/ApplicationContainer.js.map +0 -0
  108. package/dist/{es5 → esm}/components/Application/ApplicationContent.js +1 -1
  109. package/dist/{es5 → esm}/components/Application/ApplicationContent.js.map +0 -0
  110. package/dist/{es5 → esm}/components/Application/ApplicationHeader.js +1 -1
  111. package/dist/{es5 → esm}/components/Application/ApplicationHeader.js.map +0 -0
  112. package/dist/{es5 → esm}/components/Application/ApplicationSidebarNavigation.js +1 -1
  113. package/dist/{es5 → esm}/components/Application/ApplicationSidebarNavigation.js.map +0 -0
  114. package/dist/{es5 → esm}/components/Application/ApplicationSidebarToggler.js +1 -1
  115. package/dist/{es5 → esm}/components/Application/ApplicationSidebarToggler.js.map +0 -0
  116. package/dist/{es5 → esm}/components/Application/ApplicationTitle.js +1 -1
  117. package/dist/{es5 → esm}/components/Application/ApplicationTitle.js.map +0 -0
  118. package/dist/{es5 → esm}/components/Application/ApplicationToolbar.js +1 -1
  119. package/dist/{es5 → esm}/components/Application/ApplicationToolbar.js.map +0 -0
  120. package/dist/{es5 → esm}/components/Application/ApplicationToolbarAction.js +1 -1
  121. package/dist/{es5 → esm}/components/Application/ApplicationToolbarAction.js.map +0 -0
  122. package/dist/{es5 → esm}/components/Application/ApplicationToolbarPanel.js +1 -1
  123. package/dist/{es5 → esm}/components/Application/ApplicationToolbarPanel.js.map +0 -0
  124. package/dist/{es5 → esm}/components/Application/ApplicationToolbarSection.js +1 -1
  125. package/dist/{es5 → esm}/components/Application/ApplicationToolbarSection.js.map +0 -0
  126. package/dist/{es5 → esm}/components/AutoSuggestion/AutoSuggestion.js +5 -3
  127. package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -0
  128. package/dist/{es5 → esm}/components/AutoSuggestion/AutoSuggestionList.js +1 -1
  129. package/dist/{es5 → esm}/components/AutoSuggestion/AutoSuggestionList.js.map +0 -0
  130. package/dist/{es5 → esm}/components/AutoSuggestion/SingleLineCodeEditor.js +3 -3
  131. package/dist/{es5 → esm}/components/AutoSuggestion/SingleLineCodeEditor.js.map +1 -1
  132. package/dist/{es5 → esm}/components/AutocompleteField/AutoCompleteField.js +3 -2
  133. package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -0
  134. package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbItem.js +2 -2
  135. package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbItem.js.map +0 -0
  136. package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbList.js +2 -2
  137. package/dist/{es5 → esm}/components/Breadcrumb/BreadcrumbList.js.map +0 -0
  138. package/dist/{es5 → esm}/components/Button/Button.js +3 -3
  139. package/dist/{es5 → esm}/components/Button/Button.js.map +0 -0
  140. package/dist/{es5 → esm}/components/Card/Card.js +1 -1
  141. package/dist/{es5 → esm}/components/Card/Card.js.map +0 -0
  142. package/dist/{es5 → esm}/components/Card/CardActions.js +1 -1
  143. package/dist/{es5 → esm}/components/Card/CardActions.js.map +0 -0
  144. package/dist/{es5 → esm}/components/Card/CardActionsAux.js +1 -1
  145. package/dist/{es5 → esm}/components/Card/CardActionsAux.js.map +0 -0
  146. package/dist/{es5 → esm}/components/Card/CardContent.js +1 -1
  147. package/dist/{es5 → esm}/components/Card/CardContent.js.map +0 -0
  148. package/dist/{es5 → esm}/components/Card/CardHeader.js +5 -5
  149. package/dist/{es5 → esm}/components/Card/CardHeader.js.map +0 -0
  150. package/dist/{es5 → esm}/components/Card/CardOptions.js +2 -2
  151. package/dist/{es5 → esm}/components/Card/CardOptions.js.map +0 -0
  152. package/dist/{es5 → esm}/components/Card/CardTitle.js +2 -2
  153. package/dist/{es5 → esm}/components/Card/CardTitle.js.map +0 -0
  154. package/dist/esm/components/Card/index.js +9 -0
  155. package/dist/{es5 → esm}/components/Card/index.js.map +0 -0
  156. package/dist/{es5 → esm}/components/Checkbox/Checkbox.js +1 -1
  157. package/dist/{es5 → esm}/components/Checkbox/Checkbox.js.map +0 -0
  158. package/dist/{es5 → esm}/components/ContextOverlay/ContextMenu.js +4 -4
  159. package/dist/{es5 → esm}/components/ContextOverlay/ContextMenu.js.map +0 -0
  160. package/dist/{es5 → esm}/components/ContextOverlay/ContextOverlay.js +1 -1
  161. package/dist/{es5 → esm}/components/ContextOverlay/ContextOverlay.js.map +0 -0
  162. package/dist/{es5 → esm}/components/Dialog/AlertDialog.js +2 -2
  163. package/dist/{es5 → esm}/components/Dialog/AlertDialog.js.map +0 -0
  164. package/dist/{es5 → esm}/components/Dialog/Modal.js +3 -3
  165. package/dist/{es5 → esm}/components/Dialog/Modal.js.map +1 -1
  166. package/dist/{es5 → esm}/components/Dialog/SimpleDialog.js +29 -8
  167. package/dist/esm/components/Dialog/SimpleDialog.js.map +1 -0
  168. package/dist/{es5 → esm}/components/Form/FieldItem.js +3 -3
  169. package/dist/{es5 → esm}/components/Form/FieldItem.js.map +0 -0
  170. package/dist/esm/components/Form/FieldItemRow.js +34 -0
  171. package/dist/esm/components/Form/FieldItemRow.js.map +1 -0
  172. package/dist/{es5 → esm}/components/Form/FieldSet.js +15 -4
  173. package/dist/esm/components/Form/FieldSet.js.map +1 -0
  174. package/dist/{es5 → esm}/components/Grid/Grid.js +1 -1
  175. package/dist/{es5 → esm}/components/Grid/Grid.js.map +0 -0
  176. package/dist/{es5 → esm}/components/Grid/GridColumn.js +1 -1
  177. package/dist/{es5 → esm}/components/Grid/GridColumn.js.map +0 -0
  178. package/dist/{es5 → esm}/components/Grid/GridRow.js +1 -1
  179. package/dist/{es5 → esm}/components/Grid/GridRow.js.map +0 -0
  180. package/dist/{es5 → esm}/components/Icon/Icon.js +3 -3
  181. package/dist/{es5 → esm}/components/Icon/Icon.js.map +0 -0
  182. package/dist/{es5 → esm}/components/Icon/IconButton.js +3 -3
  183. package/dist/{es5 → esm}/components/Icon/IconButton.js.map +0 -0
  184. package/dist/{es5 → esm}/components/Icon/canonicalIconNames.js +10 -0
  185. package/dist/{es5 → esm}/components/Icon/canonicalIconNames.js.map +1 -1
  186. package/dist/{es5 → esm}/components/Iframe/Iframe.js +3 -3
  187. package/dist/{es5 → esm}/components/Iframe/Iframe.js.map +1 -1
  188. package/dist/{es5 → esm}/components/Iframe/IframeModal.js +5 -25
  189. package/dist/esm/components/Iframe/IframeModal.js.map +1 -0
  190. package/dist/{es5 → esm}/components/Label/Label.js +3 -3
  191. package/dist/{es5 → esm}/components/Label/Label.js.map +0 -0
  192. package/dist/{es5 → esm}/components/Link/Link.js +2 -2
  193. package/dist/{es5 → esm}/components/Link/Link.js.map +0 -0
  194. package/dist/{es5 → esm}/components/List/List.js +1 -1
  195. package/dist/{es5 → esm}/components/List/List.js.map +0 -0
  196. package/dist/{es5 → esm}/components/Menu/Menu.js +1 -1
  197. package/dist/{es5 → esm}/components/Menu/Menu.js.map +0 -0
  198. package/dist/{es5 → esm}/components/Menu/MenuDivider.js +1 -1
  199. package/dist/{es5 → esm}/components/Menu/MenuDivider.js.map +0 -0
  200. package/dist/{es5 → esm}/components/Menu/MenuItem.js +3 -3
  201. package/dist/{es5 → esm}/components/Menu/MenuItem.js.map +0 -0
  202. package/dist/{es5 → esm}/components/MultiSelect/MultiSelect.js +5 -5
  203. package/dist/{es5 → esm}/components/MultiSelect/MultiSelect.js.map +1 -1
  204. package/dist/{es5 → esm}/components/Notification/Notification.js +3 -3
  205. package/dist/{es5 → esm}/components/Notification/Notification.js.map +0 -0
  206. package/dist/{es5 → esm}/components/Notification/Toast.js +2 -2
  207. package/dist/{es5 → esm}/components/Notification/Toast.js.map +0 -0
  208. package/dist/{es5 → esm}/components/NumericInput/NumericInput.js +0 -0
  209. package/dist/{es5 → esm}/components/NumericInput/NumericInput.js.map +0 -0
  210. package/dist/{es5 → esm}/components/OverviewItem/OverviewItem.js +1 -1
  211. package/dist/{es5 → esm}/components/OverviewItem/OverviewItem.js.map +0 -0
  212. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemActions.js +1 -1
  213. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemActions.js.map +0 -0
  214. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemDepiction.js +1 -1
  215. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemDepiction.js.map +0 -0
  216. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemDescription.js +1 -1
  217. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemDescription.js.map +0 -0
  218. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemLine.js +1 -1
  219. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemLine.js.map +0 -0
  220. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemList.js +2 -2
  221. package/dist/{es5 → esm}/components/OverviewItem/OverviewItemList.js.map +1 -1
  222. package/dist/esm/components/OverviewItem/index.js +8 -0
  223. package/dist/{es5 → esm}/components/OverviewItem/index.js.map +0 -0
  224. package/dist/{es5 → esm}/components/Pagination/Pagination.js +1 -1
  225. package/dist/{es5 → esm}/components/Pagination/Pagination.js.map +0 -0
  226. package/dist/{es5 → esm}/components/ProgressBar/ProgressBar.js +0 -0
  227. package/dist/{es5 → esm}/components/ProgressBar/ProgressBar.js.map +0 -0
  228. package/dist/{es5 → esm}/components/PropertyValuePair/PropertyName.js +2 -2
  229. package/dist/{es5 → esm}/components/PropertyValuePair/PropertyName.js.map +0 -0
  230. package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValue.js +1 -1
  231. package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValue.js.map +0 -0
  232. package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValueList.js +1 -1
  233. package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValueList.js.map +0 -0
  234. package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValuePair.js +1 -1
  235. package/dist/{es5 → esm}/components/PropertyValuePair/PropertyValuePair.js.map +0 -0
  236. package/dist/esm/components/PropertyValuePair/index.js +6 -0
  237. package/dist/{es5 → esm}/components/PropertyValuePair/index.js.map +0 -0
  238. package/dist/{es5 → esm}/components/RadioButton/RadioButton.js +1 -1
  239. package/dist/{es5 → esm}/components/RadioButton/RadioButton.js.map +0 -0
  240. package/dist/{es5 → esm}/components/Separation/Divider.js +1 -1
  241. package/dist/{es5 → esm}/components/Separation/Divider.js.map +0 -0
  242. package/dist/{es5 → esm}/components/Separation/Spacing.js +1 -1
  243. package/dist/{es5 → esm}/components/Separation/Spacing.js.map +0 -0
  244. package/dist/{es5 → esm}/components/SimpleTable/TableContainer.js +1 -1
  245. package/dist/{es5 → esm}/components/SimpleTable/TableContainer.js.map +0 -0
  246. package/dist/{es5 → esm}/components/SimpleTable/index.js +1 -1
  247. package/dist/{es5 → esm}/components/SimpleTable/index.js.map +0 -0
  248. package/dist/{es5 → esm}/components/Spinner/Spinner.js +2 -1
  249. package/dist/esm/components/Spinner/Spinner.js.map +1 -0
  250. package/dist/{es5 → esm}/components/Structure/Section.js +1 -1
  251. package/dist/{es5 → esm}/components/Structure/Section.js.map +0 -0
  252. package/dist/{es5 → esm}/components/Structure/SectionHeader.js +1 -1
  253. package/dist/{es5 → esm}/components/Structure/SectionHeader.js.map +0 -0
  254. package/dist/{es5 → esm}/components/Structure/TitleMainsection.js +1 -1
  255. package/dist/{es5 → esm}/components/Structure/TitleMainsection.js.map +0 -0
  256. package/dist/{es5 → esm}/components/Structure/TitlePage.js +1 -1
  257. package/dist/{es5 → esm}/components/Structure/TitlePage.js.map +0 -0
  258. package/dist/{es5 → esm}/components/Structure/TitleSubsection.js +1 -1
  259. package/dist/{es5 → esm}/components/Structure/TitleSubsection.js.map +0 -0
  260. package/dist/{es5 → esm}/components/Switch/Switch.js +1 -1
  261. package/dist/{es5 → esm}/components/Switch/Switch.js.map +0 -0
  262. package/dist/{es5 → esm}/components/Tabs/Tab.js +2 -2
  263. package/dist/{es5 → esm}/components/Tabs/Tab.js.map +0 -0
  264. package/dist/{es5 → esm}/components/Tabs/TabTitle.js +2 -2
  265. package/dist/{es5 → esm}/components/Tabs/TabTitle.js.map +0 -0
  266. package/dist/{es5 → esm}/components/Tabs/Tabs.js +2 -2
  267. package/dist/{es5 → esm}/components/Tabs/Tabs.js.map +0 -0
  268. package/dist/{es5 → esm}/components/Tag/Tag.js +1 -1
  269. package/dist/{es5 → esm}/components/Tag/Tag.js.map +0 -0
  270. package/dist/{es5 → esm}/components/Tag/TagList.js +14 -3
  271. package/dist/esm/components/Tag/TagList.js.map +1 -0
  272. package/dist/{es5 → esm}/components/TextField/SearchField.js +4 -4
  273. package/dist/{es5 → esm}/components/TextField/SearchField.js.map +0 -0
  274. package/dist/{es5 → esm}/components/TextField/TextArea.js +1 -1
  275. package/dist/{es5 → esm}/components/TextField/TextArea.js.map +0 -0
  276. package/dist/{es5 → esm}/components/TextField/TextField.js +2 -2
  277. package/dist/{es5 → esm}/components/TextField/TextField.js.map +0 -0
  278. package/dist/{es5 → esm}/components/Toolbar/Toolbar.js +1 -1
  279. package/dist/{es5 → esm}/components/Toolbar/Toolbar.js.map +0 -0
  280. package/dist/{es5 → esm}/components/Toolbar/ToolbarSection.js +1 -1
  281. package/dist/{es5 → esm}/components/Toolbar/ToolbarSection.js.map +0 -0
  282. package/dist/{es5 → esm}/components/Tooltip/Tooltip.js +1 -1
  283. package/dist/{es5 → esm}/components/Tooltip/Tooltip.js.map +0 -0
  284. package/dist/{es5 → esm}/components/Typography/Highlighter.js +0 -0
  285. package/dist/{es5 → esm}/components/Typography/Highlighter.js.map +0 -0
  286. package/dist/{es5 → esm}/components/Typography/HtmlContentBlock.js +2 -2
  287. package/dist/{es5 → esm}/components/Typography/HtmlContentBlock.js.map +0 -0
  288. package/dist/{es5 → esm}/components/Typography/OverflowText.js +1 -1
  289. package/dist/{es5 → esm}/components/Typography/OverflowText.js.map +0 -0
  290. package/dist/{es5 → esm}/components/Typography/WhiteSpaceContainer.js +1 -1
  291. package/dist/{es5 → esm}/components/Typography/WhiteSpaceContainer.js.map +0 -0
  292. package/dist/{es5 → esm}/components/Typography/classnames.js +1 -1
  293. package/dist/{es5 → esm}/components/Typography/classnames.js.map +0 -0
  294. package/dist/{es5 → esm}/components/Workspace/WorkspaceContent.js +3 -3
  295. package/dist/{es5 → esm}/components/Workspace/WorkspaceContent.js.map +0 -0
  296. package/dist/{es5 → esm}/components/Workspace/WorkspaceHeader.js +1 -1
  297. package/dist/{es5 → esm}/components/Workspace/WorkspaceHeader.js.map +0 -0
  298. package/dist/{es5 → esm}/components/Workspace/WorkspaceMain.js +2 -2
  299. package/dist/{es5 → esm}/components/Workspace/WorkspaceMain.js.map +0 -0
  300. package/dist/{es5 → esm}/components/Workspace/WorkspaceSide.js +2 -2
  301. package/dist/{es5 → esm}/components/Workspace/WorkspaceSide.js.map +0 -0
  302. package/dist/{es5 → esm}/components/interfaces.js +0 -0
  303. package/dist/{es5 → esm}/components/interfaces.js.map +0 -0
  304. package/dist/{es5 → esm}/configuration/constants.js +0 -0
  305. package/dist/{es5 → esm}/configuration/constants.js.map +0 -0
  306. package/dist/esm/extensions/codemirror/CodeMirror.js +34 -0
  307. package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -0
  308. package/dist/esm/extensions/index.js +3 -0
  309. package/dist/esm/extensions/index.js.map +1 -0
  310. package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeDefault.js +7 -7
  311. package/dist/esm/extensions/react-flow/edges/EdgeDefault.js.map +1 -0
  312. package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeStep.js +2 -2
  313. package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeStep.js.map +0 -0
  314. package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeTools.js +2 -2
  315. package/dist/{es5 → esm}/extensions/react-flow/edges/EdgeTools.js.map +0 -0
  316. package/dist/{es5 → esm}/extensions/react-flow/edges/edgeTypes.js +2 -2
  317. package/dist/{es5 → esm}/extensions/react-flow/edges/edgeTypes.js.map +0 -0
  318. package/dist/{es5 → esm}/extensions/react-flow/edges/getSmoothStepPath.js +0 -0
  319. package/dist/{es5 → esm}/extensions/react-flow/edges/getSmoothStepPath.js.map +0 -0
  320. package/dist/{es5 → esm}/extensions/react-flow/edges/utils.js +1 -1
  321. package/dist/{es5 → esm}/extensions/react-flow/edges/utils.js.map +0 -0
  322. package/dist/{es5 → esm}/extensions/react-flow/handles/HandleContent.js +2 -2
  323. package/dist/{es5 → esm}/extensions/react-flow/handles/HandleContent.js.map +0 -0
  324. package/dist/{es5 → esm}/extensions/react-flow/handles/HandleDefault.js +1 -1
  325. package/dist/{es5 → esm}/extensions/react-flow/handles/HandleDefault.js.map +0 -0
  326. package/dist/esm/extensions/react-flow/index.js +14 -0
  327. package/dist/{es5 → esm}/extensions/react-flow/index.js.map +1 -1
  328. package/dist/esm/extensions/react-flow/markers/MarkerArrowClosedInverse.js +6 -0
  329. package/dist/esm/extensions/react-flow/markers/MarkerArrowClosedInverse.js.map +1 -0
  330. package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js +8 -0
  331. package/dist/esm/extensions/react-flow/markers/ReactFlowMarkers.js.map +1 -0
  332. package/dist/{es5 → esm}/extensions/react-flow/minimap/MiniMap.js +1 -1
  333. package/dist/{es5 → esm}/extensions/react-flow/minimap/MiniMap.js.map +1 -1
  334. package/dist/{es5 → esm}/extensions/react-flow/minimap/utils.js +2 -2
  335. package/dist/{es5 → esm}/extensions/react-flow/minimap/utils.js.map +0 -0
  336. package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContent.js +3 -3
  337. package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContent.js.map +0 -0
  338. package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContentExtension.js +2 -2
  339. package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeContentExtension.js.map +0 -0
  340. package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeDefault.js +2 -2
  341. package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeDefault.js.map +0 -0
  342. package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeTools.js +2 -2
  343. package/dist/{es5 → esm}/extensions/react-flow/nodes/NodeTools.js.map +0 -0
  344. package/dist/{es5 → esm}/extensions/react-flow/nodes/nodeTypes.js +1 -1
  345. package/dist/{es5 → esm}/extensions/react-flow/nodes/nodeTypes.js.map +0 -0
  346. package/dist/esm/index.js +97 -0
  347. package/dist/{es5 → esm}/index.js.map +1 -1
  348. package/dist/{es5 → esm}/legacy-replacements/Button/AffirmativeButton.js +1 -1
  349. package/dist/{es5 → esm}/legacy-replacements/Button/AffirmativeButton.js.map +0 -0
  350. package/dist/{es5 → esm}/legacy-replacements/Button/Button.js +1 -1
  351. package/dist/{es5 → esm}/legacy-replacements/Button/Button.js.map +0 -0
  352. package/dist/{es5 → esm}/legacy-replacements/Button/DismissiveButton.js +1 -1
  353. package/dist/{es5 → esm}/legacy-replacements/Button/DismissiveButton.js.map +0 -0
  354. package/dist/{es5 → esm}/legacy-replacements/Button/DisruptiveButton.js +1 -1
  355. package/dist/{es5 → esm}/legacy-replacements/Button/DisruptiveButton.js.map +0 -0
  356. package/dist/{es5 → esm}/legacy-replacements/Checkbox/Checkbox.js +1 -1
  357. package/dist/{es5 → esm}/legacy-replacements/Checkbox/Checkbox.js.map +0 -0
  358. package/dist/{es5 → esm}/legacy-replacements/Radio/RadioButton.js +1 -1
  359. package/dist/{es5 → esm}/legacy-replacements/Radio/RadioButton.js.map +0 -0
  360. package/dist/{es5 → esm}/legacy-replacements/Tabs/Tabs.js +1 -1
  361. package/dist/{es5 → esm}/legacy-replacements/Tabs/Tabs.js.map +0 -0
  362. package/dist/{es5 → esm}/legacy-replacements/TextField/TextField.js +4 -4
  363. package/dist/{es5 → esm}/legacy-replacements/TextField/TextField.js.map +0 -0
  364. package/dist/{es5 → esm}/legacy-replacements/index.js +9 -9
  365. package/dist/{es5 → esm}/legacy-replacements/index.js.map +0 -0
  366. package/dist/{es5 → esm}/package.json +0 -0
  367. package/dist/types/cmem/react-flow/ReactFlow/ReactFlow.d.ts +2 -3
  368. package/dist/types/cmem/react-flow/configuration/customLabel.d.ts +8 -0
  369. package/dist/types/cmem/react-flow/configuration/graph.d.ts +1 -2
  370. package/dist/types/cmem/react-flow/configuration/inverseEdge.d.ts +8 -0
  371. package/dist/types/cmem/react-flow/configuration/linking.d.ts +1 -2
  372. package/dist/types/cmem/react-flow/configuration/workflow.d.ts +1 -2
  373. package/dist/types/components/AutoSuggestion/SingleLineCodeEditor.d.ts +1 -1
  374. package/dist/types/components/Dialog/SimpleDialog.d.ts +5 -1
  375. package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -1
  376. package/dist/types/components/MultiSelect/MultiSelect.d.ts +1 -1
  377. package/dist/types/extensions/codemirror/CodeMirror.d.ts +35 -0
  378. package/dist/types/extensions/index.d.ts +2 -0
  379. package/dist/types/extensions/react-flow/edges/EdgeDefault.d.ts +3 -0
  380. package/dist/types/extensions/react-flow/index.d.ts +2 -0
  381. package/dist/types/extensions/react-flow/markers/MarkerArrowClosedInverse.d.ts +2 -0
  382. package/dist/types/extensions/react-flow/markers/ReactFlowMarkers.d.ts +2 -0
  383. package/dist/types/index.d.ts +1 -1
  384. package/package.json +15 -10
  385. package/src/cmem/ContentBlobToggler/StringPreviewContentBlobToggler.tsx +1 -1
  386. package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +115 -39
  387. package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +10 -3
  388. package/src/cmem/react-flow/configuration/_colors-graph.scss +35 -0
  389. package/src/cmem/react-flow/configuration/_colors-linking.scss +29 -0
  390. package/src/cmem/react-flow/configuration/_colors-workflow.scss +22 -0
  391. package/src/cmem/react-flow/configuration/_colors.scss +3 -3
  392. package/src/cmem/react-flow/configuration/customLabel.ts +11 -0
  393. package/src/cmem/react-flow/configuration/graph.ts +0 -2
  394. package/src/cmem/react-flow/configuration/inverseEdge.ts +11 -0
  395. package/src/cmem/react-flow/configuration/linking.ts +0 -2
  396. package/src/cmem/react-flow/configuration/workflow.ts +0 -2
  397. package/src/common/utils/CssCustomProperties.ts +133 -0
  398. package/src/common/utils/getColorConfiguration.ts +21 -0
  399. package/src/components/Accordion/accordion.scss +8 -2
  400. package/src/components/AutoSuggestion/AutoSuggestion.tsx +2 -0
  401. package/src/components/AutoSuggestion/SingleLineCodeEditor.tsx +3 -3
  402. package/src/components/AutocompleteField/AutoCompleteField.tsx +1 -0
  403. package/src/components/Dialog/Modal.tsx +1 -1
  404. package/src/components/Dialog/SimpleDialog.tsx +25 -4
  405. package/src/components/Form/FieldItemRow.tsx +1 -1
  406. package/src/components/Form/FieldSet.tsx +1 -0
  407. package/src/components/Icon/canonicalIconNames.tsx +12 -0
  408. package/src/components/Iframe/Iframe.tsx +1 -1
  409. package/src/components/Iframe/IframeModal.tsx +6 -17
  410. package/src/components/MultiSelect/MultiSelect.tsx +2 -2
  411. package/src/components/OverviewItem/OverviewItemList.tsx +1 -1
  412. package/src/components/Spinner/Spinner.tsx +1 -0
  413. package/src/components/Tag/TagList.tsx +1 -0
  414. package/src/extensions/_index.scss +5 -0
  415. package/src/extensions/codemirror/CodeMirror.stories.tsx +26 -0
  416. package/src/extensions/codemirror/CodeMirror.tsx +82 -0
  417. package/src/extensions/codemirror/_codemirror.scss +31 -0
  418. package/src/extensions/index.ts +2 -0
  419. package/src/extensions/react-flow/edges/EdgeDefault.tsx +7 -2
  420. package/src/extensions/react-flow/index.ts +2 -0
  421. package/src/extensions/react-flow/markers/MarkerArrowClosedInverse.tsx +25 -0
  422. package/src/extensions/react-flow/markers/ReactFlowMarkers.tsx +13 -0
  423. package/src/extensions/react-flow/minimap/MiniMap.tsx +1 -1
  424. package/src/index.scss +1 -4
  425. package/src/index.ts +1 -1
  426. package/dist/cjs/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
  427. package/dist/cjs/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
  428. package/dist/cjs/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
  429. package/dist/es5/cmem/ActivityControl/index.js +0 -4
  430. package/dist/es5/cmem/ContentBlobToggler/index.js +0 -3
  431. package/dist/es5/cmem/react-flow/ReactFlow/ReactFlow.js.map +0 -1
  432. package/dist/es5/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
  433. package/dist/es5/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
  434. package/dist/es5/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
  435. package/dist/es5/cmem/react-flow/configuration/graph.js.map +0 -1
  436. package/dist/es5/cmem/react-flow/configuration/linking.js.map +0 -1
  437. package/dist/es5/cmem/react-flow/configuration/workflow.js.map +0 -1
  438. package/dist/es5/components/AutoSuggestion/AutoSuggestion.js.map +0 -1
  439. package/dist/es5/components/AutocompleteField/AutoCompleteField.js.map +0 -1
  440. package/dist/es5/components/Card/index.js +0 -9
  441. package/dist/es5/components/Dialog/SimpleDialog.js.map +0 -1
  442. package/dist/es5/components/Form/FieldItemRow.js +0 -23
  443. package/dist/es5/components/Form/FieldItemRow.js.map +0 -1
  444. package/dist/es5/components/Form/FieldSet.js.map +0 -1
  445. package/dist/es5/components/Iframe/IframeModal.js.map +0 -1
  446. package/dist/es5/components/OverviewItem/index.js +0 -8
  447. package/dist/es5/components/PropertyValuePair/index.js +0 -6
  448. package/dist/es5/components/Spinner/Spinner.js.map +0 -1
  449. package/dist/es5/components/Tag/TagList.js.map +0 -1
  450. package/dist/es5/extensions/react-flow/edges/EdgeDefault.js.map +0 -1
  451. package/dist/es5/extensions/react-flow/index.js +0 -12
  452. package/dist/es5/index.js +0 -97
  453. package/src/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
  454. package/src/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
  455. package/src/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
@@ -3,7 +3,6 @@
3
3
 
4
4
  // changes
5
5
 
6
-
7
6
  .#{$prefix}--accordion__heading {
8
7
  min-height: mini-units(5);
9
8
  align-items: center;
@@ -33,9 +32,16 @@
33
32
  .#{$prefix}--accordion__content {
34
33
  padding: $eccgui-size-block-whitespace / 2;
35
34
  margin: 0 calc(1rem + #{$eccgui-size-block-whitespace / 2}) 0 $eccgui-size-block-whitespace / 2;
35
+ display: block;
36
+ opacity: 0;
37
+ position: fixed;
38
+ left: -5000em;
36
39
 
37
40
  .#{$prefix}--accordion__item--active & {
38
41
  padding: $eccgui-size-block-whitespace / 2 $eccgui-size-block-whitespace / 2 $eccgui-size-block-whitespace $eccgui-size-block-whitespace / 2;
42
+ opacity: 1;
43
+ position: static;
44
+ left: auto;
39
45
  }
40
46
 
41
47
  .#{$prefix}--accordion--start & {
@@ -47,7 +53,7 @@
47
53
  }
48
54
 
49
55
  *, *::before, *::after {
50
- box-sizing: revert;
56
+ box-sizing: inherit;
51
57
  }
52
58
  }
53
59
 
@@ -182,6 +182,7 @@ const AutoSuggestion = ({
182
182
  return () => marker.clear()
183
183
  }
184
184
  }
185
+ return;
185
186
  }, [highlightedElement, selectedTextRanges, editorInstance])
186
187
 
187
188
  //handle linting
@@ -266,6 +267,7 @@ const AutoSuggestion = ({
266
267
  handleEditorInputChange(value, cursorPosition)
267
268
  return handleEditorInputChange.cancel
268
269
  }
270
+ return;
269
271
  }, [cursorPosition, value, isFocused, handleEditorInputChange]);
270
272
 
271
273
  // Trigger input validation
@@ -1,4 +1,4 @@
1
- import "codemirror/addon/display/placeholder"
1
+ import "codemirror/addon/display/placeholder.js"
2
2
  import "codemirror/mode/sparql/sparql.js";
3
3
  import React from "react";
4
4
  import { Controlled as ControlledEditor } from "react-codemirror2";
@@ -74,7 +74,7 @@ const SingleLineCodeEditor = ({
74
74
  placeholder,
75
75
  scrollbarStyle: showScrollBar ? "native" : "null"
76
76
  }}
77
- onSelection={(editor, data) => {
77
+ onSelection={(_editor, data) => {
78
78
  if(Array.isArray(data?.ranges)) {
79
79
  onSelection(data.ranges
80
80
  .map((r: any) => ({from: r.from().ch, to: r.to().ch}))
@@ -84,7 +84,7 @@ const SingleLineCodeEditor = ({
84
84
  onCursor={(editor, data) => {
85
85
  onCursorChange(data, editor.cursorCoords(true, "div"));
86
86
  }}
87
- onBeforeChange={(editor, data, value) => {
87
+ onBeforeChange={(_editor, _data, value) => {
88
88
  const trimmedValue = value.replace(/\n/g, "");
89
89
  onChange(trimmedValue);
90
90
  }}
@@ -213,6 +213,7 @@ export function AutoCompleteField<T extends any, UPDATE_VALUE extends any>(props
213
213
  setListLoading(false);
214
214
  };
215
215
  }
216
+ return;
216
217
  },
217
218
  // eslint-disable-next-line react-hooks/exhaustive-deps
218
219
  [hasFocus, query]
@@ -47,7 +47,7 @@ function Modal({
47
47
  ...otherProps
48
48
  }: ModalProps) {
49
49
 
50
- const alteredChildren = React.Children.map(children, (child, index) => {
50
+ const alteredChildren = React.Children.map(children, (child) => {
51
51
  if ((child as React.ReactElement).type && (child as React.ReactElement).type === Card) {
52
52
  return React.cloneElement(
53
53
  child as React.ReactElement,
@@ -16,6 +16,7 @@ import {
16
16
  import Divider from "./../Separation/Divider";
17
17
  import Modal, { ModalProps } from "./Modal";
18
18
  import {TestableComponent} from "../interfaces";
19
+ import IconButton from "../Icon/IconButton";
19
20
 
20
21
  export interface SimpleDialogProps extends ModalProps, TestableComponent {
21
22
  /**
@@ -49,6 +50,10 @@ export interface SimpleDialogProps extends ModalProps, TestableComponent {
49
50
  intent?: IntentTypes;
50
51
  /** Optional props for the wrapper div element inside the modal. */
51
52
  wrapperDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
53
+ /** If a full screen toggler is shown that will allow to switch to full screen mode. */
54
+ showFullScreenToggler?: boolean
55
+ /** Starts the modal in full screen mode. The show full screen toggler will be automatically enabled. */
56
+ startInFullScreenMode?: boolean
52
57
  }
53
58
 
54
59
  /**
@@ -66,8 +71,13 @@ function SimpleDialog({
66
71
  preventSimpleClosing = false,
67
72
  intent,
68
73
  headerOptions,
74
+ showFullScreenToggler = false,
75
+ startInFullScreenMode = false,
76
+ size,
69
77
  ...otherProps
70
78
  }: SimpleDialogProps) {
79
+ const [displayFullscreen, setDisplayFullscreen] = React.useState<boolean>(startInFullScreenMode);
80
+ const showToggler = startInFullScreenMode || showFullScreenToggler
71
81
  const intentClassName = intent ? `${eccgui}-intent--${intent}` : "";
72
82
  return (
73
83
  <Modal
@@ -76,21 +86,32 @@ function SimpleDialog({
76
86
  data-test-id={otherProps["data-test-id"] ?? "simpleDialogWidget"}
77
87
  canOutsideClickClose={canOutsideClickClose || !preventSimpleClosing}
78
88
  canEscapeKeyClose={canEscapeKeyClose || !preventSimpleClosing}
89
+ size={displayFullscreen ? "fullscreen" : size}
79
90
  >
80
91
  <Card className={intentClassName}
81
92
  >
82
- {(title || headerOptions) && (
93
+ {(title || headerOptions || showToggler) ? (
83
94
  <CardHeader>
84
95
  <CardTitle
85
96
  className={intentClassName}
86
97
  >
87
98
  {title}
88
99
  </CardTitle>
89
- {headerOptions && (
90
- <CardOptions>{headerOptions}</CardOptions>
100
+ {(headerOptions || showToggler) ? (
101
+ <CardOptions>
102
+ { headerOptions }
103
+ {showToggler && (
104
+ <IconButton
105
+ name={displayFullscreen ? "toggler-minimize" : "toggler-maximize"}
106
+ onClick={() => setDisplayFullscreen(!displayFullscreen)}
107
+ />
108
+ )}
109
+ </CardOptions>
110
+ ) : (
111
+ <></>
91
112
  )}
92
113
  </CardHeader>
93
- )}
114
+ ) : null}
94
115
  {hasBorder && <Divider />}
95
116
  <CardContent>{children}</CardContent>
96
117
  {hasBorder && <Divider />}
@@ -6,7 +6,7 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
6
6
  */
7
7
  /** Allows to layout field items horizontally. */
8
8
  function FieldItemRow({ children, className, ...otherProps }: any) {
9
- return <div className={`${eccgui}-fielditem__row` + (className ? " " + className : "")}>{children}</div>;
9
+ return <div className={`${eccgui}-fielditem__row` + (className ? " " + className : "")} {...otherProps}>{children}</div>;
10
10
  }
11
11
 
12
12
  export default FieldItemRow;
@@ -59,6 +59,7 @@ function FieldSet({
59
59
  classIntent +
60
60
  (boxed ? ` ${eccgui}-fieldset--boxed` : "")
61
61
  }
62
+ {...otherProps}
62
63
  >
63
64
  {title && <legend>{title}</legend>}
64
65
  {userhelp}
@@ -67,6 +67,8 @@ export type ValidIconName = "application-dataintegration"
67
67
  | "operation-comparison"
68
68
  | "operation-transform"
69
69
  | "operation-aggregation"
70
+ | "operation-commit"
71
+ | "operation-sharelink"
70
72
  | "data-sourcepath"
71
73
  | "data-targetpath"
72
74
  | "list-sort"
@@ -453,6 +455,16 @@ const canonicalIconNames: Record<ValidIconName, IconSized> = {
453
455
  normal: icons.DataCollection20,
454
456
  large: icons.DataCollection32
455
457
  },
458
+ "operation-commit": {
459
+ small: icons.Commit16,
460
+ normal: icons.Commit20,
461
+ large: icons.Commit32
462
+ },
463
+ "operation-sharelink": {
464
+ small: icons.CopyLink16,
465
+ normal: icons.CopyLink20,
466
+ large: icons.CopyLink32
467
+ },
456
468
 
457
469
  "data-sourcepath": {
458
470
  small: icons.Data_216,
@@ -60,7 +60,7 @@ export const Iframe = React.forwardRef<HTMLIFrameElement, IframeProps>(({
60
60
  const classNames = `${eccgui}-iframe` +
61
61
  (!!useViewportHeight ? ` ${eccgui}-iframe--${useViewportHeight}height` : "") +
62
62
  (!!useAvailableSpace ? ` ${eccgui}-iframe--useavailablespace` : "");
63
- const { onLoad = (e: any)=>{}, style, ...otherOriginalIframeProps } = htmlIframeProps;
63
+ const { onLoad = ()=>{}, style, ...otherOriginalIframeProps } = htmlIframeProps;
64
64
  return (
65
65
  <div className={classNames}>
66
66
  {!isLoaded && <Spinner />}
@@ -1,8 +1,7 @@
1
1
  import React from "react";
2
- import SimpleDialog, { SimpleDialogProps } from "../Dialog/SimpleDialog";
3
- import IconButton from "../Icon/IconButton";
4
- import { CLASSPREFIX as eccgui } from "../../configuration/constants";
5
- import { Iframe, IframeProps } from "./Iframe";
2
+ import SimpleDialog, {SimpleDialogProps} from "../Dialog/SimpleDialog";
3
+ import {CLASSPREFIX as eccgui} from "../../configuration/constants";
4
+ import {Iframe, IframeProps} from "./Iframe";
6
5
 
7
6
  export interface IframeModalProps extends Omit<SimpleDialogProps, "children"> {
8
7
  // The title of the dialog
@@ -29,7 +28,6 @@ export function IframeModal({
29
28
  size = "large",
30
29
  ...otherSimpleDialogProps
31
30
  }: IframeModalProps) {
32
- const [displayFullscreen, setDisplayFullscreen] = React.useState<boolean>(startFullscreen);
33
31
  const {
34
32
  useViewportHeight,
35
33
  useAvailableSpace,
@@ -44,22 +42,13 @@ export function IframeModal({
44
42
  <SimpleDialog
45
43
  hasBorder
46
44
  title={title}
47
- headerOptions={(
48
- <>
49
- <IconButton
50
- name={displayFullscreen ? "toggler-minimize" : "toggler-maximize"}
51
- onClick={()=>setDisplayFullscreen(!displayFullscreen)}
52
- />
53
- <>
54
- {headerOptions}
55
- </>
56
- </>
57
- )}
45
+ headerOptions={headerOptions}
58
46
  className={
59
47
  `${eccgui}-iframemodal` +
60
48
  (className ? ` ${className}` : "")
61
49
  }
62
- size={displayFullscreen ? "fullscreen" : size}
50
+ showFullScreenToggler={true}
51
+ startInFullScreenMode={startFullscreen}
63
52
  {...otherSimpleDialogProps}
64
53
  >
65
54
  <Iframe
@@ -8,7 +8,7 @@ import OverflowText from "../Typography/OverflowText";
8
8
  import {HTMLInputProps} from "@blueprintjs/core/src/common/props";
9
9
  import {removeExtraSpaces} from "../../common/utils/stringUtils";
10
10
 
11
- interface SelectedParamsType<T> {
11
+ export interface SelectedParamsType<T> {
12
12
  newlySelected: T;
13
13
  selectedItems: T[];
14
14
  createdItems: Partial<T>[];
@@ -254,7 +254,7 @@ function MultiSelect<T>({
254
254
  * @param label
255
255
  * @param index
256
256
  */
257
- const removeTagFromSelectionViaIndex = (label: string, index: number) => {
257
+ const removeTagFromSelectionViaIndex = (label: React.ReactNode, index: number) => {
258
258
  setSelectedItems([...selectedItems.slice(0, index), ...selectedItems.slice(index + 1)]);
259
259
  setCreatedItems(items => items.filter(item => itemLabel(item) !== label));
260
260
  };
@@ -47,7 +47,7 @@ function OverviewItemList({
47
47
  }
48
48
  >
49
49
  {
50
- React.Children.map(children, (child, i) => {
50
+ React.Children.map(children, (child) => {
51
51
  return <li>{ child }</li>
52
52
  })
53
53
  }
@@ -41,6 +41,7 @@ function Spinner({
41
41
  const timeoutId = setTimeout(() => setShowSpinner(true), delay);
42
42
  return () => clearTimeout(timeoutId);
43
43
  }
44
+ return;
44
45
  }, [showSpinner, delay]);
45
46
  const availableIntent = ["primary", "success", "warning", "danger", "inherit"];
46
47
  const internSizes = {
@@ -16,6 +16,7 @@ function TagList({
16
16
  `${eccgui}-tag__list` +
17
17
  ((className && label) ? ' ' + className : '')
18
18
  }
19
+ {...otherProps}
19
20
  >
20
21
  {
21
22
  React.Children.map(children, (child, i) => {
@@ -1 +1,6 @@
1
1
  @import "./react-flow/react-flow";
2
+ /*
3
+ CodeMirror styles are already included by the base component styles
4
+ because it is used as lib for elements there already.
5
+ @import "./codemirror/codemirror";
6
+ */
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { ComponentStory, ComponentMeta } from "@storybook/react";
3
+
4
+ import { CodeEditor } from "./CodeMirror";
5
+
6
+ export default {
7
+ title: "Extensions/CodeEditor",
8
+ component: CodeEditor,
9
+ //parameters: { actions: { argTypesRegex: '^on.*' } },
10
+ argTypes: {
11
+ onChange: {
12
+ action: "value changed"
13
+ }
14
+ },
15
+ } as ComponentMeta<typeof CodeEditor>;
16
+
17
+ const TemplateFull: ComponentStory<typeof CodeEditor> = (args) => (
18
+ <CodeEditor {...args} />
19
+ );
20
+
21
+ export const BasicExample = TemplateFull.bind({});
22
+ BasicExample.args = {
23
+ name: "codeinput",
24
+ mode: "markdown",
25
+ defaultValue: "**test me**",
26
+ };
@@ -0,0 +1,82 @@
1
+ import React, { useEffect, useRef } from "react";
2
+ import CodeMirror from "codemirror";
3
+ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
4
+ import "codemirror/mode/markdown/markdown.js";
5
+ import "codemirror/mode/python/python.js";
6
+ import "codemirror/mode/sparql/sparql.js";
7
+ import "codemirror/mode/sql/sql.js";
8
+ import "codemirror/mode/turtle/turtle.js";
9
+ import "codemirror/mode/xml/xml.js";
10
+
11
+ export interface CodeEditorProps {
12
+ /**
13
+ * `name` attribute of connected textarea element.
14
+ */
15
+ name: string;
16
+ /**
17
+ * `id` attribute of connected textarea element.
18
+ * If not set then the default value is created by `codemirror-${name-attribute}`.
19
+ */
20
+ id?: string;
21
+ /**
22
+ * Handler method to receive onChange events.
23
+ * As input the new value is given.
24
+ */
25
+ onChange: (v: any) => void;
26
+ /**
27
+ * Syntax mode of the code editor.
28
+ */
29
+ mode?: "markdown" | "python" | "sparql" | "sql" | "turtle" | "xml" | "undefined";
30
+ /**
31
+ * Default value used first when the editor is instanciated.
32
+ */
33
+ defaultValue?: any;
34
+ }
35
+
36
+ /**
37
+ * Includes a code editor, currently we use CodeMirror library as base.
38
+ */
39
+ export const CodeEditor = ({
40
+ onChange,
41
+ name,
42
+ id,
43
+ mode = "undefined",
44
+ defaultValue
45
+ }: CodeEditorProps) => {
46
+ const domRef = useRef<HTMLTextAreaElement>(null);
47
+
48
+ useEffect(() => {
49
+ const editorInstance = CodeMirror.fromTextArea(domRef.current!, {
50
+ mode: mode === "undefined" ? undefined : mode,
51
+ lineWrapping: true,
52
+ lineNumbers: true,
53
+ tabSize: 2,
54
+ theme: "xq-light",
55
+ });
56
+
57
+ editorInstance.on("change", (api) => {
58
+ onChange(api.getValue());
59
+ });
60
+
61
+ return function cleanup() {
62
+ editorInstance.toTextArea();
63
+ };
64
+ }, [onChange, mode]);
65
+
66
+ return (
67
+ <div className={`${eccgui}-codeeditor`}>
68
+ <textarea
69
+ ref={domRef}
70
+ /**
71
+ * FIXME: same `data-test-id` for multiple code editor elements are valid
72
+ * but may not make really sense for testing purposes. Currently let it
73
+ * unchanged from the code what was took over here.
74
+ */
75
+ data-test-id="codemirror-wrapper"
76
+ id={!!id ? id : `codemirror-${name}`}
77
+ name={name}
78
+ defaultValue={defaultValue}
79
+ />
80
+ </div>
81
+ );
82
+ }
@@ -0,0 +1,31 @@
1
+ @import "~codemirror/lib/codemirror.css";
2
+ @import "~codemirror/theme/xq-light.css";
3
+
4
+ // adjustments
5
+
6
+ .#{$eccgui}-codeeditor {
7
+ .CodeMirror {
8
+ border-radius: $pt-border-radius;
9
+
10
+ // get them a "border" like input boxes from blueprintjs
11
+ box-shadow: input-transition-shadow($input-shadow-color-focus), $pt-input-box-shadow;
12
+ &.CodeMirror-focused {
13
+ box-shadow: input-transition-shadow($input-shadow-color-focus, true), $input-box-shadow-focus;
14
+ }
15
+
16
+ .CodeMirror-gutters {
17
+ // allow "borders" to shine through
18
+ background-color: rgba(0,0,0,0.05);
19
+ }
20
+
21
+ .CodeMirror-scroll {
22
+ cursor: text;
23
+ }
24
+ }
25
+ }
26
+
27
+ .#{$prefix}--accordion__content {
28
+ .CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber {
29
+ box-sizing: content-box;
30
+ }
31
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./codemirror/CodeMirror";
2
+ export * from "./react-flow";
@@ -11,6 +11,9 @@ import { drawEdgeStraight} from "./utils";
11
11
 
12
12
  export interface EdgeDefaultDataProps {
13
13
  pathGlowWidth?: number;
14
+ inversePath?: boolean;
15
+ markerStart?: string;
16
+ renderLabel?: (edgeCenter: [number, number, number, number]) => React.ReactNode;
14
17
  }
15
18
 
16
19
  export interface EdgeDefaultProps extends ReactFlowEdgeProps {
@@ -27,6 +30,7 @@ export const EdgeDefault = memo(
27
30
  } = edge;
28
31
  const {
29
32
  pathGlowWidth = 10,
33
+ markerStart
30
34
  } = data;
31
35
 
32
36
  const pathDisplay = drawSvgPath({...edgeOriginalProperties, data});
@@ -41,7 +45,7 @@ export const EdgeDefault = memo(
41
45
  targetY: edgeOriginalProperties.targetY,
42
46
  });
43
47
 
44
- const edgeLabel = edgeOriginalProperties.label ? (
48
+ const edgeLabel = data.renderLabel?.(edgeCenter) ?? (edgeOriginalProperties.label ? (
45
49
  <EdgeText
46
50
  x={edgeCenter[0]}
47
51
  y={edgeCenter[1]}
@@ -52,7 +56,7 @@ export const EdgeDefault = memo(
52
56
  labelBgPadding={edgeOriginalProperties.labelBgPadding || [5, 5]}
53
57
  labelBgBorderRadius={edgeOriginalProperties.labelBgBorderRadius || 3}
54
58
  />
55
- ) : null;
59
+ ) : null);
56
60
 
57
61
  const edgeStyle = edgeOriginalProperties.style ?? {};
58
62
  return (
@@ -67,6 +71,7 @@ export const EdgeDefault = memo(
67
71
  <path
68
72
  d={pathDisplay}
69
73
  className="react-flow__edge-path"
74
+ markerStart={markerStart}
70
75
  markerEnd={markerEnd}
71
76
  />
72
77
  { edgeLabel }
@@ -7,6 +7,8 @@ export { EdgeDefault } from "./edges/EdgeDefault";
7
7
  export { EdgeStep } from "./edges/EdgeStep";
8
8
  export { EdgeTools } from "./edges/EdgeTools";
9
9
  export { edgeTypes } from "./edges/edgeTypes";
10
+ export { MarkerArrowClosedInverse } from "./markers/MarkerArrowClosedInverse";
11
+ export { ReactFlowMarkers } from "./markers/ReactFlowMarkers";
10
12
  export { MiniMap } from "./minimap/MiniMap";
11
13
  export { minimapNodeClassName, minimapNodeColor } from "./minimap/utils";
12
14
 
@@ -0,0 +1,25 @@
1
+ import React, { FC } from "react";
2
+
3
+ export const MarkerArrowClosedInverse: FC = () => {
4
+ return (
5
+ <marker
6
+ className="react-flow__arrowhead"
7
+ id="react-flow__arrowclosed-inverse"
8
+ markerWidth="12.5"
9
+ markerHeight="12.5"
10
+ viewBox="-10 -10 20 20"
11
+ orient="auto"
12
+ refX="0"
13
+ refY="0"
14
+ >
15
+ <polyline
16
+ stroke="#b1b1b7"
17
+ strokeLinecap="round"
18
+ strokeLinejoin="round"
19
+ strokeWidth="1"
20
+ fill="#b1b1b7"
21
+ points="5,-4 0,0 5,4 5,-4"
22
+ ></polyline>
23
+ </marker>
24
+ );
25
+ };
@@ -0,0 +1,13 @@
1
+ import React, { FC } from "react";
2
+
3
+ import { MarkerArrowClosedInverse } from "./MarkerArrowClosedInverse";
4
+
5
+ export const ReactFlowMarkers: FC = () => {
6
+ return (
7
+ <svg>
8
+ <defs>
9
+ <MarkerArrowClosedInverse />
10
+ </defs>
11
+ </svg>
12
+ );
13
+ };
@@ -91,7 +91,7 @@ export const MiniMap = memo(({
91
91
  /**
92
92
  enables the mini-map fake drag effect see "handleMiniMapMouseMove" above.
93
93
  **/
94
- const handleMiniMapMouseDown = (event: any) => {
94
+ const handleMiniMapMouseDown = () => {
95
95
  if (enableNavigation && flowInstance) { minimapCalcConf.navigationOn = true; }
96
96
  };
97
97
 
package/src/index.scss CHANGED
@@ -130,10 +130,6 @@
130
130
  // currently not needed @import '~carbon-components/scss/components/pagination-nav/pagination-nav';
131
131
  // used in own component @import '~carbon-components/scss/components/ui-shell/ui-shell'; // experimental
132
132
 
133
- // other 3rd party libs
134
- @import "~codemirror/lib/codemirror.css";
135
- @import "~codemirror/theme/xq-light.css";
136
-
137
133
  // == Load element styles ======================================================
138
134
 
139
135
  @import "./components/Typography/typography";
@@ -170,6 +166,7 @@
170
166
  @import "./components/PropertyValuePair/propertyvalue";
171
167
  @import "./components/Iframe/iframe";
172
168
  @import "./components/AutoSuggestion/AutoSuggestion";
169
+ @import "./extensions/codemirror/codemirror";
173
170
 
174
171
  // == load tweaks ==============================================================
175
172
 
package/src/index.ts CHANGED
@@ -250,4 +250,4 @@ export {
250
250
  };
251
251
 
252
252
  export * from "./cmem";
253
- export * from "./extensions/react-flow";
253
+ export * from "./extensions";
@@ -1,35 +0,0 @@
1
- $reactflow-color-graph-node: #745a85 !default;
2
- $reactflow-color-class-node: #3a7896 !default;
3
- $reactflow-color-instance-node: #0097a7 !default;
4
- $reactflow-color-property-node: #ffd54f !default;
5
-
6
- $reactflow-color-implicit-edge: #ae3c74 !default;
7
- $reactflow-color-import-edge: $reactflow-color-graph-node !default;
8
- $reactflow-color-subclass-edge: $reactflow-color-class-node !default;
9
- $reactflow-color-subproperty-edge: $reactflow-color-property-node !default;
10
- $reactflow-color-rdftype-edge: $reactflow-color-instance-node !default;
11
-
12
- @function bright($color) {
13
- @return mix($color, #fff, 24%);
14
- }
15
-
16
- :export {
17
- graphNode: $reactflow-color-graph-node;
18
- classNode: $reactflow-color-class-node;
19
- instanceNode: $reactflow-color-instance-node;
20
- propertyNode: $reactflow-color-property-node;
21
- implicitEdge: $reactflow-color-implicit-edge;
22
- importEdge: $reactflow-color-import-edge;
23
- subclassEdge: $reactflow-color-subclass-edge;
24
- subpropertyEdge: $reactflow-color-subproperty-edge;
25
- rdftypeEdge: $reactflow-color-rdftype-edge;
26
- graphNodeBright: bright($reactflow-color-graph-node);
27
- classNodeBright: bright($reactflow-color-class-node);
28
- instanceNodeBright: bright($reactflow-color-instance-node);
29
- propertyNodeBright: bright($reactflow-color-property-node);
30
- implicitEdgeBright: bright($reactflow-color-implicit-edge);
31
- importEdgeBright: bright($reactflow-color-import-edge);
32
- subclassEdgeBright: bright($reactflow-color-subclass-edge);
33
- subpropertyEdgeBright: bright($reactflow-color-subproperty-edge);
34
- rdftypeEdgeBright: bright($reactflow-color-rdftype-edge);
35
- }
@@ -1,29 +0,0 @@
1
- $reactflow-color-sourcepath-node: #745a85 !default;
2
- $reactflow-color-targetpath-node: #3a7896 !default;
3
- $reactflow-color-transformation-node: #ae3c74 !default;
4
- $reactflow-color-comparator-node: #40a691 !default;
5
- $reactflow-color-aggregator-node: #0097a7 !default;
6
-
7
- $reactflow-color-value-edge: #222 !default;
8
- $reactflow-color-score-edge: $reactflow-color-aggregator-node !default;
9
-
10
- @function bright($color) {
11
- @return mix($color, #fff, 24%);
12
- }
13
-
14
- :export {
15
- sourcepathNode: $reactflow-color-sourcepath-node;
16
- targetpathNode: $reactflow-color-targetpath-node;
17
- transformationNode: $reactflow-color-transformation-node;
18
- comparatorNode: $reactflow-color-comparator-node;
19
- aggregatorNode: $reactflow-color-aggregator-node;
20
- valueEdge: $reactflow-color-value-edge;
21
- scoreEdge: $reactflow-color-score-edge;
22
- sourcepathNodeBright: bright($reactflow-color-sourcepath-node);
23
- targetpathNodeBright: bright($reactflow-color-targetpath-node);
24
- transformationNodeBright: bright($reactflow-color-transformation-node);
25
- comparatorNodeBright: bright($reactflow-color-comparator-node);
26
- aggregatorNodeBright: bright($reactflow-color-aggregator-node);
27
- valueEdgeBright: bright($reactflow-color-value-edge);
28
- scoreEdgeBright: bright($reactflow-color-score-edge);
29
- }