@eccenca/gui-elements 24.0.0 → 24.1.0-featureimprovepublishingprocesscmem6356.0
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.
- package/CHANGELOG.md +95 -0
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +7 -2
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +3 -3
- package/dist/cjs/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +13 -3
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js +3 -3
- package/dist/cjs/components/AutoSuggestion/ExtendedCodeEditor.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +4 -2
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/Card/CardActions.js +2 -1
- package/dist/cjs/components/Card/CardActions.js.map +1 -1
- package/dist/cjs/components/Card/CardContent.js +4 -6
- package/dist/cjs/components/Card/CardContent.js.map +1 -1
- package/dist/cjs/components/ContentGroup/ContentGroup.js +95 -0
- package/dist/cjs/components/ContentGroup/ContentGroup.js.map +1 -0
- package/dist/cjs/components/Dialog/SimpleDialog.js +3 -3
- package/dist/cjs/components/Dialog/SimpleDialog.js.map +1 -1
- package/dist/cjs/components/Icon/canonicalIconNames.js +12 -0
- package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/cjs/components/Label/Label.js +8 -3
- package/dist/cjs/components/Label/Label.js.map +1 -1
- package/dist/cjs/components/Menu/MenuItem.js +3 -2
- package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +1 -0
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItem.js +5 -2
- package/dist/cjs/components/OverviewItem/OverviewItem.js.map +1 -1
- package/dist/cjs/components/OverviewItem/OverviewItemList.js +2 -2
- package/dist/cjs/components/OverviewItem/OverviewItemList.js.map +1 -1
- package/dist/cjs/components/Switch/Switch.js +6 -4
- package/dist/cjs/components/Switch/Switch.js.map +1 -1
- package/dist/cjs/components/Tag/TagList.js +1 -1
- package/dist/cjs/components/Tag/TagList.js.map +1 -1
- package/dist/cjs/components/TextField/SearchField.js +19 -2
- package/dist/cjs/components/TextField/SearchField.js.map +1 -1
- package/dist/cjs/components/Typography/OverflowText.js +1 -1
- package/dist/cjs/components/Typography/OverflowText.js.map +1 -1
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js +93 -11
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/cjs/extensions/codemirror/debouncedLinter.js +18 -0
- package/dist/cjs/extensions/codemirror/debouncedLinter.js.map +1 -0
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +23 -14
- package/dist/cjs/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/cjs/extensions/codemirror/linters/jsLinter.js +36 -0
- package/dist/cjs/extensions/codemirror/linters/jsLinter.js.map +1 -0
- package/dist/cjs/extensions/codemirror/linters/turtleLinter.js +81 -0
- package/dist/cjs/extensions/codemirror/linters/turtleLinter.js.map +1 -0
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js +4 -1
- package/dist/cjs/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/cjs/extensions/codemirror/toolbars/commands/markdown.command.js +278 -0
- package/dist/cjs/extensions/codemirror/toolbars/commands/markdown.command.js.map +1 -0
- package/dist/cjs/extensions/codemirror/toolbars/markdown.toolbar.js +47 -0
- package/dist/cjs/extensions/codemirror/toolbars/markdown.toolbar.js.map +1 -0
- package/dist/cjs/extensions/codemirror/types.js +3 -0
- package/dist/cjs/extensions/codemirror/types.js.map +1 -0
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +140 -41
- package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js +5 -6
- package/dist/cjs/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +7 -2
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js +4 -4
- package/dist/esm/cmem/react-flow/StickyNoteModal/StickyNoteModal.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +13 -3
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/ExtendedCodeEditor.js +14 -3
- package/dist/esm/components/AutoSuggestion/ExtendedCodeEditor.js.map +1 -1
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js +4 -3
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/Card/CardActions.js +2 -1
- package/dist/esm/components/Card/CardActions.js.map +1 -1
- package/dist/esm/components/Card/CardContent.js +4 -5
- package/dist/esm/components/Card/CardContent.js.map +1 -1
- package/dist/esm/components/ContentGroup/ContentGroup.js +100 -0
- package/dist/esm/components/ContentGroup/ContentGroup.js.map +1 -0
- package/dist/esm/components/Dialog/SimpleDialog.js +4 -4
- package/dist/esm/components/Dialog/SimpleDialog.js.map +1 -1
- package/dist/esm/components/Icon/canonicalIconNames.js +12 -0
- package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
- package/dist/esm/components/Label/Label.js +8 -3
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/esm/components/Menu/MenuItem.js +3 -2
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/MultiSelect/MultiSelect.js +1 -0
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItem.js +5 -2
- package/dist/esm/components/OverviewItem/OverviewItem.js.map +1 -1
- package/dist/esm/components/OverviewItem/OverviewItemList.js +2 -2
- package/dist/esm/components/OverviewItem/OverviewItemList.js.map +1 -1
- package/dist/esm/components/Switch/Switch.js +7 -5
- package/dist/esm/components/Switch/Switch.js.map +1 -1
- package/dist/esm/components/Tag/TagList.js +1 -1
- package/dist/esm/components/Tag/TagList.js.map +1 -1
- package/dist/esm/components/TextField/SearchField.js +35 -2
- package/dist/esm/components/TextField/SearchField.js.map +1 -1
- package/dist/esm/components/Typography/OverflowText.js +1 -1
- package/dist/esm/components/Typography/OverflowText.js.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/extensions/codemirror/CodeMirror.js +94 -13
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -1
- package/dist/esm/extensions/codemirror/debouncedLinter.js +15 -0
- package/dist/esm/extensions/codemirror/debouncedLinter.js.map +1 -0
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js +20 -11
- package/dist/esm/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.js.map +1 -1
- package/dist/esm/extensions/codemirror/linters/jsLinter.js +32 -0
- package/dist/esm/extensions/codemirror/linters/jsLinter.js.map +1 -0
- package/dist/esm/extensions/codemirror/linters/turtleLinter.js +77 -0
- package/dist/esm/extensions/codemirror/linters/turtleLinter.js.map +1 -0
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js +4 -0
- package/dist/esm/extensions/codemirror/tests/codemirrorTestHelper.js.map +1 -1
- package/dist/esm/extensions/codemirror/toolbars/commands/markdown.command.js +283 -0
- package/dist/esm/extensions/codemirror/toolbars/commands/markdown.command.js.map +1 -0
- package/dist/esm/extensions/codemirror/toolbars/markdown.toolbar.js +41 -0
- package/dist/esm/extensions/codemirror/toolbars/markdown.toolbar.js.map +1 -0
- package/dist/esm/extensions/codemirror/types.js +2 -0
- package/dist/esm/extensions/codemirror/types.js.map +1 -0
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js +149 -48
- package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js +5 -6
- package/dist/esm/extensions/react-flow/nodes/nodeUtils.js.map +1 -1
- package/dist/types/cmem/ActivityControl/ActivityControlWidget.d.ts +1 -1
- package/dist/types/cmem/react-flow/StickyNoteModal/StickyNoteModal.d.ts +5 -1
- package/dist/types/components/AutoSuggestion/ExtendedCodeEditor.d.ts +11 -6
- package/dist/types/components/Card/CardActions.d.ts +5 -1
- package/dist/types/components/Card/CardContent.d.ts +1 -2
- package/dist/types/components/ContentGroup/ContentGroup.d.ts +78 -0
- package/dist/types/components/Dialog/SimpleDialog.d.ts +4 -1
- package/dist/types/components/Icon/canonicalIconNames.d.ts +12 -0
- package/dist/types/components/Label/Label.d.ts +7 -1
- package/dist/types/components/Menu/MenuItem.d.ts +8 -1
- package/dist/types/components/OverviewItem/OverviewItem.d.ts +13 -1
- package/dist/types/components/OverviewItem/OverviewItemList.d.ts +3 -2
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/types/components/Structure/TitleSubsection.d.ts +9 -1
- package/dist/types/components/Switch/Switch.d.ts +3 -3
- package/dist/types/components/Tabs/Tab.d.ts +20 -4
- package/dist/types/components/TextField/SearchField.d.ts +1 -1
- package/dist/types/components/Typography/OverflowText.d.ts +23 -2
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/extensions/codemirror/CodeMirror.d.ts +32 -5
- package/dist/types/extensions/codemirror/debouncedLinter.d.ts +4 -0
- package/dist/types/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.d.ts +7 -5
- package/dist/types/extensions/codemirror/linters/jsLinter.d.ts +5 -0
- package/dist/types/extensions/codemirror/linters/turtleLinter.d.ts +5 -0
- package/dist/types/extensions/codemirror/tests/codemirrorTestHelper.d.ts +1 -0
- package/dist/types/extensions/codemirror/toolbars/commands/markdown.command.d.ts +55 -0
- package/dist/types/extensions/codemirror/toolbars/markdown.toolbar.d.ts +12 -0
- package/dist/types/extensions/codemirror/types.d.ts +5 -0
- package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +18 -4
- package/dist/types/extensions/react-flow/nodes/nodeUtils.d.ts +7 -6
- package/dist/types/extensions/react-flow/versionsupport.d.ts +1 -1
- package/package.json +59 -47
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +5 -2
- package/src/cmem/react-flow/StickyNoteModal/StickyNoteModal.tsx +16 -2
- package/src/cmem/react-flow/configuration/_colors-graph.scss +4 -1
- package/src/cmem/react-flow/configuration/_colors-workflow.scss +3 -0
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +14 -3
- package/src/components/AutoSuggestion/ExtendedCodeEditor.tsx +29 -6
- package/src/components/AutocompleteField/AutoCompleteField.tsx +5 -3
- package/src/components/Card/CardActions.tsx +6 -0
- package/src/components/Card/CardContent.tsx +8 -4
- package/src/components/Card/card.scss +15 -0
- package/src/components/CodeAutocompleteField/CodeAutocompleteField.stories.tsx +3 -2
- package/src/components/ContentGroup/ContentGroup.stories.tsx +47 -0
- package/src/components/ContentGroup/ContentGroup.tsx +256 -0
- package/src/components/ContentGroup/_contentgroup.scss +56 -0
- package/src/components/ContextOverlay/ContextOverlay.stories.tsx +15 -4
- package/src/components/Depiction/depiction.scss +7 -0
- package/src/components/Dialog/SimpleDialog.tsx +9 -2
- package/src/components/Dialog/stories/AlertDialog.stories.tsx +5 -1
- package/src/components/Dialog/stories/Modal.stories.tsx +4 -2
- package/src/components/Dialog/stories/SimpleDialog.stories.tsx +5 -2
- package/src/components/Icon/canonicalIconNames.tsx +12 -0
- package/src/components/Label/Label.stories.tsx +2 -1
- package/src/components/Label/Label.tsx +17 -1
- package/src/components/Label/label.scss +5 -1
- package/src/components/Menu/MenuItem.tsx +27 -1
- package/src/components/Menu/menu.scss +1 -0
- package/src/components/MultiSelect/MultiSelect.tsx +1 -0
- package/src/components/OverviewItem/OverviewItem.tsx +24 -1
- package/src/components/OverviewItem/OverviewItemList.tsx +3 -2
- package/src/components/OverviewItem/overviewitem.scss +4 -1
- package/src/components/OverviewItem/stories/OverviewItem.stories.tsx +6 -12
- package/src/components/Select/Select.stories.tsx +4 -1
- package/src/components/Switch/Switch.tsx +27 -8
- package/src/components/Tag/TagList.tsx +2 -2
- package/src/components/TextField/SearchField.tsx +37 -9
- package/src/components/TextField/stories/SearchField.stories.tsx +15 -1
- package/src/components/TextField/stories/TextField.stories.tsx +2 -1
- package/src/components/TextField/textfield.scss +17 -3
- package/src/components/Typography/OverflowText.tsx +24 -3
- package/src/components/Typography/stories/OverflowText.stories.tsx +33 -0
- package/src/components/index.scss +1 -0
- package/src/components/index.ts +1 -0
- package/src/extensions/codemirror/CodeMirror.stories.tsx +19 -1
- package/src/extensions/codemirror/CodeMirror.tsx +154 -16
- package/src/extensions/codemirror/_codemirror.scss +130 -1
- package/src/extensions/codemirror/debouncedLinter.ts +26 -0
- package/src/extensions/codemirror/hooks/useCodemirrorModeExtension.hooks.ts +21 -12
- package/src/extensions/codemirror/linters/jsLinter.ts +38 -0
- package/src/extensions/codemirror/linters/turtleLinter.ts +102 -0
- package/src/extensions/codemirror/tests/codemirrorTestHelper.ts +4 -0
- package/src/extensions/codemirror/toolbars/commands/markdown.command.ts +340 -0
- package/src/extensions/codemirror/toolbars/markdown.toolbar.tsx +117 -0
- package/src/extensions/codemirror/types.ts +7 -0
- package/src/extensions/react-flow/_config.scss +1 -0
- package/src/extensions/react-flow/nodes/NodeContent.tsx +170 -52
- package/src/extensions/react-flow/nodes/_nodes.scss +71 -35
- package/src/extensions/react-flow/nodes/nodeUtils.tsx +16 -14
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +51 -12
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eccenca/gui-elements",
|
|
3
3
|
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
|
|
4
|
-
"version": "24.0.0",
|
|
4
|
+
"version": "24.1.0-featureimprovepublishingprocesscmem6356.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/eccenca/gui-elements",
|
|
7
7
|
"bugs": "https://github.com/eccenca/gui-elements/issues",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"registry": "https://registry.npmjs.org"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": ">=18"
|
|
31
|
+
"node": ">=18.18.0"
|
|
32
32
|
},
|
|
33
33
|
"style": "src/index.scss",
|
|
34
34
|
"main": "dist/cjs/index.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"scripts"
|
|
48
48
|
],
|
|
49
49
|
"scripts": {
|
|
50
|
+
"project:clean": "yarn test:clean && yarn build:clean && yarn storybook:clean && rimraf yarn-error.log",
|
|
50
51
|
"build:clean": "rimraf dist/",
|
|
51
52
|
"build:esm": "tsc --project .typescript/tsbuild-esm.json && ./scripts/fix-esm-dist",
|
|
52
53
|
"build:cjs": "tsc --project .typescript/tsbuild-cjs.json && ./scripts/fix-cjs-dist",
|
|
@@ -55,31 +56,39 @@
|
|
|
55
56
|
"compile-scss": "ts-node -O \"{ \\\"esModuleInterop\\\": true, \\\"module\\\": \\\"commonjs\\\"}\" ./scripts/compile-sass.ts",
|
|
56
57
|
"storybook": "storybook dev -p 6006 --no-open",
|
|
57
58
|
"build-storybook": "storybook build --webpack-stats-json",
|
|
59
|
+
"storybook:clean": "rimraf storybook-static/",
|
|
58
60
|
"test": "jest",
|
|
59
61
|
"test:ci": "jest --ci --reporters='default'",
|
|
60
62
|
"test:coverage": "jest --collectCoverage",
|
|
61
63
|
"test:generate-output": "jest --json --outputFile=.jest-test-results.json",
|
|
64
|
+
"test:clean": "rimraf .jest-test-results.json && rimraf coverage/",
|
|
62
65
|
"autolint:scripts": "eslint --fix .storybook/ blueprint/ scripts/ src/ index.ts || exit 0",
|
|
63
66
|
"autolint:styles": "stylelint \"{.storybook,src}/**/*.{css,scss}\" --fix || exit 0",
|
|
64
67
|
"autolint:prettier": "prettier \"{.github,.storybook,.typescript,blueprint,scripts,src}/**/*\" .* *.json *.md *.ts --write --ignore-unknown",
|
|
65
68
|
"autolint:all": "yarn autolint:scripts && yarn autolint:styles && yarn autolint:prettier"
|
|
66
69
|
},
|
|
67
70
|
"dependencies": {
|
|
68
|
-
"@blueprintjs/colors": "^5.1.
|
|
69
|
-
"@blueprintjs/core": "^5.
|
|
70
|
-
"@blueprintjs/select": "^5.
|
|
71
|
-
"@carbon/icons": "^11.
|
|
72
|
-
"@carbon/react": "^1.
|
|
71
|
+
"@blueprintjs/colors": "^5.1.8",
|
|
72
|
+
"@blueprintjs/core": "^5.18.0",
|
|
73
|
+
"@blueprintjs/select": "^5.3.19",
|
|
74
|
+
"@carbon/icons": "^11.58.0",
|
|
75
|
+
"@carbon/react": "^1.80.1",
|
|
76
|
+
"@codemirror/lang-javascript": "^6.2.3",
|
|
73
77
|
"@codemirror/lang-json": "^6.0.1",
|
|
74
|
-
"@codemirror/lang-markdown": "^6.3.
|
|
78
|
+
"@codemirror/lang-markdown": "^6.3.2",
|
|
79
|
+
"@codemirror/lang-sql": "^6.8.0",
|
|
75
80
|
"@codemirror/lang-xml": "^6.1.0",
|
|
76
|
-
"@codemirror/
|
|
81
|
+
"@codemirror/lang-yaml": "^6.1.2",
|
|
82
|
+
"@codemirror/legacy-modes": "^6.5.0",
|
|
77
83
|
"@mavrin/remark-typograf": "^2.2.0",
|
|
84
|
+
"classnames": "^2.5.1",
|
|
78
85
|
"codemirror": "^6.0.1",
|
|
79
86
|
"color": "^4.2.3",
|
|
80
|
-
"compute-scroll-into-view": "^3.1.
|
|
87
|
+
"compute-scroll-into-view": "^3.1.1",
|
|
88
|
+
"jshint": "^2.13.6",
|
|
81
89
|
"lodash": "^4.17.21",
|
|
82
|
-
"
|
|
90
|
+
"n3": "^1.25.1",
|
|
91
|
+
"re-resizable": "^6.10.3",
|
|
83
92
|
"react": "^16.13.1",
|
|
84
93
|
"react-dom": "^16.13.1",
|
|
85
94
|
"react-flow-renderer": "9.7.4",
|
|
@@ -94,48 +103,53 @@
|
|
|
94
103
|
"reset-css": "^5.0.2",
|
|
95
104
|
"unified": "^11.0.5",
|
|
96
105
|
"wicg-inert": "^3.1.3",
|
|
97
|
-
"xml-formatter": "^3.6.
|
|
106
|
+
"xml-formatter": "^3.6.5"
|
|
98
107
|
},
|
|
99
108
|
"devDependencies": {
|
|
100
|
-
"@babel/core": "^7.26.
|
|
101
|
-
"@babel/plugin-
|
|
102
|
-
"@babel/plugin-
|
|
103
|
-
"@babel/plugin-
|
|
104
|
-
"@babel/preset-env": "^7.26.
|
|
109
|
+
"@babel/core": "^7.26.10",
|
|
110
|
+
"@babel/plugin-transform-class-properties": "^7.25.9",
|
|
111
|
+
"@babel/plugin-transform-private-methods": "^7.25.9",
|
|
112
|
+
"@babel/plugin-transform-private-property-in-object": "^7.25.9",
|
|
113
|
+
"@babel/preset-env": "^7.26.9",
|
|
105
114
|
"@babel/preset-flow": "^7.25.9",
|
|
106
|
-
"@babel/preset-react": "^7.
|
|
107
|
-
"@babel/preset-typescript": "^7.
|
|
108
|
-
"@
|
|
109
|
-
"@
|
|
110
|
-
"@
|
|
111
|
-
"@storybook/addon-
|
|
112
|
-
"@storybook/addon-
|
|
113
|
-
"@storybook/
|
|
115
|
+
"@babel/preset-react": "^7.26.3",
|
|
116
|
+
"@babel/preset-typescript": "^7.27.0",
|
|
117
|
+
"@eslint/compat": "^1.2.8",
|
|
118
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
119
|
+
"@eslint/js": "^9.24.0",
|
|
120
|
+
"@storybook/addon-actions": "^8.6.12",
|
|
121
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
122
|
+
"@storybook/addon-jest": "^8.6.12",
|
|
123
|
+
"@storybook/addon-links": "^8.6.12",
|
|
124
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
125
|
+
"@storybook/cli": "^8.6.12",
|
|
114
126
|
"@storybook/preset-scss": "^1.0.3",
|
|
115
|
-
"@storybook/react": "^8.
|
|
116
|
-
"@storybook/react-webpack5": "^8.
|
|
117
|
-
"@storybook/test": "^8.
|
|
127
|
+
"@storybook/react": "^8.6.12",
|
|
128
|
+
"@storybook/react-webpack5": "^8.6.12",
|
|
129
|
+
"@storybook/test": "^8.6.12",
|
|
118
130
|
"@testing-library/jest-dom": "^6.6.3",
|
|
119
|
-
"@testing-library/react": "^12.1.
|
|
131
|
+
"@testing-library/react": "^12.1.5",
|
|
120
132
|
"@types/codemirror": "^5.60.15",
|
|
121
133
|
"@types/color": "^3.0.6",
|
|
122
|
-
"@types/jest": "^29.5.
|
|
123
|
-
"@types/
|
|
134
|
+
"@types/jest": "^29.5.14",
|
|
135
|
+
"@types/jshint": "^2.12.4",
|
|
136
|
+
"@types/lodash": "^4.17.16",
|
|
137
|
+
"@types/n3": "^1.24.2",
|
|
124
138
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
125
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
126
|
-
"@typescript-eslint/parser": "^
|
|
139
|
+
"@typescript-eslint/eslint-plugin": "^8.30.1",
|
|
140
|
+
"@typescript-eslint/parser": "^8.30.1",
|
|
127
141
|
"babel-jest": "^29.7.0",
|
|
128
|
-
"chromatic": "^11.
|
|
129
|
-
"eslint": "^
|
|
130
|
-
"eslint-plugin-react": "^7.
|
|
131
|
-
"eslint-plugin-react-hooks": "^
|
|
142
|
+
"chromatic": "^11.28.0",
|
|
143
|
+
"eslint": "^9.24.0",
|
|
144
|
+
"eslint-plugin-react": "^7.37.5",
|
|
145
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
132
146
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
133
147
|
"husky": "4",
|
|
134
148
|
"identity-obj-proxy": "^3.0.0",
|
|
135
149
|
"jest": "^29.7.0",
|
|
136
150
|
"jest-environment-jsdom": "^29.7.0",
|
|
137
151
|
"jest-pnp-resolver": "^1.2.3",
|
|
138
|
-
"lint-staged": "^15.
|
|
152
|
+
"lint-staged": "^15.5.1",
|
|
139
153
|
"node-sass-package-importer": "^5.3.3",
|
|
140
154
|
"path": "^0.12.7",
|
|
141
155
|
"prettier": "^2.8.8",
|
|
@@ -145,12 +159,12 @@
|
|
|
145
159
|
"rimraf": "^5.0.10",
|
|
146
160
|
"sass": "1.62.1",
|
|
147
161
|
"sass-loader": "10.3.1",
|
|
148
|
-
"storybook": "^8.
|
|
149
|
-
"stylelint": "^
|
|
150
|
-
"stylelint-config-recess-order": "^
|
|
151
|
-
"stylelint-config-standard-scss": "^
|
|
162
|
+
"storybook": "^8.6.12",
|
|
163
|
+
"stylelint": "^16.18.0",
|
|
164
|
+
"stylelint-config-recess-order": "^6.0.0",
|
|
165
|
+
"stylelint-config-standard-scss": "^14.0.0",
|
|
152
166
|
"ts-node": "^10.9.2",
|
|
153
|
-
"tsc-esm-fix": "^3.
|
|
167
|
+
"tsc-esm-fix": "^3.1.2",
|
|
154
168
|
"typescript": "5.5.3",
|
|
155
169
|
"url-loader": "^4.1.1",
|
|
156
170
|
"yargs": "^17.7.2"
|
|
@@ -161,10 +175,8 @@
|
|
|
161
175
|
"react-dom": ">=16"
|
|
162
176
|
},
|
|
163
177
|
"resolutions": {
|
|
164
|
-
"**/@types/react": "^17.0.
|
|
165
|
-
"node-sass-package-importer/**/postcss": "^8.4.
|
|
166
|
-
"**/cross-spawn": "^7.0.5 ",
|
|
167
|
-
"**/micromatch": "^4.0.8"
|
|
178
|
+
"**/@types/react": "^17.0.85",
|
|
179
|
+
"node-sass-package-importer/**/postcss": "^8.4.49"
|
|
168
180
|
},
|
|
169
181
|
"husky": {
|
|
170
182
|
"hooks": {
|
|
@@ -92,7 +92,7 @@ interface IActivityContextMenu extends TestableComponent {
|
|
|
92
92
|
|
|
93
93
|
export interface ActivityControlWidgetAction extends TestableComponent {
|
|
94
94
|
// The action that should be triggered
|
|
95
|
-
action: () =>
|
|
95
|
+
action: () => void;
|
|
96
96
|
// The tooltip that should be shown over the action icon
|
|
97
97
|
tooltip?: string;
|
|
98
98
|
// The icon of the action button
|
|
@@ -147,6 +147,7 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
147
147
|
{props.label && (
|
|
148
148
|
<OverviewItemLine small={small}>
|
|
149
149
|
{React.cloneElement(labelWrapper, {}, props.label)}
|
|
150
|
+
{timerExecutionMsg && (props.statusMessage || tags) && <> ({timerExecutionMsg})</>}
|
|
150
151
|
</OverviewItemLine>
|
|
151
152
|
)}
|
|
152
153
|
{(props.statusMessage || tags) && (
|
|
@@ -170,7 +171,9 @@ export function ActivityControlWidget(props: ActivityControlWidgetProps) {
|
|
|
170
171
|
)}
|
|
171
172
|
</OverviewItemLine>
|
|
172
173
|
)}
|
|
173
|
-
{timerExecutionMsg &&
|
|
174
|
+
{timerExecutionMsg && !(props.statusMessage || tags) && (
|
|
175
|
+
<OverviewItemLine small>{timerExecutionMsg}</OverviewItemLine>
|
|
176
|
+
)}
|
|
174
177
|
</OverviewItemDescription>
|
|
175
178
|
<OverviewItemActions>
|
|
176
179
|
{activityActions &&
|
|
@@ -4,7 +4,16 @@ import getColorConfiguration from "../../../common/utils/getColorConfiguration";
|
|
|
4
4
|
import { CodeEditor } from "../../../extensions";
|
|
5
5
|
import { ReactFlowHotkeyContext } from "../extensions/ReactFlowHotkeyContext";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Button,
|
|
9
|
+
CodeEditorProps,
|
|
10
|
+
FieldItem,
|
|
11
|
+
Icon,
|
|
12
|
+
SimpleDialog,
|
|
13
|
+
SimpleDialogProps,
|
|
14
|
+
Tag,
|
|
15
|
+
TagList,
|
|
16
|
+
} from "./../../../index";
|
|
8
17
|
|
|
9
18
|
export type StickyNoteModalTranslationKeys = "modalTitle" | "noteLabel" | "colorLabel" | "saveButton" | "cancelButton";
|
|
10
19
|
|
|
@@ -32,10 +41,14 @@ export interface StickyNoteModalProps {
|
|
|
32
41
|
* Forward other properties to the `SimpleModal` element that is used for this dialog.
|
|
33
42
|
*/
|
|
34
43
|
simpleDialogProps?: Omit<SimpleDialogProps, "size" | "title" | "hasBorder" | "isOpen" | "onClose" | "actions">;
|
|
44
|
+
/**
|
|
45
|
+
* Code editor props
|
|
46
|
+
*/
|
|
47
|
+
codeEditorProps?: Omit<CodeEditorProps, "defaultValue" | "onChange" | "preventLinuNumbers" | "id" | "name">;
|
|
35
48
|
}
|
|
36
49
|
|
|
37
50
|
export const StickyNoteModal: React.FC<StickyNoteModalProps> = React.memo(
|
|
38
|
-
({ metaData, onClose, onSubmit, translate, simpleDialogProps }) => {
|
|
51
|
+
({ metaData, onClose, onSubmit, translate, simpleDialogProps, codeEditorProps }) => {
|
|
39
52
|
const refNote = React.useRef<string>(metaData?.note ?? "");
|
|
40
53
|
const [color, setSelectedColor] = React.useState<string>(metaData?.color ?? "");
|
|
41
54
|
const noteColors: [string, string][] = Object.entries(getColorConfiguration("stickynotes")).map(
|
|
@@ -123,6 +136,7 @@ export const StickyNoteModal: React.FC<StickyNoteModalProps> = React.memo(
|
|
|
123
136
|
refNote.current = value;
|
|
124
137
|
}}
|
|
125
138
|
defaultValue={refNote.current}
|
|
139
|
+
{...codeEditorProps}
|
|
126
140
|
/>
|
|
127
141
|
</FieldItem>
|
|
128
142
|
<FieldItem
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$reactflow-color-graph-node: #745a85 !default;
|
|
2
2
|
$reactflow-color-class-node: #3a7896 !default;
|
|
3
3
|
$reactflow-color-instance-node: #0097a7 !default;
|
|
4
|
-
$reactflow-color-property-node: #
|
|
4
|
+
$reactflow-color-property-node: #40a691 !default;
|
|
5
5
|
$reactflow-color-implicit-edge: #ae3c74 !default;
|
|
6
6
|
$reactflow-color-import-edge: $reactflow-color-graph-node !default;
|
|
7
7
|
$reactflow-color-subclass-edge: $reactflow-color-class-node !default;
|
|
@@ -13,6 +13,8 @@ $reactflow-color-rdftype-edge: $reactflow-color-instance-node !default;
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.#{eccgui}-configuration--colors__react-flow-graph {
|
|
16
|
+
/* stylelint-disable custom-property-pattern */
|
|
17
|
+
// TODO: we should correct custom property names later but atm this would lead to broken consumer apps
|
|
16
18
|
--graphNode: #{$reactflow-color-graph-node};
|
|
17
19
|
--classNode: #{$reactflow-color-class-node};
|
|
18
20
|
--instanceNode: #{$reactflow-color-instance-node};
|
|
@@ -31,4 +33,5 @@ $reactflow-color-rdftype-edge: $reactflow-color-instance-node !default;
|
|
|
31
33
|
--subclassEdgeBright: #{bright($reactflow-color-subclass-edge)};
|
|
32
34
|
--subpropertyEdgeBright: #{bright($reactflow-color-subproperty-edge)};
|
|
33
35
|
--rdftypeEdgeBright: #{bright($reactflow-color-rdftype-edge)};
|
|
36
|
+
/* stylelint-enable custom-property-pattern */
|
|
34
37
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
$reactflow-color-project-node: #A5356E !default; // Cannot be part of a workflow but we have no other place atm to configure it
|
|
1
2
|
$reactflow-color-dataset-node: #3a7896 !default;
|
|
2
3
|
$reactflow-color-linking-node: #0097a7 !default;
|
|
3
4
|
$reactflow-color-transform-node: #40a691 !default;
|
|
@@ -10,12 +11,14 @@ $reactflow-color-replaceable-input: #faa854 !default;
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.#{eccgui}-configuration--colors__react-flow-workflow {
|
|
14
|
+
--projectNode: #{$reactflow-color-project-node};
|
|
13
15
|
--datasetNode: #{$reactflow-color-dataset-node};
|
|
14
16
|
--linkingNode: #{$reactflow-color-linking-node};
|
|
15
17
|
--transformNode: #{$reactflow-color-transform-node};
|
|
16
18
|
--taskNode: #{$reactflow-color-task-node};
|
|
17
19
|
--workflowNode: #{$reactflow-color-workflow-node};
|
|
18
20
|
--replaceableInput: #{$reactflow-color-replaceable-input};
|
|
21
|
+
--projectNodeBright: #{bright($reactflow-color-project-node)};
|
|
19
22
|
--datasetNodeBright: #{bright($reactflow-color-dataset-node)};
|
|
20
23
|
--linkingNodeBright: #{bright($reactflow-color-linking-node)};
|
|
21
24
|
--transformNodeBright: #{bright($reactflow-color-transform-node)};
|
|
@@ -219,6 +219,8 @@ const AutoSuggestion = ({
|
|
|
219
219
|
CodeAutocompleteFieldSuggestionWithReplacementInfo | undefined
|
|
220
220
|
>(undefined);
|
|
221
221
|
const [cm, setCM] = React.useState<EditorView>();
|
|
222
|
+
const currentCm = React.useRef<EditorView>()
|
|
223
|
+
currentCm.current = cm
|
|
222
224
|
const isFocused = React.useRef(false);
|
|
223
225
|
const autoSuggestionDivRef = React.useRef<HTMLDivElement>(null);
|
|
224
226
|
/** Mutable editor state, since this needs to be current in scope of the SingleLineEditorComponent. */
|
|
@@ -235,12 +237,21 @@ const AutoSuggestion = ({
|
|
|
235
237
|
const pathIsValid = validationResponse?.valid ?? true;
|
|
236
238
|
|
|
237
239
|
React.useEffect(() => {
|
|
238
|
-
if (reInitOnInitialValueChange && initialValue != null &&
|
|
240
|
+
if (reInitOnInitialValueChange && initialValue != null && currentCm.current) {
|
|
239
241
|
dispatch({
|
|
240
|
-
changes: { from: 0, to:
|
|
242
|
+
changes: { from: 0, to: currentCm.current.state?.doc.length, insert: initialValue },
|
|
241
243
|
});
|
|
244
|
+
// Validate initial value change
|
|
245
|
+
checkValuePathValidity(initialValue)
|
|
242
246
|
}
|
|
243
|
-
}, [initialValue,
|
|
247
|
+
}, [initialValue, reInitOnInitialValueChange]);
|
|
248
|
+
|
|
249
|
+
React.useEffect(() => {
|
|
250
|
+
if(currentCm.current) {
|
|
251
|
+
// Validate initial value
|
|
252
|
+
checkValuePathValidity(initialValue)
|
|
253
|
+
}
|
|
254
|
+
}, [currentCm.current!!])
|
|
244
255
|
|
|
245
256
|
const setCurrentIndex = (newIndex: number) => {
|
|
246
257
|
editorState.index = newIndex;
|
|
@@ -4,7 +4,7 @@ import { EditorState } from "@codemirror/state";
|
|
|
4
4
|
import { EditorView, lineNumbers, Rect } from "@codemirror/view";
|
|
5
5
|
|
|
6
6
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
7
|
-
import { CodeEditor } from "../../extensions/codemirror/CodeMirror";
|
|
7
|
+
import { CodeEditor, CodeEditorProps } from "../../extensions/codemirror/CodeMirror";
|
|
8
8
|
//hooks
|
|
9
9
|
import { SupportedCodeEditorModes } from "../../extensions/codemirror/hooks/useCodemirrorModeExtension.hooks";
|
|
10
10
|
|
|
@@ -15,23 +15,23 @@ export interface IRange {
|
|
|
15
15
|
|
|
16
16
|
export interface ExtendedCodeEditorProps {
|
|
17
17
|
// Is called with the editor instance that allows access via the CodeMirror API
|
|
18
|
-
setCM: (editor: EditorView | undefined) =>
|
|
18
|
+
setCM: (editor: EditorView | undefined) => void;
|
|
19
19
|
// Called whenever the editor content changes
|
|
20
|
-
onChange: (value: string) =>
|
|
20
|
+
onChange: (value: string) => void;
|
|
21
21
|
// Called when the cursor position changes
|
|
22
|
-
onCursorChange: (pos: number, coords: Rect, scrollinfo: HTMLElement, cm: EditorView) =>
|
|
22
|
+
onCursorChange: (pos: number, coords: Rect, scrollinfo: HTMLElement, cm: EditorView) => void;
|
|
23
23
|
// The editor theme, e.g. "sparql"
|
|
24
24
|
mode?: SupportedCodeEditorModes;
|
|
25
25
|
// The initial value of the editor
|
|
26
26
|
initialValue: string;
|
|
27
27
|
// Called when the focus status changes
|
|
28
|
-
onFocusChange: (focused: boolean) =>
|
|
28
|
+
onFocusChange: (focused: boolean) => void;
|
|
29
29
|
// Called when the user presses a key
|
|
30
30
|
onKeyDown: (event: KeyboardEvent) => boolean;
|
|
31
31
|
// function invoked when any click occurs
|
|
32
32
|
onMouseDown?: (view: EditorView) => void;
|
|
33
33
|
// Called when the user selects text
|
|
34
|
-
onSelection: (ranges: IRange[]) =>
|
|
34
|
+
onSelection: (ranges: IRange[]) => void;
|
|
35
35
|
// If the <Tab> key is enabled as normal input, i.e. it won't have the behavior of changing to the next input element, expected in a web app.
|
|
36
36
|
enableTab?: boolean;
|
|
37
37
|
/** Placeholder to be shown when no text has been entered, yet. */
|
|
@@ -40,6 +40,27 @@ export interface ExtendedCodeEditorProps {
|
|
|
40
40
|
showScrollBar?: boolean;
|
|
41
41
|
/** allow multiline entries when new line characters are entered */
|
|
42
42
|
multiline?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Code editor props
|
|
45
|
+
*/
|
|
46
|
+
codeEditorProps?: Omit<
|
|
47
|
+
CodeEditorProps,
|
|
48
|
+
| "defaultValue"
|
|
49
|
+
| "setEditorView"
|
|
50
|
+
| "onChange"
|
|
51
|
+
| "onCursorChange"
|
|
52
|
+
| "onFocusChange"
|
|
53
|
+
| "onKeyDown"
|
|
54
|
+
| "onSelection"
|
|
55
|
+
| "onMouseDown"
|
|
56
|
+
| "shouldHaveMinimalSetup"
|
|
57
|
+
| "preventLineNumbers"
|
|
58
|
+
| "mode"
|
|
59
|
+
| "name"
|
|
60
|
+
| "enableTab"
|
|
61
|
+
| "additionalExtensions"
|
|
62
|
+
| "outerDivAttributes"
|
|
63
|
+
>;
|
|
43
64
|
}
|
|
44
65
|
|
|
45
66
|
export type IEditorProps = ExtendedCodeEditorProps;
|
|
@@ -58,6 +79,7 @@ export const ExtendedCodeEditor = ({
|
|
|
58
79
|
placeholder,
|
|
59
80
|
onCursorChange,
|
|
60
81
|
onSelection,
|
|
82
|
+
codeEditorProps,
|
|
61
83
|
}: ExtendedCodeEditorProps) => {
|
|
62
84
|
const initialContent = React.useRef(multiline ? initialValue : initialValue.replace(/[\r\n]/g, " "));
|
|
63
85
|
const multilineExtensions = multiline
|
|
@@ -88,6 +110,7 @@ export const ExtendedCodeEditor = ({
|
|
|
88
110
|
multiline ? "codeeditor" : `singlelinecodeeditor ${BlueprintClassNames.INPUT}`
|
|
89
111
|
}`,
|
|
90
112
|
}}
|
|
113
|
+
{...codeEditorProps}
|
|
91
114
|
/>
|
|
92
115
|
);
|
|
93
116
|
};
|
|
@@ -301,13 +301,15 @@ function AutoCompleteField<T, UPDATE_VALUE>(props: AutoCompleteFieldProps<T, UPD
|
|
|
301
301
|
let enableHighlighting = true;
|
|
302
302
|
if (onlySelectItemReturned) {
|
|
303
303
|
// If the auto-completion only returns no suggestion or the selected item itself, query with empty string.
|
|
304
|
-
const emptyStringResults = await onSearch("");
|
|
304
|
+
const emptyStringResults: T[] = await onSearch("");
|
|
305
305
|
// Disable highlighting, since we used empty string search
|
|
306
306
|
enableHighlighting = false;
|
|
307
307
|
// Put selected item at the top if it is not in the result list
|
|
308
308
|
if (!!selectedItem && itemIndexOf(emptyStringResults, selectedItem) > -1) {
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
// Do not mutate original array
|
|
310
|
+
const withoutSelected = [...emptyStringResults]
|
|
311
|
+
withoutSelected.splice(itemIndexOf(emptyStringResults, selectedItem), 1);
|
|
312
|
+
result = [selectedItem, ...withoutSelected];
|
|
311
313
|
} else {
|
|
312
314
|
result = emptyStringResults;
|
|
313
315
|
}
|
|
@@ -8,6 +8,10 @@ export interface CardActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
* Mainly used for cards used as modals (dialogs).
|
|
9
9
|
*/
|
|
10
10
|
inverseDirection?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Set footer to display its children on only one line.
|
|
13
|
+
*/
|
|
14
|
+
noWrap?: boolean;
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
/**
|
|
@@ -18,6 +22,7 @@ export const CardActions = ({
|
|
|
18
22
|
children,
|
|
19
23
|
className = "",
|
|
20
24
|
inverseDirection = false,
|
|
25
|
+
noWrap = false,
|
|
21
26
|
...otherProps
|
|
22
27
|
}: CardActionsProps) => {
|
|
23
28
|
return (
|
|
@@ -26,6 +31,7 @@ export const CardActions = ({
|
|
|
26
31
|
className={
|
|
27
32
|
`${eccgui}-card__actions` +
|
|
28
33
|
(inverseDirection ? ` ${eccgui}-card__actions--inversedirection` : "") +
|
|
34
|
+
(noWrap ? ` ${eccgui}-card__actions--nowrap` : "") +
|
|
29
35
|
(className ? " " + className : "")
|
|
30
36
|
}
|
|
31
37
|
>
|
|
@@ -15,10 +15,16 @@ export interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
* Holds the card content.
|
|
16
16
|
* Display scrollbars in case there is not enough space for it.
|
|
17
17
|
*/
|
|
18
|
-
export const CardContent =
|
|
18
|
+
export const CardContent = React.forwardRef<HTMLDivElement, CardContentProps>(({
|
|
19
|
+
children,
|
|
20
|
+
className='',
|
|
21
|
+
noFlexHeight,
|
|
22
|
+
...otherProps
|
|
23
|
+
}: CardContentProps, ref) => {
|
|
19
24
|
return (
|
|
20
25
|
<div
|
|
21
26
|
{...otherProps}
|
|
27
|
+
ref={ref}
|
|
22
28
|
className={
|
|
23
29
|
`${eccgui}-card__content` +
|
|
24
30
|
(noFlexHeight ? ` ${eccgui}-card__content--noflexheight` : "") +
|
|
@@ -28,6 +34,4 @@ export const CardContent = ({ children, className = "", noFlexHeight, ...otherPr
|
|
|
28
34
|
{children}
|
|
29
35
|
</div>
|
|
30
36
|
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default CardContent;
|
|
37
|
+
});
|
|
@@ -236,6 +236,10 @@ $eccgui-size-card-spacing: $eccgui-size-typo-base !default;
|
|
|
236
236
|
flex-direction: row-reverse;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
.#{$eccgui}-card__actions--nowrap {
|
|
240
|
+
flex-wrap: nowrap;
|
|
241
|
+
}
|
|
242
|
+
|
|
239
243
|
.#{$eccgui}-card__actions__aux {
|
|
240
244
|
display: flex;
|
|
241
245
|
flex-flow: row wrap;
|
|
@@ -272,4 +276,15 @@ $eccgui-size-card-spacing: $eccgui-size-typo-base !default;
|
|
|
272
276
|
.#{$eccgui}-card__actions--inversedirection > & {
|
|
273
277
|
justify-content: flex-start;
|
|
274
278
|
}
|
|
279
|
+
|
|
280
|
+
.#{$eccgui}-card__actions--nowrap > & {
|
|
281
|
+
flex-shrink: 5;
|
|
282
|
+
flex-wrap: nowrap;
|
|
283
|
+
min-width: 0;
|
|
284
|
+
|
|
285
|
+
& > * {
|
|
286
|
+
flex-shrink: 10;
|
|
287
|
+
min-width: 0;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
275
290
|
}
|
|
@@ -15,9 +15,10 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
} as Meta<typeof CodeAutocompleteField>;
|
|
17
17
|
|
|
18
|
+
let forcedUpdateKey = 0; // @see https://github.com/storybookjs/storybook/issues/13375#issuecomment-1291011856
|
|
18
19
|
const Template: StoryFn<typeof CodeAutocompleteField> = (args) => (
|
|
19
20
|
<OverlaysProvider>
|
|
20
|
-
<CodeAutocompleteField {...args} />
|
|
21
|
+
<CodeAutocompleteField {...args} key={++forcedUpdateKey} />
|
|
21
22
|
</OverlaysProvider>
|
|
22
23
|
);
|
|
23
24
|
|
|
@@ -63,7 +64,7 @@ const defaultProps: CodeAutocompleteFieldProps = {
|
|
|
63
64
|
},
|
|
64
65
|
placeholder:
|
|
65
66
|
"The word before the cursor will be auto-completed. At the beginning or after a space, all results are shown.",
|
|
66
|
-
onChange():
|
|
67
|
+
onChange(): void {
|
|
67
68
|
// Do nothing
|
|
68
69
|
},
|
|
69
70
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LoremIpsum } from "react-lorem-ipsum";
|
|
3
|
+
import { Meta, StoryFn } from "@storybook/react";
|
|
4
|
+
|
|
5
|
+
import { Badge, ContentGroup, HtmlContentBlock, IconButton, Tag } from "../../../index";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: "Components/ContentGroup",
|
|
9
|
+
component: ContentGroup,
|
|
10
|
+
argTypes: {
|
|
11
|
+
handlerToggleCollapse: {
|
|
12
|
+
action: "toggle collapse",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
} as Meta<typeof ContentGroup>;
|
|
16
|
+
|
|
17
|
+
const TemplateFull: StoryFn<typeof ContentGroup> = (args) => <ContentGroup {...args} />;
|
|
18
|
+
|
|
19
|
+
export const BasicExample = TemplateFull.bind({});
|
|
20
|
+
BasicExample.args = {
|
|
21
|
+
title: "Content group title",
|
|
22
|
+
contextInfo: <Badge children={100} maxLength={3} intent={"warning"} title="Found warnings context." />,
|
|
23
|
+
annotation: (
|
|
24
|
+
<Tag backgroundColor={"purple"} round>
|
|
25
|
+
Context tag
|
|
26
|
+
</Tag>
|
|
27
|
+
),
|
|
28
|
+
actionOptions: (
|
|
29
|
+
<>
|
|
30
|
+
<IconButton name="item-remove" text="Example remove tooltip" disruptive />
|
|
31
|
+
</>
|
|
32
|
+
),
|
|
33
|
+
isCollapsed: false,
|
|
34
|
+
handlerToggleCollapse: () => {},
|
|
35
|
+
borderMainConnection: true,
|
|
36
|
+
borderSubConnection: ["red", "blue"],
|
|
37
|
+
level: 1,
|
|
38
|
+
minimumHeadlineLevel: 5,
|
|
39
|
+
whitespaceSize: "small",
|
|
40
|
+
description: "More context description by tooltip.",
|
|
41
|
+
hideGroupDivider: false,
|
|
42
|
+
children: (
|
|
43
|
+
<HtmlContentBlock>
|
|
44
|
+
<LoremIpsum p={3} avgSentencesPerParagraph={4} random={false} />
|
|
45
|
+
</HtmlContentBlock>
|
|
46
|
+
),
|
|
47
|
+
};
|