@finos/legend-extension-dsl-data-space 1.1.6 → 1.1.9

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.
@@ -13,11 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { PureGraphManagerPlugin, type PureGrammarElementLabeler } from '@finos/legend-graph';
16
+ import { PureGraphManagerPlugin, type ElementObserver, type PureGrammarElementLabeler } from '@finos/legend-graph';
17
17
  export declare class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin {
18
18
  constructor();
19
19
  getExtraPureGrammarParserNames(): string[];
20
20
  getExtraPureGrammarKeywords(): string[];
21
21
  getExtraPureGrammarElementLabelers(): PureGrammarElementLabeler[];
22
+ getExtraElementObservers(): ElementObserver[];
22
23
  }
23
24
  //# sourceMappingURL=DSLDataSpace_PureGraphManagerPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_PureGraphManagerPlugin.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,sBAAsB,EAEtB,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;AAK7B,qBAAa,mCAAoC,SAAQ,sBAAsB;;IAKpE,8BAA8B,IAAI,MAAM,EAAE;IAI1C,2BAA2B,IAAI,MAAM,EAAE;IAIvC,kCAAkC,IAAI,yBAAyB,EAAE;CAU3E"}
1
+ {"version":3,"file":"DSLDataSpace_PureGraphManagerPlugin.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,sBAAsB,EAEtB,KAAK,eAAe,EAEpB,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;AAM7B,qBAAa,mCAAoC,SAAQ,sBAAsB;;IAKpE,8BAA8B,IAAI,MAAM,EAAE;IAI1C,2BAA2B,IAAI,MAAM,EAAE;IAIvC,kCAAkC,IAAI,yBAAyB,EAAE;IAWjE,wBAAwB,IAAI,eAAe,EAAE;CAavD"}
@@ -16,6 +16,7 @@
16
16
  import packageJson from '../../package.json';
17
17
  import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace';
18
18
  import { PureGraphManagerPlugin, } from '@finos/legend-graph';
19
+ import { observe_DataSpace } from './action/changeDetection/DSLDataSpace_ObserverHelper';
19
20
  const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace';
20
21
  const PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL = 'DataSpace';
21
22
  export class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin {
@@ -38,5 +39,15 @@ export class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin
38
39
  },
39
40
  ];
40
41
  }
42
+ getExtraElementObservers() {
43
+ return [
44
+ (element, context) => {
45
+ if (element instanceof DataSpace) {
46
+ return observe_DataSpace(element);
47
+ }
48
+ return undefined;
49
+ },
50
+ ];
51
+ }
41
52
  }
42
53
  //# sourceMappingURL=DSLDataSpace_PureGraphManagerPlugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_PureGraphManagerPlugin.js","sourceRoot":"","sources":["../../src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,sFAAsF,CAAC;AACjH,OAAO,EACL,sBAAsB,GAGvB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,mCAAmC,GAAG,WAAW,CAAC;AACxD,MAAM,0CAA0C,GAAG,WAAW,CAAC;AAE/D,MAAM,OAAO,mCAAoC,SAAQ,sBAAsB;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AE;oBAChC,OAAO,0CAA0C,CAAC;iBACnD;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,wBAAwB;QAC/B,OAAO;YACL,CACE,OAA2B,EAC3B,OAAwB,EACQ,EAAE;gBAClC,IAAI,OAAO,YAAY,SAAS,EAAE;oBAChC,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;iBACnC;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { DataSpace } from '../../../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace';
