@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.
Files changed (58) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/cmem/react-flow/configuration/graph.js +1 -6
  3. package/dist/cjs/cmem/react-flow/configuration/graph.js.map +1 -1
  4. package/dist/cjs/cmem/react-flow/configuration/linking.js +1 -6
  5. package/dist/cjs/cmem/react-flow/configuration/linking.js.map +1 -1
  6. package/dist/cjs/cmem/react-flow/configuration/workflow.js +1 -6
  7. package/dist/cjs/cmem/react-flow/configuration/workflow.js.map +1 -1
  8. package/dist/cjs/extensions/codemirror/CodeMirror.js +59 -0
  9. package/dist/cjs/extensions/codemirror/CodeMirror.js.map +1 -0
  10. package/dist/cjs/extensions/index.js +15 -0
  11. package/dist/cjs/extensions/index.js.map +1 -0
  12. package/dist/cjs/index.js +1 -1
  13. package/dist/cjs/index.js.map +1 -1
  14. package/dist/esm/cmem/react-flow/configuration/graph.js +1 -2
  15. package/dist/esm/cmem/react-flow/configuration/graph.js.map +1 -1
  16. package/dist/esm/cmem/react-flow/configuration/linking.js +1 -2
  17. package/dist/esm/cmem/react-flow/configuration/linking.js.map +1 -1
  18. package/dist/esm/cmem/react-flow/configuration/workflow.js +1 -2
  19. package/dist/esm/cmem/react-flow/configuration/workflow.js.map +1 -1
  20. package/dist/esm/extensions/codemirror/CodeMirror.js +34 -0
  21. package/dist/esm/extensions/codemirror/CodeMirror.js.map +1 -0
  22. package/dist/esm/extensions/index.js +3 -0
  23. package/dist/esm/extensions/index.js.map +1 -0
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/types/cmem/react-flow/configuration/graph.d.ts +1 -2
  27. package/dist/types/cmem/react-flow/configuration/linking.d.ts +1 -2
  28. package/dist/types/cmem/react-flow/configuration/workflow.d.ts +1 -2
  29. package/dist/types/extensions/codemirror/CodeMirror.d.ts +35 -0
  30. package/dist/types/extensions/index.d.ts +2 -0
  31. package/dist/types/index.d.ts +1 -1
  32. package/package.json +3 -3
  33. package/src/cmem/react-flow/configuration/_colors-graph.scss +35 -0
  34. package/src/cmem/react-flow/configuration/_colors-linking.scss +29 -0
  35. package/src/cmem/react-flow/configuration/_colors-workflow.scss +22 -0
  36. package/src/cmem/react-flow/configuration/_colors.scss +3 -3
  37. package/src/cmem/react-flow/configuration/graph.ts +0 -2
  38. package/src/cmem/react-flow/configuration/linking.ts +0 -2
  39. package/src/cmem/react-flow/configuration/workflow.ts +0 -2
  40. package/src/common/utils/CssCustomProperties.ts +123 -0
  41. package/src/common/utils/getColorConfiguration.ts +21 -0
  42. package/src/components/Accordion/accordion.scss +7 -0
  43. package/src/extensions/_index.scss +5 -0
  44. package/src/extensions/codemirror/CodeMirror.stories.tsx +26 -0
  45. package/src/extensions/codemirror/CodeMirror.tsx +82 -0
  46. package/src/extensions/codemirror/_codemirror.scss +31 -0
  47. package/src/extensions/index.ts +2 -0
  48. package/src/index.scss +1 -4
  49. package/src/index.ts +1 -1
  50. package/dist/cjs/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
  51. package/dist/cjs/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
  52. package/dist/cjs/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
  53. package/dist/esm/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
  54. package/dist/esm/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
  55. package/dist/esm/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
  56. package/src/cmem/react-flow/configuration/_colors-graph.module.scss +0 -35
  57. package/src/cmem/react-flow/configuration/_colors-linking.module.scss +0 -29
  58. package/src/cmem/react-flow/configuration/_colors-workflow.module.scss +0 -22
