Skip to content

Commit c0f5916

Browse files
committed
feat(core): add optional disabled state to components with ui
1 parent 0a56f67 commit c0f5916

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thatopen/components",
33
"description": "Collection of core functionalities to author BIM apps.",
4-
"version": "2.4.0-alpha.14",
4+
"version": "2.4.0-alpha.15",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
@@ -37,7 +37,7 @@
3737
"access": "public"
3838
},
3939
"devDependencies": {
40-
"@thatopen/fragments": ">=2.4.0-alpha.8",
40+
"@thatopen/fragments": ">=2.4.0-alpha.9",
4141
"@thatopen/ui": "~2.3.0",
4242
"@types/three": "0.160.0",
4343
"stats.js": "^0.17.0",
@@ -51,7 +51,7 @@
5151
"three-mesh-bvh": "0.7.0"
5252
},
5353
"peerDependencies": {
54-
"@thatopen/fragments": ">=2.4.0-alpha.8",
54+
"@thatopen/fragments": ">=2.4.0-alpha.9",
5555
"three": "^0.160.1",
5656
"web-ifc": "0.0.61"
5757
}

packages/core/src/core/Types/src/component-with-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { Component } from "./component";
22

33
export type ComponentUIElement = {
44
name: string;
5-
enabled: boolean;
65
componentID: string;
76
attributes: { [name: string]: string };
87
get: () => HTMLElement;
8+
disabled?: boolean;
99
};
1010

1111
export abstract class ComponentWithUI extends Component {

packages/front/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
"publish-alpha": "npm publish --tag alpha"
3434
},
3535
"peerDependencies": {
36-
"@thatopen/fragments": ">=2.4.0-alpha.8",
36+
"@thatopen/fragments": ">=2.4.0-alpha.9",
3737
"three": "^0.160.1",
3838
"web-ifc": "0.0.61"
3939
},
4040
"devDependencies": {
41-
"@thatopen/fragments": ">=2.4.0-alpha.8",
41+
"@thatopen/fragments": ">=2.4.0-alpha.9",
4242
"@thatopen/ui": "~2.3.0",
4343
"@thatopen/ui-obc": "~2.3.0",
4444
"@types/earcut": "^2.1.4",
@@ -47,7 +47,7 @@
4747
"web-ifc": "0.0.61"
4848
},
4949
"dependencies": {
50-
"@thatopen/components": ">=2.4.0-alpha.13",
50+
"@thatopen/components": ">=2.4.0-alpha.15",
5151
"camera-controls": "2.7.3",
5252
"dexie": "^4.0.4",
5353
"earcut": "^2.2.4",

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ __metadata:
689689
version: 0.0.0-use.local
690690
resolution: "@thatopen/components-front@workspace:packages/front"
691691
dependencies:
692-
"@thatopen/components": ">=2.4.0-alpha.13"
693-
"@thatopen/fragments": ">=2.4.0-alpha.8"
692+
"@thatopen/components": ">=2.4.0-alpha.14"
693+
"@thatopen/fragments": ">=2.4.0-alpha.9"
694694
"@thatopen/ui": ~2.3.0
695695
"@thatopen/ui-obc": ~2.3.0
696696
"@types/earcut": ^2.1.4
@@ -703,17 +703,17 @@ __metadata:
703703
three: ^0.160.1
704704
web-ifc: 0.0.61
705705
peerDependencies:
706-
"@thatopen/fragments": ">=2.4.0-alpha.8"
706+
"@thatopen/fragments": ">=2.4.0-alpha.9"
707707
three: ^0.160.1
708708
web-ifc: 0.0.61
709709
languageName: unknown
710710
linkType: soft
711711

712-
"@thatopen/components@>=2.4.0-alpha.13, @thatopen/components@workspace:packages/core":
712+
"@thatopen/components@>=2.4.0-alpha.14, @thatopen/components@workspace:packages/core":
713713
version: 0.0.0-use.local
714714
resolution: "@thatopen/components@workspace:packages/core"
715715
dependencies:
716-
"@thatopen/fragments": ">=2.4.0-alpha.8"
716+
"@thatopen/fragments": ">=2.4.0-alpha.9"
717717
"@thatopen/ui": ~2.3.0
718718
"@types/three": 0.160.0
719719
camera-controls: 2.7.3
@@ -724,21 +724,21 @@ __metadata:
724724
three-mesh-bvh: 0.7.0
725725
web-ifc: 0.0.61
726726
peerDependencies:
727-
"@thatopen/fragments": ">=2.4.0-alpha.8"
727+
"@thatopen/fragments": ">=2.4.0-alpha.9"
728728
three: ^0.160.1
729729
web-ifc: 0.0.61
730730
languageName: unknown
731731
linkType: soft
732732

733-
"@thatopen/fragments@npm:>=2.4.0-alpha.8":
734-
version: 2.4.0-alpha.8
735-
resolution: "@thatopen/fragments@npm:2.4.0-alpha.8"
733+
"@thatopen/fragments@npm:>=2.4.0-alpha.9":
734+
version: 2.4.0-alpha.9
735+
resolution: "@thatopen/fragments@npm:2.4.0-alpha.9"
736736
dependencies:
737737
flatbuffers: 23.3.3
738738
three-mesh-bvh: 0.7.0
739739
peerDependencies:
740740
three: ^0.160.1
741-
checksum: d4be85ef5f96d892be594675192ba037550135f8ba1243a2875dd5c8b9eb72059b7e110a2f8bbbdc6f8d1c696a986c688c7fd70bf410ffadea1dd7b09fc8cb35
741+
checksum: 260ee1be9268412b9b810fac5300c0cd600797c885c51c6812eaef2ad2a234b3e34f874348e02dc88c505872cbdabfb47f2be2593cfb138e55d1b70861a7e6c9
742742
languageName: node
743743
linkType: hard
744744

0 commit comments

Comments
 (0)