Skip to content

Commit 0a56f67

Browse files
committed
feat(core): add enabled state to components with ui
1 parent 1abbea3 commit 0a56f67

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
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.13",
4+
"version": "2.4.0-alpha.14",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",

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

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

33
export type ComponentUIElement = {
44
name: string;
5+
enabled: boolean;
56
componentID: string;
67
attributes: { [name: string]: string };
78
get: () => HTMLElement;

packages/core/src/fragments/Classifier/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { FragmentsManager } from "../FragmentsManager";
1111
// for dynamic, we just need to add a queryGroup as shown below
1212

1313
// TODO: Make the groups a class to have a getter that gets the combined FragmentIdMap
14-
// combined from the cherry picked elements and the elements found in the group
14+
// combined from the cherry p<icked elements and the elements found in the group
1515

1616
/**
1717
* Interface representing a classification system. The classification is organized by system and class name, and each class contains a map of fragment IDs with extra information.
@@ -38,7 +38,7 @@ export interface Classification {
3838
interface ExportedClassification {
3939
[system: string]: {
4040
[groupName: string]: {
41-
map: string;
41+
map: { [name: string]: number[] };
4242
name: string;
4343
id: number | null;
4444
};

0 commit comments

Comments
 (0)