package/CHANGELOG.md CHANGED
@@ -5,6 +5,26 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ### Added
9
+
10
+ * `<CodeEditor />` element based on `CodeMirror` library, supporting Markdown, Python, Sparql, SQL, Turtle and XML syntax
11
+ * `CssCustomProperties` and `getColorConfiguration` utilities can be used to exchange color configurations between SCSS and JS
12
+
13
+ ### Fixed
14
+
15
+ * allow children of `<Accordion />` item to get calculated based on their DOM sizes
16
+ * add borders to CodeMirror editor area and include display of focused state
17
+ * GUI elements library can be now used easier in applications because it does not force usage of SCSS modules via JS/Webpack4
18
+
19
+ ### Changed
20
+
21
+ * move style imports of CodeMirror layout to `extensions`
22
+ * color configurations for react flow editor are not exported as modules anymore, they need to be fetched by `getColorConfiguration` method in JS directly
23
+
24
+ ### Migration notes
25
+
26
+ * old `{ colors }` imports for `cmem/react-flow/configurations/*` do not keep working anymore, use `getColorConfiguration` method now
27
+
8
28
  ## [22.1.0] - 2022-05-16
9
29
 
10
30
  ### Added
@@ -1,13 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.colors = exports.nodeTypes = exports.edgeTypes = void 0;
3
+ exports.nodeTypes = exports.edgeTypes = void 0;
7
4
  const EdgeDefault_1 = require("./../../../extensions/react-flow/edges/EdgeDefault");
8
5
  const NodeDefault_1 = require("./../../../extensions/react-flow/nodes/NodeDefault");
9
- const _colors_graph_module_scss_1 = __importDefault(require("./_colors-graph.module.scss"));
10
- exports.colors = _colors_graph_module_scss_1.default;
11
6
  const edgeTypes = {
12
7
  default: EdgeDefault_1.EdgeDefault,
13
8
  implicit: EdgeDefault_1.EdgeDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/graph.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAiF;AACjF,oFAAiF;AACjF,4FAAiD;AAyB5C,iBAzBE,mCAAM,CAyBF;AAvBX,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,yBAAW;IACpB,QAAQ,EAAE,yBAAW;IACrB,MAAM,EAAE,yBAAW;IACnB,QAAQ,EAAE,yBAAW;IACrB,WAAW,EAAE,yBAAW;IACxB,OAAO,EAAE,yBAAW;IACpB,OAAO,EAAE,yBAAW;IACpB,OAAO,EAAE,yBAAW;IACpB,MAAM,EAAE,yBAAW;CACtB,CAAC;AAWG,8BAAS;AATd,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,yBAAW;IACpB,KAAK,EAAE,yBAAW;IAClB,KAAK,EAAE,yBAAW;IAClB,QAAQ,EAAE,yBAAW;IACrB,QAAQ,EAAE,yBAAW;CACxB,CAAC;AAIG,8BAAS"}
1
+ {"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/graph.ts"],"names":[],"mappings":";;;AAAA,oFAAiF;AACjF,oFAAiF;AAEjF,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,yBAAW;IACpB,QAAQ,EAAE,yBAAW;IACrB,MAAM,EAAE,yBAAW;IACnB,QAAQ,EAAE,yBAAW;IACrB,WAAW,EAAE,yBAAW;IACxB,OAAO,EAAE,yBAAW;IACpB,OAAO,EAAE,yBAAW;IACpB,OAAO,EAAE,yBAAW;IACpB,MAAM,EAAE,yBAAW;CACtB,CAAC;AAWG,8BAAS;AATd,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,yBAAW;IACpB,KAAK,EAAE,yBAAW;IAClB,KAAK,EAAE,yBAAW;IAClB,QAAQ,EAAE,yBAAW;IACrB,QAAQ,EAAE,yBAAW;CACxB,CAAC;AAIG,8BAAS"}
@@ -1,13 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.colors = exports.nodeTypes = exports.edgeTypes = void 0;
3
+ exports.nodeTypes = exports.edgeTypes = void 0;
7
4
  const EdgeStep_1 = require("./../../../extensions/react-flow/edges/EdgeStep");
8
5
  const NodeDefault_1 = require("./../../../extensions/react-flow/nodes/NodeDefault");
