@finos/legend-lego 2.0.179 → 2.0.181

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ElementIconUtils.d.ts","sourceRoot":"","sources":["../../src/graph-editor/ElementIconUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EAMV,MAAM,qBAAqB,CAAC;AAU7B,eAAO,MAAM,oBAAoB,GAAI,MAAM,IAAI,KAAG,KAAK,CAAC,SAavD,CAAC"}
1
+ {"version":3,"file":"ElementIconUtils.d.ts","sourceRoot":"","sources":["../../src/graph-editor/ElementIconUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,qBAAqB,CAAC;AAU7B,eAAO,MAAM,oBAAoB,GAAI,MAAM,IAAI,KAAG,KAAK,CAAC,SAavD,CAAC"}
@@ -14,10 +14,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { Class, Enumeration, Measure, Unit, PrimitiveType, } from '@finos/legend-graph';
17
+ import { Class, Enumeration, Measure, Unit, PrimitiveType, PrecisePrimitiveType, } from '@finos/legend-graph';
18
18
  import { PURE_ClassIcon, PURE_PrimitiveTypeIcon, PURE_EnumerationIcon, PURE_MeasureIcon, PURE_UnknownElementTypeIcon, PURE_UnitIcon, } from '@finos/legend-art';
19
19
  export const getClassPropertyIcon = (type) => {
20
- if (type instanceof PrimitiveType) {
20
+ if (type instanceof PrimitiveType || type instanceof PrecisePrimitiveType) {
21
21
  return _jsx(PURE_PrimitiveTypeIcon, {});
22
22
  }
23
23
  else if (type instanceof Class) {
@@ -1 +1 @@
1
- {"version":3,"file":"ElementIconUtils.js","sourceRoot":"","sources":["../../src/graph-editor/ElementIconUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,OAAO,EACP,IAAI,EACJ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,2BAA2B,EAC3B,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAU,EAAmB,EAAE;IAClE,IAAI,IAAI,YAAY,aAAa,EAAE,CAAC;QAClC,OAAO,KAAC,sBAAsB,KAAG,CAAC;IACpC,CAAC;SAAM,IAAI,IAAI,YAAY,KAAK,EAAE,CAAC;QACjC,OAAO,KAAC,cAAc,KAAG,CAAC;IAC5B,CAAC;SAAM,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;QACvC,OAAO,KAAC,oBAAoB,KAAG,CAAC;IAClC,CAAC;SAAM,IAAI,IAAI,YAAY,OAAO,EAAE,CAAC;QACnC,OAAO,KAAC,gBAAgB,KAAG,CAAC;IAC9B,CAAC;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE,CAAC;QAChC,OAAO,KAAC,aAAa,KAAG,CAAC;IAC3B,CAAC;IACD,OAAO,KAAC,2BAA2B,KAAG,CAAC;AACzC,CAAC,CAAC"}
1
+ {"version":3,"file":"ElementIconUtils.js","sourceRoot":"","sources":["../../src/graph-editor/ElementIconUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,OAAO,EACP,IAAI,EACJ,aAAa,EACb,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,2BAA2B,EAC3B,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAU,EAAmB,EAAE;IAClE,IAAI,IAAI,YAAY,aAAa,IAAI,IAAI,YAAY,oBAAoB,EAAE,CAAC;QAC1E,OAAO,KAAC,sBAAsB,KAAG,CAAC;IACpC,CAAC;SAAM,IAAI,IAAI,YAAY,KAAK,EAAE,CAAC;QACjC,OAAO,KAAC,cAAc,KAAG,CAAC;IAC5B,CAAC;SAAM,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;QACvC,OAAO,KAAC,oBAAoB,KAAG,CAAC;IAClC,CAAC;SAAM,IAAI,IAAI,YAAY,OAAO,EAAE,CAAC;QACnC,OAAO,KAAC,gBAAgB,KAAG,CAAC;IAC9B,CAAC;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE,CAAC;QAChC,OAAO,KAAC,aAAa,KAAG,CAAC;IAC3B,CAAC;IACD,OAAO,KAAC,2BAA2B,KAAG,CAAC;AACzC,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-lego v2.0.179
1
+ /** @license @finos/legend-lego v2.0.181
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-lego",
3
- "version": "2.0.179",
3
+ "version": "2.0.181",
4
4
  "description": "Legend code editor support",
5
5
  "keywords": [
6
6
  "legend",
@@ -48,10 +48,10 @@
48
48
  "test:watch": "jest --watch"
49
49
  },
50
50
  "dependencies": {
51
- "@finos/legend-application": "16.0.102",
51
+ "@finos/legend-application": "16.0.103",
52
52
  "@finos/legend-art": "7.1.145",
53
- "@finos/legend-code-editor": "2.0.160",
54
- "@finos/legend-graph": "32.4.0",
53
+ "@finos/legend-code-editor": "2.0.162",
54
+ "@finos/legend-graph": "32.4.2",
55
55
  "@finos/legend-shared": "11.0.23",
56
56
  "@types/css-font-loading-module": "0.0.14",
57
57
  "@types/react": "19.0.10",
@@ -21,6 +21,7 @@ import {
21
21
  Measure,
22
22
  Unit,
23
23
  PrimitiveType,
24
+ PrecisePrimitiveType,
24
25
  } from '@finos/legend-graph';
25
26
  import {
26
27
  PURE_ClassIcon,
@@ -32,7 +33,7 @@ import {
32
33
  } from '@finos/legend-art';
33
34
 
34
35
  export const getClassPropertyIcon = (type: Type): React.ReactNode => {
35
- if (type instanceof PrimitiveType) {
36
+ if (type instanceof PrimitiveType || type instanceof PrecisePrimitiveType) {
36
37
  return <PURE_PrimitiveTypeIcon />;
37
38
  } else if (type instanceof Class) {
38
39
  return <PURE_ClassIcon />;