chem-generic-ui 0.1.41 → 0.1.44

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 (62) hide show
  1. package/dist/bundle.js +2 -0
  2. package/package.json +15 -2
  3. package/.babelrc +0 -11
  4. package/.eslintrc +0 -23
  5. package/.tool-versions +0 -3
  6. package/public/ds_details.json +0 -57
  7. package/public/ds_klass.json +0 -102
  8. package/public/ds_props.json +0 -54
  9. package/public/favicon.ico +0 -0
  10. package/public/images/not_available.svg +0 -1
  11. package/public/index.html +0 -47
  12. package/public/logo192.png +0 -0
  13. package/public/logo512.png +0 -0
  14. package/public/manifest.json +0 -25
  15. package/public/robots.txt +0 -3
  16. package/public/sg_details.json +0 -2036
  17. package/public/sg_klass.json +0 -850
  18. package/public/test/ds_props.json +0 -54
  19. package/public/units_system.json +0 -430
  20. package/src/asserts/main.css +0 -458
  21. package/src/asserts/main.scss +0 -490
  22. package/src/components/admin/ElementManager.js +0 -28
  23. package/src/components/details/GenDSDetails.js +0 -164
  24. package/src/components/details/GenSgDetails.js +0 -396
  25. package/src/components/dnd/DragDropItemTypes.js +0 -13
  26. package/src/components/dnd/GenericElDropTarget.js +0 -160
  27. package/src/components/dnd/GridDnD.js +0 -42
  28. package/src/components/dnd/PanelDnD.js +0 -85
  29. package/src/components/fields/ButtonConfirm.js +0 -45
  30. package/src/components/fields/ButtonTooltip.js +0 -46
  31. package/src/components/fields/FieldLabel.js +0 -18
  32. package/src/components/fields/GenDSMisType.js +0 -20
  33. package/src/components/fields/GenFormGroupCb.js +0 -17
  34. package/src/components/fields/GenProperties.js +0 -56
  35. package/src/components/fields/GenPropertiesFields.js +0 -318
  36. package/src/components/layers/GenPropertiesLayer.js +0 -176
  37. package/src/components/layers/LayerModal.js +0 -52
  38. package/src/components/layers/LayersLayout.js +0 -68
  39. package/src/components/models/Attachment.js +0 -37
  40. package/src/components/models/GenericSubField.js +0 -10
  41. package/src/components/table/DropLinkRenderer.js +0 -35
  42. package/src/components/table/DropRenderer.js +0 -31
  43. package/src/components/table/DropTextRenderer.js +0 -25
  44. package/src/components/table/GenericElTableDropTarget.js +0 -131
  45. package/src/components/table/GridBtn.js +0 -41
  46. package/src/components/table/GridEntry.js +0 -75
  47. package/src/components/table/SamOption.js +0 -53
  48. package/src/components/table/SelectRenderer.js +0 -34
  49. package/src/components/table/TableRecord.js +0 -254
  50. package/src/components/table/UConverterRenderer.js +0 -24
  51. package/src/components/tools/collate.js +0 -65
  52. package/src/components/tools/orten.js +0 -171
  53. package/src/components/tools/utils.js +0 -414
  54. package/src/data/SystemUnits.js +0 -434
  55. package/src/data/systemUnits.json +0 -430
  56. package/src/index.css +0 -13
  57. package/src/index.html +0 -1
  58. package/src/index.js +0 -45
  59. package/src/logo.svg +0 -1
  60. package/src/simulations/SimuDS.js +0 -52
  61. package/src/simulations/SimuSG.js +0 -54
  62. package/webpack.config.js +0 -45
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "chem-generic-ui",
3
- "version": "0.1.41",
3
+ "version": "0.1.44",
4
4
  "private": false,
5
5
  "author": "",
6
6
  "license": "MIT",
7
- "main": "index.js",
7
+ "main": "src/app.js",
8
+ "module": "src/app.js",
9
+ "files": [
10
+ "dist/bundle.js"
11
+ ],
12
+ "jsdelivr": "dist/bundle.js",
13
+ "unpkg": "dist/bundle.js",
14
+ "exports": {
15
+ "umd": "./dist/bundle.js",
16
+ "default": "./dist/bundle.js"
17
+ },
8
18
  "scripts": {
9
19
  "start": "webpack serve --config ./webpack.config.js --mode development",
10
20
  "build": "webpack --config ./webpack.config.js --mode production",
@@ -43,6 +53,9 @@
43
53
  "react": "^17.0.2",
44
54
  "react-dom": "^17.0.2"
45
55
  },
56
+ "browserslist": [
57
+ "defaults"
58
+ ],
46
59
  "dependencies": {
47
60
  "@fortawesome/fontawesome-svg-core": "^1.3.0",
48
61
  "@fortawesome/free-brands-svg-icons": "^6.0.0",
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
@@ -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
- }
Binary file
@@ -1 +0,0 @@
1
- <svg width="180" height="180" xmlns="http://www.w3.org/2000/svg"><linearGradient id="lg"><stop offset="0%" stop-color="#ffffff"/><stop offset="100%" stop-color="#ffffff"/></linearGradient><rect x="2" y="2" width="176" height="176" style="fill:url(#lg);stroke:#ffffff;stroke-width:2"/><text x="50%" y="40%" font-size="18" text-anchor="middle" alignment-baseline="middle" font-family="monospace, sans-serif" fill="#770000">Preview</text><text x="50%" y="60%" font-size="18" text-anchor="middle" alignment-baseline="middle" font-family="monospace, sans-serif" fill="#770000">not available</text></svg>
package/public/index.html DELETED
@@ -1,47 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <meta name="theme-color" content="#000000" />
8
- <meta
9
- name="description"
10
- content="Web site created using create-react-app"
11
- />
12
- <!-- Latest compiled and minified CSS -->
13
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
14
- <!-- Optional theme -->
15
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
16
- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
17
- <!--
18
- manifest.json provides metadata used when your web app is installed on a
19
- user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
20
- -->
21
- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
22
- <!--
23
- Notice the use of %PUBLIC_URL% in the tags above.
24
- It will be replaced with the URL of the `public` folder during the build.
25
- Only files inside the `public` folder can be referenced from the HTML.
26
-
27
- Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
28
- work correctly both with client-side routing and a non-root public URL.
29
- Learn how to configure a non-root public URL by running `npm run build`.
30
- -->
31
- <title>React App</title>
32
- </head>
33
- <body>
34
- <noscript>You need to enable JavaScript to run this app.</noscript>
35
- <div id="root"></div>
36
- <!--
37
- This HTML file is a template.
38
- If you open it directly in the browser, you will see an empty page.
39
-
40
- You can add webfonts, meta tags, or analytics to this file.
41
- The build step will place the bundled scripts into the <body> tag.
42
-
43
- To begin the development, run `npm start` or `yarn start`.
44
- To create a production bundle, use `npm run build` or `yarn build`.
45
- -->
46
- </body>
47
- </html>
Binary file
Binary file
@@ -1,25 +0,0 @@
1
- {
2
- "short_name": "React App",
3
- "name": "Create React App Sample",
4
- "icons": [
5
- {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- },
10
- {
11
- "src": "logo192.png",
12
- "type": "image/png",
13
- "sizes": "192x192"
14
- },
15
- {
16
- "src": "logo512.png",
17
- "type": "image/png",
18
- "sizes": "512x512"
19
- }
20
- ],
21
- "start_url": ".",
22
- "display": "standalone",
23
- "theme_color": "#000000",
24
- "background_color": "#ffffff"
25
- }
package/public/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow: