@eccenca/gui-elements 23.0.0-rc.1 → 23.0.0-rc.3

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 (311) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +4 -10
  3. package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  4. package/dist/cjs/cmem/index.js +3 -1
  5. package/dist/cjs/cmem/index.js.map +1 -1
  6. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +2 -1
  7. package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  8. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +64 -0
  9. package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -0
  10. package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
  11. package/dist/cjs/cmem/react-flow/configuration/linking.js +2 -0
  12. package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
  13. package/dist/cjs/cmem/react-flow/configuration/typing.js +35 -0
  14. package/dist/cjs/cmem/react-flow/configuration/typing.js.map +1 -0
  15. package/dist/cjs/cmem/react-flow/configuration/workflow.js +2 -0
  16. package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
  17. package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js +42 -0
  18. package/dist/cjs/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -0
  19. package/dist/cjs/common/utils/CssCustomProperties.js +114 -0
  20. package/dist/cjs/common/utils/CssCustomProperties.js.map +1 -0
  21. package/dist/cjs/common/utils/getColorConfiguration.js +21 -0
  22. package/dist/cjs/common/utils/getColorConfiguration.js.map +1 -0
  23. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +19 -19
  24. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
  25. package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js +4 -12
  26. package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
  27. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +15 -6
  28. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  29. package/dist/cjs/components/Breadcrumb/BreadcrumbItem.js +13 -4
  30. package/dist/cjs/components/Breadcrumb/BreadcrumbItem.js.map +1 -1
  31. package/dist/cjs/components/Breadcrumb/BreadcrumbList.js +11 -4
  32. package/dist/cjs/components/Breadcrumb/BreadcrumbList.js.map +1 -1
  33. package/dist/cjs/components/Button/Button.js +2 -2
  34. package/dist/cjs/components/Button/Button.js.map +1 -1
  35. package/dist/cjs/components/ContextOverlay/ContextMenu.js +6 -5
  36. package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
  37. package/dist/cjs/components/ContextOverlay/ContextOverlay.js +6 -8
  38. package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
  39. package/dist/cjs/components/Form/FieldItem.js +2 -2
  40. package/dist/cjs/components/Form/FieldItem.js.map +1 -1
  41. package/dist/cjs/components/Icon/Icon.js +2 -2
  42. package/dist/cjs/components/Icon/Icon.js.map +1 -1
  43. package/dist/cjs/components/Icon/IconButton.js +2 -2
  44. package/dist/cjs/components/Icon/IconButton.js.map +1 -1
  45. package/dist/cjs/components/Icon/canonicalIconNames.js +124 -114
  46. package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
  47. package/dist/cjs/components/Label/Label.js +6 -6
  48. package/dist/cjs/components/Label/Label.js.map +1 -1
  49. package/dist/cjs/components/Menu/MenuItem.js +2 -5
  50. package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
  51. package/dist/cjs/components/MultiSelect/MultiSelect.js +8 -10
  52. package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
  53. package/dist/cjs/components/Select/Select.js +29 -0
  54. package/dist/cjs/components/Select/Select.js.map +1 -0
  55. package/dist/cjs/components/Tabs/TabTitle.js +2 -4
  56. package/dist/cjs/components/Tabs/TabTitle.js.map +1 -1
  57. package/dist/cjs/components/Tag/Tag.js +2 -1
  58. package/dist/cjs/components/Tag/Tag.js.map +1 -1
  59. package/dist/cjs/components/Tooltip/Tooltip.js +7 -4
  60. package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
  61. package/dist/cjs/extensions/codemirror/CodeMirror.js +3 -3
  62. package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
  63. package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +2 -1
  64. package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
  65. package/dist/cjs/extensions/react-flow/handles/HandleContent.js +1 -1
  66. package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
  67. package/dist/cjs/extensions/react-flow/index.js +6 -1
  68. package/dist/cjs/extensions/react-flow/index.js.map +1 -1
  69. package/dist/cjs/extensions/react-flow/minimap/MiniMap.js +3 -2
  70. package/dist/cjs/extensions/react-flow/minimap/MiniMap.js.map +1 -1
  71. package/dist/cjs/extensions/react-flow/minimap/utils.js +12 -6
  72. package/dist/cjs/extensions/react-flow/minimap/utils.js.map +1 -1
  73. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +74 -25
  74. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  75. package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js +10 -6
  76. package/dist/cjs/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -1
  77. package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +1 -3
  78. package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
  79. package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js +49 -0
  80. package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -0
  81. package/dist/cjs/index.js +3 -2
  82. package/dist/cjs/index.js.map +1 -1
  83. package/dist/cjs/legacy-replacements/Tabs/Tabs.js +1 -1
  84. package/dist/cjs/legacy-replacements/Tabs/Tabs.js.map +1 -1
  85. package/dist/cjs/legacy-replacements/TextField/TextField.js +5 -8
  86. package/dist/cjs/legacy-replacements/TextField/TextField.js.map +1 -1
  87. package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +4 -10
  88. package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
  89. package/dist/esm/cmem/index.js +1 -0
  90. package/dist/esm/cmem/index.js.map +1 -1
  91. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js +2 -1
  92. package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
  93. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +89 -0
  94. package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -0
  95. package/dist/esm/cmem/react-flow/configuration/graph.js +1 -1
  96. package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
  97. package/dist/esm/cmem/react-flow/configuration/linking.js +3 -1
  98. package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
  99. package/dist/esm/cmem/react-flow/configuration/typing.js +32 -0
  100. package/dist/esm/cmem/react-flow/configuration/typing.js.map +1 -0
  101. package/dist/esm/cmem/react-flow/configuration/workflow.js +3 -1
  102. package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
  103. package/dist/esm/cmem/react-flow/nodes/StickyNoteNode.js +31 -0
  104. package/dist/esm/cmem/react-flow/nodes/StickyNoteNode.js.map +1 -0
  105. package/dist/esm/common/utils/CssCustomProperties.js +154 -0
  106. package/dist/esm/common/utils/CssCustomProperties.js.map +1 -0
  107. package/dist/esm/common/utils/getColorConfiguration.js +16 -0
  108. package/dist/esm/common/utils/getColorConfiguration.js.map +1 -0
  109. package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +23 -21
  110. package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
  111. package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js +4 -12
  112. package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
  113. package/dist/esm/components/AutocompleteField/AutoCompleteField.js +32 -23
  114. package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  115. package/dist/esm/components/Breadcrumb/BreadcrumbItem.js +13 -4
  116. package/dist/esm/components/Breadcrumb/BreadcrumbItem.js.map +1 -1
  117. package/dist/esm/components/Breadcrumb/BreadcrumbList.js +11 -4
  118. package/dist/esm/components/Breadcrumb/BreadcrumbList.js.map +1 -1
  119. package/dist/esm/components/Button/Button.js +2 -2
  120. package/dist/esm/components/Button/Button.js.map +1 -1
  121. package/dist/esm/components/ContextOverlay/ContextMenu.js +6 -5
  122. package/dist/esm/components/ContextOverlay/ContextMenu.js.map +1 -1
  123. package/dist/esm/components/ContextOverlay/ContextOverlay.js +6 -8
  124. package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
  125. package/dist/esm/components/Form/FieldItem.js +2 -2
  126. package/dist/esm/components/Form/FieldItem.js.map +1 -1
  127. package/dist/esm/components/Icon/Icon.js +2 -2
  128. package/dist/esm/components/Icon/Icon.js.map +1 -1
  129. package/dist/esm/components/Icon/IconButton.js +2 -2
  130. package/dist/esm/components/Icon/IconButton.js.map +1 -1
  131. package/dist/esm/components/Icon/canonicalIconNames.js +124 -114
  132. package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
  133. package/dist/esm/components/Label/Label.js +6 -6
  134. package/dist/esm/components/Label/Label.js.map +1 -1
  135. package/dist/esm/components/Menu/MenuItem.js +2 -5
  136. package/dist/esm/components/Menu/MenuItem.js.map +1 -1
  137. package/dist/esm/components/MultiSelect/MultiSelect.js +5 -7
  138. package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
  139. package/dist/esm/components/Select/Select.js +35 -0
  140. package/dist/esm/components/Select/Select.js.map +1 -0
  141. package/dist/esm/components/Tabs/TabTitle.js +2 -4
  142. package/dist/esm/components/Tabs/TabTitle.js.map +1 -1
  143. package/dist/esm/components/Tag/Tag.js +2 -1
  144. package/dist/esm/components/Tag/Tag.js.map +1 -1
  145. package/dist/esm/components/Tooltip/Tooltip.js +7 -4
  146. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  147. package/dist/esm/extensions/codemirror/CodeMirror.js +3 -3
  148. package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
  149. package/dist/esm/extensions/react-flow/edges/EdgeTools.js +2 -1
  150. package/dist/esm/extensions/react-flow/edges/EdgeTools.js.map +1 -1
  151. package/dist/esm/extensions/react-flow/handles/HandleContent.js +1 -1
  152. package/dist/esm/extensions/react-flow/handles/HandleContent.js.map +1 -1
  153. package/dist/esm/extensions/react-flow/index.js +1 -0
  154. package/dist/esm/extensions/react-flow/index.js.map +1 -1
  155. package/dist/esm/extensions/react-flow/minimap/MiniMap.js +3 -2
  156. package/dist/esm/extensions/react-flow/minimap/MiniMap.js.map +1 -1
  157. package/dist/esm/extensions/react-flow/minimap/utils.js +10 -5
  158. package/dist/esm/extensions/react-flow/minimap/utils.js.map +1 -1
  159. package/dist/esm/extensions/react-flow/nodes/NodeContent.js +76 -27
  160. package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  161. package/dist/esm/extensions/react-flow/nodes/NodeContentExtension.js +26 -6
  162. package/dist/esm/extensions/react-flow/nodes/NodeContentExtension.js.map +1 -1
  163. package/dist/esm/extensions/react-flow/nodes/NodeTools.js +1 -3
  164. package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -1
  165. package/dist/esm/extensions/react-flow/nodes/nodeUtils.js +44 -0
  166. package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -0
  167. package/dist/esm/index.js +3 -2
  168. package/dist/esm/index.js.map +1 -1
  169. package/dist/esm/legacy-replacements/Tabs/Tabs.js +1 -1
  170. package/dist/esm/legacy-replacements/Tabs/Tabs.js.map +1 -1
  171. package/dist/esm/legacy-replacements/TextField/TextField.js +2 -5
  172. package/dist/esm/legacy-replacements/TextField/TextField.js.map +1 -1
  173. package/dist/types/cmem/index.d.ts +1 -0
  174. package/dist/types/cmem/react-flow/StickyNoteModal/StickyNoteModal.d.ts +26 -0
  175. package/dist/types/cmem/react-flow/configuration/graph.d.ts +3 -8
  176. package/dist/types/cmem/react-flow/configuration/linking.d.ts +3 -9
  177. package/dist/types/cmem/react-flow/configuration/typing.d.ts +28 -0
  178. package/dist/types/cmem/react-flow/configuration/workflow.d.ts +3 -9
  179. package/dist/types/cmem/react-flow/nodes/StickyNoteNode.d.ts +3 -0
  180. package/dist/types/common/utils/CssCustomProperties.d.ts +28 -0
  181. package/dist/types/common/utils/getColorConfiguration.d.ts +8 -0
  182. package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +7 -4
  183. package/dist/types/components/Breadcrumb/BreadcrumbItem.d.ts +7 -3
  184. package/dist/types/components/Breadcrumb/BreadcrumbList.d.ts +20 -8
  185. package/dist/types/components/Button/Button.d.ts +2 -2
  186. package/dist/types/components/ContextOverlay/ContextMenu.d.ts +37 -3
  187. package/dist/types/components/ContextOverlay/ContextOverlay.d.ts +12 -1
  188. package/dist/types/components/Form/FieldItem.d.ts +3 -2
  189. package/dist/types/components/Icon/Icon.d.ts +32 -7
  190. package/dist/types/components/Icon/IconButton.d.ts +21 -7
  191. package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -1
  192. package/dist/types/components/Label/Label.d.ts +30 -2
  193. package/dist/types/components/Menu/MenuItem.d.ts +3 -7
  194. package/dist/types/components/MultiSelect/MultiSelect.d.ts +13 -9
  195. package/dist/types/components/Select/Select.d.ts +22 -0
  196. package/dist/types/components/Tag/Tag.d.ts +5 -1
  197. package/dist/types/components/Tooltip/Tooltip.d.ts +13 -11
  198. package/dist/types/components/interfaces.d.ts +1 -0
  199. package/dist/types/extensions/codemirror/CodeMirror.d.ts +5 -1
  200. package/dist/types/extensions/react-flow/edges/EdgeTools.d.ts +2 -2
  201. package/dist/types/extensions/react-flow/index.d.ts +1 -0
  202. package/dist/types/extensions/react-flow/minimap/MiniMap.d.ts +1 -1
  203. package/dist/types/extensions/react-flow/minimap/utils.d.ts +1 -0
  204. package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +17 -1
  205. package/dist/types/extensions/react-flow/nodes/NodeContentExtension.d.ts +2 -2
  206. package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +2 -2
  207. package/dist/types/extensions/react-flow/nodes/nodeUtils.d.ts +14 -0
  208. package/dist/types/index.d.ts +3 -2
  209. package/dist/types/legacy-replacements/Tabs/Tabs.d.ts +1 -1
  210. package/package.json +19 -15
  211. package/scripts/compile-sass.ts +9 -0
  212. package/scripts/fix-cjs-dist +5 -0
  213. package/scripts/fix-esm-dist +6 -0
  214. package/scripts/sassConfig.js +13 -0
  215. package/src/_shame.scss +17 -0
  216. package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +2 -2
  217. package/src/cmem/ActivityControl/ActivityControlWidget.tsx +5 -10
  218. package/src/cmem/index.ts +1 -0
  219. package/src/cmem/markdown/markdown.scss +1 -1
  220. package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +48 -15
  221. package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +2 -0
  222. package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +134 -0
  223. package/src/cmem/react-flow/_index.scss +1 -1
  224. package/src/cmem/react-flow/_minimap.scss +6 -2
  225. package/src/cmem/react-flow/configuration/graph.ts +3 -5
  226. package/src/cmem/react-flow/configuration/linking.ts +5 -6
  227. package/src/cmem/react-flow/configuration/typing.ts +30 -0
  228. package/src/cmem/react-flow/configuration/workflow.ts +5 -5
  229. package/src/cmem/react-flow/nodes/StickyNoteNode.tsx +13 -0
  230. package/src/cmem/react-flow/{_nodes.scss → nodes/_colors.scss} +0 -0
  231. package/src/cmem/react-flow/nodes/_index.scss +2 -0
  232. package/src/cmem/react-flow/nodes/_stickynote.scss +72 -0
  233. package/src/common/utils/CssCustomProperties.ts +14 -12
  234. package/src/common/utils/getColorConfiguration.ts +1 -2
  235. package/src/components/Accordion/accordion.scss +11 -11
  236. package/src/components/Application/_header.scss +4 -3
  237. package/src/components/AutoSuggestion/AutoSuggestion.tsx +23 -23
  238. package/src/components/AutoSuggestion/AutoSuggestionList.tsx +15 -17
  239. package/src/components/AutoSuggestion/tests/AutoSuggestionList.test.tsx +1 -1
  240. package/src/components/AutocompleteField/AutoCompleteField.tsx +44 -19
  241. package/src/components/AutocompleteField/autocompletefield.scss +5 -3
  242. package/src/components/AutocompleteField/stories/AutoCompleteField.stories.tsx +75 -0
  243. package/src/components/Breadcrumb/BreadcrumbItem.tsx +15 -6
  244. package/src/components/Breadcrumb/BreadcrumbList.tsx +36 -14
  245. package/src/components/Breadcrumb/breadcrumb.scss +24 -1
  246. package/src/components/Breadcrumb/stories/BreadcrumbItem.stories.tsx +19 -0
  247. package/src/components/Breadcrumb/stories/BreadcrumbList.stories.tsx +26 -0
  248. package/src/components/Button/Button.tsx +3 -3
  249. package/src/components/Button/button.scss +43 -6
  250. package/src/components/Card/card.scss +5 -5
  251. package/src/components/ContextOverlay/ContextMenu.stories.tsx +33 -0
  252. package/src/components/ContextOverlay/ContextMenu.tsx +46 -8
  253. package/src/components/ContextOverlay/ContextOverlay.stories.tsx +148 -0
  254. package/src/components/ContextOverlay/ContextOverlay.tsx +16 -9
  255. package/src/components/ContextOverlay/contextoverlay.scss +17 -5
  256. package/src/components/Dialog/dialog.scss +10 -8
  257. package/src/components/Form/FieldItem.tsx +4 -4
  258. package/src/components/Form/form.scss +6 -6
  259. package/src/components/Icon/Icon.tsx +33 -18
  260. package/src/components/Icon/IconButton.tsx +24 -19
  261. package/src/components/Icon/canonicalIconNames.tsx +134 -121
  262. package/src/components/Icon/icon.scss +1 -1
  263. package/src/components/Icon/stories/Icon.stories.tsx +52 -0
  264. package/src/components/Icon/stories/IconButton.stories.tsx +27 -0
  265. package/src/components/Label/Label.stories.tsx +27 -0
  266. package/src/components/Label/Label.tsx +47 -15
  267. package/src/components/Label/label.scss +2 -2
  268. package/src/components/Menu/MenuItem.tsx +9 -16
  269. package/src/components/Menu/menu.scss +10 -9
  270. package/src/components/MultiSelect/MultiSelect.tsx +30 -18
  271. package/src/components/Notification/notification.scss +3 -1
  272. package/src/components/OverviewItem/overviewitem.scss +8 -8
  273. package/src/components/PropertyValuePair/propertyvalue.scss +9 -7
  274. package/src/components/Select/Select.stories.tsx +35 -0
  275. package/src/components/Select/Select.tsx +38 -0
  276. package/src/components/Select/_select.scss +8 -0
  277. package/src/components/Separation/separation.scss +6 -6
  278. package/src/components/SimpleTable/simpletable.scss +5 -5
  279. package/src/components/Tabs/TabTitle.tsx +2 -4
  280. package/src/components/Tabs/tabs.scss +3 -3
  281. package/src/components/Tag/Tag.tsx +6 -0
  282. package/src/components/Tag/tag.scss +62 -33
  283. package/src/components/TextField/textfield.scss +6 -4
  284. package/src/components/Tooltip/Tooltip.stories.tsx +36 -0
  285. package/src/components/Tooltip/Tooltip.tsx +23 -18
  286. package/src/components/Tooltip/tooltip.scss +7 -7
  287. package/src/components/Typography/typography.scss +5 -4
  288. package/src/components/interfaces.ts +3 -1
  289. package/src/configuration/_variables.scss +11 -9
  290. package/src/extensions/codemirror/CodeMirror.tsx +9 -4
  291. package/src/extensions/react-flow/edges/EdgeTools.tsx +6 -4
  292. package/src/extensions/react-flow/edges/_edges.scss +3 -3
  293. package/src/extensions/react-flow/handles/HandleContent.tsx +0 -1
  294. package/src/extensions/react-flow/handles/_handles.scss +13 -13
  295. package/src/extensions/react-flow/index.ts +1 -0
  296. package/src/extensions/react-flow/minimap/MiniMap.tsx +16 -1
  297. package/src/extensions/react-flow/minimap/_minimap.scss +6 -6
  298. package/src/extensions/react-flow/minimap/utils.ts +8 -3
  299. package/src/extensions/react-flow/nodes/NodeContent.tsx +253 -166
  300. package/src/extensions/react-flow/nodes/NodeContentExtension.tsx +17 -11
  301. package/src/extensions/react-flow/nodes/NodeTools.tsx +10 -7
  302. package/src/extensions/react-flow/nodes/_nodes.scss +44 -12
  303. package/src/extensions/react-flow/nodes/nodeUtils.tsx +53 -0
  304. package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +41 -12
  305. package/src/extensions/react-flow/nodes/stories/NodeContentExtension.stories.tsx +39 -47
  306. package/src/includes/blueprintjs/_variables.scss +4 -2
  307. package/src/includes/carbon-components/_variables.scss +7 -5
  308. package/src/index.scss +9 -5
  309. package/src/index.ts +4 -2
  310. package/src/legacy-replacements/Tabs/Tabs.tsx +3 -1
  311. package/src/legacy-replacements/TextField/TextField.tsx +7 -5
@@ -1,16 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { WORKFLOW_NODE_TYPES } from "./typing";
2
3
  declare const edgeTypes: {
3
4
  default: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeStep").EdgeStepProps) => JSX.Element>;
4
5
  success: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeStep").EdgeStepProps) => JSX.Element>;
5
6
  warning: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeStep").EdgeStepProps) => JSX.Element>;
6
7
  danger: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeStep").EdgeStepProps) => JSX.Element>;
7
8
  };
8
- declare const nodeTypes: {
9
- default: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
10
- dataset: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
11
- linking: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
12
- transform: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
13
- task: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
14
- workflow: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
15
- };
16
- export { edgeTypes, nodeTypes, };
9
+ declare const nodeTypes: Record<WORKFLOW_NODE_TYPES, React.ReactNode>;
10
+ export { edgeTypes, nodeTypes };
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { NodeProps } from "./../../../extensions/react-flow/nodes/NodeDefault";
3
+ export declare const StickyNoteNode: React.MemoExoticComponent<(node: NodeProps<any>) => JSX.Element>;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Based on CSS Tricks tutorial.
3
+ * @see https://css-tricks.com/how-to-get-all-custom-properties-on-a-page-in-javascript/
4
+ */
5
+ declare type AllowedCSSRule = CSSStyleRule | CSSPageRule;
6
+ interface getLocalCssStyleRulesProps {
7
+ cssRuleType?: "CSSStyleRule" | "CSSPageRule";
8
+ selectorText?: string;
9
+ }
10
+ interface getLocalCssStyleRulePropertiesProps extends getLocalCssStyleRulesProps {
11
+ propertyType?: "all" | "normal" | "custom";
12
+ }
13
+ interface getCustomPropertiesProps extends getLocalCssStyleRulesProps {
14
+ removeDashPrefix?: boolean;
15
+ returnObject?: boolean;
16
+ }
17
+ export default class CssCustomProperties {
18
+ getterDefaultProps: getCustomPropertiesProps;
19
+ customprops: {};
20
+ constructor(props?: getCustomPropertiesProps);
21
+ customProperties: (props?: getCustomPropertiesProps) => any;
22
+ static listLocalStylesheets: () => CSSStyleSheet[];
23
+ static listLocalCssRules: () => CSSRule[];
24
+ static listLocalCssStyleRules: (filter?: getLocalCssStyleRulesProps) => AllowedCSSRule[];
25
+ static listLocalCssStyleRuleProperties: (filter?: getLocalCssStyleRulePropertiesProps) => string[][];
26
+ static listCustomProperties: (props?: getCustomPropertiesProps) => any;
27
+ }
28
+ export {};
@@ -0,0 +1,8 @@
1
+ declare type colorconfigs = "react-flow-graph" | "react-flow-linking" | "react-flow-workflow" | "stickynotes";
2
+ /**
3
+ * Read and returns color values provided by CSS custom properties.
4
+ * They are defined for special CSS classes.
5
+ * Currently color configurations for the react flow editors are supported.
6
+ **/
7
+ declare const getColorConfiguration: (configId: colorconfigs) => any;
8
+ export default getColorConfiguration;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- import { HTMLInputProps, IInputGroupProps, IPopoverProps } from "@blueprintjs/core";
2
+ import { HTMLInputProps as BlueprintHTMLInputProps, InputGroupProps as BlueprintInputGroupProps } from "@blueprintjs/core";
3
+ import { ContextOverlayProps } from "../../index";
3
4
  declare type SearchFunction<T extends any> = (value: string) => T[];
4
5
  declare type AsyncSearchFunction<T extends any> = (value: string) => Promise<T[]>;
5
6
  export interface IRenderModifiers {
@@ -56,11 +57,11 @@ export interface IAutoCompleteFieldProps<T extends any, UPDATE_VALUE extends any
56
57
  * `query` and `onQueryChange` instead of `inputProps.value` and
57
58
  * `inputProps.onChange`.
58
59
  */
59
- inputProps?: IInputGroupProps & HTMLInputProps;
60
+ inputProps?: BlueprintInputGroupProps & BlueprintHTMLInputProps;
60
61
  /**
61
- * Optional props of the BlueprintJs specific popover element.
62
+ * Optional props of the internally used `<ContextOverlay/>` element..
62
63
  */
63
- popoverProps?: Partial<IPopoverProps>;
64
+ contextOverlayProps?: Partial<Omit<ContextOverlayProps, "content" | "children">>;
64
65
  /** Defines if a value can be reset, i.e. a reset icon is shown and the value is set to a specific value.
65
66
  * When undefined, a value cannot be reset.
66
67
  */
@@ -94,6 +95,8 @@ export interface IAutoCompleteFieldProps<T extends any, UPDATE_VALUE extends any
94
95
  * @param selectedValue The currently selected value.
95
96
  */
96
97
  resetQueryToValue?(selectedValue: T): string;
98
+ /** If an error occurs during the auto-completion request, the error details will be prefixed with this string. */
99
+ requestErrorPrefix?: string;
97
100
  }