17
+ export declare const observe_DataSpace: (metamodel: DataSpace) => DataSpace;
18
+ //# sourceMappingURL=DSLDataSpace_ObserverHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSLDataSpace_ObserverHelper.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4FAA4F,CAAC;AAE5H,eAAO,MAAM,iBAAiB,qCAkB7B,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { observe_Abstract_PackageableElement, observe_StereotypeReference, observe_TaggedValue, skipObserved, } from '@finos/legend-graph';
17
+ import { makeObservable, override } from 'mobx';
18
+ export const observe_DataSpace = skipObserved((metamodel) => {
19
+ observe_Abstract_PackageableElement(metamodel);
20
+ makeObservable(metamodel, {
21
+ _elementHashCode: override,
22
+ });
23
+ // metamodel.executionContexts.forEach(observe_DataSpaceExecutionContext);
24
+ // observe_DataSpaceExecutionContext(metamodel.defaultExecutionContext);
25
+ // if (metamodel.supportInfo) {
26
+ // observe_DataSpaceSupportInfo(metamodel.supportInfo);
27
+ // }
28
+ metamodel.stereotypes.forEach(observe_StereotypeReference);
29
+ metamodel.taggedValues.forEach(observe_TaggedValue);
30
+ return metamodel;
31
+ });
32
+ //# sourceMappingURL=DSLDataSpace_ObserverHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DSLDataSpace_ObserverHelper.js","sourceRoot":"","sources":["../../../../src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,mBAAmB,EACnB,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAC3C,CAAC,SAAoB,EAAa,EAAE;IAClC,mCAAmC,CAAC,SAAS,CAAC,CAAC;IAE/C,cAAc,CAAgC,SAAS,EAAE;QACvD,gBAAgB,EAAE,QAAQ;KAC3B,CAAC,CAAC;IAEH,0EAA0E;IAC1E,wEAAwE;IACxE,+BAA+B;IAC/B,yDAAyD;IACzD,IAAI;IACJ,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC3D,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEpD,OAAO,SAAS,CAAC;AACnB,CAAC,CACF,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-data-space v1.1.6
1
+ /** @license @finos/legend-extension-dsl-data-space v1.1.9
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -40,7 +40,6 @@ export declare class DataSpace extends PackageableElement implements Hashable {
40
40
  featuredDiagrams: string[];
41
41
  description?: string | undefined;
42
42
  supportInfo?: DataSpaceSupportInfo | undefined;
43
- constructor(name: string);
44
43
  protected get _elementHashCode(): string;
45
44
  accept_PackageableElementVisitor<T>(visitor: PackageableElementVisitor<T>): T;
46
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_DataSpace.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,qBAAqB,CAAC;AAG7B,8BAAsB,oBAAqB,YAAW,QAAQ;IAC5D,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,qBACX,SAAQ,oBACR,YAAW,QAAQ;IAEnB,OAAO,EAAG,MAAM,CAAC;IAEjB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF;AAED,qBAAa,yBAA0B,YAAW,QAAQ;IACxD,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,EAAG,MAAM,CAAC;IACjB,cAAc,EAAG,MAAM,CAAC;IAExB,IAAI,QAAQ,IAAI,MAAM,CAQrB;CACF;AAED,qBAAa,SAAU,SAAQ,kBAAmB,YAAW,QAAQ;IACnE,WAAW,EAAE,mBAAmB,EAAE,CAAM;IACxC,YAAY,EAAE,WAAW,EAAE,CAAM;IACjC,OAAO,EAAG,MAAM,CAAC;IACjB,UAAU,EAAG,MAAM,CAAC;IACpB,SAAS,EAAG,MAAM,CAAC;IACnB,iBAAiB,EAAE,yBAAyB,EAAE,CAAM;IACpD,uBAAuB,EAAG,yBAAyB,CAAC;IACpD,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;gBAEnC,IAAI,EAAE,MAAM;IAQxB,cAAuB,gBAAgB,IAAI,MAAM,CAgBhD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
1
+ {"version":3,"file":"DSLDataSpace_DataSpace.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,WAAW,EACjB,MAAM,qBAAqB,CAAC;AAG7B,8BAAsB,oBAAqB,YAAW,QAAQ;IAC5D,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,qBACX,SAAQ,oBACR,YAAW,QAAQ;IAEnB,OAAO,EAAG,MAAM,CAAC;IAEjB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF;AAED,qBAAa,yBAA0B,YAAW,QAAQ;IACxD,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,EAAG,MAAM,CAAC;IACjB,cAAc,EAAG,MAAM,CAAC;IAExB,IAAI,QAAQ,IAAI,MAAM,CAQrB;CACF;AAED,qBAAa,SAAU,SAAQ,kBAAmB,YAAW,QAAQ;IACnE,WAAW,EAAE,mBAAmB,EAAE,CAAM;IACxC,YAAY,EAAE,WAAW,EAAE,CAAM;IACjC,OAAO,EAAG,MAAM,CAAC;IACjB,UAAU,EAAG,MAAM,CAAC;IACpB,SAAS,EAAG,MAAM,CAAC;IACnB,iBAAiB,EAAE,yBAAyB,EAAE,CAAM;IACpD,uBAAuB,EAAG,yBAAyB,CAAC;IACpD,gBAAgB,EAAE,MAAM,EAAE,CAAM;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAE/C,cAAuB,gBAAgB,IAAI,MAAM,CAgBhD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
@@ -13,7 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { makeObservable, override } from 'mobx';
17
16
  import { hashArray } from '@finos/legend-shared';
18
17
  import { PackageableElement, } from '@finos/legend-graph';
19
18
  import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSLDataSpace_ModelUtils';
@@ -54,12 +53,6 @@ export class DataSpace extends PackageableElement {
54
53
  featuredDiagrams = [];
55
54
  description;
56
55
  supportInfo;
57
- constructor(name) {
58
- super(name);
59
- makeObservable(this, {
60
- _elementHashCode: override,
61
- });
62
- }
63
56
  get _elementHashCode() {
64
57
  return hashArray([
65
58
  DATA_SPACE_HASH_STRUCTURE.DATA_SPACE,
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_DataSpace.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EACL,kBAAkB,GAInB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,OAAgB,oBAAoB;CAEzC;AAED,MAAM,OAAO,qBACX,SAAQ,oBAAoB;IAG5B,OAAO,CAAU;IAEjB,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,wBAAwB;YAClD,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,yBAAyB;IACpC,IAAI,CAAU;IACd,WAAW,CAAsB;IACjC,OAAO,CAAU;IACjB,cAAc,CAAU;IAExB,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,4BAA4B;YACtD,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,cAAc;SACpB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAC/C,WAAW,GAA0B,EAAE,CAAC;IACxC,YAAY,GAAkB,EAAE,CAAC;IACjC,OAAO,CAAU;IACjB,UAAU,CAAU;IACpB,SAAS,CAAU;IACnB,iBAAiB,GAAgC,EAAE,CAAC;IACpD,uBAAuB,CAA6B;IACpD,gBAAgB,GAAa,EAAE,CAAC;IAChC,WAAW,CAAsB;IACjC,WAAW,CAAoC;IAE/C,YAAY,IAAY;QACtB,KAAK,CAAC,IAAI,CAAC,CAAC;QAEZ,cAAc,CAAgC,IAAI,EAAE;YAClD,gBAAgB,EAAE,QAAQ;SAC3B,CAAC,CAAC;IACL,CAAC;IAED,IAAuB,gBAAgB;QACrC,OAAO,SAAS,CAAC;YACf,yBAAyB,CAAC,UAAU;YACpC,SAAS,CACP,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CACjE;YACD,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YAC5B,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,UAAU;YACf,IAAI,CAAC,SAAS;YACd,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC;YACjC,IAAI,CAAC,uBAAuB,CAAC,IAAI;YACjC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAChC,IAAI,CAAC,WAAW,IAAI,EAAE;YACtB,IAAI,CAAC,WAAW,IAAI,EAAE;SACvB,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDataSpace_DataSpace.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EACL,kBAAkB,GAInB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,OAAgB,oBAAoB;CAEzC;AAED,MAAM,OAAO,qBACX,SAAQ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,IAAI,EAAE;SACvB,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "1.1.6",
3
+ "version": "1.1.9",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -31,7 +31,7 @@
31
31
  "clean:cache": "rimraf \"build\"",
32
32
  "clean:lib": "rimraf \"lib\"",
33
33
  "dev": "npm-run-all --parallel dev:sass dev:ts",
34
- "dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
34
+ "dev:sass": "sass style:lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
35
35
  "dev:ts": "tsc --watch --preserveWatchOutput",
36
36
  "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
37
37
  "publish:prepare": "node ../../scripts/release/preparePublishContent.js",
@@ -68,7 +68,7 @@
68
68
  "jest": "27.5.1",
69
69
  "npm-run-all": "4.1.5",
70
70
  "rimraf": "3.0.2",
71
- "sass": "1.49.9",
71
+ "sass": "1.50.0",
72
72
  "typescript": "4.6.3"
73
73
  },
74
74
  "peerDependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "1.1.6",
3
+ "version": "1.1.9",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -31,7 +31,7 @@
31
31
  "clean:cache": "rimraf \"build\"",
32
32
  "clean:lib": "rimraf \"lib\"",
33
33
  "dev": "npm-run-all --parallel dev:sass dev:ts",
34
- "dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
34
+ "dev:sass": "sass style:lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
35
35
  "dev:ts": "tsc --watch --preserveWatchOutput",
36
36
  "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
37
37
  "publish:prepare": "node ../../scripts/release/preparePublishContent.js",
@@ -40,15 +40,15 @@
40
40
  "test:watch": "jest --watch"
41
41
  },
42
42
  "dependencies": {
43
- "@finos/legend-application": "2.0.6",
44
- "@finos/legend-art": "0.3.12",
45
- "@finos/legend-extension-dsl-diagram": "1.0.27",
46
- "@finos/legend-graph": "2.1.1",
47
- "@finos/legend-model-storage": "0.0.25",
48
- "@finos/legend-query": "1.3.2",
49
- "@finos/legend-server-depot": "0.0.28",
50
- "@finos/legend-shared": "1.2.7",
51
- "@finos/legend-studio": "5.1.1",
43
+ "@finos/legend-application": "2.0.9",
44
+ "@finos/legend-art": "0.3.14",
45
+ "@finos/legend-extension-dsl-diagram": "1.0.30",
46
+ "@finos/legend-graph": "3.0.0",
47
+ "@finos/legend-model-storage": "0.0.27",
48
+ "@finos/legend-query": "1.3.5",
49
+ "@finos/legend-server-depot": "0.0.30",
50
+ "@finos/legend-shared": "1.2.8",
51
+ "@finos/legend-studio": "5.1.4",
52
52
  "@types/react": "17.0.43",
53
53
  "@types/react-router-dom": "5.3.2",
54
54
  "mobx": "6.5.0",
@@ -62,13 +62,13 @@
62
62
  "serializr": "2.0.5"
63
63
  },
64
64
  "devDependencies": {
65
- "@finos/legend-dev-utils": "0.3.16",
65
+ "@finos/legend-dev-utils": "0.3.18",
66
66
  "cross-env": "7.0.3",
67
67
  "eslint": "8.12.0",
68
68
  "jest": "27.5.1",
69
69
  "npm-run-all": "4.1.5",
70
70
  "rimraf": "3.0.2",
71
- "sass": "1.49.9",
71
+ "sass": "1.50.0",
72
72
  "typescript": "4.6.3"
73
73
  },
74
74
  "peerDependencies": {
@@ -18,9 +18,12 @@ import packageJson from '../../package.json';
18
18
  import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace';
19
19
  import {
20
20
  PureGraphManagerPlugin,
21
+ type ObserverContext,
22
+ type ElementObserver,
21
23
  type PackageableElement,
22
24
  type PureGrammarElementLabeler,
23
25
  } from '@finos/legend-graph';
26
+ import { observe_DataSpace } from './action/changeDetection/DSLDataSpace_ObserverHelper';
24
27
 
25
28
  const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace';
26
29
  const PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL = 'DataSpace';
@@ -48,4 +51,18 @@ export class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin
48
51
  },
49
52
  ];
50
53
  }
54
+
55
+ override getExtraElementObservers(): ElementObserver[] {
56
+ return [
57
+ (
58
+ element: PackageableElement,
59
+ context: ObserverContext,
60
+ ): PackageableElement | undefined => {
61
+ if (element instanceof DataSpace) {
62
+ return observe_DataSpace(element);
63
+ }
64
+ return undefined;
65
+ },
66
+ ];
67
+ }
51
68
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import {
18
+ observe_Abstract_PackageableElement,
19
+ observe_StereotypeReference,
20
+ observe_TaggedValue,
21
+ skipObserved,
22
+ } from '@finos/legend-graph';
23
+ import { makeObservable, override } from 'mobx';
24
+ import type { DataSpace } from '../../../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace';
25
+
26
+ export const observe_DataSpace = skipObserved(
27
+ (metamodel: DataSpace): DataSpace => {
28
+ observe_Abstract_PackageableElement(metamodel);
29
+
30
+ makeObservable<DataSpace, '_elementHashCode'>(metamodel, {
31
+ _elementHashCode: override,
32
+ });
33
+
34
+ // metamodel.executionContexts.forEach(observe_DataSpaceExecutionContext);
35
+ // observe_DataSpaceExecutionContext(metamodel.defaultExecutionContext);
36
+ // if (metamodel.supportInfo) {
37
+ // observe_DataSpaceSupportInfo(metamodel.supportInfo);
38
+ // }
39
+ metamodel.stereotypes.forEach(observe_StereotypeReference);
40
+ metamodel.taggedValues.forEach(observe_TaggedValue);
41
+
42
+ return metamodel;
43
+ },
44
+ );
@@ -14,7 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { makeObservable, override } from 'mobx';
18
17
  import { hashArray, type Hashable } from '@finos/legend-shared';
19
18
  import {
20
19
  PackageableElement,
@@ -71,14 +70,6 @@ export class DataSpace extends PackageableElement implements Hashable {
71
70
  description?: string | undefined;
72
71
  supportInfo?: DataSpaceSupportInfo | undefined;
73
72
 
74
- constructor(name: string) {
75
- super(name);
76
-
77
- makeObservable<DataSpace, '_elementHashCode'>(this, {
78
- _elementHashCode: override,
79
- });
80
- }
81
-
82
73
  protected override get _elementHashCode(): string {
83
74
  return hashArray([
84
75
  DATA_SPACE_HASH_STRUCTURE.DATA_SPACE,
package/tsconfig.json CHANGED
@@ -41,6 +41,7 @@
41
41
  "./src/graph/DSLDataSpace_PureGraphPlugin.ts",
42
42
  "./src/graphManager/DSLDataSpace_GraphManagerHelper.ts",
43
43
  "./src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts",
44
+ "./src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts",
44
45
  "./src/models/DSLDataSpace_ModelUtils.ts",
45
46
  "./src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts",
46
47
  "./src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts",