chem-generic-ui 0.1.48 → 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.
- package/README.md +0 -0
- package/dist/bundle.js +25 -0
- package/package.json +7 -24
- package/dist/app.js +0 -104
- package/dist/asserts/main.css +0 -465
- package/dist/asserts/main.scss +0 -496
- package/dist/components/admin/ElementManager.js +0 -54
- package/dist/components/details/GenDSDetails.js +0 -273
- package/dist/components/details/GenSgDetails.js +0 -566
- package/dist/components/dnd/DragDropItemTypes.js +0 -20
- package/dist/components/dnd/GenericElDropTarget.js +0 -274
- package/dist/components/dnd/GridDnD.js +0 -77
- package/dist/components/dnd/PanelDnD.js +0 -171
- package/dist/components/fields/ButtonConfirm.js +0 -76
- package/dist/components/fields/ButtonTooltip.js +0 -88
- package/dist/components/fields/FieldLabel.js +0 -38
- package/dist/components/fields/GenDSMisType.js +0 -44
- package/dist/components/fields/GenFormGroupCb.js +0 -31
- package/dist/components/fields/GenProperties.js +0 -83
- package/dist/components/fields/GenPropertiesFields.js +0 -616
- package/dist/components/flow/FlowView.js +0 -88
- package/dist/components/flow/FlowViewerModal.js +0 -83
- package/dist/components/flow/LayerNode.js +0 -59
- package/dist/components/layers/GenPropertiesLayer.js +0 -280
- package/dist/components/layers/LayerModal.js +0 -81
- package/dist/components/layers/LayersLayout.js +0 -88
- package/dist/components/models/Attachment.js +0 -73
- package/dist/components/models/GenericSubField.js +0 -37
- package/dist/components/table/DropLinkRenderer.js +0 -55
- package/dist/components/table/DropRenderer.js +0 -45
- package/dist/components/table/DropTextRenderer.js +0 -45
- package/dist/components/table/GenericElTableDropTarget.js +0 -252
- package/dist/components/table/GridBtn.js +0 -102
- package/dist/components/table/GridEntry.js +0 -163
- package/dist/components/table/SamOption.js +0 -87
- package/dist/components/table/SelectRenderer.js +0 -52
- package/dist/components/table/TableRecord.js +0 -454
- package/dist/components/table/UConverterRenderer.js +0 -41
- package/dist/components/tools/collate.js +0 -103
- package/dist/components/tools/orten.js +0 -294
- package/dist/components/tools/utils.js +0 -593
- package/dist/data/SystemUnits.js +0 -588
- package/dist/data/systemUnits.json +0 -430
- package/dist/index.css +0 -13
- package/dist/index.js +0 -38
- package/dist/logo.svg +0 -1
- package/dist/simulations/SimWF.js +0 -123
- package/dist/simulations/SimuDS.js +0 -118
- package/dist/simulations/SimuSG.js +0 -123
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _GenDSDetails = _interopRequireDefault(require("../components/details/GenDSDetails"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
-
|
|
22
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
23
|
-
|
|
24
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
-
|
|
26
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
|
-
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
-
|
|
30
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
|
-
|
|
32
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
|
-
|
|
34
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
|
-
|
|
36
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
|
-
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
|
-
|
|
40
|
-
var SimuDS = /*#__PURE__*/function (_Component) {
|
|
41
|
-
_inherits(SimuDS, _Component);
|
|
42
|
-
|
|
43
|
-
var _super = _createSuper(SimuDS);
|
|
44
|
-
|
|
45
|
-
function SimuDS(props) {
|
|
46
|
-
var _this;
|
|
47
|
-
|
|
48
|
-
_classCallCheck(this, SimuDS);
|
|
49
|
-
|
|
50
|
-
_this = _super.call(this, props);
|
|
51
|
-
_this.state = {
|
|
52
|
-
genericDS: {},
|
|
53
|
-
klass: {}
|
|
54
|
-
};
|
|
55
|
-
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
56
|
-
return _this;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
_createClass(SimuDS, [{
|
|
60
|
-
key: "componentDidMount",
|
|
61
|
-
value: function componentDidMount() {
|
|
62
|
-
var _this2 = this;
|
|
63
|
-
|
|
64
|
-
fetch('ds_details.json', {
|
|
65
|
-
headers: {
|
|
66
|
-
'Content-Type': 'application/json',
|
|
67
|
-
Accept: 'application/json'
|
|
68
|
-
}
|
|
69
|
-
}).then(function (response) {
|
|
70
|
-
return response.json();
|
|
71
|
-
}).then(function (json) {
|
|
72
|
-
fetch('ds_klass.json', {
|
|
73
|
-
headers: {
|
|
74
|
-
'Content-Type': 'application/json',
|
|
75
|
-
Accept: 'application/json'
|
|
76
|
-
}
|
|
77
|
-
}).then(function (response) {
|
|
78
|
-
return response.json();
|
|
79
|
-
}).then(function (kjson) {
|
|
80
|
-
_this2.setState({
|
|
81
|
-
genericDS: json,
|
|
82
|
-
klass: kjson
|
|
83
|
-
});
|
|
84
|
-
}).catch(function (errorMessage) {
|
|
85
|
-
console.log(errorMessage);
|
|
86
|
-
});
|
|
87
|
-
}).catch(function (errorMessage) {
|
|
88
|
-
console.log(errorMessage);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}, {
|
|
92
|
-
key: "handleChange",
|
|
93
|
-
value: function handleChange(newObj) {
|
|
94
|
-
this.setState({
|
|
95
|
-
genericDS: newObj
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}, {
|
|
99
|
-
key: "render",
|
|
100
|
-
value: function render() {
|
|
101
|
-
var _this$state = this.state,
|
|
102
|
-
genericDS = _this$state.genericDS,
|
|
103
|
-
klass = _this$state.klass;
|
|
104
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h2", null, "GenericDSDetails"), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_GenDSDetails.default, {
|
|
105
|
-
uiCtrl: true,
|
|
106
|
-
genericDS: genericDS,
|
|
107
|
-
klass: klass,
|
|
108
|
-
kind: "1H NMR",
|
|
109
|
-
onChange: this.handleChange
|
|
110
|
-
})));
|
|
111
|
-
}
|
|
112
|
-
}]);
|
|
113
|
-
|
|
114
|
-
return SimuDS;
|
|
115
|
-
}(_react.Component);
|
|
116
|
-
|
|
117
|
-
var _default = SimuDS;
|
|
118
|
-
exports.default = _default;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _reactDnd = require("react-dnd");
|
|
13
|
-
|
|
14
|
-
var _reactDndHtml5Backend = _interopRequireDefault(require("react-dnd-html5-backend"));
|
|
15
|
-
|
|
16
|
-
var _GenSgDetails = _interopRequireDefault(require("../components/details/GenSgDetails"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
-
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
-
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
37
|
-
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var SimuSG = /*#__PURE__*/function (_Component) {
|
|
45
|
-
_inherits(SimuSG, _Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(SimuSG);
|
|
48
|
-
|
|
49
|
-
function SimuSG(props) {
|
|
50
|
-
var _this;
|
|
51
|
-
|
|
52
|
-
_classCallCheck(this, SimuSG);
|
|
53
|
-
|
|
54
|
-
_this = _super.call(this, props);
|
|
55
|
-
_this.state = {
|
|
56
|
-
segment: {},
|
|
57
|
-
klass: {}
|
|
58
|
-
};
|
|
59
|
-
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
60
|
-
return _this;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
_createClass(SimuSG, [{
|
|
64
|
-
key: "componentDidMount",
|
|
65
|
-
value: function componentDidMount() {
|
|
66
|
-
var _this2 = this;
|
|
67
|
-
|
|
68
|
-
fetch('sg_details.json', {
|
|
69
|
-
headers: {
|
|
70
|
-
'Content-Type': 'application/json',
|
|
71
|
-
Accept: 'application/json'
|
|
72
|
-
}
|
|
73
|
-
}).then(function (response) {
|
|
74
|
-
return response.json();
|
|
75
|
-
}).then(function (json) {
|
|
76
|
-
console.log(json);
|
|
77
|
-
fetch('sg_klass.json', {
|
|
78
|
-
headers: {
|
|
79
|
-
'Content-Type': 'application/json',
|
|
80
|
-
Accept: 'application/json'
|
|
81
|
-
}
|
|
82
|
-
}).then(function (response) {
|
|
83
|
-
return response.json();
|
|
84
|
-
}).then(function (kjson) {
|
|
85
|
-
_this2.setState({
|
|
86
|
-
segment: json,
|
|
87
|
-
klass: kjson
|
|
88
|
-
});
|
|
89
|
-
}).catch(function (errorMessage) {
|
|
90
|
-
console.log(errorMessage);
|
|
91
|
-
});
|
|
92
|
-
}).catch(function (errorMessage) {
|
|
93
|
-
console.log(errorMessage);
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}, {
|
|
97
|
-
key: "handleChange",
|
|
98
|
-
value: function handleChange(newObj) {
|
|
99
|
-
this.setState({
|
|
100
|
-
segment: newObj
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
}, {
|
|
104
|
-
key: "render",
|
|
105
|
-
value: function render() {
|
|
106
|
-
var _this$state = this.state,
|
|
107
|
-
segment = _this$state.segment,
|
|
108
|
-
klass = _this$state.klass;
|
|
109
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h2", null, "SegmentDetails"), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_GenSgDetails.default, {
|
|
110
|
-
uiCtrl: true,
|
|
111
|
-
segment: segment,
|
|
112
|
-
klass: klass,
|
|
113
|
-
onChange: this.handleChange
|
|
114
|
-
})));
|
|
115
|
-
}
|
|
116
|
-
}]);
|
|
117
|
-
|
|
118
|
-
return SimuSG;
|
|
119
|
-
}(_react.Component);
|
|
120
|
-
|
|
121
|
-
var _default = (0, _reactDnd.DragDropContext)(_reactDndHtml5Backend.default)(SimuSG);
|
|
122
|
-
|
|
123
|
-
exports.default = _default;
|