@mat3ra/wode 2025.11.19-0 → 2025.11.26-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.
Files changed (29) hide show
  1. package/dist/js/context/providers/BoundaryConditionsFormDataProvider.js +25 -26
  2. package/dist/js/context/providers/CollinearMagnetizationContextProvider.js +23 -40
  3. package/dist/js/context/providers/HubbardContextProviderLegacy.js +14 -27
  4. package/dist/js/context/providers/HubbardJContextProvider.js +28 -35
  5. package/dist/js/context/providers/HubbardUContextProvider.js +22 -28
  6. package/dist/js/context/providers/HubbardVContextProvider.js +39 -51
  7. package/dist/js/context/providers/IonDynamicsContextProvider.js +26 -29
  8. package/dist/js/context/providers/MLSettingsContextProvider.js +15 -15
  9. package/dist/js/context/providers/MLTrainTestSplitContextProvider.js +12 -12
  10. package/dist/js/context/providers/NEBFormDataProvider.js +17 -12
  11. package/dist/js/context/providers/NonCollinearMagnetizationContextProvider.js +57 -123
  12. package/dist/js/context/providers/PlanewaveCutoffsContextProvider.js +17 -16
  13. package/dist/js/context/providers/PointsGridFormDataProvider.js +21 -30
  14. package/dist/js/context/providers/PointsPathFormDataProvider.js +15 -23
  15. package/package.json +2 -2
  16. package/src/js/context/providers/BoundaryConditionsFormDataProvider.js +18 -26
  17. package/src/js/context/providers/CollinearMagnetizationContextProvider.js +28 -40
  18. package/src/js/context/providers/HubbardContextProviderLegacy.js +19 -27
  19. package/src/js/context/providers/HubbardJContextProvider.js +27 -35
  20. package/src/js/context/providers/HubbardUContextProvider.js +23 -28
  21. package/src/js/context/providers/HubbardVContextProvider.js +39 -54
  22. package/src/js/context/providers/IonDynamicsContextProvider.js +16 -28
  23. package/src/js/context/providers/MLSettingsContextProvider.js +13 -16
  24. package/src/js/context/providers/MLTrainTestSplitContextProvider.js +12 -14
  25. package/src/js/context/providers/NEBFormDataProvider.js +13 -12
  26. package/src/js/context/providers/NonCollinearMagnetizationContextProvider.js +37 -127
  27. package/src/js/context/providers/PlanewaveCutoffsContextProvider.js +14 -17
  28. package/src/js/context/providers/PointsGridFormDataProvider.js +22 -36
  29. package/src/js/context/providers/PointsPathFormDataProvider.js +18 -20
@@ -1,9 +1,12 @@
1
1
  import { JSONSchemaFormDataProvider } from "@mat3ra/ade";
2
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
3
  import lodash from "lodash";
3
4
 
4
5
  import { materialContextMixin } from "../mixins/MaterialContextMixin";
5
6
 
6
7
  export class CollinearMagnetizationContextProvider extends JSONSchemaFormDataProvider {
8
+ jsonSchemaId = "context-providers-directory/collinear-magnetization-context-provider";
9
+
7
10
  constructor(config) {
8
11
  super(config);
9
12
 
@@ -37,6 +40,27 @@ export class CollinearMagnetizationContextProvider extends JSONSchemaFormDataPro
37
40
  };
38
41
  }
39
42
 