98
101
  /** Style object to be used in menu option items. */
99
102
  export interface IElementWidth {
@@ -1,5 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { IBreadcrumbProps as IBlueprintBreadcrumbItemProps } from "@blueprintjs/core";
3
- export declare type IBreadcrumbItemProps = Omit<IBlueprintBreadcrumbItemProps, "icon" | "iconTitle" | "intent" | "target">;
4
- declare function BreadcrumbItem({ className, onClick, href, ...otherBlueprintBreadcrumbProps }: IBreadcrumbItemProps): JSX.Element;
2
+ import { BreadcrumbProps as BlueprintBreadcrumbItemProps } from "@blueprintjs/core";
3
+ export declare type BreadcrumbItemProps = Omit<BlueprintBreadcrumbItemProps, "icon" | "iconTitle" | "intent" | "target">;
4
+ /**
5
+ * Item of the breadcrumbs list.
6
+ * It cannot be used directly but the properties can be used within the elements of the `BreadcrumbList.items` property.
7
+ */
8
+ declare function BreadcrumbItem({ className, onClick, href, ...otherBlueprintBreadcrumbProps }: BreadcrumbItemProps): JSX.Element;
5
9
  export default BreadcrumbItem;
@@ -1,16 +1,16 @@
1
1
  import React from "react";
2
- import { IBreadcrumbsProps as IBlueprintBreadcrumbsProps } from "@blueprintjs/core";
3
- import { IBreadcrumbItemProps } from "./BreadcrumbItem";
4
- declare type ReducedBreadcrumbsProps = Omit<IBlueprintBreadcrumbsProps, "breadcrumbRenderer" | "collapseFrom" | "currentBreadcrumbRenderer" | "minVisibleItems" | "overflowListProps" | "popoverProps">;
5
- interface IBreadcrumbListProps extends ReducedBreadcrumbsProps {
2
+ import { Breadcrumbs2Props as BlueprintBreadcrumbsProps } from "@blueprintjs/popover2";
3
+ import { BreadcrumbItemProps } from "./BreadcrumbItem";
4
+ declare type ReducedBreadcrumbsProps = Omit<BlueprintBreadcrumbsProps, "breadcrumbRenderer" | "collapseFrom" | "currentBreadcrumbRenderer" | "minVisibleItems" | "overflowListProps" | "popoverProps">;
5
+ interface BreadcrumbListProps extends ReducedBreadcrumbsProps {
6
6
  /**
7
7
  list of breadcrumb items to display
8
8
  */
9
- items: IBreadcrumbItemProps[];
9
+ items: BreadcrumbItemProps[];
10
10
  /**
11
11
  click handler used on breadcrumb items
12
12
  */
13
- onItemClick?(itemUrl: string, event: object): any;
13
+ onItemClick?(itemUrl: string | undefined, event: object): any;
14
14
  /**
15
15
  native attributes for the unordered HTML list (ul)
16
16
  */
@@ -18,7 +18,19 @@ interface IBreadcrumbListProps extends ReducedBreadcrumbsProps {
18
18
  /**
19
19
  char that devides breadcrumb items, default: "/" (currently unsupported)
20
20
  */
21
- itemDivider?: never;
21
+ /**
22
+ * Do not re-render breadcrumbs in a shortened version if they overflow the available space.
23
+ */
24
+ ignoreOverflow?: boolean;
25
+ /**
26
+ * If set to `true` then breadcrumb items can shrink.
27
+ * This way we cannot prevent overflowing breadcrumbs completely but this happens very late.
28
+ * You should enable this when `ignoreOverflow` is `true`.
29
+ */
30
+ latenOverflow?: boolean;
22
31
  }
23
- declare function BreadcrumbList({ className, onItemClick, htmlUlProps, ...otherBlueprintBreadcrumbsProps }: IBreadcrumbListProps): JSX.Element;
32
+ /**
33
+ * Navigation path to the currently show resource or view in the application.
34
+ */
35
+ declare function BreadcrumbList({ className, onItemClick, htmlUlProps, ignoreOverflow, latenOverflow, ...otherBlueprintBreadcrumbsProps }: BreadcrumbListProps): JSX.Element;
24
36
  export default BreadcrumbList;
@@ -42,7 +42,7 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLElement> {
42
42
  /**
43
43
  * Object with additional properties for the tooltip.
44
44
  */
45
- tooltipProperties?: Partial<Omit<TooltipProps, "content" | "children">>;
45
+ tooltipProps?: Partial<Omit<TooltipProps, "content" | "children">>;
46
46
  /**
47
47
  * If an URL is set then the button is included as HTML anchor element instead of a button form element.
48
48
  */
@@ -55,5 +55,5 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLElement> {
55
55
  * Display a button element to enable user interaction.
56
56
  * It normally should trigger action when clicked.
57
57
  */
58
- declare function Button({ children, className, affirmative, disruptive, elevated, hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, icon, rightIcon, tooltip, tooltipProperties, ...restProps }: ButtonProps & AnchorOrButtonProps): JSX.Element;
58
+ declare function Button({ children, className, affirmative, disruptive, elevated, hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, icon, rightIcon, tooltip, tooltipProps, ...restProps }: ButtonProps & AnchorOrButtonProps): JSX.Element;
59
59
  export default Button;
@@ -1,8 +1,42 @@
1
1
  /// <reference types="react" />
2
+ import { TestableComponent } from "../interfaces";
3
+ import { ContextOverlayProps } from "./ContextOverlay";
2
4
  import { ValidIconName } from "../Icon/canonicalIconNames";
3
- interface ContextMenuProps {
5
+ interface ContextMenuProps extends TestableComponent {
6
+ /**
7
+ * Addional CSS class names.
8
+ */
9
+ className?: string;
10
+ /**
11
+ * The elements of the context menu.
12
+ * They will be wrapped in a `Menu` element automatically.
13
+ */
14
+ children?: JSX.Element | JSX.Element[];
15
+ /**
16
+ * Toggler that need to be used to display menu.
17
+ * If a valid icon name is used then the icon element is displayed.
18
+ * In this case `togglerText`, `togglerLarge` and `tooltipAsTitle` are used, too.
19
+ */
4
20
  togglerElement?: ValidIconName | JSX.Element;
5
- [key: string]: any;
21
+ /**
22
+ * Text displayed as title or tooltip on toggler element.
23
+ */
24
+ togglerText?: string;
25
+ /**
26
+ * Toggler element is displayed larger than normal.
27
+ */
28
+ togglerLarge?: boolean;
29
+ /**
30
+ * Tooltip on toggler element is display as HTML title, not as extra tooltip element.
31
+ */
32
+ tooltipAsTitle?: boolean;
33
+ /**
34
+ * Props to spread to `ContextOverlay` that is used to display the dropdown.
35
+ */
36
+ contextOverlayProps?: Partial<Omit<ContextOverlayProps, "content" | "children" | "className">>;
6
37
  }
7
- declare function ContextMenu({ children, className, togglerElement, togglerText, togglerLarge, tooltipAsTitle, ...restProps }: ContextMenuProps): JSX.Element;
38
+ /**
39
+ * Element displays menu items after toggler is clicked.
40
+ */
41
+ declare function ContextMenu({ children, className, togglerElement, togglerText, contextOverlayProps, togglerLarge, tooltipAsTitle, ...restProps }: ContextMenuProps): JSX.Element;
8
42
  export default ContextMenu;
@@ -1,3 +1,14 @@
1
1
  /// <reference types="react" />
2
- declare function ContextOverlay({ children, className, ...restProps }: any): JSX.Element;
2
+ import { Popover2Props as BlueprintPopoverProps } from "@blueprintjs/popover2";
3
+ export interface ContextOverlayProps extends Omit<BlueprintPopoverProps, "position"> {
4
+ /**
5
+ * `target` element to use as toggler for the overlay display.
6
+ */
7
+ children?: JSX.Element;
8
+ }
9
+ /**
10
+ * Element displays connected content by interacting with a target element.
11
+ * Full list of available option can be seen at https://blueprintjs.com/docs/#popover2-package/popover2
12
+ */
13
+ declare function ContextOverlay({ children, className, ...restProps }: ContextOverlayProps): JSX.Element;
3
14
  export default ContextOverlay;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { LabelProps } from "../Label/Label";
2
3
  import { TestableComponent } from "../interfaces";
3
4
  interface IProps extends TestableComponent {
4
5
  hasStatePrimary?: boolean;
@@ -8,9 +9,9 @@ interface IProps extends TestableComponent {
8
9
  children: JSX.Element | JSX.Element[] | null;
9
10
  className?: string;
10
11
  disabled?: boolean;
11
- labelAttributes?: object;
12
+ labelProps?: LabelProps;
12
13
  helperText?: string | JSX.Element;
13
14
  messageText?: string;
14
15
  }
15
- declare function FieldItem({ hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, children, className, disabled, labelAttributes, helperText, messageText, ...otherProps }: IProps): JSX.Element;
16
+ declare function FieldItem({ hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, children, className, disabled, labelProps, helperText, messageText, ...otherProps }: IProps): JSX.Element;
16
17
  export default FieldItem;
@@ -4,17 +4,42 @@ import { IntentTypes } from "../../common/Intent";
4
4
  import { TooltipProps } from "./../Tooltip/Tooltip";
5
5
  import { ValidIconName } from "./canonicalIconNames";
6
6
  export interface IconProps extends Omit<CarbonIconProps, "icon" | "description" | "name"> {
7
- className?: string;
7
+ /**
8
+ * Canonical icon name, or an array of strings.
9
+ * In case of the array the first valid icon name is used.
10
+ */
8
11
  name: ValidIconName | string[];
9
- description?: string;
10
- large?: boolean;
11
- small?: boolean;
12
+ /**
13
+ * Add tooltip text to icon
14
+ */
12
15
  tooltipText?: string;
13
- tooltipOpenDelay?: number;
14
- tooltipProperties?: Partial<Omit<TooltipProps, "content" | "children">>;
16
+ /**
17
+ * Intent state of icon.
18
+ * Currently only `success`, `info`, `warning` and `danger` are implemented for icons, even there are more states available.
19
+ */
15
20
  intent?: IntentTypes;
21
+ /**
22
+ * Display large icon version.
23
+ */
24
+ large?: boolean;
25
+ /**
26
+ * Display small icon version.
27
+ */
28
+ small?: boolean;
29
+ /**
30
+ * Additional CSS classes.
31
+ */
32
+ className?: string;
33
+ /**
34
+ * Description for icon as accessibility fallback.
35
+ */
36
+ description?: string;
37
+ /**
38
+ * Additonal tooltip properties, e.g. `hoverOpenDelay`.
39
+ */
40
+ tooltipProps?: Partial<Omit<TooltipProps, "content" | "children">>;
16
41
  }
17
42
  /** Returns the first icon name that exists or the fallback icon name. */
18
43
  export declare const findExistingIconName: (iconNames: string[], fallbackIconName?: ValidIconName) => ValidIconName;
19
- declare function Icon({ className, name, large, small, tooltipText, tooltipOpenDelay, tooltipProperties, intent, ...restProps }: IconProps): JSX.Element;
44
+ declare function Icon({ className, name, large, small, tooltipText, tooltipProps, intent, ...restProps }: IconProps): JSX.Element;
20
45
  export default Icon;
@@ -1,17 +1,31 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps, AnchorOrButtonProps } from "../Button/Button";
3
3
  import { ValidIconName } from "./canonicalIconNames";
4
- interface IconButtonProps extends ButtonProps {
4
+ interface IconButtonProps extends Omit<ButtonProps, "icon" | "rightIcon" | "text" | "minimal" | "tooltip"> {
5
+ /**
6
+ * Canonical icon name, or an array of strings.
7
+ * In case of the array the first valid icon name is used.
8
+ */
5
9
  name: ValidIconName | string[];
6
- className?: string;
10
+ /**
11
+ * Button text, will be displayed as tooltip.
12
+ */
7
13
  text?: string;
8
- tooltipOpenDelay?: number;
9
- large?: boolean;
10
- small?: boolean;
14
+ /**
15
+ * If `text` should be set as HTML `title` attribute instead of attaching it as tooltip.
16
+ * If true then `tooltipProps` is ignored.
17
+ */
11
18
  tooltipAsTitle?: boolean;
12
- href?: string;
19
+ /**
20
+ * Description for icon as accessibility fallback.
21
+ * If not set then `text` is used.
22
+ */
13
23
  description?: string;
24
+ /**
25
+ * Button is displayed with minimal styles (no borders, no background color).
26
+ */
27
+ minimal?: boolean;
14
28
  }
15
29
  /** A button with an icon instead of text. */
16
- declare function IconButton({ className, name, text, tooltipProperties, description, tooltipOpenDelay, tooltipAsTitle, ...restProps }: IconButtonProps & AnchorOrButtonProps): JSX.Element;
30
+ declare function IconButton({ className, name, text, tooltipProps, description, tooltipAsTitle, minimal, ...restProps }: IconButtonProps & AnchorOrButtonProps): JSX.Element;
17
31
  export default IconButton;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  /** Valid icon names. */
3
- export declare type ValidIconName = "application-dataintegration" | "application-homepage" | "application-useraccount" | "application-warning" | "application-mapping" | "application-explore" | "application-vocabularies" | "application-queries" | "application-legacygui" | "application-activities" | "module-timetracker" | "module-accesscontrol" | "module-annotation" | "module-dashboard" | "module-search" | "module-visualization" | "module-reports" | "module-thesauri" | "module-linkedrules" | "module-integrations" | "module-gdprsearch" | "toggler-showmore" | "toggler-showless" | "toggler-moveright" | "toggler-moveleft" | "toggler-maximize" | "toggler-minimize" | "toggler-tree" | "navigation-back" | "navigation-forth" | "navigation-close" | "navigation-jump" | "navigation-last" | "navigation-previous" | "navigation-next" | "navigation-first" | "item-moremenu" | "item-vertmenu" | "item-viewdetails" | "item-clone" | "item-edit" | "item-evaluation" | "item-execution" | "item-info" | "item-remove" | "item-add-artefact" | "item-launch" | "item-download" | "item-question" | "item-copy" | "item-save" | "item-start" | "item-stop" | "item-reload" | "item-shuffle" | "item-draggable" | "operation-search" | "operation-clear" | "operation-undo" | "operation-redo" | "operation-logout" | "operation-filter" | "operation-filteredit" | "operation-comparison" | "operation-transform" | "operation-aggregation" | "operation-commit" | "operation-sharelink" | "data-sourcepath" | "data-targetpath" | "list-sort" | "list-sortasc" | "list-sortdesc" | "state-info" | "state-success" | "state-warning" | "state-danger" | "state-unchecked" | "state-checked" | "state-partlychecked" | "artefact-project" | "artefact-workflow" | "artefact-dataset" | "artefact-dataset-csv" | "artefact-dataset-multicsv" | "artefact-dataset-sparkview" | "artefact-dataset-sqlendpoint" | "artefact-dataset-jdbc" | "artefact-dataset-xml" | "artefact-dataset-json" | "artefact-dataset-excel" | "artefact-dataset-file" | "artefact-dataset-eccencadataplatform" | "artefact-dataset-sparqlendpoint" | "artefact-dataset-neo4j" | "artefact-transform" | "artefact-linking" | "artefact-task" | "artefact-customtask" | "artefact-file" | "artefact-embedded" | "artefact-remote" | "artefact-deprecated" | "artefact-uncategorized" | "artefact-rawdata" | "artefact-report" | "activity-error-report" | "select-caret" | "linked-item" | "operation-auto-graph-layout" | "unlinked-item" | "write-protected" | "undefined" | "Undefined";
3
+ export declare type ValidIconName = "application-dataintegration" | "application-homepage" | "application-useraccount" | "application-warning" | "application-mapping" | "application-explore" | "application-vocabularies" | "application-queries" | "application-legacygui" | "application-activities" | "module-timetracker" | "module-accesscontrol" | "module-annotation" | "module-dashboard" | "module-search" | "module-visualization" | "module-reports" | "module-thesauri" | "module-linkedrules" | "module-integrations" | "module-gdprsearch" | "toggler-showmore" | "toggler-showless" | "toggler-moveright" | "toggler-moveleft" | "toggler-maximize" | "toggler-minimize" | "toggler-tree" | "navigation-back" | "navigation-forth" | "navigation-close" | "navigation-jump" | "navigation-last" | "navigation-previous" | "navigation-next" | "navigation-first" | "item-moremenu" | "item-vertmenu" | "item-viewdetails" | "item-clone" | "item-edit" | "item-evaluation" | "item-execution" | "item-info" | "item-remove" | "item-add-artefact" | "item-launch" | "item-download" | "item-question" | "item-comment" | "item-copy" | "item-save" | "item-start" | "item-stop" | "item-reload" | "item-shuffle" | "item-draggable" | "operation-search" | "operation-clear" | "operation-undo" | "operation-redo" | "operation-logout" | "operation-filter" | "operation-filteredit" | "operation-comparison" | "operation-transform" | "operation-aggregation" | "operation-commit" | "operation-sharelink" | "data-sourcepath" | "data-targetpath" | "list-sort" | "list-sortasc" | "list-sortdesc" | "state-info" | "state-success" | "state-warning" | "state-danger" | "state-unchecked" | "state-checked" | "state-checkedsimple" | "state-partlychecked" | "artefact-project" | "artefact-workflow" | "artefact-dataset" | "artefact-dataset-csv" | "artefact-dataset-multicsv" | "artefact-dataset-sparkview" | "artefact-dataset-sqlendpoint" | "artefact-dataset-jdbc" | "artefact-dataset-xml" | "artefact-dataset-json" | "artefact-dataset-excel" | "artefact-dataset-file" | "artefact-dataset-eccencadataplatform" | "artefact-dataset-sparqlendpoint" | "artefact-dataset-neo4j" | "artefact-transform" | "artefact-linking" | "artefact-task" | "artefact-customtask" | "artefact-file" | "artefact-embedded" | "artefact-remote" | "artefact-deprecated" | "artefact-uncategorized" | "artefact-rawdata" | "artefact-report" | "activity-error-report" | "select-caret" | "linked-item" | "operation-auto-graph-layout" | "unlinked-item" | "write-protected" | "undefined" | "Undefined";
4
4
  export interface IconSized {
5
5
  small: (props: any) => JSX.Element | null;
6
6
  normal: (props: any) => JSX.Element | null;
@@ -1,3 +1,31 @@
1
- /// <reference types="react" />
2
- declare function Label({ children, className, disabled, text, info, tooltip, tooltipProperties, isLayoutForElement, ...otherProps }: any): JSX.Element;
1
+ import React from "react";
2
+ import { TooltipProps } from "../Tooltip/Tooltip";
3
+ export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
4
+ /**
5
+ * Label text.
6
+ */
7
+ text?: string | JSX.Element;
8
+ /**
9
+ * Short info about label semantic, it is displayed in parentesis after the label text.
10
+ */
11
+ info?: string | JSX.Element;
12
+ /**
13
+ * Additional tooltip, attached to an info icon that is displayed after the info.
14
+ */
15
+ tooltip?: string | JSX.Element;
16
+ /**
17
+ * Additonal tooltip properties, e.g. `hoverOpenDelay`.
18
+ */
19
+ tooltipProps?: Partial<Omit<TooltipProps, "content" | "children" | "disabled">>;
20
+ /**
21
+ * Set the name of an HTML element if the display should be used for something else that a `label` element.
22
+ */
23
+ isLayoutForElement?: string;
24
+ /**
25
+ * Label is displayed inactive.
26
+ * If there is no `isLayoutForElement` set then a `span` is used.
27
+ */
28
+ disabled?: boolean;
29
+ }
30
+ declare function Label({ children, className, disabled, text, info, tooltip, tooltipProps, isLayoutForElement, ...otherLabelProps }: LabelProps): JSX.Element;
3
31
  export default Label;
@@ -1,13 +1,9 @@
1
1
  import React from 'react';
2
- import { MenuItemProps } from "@blueprintjs/core";
2
+ import { MenuItemProps as BlueprintMenuItemProps } from "@blueprintjs/core";
3
3
  import { ValidIconName } from "../Icon/canonicalIconNames";
4
- interface IProps {
5
- children?: React.ReactNode | React.ReactNode[];
6
- className?: string;
4
+ export interface MenuItemProps extends Omit<BlueprintMenuItemProps, "icon">, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target"> {
7
5
  icon?: ValidIconName | string[];
8
- internalProps?: Partial<MenuItemProps> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
9
- [key: string]: any;
10
6
  }
11
7
  /** A single item in a Menu. */
12
- declare function MenuItem({ children, className, icon, internalProps, onClick, href, ...restProps }: IProps): JSX.Element;
8
+ declare function MenuItem({ children, className, icon, onClick, href, ...restProps }: MenuItemProps): JSX.Element;
13
9
  export default MenuItem;
@@ -1,12 +1,13 @@
1
1
  /// <reference types="react" />
2
- import { MultiSelectProps } from "@blueprintjs/select";
3
- import { HTMLInputProps } from "@blueprintjs/core/src/common/props";
2
+ import { HTMLInputProps as BlueprintHTMLInputProps } from "@blueprintjs/core";
3
+ import { MultiSelect2 as BlueprintMultiSelect, MultiSelect2Props as BlueprintMultiSelectProps } from "@blueprintjs/select";
4
+ import { ContextOverlayProps } from "./../../index";
4
5
  export interface SelectedParamsType<T> {
5
6
  newlySelected: T;
6
7
  selectedItems: T[];
7
8
  createdItems: Partial<T>[];
8
9
  }
9
- interface IProps<T> extends Pick<MultiSelectProps<T>, "items" | "placeholder" | "openOnKeyDown"> {
10
+ interface IProps<T> extends Pick<BlueprintMultiSelectProps<T>, "items" | "placeholder" | "openOnKeyDown"> {
10
11
  /**
11
12
  * Returns the unique ID of an item. This will be used for equality of items.
12
13
  */
@@ -25,22 +26,22 @@ interface IProps<T> extends Pick<MultiSelectProps<T>, "items" | "placeholder" |
25
26
  */
26
27
  onSelection?: (params: SelectedParamsType<T>) => void;
27
28
  /**
28
- * Props to spread to `Popover`. Note that `content` cannot be changed.
29
+ * Props to spread to `ContextOverlay`. Note that `content` cannot be changed.
29
30
  */
30
- popoverProps?: MultiSelectProps<T>["popoverProps"];
31
+ contextOverlayProps?: Partial<Omit<ContextOverlayProps, "content" | "children">>;
31
32
  /**
32
33
  * Props to spread to `TagInput`. Use `query` and `onQueryChange` to control the input.
33
34
  */
34
- tagInputProps?: MultiSelectProps<T>["tagInputProps"];
35
+ tagInputProps?: BlueprintMultiSelectProps<T>["tagInputProps"];
35
36
  /** Additional properties for the (query) input field of the multi-selection. */
36
- inputProps?: HTMLInputProps;
37
+ inputProps?: BlueprintHTMLInputProps;
37
38
  /**
38
39
  * prop to listen for query changes, when text is entered in the multi-select input
39
40
  */
40
41
  runOnQueryChange?: (query: string) => Promise<T[] | undefined>;
41
42
  /**
42
43
  * Whether the component should take up the full width of its container.
43
- * This overrides `popoverProps.fill` and `tagInputProps.fill`.
44
+ * This overrides `tagInputProps.fill`.
44
45
  */
45
46
  fullWidth?: boolean;
46
47
  /**
@@ -82,5 +83,8 @@ interface IProps<T> extends Pick<MultiSelectProps<T>, "items" | "placeholder" |
82
83
  */
83
84
  disabled?: boolean;
84
85
  }
85
- declare function MultiSelect<T>({ items, prePopulateWithItems, itemId, itemLabel, onSelection, popoverProps, tagInputProps, inputProps, runOnQueryChange, fullWidth, noResultText, newItemCreationText, newItemPostfix, hasStatePrimary, hasStateDanger, hasStateSuccess, hasStateWarning, disabled, createNewItemFromQuery, ...otherProps }: IProps<T>): JSX.Element;
86
+ declare function MultiSelect<T>({ items, prePopulateWithItems, itemId, itemLabel, onSelection, contextOverlayProps, tagInputProps, inputProps, runOnQueryChange, fullWidth, noResultText, newItemCreationText, newItemPostfix, hasStatePrimary, hasStateDanger, hasStateSuccess, hasStateWarning, disabled, createNewItemFromQuery, ...otherProps }: IProps<T>): JSX.Element;
87
+ declare namespace MultiSelect {
88
+ var ofType: typeof BlueprintMultiSelect.ofType;
89
+ }
86
90
  export default MultiSelect;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { Select2 as BlueprintSelect, Select2Props as BlueprintSelectProps } from "@blueprintjs/select";
3
+ import { ContextOverlayProps } from "./../../index";
4
+ /**
5
+ * FIXME: Currently we only route the original element through.
6
+ * We should add here basic elemeents and processes for target and selections, etc.
7
+ */
8
+ export interface SelectProps<T> extends Omit<BlueprintSelectProps<T>, "popoverTargetProps" | "popoverContentProps" | "popoverProps" | "popoverRef"> {
9
+ /**
10
+ * Props to spread to `ContextOverlay` that is used to display the dropdown.
11
+ */
12
+ contextOverlayProps?: Partial<Omit<ContextOverlayProps, "content" | "defaultIsOpen" | "disabled" | "fill" | "renderTarget" | "targetTagName">>;
13
+ }
14
+ /**
15
+ * Create a Select box without the HTML select element.
16
+ * It is possible to filter options, as well as to add new options if necessary.
17
+ */
18
+ declare function Select<T>({ contextOverlayProps, ...otherSelectProps }: SelectProps<T>): JSX.Element;
19
+ declare namespace Select {
20
+ var ofType: typeof BlueprintSelect.ofType;
21
+ }
22
+ export default Select;
@@ -18,10 +18,14 @@ interface TagProps extends Omit<BlueprintTagProps, "active" | "fill" | "large" |
18
18
  * display tag in a small version
19
19
  */
20
20
  small?: boolean;
21
+ /**
22
+ * display tag in a large version
23
+ */
24
+ large?: boolean;
21
25
  /**
22
26
  * **deprecated**, use `minimal=false` plus `emphasis="stronger"`
23
27
  */
24
28
  emphasized?: never;
25
29
  }
26
- declare function Tag({ children, className, emphasis, minimal, small, backgroundColor, ...otherProps }: TagProps): JSX.Element;
30
+ declare function Tag({ children, className, emphasis, minimal, small, large, backgroundColor, ...otherProps }: TagProps): JSX.Element;
27
31
  export default Tag;
@@ -1,17 +1,19 @@
1
1
  import React from "react";
2
- import { TooltipProps as BlueprintTooltipProps } from "@blueprintjs/core";
3
- export interface TooltipProps {
4
- className?: string;
2
+ import { Tooltip2Props as BlueprintTooltipProps } from "@blueprintjs/popover2";
3
+ export interface TooltipProps extends Omit<BlueprintTooltipProps, "position"> {
4
+ /**
5
+ * Add dotted underline as visual indication to the target that a tooltip is attached.
6
+ * Should be used together with text-only elements.
7
+ */
5
8
  addIndicator?: boolean;
6
- /** Blueprint specific tooltip props */
7
- tooltipProps?: Partial<BlueprintTooltipProps>;
8
- /** The content that is displayed when hovering over the tooltip area. */
9
- content: JSX.Element | string;
10
- /** The size specifies the dimension the element can maximal grow. */
9
+ /**
10
+ * The size specifies the dimension the tooltip overlay element can maximal grow.
11
+ */
11
12
  size?: "small" | "medium" | "large";
13
+ /**
14
+ * The tolltip will be attached to this element when it is hovered.
15
+ */
12
16
  children: React.ReactNode | React.ReactNode[];
13
- /** @deprecated Use tooltipProps for Blueprint specific props or add concrete properties in all other cases. */
14
- [key: string]: any;
15
17
  }
16
- declare function Tooltip({ children, content, className, size, addIndicator, tooltipProps, ...otherProps }: TooltipProps): JSX.Element;
18
+ declare function Tooltip({ children, content, className, size, addIndicator, ...otherProps }: TooltipProps): JSX.Element;
17
19
  export default Tooltip;
@@ -1,3 +1,4 @@
1
1
  export interface TestableComponent {
2
2
  "data-test-id"?: string;
3
3
  }
4
+ export type { ContextOverlayProps } from "./ContextOverlay/ContextOverlay";
@@ -28,8 +28,12 @@ export interface CodeEditorProps {
28
28
  * Default value used first when the editor is instanciated.
29
29
  */
30
30
  defaultValue?: any;
31
+ /**
32
+ * If enabled the code editor won't show numbers before each line.
33
+ */
34
+ preventLineNumbers?: boolean;
31
35
  }
32
36
  /**
33
37
  * Includes a code editor, currently we use CodeMirror library as base.
34
38
  */
35
- export declare const CodeEditor: ({ onChange, name, id, mode, defaultValue }: CodeEditorProps) => JSX.Element;
39
+ export declare const CodeEditor: ({ onChange, name, id, mode, preventLineNumbers, defaultValue, }: CodeEditorProps) => JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { IPopoverProps as IBlueprintPopoverProps } from "@blueprintjs/core";
2
+ import { ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
3
3
  interface PosOffset {
4
4
  left: number;
5
5
  top: number;
6
6
  }
7
- export interface EdgeToolsProps extends IBlueprintPopoverProps {
7
+ export interface EdgeToolsProps extends Omit<ContextOverlayProps, "children"> {
8
8
  posOffset: PosOffset;
9
9
  children: string | JSX.Element | JSX.Element[];
10
10
  }
@@ -11,6 +11,7 @@ export { MarkerArrowClosedInverse } from "./markers/MarkerArrowClosedInverse";
11
11
  export { ReactFlowMarkers } from "./markers/ReactFlowMarkers";
12
12
  export { MiniMap } from "./minimap/MiniMap";
13
13
  export { minimapNodeClassName, minimapNodeColor } from "./minimap/utils";
14
+ export { default as nodeUtils } from "./nodes/nodeUtils";
14
15
  export type { NodeProps } from "./nodes/NodeDefault";
15
16
  export type { NodeContentProps } from "./nodes/NodeContent";
16
17
  export type { NodeContentExtensionProps } from "./nodes/NodeContentExtension";
@@ -5,4 +5,4 @@ export interface MiniMapProps extends ReactFlowMiniMapProps {
5
5
  enableNavigation?: boolean;
6
6
  }
7
7
  /** An improved mini-map for react-flow that supports navigation via the mini-map. */
8
- export declare const MiniMap: React.MemoExoticComponent<({ flowInstance, enableNavigation, maskColor, ...minimapProps }: MiniMapProps) => JSX.Element>;
8
+ export declare const MiniMap: React.MemoExoticComponent<({ flowInstance, enableNavigation, maskColor, nodeClassName, nodeColor, nodeStrokeColor, ...minimapProps }: MiniMapProps) => JSX.Element>;
@@ -1,2 +1,3 @@
1
1
  export declare const minimapNodeClassName: (node: any) => string;
2
2
  export declare const minimapNodeColor: (node: any) => any;
3
+ export declare const minimapBorderColor: (node: any) => any;