9
- const _colors_linking_module_scss_1 = __importDefault(require("./_colors-linking.module.scss"));
10
- exports.colors = _colors_linking_module_scss_1.default;
11
6
  const edgeTypes = {
12
7
  default: EdgeStep_1.EdgeStep,
13
8
  value: EdgeStep_1.EdgeStep,
@@ -1 +1 @@
1
- {"version":3,"file":"linking.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/linking.ts"],"names":[],"mappings":";;;;;;AACA,8EAA2E;AAC3E,oFAAiF;AACjF,gGAAmD;AAuB9C,iBAvBE,qCAAM,CAuBF;AArBX,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,mBAAQ;IACjB,KAAK,EAAE,mBAAQ;IACf,KAAK,EAAE,mBAAQ;IACf,OAAO,EAAE,mBAAQ;IACjB,OAAO,EAAE,mBAAQ;IACjB,MAAM,EAAE,mBAAQ;CACnB,CAAC;AAYG,8BAAS;AAVd,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,yBAAW;IACpB,UAAU,EAAE,yBAAW;IACvB,UAAU,EAAE,yBAAW;IACvB,cAAc,EAAE,yBAAW;IAC3B,UAAU,EAAE,yBAAW;IACvB,UAAU,EAAE,yBAAW;CAC1B,CAAC;AAIG,8BAAS"}
1
+ {"version":3,"file":"linking.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/linking.ts"],"names":[],"mappings":";;;AACA,8EAA2E;AAC3E,oFAAiF;AAEjF,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,mBAAQ;IACjB,KAAK,EAAE,mBAAQ;IACf,KAAK,EAAE,mBAAQ;IACf,OAAO,EAAE,mBAAQ;IACjB,OAAO,EAAE,mBAAQ;IACjB,MAAM,EAAE,mBAAQ;CACnB,CAAC;AAYG,8BAAS;AAVd,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,yBAAW;IACpB,UAAU,EAAE,yBAAW;IACvB,UAAU,EAAE,yBAAW;IACvB,cAAc,EAAE,yBAAW;IAC3B,UAAU,EAAE,yBAAW;IACvB,UAAU,EAAE,yBAAW;CAC1B,CAAC;AAIG,8BAAS"}
@@ -1,13 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.colors = exports.nodeTypes = exports.edgeTypes = void 0;
3
+ exports.nodeTypes = exports.edgeTypes = void 0;
7
4
  const EdgeStep_1 = require("./../../../extensions/react-flow/edges/EdgeStep");
8
5
  const NodeDefault_1 = require("./../../../extensions/react-flow/nodes/NodeDefault");
9
- const _colors_workflow_module_scss_1 = __importDefault(require("./_colors-workflow.module.scss"));
10
- exports.colors = _colors_workflow_module_scss_1.default;
11
6
  const edgeTypes = {
12
7
  default: EdgeStep_1.EdgeStep,
13
8
  success: EdgeStep_1.EdgeStep,
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/workflow.ts"],"names":[],"mappings":";;;;;;AAAA,8EAA2E;AAC3E,oFAAiF;AACjF,kGAAoD;AAqB/C,iBArBE,sCAAM,CAqBF;AAnBX,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,mBAAQ;IACjB,OAAO,EAAE,mBAAQ;IACjB,OAAO,EAAE,mBAAQ;IACjB,MAAM,EAAE,mBAAQ;CACnB,CAAC;AAYG,8BAAS;AAVd,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,yBAAW;IACpB,OAAO,EAAE,yBAAW;IACpB,OAAO,EAAE,yBAAW;IACpB,SAAS,EAAE,yBAAW;IACtB,IAAI,EAAE,yBAAW;IACjB,QAAQ,EAAE,yBAAW;CACxB,CAAC;AAIG,8BAAS"}
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/workflow.ts"],"names":[],"mappings":";;;AAAA,8EAA2E;AAC3E,oFAAiF;AAEjF,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,mBAAQ;IACjB,OAAO,EAAE,mBAAQ;IACjB,OAAO,EAAE,mBAAQ;IACjB,MAAM,EAAE,mBAAQ;CACnB,CAAC;AAYG,8BAAS;AAVd,MAAM,SAAS,GAAG;IACd,OAAO,EAAE,yBAAW;IACpB,OAAO,EAAE,yBAAW;IACpB,OAAO,EAAE,yBAAW;IACpB,SAAS,EAAE,yBAAW;IACtB,IAAI,EAAE,yBAAW;IACjB,QAAQ,EAAE,yBAAW;CACxB,CAAC;AAIG,8BAAS"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.CodeEditor = void 0;
26
+ const react_1 = __importStar(require("react"));
27
+ const codemirror_1 = __importDefault(require("codemirror"));
28
+ const constants_1 = require("../../configuration/constants");
29
+ require("codemirror/mode/markdown/markdown.js");
30
+ require("codemirror/mode/python/python.js");
31
+ require("codemirror/mode/sparql/sparql.js");
32
+ require("codemirror/mode/sql/sql.js");
33
+ require("codemirror/mode/turtle/turtle.js");
34
+ require("codemirror/mode/xml/xml.js");
35
+ /**
36
+ * Includes a code editor, currently we use CodeMirror library as base.
37
+ */
38
+ const CodeEditor = ({ onChange, name, id, mode = "undefined", defaultValue }) => {
39
+ const domRef = (0, react_1.useRef)(null);
40
+ (0, react_1.useEffect)(() => {
41
+ const editorInstance = codemirror_1.default.fromTextArea(domRef.current, {
42
+ mode: mode === "undefined" ? undefined : mode,
43
+ lineWrapping: true,
44
+ lineNumbers: true,
45
+ tabSize: 2,
46
+ theme: "xq-light",
47
+ });
48
+ editorInstance.on("change", (api) => {
49
+ onChange(api.getValue());
50
+ });
51
+ return function cleanup() {
52
+ editorInstance.toTextArea();
53
+ };
54
+ }, [onChange, mode]);
55
+ return (react_1.default.createElement("div", { className: `${constants_1.CLASSPREFIX}-codeeditor` },
56
+ react_1.default.createElement("textarea", { ref: domRef, "data-test-id": "codemirror-wrapper", id: !!id ? id : `codemirror-${name}`, name: name, defaultValue: defaultValue })));
57
+ };
58
+ exports.CodeEditor = CodeEditor;
59
+ //# sourceMappingURL=CodeMirror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeMirror.js","sourceRoot":"","sources":["../../../../src/extensions/codemirror/CodeMirror.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiD;AACjD,4DAAoC;AACpC,6DAAsE;AACtE,gDAA8C;AAC9C,4CAA0C;AAC1C,4CAA0C;AAC1C,sCAAoC;AACpC,4CAA0C;AAC1C,sCAAoC;AA2BpC;;GAEG;AACI,MAAM,UAAU,GAAG,CAAC,EACvB,QAAQ,EACR,IAAI,EACJ,EAAE,EACF,IAAI,GAAG,WAAW,EAClB,YAAY,EACE,EAAE,EAAE;IAClB,MAAM,MAAM,GAAG,IAAA,cAAM,EAAsB,IAAI,CAAC,CAAC;IAEjD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,MAAM,cAAc,GAAG,oBAAU,CAAC,YAAY,CAAC,MAAM,CAAC,OAAQ,EAAE;YAC5D,IAAI,EAAE,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI;YAC7C,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,IAAI;YACjB,OAAO,EAAE,CAAC;YACV,KAAK,EAAE,UAAU;SACpB,CAAC,CAAC;QAEH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;YAChC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,OAAO;YACnB,cAAc,CAAC,UAAU,EAAE,CAAC;QAChC,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;IAErB,OAAO,CACH,uCAAK,SAAS,EAAE,GAAG,uBAAM,aAAa;QAClC,4CACI,GAAG,EAAE,MAAM,kBAME,oBAAoB,EACjC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,IAAI,EAAE,EACpC,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,GAC5B,CACA,CACT,CAAC;AACN,CAAC,CAAA;AA3CY,QAAA,UAAU,cA2CtB"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./codemirror/CodeMirror"), exports);
14
+ __exportStar(require("./react-flow"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAwC;AACxC,+CAA6B"}
package/dist/cjs/index.js CHANGED
@@ -225,5 +225,5 @@ const Utilities = {
225
225
  };
226
226
  exports.Utilities = Utilities;
227
227
  __exportStar(require("./cmem"), exports);
228
- __exportStar(require("./extensions/react-flow"), exports);
228
+ __exportStar(require("./extensions"), exports);
229
229
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yGAAiF;AAiJ7E,+BAjJG,8BAAoB,CAiJH;AAhJxB,mGAA2E;AAiJvE,4BAjJG,2BAAiB,CAiJH;AAhJrB,qGAA6E;AAiJzE,6BAjJG,4BAAkB,CAiJH;AAhJtB,yHAAiG;AAiJ7F,uCAjJG,sCAA4B,CAiJH;AAhJhC,mHAA2F;AAiJvF,oCAjJG,mCAAyB,CAiJH;AAhJ7B,iGAAyE;AAiJrE,2BAjJG,0BAAgB,CAiJH;AAhJpB,qGAA6E;AAiJzE,6BAjJG,4BAAkB,CAiJH;AAhJtB,mHAA2F;AAiJvF,oCAjJG,mCAAyB,CAiJH;AAhJ7B,iHAAyF;AAiJrF,mCAjJG,kCAAwB,CAiJH;AAhJ5B,+GAAuF;AAiJnF,kCAjJG,iCAAuB,CAiJH;AAhJ3B,gGAAwE;AAiJpE,yBAjJG,wBAAc,CAiJH;AAhJlB,uFAAoF;AAiJhF,mGAjJK,uCAAkB,OAiJL;AAhJtB,4GAAoF;AAiJhF,+BAjJG,8BAAoB,CAiJH;AA/IxB,gGAAwE;A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AlCG,cAAI,CAkCH;AAhCR,0EAA4D;AAmHxD,gDAAkB;AAjHtB,MAAM,aAAa,GAAG;IAClB,UAAU,EAAE,oBAAoB;IAChC,MAAM,EAAE,mBAAgB;CAC3B,CAAC;AAsGE,sCAAa;AApGjB,MAAM,SAAS,GAAG;IACb,YAAY,EAAZ,2BAAY;CAChB,CAAA;AAyGG,8BAAS;AAIb,yCAAuB;AACvB,+CAA6B"}
@@ -1,6 +1,5 @@
1
1
  import { EdgeDefault } from "./../../../extensions/react-flow/edges/EdgeDefault.js";
2
2
  import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault.js";
3
- import colors from "./_colors-graph.module.scss";
4
3
  var edgeTypes = {
5
4
  default: EdgeDefault,
6
5
  implicit: EdgeDefault,
@@ -19,5 +18,5 @@ var nodeTypes = {
19
18
  instance: NodeDefault,
20
19
  property: NodeDefault,
21
20
  };
22
- export { edgeTypes, nodeTypes, colors, };
21
+ export { edgeTypes, nodeTypes, };
23
22
  //# sourceMappingURL=graph.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,MAAM,MAAM,6BAA6B,CAAC;AAEjD,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,WAAW;CACtB,CAAC;AAEF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AAED,OAAO,EACH,SAAS,EACT,SAAS,EACT,MAAM,GACT,CAAA"}
1
+ {"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAEjF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,WAAW;CACtB,CAAC;AAEF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;CACxB,CAAC;AAED,OAAO,EACH,SAAS,EACT,SAAS,GACZ,CAAA"}
@@ -1,6 +1,5 @@
1
1
  import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep.js";
2
2
  import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault.js";
3
- import colors from "./_colors-linking.module.scss";
4
3
  var edgeTypes = {
5
4
  default: EdgeStep,
6
5
  value: EdgeStep,
@@ -17,5 +16,5 @@ var nodeTypes = {
17
16
  comparator: NodeDefault,
18
17
  aggregator: NodeDefault,
19
18
  };
20
- export { edgeTypes, nodeTypes, colors, };
19
+ export { edgeTypes, nodeTypes, };
21
20
  //# sourceMappingURL=linking.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"linking.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/linking.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;CACnB,CAAC;AAEF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,WAAW;IACvB,cAAc,EAAE,WAAW;IAC3B,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,WAAW;CAC1B,CAAC;AAED,OAAO,EACH,SAAS,EACT,SAAS,EACT,MAAM,GACT,CAAA"}
1
+ {"version":3,"file":"linking.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/linking.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAEjF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;CACnB,CAAC;AAEF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,WAAW;IACvB,cAAc,EAAE,WAAW;IAC3B,UAAU,EAAE,WAAW;IACvB,UAAU,EAAE,WAAW;CAC1B,CAAC;AAED,OAAO,EACH,SAAS,EACT,SAAS,GACZ,CAAA"}
@@ -1,6 +1,5 @@
1
1
  import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep.js";
2
2
  import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault.js";
3
- import colors from "./_colors-workflow.module.scss";
4
3
  var edgeTypes = {
5
4
  default: EdgeStep,
6
5
  success: EdgeStep,
@@ -15,5 +14,5 @@ var nodeTypes = {
15
14
  task: NodeDefault,
16
15
  workflow: NodeDefault,
17
16
  };
18
- export { edgeTypes, nodeTypes, colors, };
17
+ export { edgeTypes, nodeTypes, };
19
18
  //# sourceMappingURL=workflow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,MAAM,MAAM,gCAAgC,CAAC;AAEpD,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;CACnB,CAAC;AAEF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,WAAW;CACxB,CAAC;AAED,OAAO,EACH,SAAS,EACT,SAAS,EACT,MAAM,GACT,CAAA"}
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../../src/cmem/react-flow/configuration/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAEjF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,QAAQ;CACnB,CAAC;AAEF,IAAM,SAAS,GAAG;IACd,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,WAAW;CACxB,CAAC;AAED,OAAO,EACH,SAAS,EACT,SAAS,GACZ,CAAA"}
@@ -0,0 +1,34 @@
1
+ import React, { useEffect, useRef } from "react";
2
+ import CodeMirror from "codemirror";
3
+ import { CLASSPREFIX as eccgui } from "../../configuration/constants.js";
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
+ * Includes a code editor, currently we use CodeMirror library as base.
12
+ */
13
+ export var CodeEditor = function (_a) {
14
+ var onChange = _a.onChange, name = _a.name, id = _a.id, _b = _a.mode, mode = _b === void 0 ? "undefined" : _b, defaultValue = _a.defaultValue;
15
+ var domRef = useRef(null);
16
+ useEffect(function () {
17
+ var editorInstance = CodeMirror.fromTextArea(domRef.current, {
18
+ mode: mode === "undefined" ? undefined : mode,
19
+ lineWrapping: true,
20
+ lineNumbers: true,
21
+ tabSize: 2,
22
+ theme: "xq-light",
23
+ });
24
+ editorInstance.on("change", function (api) {
25
+ onChange(api.getValue());
26
+ });
27
+ return function cleanup() {
28
+ editorInstance.toTextArea();
29
+ };
30
+ }, [onChange, mode]);
31
+ return (React.createElement("div", { className: eccgui + "-codeeditor" },
32
+ React.createElement("textarea", { ref: domRef, "data-test-id": "codemirror-wrapper", id: !!id ? id : "codemirror-" + name, name: name, defaultValue: defaultValue })));
33
+ };
34
+ //# sourceMappingURL=CodeMirror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeMirror.js","sourceRoot":"","sources":["../../../../src/extensions/codemirror/CodeMirror.tsx"],"names":[],"m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AoB,EACjC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAc,IAAM,EACpC,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,GAC5B,CACA,CACT,CAAC;AACN,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from "./codemirror/CodeMirror.js";
2
+ export * from "./react-flow/index.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/extensions/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC"}
package/dist/esm/index.js CHANGED
@@ -93,5 +93,5 @@ var Utilities = {
93
93
  export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, AutoSuggestion, AutoSuggestionList, SingleLineCodeEditor, HtmlContentBlock, OverflowText, WhiteSpaceContainer, Highlighter, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, Icon, IconButton, Label, Button, Checkbox, RadioButton, Tabs, Tab, TabTitle, TextField, TextArea, SearchField, Switch, NumericInput, FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, // FIXME: CMEM-3742: include as own element
94
94
  MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
95
95
  export * from "./cmem/index.js";
96
- export * from "./extensions/react-flow/index.js";
96
+ export * from "./extensions/index.js";
97
97
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AACjF,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,4BAA4B,MAAM,uDAAuD,CAAC;AACjG,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAC3F,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AACzE,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAC3F,OAAO,wBAAwB,MAAM,mDAAmD,CAAC;AACzF,OAAO,uBAAuB,MAAM,kDAAkD,CAAC;AACvF,OAAO,cAAc,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,oBAAoB,MAAM,kDAAkD,CAAC;AAEpF,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE,OAAO,YAAY,MAAM,sCAAsC,CAAC;AAChE,OAAO,mBAAmB,MAAM,6CAA6C,CAAC;AAC9E,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAE9D,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,UAAU,MAAM,8BAA8B,CAAC;AAEtD,OAAO,gBAAgB,MAAM,yCAAyC,CAAC;AACvE,OAAO,aAAa,MAAM,sCAAsC,CAAC;AACjE,OAAO,aAAa,MAAM,sCAAs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EACN,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,KAAK,EACL,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,cAAc,EACd,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,aAAa,EACb,OAAO,EACP,cAAc,EACd,GAAG,EACH,OAAO,EACP,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,MAAM,EAAE,2CAA2C;AACnD,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,MAAM,EACN,WAAW,EACX,SAAS,EACT,kBAAkB,GACrB,CAAC;AAEF,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AACjF,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,4BAA4B,MAAM,uDAAuD,CAAC;AACjG,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAC3F,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AACzE,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAC3F,OAAO,wBAAwB,MAAM,mDAAmD,CAAC;AACzF,OAAO,uBAAuB,MAAM,kDAAkD,CAAC;AACvF,OAAO,cAAc,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,oBAAoB,MAAM,kDAAkD,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ChB,aAAa,EACb,aAAa,EACb,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,cAAc,EACd,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,uBAAuB,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,KAAK,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,WAAW,EACX,IAAI,EACJ,UAAU,EACV,KAAK,EACL,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,MAAM,EACN,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,KAAK,EACL,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,cAAc,EACd,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,aAAa,EACb,OAAO,EACP,cAAc,EACd,GAAG,EACH,OAAO,EACP,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,MAAM,EAAE,2CAA2C;AACnD,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,MAAM,EACN,WAAW,EACX,SAAS,EACT,kBAAkB,GACrB,CAAC;AAEF,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import colors from "./_colors-graph.module.scss";
3
2
  declare const edgeTypes: {
4
3
  default: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeDefault").EdgeDefaultProps) => JSX.Element>;
5
4
  implicit: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeDefault").EdgeDefaultProps) => JSX.Element>;
@@ -18,4 +17,4 @@ declare const nodeTypes: {
18
17
  instance: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
19
18
  property: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
20
19
  };
21
- export { edgeTypes, nodeTypes, colors, };
20
+ export { edgeTypes, nodeTypes, };
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import colors from "./_colors-linking.module.scss";
3
2
  declare const edgeTypes: {
4
3
  default: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeStep").EdgeStepProps) => JSX.Element>;
5
4
  value: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeStep").EdgeStepProps) => JSX.Element>;
@@ -16,4 +15,4 @@ declare const nodeTypes: {
16
15
  comparator: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
17
16
  aggregator: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
18
17
  };
19
- export { edgeTypes, nodeTypes, colors, };
18
+ export { edgeTypes, nodeTypes, };
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import colors from "./_colors-workflow.module.scss";
3
2
  declare const edgeTypes: {
4
3
  default: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeStep").EdgeStepProps) => JSX.Element>;
5
4
  success: import("react").MemoExoticComponent<(edge: import("./../../../extensions/react-flow/edges/EdgeStep").EdgeStepProps) => JSX.Element>;
@@ -14,4 +13,4 @@ declare const nodeTypes: {
14
13
  task: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
15
14
  workflow: import("react").MemoExoticComponent<(node: import("./../../../extensions/react-flow/nodes/NodeDefault").NodeProps<any, any>) => JSX.Element>;
16
15
  };
17
- export { edgeTypes, nodeTypes, colors, };
16
+ export { edgeTypes, nodeTypes, };
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import "codemirror/mode/markdown/markdown.js";
3
+ import "codemirror/mode/python/python.js";
4
+ import "codemirror/mode/sparql/sparql.js";
5
+ import "codemirror/mode/sql/sql.js";
6
+ import "codemirror/mode/turtle/turtle.js";
7
+ import "codemirror/mode/xml/xml.js";
8
+ export interface CodeEditorProps {
9
+ /**
10
+ * `name` attribute of connected textarea element.
11
+ */
12
+ name: string;
13
+ /**
14
+ * `id` attribute of connected textarea element.
15
+ * If not set then the default value is created by `codemirror-${name-attribute}`.
16
+ */
17
+ id?: string;
18
+ /**
19
+ * Handler method to receive onChange events.
20
+ * As input the new value is given.
21
+ */
22
+ onChange: (v: any) => void;
23
+ /**
24
+ * Syntax mode of the code editor.
25
+ */
26
+ mode?: "markdown" | "python" | "sparql" | "sql" | "turtle" | "xml" | "undefined";
27
+ /**
28
+ * Default value used first when the editor is instanciated.
29
+ */
30
+ defaultValue?: any;
31
+ }
32
+ /**
33
+ * Includes a code editor, currently we use CodeMirror library as base.
34
+ */
35
+ export declare const CodeEditor: ({ onChange, name, id, mode, defaultValue }: CodeEditorProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from "./codemirror/CodeMirror";
2
+ export * from "./react-flow";
@@ -94,4 +94,4 @@ declare const Utilities: {
94
94
  export { ApplicationContainer, ApplicationHeader, ApplicationContent, ApplicationSidebarNavigation, ApplicationSidebarToggler, ApplicationTitle, ApplicationToolbar, ApplicationToolbarSection, ApplicationToolbarAction, ApplicationToolbarPanel, AutoSuggestion, AutoSuggestionList, SingleLineCodeEditor, HtmlContentBlock, OverflowText, WhiteSpaceContainer, Highlighter, Grid, GridRow, GridColumn, List, WorkspaceContent, WorkspaceMain, WorkspaceSide, WorkspaceHeader, Menu, MenuItem, MenuDivider, ContextOverlay, ContextMenu, OverviewItem, OverviewItemDepiction, OverviewItemDescription, OverviewItemLine, OverviewItemActions, OverviewItemList, TableContainer, Table, TableHead, TableRow, TableBody, TableCell, TableHeader, Icon, IconButton, Label, Button, Checkbox, RadioButton, Tabs, Tab, TabTitle, TextField, TextArea, SearchField, Switch, NumericInput, FieldItem, FieldItemRow, FieldSet, BreadcrumbList, BreadcrumbItem, Modal, SimpleDialog, AlertDialog, Card, CardHeader, CardTitle, CardOptions, CardContent, CardActions, CardActionsAux, Spacing, Divider, Tooltip, Section, SectionHeader, TitlePage, TitleMainsection, TitleSubsection, Accordion, AccordionItem, Toolbar, ToolbarSection, Tag, TagList, Pagination, Notification, Link, Spinner, PropertyName, PropertyValue, PropertyValuePair, PropertyValueList, Toast, HelperClasses, Select, // FIXME: CMEM-3742: include as own element
95
95
  MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
96
96
  export * from "./cmem";
97
- export * from "./extensions/react-flow";
97
+ export * from "./extensions";
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": "22.1.0",
4
+ "version": "23.0.0-rc.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",
@@ -110,7 +110,6 @@
110
110
  "@typescript-eslint/parser": "^4.33.0",
111
111
  "babel-jest": "^27.5.1",
112
112
  "chromatic": "^6.5.1",
113
- "copyfiles": "^2.4.1",
114
113
  "css-loader": "3.4.2",
115
114
  "eslint": "^7.32.0",
116
115
  "eslint-config-react-app": "^6.0.0",
@@ -143,7 +142,8 @@
143
142
  "**/node-gyp": "^7.0.0",
144
143
  "**/glob-parent": "^5.1.2",
145
144
  "**/trim": "^0.0.3",
146
- "**/trim-newlines": "^3.0.1"
145
+ "**/trim-newlines": "^3.0.1",
146
+ "**/minimist": "^1.2.6"
147
147
  },
148
148
  "eslintConfig": {
149
149
  "extends": [
@@ -0,0 +1,35 @@
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
+ .#{eccgui}-configuration--colors__react-flow-graph {
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
+ }
@@ -0,0 +1,29 @@
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
+ .#{eccgui}-configuration--colors__react-flow-linking {
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
+ }
@@ -0,0 +1,22 @@
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
+ .#{eccgui}-configuration--colors__react-flow-workflow {
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,3 +1,3 @@
1
- @import "colors-graph.module";
2
- @import "colors-workflow.module";
3
- @import "colors-linking.module";
1
+ @import "colors-graph";
2
+ @import "colors-workflow";
3
+ @import "colors-linking";
@@ -1,6 +1,5 @@
1
1
  import { EdgeDefault } from "./../../../extensions/react-flow/edges/EdgeDefault";
2
2
  import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
3
- import colors from "./_colors-graph.module.scss";
4
3
 
5
4
  const edgeTypes = {
6
5
  default: EdgeDefault,
@@ -25,5 +24,4 @@ const nodeTypes = {
25
24
  export {
26
25
  edgeTypes,
27
26
  nodeTypes,
28
- colors,
29
27
  }
@@ -1,7 +1,6 @@
1
1
 
2
2
  import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep";
3
3
  import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
4
- import colors from "./_colors-linking.module.scss";
5
4
 
6
5
  const edgeTypes = {
7
6
  default: EdgeStep,
@@ -24,5 +23,4 @@ const nodeTypes = {
24
23
  export {
25
24
  edgeTypes,
26
25
  nodeTypes,
27
- colors,
28
26
  }
@@ -1,6 +1,5 @@
1
1
  import { EdgeStep } from "./../../../extensions/react-flow/edges/EdgeStep";
2
2
  import { NodeDefault } from "./../../../extensions/react-flow/nodes/NodeDefault";
3
- import colors from "./_colors-workflow.module.scss";
4
3
 
5
4
  const edgeTypes = {
6
5
  default: EdgeStep,
@@ -21,5 +20,4 @@ const nodeTypes = {
21
20
  export {
22
21
  edgeTypes,
23
22
  nodeTypes,
24
- colors,
25
23
  }