@finos/legend-graph 32.1.15 → 32.1.16
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/lib/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.js +12 -0
- package/lib/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +3 -3
- package/src/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.ts +18 -0
|
@@ -14,5 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { V1_GenericType } from '../model/packageableElements/type/V1_GenericType.js';
|
|
17
|
+
import type { V1_ParameterValue } from '../model/packageableElements/service/V1_ParameterValue.js';
|
|
17
18
|
export declare const V1_observe_GenericType: (metamodel: V1_GenericType) => V1_GenericType;
|
|
19
|
+
export declare const V1_observe_ParameterValue: (metamodel: V1_ParameterValue) => V1_ParameterValue;
|
|
18
20
|
//# sourceMappingURL=V1_DomainObserverHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_DomainObserverHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"V1_DomainObserverHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAG1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2DAA2D,CAAC;AAGnG,eAAO,MAAM,sBAAsB,+CAalC,CAAC;AAEF,eAAO,MAAM,yBAAyB,qDAcrC,CAAC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { computed, makeObservable, observable } from 'mobx';
|
|
17
17
|
import { skipObserved } from '../../../../action/changeDetection/CoreObserverHelper.js';
|
|
18
18
|
import { V1_observe_ValueSpecification } from './V1_ValueSpecificationObserver.js';
|
|
19
|
+
import { V1_ValueSpecification } from '../model/valueSpecification/V1_ValueSpecification.js';
|
|
19
20
|
export const V1_observe_GenericType = skipObserved((metamodel) => {
|
|
20
21
|
makeObservable(metamodel, {
|
|
21
22
|
rawType: observable,
|
|
@@ -26,4 +27,15 @@ export const V1_observe_GenericType = skipObserved((metamodel) => {
|
|
|
26
27
|
metamodel.typeVariableValues.forEach(V1_observe_ValueSpecification);
|
|
27
28
|
return metamodel;
|
|
28
29
|
});
|
|
30
|
+
export const V1_observe_ParameterValue = skipObserved((metamodel) => {
|
|
31
|
+
makeObservable(metamodel, {
|
|
32
|
+
name: observable,
|
|
33
|
+
value: observable,
|
|
34
|
+
hashCode: computed,
|
|
35
|
+
});
|
|
36
|
+
if (metamodel.value instanceof V1_ValueSpecification) {
|
|
37
|
+
V1_observe_ValueSpecification(metamodel.value);
|
|
38
|
+
}
|
|
39
|
+
return metamodel;
|
|
40
|
+
});
|
|
29
41
|
//# sourceMappingURL=V1_DomainObserverHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_DomainObserverHelper.js","sourceRoot":"","sources":["../../../../../../src/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,0DAA0D,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,MAAM,CAAC,MAAM,sBAAsB,GAAG,YAAY,CAChD,CAAC,SAAyB,EAAkB,EAAE;IAC5C,cAAc,CAAC,SAAS,EAAE;QACxB,OAAO,EAAE,UAAU;QACnB,qBAAqB,EAAE,UAAU;QACjC,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;IAEH,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACxD,SAAS,CAAC,kBAAkB,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAEpE,OAAO,SAAS,CAAC;AACnB,CAAC,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"V1_DomainObserverHelper.js","sourceRoot":"","sources":["../../../../../../src/graph-manager/protocol/pure/v1/helpers/V1_DomainObserverHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,0DAA0D,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,MAAM,CAAC,MAAM,sBAAsB,GAAG,YAAY,CAChD,CAAC,SAAyB,EAAkB,EAAE;IAC5C,cAAc,CAAC,SAAS,EAAE;QACxB,OAAO,EAAE,UAAU;QACnB,qBAAqB,EAAE,UAAU;QACjC,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;IAEH,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACxD,SAAS,CAAC,kBAAkB,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAEpE,OAAO,SAAS,CAAC;AACnB,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,YAAY,CACnD,CAAC,SAA4B,EAAqB,EAAE;IAClD,cAAc,CAAC,SAAS,EAAE;QACxB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;IAEH,IAAI,SAAS,CAAC,KAAK,YAAY,qBAAqB,EAAE,CAAC;QACrD,6BAA6B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CACF,CAAC"}
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-graph",
|
|
3
|
-
"version": "32.1.
|
|
3
|
+
"version": "32.1.16",
|
|
4
4
|
"description": "Legend graph and graph manager",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"test:watch": "jest --watch"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@finos/legend-shared": "11.0.
|
|
46
|
-
"@finos/legend-storage": "3.0.
|
|
45
|
+
"@finos/legend-shared": "11.0.10",
|
|
46
|
+
"@finos/legend-storage": "3.0.129",
|
|
47
47
|
"mobx": "6.13.6",
|
|
48
48
|
"serializr": "3.0.3"
|
|
49
49
|
},
|
|
@@ -18,6 +18,8 @@ import { computed, makeObservable, observable } from 'mobx';
|
|
|
18
18
|
import type { V1_GenericType } from '../model/packageableElements/type/V1_GenericType.js';
|
|
19
19
|
import { skipObserved } from '../../../../action/changeDetection/CoreObserverHelper.js';
|
|
20
20
|
import { V1_observe_ValueSpecification } from './V1_ValueSpecificationObserver.js';
|
|
21
|
+
import type { V1_ParameterValue } from '../model/packageableElements/service/V1_ParameterValue.js';
|
|
22
|
+
import { V1_ValueSpecification } from '../model/valueSpecification/V1_ValueSpecification.js';
|
|
21
23
|
|
|
22
24
|
export const V1_observe_GenericType = skipObserved(
|
|
23
25
|
(metamodel: V1_GenericType): V1_GenericType => {
|
|
@@ -33,3 +35,19 @@ export const V1_observe_GenericType = skipObserved(
|
|
|
33
35
|
return metamodel;
|
|
34
36
|
},
|
|
35
37
|
);
|
|
38
|
+
|
|
39
|
+
export const V1_observe_ParameterValue = skipObserved(
|
|
40
|
+
(metamodel: V1_ParameterValue): V1_ParameterValue => {
|
|
41
|
+
makeObservable(metamodel, {
|
|
42
|
+
name: observable,
|
|
43
|
+
value: observable,
|
|
44
|
+
hashCode: computed,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
if (metamodel.value instanceof V1_ValueSpecification) {
|
|
48
|
+
V1_observe_ValueSpecification(metamodel.value);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return metamodel;
|
|
52
|
+
},
|
|
53
|
+
);
|