@eccenca/gui-elements 22.1.0 → 23.0.0-rc.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 +20 -0
- package/dist/cjs/cmem/react-flow/configuration/graph.js +1 -6
- package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/linking.js +1 -6
- package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/cjs/cmem/react-flow/configuration/workflow.js +1 -6
- package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/cjs/extensions/codemirror/CodeMirror.js +59 -0
- package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -0
- package/dist/cjs/extensions/index.js +15 -0
- package/dist/cjs/extensions/index.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/graph.js +1 -2
- package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/linking.js +1 -2
- package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
- package/dist/esm/cmem/react-flow/configuration/workflow.js +1 -2
- package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
- package/dist/esm/extensions/codemirror/CodeMirror.js +34 -0
- package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -0
- package/dist/esm/extensions/index.js +3 -0
- package/dist/esm/extensions/index.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/cmem/react-flow/configuration/graph.d.ts +1 -2
- package/dist/types/cmem/react-flow/configuration/linking.d.ts +1 -2
- package/dist/types/cmem/react-flow/configuration/workflow.d.ts +1 -2
- package/dist/types/extensions/codemirror/CodeMirror.d.ts +35 -0
- package/dist/types/extensions/index.d.ts +2 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/cmem/react-flow/configuration/_colors-graph.scss +35 -0
- package/src/cmem/react-flow/configuration/_colors-linking.scss +29 -0
- package/src/cmem/react-flow/configuration/_colors-workflow.scss +22 -0
- package/src/cmem/react-flow/configuration/_colors.scss +3 -3
- package/src/cmem/react-flow/configuration/graph.ts +0 -2
- package/src/cmem/react-flow/configuration/linking.ts +0 -2
- package/src/cmem/react-flow/configuration/workflow.ts +0 -2
- package/src/common/utils/CssCustomProperties.ts +123 -0
- package/src/common/utils/getColorConfiguration.ts +21 -0
- package/src/components/Accordion/accordion.scss +7 -0
- package/src/extensions/_index.scss +5 -0
- package/src/extensions/codemirror/CodeMirror.stories.tsx +26 -0
- package/src/extensions/codemirror/CodeMirror.tsx +82 -0
- package/src/extensions/codemirror/_codemirror.scss +31 -0
- package/src/extensions/index.ts +2 -0
- package/src/index.scss +1 -4
- package/src/index.ts +1 -1
- package/dist/cjs/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
- package/dist/cjs/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
- package/dist/cjs/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
- package/dist/esm/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
- package/dist/esm/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
- package/dist/esm/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
- package/src/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
- package/src/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
- package/src/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
|
|
6
|
+
interface getLocalCssStyleRulesProps {
|
|
7
|
+
cssRuleType?: "CSSStyleRule";
|
|
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
|
+
|
|
18
|
+
export default class CssCustomProperties {
|
|
19
|
+
|
|
20
|
+
getterDefaultProps = {} as getCustomPropertiesProps;
|
|
21
|
+
customprops = {};
|
|
22
|
+
|
|
23
|
+
constructor(props: getCustomPropertiesProps = {}) {
|
|
24
|
+
this.getterDefaultProps = props;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Methods
|
|
28
|
+
|
|
29
|
+
customProperties = (props: getCustomPropertiesProps = {}) => {
|
|
30
|
+
// FIXME:
|
|
31
|
+
// in case of performance issues results should get saved at least into intern variables
|
|
32
|
+
// other cache strategies could be also tested
|
|
33
|
+
if (Object.keys(this.customprops).length > 1) {
|
|
34
|
+
return this.customprops;
|
|
35
|
+
}
|
|
36
|
+
const customprops = CssCustomProperties.listCustomProperties({
|
|
37
|
+
...this.getterDefaultProps,
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
this.customprops = customprops;
|
|
41
|
+
return customprops;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static listLocalStylesheets = () => {
|
|
45
|
+
if (document && document.styleSheets) {
|
|
46
|
+
return Array.from(document.styleSheets)
|
|
47
|
+
.filter((stylesheet) => {
|
|
48
|
+
// is inline stylesheet or from same domain
|
|
49
|
+
if (!stylesheet.href) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
return stylesheet.href.indexOf(window.location.origin) === 0;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static listLocalCssRules = () => {
|
|
60
|
+
return CssCustomProperties.listLocalStylesheets()
|
|
61
|
+
.map((stylesheet) => {
|
|
62
|
+
return Array.from(stylesheet.cssRules);
|
|
63
|
+
})
|
|
64
|
+
.flat();
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static listLocalCssStyleRules = (filter: getLocalCssStyleRulesProps = {}) => {
|
|
68
|
+
const {cssRuleType = "CSSStyleRule", selectorText} = filter;
|
|
69
|
+
return CssCustomProperties.listLocalCssRules()
|
|
70
|
+
.filter((cssrule) => {
|
|
71
|
+
if (cssrule.constructor.name !== cssRuleType) { return false; }
|
|
72
|
+
if (!!selectorText && cssrule.selectorText !== selectorText) { return false; }
|
|
73
|
+
return true;
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static listLocalCssStyleRuleProperties = (filter: getLocalCssStyleRulePropertiesProps = {}) => {
|
|
78
|
+
const { propertyType = "all", ...otherFilters } = filter;
|
|
79
|
+
return CssCustomProperties.listLocalCssStyleRules(otherFilters)
|
|
80
|
+
.map((cssrule) => {
|
|
81
|
+
return [...cssrule.style]
|
|
82
|
+
.map((propertyname) => {
|
|
83
|
+
return [
|
|
84
|
+
propertyname.trim(),
|
|
85
|
+
cssrule.style.getPropertyValue(propertyname).trim()
|
|
86
|
+
];
|
|
87
|
+
});
|
|
88
|
+
})
|
|
89
|
+
.flat()
|
|
90
|
+
.filter((declaration) => {
|
|
91
|
+
switch(propertyType) {
|
|
92
|
+
case "normal":
|
|
93
|
+
return declaration[0].indexOf("--") !== 0;
|
|
94
|
+
case "custom":
|
|
95
|
+
return declaration[0].indexOf("--") === 0;
|
|
96
|
+
}
|
|
97
|
+
return true; // case "all"
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static listCustomProperties = (props: getCustomPropertiesProps = {}) => {
|
|
102
|
+
const {
|
|
103
|
+
removeDashPrefix = true,
|
|
104
|
+
returnObject = true,
|
|
105
|
+
...filterProps
|
|
106
|
+
} = props;
|
|
107
|
+
|
|
108
|
+
const customProperties = CssCustomProperties.listLocalCssStyleRuleProperties({
|
|
109
|
+
...filterProps,
|
|
110
|
+
propertyType: "custom",
|
|
111
|
+
}).map((declaration) => {
|
|
112
|
+
if (removeDashPrefix) {
|
|
113
|
+
return [
|
|
114
|
+
declaration[0].substr(2),
|
|
115
|
+
declaration[1]
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
return declaration;
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
return returnObject ? Object.fromEntries(customProperties) : customProperties;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import CssCustomProperties from "./CssCustomProperties";
|
|
2
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
3
|
+
|
|
4
|
+
// Configurations can be found in `src/cmem/react-flow/configuration/_colors-*.scss`
|
|
5
|
+
type colorconfigs = "react-flow-graph" | "react-flow-linking" | "react-flow-workflow";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Read and returns color values provided by CSS custom properties.
|
|
9
|
+
* They are defined for special CSS classes.
|
|
10
|
+
* Currently color configurations for the react flow editors are supported.
|
|
11
|
+
**/
|
|
12
|
+
const getColorConfiguration = (configId: colorconfigs) => {
|
|
13
|
+
return new CssCustomProperties({
|
|
14
|
+
selectorText: `.${eccgui}-configuration--colors__${configId}`,
|
|
15
|
+
cssRuleType: "CSSStyleRule",
|
|
16
|
+
removeDashPrefix: true,
|
|
17
|
+
returnObject: true,
|
|
18
|
+
}).customProperties();
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default getColorConfiguration;
|
|
@@ -32,9 +32,16 @@
|
|
|
32
32
|
.#{$prefix}--accordion__content {
|
|
33
33
|
padding: $eccgui-size-block-whitespace / 2;
|
|
34
34
|
margin: 0 calc(1rem + #{$eccgui-size-block-whitespace / 2}) 0 $eccgui-size-block-whitespace / 2;
|
|
35
|
+
display: block;
|
|
36
|
+
opacity: 0;
|
|
37
|
+
position: fixed;
|
|
38
|
+
left: -5000em;
|
|
35
39
|
|
|
36
40
|
.#{$prefix}--accordion__item--active & {
|
|
37
41
|
padding: $eccgui-size-block-whitespace / 2 $eccgui-size-block-whitespace / 2 $eccgui-size-block-whitespace $eccgui-size-block-whitespace / 2;
|
|
42
|
+
opacity: 1;
|
|
43
|
+
position: static;
|
|
44
|
+
left: auto;
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
.#{$prefix}--accordion--start & {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentStory, ComponentMeta } from "@storybook/react";
|
|
3
|
+
|
|
4
|
+
import { CodeEditor } from "./CodeMirror";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: "Extensions/CodeEditor",
|
|
8
|
+
component: CodeEditor,
|
|
9
|
+
//parameters: { actions: { argTypesRegex: '^on.*' } },
|
|
10
|
+
argTypes: {
|
|
11
|
+
onChange: {
|
|
12
|
+
action: "value changed"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
} as ComponentMeta<typeof CodeEditor>;
|
|
16
|
+
|
|
17
|
+
const TemplateFull: ComponentStory<typeof CodeEditor> = (args) => (
|
|
18
|
+
<CodeEditor {...args} />
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export const BasicExample = TemplateFull.bind({});
|
|
22
|
+
BasicExample.args = {
|
|
23
|
+
name: "codeinput",
|
|
24
|
+
mode: "markdown",
|
|
25
|
+
defaultValue: "**test me**",
|
|
26
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from "react";
|
|
2
|
+
import CodeMirror from "codemirror";
|
|
3
|
+
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
|
|
4
|
+
import "codemirror/mode/markdown/markdown.js";
|
|
5
|
+
import "codemirror/mode/python/python.js";
|
|
6
|
+
import "codemirror/mode/sparql/sparql.js";
|
|
7
|
+
import "codemirror/mode/sql/sql.js";
|
|
8
|
+
import "codemirror/mode/turtle/turtle.js";
|
|
9
|
+
import "codemirror/mode/xml/xml.js";
|
|
10
|
+
|
|
11
|
+
export interface CodeEditorProps {
|
|
12
|
+
/**
|
|
13
|
+
* `name` attribute of connected textarea element.
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* `id` attribute of connected textarea element.
|
|
18
|
+
* If not set then the default value is created by `codemirror-${name-attribute}`.
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Handler method to receive onChange events.
|
|
23
|
+
* As input the new value is given.
|
|
24
|
+
*/
|
|
25
|
+
onChange: (v: any) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Syntax mode of the code editor.
|
|
28
|
+
*/
|
|
29
|
+
mode?: "markdown" | "python" | "sparql" | "sql" | "turtle" | "xml" | "undefined";
|
|
30
|
+
/**
|
|
31
|
+
* Default value used first when the editor is instanciated.
|
|
32
|
+
*/
|
|
33
|
+
defaultValue?: any;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Includes a code editor, currently we use CodeMirror library as base.
|
|
38
|
+
*/
|
|
39
|
+
export const CodeEditor = ({
|
|
40
|
+
onChange,
|
|
41
|
+
name,
|
|
42
|
+
id,
|
|
43
|
+
mode = "undefined",
|
|
44
|
+
defaultValue
|
|
45
|
+
}: CodeEditorProps) => {
|
|
46
|
+
const domRef = useRef<HTMLTextAreaElement>(null);
|
|
47
|
+
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
const editorInstance = CodeMirror.fromTextArea(domRef.current!, {
|
|
50
|
+
mode: mode === "undefined" ? undefined : mode,
|
|
51
|
+
lineWrapping: true,
|
|
52
|
+
lineNumbers: true,
|
|
53
|
+
tabSize: 2,
|
|
54
|
+
theme: "xq-light",
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
editorInstance.on("change", (api) => {
|
|
58
|
+
onChange(api.getValue());
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return function cleanup() {
|
|
62
|
+
editorInstance.toTextArea();
|
|
63
|
+
};
|
|
64
|
+
}, [onChange, mode]);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<div className={`${eccgui}-codeeditor`}>
|
|
68
|
+
<textarea
|
|
69
|
+
ref={domRef}
|
|
70
|
+
/**
|
|
71
|
+
* FIXME: same `data-test-id` for multiple code editor elements are valid
|
|
72
|
+
* but may not make really sense for testing purposes. Currently let it
|
|
73
|
+
* unchanged from the code what was took over here.
|
|
74
|
+
*/
|
|
75
|
+
data-test-id="codemirror-wrapper"
|
|
76
|
+
id={!!id ? id : `codemirror-${name}`}
|
|
77
|
+
name={name}
|
|
78
|
+
defaultValue={defaultValue}
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import "~codemirror/lib/codemirror.css";
|
|
2
|
+
@import "~codemirror/theme/xq-light.css";
|
|
3
|
+
|
|
4
|
+
// adjustments
|
|
5
|
+
|
|
6
|
+
.#{$eccgui}-codeeditor {
|
|
7
|
+
.CodeMirror {
|
|
8
|
+
border-radius: $pt-border-radius;
|
|
9
|
+
|
|
10
|
+
// get them a "border" like input boxes from blueprintjs
|
|
11
|
+
box-shadow: input-transition-shadow($input-shadow-color-focus), $pt-input-box-shadow;
|
|
12
|
+
&.CodeMirror-focused {
|
|
13
|
+
box-shadow: input-transition-shadow($input-shadow-color-focus, true), $input-box-shadow-focus;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.CodeMirror-gutters {
|
|
17
|
+
// allow "borders" to shine through
|
|
18
|
+
background-color: rgba(0,0,0,0.05);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.CodeMirror-scroll {
|
|
22
|
+
cursor: text;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.#{$prefix}--accordion__content {
|
|
28
|
+
.CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber {
|
|
29
|
+
box-sizing: content-box;
|
|
30
|
+
}
|
|
31
|
+
}
|
package/src/index.scss
CHANGED
|
@@ -130,10 +130,6 @@
|
|
|
130
130
|
// currently not needed @import '~carbon-components/scss/components/pagination-nav/pagination-nav';
|
|
131
131
|
// used in own component @import '~carbon-components/scss/components/ui-shell/ui-shell'; // experimental
|
|
132
132
|
|
|
133
|
-
// other 3rd party libs
|
|
134
|
-
@import "~codemirror/lib/codemirror.css";
|
|
135
|
-
@import "~codemirror/theme/xq-light.css";
|
|
136
|
-
|
|
137
133
|
// == Load element styles ======================================================
|
|
138
134
|
|
|
139
135
|
@import "./components/Typography/typography";
|
|
@@ -170,6 +166,7 @@
|
|
|
170
166
|
@import "./components/PropertyValuePair/propertyvalue";
|
|
171
167
|
@import "./components/Iframe/iframe";
|
|
172
168
|
@import "./components/AutoSuggestion/AutoSuggestion";
|
|
169
|
+
@import "./extensions/codemirror/codemirror";
|
|
173
170
|
|
|
174
171
|
// == load tweaks ==============================================================
|
|
175
172
|
|
package/src/index.ts
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
$reactflow-color-graph-node: #745a85 !default;
|
|
2
|
-
$reactflow-color-class-node: #3a7896 !default;
|
|
3
|
-
$reactflow-color-instance-node: #0097a7 !default;
|
|
4
|
-
$reactflow-color-property-node: #ffd54f !default;
|
|
5
|
-
|
|
6
|
-
$reactflow-color-implicit-edge: #ae3c74 !default;
|
|
7
|
-
$reactflow-color-import-edge: $reactflow-color-graph-node !default;
|
|
8
|
-
$reactflow-color-subclass-edge: $reactflow-color-class-node !default;
|
|
9
|
-
$reactflow-color-subproperty-edge: $reactflow-color-property-node !default;
|
|
10
|
-
$reactflow-color-rdftype-edge: $reactflow-color-instance-node !default;
|
|
11
|
-
|
|
12
|
-
@function bright($color) {
|
|
13
|
-
@return mix($color, #fff, 24%);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:export {
|
|
17
|
-
graphNode: $reactflow-color-graph-node;
|
|
18
|
-
classNode: $reactflow-color-class-node;
|
|
19
|
-
instanceNode: $reactflow-color-instance-node;
|
|
20
|
-
propertyNode: $reactflow-color-property-node;
|
|
21
|
-
implicitEdge: $reactflow-color-implicit-edge;
|
|
22
|
-
importEdge: $reactflow-color-import-edge;
|
|
23
|
-
subclassEdge: $reactflow-color-subclass-edge;
|
|
24
|
-
subpropertyEdge: $reactflow-color-subproperty-edge;
|
|
25
|
-
rdftypeEdge: $reactflow-color-rdftype-edge;
|
|
26
|
-
graphNodeBright: bright($reactflow-color-graph-node);
|
|
27
|
-
classNodeBright: bright($reactflow-color-class-node);
|
|
28
|
-
instanceNodeBright: bright($reactflow-color-instance-node);
|
|
29
|
-
propertyNodeBright: bright($reactflow-color-property-node);
|
|
30
|
-
implicitEdgeBright: bright($reactflow-color-implicit-edge);
|
|
31
|
-
importEdgeBright: bright($reactflow-color-import-edge);
|
|
32
|
-
subclassEdgeBright: bright($reactflow-color-subclass-edge);
|
|
33
|
-
subpropertyEdgeBright: bright($reactflow-color-subproperty-edge);
|
|
34
|
-
rdftypeEdgeBright: bright($reactflow-color-rdftype-edge);
|
|
35
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$reactflow-color-sourcepath-node: #745a85 !default;
|
|
2
|
-
$reactflow-color-targetpath-node: #3a7896 !default;
|
|
3
|
-
$reactflow-color-transformation-node: #ae3c74 !default;
|
|
4
|
-
$reactflow-color-comparator-node: #40a691 !default;
|
|
5
|
-
$reactflow-color-aggregator-node: #0097a7 !default;
|
|
6
|
-
|
|
7
|
-
$reactflow-color-value-edge: #222 !default;
|
|
8
|
-
$reactflow-color-score-edge: $reactflow-color-aggregator-node !default;
|
|
9
|
-
|
|
10
|
-
@function bright($color) {
|
|
11
|
-
@return mix($color, #fff, 24%);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:export {
|
|
15
|
-
sourcepathNode: $reactflow-color-sourcepath-node;
|
|
16
|
-
targetpathNode: $reactflow-color-targetpath-node;
|
|
17
|
-
transformationNode: $reactflow-color-transformation-node;
|
|
18
|
-
comparatorNode: $reactflow-color-comparator-node;
|
|
19
|
-
aggregatorNode: $reactflow-color-aggregator-node;
|
|
20
|
-
valueEdge: $reactflow-color-value-edge;
|
|
21
|
-
scoreEdge: $reactflow-color-score-edge;
|
|
22
|
-
sourcepathNodeBright: bright($reactflow-color-sourcepath-node);
|
|
23
|
-
targetpathNodeBright: bright($reactflow-color-targetpath-node);
|
|
24
|
-
transformationNodeBright: bright($reactflow-color-transformation-node);
|
|
25
|
-
comparatorNodeBright: bright($reactflow-color-comparator-node);
|
|
26
|
-
aggregatorNodeBright: bright($reactflow-color-aggregator-node);
|
|
27
|
-
valueEdgeBright: bright($reactflow-color-value-edge);
|
|
28
|
-
scoreEdgeBright: bright($reactflow-color-score-edge);
|
|
29
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
$reactflow-color-dataset-node: #3a7896 !default;
|
|
2
|
-
$reactflow-color-linking-node: #0097a7 !default;
|
|
3
|
-
$reactflow-color-transform-node: #40a691 !default;
|
|
4
|
-
$reactflow-color-task-node: #80b67b !default;
|
|
5
|
-
$reactflow-color-workflow-node: #745a85 !default;
|
|
6
|
-
|
|
7
|
-
@function bright($color) {
|
|
8
|
-
@return mix($color, #fff, 24%);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:export {
|
|
12
|
-
datasetNode: $reactflow-color-dataset-node;
|
|
13
|
-
linkingNode: $reactflow-color-linking-node;
|
|
14
|
-
transformNode: $reactflow-color-transform-node;
|
|
15
|
-
taskNode: $reactflow-color-task-node;
|
|
16
|
-
workflowNode: $reactflow-color-workflow-node;
|
|
17
|
-
datasetNodeBright: bright($reactflow-color-dataset-node);
|
|
18
|
-
linkingNodeBright: bright($reactflow-color-linking-node);
|
|
19
|
-
transformNodeBright: bright($reactflow-color-transform-node);
|
|
20
|
-
taskNodeBright: bright($reactflow-color-task-node);
|
|
21
|
-
workflowNodeBright: bright($reactflow-color-workflow-node);
|
|
22
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
$reactflow-color-graph-node: #745a85 !default;
|
|
2
|
-
$reactflow-color-class-node: #3a7896 !default;
|
|
3
|
-
$reactflow-color-instance-node: #0097a7 !default;
|
|
4
|
-
$reactflow-color-property-node: #ffd54f !default;
|
|
5
|
-
|
|
6
|
-
$reactflow-color-implicit-edge: #ae3c74 !default;
|
|
7
|
-
$reactflow-color-import-edge: $reactflow-color-graph-node !default;
|
|
8
|
-
$reactflow-color-subclass-edge: $reactflow-color-class-node !default;
|
|
9
|
-
$reactflow-color-subproperty-edge: $reactflow-color-property-node !default;
|
|
10
|
-
$reactflow-color-rdftype-edge: $reactflow-color-instance-node !default;
|
|
11
|
-
|
|
12
|
-
@function bright($color) {
|
|
13
|
-
@return mix($color, #fff, 24%);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:export {
|
|
17
|
-
graphNode: $reactflow-color-graph-node;
|
|
18
|
-
classNode: $reactflow-color-class-node;
|
|
19
|
-
instanceNode: $reactflow-color-instance-node;
|
|
20
|
-
propertyNode: $reactflow-color-property-node;
|
|
21
|
-
implicitEdge: $reactflow-color-implicit-edge;
|
|
22
|
-
importEdge: $reactflow-color-import-edge;
|
|
23
|
-
subclassEdge: $reactflow-color-subclass-edge;
|
|
24
|
-
subpropertyEdge: $reactflow-color-subproperty-edge;
|
|
25
|
-
rdftypeEdge: $reactflow-color-rdftype-edge;
|
|
26
|
-
graphNodeBright: bright($reactflow-color-graph-node);
|
|
27
|
-
classNodeBright: bright($reactflow-color-class-node);
|
|
28
|
-
instanceNodeBright: bright($reactflow-color-instance-node);
|
|
29
|
-
propertyNodeBright: bright($reactflow-color-property-node);
|
|
30
|
-
implicitEdgeBright: bright($reactflow-color-implicit-edge);
|
|
31
|
-
importEdgeBright: bright($reactflow-color-import-edge);
|
|
32
|
-
subclassEdgeBright: bright($reactflow-color-subclass-edge);
|
|
33
|
-
subpropertyEdgeBright: bright($reactflow-color-subproperty-edge);
|
|
34
|
-
rdftypeEdgeBright: bright($reactflow-color-rdftype-edge);
|
|
35
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$reactflow-color-sourcepath-node: #745a85 !default;
|
|
2
|
-
$reactflow-color-targetpath-node: #3a7896 !default;
|
|
3
|
-
$reactflow-color-transformation-node: #ae3c74 !default;
|
|
4
|
-
$reactflow-color-comparator-node: #40a691 !default;
|
|
5
|
-
$reactflow-color-aggregator-node: #0097a7 !default;
|
|
6
|
-
|
|
7
|
-
$reactflow-color-value-edge: #222 !default;
|
|
8
|
-
$reactflow-color-score-edge: $reactflow-color-aggregator-node !default;
|
|
9
|
-
|
|
10
|
-
@function bright($color) {
|
|
11
|
-
@return mix($color, #fff, 24%);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:export {
|
|
15
|
-
sourcepathNode: $reactflow-color-sourcepath-node;
|
|
16
|
-
targetpathNode: $reactflow-color-targetpath-node;
|
|
17
|
-
transformationNode: $reactflow-color-transformation-node;
|
|
18
|
-
comparatorNode: $reactflow-color-comparator-node;
|
|
19
|
-
aggregatorNode: $reactflow-color-aggregator-node;
|
|
20
|
-
valueEdge: $reactflow-color-value-edge;
|
|
21
|
-
scoreEdge: $reactflow-color-score-edge;
|
|
22
|
-
sourcepathNodeBright: bright($reactflow-color-sourcepath-node);
|
|
23
|
-
targetpathNodeBright: bright($reactflow-color-targetpath-node);
|
|
24
|
-
transformationNodeBright: bright($reactflow-color-transformation-node);
|
|
25
|
-
comparatorNodeBright: bright($reactflow-color-comparator-node);
|
|
26
|
-
aggregatorNodeBright: bright($reactflow-color-aggregator-node);
|
|
27
|
-
valueEdgeBright: bright($reactflow-color-value-edge);
|
|
28
|
-
scoreEdgeBright: bright($reactflow-color-score-edge);
|
|
29
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
$reactflow-color-dataset-node: #3a7896 !default;
|
|
2
|
-
$reactflow-color-linking-node: #0097a7 !default;
|
|
3
|
-
$reactflow-color-transform-node: #40a691 !default;
|
|
4
|
-
$reactflow-color-task-node: #80b67b !default;
|
|
5
|
-
$reactflow-color-workflow-node: #745a85 !default;
|
|
6
|
-
|
|
7
|
-
@function bright($color) {
|
|
8
|
-
@return mix($color, #fff, 24%);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:export {
|
|
12
|
-
datasetNode: $reactflow-color-dataset-node;
|
|
13
|
-
linkingNode: $reactflow-color-linking-node;
|
|
14
|
-
transformNode: $reactflow-color-transform-node;
|
|
15
|
-
taskNode: $reactflow-color-task-node;
|
|
16
|
-
workflowNode: $reactflow-color-workflow-node;
|
|
17
|
-
datasetNodeBright: bright($reactflow-color-dataset-node);
|
|
18
|
-
linkingNodeBright: bright($reactflow-color-linking-node);
|
|
19
|
-
transformNodeBright: bright($reactflow-color-transform-node);
|
|
20
|
-
taskNodeBright: bright($reactflow-color-task-node);
|
|
21
|
-
workflowNodeBright: bright($reactflow-color-workflow-node);
|
|
22
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
$reactflow-color-graph-node: #745a85 !default;
|
|
2
|
-
$reactflow-color-class-node: #3a7896 !default;
|
|
3
|
-
$reactflow-color-instance-node: #0097a7 !default;
|
|
4
|
-
$reactflow-color-property-node: #ffd54f !default;
|
|
5
|
-
|
|
6
|
-
$reactflow-color-implicit-edge: #ae3c74 !default;
|
|
7
|
-
$reactflow-color-import-edge: $reactflow-color-graph-node !default;
|
|
8
|
-
$reactflow-color-subclass-edge: $reactflow-color-class-node !default;
|
|
9
|
-
$reactflow-color-subproperty-edge: $reactflow-color-property-node !default;
|
|
10
|
-
$reactflow-color-rdftype-edge: $reactflow-color-instance-node !default;
|
|
11
|
-
|
|
12
|
-
@function bright($color) {
|
|
13
|
-
@return mix($color, #fff, 24%);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:export {
|
|
17
|
-
graphNode: $reactflow-color-graph-node;
|
|
18
|
-
classNode: $reactflow-color-class-node;
|
|
19
|
-
instanceNode: $reactflow-color-instance-node;
|
|
20
|
-
propertyNode: $reactflow-color-property-node;
|
|
21
|
-
implicitEdge: $reactflow-color-implicit-edge;
|
|
22
|
-
importEdge: $reactflow-color-import-edge;
|
|
23
|
-
subclassEdge: $reactflow-color-subclass-edge;
|
|
24
|
-
subpropertyEdge: $reactflow-color-subproperty-edge;
|
|
25
|
-
rdftypeEdge: $reactflow-color-rdftype-edge;
|
|
26
|
-
graphNodeBright: bright($reactflow-color-graph-node);
|
|
27
|
-
classNodeBright: bright($reactflow-color-class-node);
|
|
28
|
-
instanceNodeBright: bright($reactflow-color-instance-node);
|
|
29
|
-
propertyNodeBright: bright($reactflow-color-property-node);
|
|
30
|
-
implicitEdgeBright: bright($reactflow-color-implicit-edge);
|
|
31
|
-
importEdgeBright: bright($reactflow-color-import-edge);
|
|
32
|
-
subclassEdgeBright: bright($reactflow-color-subclass-edge);
|
|
33
|
-
subpropertyEdgeBright: bright($reactflow-color-subproperty-edge);
|
|
34
|
-
rdftypeEdgeBright: bright($reactflow-color-rdftype-edge);
|
|
35
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$reactflow-color-sourcepath-node: #745a85 !default;
|
|
2
|
-
$reactflow-color-targetpath-node: #3a7896 !default;
|
|
3
|
-
$reactflow-color-transformation-node: #ae3c74 !default;
|
|
4
|
-
$reactflow-color-comparator-node: #40a691 !default;
|
|
5
|
-
$reactflow-color-aggregator-node: #0097a7 !default;
|
|
6
|
-
|
|
7
|
-
$reactflow-color-value-edge: #222 !default;
|
|
8
|
-
$reactflow-color-score-edge: $reactflow-color-aggregator-node !default;
|
|
9
|
-
|
|
10
|
-
@function bright($color) {
|
|
11
|
-
@return mix($color, #fff, 24%);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:export {
|
|
15
|
-
sourcepathNode: $reactflow-color-sourcepath-node;
|
|
16
|
-
targetpathNode: $reactflow-color-targetpath-node;
|
|
17
|
-
transformationNode: $reactflow-color-transformation-node;
|
|
18
|
-
comparatorNode: $reactflow-color-comparator-node;
|
|
19
|
-
aggregatorNode: $reactflow-color-aggregator-node;
|
|
20
|
-
valueEdge: $reactflow-color-value-edge;
|
|
21
|
-
scoreEdge: $reactflow-color-score-edge;
|
|
22
|
-
sourcepathNodeBright: bright($reactflow-color-sourcepath-node);
|
|
23
|
-
targetpathNodeBright: bright($reactflow-color-targetpath-node);
|
|
24
|
-
transformationNodeBright: bright($reactflow-color-transformation-node);
|
|
25
|
-
comparatorNodeBright: bright($reactflow-color-comparator-node);
|
|
26
|
-
aggregatorNodeBright: bright($reactflow-color-aggregator-node);
|
|
27
|
-
valueEdgeBright: bright($reactflow-color-value-edge);
|
|
28
|
-
scoreEdgeBright: bright($reactflow-color-score-edge);
|
|
29
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
$reactflow-color-dataset-node: #3a7896 !default;
|
|
2
|
-
$reactflow-color-linking-node: #0097a7 !default;
|
|
3
|
-
$reactflow-color-transform-node: #40a691 !default;
|
|
4
|
-
$reactflow-color-task-node: #80b67b !default;
|
|
5
|
-
$reactflow-color-workflow-node: #745a85 !default;
|
|
6
|
-
|
|
7
|
-
@function bright($color) {
|
|
8
|
-
@return mix($color, #fff, 24%);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:export {
|
|
12
|
-
datasetNode: $reactflow-color-dataset-node;
|
|
13
|
-
linkingNode: $reactflow-color-linking-node;
|
|
14
|
-
transformNode: $reactflow-color-transform-node;
|
|
15
|
-
taskNode: $reactflow-color-task-node;
|
|
16
|
-
workflowNode: $reactflow-color-workflow-node;
|
|
17
|
-
datasetNodeBright: bright($reactflow-color-dataset-node);
|
|
18
|
-
linkingNodeBright: bright($reactflow-color-linking-node);
|
|
19
|
-
transformNodeBright: bright($reactflow-color-transform-node);
|
|
20
|
-
taskNodeBright: bright($reactflow-color-task-node);
|
|
21
|
-
workflowNodeBright: bright($reactflow-color-workflow-node);
|
|
22
|
-
}
|