@singularsystems/neo-react 1.0.0-beta.7 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +138 -0
- package/dist/Modules/Types.d.ts +13 -0
- package/dist/Modules/Types.js +8 -0
- package/dist/React/AutoRunner.js +5 -1
- package/dist/ReactComponents/Card.d.ts +1 -1
- package/dist/ReactComponents/Collapsable.d.ts +1 -1
- package/dist/ReactComponents/ColorPicker.d.ts +6 -4
- package/dist/ReactComponents/ColorPicker.js +24 -9
- package/dist/ReactComponents/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/ReactComponents/ContextMenu/ContextMenuContainer.d.ts +1 -1
- package/dist/ReactComponents/ContextMenu/ContextMenuState.js +2 -1
- package/dist/ReactComponents/DatePicker.d.ts +1 -1
- package/dist/ReactComponents/DropDown/AutoCompleteDropDown.d.ts +1 -1
- package/dist/ReactComponents/DropDown/AutoCompleteDropDown.js +1 -2
- package/dist/ReactComponents/DropDown/DropDown.d.ts +1 -1
- package/dist/ReactComponents/DropDown/DropDown.js +11 -7
- package/dist/ReactComponents/DropDown/DropDownBase.d.ts +2 -2
- package/dist/ReactComponents/DropDown/LookupHelper.d.ts +4 -4
- package/dist/ReactComponents/ErrorHandler.js +2 -1
- package/dist/ReactComponents/FileManager/FileBasicInput.d.ts +1 -1
- package/dist/ReactComponents/FileManager/FileBasicInput.js +2 -1
- package/dist/ReactComponents/FileManager/FileContext.d.ts +1 -1
- package/dist/ReactComponents/FileManager/FileDropArea.d.ts +1 -1
- package/dist/ReactComponents/FileManager/FileInput.d.ts +1 -1
- package/dist/ReactComponents/FileManager/FileUploadButton.d.ts +1 -1
- package/dist/ReactComponents/FileManager/FileUploadProgress.d.ts +1 -1
- package/dist/ReactComponents/Form.d.ts +1 -1
- package/dist/ReactComponents/FormContext.d.ts +1 -1
- package/dist/ReactComponents/FormContext.js +2 -1
- package/dist/ReactComponents/FormGroup/FormGroup.d.ts +1 -1
- package/dist/ReactComponents/FormGroup/FormGroup.js +2 -1
- package/dist/ReactComponents/FormGroup/FormGroupFloating.d.ts +1 -1
- package/dist/ReactComponents/FormGroup/FormGroupInline.d.ts +1 -1
- package/dist/ReactComponents/Grid/ButtonColumn.d.ts +1 -1
- package/dist/ReactComponents/Grid/ButtonColumn.js +3 -2
- package/dist/ReactComponents/Grid/Column.d.ts +1 -1
- package/dist/ReactComponents/Grid/Grid.d.ts +2 -2
- package/dist/ReactComponents/Grid/Row.d.ts +2 -2
- package/dist/ReactComponents/Grid/Row.js +4 -2
- package/dist/ReactComponents/GridLayout.d.ts +1 -1
- package/dist/ReactComponents/IColorPicker.d.ts +7 -0
- package/dist/ReactComponents/IColorPicker.js +1 -0
- package/dist/ReactComponents/Icons/FontAwesomeIconFactory.js +2 -1
- package/dist/ReactComponents/Icons/IconFactory.js +2 -1
- package/dist/ReactComponents/Icons/MaterialSymbolsFontFactory.js +1 -2
- package/dist/ReactComponents/Input.d.ts +1 -1
- package/dist/ReactComponents/InputHelpers.d.ts +1 -1
- package/dist/ReactComponents/Link.d.ts +1 -1
- package/dist/ReactComponents/Loader.d.ts +1 -1
- package/dist/ReactComponents/Modal/Modal.d.ts +1 -1
- package/dist/ReactComponents/Modal/ModalContainer.d.ts +1 -1
- package/dist/ReactComponents/Modal/ModalPortal.d.ts +1 -1
- package/dist/ReactComponents/Notifications/Alert.d.ts +1 -1
- package/dist/ReactComponents/Notifications/Toast.d.ts +1 -1
- package/dist/ReactComponents/Notifications/ToastContainer.d.ts +1 -1
- package/dist/ReactComponents/NumberInput.d.ts +1 -1
- package/dist/ReactComponents/Paging/BasicPagerControls.d.ts +1 -1
- package/dist/ReactComponents/Paging/PageSizeControl.d.ts +1 -1
- package/dist/ReactComponents/Paging/Pager.d.ts +1 -1
- package/dist/ReactComponents/ProgressBar.d.ts +1 -1
- package/dist/ReactComponents/PropTypes.d.ts +1 -1
- package/dist/ReactComponents/PropTypes.js +3 -1
- package/dist/ReactComponents/RadioList.d.ts +1 -1
- package/dist/ReactComponents/Slider.d.ts +1 -1
- package/dist/ReactComponents/Slider.js +1 -1
- package/dist/ReactComponents/Tabs/Tab.d.ts +3 -3
- package/dist/ReactComponents/Tabs/Tab.js +1 -2
- package/dist/ReactComponents/Tabs/TabContainer.d.ts +1 -1
- package/dist/ReactComponents/Tooltip.d.ts +7 -3
- package/dist/ReactComponents/TooltipHelper.d.ts +1 -0
- package/dist/ReactComponents/TooltipHelper.js +7 -3
- package/dist/ReactComponents/TooltipProvider.d.ts +1 -1
- package/dist/ReactComponents/ValidationSummary.d.ts +1 -1
- package/dist/Routing/MenuRoute.js +2 -0
- package/dist/Routing/PageLeaveHandler.js +2 -1
- package/dist/Routing/RoutingState.js +2 -1
- package/dist/Routing/ViewParameter.js +2 -1
- package/dist/Routing/ViewParameterList.d.ts +2 -1
- package/dist/Routing/ViewParameterList.js +5 -0
- package/dist/Services/DisposeHelper.js +2 -1
- package/dist/Views/ViewBase.js +1 -1
- package/dist/Views/ViewModelBase.d.ts +3 -1
- package/dist/Views/ViewModelBase.js +1 -5
- package/package.json +12 -10
- package/styles/ColorPicker.scss +1 -2
- package/dist/React/Decorators.d.ts +0 -4
- package/dist/React/Decorators.js +0 -15
- package/dist/React/Utils.d.ts +0 -2
- package/dist/React/Utils.js +0 -15
|
@@ -106,11 +106,7 @@ var ViewModelBase = /** @class */ (function (_super) {
|
|
|
106
106
|
}
|
|
107
107
|
else if (viewModel.neo) {
|
|
108
108
|
// Constructor
|
|
109
|
-
|
|
110
|
-
if (taskRunner) {
|
|
111
|
-
viewModelInstance.taskRunner = taskRunner;
|
|
112
|
-
}
|
|
113
|
-
return viewModelInstance;
|
|
109
|
+
return new viewModel(taskRunner);
|
|
114
110
|
}
|
|
115
111
|
else {
|
|
116
112
|
// Callback
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@singularsystems/neo-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "React application logic and components for the Neo client library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
13
|
-
"styles"
|
|
13
|
+
"styles",
|
|
14
|
+
"CHANGELOG.md"
|
|
14
15
|
],
|
|
15
16
|
"author": "Singular Systems",
|
|
16
17
|
"license": "ISC",
|
|
@@ -20,21 +21,22 @@
|
|
|
20
21
|
"@types/jest": "29.5.1",
|
|
21
22
|
"@types/memoize-one": "5.1.2",
|
|
22
23
|
"@types/node": "18.16.3",
|
|
23
|
-
"@types/react": "18.2.
|
|
24
|
+
"@types/react": "18.2.64",
|
|
24
25
|
"@types/react-custom-scrollbars": "^4.0.6",
|
|
25
26
|
"@types/react-dom": "18.2.3",
|
|
26
27
|
"@types/react-router": "5.1.18",
|
|
27
28
|
"@types/react-router-dom": "5.3.3",
|
|
29
|
+
"decimal.js-light": "2.5.1",
|
|
28
30
|
"react-scripts": "5.0.1",
|
|
29
|
-
"typescript": "5.
|
|
31
|
+
"typescript": "5.4.2"
|
|
30
32
|
},
|
|
31
33
|
"dependencies": {
|
|
32
|
-
"@singularsystems/neo-core": "1.0.
|
|
34
|
+
"@singularsystems/neo-core": "1.0.1",
|
|
33
35
|
"@types/rc-slider": "^8.6.5",
|
|
34
36
|
"@types/react-color": "^3.0.1",
|
|
35
|
-
"axios": "1.
|
|
37
|
+
"axios": "1.6.7",
|
|
36
38
|
"history": "4.10.1",
|
|
37
|
-
"inversify": "^6.0.
|
|
39
|
+
"inversify": "^6.0.2",
|
|
38
40
|
"memoize-one": "6.0.0",
|
|
39
41
|
"mobx": "6.9.0",
|
|
40
42
|
"mobx-react": "7.6.0",
|
|
@@ -47,8 +49,8 @@
|
|
|
47
49
|
"tslib": "2.5.0"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
|
-
"@singularsystems/neo-core": ">=1.0.
|
|
51
|
-
"axios": "1.
|
|
52
|
+
"@singularsystems/neo-core": ">=1.0.1",
|
|
53
|
+
"axios": ">=1.6.2",
|
|
52
54
|
"inversify": ">=5.0.1",
|
|
53
55
|
"mobx": ">=6.9.0",
|
|
54
56
|
"mobx-react": ">=7.6.0",
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
"react-router": "^5.0.0",
|
|
58
60
|
"react-router-dom": "^5.0.0"
|
|
59
61
|
},
|
|
60
|
-
"packageManager": "yarn@
|
|
62
|
+
"packageManager": "yarn@4.1.1",
|
|
61
63
|
"resolutions": {
|
|
62
64
|
"@singularsystems/neo-core": "portal:../core"
|
|
63
65
|
}
|
package/styles/ColorPicker.scss
CHANGED
|
@@ -20,11 +20,10 @@ div.color-picker {
|
|
|
20
20
|
background-color: $offGrey;
|
|
21
21
|
border-radius: 5px;
|
|
22
22
|
border: 1px solid $concrete;
|
|
23
|
-
width: 234px;
|
|
24
23
|
|
|
25
24
|
div.action-container {
|
|
26
25
|
text-align: right;
|
|
27
|
-
padding-top:
|
|
26
|
+
padding-top: 5px;
|
|
28
27
|
|
|
29
28
|
.btn {
|
|
30
29
|
cursor: pointer;
|
package/dist/React/Decorators.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createObservableList } from './Utils';
|
|
2
|
-
/**
|
|
3
|
-
* Makes a list observable. Use this only when the property is not part of a NeoModel. E.g. it is defined directly on a component.
|
|
4
|
-
*/
|
|
5
|
-
export function observableList(type, propertyKey) {
|
|
6
|
-
var descriptor = arguments[2];
|
|
7
|
-
var initializer = descriptor.initializer;
|
|
8
|
-
return {
|
|
9
|
-
get: function () {
|
|
10
|
-
// Convert to observable list on first read. This will overwrite this getter, and the next read will call the overwritten get method.
|
|
11
|
-
createObservableList(this, propertyKey, initializer());
|
|
12
|
-
return this[propertyKey];
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
package/dist/React/Utils.d.ts
DELETED
package/dist/React/Utils.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { observable } from "mobx";
|
|
2
|
-
import { List } from '@singularsystems/neo-core';
|
|
3
|
-
export function createObservableList(target, propertyKey, list) {
|
|
4
|
-
if (list instanceof Array) {
|
|
5
|
-
// this overload is not part of the typescript typings. The true tells it to create the observable immediately
|
|
6
|
-
observable.shallow(target, propertyKey, { value: list }, true);
|
|
7
|
-
// add the original methods and values back to the mobx array.
|
|
8
|
-
var obsArray = target[propertyKey];
|
|
9
|
-
List.copyMethods(obsArray);
|
|
10
|
-
list.setupProxy(obsArray, target, propertyKey);
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
throw "observableList can only be defined on arrays.";
|
|
14
|
-
}
|
|
15
|
-
}
|