@mat3ra/wode 2025.11.10-0 → 2025.11.13-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.
|
@@ -66,9 +66,10 @@ function createMethod({
|
|
|
66
66
|
} = config;
|
|
67
67
|
const defaultConfig = _getConfigFromModelOrMethodName(name, "Method");
|
|
68
68
|
const defaultConfigForApp = new _standata.ApplicationMethodStandata().getDefaultMethodConfigForApplication(applicationConfig);
|
|
69
|
+
const defaultConfigForAppSimple = defaultConfigForApp && defaultConfigForApp.units ? _mode.MethodConversionHandler.convertToSimple(defaultConfigForApp) : defaultConfigForApp;
|
|
69
70
|
const method = methodFactoryCls.create({
|
|
70
71
|
...defaultConfig,
|
|
71
|
-
...
|
|
72
|
+
...defaultConfigForAppSimple,
|
|
72
73
|
...methodConfig
|
|
73
74
|
});
|
|
74
75
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/wode",
|
|
3
|
-
"version": "2025.11.
|
|
3
|
+
"version": "2025.11.13-0",
|
|
4
4
|
"description": "WOrkflow DEfinitions",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "nyc --reporter=text mocha --recursive --bail --require @babel/register/lib --require tests/js/setup.js tests/js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@mat3ra/code": "2025.10.24-0",
|
|
57
57
|
"@mat3ra/esse": "2025.10.8-0",
|
|
58
58
|
"@mat3ra/made": "2025.7.15-0",
|
|
59
|
-
"@mat3ra/standata": "2025.11.
|
|
59
|
+
"@mat3ra/standata": "2025.11.12-0",
|
|
60
60
|
"chai": "^4.3.4",
|
|
61
61
|
"eslint": "7.32.0",
|
|
62
62
|
"eslint-config-airbnb": "19.0.2",
|
|
@@ -2,6 +2,7 @@ import ApplicationRegistry from "@mat3ra/ade/dist/js/ApplicationRegistry";
|
|
|
2
2
|
import {
|
|
3
3
|
default_methods as MethodConfigs,
|
|
4
4
|
default_models as ModelConfigs,
|
|
5
|
+
MethodConversionHandler,
|
|
5
6
|
MethodFactory,
|
|
6
7
|
ModelFactory,
|
|
7
8
|
} from "@mat3ra/mode";
|
|
@@ -48,9 +49,13 @@ function createMethod({ config, methodFactoryCls, applicationConfig = {} }) {
|
|
|
48
49
|
const defaultConfig = _getConfigFromModelOrMethodName(name, "Method");
|
|
49
50
|
const defaultConfigForApp =
|
|
50
51
|
new ApplicationMethodStandata().getDefaultMethodConfigForApplication(applicationConfig);
|
|
52
|
+
const defaultConfigForAppSimple =
|
|
53
|
+
defaultConfigForApp && defaultConfigForApp.units
|
|
54
|
+
? MethodConversionHandler.convertToSimple(defaultConfigForApp)
|
|
55
|
+
: defaultConfigForApp;
|
|
51
56
|
const method = methodFactoryCls.create({
|
|
52
57
|
...defaultConfig,
|
|
53
|
-
...
|
|
58
|
+
...defaultConfigForAppSimple,
|
|
54
59
|
...methodConfig,
|
|
55
60
|
});
|
|
56
61
|
return { method, setSearchText };
|