43
+ get jsonSchemaPatchConfig() {
44
+ return {
45
+ "properties.startingMagnetization": {
46
+ maxItems: this.uniqueElementsWithLabels.length,
47
+ },
48
+ "properties.startingMagnetization.items.properties.atomicSpecies": {
49
+ enum: this.uniqueElementsWithLabels,
50
+ default: this.firstElement,
51
+ },
52
+ "properties.startingMagnetization.items.properties.value": {
53
+ default: 0.0,
54
+ },
55
+ "properties.isTotalMagnetization": {
56
+ default: false,
57
+ },
58
+ "properties.totalMagnetization": {
59
+ default: 0.0,
60
+ },
61
+ };
62
+ }
63
+
40
64
  transformData = (data) => {
41
65
  const startingMagnetizationWithIndex = data.startingMagnetization.map((row) => ({
42
66
  ...row,
@@ -71,46 +95,10 @@ export class CollinearMagnetizationContextProvider extends JSONSchemaFormDataPro
71
95
  }
72
96
 
73
97
  get jsonSchema() {
74
- return {
75
- $schema: "http://json-schema.org/draft-07/schema#",
76
- title: "",
77
- description: "Set starting magnetization, can have values in the range [-1, +1].",
78
- type: "object",
79
- properties: {
80
- startingMagnetization: {
81
- type: "array",
82
- maxItems: this.uniqueElementsWithLabels.length,
83
- items: {
84
- type: "object",
85
- properties: {
86
- atomicSpecies: {
87
- type: "string",
88
- title: "Atomic species",
89
- enum: this.uniqueElementsWithLabels,
90
- default: this.firstElement,
91
- },
92
- value: {
93
- type: "number",
94
- title: "Starting magnetization",
95
- default: 0.0,
96
- minimum: -1.0,
97
- maximum: 1.0,
98
- },
99
- },
100
- },
101
- },
102
- isTotalMagnetization: {
103
- type: "boolean",
104
- title: "Set total magnetization instead",
105
- default: false,
106
- },
107
- totalMagnetization: {
108
- type: "number",
109
- title: "Total magnetization",
110
- default: 0.0,
111
- },
112
- },
113
- };
98
+ return JSONSchemasInterface.getPatchedSchemaById(
99
+ this.jsonSchemaId,
100
+ this.jsonSchemaPatchConfig,
101
+ );
114
102
  }
115
103
  }
116
104
 
@@ -1,3 +1,5 @@
1
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
+
1
3
  import { HubbardUContextProvider } from "./HubbardUContextProvider";
2
4
 
3
5
  const defaultHubbardConfig = {
@@ -5,6 +7,8 @@ const defaultHubbardConfig = {
5
7
  };
6
8
 
7
9
  export class HubbardContextProviderLegacy extends HubbardUContextProvider {
10
+ jsonSchemaId = "context-providers-directory/hubbard-legacy-context-provider";
11
+
8
12
  get defaultData() {
9
13
  return [
10
14
  {
@@ -15,6 +19,17 @@ export class HubbardContextProviderLegacy extends HubbardUContextProvider {
15
19
  ];
16
20
  }
17
21
 
22
+ get jsonSchemaPatchConfig() {
23
+ return {
24
+ "items.properties.atomicSpecies": {
25
+ enum: this.uniqueElementsWithLabels,
26
+ },
27
+ "items.properties.hubbardUValue": {
28
+ default: defaultHubbardConfig.hubbardUValue,
29
+ },
30
+ };
31
+ }
32
+
18
33
  speciesIndexFromSpecies = (species) => {
19
34
  return this.uniqueElementsWithLabels?.length > 0
20
35
  ? this.uniqueElementsWithLabels.indexOf(species) + 1
@@ -44,32 +59,9 @@ export class HubbardContextProviderLegacy extends HubbardUContextProvider {
44
59
  }
45
60
 
46
61
  get jsonSchema() {
47
- return {
48
- $schema: "http://json-schema.org/draft-07/schema#",
49
- title: "",
50
- description: "Hubbard parameters for DFT+U calculation.",
51
- type: "array",
52
- uniqueItems: true,
53
- minItems: 1,
54
- items: {
55
- type: "object",
56
- properties: {
57
- atomicSpecies: {
58
- type: "string",
59
- title: "Atomic species",
60
- enum: this.uniqueElementsWithLabels,
61
- },
62
- atomicSpeciesIndex: {
63
- type: "integer",
64
- title: "Species index",
65
- },
66
- hubbardUValue: {
67
- type: "number",
68
- title: "Hubbard U (eV)",
69
- default: defaultHubbardConfig.hubbardUValue,
70
- },
71
- },
72
- },
73
- };
62
+ return JSONSchemasInterface.getPatchedSchemaById(
63
+ this.jsonSchemaId,
64
+ this.jsonSchemaPatchConfig,
65
+ );
74
66
  }
75
67
  }
@@ -1,3 +1,5 @@
1
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
+
1
3
  import { HubbardUContextProvider } from "./HubbardUContextProvider";
2
4
 
3
5
  const defaultHubbardConfig = {
@@ -8,6 +10,8 @@ const defaultHubbardConfig = {
8
10
  };
9
11
 
10
12
  export class HubbardJContextProvider extends HubbardUContextProvider {
13
+ jsonSchemaId = "context-providers-directory/hubbard-j-context-provider";
14
+
11
15
  get defaultData() {
12
16
  return [
13
17
  {
@@ -17,6 +21,25 @@ export class HubbardJContextProvider extends HubbardUContextProvider {
17
21
  ];
18
22
  }
19
23
 
24
+ get jsonSchemaPatchConfig() {
25
+ return {
26
+ "items.properties.paramType": {
27
+ default: defaultHubbardConfig.paramType,
28
+ },
29
+ "items.properties.atomicSpecies": {
30
+ enum: this.uniqueElementsWithLabels,
31
+ default: this.firstElement,
32
+ },
33
+ "items.properties.atomicOrbital": {
34
+ enum: this.orbitalList,
35
+ default: defaultHubbardConfig.atomicOrbital,
36
+ },
37
+ "items.properties.value": {
38
+ default: defaultHubbardConfig.value,
39
+ },
40
+ };
41
+ }
42
+
20
43
  get uiSchemaStyled() {
21
44
  return {
22
45
  "ui:options": {
@@ -34,40 +57,9 @@ export class HubbardJContextProvider extends HubbardUContextProvider {
34
57
  }
35
58
 
36
59
  get jsonSchema() {
37
- return {
38
- $schema: "http://json-schema.org/draft-07/schema#",
39
- title: "",
40
- description: "Hubbard parameters for DFT+U+J calculation.",
41
- type: "array",
42
- items: {
43
- type: "object",
44
- properties: {
45
- paramType: {
46
- type: "string",
47
- title: "Species",
48
- enum: ["U", "J", "B", "E2", "E3"],
49
- default: defaultHubbardConfig.paramType,
50
- },
51
- atomicSpecies: {
52
- type: "string",
53
- title: "Species",
54
- enum: this.uniqueElementsWithLabels,
55
- default: this.firstElement,
56
- },
57
- atomicOrbital: {
58
- type: "string",
59
- title: "Orbital",
60
- enum: this.orbitalList,
61
- default: defaultHubbardConfig.atomicOrbital,
62
- },
63
- value: {
64
- type: "number",
65
- title: "Value (eV)",
66
- default: defaultHubbardConfig.value,
67
- },
68
- },
69
- },
70
- minItems: 1,
71
- };
60
+ return JSONSchemasInterface.getPatchedSchemaById(
61
+ this.jsonSchemaId,
62
+ this.jsonSchemaPatchConfig,
63
+ );
72
64
  }
73
65
  }
@@ -1,4 +1,5 @@
1
1
  import { JSONSchemaFormDataProvider } from "@mat3ra/ade";
2
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
3
 
3
4
  import { materialContextMixin } from "../mixins/MaterialContextMixin";
4
5
 
@@ -9,6 +10,8 @@ const defaultHubbardConfig = {
9
10
  };
10
11
 
11
12
  export class HubbardUContextProvider extends JSONSchemaFormDataProvider {
13
+ jsonSchemaId = "context-providers-directory/hubbard-u-context-provider";
14
+
12
15
  constructor(config) {
13
16
  super(config);
14
17
 
@@ -50,6 +53,22 @@ export class HubbardUContextProvider extends JSONSchemaFormDataProvider {
50
53
  ];
51
54
  }
52
55
 
56
+ get jsonSchemaPatchConfig() {
57
+ return {
58
+ "items.properties.atomicSpecies": {
59
+ enum: this.uniqueElementsWithLabels,
60
+ default: this.firstElement,
61
+ },
62
+ "items.properties.atomicOrbital": {
63
+ enum: this.orbitalList,
64
+ default: defaultHubbardConfig.atomicOrbital,
65
+ },
66
+ "items.properties.hubbardUValue": {
67
+ default: defaultHubbardConfig.hubbardUValue,
68
+ },
69
+ };
70
+ }
71
+
53
72
  get uiSchemaStyled() {
54
73
  return {
55
74
  "ui:options": {
@@ -66,34 +85,10 @@ export class HubbardUContextProvider extends JSONSchemaFormDataProvider {
66
85
  }
67
86
 
68
87
  get jsonSchema() {
69
- return {
70
- $schema: "http://json-schema.org/draft-07/schema#",
71
- title: "",
72
- description: "Hubbard U parameters for DFT+U or DFT+U+V calculation.",
73
- type: "array",
74
- items: {
75
- type: "object",
76
- properties: {
77
- atomicSpecies: {
78
- type: "string",
79
- title: "Atomic species",
80
- enum: this.uniqueElementsWithLabels,
81
- default: this.firstElement,
82
- },
83
- atomicOrbital: {
84
- type: "string",
85
- title: "Atomic orbital",
86
- enum: this.orbitalList,
87
- default: defaultHubbardConfig.atomicOrbital,
88
- },
89
- hubbardUValue: {
90
- type: "number",
91
- title: "Hubbard U (eV)",
92
- default: defaultHubbardConfig.hubbardUValue,
93
- },
94
- },
95
- },
96
- };
88
+ return JSONSchemasInterface.getPatchedSchemaById(
89
+ this.jsonSchemaId,
90
+ this.jsonSchemaPatchConfig,
91
+ );
97
92
  }
98
93
  }
99
94
 
@@ -1,3 +1,5 @@
1
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
+
1
3
  import { HubbardUContextProvider } from "./HubbardUContextProvider";
2
4
 
3
5
  const defaultHubbardConfig = {
@@ -11,6 +13,8 @@ const defaultHubbardConfig = {
11
13
  };
12
14
 
13
15
  export class HubbardVContextProvider extends HubbardUContextProvider {
16
+ jsonSchemaId = "context-providers-directory/hubbard-v-context-provider";
17
+
14
18
  get defaultData() {
15
19
  return [
16
20
  {
@@ -33,6 +37,37 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
33
37
  : this.firstSpecies;
34
38
  }
35
39
 
40
+ get jsonSchemaPatchConfig() {
41
+ return {
42
+ "items.properties.atomicSpecies": {
43
+ enum: this.uniqueElementsWithLabels,
44
+ default: this.firstSpecies,
45
+ },
46
+ "items.properties.siteIndex": {
47
+ default: defaultHubbardConfig.siteIndex,
48
+ },
49
+ "items.properties.atomicOrbital": {
50
+ enum: this.orbitalList,
51
+ default: defaultHubbardConfig.atomicOrbital,
52
+ },
53
+ "items.properties.atomicSpecies2": {
54
+ enum: this.uniqueElementsWithLabels,
55
+ default: this.secondSpecies,
56
+ },
57
+ "items.properties.siteIndex2": {
58
+ default:
59
+ this.uniqueElementsWithLabels?.length > 1 ? 2 : defaultHubbardConfig.siteIndex2,
60
+ },
61
+ "items.properties.atomicOrbital2": {
62
+ enum: this.orbitalList,
63
+ default: defaultHubbardConfig.atomicOrbital,
64
+ },
65
+ "items.properties.hubbardVValue": {
66
+ default: defaultHubbardConfig.hubbardVValue,
67
+ },
68
+ };
69
+ }
70
+
36
71
  get uiSchemaStyled() {
37
72
  return {
38
73
  "ui:options": {
@@ -53,59 +88,9 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
53
88
  }
54
89
 
55
90
  get jsonSchema() {
56
- return {
57
- $schema: "http://json-schema.org/draft-07/schema#",
58
- title: "",
59
- description: "Hubbard V parameters for DFT+U+V calculation.",
60
- type: "array",
61
- items: {
62
- type: "object",
63
- properties: {
64
- atomicSpecies: {
65
- type: "string",
66
- title: "Species 1",
67
- enum: this.uniqueElementsWithLabels,
68
- default: this.firstSpecies,
69
- },
70
- siteIndex: {
71
- type: "integer",
72
- title: "Site no 1",
73
- default: defaultHubbardConfig.siteIndex,
74
- },
75
- atomicOrbital: {
76
- type: "string",
77
- title: "Orbital 1",
78
- enum: this.orbitalList,
79
- default: defaultHubbardConfig.atomicOrbital,
80
- },
81
- atomicSpecies2: {
82
- type: "string",
83
- title: "Species 2",
84
- enum: this.uniqueElementsWithLabels,
85
- default: this.secondSpecies,
86
- },
87
- siteIndex2: {
88
- type: "integer",
89
- title: "Site no 2",
90
- default:
91
- this.uniqueElementsWithLabels?.length > 1
92
- ? 2
93
- : defaultHubbardConfig.siteIndex2,
94
- },
95
- atomicOrbital2: {
96
- type: "string",
97
- title: "Orbital 2",
98
- enum: this.orbitalList,
99
- default: defaultHubbardConfig.atomicOrbital,
100
- },
101
- hubbardVValue: {
102
- type: "number",
103
- title: "V (eV)",
104
- default: defaultHubbardConfig.hubbardVValue,
105
- },
106
- },
107
- },
108
- minItems: 1,
109
- };
91
+ return JSONSchemasInterface.getPatchedSchemaById(
92
+ this.jsonSchemaId,
93
+ this.jsonSchemaPatchConfig,
94
+ );
110
95
  }
111
96
  }
@@ -1,4 +1,5 @@
1
1
  import { JSONSchemaFormDataProvider } from "@mat3ra/ade";
2
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
3
 
3
4
  const defaultMDConfig = {
4
5
  numberOfSteps: 100,
@@ -8,11 +9,22 @@ const defaultMDConfig = {
8
9
  };
9
10
 
10
11
  export class IonDynamicsContextProvider extends JSONSchemaFormDataProvider {
12
+ jsonSchemaId = "context-providers-directory/ion-dynamics-context-provider";
13
+
11
14
  // eslint-disable-next-line class-methods-use-this
12
15
  get defaultData() {
13
16
  return defaultMDConfig;
14
17
  }
15
18
 
19
+ get jsonSchemaPatchConfig() {
20
+ return {
21
+ numberOfSteps: { default: this.defaultData.numberOfSteps },
22
+ timeStep: { default: this.defaultData.timeStep },
23
+ electronMass: { default: this.defaultData.electronMass },
24
+ temperature: { default: this.defaultData.temperature },
25
+ };
26
+ }
27
+
16
28
  // eslint-disable-next-line class-methods-use-this
17
29
  get uiSchema() {
18
30
  return {
@@ -23,34 +35,10 @@ export class IonDynamicsContextProvider extends JSONSchemaFormDataProvider {
23
35
  };
24
36
  }
25
37
 
26
- // eslint-disable-next-line class-methods-use-this
27
38
  get jsonSchema() {
28
- return {
29
- $schema: "http://json-schema.org/draft-07/schema#",
30
- type: "object",
31
- description: "Important parameters for molecular dynamics calculation",
32
- properties: {
33
- numberOfSteps: {
34
- type: "integer",
35
- title: "numberOfSteps",
36
- default: defaultMDConfig.numberOfSteps,
37
- },
38
- timeStep: {
39
- type: "number",
40
- title: "timeStep (Hartree a.u.)",
41
- default: defaultMDConfig.timeStep,
42
- },
43
- electronMass: {
44
- type: "number",
45
- title: "Effective electron mass",
46
- default: defaultMDConfig.electronMass,
47
- },
48
- temperature: {
49
- type: "number",
50
- title: "Ionic temperature (K)",
51
- default: defaultMDConfig.temperature,
52
- },
53
- },
54
- };
39
+ return JSONSchemasInterface.getPatchedSchemaById(
40
+ this.jsonSchemaId,
41
+ this.jsonSchemaPatchConfig,
42
+ );
55
43
  }
56
44
  }
@@ -1,8 +1,11 @@
1
1
  import { ContextProvider } from "@mat3ra/ade";
2
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
3
 
3
4
  import { applicationContextMixin } from "../mixins/ApplicationContextMixin";
4
5
 
5
6
  export class MLSettingsContextProvider extends ContextProvider {
7
+ jsonSchemaId = "context-providers-directory/ml-settings-context-provider";
8
+
6
9
  constructor(config) {
7
10
  super(config);
8
11
  this.initApplicationContextMixin();
@@ -24,25 +27,19 @@ export class MLSettingsContextProvider extends ContextProvider {
24
27
  };
25
28
  }
26
29
 
27
- get jsonSchema() {
30
+ get jsonSchemaPatchConfig() {
28
31
  return {
29
- $schema: "http://json-schema.org/draft-07/schema#",
30
- title: " ",
31
- description: "Settings important to machine learning runs.",
32
- type: "object",
33
- properties: {
34
- target_column_name: {
35
- type: "string",
36
- default: this.defaultData.target_column_name,
37
- },
38
- problem_category: {
39
- type: "string",
40
- default: this.defaultData.problem_category,
41
- enum: ["regression", "classification", "clustering"],
42
- },
43
- },
32
+ target_column_name: { default: this.defaultData.target_column_name },
33
+ problem_category: { default: this.defaultData.problem_category },
44
34
  };
45
35
  }
36
+
37
+ get jsonSchema() {
38
+ return JSONSchemasInterface.getPatchedSchemaById(
39
+ this.jsonSchemaId,
40
+ this.jsonSchemaPatchConfig,
41
+ );
42
+ }
46
43
  }
47
44
 
48
45
  applicationContextMixin(MLSettingsContextProvider.prototype);
@@ -1,8 +1,11 @@
1
1
  import { ContextProvider } from "@mat3ra/ade";
2
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
3
 
3
4
  import { applicationContextMixin } from "../mixins/ApplicationContextMixin";
4
5
 
5
6
  export class MLTrainTestSplitContextProvider extends ContextProvider {
7
+ jsonSchemaId = "context-providers-directory/ml-train-test-split-context-provider";
8
+
6
9
  constructor(config) {
7
10
  super(config);
8
11
  this.initApplicationContextMixin();
@@ -23,23 +26,18 @@ export class MLTrainTestSplitContextProvider extends ContextProvider {
23
26
  };
24
27
  }
25
28
 
26
- get jsonSchema() {
29
+ get jsonSchemaPatchConfig() {
27
30
  return {
28
- $schema: "http://json-schema.org/draft-07/schema#",
29
- title: " ",
30
- description:
31
- "Fraction held as the test set. For example, a value of 0.2 corresponds to an 80/20 train/test split.",
32
- type: "object",
33
- properties: {
34
- fraction_held_as_test_set: {
35
- type: "number",
36
- default: this.defaultData.fraction_held_as_test_set,
37
- minimum: 0,
38
- maximum: 1,
39
- },
40
- },
31
+ fraction_held_as_test_set: { default: this.defaultData.fraction_held_as_test_set },
41
32
  };
42
33
  }
34
+
35
+ get jsonSchema() {
36
+ return JSONSchemasInterface.getPatchedSchemaById(
37
+ this.jsonSchemaId,
38
+ this.jsonSchemaPatchConfig,
39
+ );
40
+ }
43
41
  }
44
42
 
45
43
  applicationContextMixin(MLTrainTestSplitContextProvider.prototype);
@@ -1,6 +1,9 @@
1
1
  import { JSONSchemaFormDataProvider } from "@mat3ra/ade";
2
+ import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
2
3
 
3
4
  export class NEBFormDataProvider extends JSONSchemaFormDataProvider {
5
+ jsonSchemaId = "context-providers-directory/neb-data-provider";
6
+
4
7
  // eslint-disable-next-line class-methods-use-this
5
8
  get defaultData() {
6
9
  return {
@@ -8,6 +11,12 @@ export class NEBFormDataProvider extends JSONSchemaFormDataProvider {
8
11
  };
9
12
  }
10
13
 
14
+ get jsonSchemaPatchConfig() {
15
+ return {
16
+ nImages: { default: this.defaultData.nImages },
17
+ };
18
+ }
19
+
11
20
  // eslint-disable-next-line class-methods-use-this
12
21
  get uiSchema() {
13
22
  return {
@@ -16,17 +25,9 @@ export class NEBFormDataProvider extends JSONSchemaFormDataProvider {
16
25
  }
17
26
 
18
27
  get jsonSchema() {
19
- return {
20
- $schema: "http://json-schema.org/draft-07/schema#",
21
- title: " ",
22
- description: "Number of intermediate NEB images.",
23
- type: "object",
24
- properties: {
25
- nImages: {
26
- type: "number",
27
- default: this.defaultData.nImages,
28
- },
29
- },
30
- };
28
+ return JSONSchemasInterface.getPatchedSchemaById(
29
+ this.jsonSchemaId,
30
+ this.jsonSchemaPatchConfig,
31
+ );
31
32
  }
32
33
  }