chem-generic-ui 0.1.46 → 0.1.49

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 (75) hide show
  1. package/README.md +0 -0
  2. package/dist/bundle.js +25 -2
  3. package/package.json +34 -49
  4. package/.babelrc +0 -11
  5. package/.eslintrc +0 -23
  6. package/.tool-versions +0 -3
  7. package/chem-generic-ui-v0.1.41.tgz +0 -0
  8. package/dist/bundle.js.LICENSE.txt +0 -70
  9. package/dist/ds_details.json +0 -57
  10. package/dist/ds_klass.json +0 -102
  11. package/dist/ds_props.json +0 -54
  12. package/dist/index.html +0 -14
  13. package/dist/sg_details.json +0 -2036
  14. package/dist/sg_klass.json +0 -850
  15. package/dist/units_system.json +0 -430
  16. package/public/ds_details.json +0 -57
  17. package/public/ds_klass.json +0 -102
  18. package/public/ds_props.json +0 -54
  19. package/public/favicon.ico +0 -0
  20. package/public/images/not_available.svg +0 -1
  21. package/public/index.html +0 -47
  22. package/public/logo192.png +0 -0
  23. package/public/logo512.png +0 -0
  24. package/public/manifest.json +0 -25
  25. package/public/robots.txt +0 -3
  26. package/public/sg_details.json +0 -2036
  27. package/public/sg_klass.json +0 -850
  28. package/public/test/ds_props.json +0 -54
  29. package/public/units_system.json +0 -430
  30. package/src/app.js +0 -52
  31. package/src/asserts/bootstrap-theme.min.css +0 -6
  32. package/src/asserts/bootstrap.min.css +0 -6
  33. package/src/asserts/main.css +0 -458
  34. package/src/asserts/main.scss +0 -490
  35. package/src/components/admin/ElementManager.js +0 -28
  36. package/src/components/details/GenDSDetails.js +0 -164
  37. package/src/components/details/GenSgDetails.js +0 -396
  38. package/src/components/dnd/DragDropItemTypes.js +0 -13
  39. package/src/components/dnd/GenericElDropTarget.js +0 -160
  40. package/src/components/dnd/GridDnD.js +0 -42
  41. package/src/components/dnd/PanelDnD.js +0 -85
  42. package/src/components/fields/ButtonConfirm.js +0 -45
  43. package/src/components/fields/ButtonTooltip.js +0 -46
  44. package/src/components/fields/FieldLabel.js +0 -18
  45. package/src/components/fields/GenDSMisType.js +0 -20
  46. package/src/components/fields/GenFormGroupCb.js +0 -17
  47. package/src/components/fields/GenProperties.js +0 -56
  48. package/src/components/fields/GenPropertiesFields.js +0 -440
  49. package/src/components/layers/GenPropertiesLayer.js +0 -178
  50. package/src/components/layers/LayerModal.js +0 -52
  51. package/src/components/layers/LayersLayout.js +0 -68
  52. package/src/components/models/Attachment.js +0 -37
  53. package/src/components/models/GenericSubField.js +0 -10
  54. package/src/components/table/DropLinkRenderer.js +0 -35
  55. package/src/components/table/DropRenderer.js +0 -31
  56. package/src/components/table/DropTextRenderer.js +0 -25
  57. package/src/components/table/GenericElTableDropTarget.js +0 -131
  58. package/src/components/table/GridBtn.js +0 -41
  59. package/src/components/table/GridEntry.js +0 -75
  60. package/src/components/table/SamOption.js +0 -53
  61. package/src/components/table/SelectRenderer.js +0 -34
  62. package/src/components/table/TableRecord.js +0 -254
  63. package/src/components/table/UConverterRenderer.js +0 -24
  64. package/src/components/tools/collate.js +0 -65
  65. package/src/components/tools/orten.js +0 -171
  66. package/src/components/tools/utils.js +0 -414
  67. package/src/data/SystemUnits.js +0 -434
  68. package/src/data/systemUnits.json +0 -430
  69. package/src/index.css +0 -13
  70. package/src/index.html +0 -1
  71. package/src/index.js +0 -45
  72. package/src/logo.svg +0 -1
  73. package/src/simulations/SimuDS.js +0 -52
  74. package/src/simulations/SimuSG.js +0 -54
  75. package/webpack.config.js +0 -46
package/package.json CHANGED
@@ -1,90 +1,75 @@
1
1
  {
2
2
  "name": "chem-generic-ui",
3
- "version": "0.1.46",
3
+ "version": "0.1.49",
4
4
  "private": false,
5
- "author": "",
6
5
  "license": "MIT",
7
- "main": "dist/bundle.js",
8
- "module": "dist/bundle.js",
9
- "jsdelivr": "dist/bundle.js",
10
- "unpkg": "dist/bundle.js",
11
- "exports": {
12
- "umd": "./dist/bundle.js",
13
- "default": "./dist/bundle.js"
14
- },
15
6
  "scripts": {
16
- "start": "webpack serve --config ./webpack.config.js --mode development",
17
- "build": "webpack --config ./webpack.config.js --mode production",
18
- "test": "echo \"Error: no test specified\" && exit 0"
7
+ "start": "react-scripts start",
8
+ "build": "react-scripts build",
9
+ "compile": "rm -rf dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files",
10
+ "build-css": "node-sass src/asserts/ -o dist",
11
+ "build-webpack": "react-scripts build && webpack --config webpack.config.js",
12
+ "sass": "sass src/asserts:src/asserts --watch --no-source-map",
13
+ "test": "react-scripts test --env=jsdom --testPathIgnorePatterns=src/__tests__/helper/* src/__tests__/e2e/*",
14
+ "eject": "react-scripts eject"
15
+ },
16
+ "peerDependencies": {
17
+ "react": "^17.0.2",
18
+ "react-dom": "^17.0.2"
19
19
  },
20
- "keywords": [],
21
20
  "devDependencies": {
22
- "@babel/cli": "^7.0.0",
23
- "@babel/core": "^7.17.7",
24
- "@babel/eslint-parser": "^7.15.0",
25
- "@babel/node": "^7.16.8",
26
- "@babel/preset-env": "^7.16.11",
27
- "@babel/preset-react": "^7.16.7",
28
- "babel-eslint": "^10.1.0",
29
- "babel-loader": "^8.2.3",
30
- "babel-preset-react-app": "^10.0.0",
31
- "clean-webpack-plugin": "^3.0.0",
32
- "dotenv-webpack": "^5.0.0",
33
- "eslint": "^7.12.1",
21
+ "@babel/plugin-transform-runtime": "^7.17.0",
34
22
  "eslint-config-airbnb": "^16.1.0",
35
- "eslint-config-prettier": "^6.15.0",
36
- "eslint-loader": "^4.0.2",
37
23
  "eslint-plugin-import": "^2.8.0",
38
24
  "eslint-plugin-jsx-a11y": "^6.0.2",
39
- "eslint-plugin-prettier": "^3.1.4",
40
25
  "eslint-plugin-react": "^7.4.0",
41
26
  "eslint-plugin-react-hooks": "^4.3.0",
42
- "prettier": "^2.1.2",
43
- "react-hot-loader": "^4.13.0",
27
+ "react-scripts": "4.0.1",
44
28
  "redux-logger": "^3.0.6",
45
- "webpack": "^5.70.0",
46
- "webpack-cli": "^4.9.2",
47
- "webpack-dev-server": "^4.7.4"
48
- },
49
- "peerDependencies": {
50
- "react": "^17.0.2",
51
- "react-dom": "^17.0.2"
29
+ "uglifyjs-webpack-plugin": "^2.2.0",
30
+ "webpack-cli": "^4.9.2"
52
31
  },
32
+ "main": "dist/bundle.js",
33
+ "module": "dist/bundle.js",
34
+ "files": [
35
+ "dist",
36
+ "README.md"
37
+ ],
53
38
  "browserslist": [
54
39
  "defaults"
55
40
  ],
56
41
  "dependencies": {
42
+ "@babel/cli": "^7.0.0",
43
+ "@babel/core": "^7.0.0",
44
+ "@babel/eslint-parser": "^7.15.0",
45
+ "@babel/preset-env": "7.3.1",
46
+ "@babel/preset-react": "7.0.0",
57
47
  "@fortawesome/fontawesome-svg-core": "^1.3.0",
58
48
  "@fortawesome/free-brands-svg-icons": "^6.0.0",
59
49
  "@fortawesome/free-regular-svg-icons": "^6.0.0",
60
50
  "@fortawesome/free-solid-svg-icons": "^6.0.0",
61
51
  "@fortawesome/react-fontawesome": "^0.1.17",
62
- "babel-plugin-transform-react-class-to-function": "^1.2.2",
63
- "css-loader": "^6.7.1",
64
- "file-loader": "^6.2.0",
65
- "html-loader": "^3.1.0",
66
- "html-webpack-plugin": "^5.5.0",
67
- "image-webpack-loader": "^8.1.0",
52
+ "css-loader": "4.3.0",
53
+ "glob": "^7.2.0",
68
54
  "lodash": "^4.17.21",
69
55
  "mini-css-extract-plugin": "0.11.3",
70
- "node-sass": "^7.0.1",
71
56
  "numeral": "^1.5.3",
72
- "path": "^0.12.7",
73
57
  "prop-types": "^15.8.1",
74
58
  "react": "^17.0.2",
75
- "react-bootstrap": "^0.33.1",
59
+ "react-bootstrap": "~0.33.1",
76
60
  "react-dnd": "^2.6.0",
77
61
  "react-dnd-html5-backend": "^2.6.0",
78
62
  "react-dom": "^17.0.2",
63
+ "react-draggable": "^4.4.3",
79
64
  "react-dropzone": "^3.6.0",
65
+ "react-flow-renderer": "^9.6.4",
80
66
  "react-redux": "^7.2.4",
81
67
  "react-select": "5.2.2",
82
68
  "redux": "^4.1.0",
83
69
  "redux-immutable": "^4.0.0",
84
70
  "redux-thunk": "^2.0.0",
85
71
  "sass": "^1.49.9",
86
- "sass-loader": "^12.6.0",
87
- "style-loader": "^3.3.1",
72
+ "sass-loader": "8.0.2",
88
73
  "uuid": "^8.3.2"
89
74
  }
90
75
  }
package/.babelrc DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-env", "@babel/preset-react","react-app"]
3
- }
4
-
5
- // "plugins": [
6
- // "babel-plugin-transform-react-class-to-function",
7
- // "@babel/plugin-proposal-object-rest-spread",
8
- // "@babel/plugin-transform-classes",
9
- // "@babel/plugin-proposal-class-properties",
10
- // "@babel/plugin-transform-react-jsx"
11
- // ]
package/.eslintrc DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "extends": ["airbnb", "plugin:react/recommended", "plugin:react-hooks/recommended"],
3
- "plugins": [
4
- "react"
5
- ],
6
- "parser": "@babel/eslint-parser",
7
- "env": {
8
- "browser": true,
9
- "node": true
10
- },
11
- "rules": {
12
- "no-console": ["off"],
13
- "comma-dangle": [1,"only-multiline"],
14
- // "react/destructuring-assignment": "off",
15
- // "react/no-array-index-key": "off",
16
- "react/forbid-prop-types": 0,
17
- // "jsx-a11y/no-static-element-interactions": 0,
18
- "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
19
- // "class-methods-use-this": 0,
20
- // "import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
21
- "prefer-destructuring": ["error", {"object": true, "array": false}]
22
- }
23
- }
package/.tool-versions DELETED
@@ -1,3 +0,0 @@
1
- ruby 2.6.6
2
- nodejs 14.16.0
3
- yarn 1.22.10
Binary file
@@ -1,70 +0,0 @@
1
- /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
6
-
7
- /*!
8
- Copyright (c) 2018 Jed Watson.
9
- Licensed under the MIT License (MIT), see
10
- http://jedwatson.github.io/classnames
11
- */
12
-
13
- /*!
14
- * Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com
15
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
16
- * Copyright 2022 Fonticons, Inc.
17
- */
18
-
19
- /*! @preserve
20
- * numeral.js
21
- * version : 1.5.6
22
- * author : Adam Draper
23
- * license : MIT
24
- * http://adamwdraper.github.com/Numeral-js/
25
- */
26
-
27
- /**
28
- * @license
29
- * Lodash <https://lodash.com/>
30
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
31
- * Released under MIT license <https://lodash.com/license>
32
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
33
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
34
- */
35
-
36
- /** @license React v0.20.2
37
- * scheduler.production.min.js
38
- *
39
- * Copyright (c) Facebook, Inc. and its affiliates.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */
44
-
45
- /** @license React v16.13.1
46
- * react-is.production.min.js
47
- *
48
- * Copyright (c) Facebook, Inc. and its affiliates.
49
- *
50
- * This source code is licensed under the MIT license found in the
51
- * LICENSE file in the root directory of this source tree.
52
- */
53
-
54
- /** @license React v17.0.2
55
- * react-dom.production.min.js
56
- *
57
- * Copyright (c) Facebook, Inc. and its affiliates.
58
- *
59
- * This source code is licensed under the MIT license found in the
60
- * LICENSE file in the root directory of this source tree.
61
- */
62
-
63
- /** @license React v17.0.2
64
- * react.production.min.js
65
- *
66
- * Copyright (c) Facebook, Inc. and its affiliates.
67
- *
68
- * This source code is licensed under the MIT license found in the
69
- * LICENSE file in the root directory of this source tree.
70
- */
@@ -1,57 +0,0 @@
1
- {
2
- "dataset_klass_id": 1,
3
- "element_type": "Container",
4
- "element_id": "2fc641d0-a46f-11ec-93d3-33042392e5c2",
5
- "properties": {
6
- "eln": {
7
- "version": "0.9.1",
8
- "base_revision": "413824bce4a7adeb74bb3258f94ab9e3fc87dc09",
9
- "current_revision": "75f3702e77b841f44fc1d1b8e2650bba35329f59\n"
10
- },
11
- "uuid": "3475e057-60ae-4f7c-9ec1-516b29082d64",
12
- "klass": "DatasetKlass",
13
- "layers": {
14
- "params": {
15
- "key": "params",
16
- "cols": 3,
17
- "label": "Parameter",
18
- "fields": [
19
- {
20
- "type": "system-defined",
21
- "field": "temp",
22
- "label": "Temperature",
23
- "default": "",
24
- "position": 1,
25
- "description": "measurement temperature",
26
- "option_layers": "temperature"
27
- }
28
- ],
29
- "position": 100,
30
- "condition": ""
31
- },
32
- "system": {
33
- "key": "system",
34
- "cols": 3,
35
- "label": "Settings",
36
- "fields": [
37
- {
38
- "type": "integer",
39
- "field": "scan",
40
- "label": "Number of Scans",
41
- "default": "",
42
- "position": 1
43
- }
44
- ],
45
- "position": 100,
46
- "condition": ""
47
- }
48
- },
49
- "select_options": {}
50
- },
51
- "klass_ols": "CHMO:0000593",
52
- "klass_label": "1H nuclear magnetic resonance spectroscopy (1H NMR)",
53
- "changed": false,
54
- "id": "2fd3fd70-a46f-11ec-93d3-33042392e5c2",
55
- "is_new": true,
56
- "_checksum": "20a39d76e0299642ac75686f5c2de76f326271d713045365d2c9c7343020b698"
57
- }
@@ -1,102 +0,0 @@
1
- {
2
- "id": 1,
3
- "uuid": "3475e057-60ae-4f7c-9ec1-516b29082d64",
4
- "ols_term_id": "CHMO:0000593",
5
- "label": "1H nuclear magnetic resonance spectroscopy (1H NMR)",
6
- "desc": "1H nuclear magnetic resonance spectroscopy (1H NMR)",
7
- "properties_template": {
8
- "eln": {
9
- "version": "0.9.1",
10
- "base_revision": "413824bce4a7adeb74bb3258f94ab9e3fc87dc09",
11
- "current_revision": "75f3702e77b841f44fc1d1b8e2650bba35329f59\n"
12
- },
13
- "uuid": "3475e057-60ae-4f7c-9ec1-516b29082d64",
14
- "klass": "DatasetKlass",
15
- "layers": {
16
- "params": {
17
- "key": "params",
18
- "cols": 3,
19
- "label": "Parameter",
20
- "fields": [
21
- {
22
- "type": "system-defined",
23
- "field": "temp",
24
- "label": "Temperature",
25
- "default": "",
26
- "position": 1,
27
- "description": "measurement temperature",
28
- "option_layers": "temperature"
29
- }
30
- ],
31
- "position": 100,
32
- "condition": ""
33
- },
34
- "system": {
35
- "key": "system",
36
- "cols": 3,
37
- "label": "Settings",
38
- "fields": [
39
- {
40
- "type": "integer",
41
- "field": "scan",
42
- "label": "Number of Scans",
43
- "default": "",
44
- "position": 1
45
- }
46
- ],
47
- "position": 100,
48
- "condition": ""
49
- }
50
- },
51
- "select_options": {}
52
- },
53
- "properties_release": {
54
- "eln": {
55
- "version": "0.9.1",
56
- "base_revision": "413824bce4a7adeb74bb3258f94ab9e3fc87dc09",
57
- "current_revision": "75f3702e77b841f44fc1d1b8e2650bba35329f59\n"
58
- },
59
- "uuid": "3475e057-60ae-4f7c-9ec1-516b29082d64",
60
- "klass": "DatasetKlass",
61
- "layers": {
62
- "params": {
63
- "key": "params",
64
- "cols": 3,
65
- "label": "Parameter",
66
- "fields": [
67
- {
68
- "type": "system-defined",
69
- "field": "temp",
70
- "label": "Temperature",
71
- "default": "",
72
- "position": 1,
73
- "description": "measurement temperature",
74
- "option_layers": "temperature"
75
- }
76
- ],
77
- "position": 100,
78
- "condition": ""
79
- },
80
- "system": {
81
- "key": "system",
82
- "cols": 3,
83
- "label": "Settings",
84
- "fields": [
85
- {
86
- "type": "integer",
87
- "field": "scan",
88
- "label": "Number of Scans",
89
- "default": "",
90
- "position": 1
91
- }
92
- ],
93
- "position": 100,
94
- "condition": ""
95
- }
96
- },
97
- "select_options": {}
98
- },
99
- "is_active": true,
100
- "place": 10,
101
- "released_at": "02.08.2021, 19:26"
102
- }
@@ -1,54 +0,0 @@
1
- {
2
- "eln": {
3
- "version": "0.9.1",
4
- "base_revision": "413824bce4a7adeb74bb3258f94ab9e3fc87dc09",
5
- "current_revision": "75f3702e77b841f44fc1d1b8e2650bba35329f59\n"
6
- },
7
- "uuid": "27f2d3b7-57bd-4eea-bb49-bd718d68077f",
8
- "klass": "Dataset",
9
- "layers": {
10
- "params": {
11
- "wf": false,
12
- "key": "params",
13
- "cols": 3,
14
- "label": "Parameter",
15
- "layer": "params",
16
- "fields": [
17
- {
18
- "type": "system-defined",
19
- "field": "temp",
20
- "label": "Temperature",
21
- "value": "18",
22
- "default": "",
23
- "position": 1,
24
- "description": "measurement temperature",
25
- "value_system": "C",
26
- "option_layers": "temperature"
27
- }
28
- ],
29
- "position": 100,
30
- "condition": ""
31
- },
32
- "system": {
33
- "wf": false,
34
- "key": "system",
35
- "cols": 3,
36
- "label": "Settings",
37
- "layer": "system",
38
- "fields": [
39
- {
40
- "type": "integer",
41
- "field": "scan",
42
- "label": "Number of Scans",
43
- "value": 2,
44
- "default": "",
45
- "position": 1
46
- }
47
- ],
48
- "position": 100,
49
- "condition": ""
50
- }
51
- },
52
- "klass_uuid": "3475e057-60ae-4f7c-9ec1-516b29082d64",
53
- "select_options": {}
54
- }
package/dist/index.html DELETED
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <!-- Latest compiled and minified CSS -->
5
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
6
- <!-- Optional theme -->
7
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
8
- <title>The Minimal React Webpack Babel Setup</title>
9
- </head>
10
- <body>
11
- <div id="generic"></div>
12
- <script src="./bundle.js"></script>
13
- </body>
14
- </html>