@collabdt/core 0.5.1 → 0.5.4

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.
Files changed (219) hide show
  1. package/dist/core/components/AppSidebarContent.d.ts +2 -3
  2. package/dist/core/components/AppSidebarContent.d.ts.map +1 -1
  3. package/dist/core/components/AppSidebarContent.js +10 -1
  4. package/dist/core/components/AppSidebarContent.js.map +1 -1
  5. package/dist/core/components/Toolbar.d.ts +2 -3
  6. package/dist/core/components/Toolbar.d.ts.map +1 -1
  7. package/dist/core/components/Toolbar.js.map +1 -1
  8. package/dist/core/components/ui/AppSidebar.d.ts +2 -2
  9. package/dist/core/components/ui/AppSidebar.d.ts.map +1 -1
  10. package/dist/core/components/ui/AppSidebar.js.map +1 -1
  11. package/dist/core/components/ui/Comments/CommentsSection.d.ts.map +1 -1
  12. package/dist/core/components/ui/Comments/CommentsSection.js +10 -9
  13. package/dist/core/components/ui/Comments/CommentsSection.js.map +1 -1
  14. package/dist/core/components/ui/Sensors/SensorsSection.d.ts.map +1 -1
  15. package/dist/core/components/ui/Sensors/SensorsSection.js +24 -23
  16. package/dist/core/components/ui/Sensors/SensorsSection.js.map +1 -1
  17. package/dist/core/components/ui/ViewerSidebar/Shell.js +1 -1
  18. package/dist/core/components/ui/ViewerSidebar/Shell.js.map +1 -1
  19. package/dist/core/components/ui/ViewerSidebar/TabStrip.d.ts +6 -5
  20. package/dist/core/components/ui/ViewerSidebar/TabStrip.d.ts.map +1 -1
  21. package/dist/core/components/ui/ViewerSidebar/TabStrip.js +6 -4
  22. package/dist/core/components/ui/ViewerSidebar/TabStrip.js.map +1 -1
  23. package/dist/core/components/ui/ViewerSidebar/sidebarTabs.d.ts +16 -9
  24. package/dist/core/components/ui/ViewerSidebar/sidebarTabs.d.ts.map +1 -1
  25. package/dist/core/components/ui/ViewerSidebar/sidebarTabs.js.map +1 -1
  26. package/dist/core/components/viewers/Viewer.d.ts.map +1 -1
  27. package/dist/core/components/viewers/Viewer.js +17 -8
  28. package/dist/core/components/viewers/Viewer.js.map +1 -1
  29. package/dist/core/components/viewers/bim/BimViewer.d.ts.map +1 -1
  30. package/dist/core/components/viewers/bim/BimViewer.js +6 -1
  31. package/dist/core/components/viewers/bim/BimViewer.js.map +1 -1
  32. package/dist/core/components/viewers/bim/src/BimSidebar/src/index.d.ts.map +1 -1
  33. package/dist/core/components/viewers/bim/src/BimSidebar/src/index.js +5 -1
  34. package/dist/core/components/viewers/bim/src/BimSidebar/src/index.js.map +1 -1
  35. package/dist/core/components/viewers/bim/src/ElementAppearance.d.ts +10 -1
  36. package/dist/core/components/viewers/bim/src/ElementAppearance.d.ts.map +1 -1
  37. package/dist/core/components/viewers/bim/src/ElementAppearance.js +36 -1
  38. package/dist/core/components/viewers/bim/src/ElementAppearance.js.map +1 -1
  39. package/dist/core/components/viewers/bim/src/ModelsSync.d.ts.map +1 -1
  40. package/dist/core/components/viewers/bim/src/ModelsSync.js +6 -5
  41. package/dist/core/components/viewers/bim/src/ModelsSync.js.map +1 -1
  42. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.d.ts +12 -1
  43. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.d.ts.map +1 -1
  44. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.js +18 -2
  45. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.js.map +1 -1
  46. package/dist/core/components/viewers/map/MapViewer.d.ts.map +1 -1
  47. package/dist/core/components/viewers/map/MapViewer.js +6 -3
  48. package/dist/core/components/viewers/map/MapViewer.js.map +1 -1
  49. package/dist/core/components/viewers/map/src/MapSidebar/index.d.ts.map +1 -1
  50. package/dist/core/components/viewers/map/src/MapSidebar/index.js +5 -1
  51. package/dist/core/components/viewers/map/src/MapSidebar/index.js.map +1 -1
  52. package/dist/core/components/viewers/map/utils/stringToColour.d.ts +3 -0
  53. package/dist/core/components/viewers/map/utils/stringToColour.d.ts.map +1 -1
  54. package/dist/core/components/viewers/map/utils/stringToColour.js +72 -70
  55. package/dist/core/components/viewers/map/utils/stringToColour.js.map +1 -1
  56. package/dist/core/components/viewers/plugins/src/PluginCard.d.ts.map +1 -1
  57. package/dist/core/components/viewers/plugins/src/PluginCard.js +8 -4
  58. package/dist/core/components/viewers/plugins/src/PluginCard.js.map +1 -1
  59. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.d.ts.map +1 -1
  60. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.js +5 -1
  61. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.js.map +1 -1
  62. package/dist/core/components/viewers/shared/legends/ViewerLegendHost.d.ts +10 -0
  63. package/dist/core/components/viewers/shared/legends/ViewerLegendHost.d.ts.map +1 -0
  64. package/dist/core/components/viewers/{map/legends/MapLegendHost.js → shared/legends/ViewerLegendHost.js} +48 -8
  65. package/dist/core/components/viewers/shared/legends/ViewerLegendHost.js.map +1 -0
  66. package/dist/core/components/viewers/viewerAccess.d.ts +7 -0
  67. package/dist/core/components/viewers/viewerAccess.d.ts.map +1 -0
  68. package/dist/core/components/viewers/viewerAccess.js +9 -0
  69. package/dist/core/components/viewers/viewerAccess.js.map +1 -0
  70. package/dist/core/i18n/messages/en.json +5 -0
  71. package/dist/core/i18n/messages/es.json +5 -0
  72. package/dist/core/i18n/messages/fr.json +5 -0
  73. package/dist/core/plugins/hello-bim/components/SpaceDialog.d.ts +13 -0
  74. package/dist/core/plugins/hello-bim/components/SpaceDialog.d.ts.map +1 -0
  75. package/dist/core/plugins/hello-bim/components/SpaceDialog.js +80 -0
  76. package/dist/core/plugins/hello-bim/components/SpaceDialog.js.map +1 -0
  77. package/dist/core/plugins/hello-bim/components/SpacesLegend.d.ts +11 -0
  78. package/dist/core/plugins/hello-bim/components/SpacesLegend.d.ts.map +1 -0
  79. package/dist/core/plugins/hello-bim/components/SpacesLegend.js +16 -0
  80. package/dist/core/plugins/hello-bim/components/SpacesLegend.js.map +1 -0
  81. package/dist/core/plugins/hello-bim/components/SpacesTab.d.ts +4 -0
  82. package/dist/core/plugins/hello-bim/components/SpacesTab.d.ts.map +1 -0
  83. package/dist/core/plugins/hello-bim/components/SpacesTab.js +211 -0
  84. package/dist/core/plugins/hello-bim/components/SpacesTab.js.map +1 -0
  85. package/dist/core/plugins/hello-bim/components/SpacesTool.d.ts +8 -0
  86. package/dist/core/plugins/hello-bim/components/SpacesTool.d.ts.map +1 -0
  87. package/dist/core/plugins/hello-bim/components/SpacesTool.js +68 -0
  88. package/dist/core/plugins/hello-bim/components/SpacesTool.js.map +1 -0
  89. package/dist/core/plugins/hello-bim/components/icons.d.ts +13 -0
  90. package/dist/core/plugins/hello-bim/components/icons.d.ts.map +1 -0
  91. package/dist/core/plugins/hello-bim/components/icons.js +52 -0
  92. package/dist/core/plugins/hello-bim/components/icons.js.map +1 -0
  93. package/dist/core/plugins/hello-bim/index.d.ts +2 -6
  94. package/dist/core/plugins/hello-bim/index.d.ts.map +1 -1
  95. package/dist/core/plugins/hello-bim/index.js +27 -3
  96. package/dist/core/plugins/hello-bim/index.js.map +1 -1
  97. package/dist/core/plugins/hello-bim/manifest.json +97 -31
  98. package/dist/core/plugins/hello-bim/spaces.d.ts +57 -0
  99. package/dist/core/plugins/hello-bim/spaces.d.ts.map +1 -0
  100. package/dist/core/plugins/hello-bim/spaces.js +207 -0
  101. package/dist/core/plugins/hello-bim/spaces.js.map +1 -0
  102. package/dist/core/plugins/hello-map/components/MapTool.d.ts +9 -0
  103. package/dist/core/plugins/hello-map/components/MapTool.d.ts.map +1 -0
  104. package/dist/core/plugins/hello-map/components/{HelloMapTool.js → MapTool.js} +30 -11
  105. package/dist/core/plugins/hello-map/components/MapTool.js.map +1 -0
  106. package/dist/core/plugins/hello-map/components/MarkerDialog.d.ts +9 -0
  107. package/dist/core/plugins/hello-map/components/MarkerDialog.d.ts.map +1 -0
  108. package/dist/core/plugins/hello-map/components/MarkerDialog.js +47 -0
  109. package/dist/core/plugins/hello-map/components/MarkerDialog.js.map +1 -0
  110. package/dist/core/plugins/hello-map/components/MarkersLayer.d.ts +8 -0
  111. package/dist/core/plugins/hello-map/components/MarkersLayer.d.ts.map +1 -0
  112. package/dist/core/plugins/hello-map/components/MarkersLayer.js +133 -0
  113. package/dist/core/plugins/hello-map/components/MarkersLayer.js.map +1 -0
  114. package/dist/core/plugins/hello-map/components/MarkersLegend.d.ts +11 -0
  115. package/dist/core/plugins/hello-map/components/MarkersLegend.d.ts.map +1 -0
  116. package/dist/core/plugins/hello-map/components/MarkersLegend.js +20 -0
  117. package/dist/core/plugins/hello-map/components/MarkersLegend.js.map +1 -0
  118. package/dist/core/plugins/hello-map/components/MarkersPage.d.ts +6 -0
  119. package/dist/core/plugins/hello-map/components/MarkersPage.d.ts.map +1 -0
  120. package/dist/core/plugins/hello-map/components/MarkersPage.js +40 -0
  121. package/dist/core/plugins/hello-map/components/MarkersPage.js.map +1 -0
  122. package/dist/core/plugins/hello-map/components/MarkersTab.d.ts +4 -0
  123. package/dist/core/plugins/hello-map/components/MarkersTab.d.ts.map +1 -0
  124. package/dist/core/plugins/hello-map/components/MarkersTab.js +275 -0
  125. package/dist/core/plugins/hello-map/components/MarkersTab.js.map +1 -0
  126. package/dist/core/plugins/hello-map/index.d.ts +2 -5
  127. package/dist/core/plugins/hello-map/index.d.ts.map +1 -1
  128. package/dist/core/plugins/hello-map/index.js +43 -3
  129. package/dist/core/plugins/hello-map/index.js.map +1 -1
  130. package/dist/core/plugins/hello-map/manifest.json +85 -12
  131. package/dist/core/plugins/hello-map/markers.d.ts +32 -0
  132. package/dist/core/plugins/hello-map/markers.d.ts.map +1 -0
  133. package/dist/core/plugins/hello-map/markers.js +143 -0
  134. package/dist/core/plugins/hello-map/markers.js.map +1 -0
  135. package/dist/core/plugins/host/PluginDataPageHost.d.ts +10 -0
  136. package/dist/core/plugins/host/PluginDataPageHost.d.ts.map +1 -0
  137. package/dist/core/plugins/host/PluginDataPageHost.js +142 -0
  138. package/dist/core/plugins/host/PluginDataPageHost.js.map +1 -0
  139. package/dist/core/plugins/host/PluginDialogHost.d.ts +7 -0
  140. package/dist/core/plugins/host/PluginDialogHost.d.ts.map +1 -0
  141. package/dist/core/plugins/host/PluginDialogHost.js +80 -0
  142. package/dist/core/plugins/host/PluginDialogHost.js.map +1 -0
  143. package/dist/core/plugins/host/PluginMapLayerHost.d.ts +6 -0
  144. package/dist/core/plugins/host/PluginMapLayerHost.d.ts.map +1 -0
  145. package/dist/core/plugins/host/PluginMapLayerHost.js +26 -0
  146. package/dist/core/plugins/host/PluginMapLayerHost.js.map +1 -0
  147. package/dist/core/plugins/host/dialogs.d.ts +25 -0
  148. package/dist/core/plugins/host/dialogs.d.ts.map +1 -0
  149. package/dist/core/plugins/host/dialogs.js +50 -0
  150. package/dist/core/plugins/host/dialogs.js.map +1 -0
  151. package/dist/core/plugins/host/host.d.ts.map +1 -1
  152. package/dist/core/plugins/host/host.js +2 -0
  153. package/dist/core/plugins/host/host.js.map +1 -1
  154. package/dist/core/plugins/host/pluginState.d.ts +28 -0
  155. package/dist/core/plugins/host/pluginState.d.ts.map +1 -0
  156. package/dist/core/plugins/host/pluginState.js +49 -0
  157. package/dist/core/plugins/host/pluginState.js.map +1 -0
  158. package/dist/core/plugins/host/pluginViewerKey.d.ts +13 -0
  159. package/dist/core/plugins/host/pluginViewerKey.d.ts.map +1 -0
  160. package/dist/core/plugins/host/pluginViewerKey.js +18 -0
  161. package/dist/core/plugins/host/pluginViewerKey.js.map +1 -0
  162. package/dist/core/plugins/host/provider.d.ts.map +1 -1
  163. package/dist/core/plugins/host/provider.js +2 -1
  164. package/dist/core/plugins/host/provider.js.map +1 -1
  165. package/dist/core/plugins/host/runtimeShims.d.ts.map +1 -1
  166. package/dist/core/plugins/host/runtimeShims.js +61 -1
  167. package/dist/core/plugins/host/runtimeShims.js.map +1 -1
  168. package/dist/core/plugins/host/usePluginDataPages.d.ts +15 -0
  169. package/dist/core/plugins/host/usePluginDataPages.d.ts.map +1 -0
  170. package/dist/core/plugins/host/usePluginDataPages.js +22 -0
  171. package/dist/core/plugins/host/usePluginDataPages.js.map +1 -0
  172. package/dist/core/plugins/host/usePluginViewerTabs.d.ts +11 -0
  173. package/dist/core/plugins/host/usePluginViewerTabs.d.ts.map +1 -0
  174. package/dist/core/plugins/host/usePluginViewerTabs.js +41 -0
  175. package/dist/core/plugins/host/usePluginViewerTabs.js.map +1 -0
  176. package/dist/core/plugins/sdk/bimViewer.d.ts +29 -13
  177. package/dist/core/plugins/sdk/bimViewer.d.ts.map +1 -1
  178. package/dist/core/plugins/sdk/bimViewer.js +17 -1
  179. package/dist/core/plugins/sdk/bimViewer.js.map +1 -1
  180. package/dist/core/plugins/sdk/index.d.ts +1 -0
  181. package/dist/core/plugins/sdk/index.d.ts.map +1 -1
  182. package/dist/core/plugins/sdk/index.js +4 -1
  183. package/dist/core/plugins/sdk/index.js.map +1 -1
  184. package/dist/core/plugins/sdk/messages.d.ts +6 -0
  185. package/dist/core/plugins/sdk/messages.d.ts.map +1 -1
  186. package/dist/core/plugins/sdk/messages.js +11 -0
  187. package/dist/core/plugins/sdk/messages.js.map +1 -1
  188. package/dist/core/plugins/sdk/state.d.ts +6 -0
  189. package/dist/core/plugins/sdk/state.d.ts.map +1 -0
  190. package/dist/core/plugins/sdk/state.js +30 -0
  191. package/dist/core/plugins/sdk/state.js.map +1 -0
  192. package/dist/core/plugins/sdk/types.d.ts +55 -10
  193. package/dist/core/plugins/sdk/types.d.ts.map +1 -1
  194. package/dist/core/plugins/sdk/types.js +7 -3
  195. package/dist/core/plugins/sdk/types.js.map +1 -1
  196. package/dist/core/plugins/sdk/ui.d.ts +12 -0
  197. package/dist/core/plugins/sdk/ui.d.ts.map +1 -0
  198. package/dist/core/plugins/sdk/ui.js +16 -0
  199. package/dist/core/plugins/sdk/ui.js.map +1 -0
  200. package/dist/core/store/CombineProviders.d.ts.map +1 -1
  201. package/dist/core/store/CombineProviders.js +6 -2
  202. package/dist/core/store/CombineProviders.js.map +1 -1
  203. package/dist/core/store/Menus/reducer.d.ts +5 -3
  204. package/dist/core/store/Menus/reducer.d.ts.map +1 -1
  205. package/dist/core/store/Menus/reducer.js.map +1 -1
  206. package/dist/core/types/dbTypes.d.ts +5 -0
  207. package/dist/core/types/dbTypes.d.ts.map +1 -1
  208. package/dist/core/types/dbTypes.js.map +1 -1
  209. package/package.json +3 -1
  210. package/dist/core/components/viewers/map/legends/MapLegendHost.d.ts +0 -10
  211. package/dist/core/components/viewers/map/legends/MapLegendHost.d.ts.map +0 -1
  212. package/dist/core/components/viewers/map/legends/MapLegendHost.js.map +0 -1
  213. package/dist/core/plugins/hello-bim/components/HelloBimTool.d.ts +0 -18
  214. package/dist/core/plugins/hello-bim/components/HelloBimTool.d.ts.map +0 -1
  215. package/dist/core/plugins/hello-bim/components/HelloBimTool.js +0 -142
  216. package/dist/core/plugins/hello-bim/components/HelloBimTool.js.map +0 -1
  217. package/dist/core/plugins/hello-map/components/HelloMapTool.d.ts +0 -14
  218. package/dist/core/plugins/hello-map/components/HelloMapTool.d.ts.map +0 -1
  219. package/dist/core/plugins/hello-map/components/HelloMapTool.js.map +0 -1
@@ -1,142 +0,0 @@
1
- "use client";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import * as React from "react";
4
- import { Badge, Button, Separator } from "../../sdk/components";
5
- import { usePluginConfig } from "../../sdk/config";
6
- import { usePluginTranslations } from "../../sdk/messages";
7
- import { usePluginStore } from "../../sdk/store";
8
- function HelloBimTool({
9
- modelIds,
10
- selection,
11
- select,
12
- fitToSelection,
13
- setItemsVisible,
14
- getItemsOfCategory,
15
- getProperties
16
- }) {
17
- const t = usePluginTranslations();
18
- const { category = "IFCSPACE" } = usePluginConfig();
19
- const notes = usePluginStore("notes");
20
- const [rows, setRows] = React.useState(null);
21
- const [items, setItems] = React.useState({});
22
- const [visible, setVisible] = React.useState(false);
23
- const [loading, setLoading] = React.useState(false);
24
- const modelKey = modelIds.join(",");
25
- React.useEffect(() => {
26
- let cancelled = false;
27
- async function load() {
28
- if (modelIds.length === 0) {
29
- setRows([]);
30
- return;
31
- }
32
- setLoading(true);
33
- try {
34
- const found = await getItemsOfCategory(category);
35
- const properties = await getProperties(found, ["Name", "LongName"]);
36
- if (cancelled) return;
37
- setItems(found);
38
- setRows(properties.map((property) => {
39
- var _a;
40
- return {
41
- modelId: String(property.modelId),
42
- localId: Number(property.localId),
43
- name: (_a = readName(property)) != null ? _a : t("unnamed", "Unnamed")
44
- };
45
- }));
46
- } catch (error) {
47
- if (!cancelled) {
48
- console.error("hello-bim: failed to read spaces", error);
49
- setRows([]);
50
- }
51
- } finally {
52
- if (!cancelled) setLoading(false);
53
- }
54
- }
55
- void load();
56
- return () => {
57
- cancelled = true;
58
- };
59
- }, [modelKey, category, getItemsOfCategory, getProperties, t]);
60
- const selectedIds = React.useMemo(() => {
61
- const ids = /* @__PURE__ */ new Set();
62
- for (const set of Object.values(selection)) {
63
- for (const id of set) ids.add(id);
64
- }
65
- return ids;
66
- }, [selection]);
67
- const toggleVisibility = async () => {
68
- const next = !visible;
69
- setVisible(next);
70
- await setItemsVisible(items, next);
71
- };
72
- const focus = async (row) => {
73
- await select({ [row.modelId]: /* @__PURE__ */ new Set([row.localId]) });
74
- await fitToSelection();
75
- };
76
- const toggleNote = async (row) => {
77
- const key = `${row.modelId}:${row.localId}`;
78
- if (notes.get(key)) {
79
- await notes.remove(key);
80
- } else {
81
- await notes.put(key, { note: row.name });
82
- }
83
- };
84
- return /* @__PURE__ */ jsxs("div", { className: "w-72 p-1", children: [
85
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 px-2 py-1", children: [
86
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: t("title", "Hello BIM") }),
87
- rows !== null && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "font-normal tabular-nums", children: rows.length })
88
- ] }),
89
- /* @__PURE__ */ jsx(Separator, { className: "my-1" }),
90
- modelIds.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-2 py-1 text-sm text-muted-foreground", children: t("noModel", "Load a BIM model to see its spaces.") }) : loading || rows === null ? /* @__PURE__ */ jsx("p", { className: "px-2 py-1 text-sm text-muted-foreground", children: t("loading", "Reading spaces\u2026") }) : rows.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-2 py-1 text-sm text-muted-foreground", children: t("noSpaces", "This model has no spaces defined.") }) : /* @__PURE__ */ jsxs(Fragment, { children: [
91
- /* @__PURE__ */ jsx(
92
- Button,
93
- {
94
- size: "sm",
95
- variant: "ghost",
96
- className: "w-full justify-start font-normal",
97
- onClick: () => void toggleVisibility(),
98
- children: visible ? t("hideSpaces", "Hide spaces in the model") : t("showSpaces", "Show spaces in the model")
99
- }
100
- ),
101
- /* @__PURE__ */ jsx(Separator, { className: "my-1" }),
102
- /* @__PURE__ */ jsx("ul", { className: "max-h-64 overflow-y-auto", children: rows.map((row) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-1", children: [
103
- /* @__PURE__ */ jsxs(
104
- "button",
105
- {
106
- type: "button",
107
- onClick: () => void focus(row),
108
- "aria-current": selectedIds.has(row.localId) || void 0,
109
- className: "flex w-full items-baseline justify-between gap-2 rounded px-2 py-1 text-left text-sm hover:bg-muted aria-[current]:bg-muted aria-[current]:font-medium",
110
- children: [
111
- /* @__PURE__ */ jsx("span", { className: "truncate", children: row.name }),
112
- /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs tabular-nums text-muted-foreground", children: row.localId })
113
- ]
114
- }
115
- ),
116
- /* @__PURE__ */ jsx(
117
- "button",
118
- {
119
- type: "button",
120
- onClick: () => void toggleNote(row),
121
- "aria-pressed": Boolean(notes.get(`${row.modelId}:${row.localId}`)),
122
- title: t("noteHint", "Save this space to the plugin\u2019s own storage"),
123
- className: "shrink-0 rounded px-1.5 text-xs text-muted-foreground hover:bg-muted aria-pressed:text-foreground",
124
- children: notes.get(`${row.modelId}:${row.localId}`) ? "\u2605" : "\u2606"
125
- }
126
- )
127
- ] }, `${row.modelId}:${row.localId}`)) })
128
- ] })
129
- ] });
130
- }
131
- function readName(property) {
132
- for (const key of ["LongName", "Name"]) {
133
- const raw = property[key];
134
- const value = typeof raw === "object" && raw !== null ? raw.value : raw;
135
- if (typeof value === "string" && value.trim().length > 0) return value;
136
- }
137
- return void 0;
138
- }
139
- export {
140
- HelloBimTool
141
- };
142
- //# sourceMappingURL=HelloBimTool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/core/plugins/hello-bim/components/HelloBimTool.tsx"],"sourcesContent":["'use client'\r\n\r\n// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport * as React from 'react'\r\n\r\nimport { Badge, Button, Separator } from '../../sdk/components'\r\nimport { usePluginConfig } from '../../sdk/config'\r\nimport { usePluginTranslations } from '../../sdk/messages'\r\nimport { usePluginStore } from '../../sdk/store'\r\n\r\nimport type { BimToolProps, ModelIdMap } from '../../sdk/bimViewer'\r\nimport type { ToolbarToolProps } from '../../sdk/types'\r\n\r\ninterface Config extends Record<string, unknown> {\r\n category?: string\r\n}\r\n\r\ninterface SpaceRow {\r\n modelId: string\r\n localId: number\r\n name: string\r\n}\r\n\r\n/**\r\n * Lists the spaces in the loaded model, and drives the viewer from that list.\r\n *\r\n * The whole point of this plugin is to prove the boundary: everything here comes\r\n * from `BimToolProps`, which arrives as props, and from `../sdk/*`. It never\r\n * imports `@thatopen`, never touches a core store, and never reaches into the\r\n * viewer's internals.\r\n *\r\n * Note the visibility step. `IFCSPACE` is hidden by default — spaces are\r\n * volumetric and would obscure everything inside them — so listing them is not\r\n * the same as showing them. A plugin author hits this immediately, which is\r\n * exactly why the example handles it.\r\n */\r\nexport function HelloBimTool({\r\n modelIds,\r\n selection,\r\n select,\r\n fitToSelection,\r\n setItemsVisible,\r\n getItemsOfCategory,\r\n getProperties,\r\n}: ToolbarToolProps & BimToolProps) {\r\n const t = usePluginTranslations()\r\n const { category = 'IFCSPACE' } = usePluginConfig<Config>()\r\n\r\n // The plugin's own storage. Namespaced to this plugin and this organization by\r\n // core, so no ids are passed in and nothing else can read it. Keys are the\r\n // plugin's choice — model plus element here, which is stable across reloads.\r\n const notes = usePluginStore<{ note: string }>('notes')\r\n\r\n const [rows, setRows] = React.useState<SpaceRow[] | null>(null)\r\n const [items, setItems] = React.useState<ModelIdMap>({})\r\n const [visible, setVisible] = React.useState(false)\r\n const [loading, setLoading] = React.useState(false)\r\n\r\n const modelKey = modelIds.join(',')\r\n\r\n React.useEffect(() => {\r\n let cancelled = false\r\n\r\n async function load() {\r\n if (modelIds.length === 0) {\r\n setRows([])\r\n return\r\n }\r\n\r\n setLoading(true)\r\n try {\r\n const found = await getItemsOfCategory(category)\r\n // 'Name' is the human label; 'LongName' is where most authoring tools put\r\n // the room name, so read both and prefer whichever is filled in.\r\n const properties = await getProperties(found, ['Name', 'LongName'])\r\n if (cancelled) return\r\n\r\n setItems(found)\r\n setRows(properties.map(property => ({\r\n modelId: String(property.modelId),\r\n localId: Number(property.localId),\r\n name: readName(property) ?? t('unnamed', 'Unnamed'),\r\n })))\r\n } catch (error) {\r\n if (!cancelled) {\r\n console.error('hello-bim: failed to read spaces', error)\r\n setRows([])\r\n }\r\n } finally {\r\n if (!cancelled) setLoading(false)\r\n }\r\n }\r\n\r\n void load()\r\n return () => {\r\n cancelled = true\r\n }\r\n // modelKey, not modelIds: the array identity changes on every store update.\r\n }, [modelKey, category, getItemsOfCategory, getProperties, t])\r\n\r\n const selectedIds = React.useMemo(() => {\r\n const ids = new Set<number>()\r\n for (const set of Object.values(selection)) {\r\n for (const id of set) ids.add(id)\r\n }\r\n return ids\r\n }, [selection])\r\n\r\n const toggleVisibility = async () => {\r\n const next = !visible\r\n setVisible(next)\r\n await setItemsVisible(items, next)\r\n }\r\n\r\n const focus = async (row: SpaceRow) => {\r\n await select({ [row.modelId]: new Set([row.localId]) })\r\n await fitToSelection()\r\n }\r\n\r\n /** Proves the round trip: write a document, and see it survive a reload. */\r\n const toggleNote = async (row: SpaceRow) => {\r\n const key = `${row.modelId}:${row.localId}`\r\n if (notes.get(key)) {\r\n await notes.remove(key)\r\n } else {\r\n await notes.put(key, { note: row.name })\r\n }\r\n }\r\n\r\n return (\r\n <div className=\"w-72 p-1\">\r\n <div className=\"flex items-center justify-between gap-2 px-2 py-1\">\r\n <p className=\"text-sm font-medium\">{t('title', 'Hello BIM')}</p>\r\n {rows !== null && (\r\n <Badge variant=\"outline\" className=\"font-normal tabular-nums\">{rows.length}</Badge>\r\n )}\r\n </div>\r\n <Separator className=\"my-1\" />\r\n\r\n {modelIds.length === 0 ? (\r\n <p className=\"px-2 py-1 text-sm text-muted-foreground\">\r\n {t('noModel', 'Load a BIM model to see its spaces.')}\r\n </p>\r\n ) : loading || rows === null ? (\r\n <p className=\"px-2 py-1 text-sm text-muted-foreground\">{t('loading', 'Reading spaces…')}</p>\r\n ) : rows.length === 0 ? (\r\n <p className=\"px-2 py-1 text-sm text-muted-foreground\">\r\n {t('noSpaces', 'This model has no spaces defined.')}\r\n </p>\r\n ) : (\r\n <>\r\n <Button\r\n size=\"sm\"\r\n variant=\"ghost\"\r\n className=\"w-full justify-start font-normal\"\r\n onClick={() => void toggleVisibility()}\r\n >\r\n {visible\r\n ? t('hideSpaces', 'Hide spaces in the model')\r\n : t('showSpaces', 'Show spaces in the model')}\r\n </Button>\r\n\r\n <Separator className=\"my-1\" />\r\n\r\n <ul className=\"max-h-64 overflow-y-auto\">\r\n {rows.map(row => (\r\n <li key={`${row.modelId}:${row.localId}`} className=\"flex items-center gap-1\">\r\n <button\r\n type=\"button\"\r\n onClick={() => void focus(row)}\r\n aria-current={selectedIds.has(row.localId) || undefined}\r\n className=\"flex w-full items-baseline justify-between gap-2 rounded px-2 py-1 text-left text-sm hover:bg-muted aria-[current]:bg-muted aria-[current]:font-medium\"\r\n >\r\n <span className=\"truncate\">{row.name}</span>\r\n <span className=\"shrink-0 text-xs tabular-nums text-muted-foreground\">\r\n {row.localId}\r\n </span>\r\n </button>\r\n <button\r\n type=\"button\"\r\n onClick={() => void toggleNote(row)}\r\n aria-pressed={Boolean(notes.get(`${row.modelId}:${row.localId}`))}\r\n title={t('noteHint', 'Save this space to the plugin’s own storage')}\r\n className=\"shrink-0 rounded px-1.5 text-xs text-muted-foreground hover:bg-muted aria-pressed:text-foreground\"\r\n >\r\n {notes.get(`${row.modelId}:${row.localId}`) ? '★' : '☆'}\r\n </button>\r\n </li>\r\n ))}\r\n </ul>\r\n </>\r\n )}\r\n </div>\r\n )\r\n}\r\n\r\n/** Prefers LongName, which is where most authoring tools put the room name. */\r\nfunction readName(property: Record<string, unknown>): string | undefined {\r\n for (const key of ['LongName', 'Name']) {\r\n const raw = property[key]\r\n // Fragments returns attributes as either a bare string or { value }.\r\n const value = typeof raw === 'object' && raw !== null\r\n ? (raw as { value?: unknown }).value\r\n : raw\r\n if (typeof value === 'string' && value.trim().length > 0) return value\r\n }\r\n return undefined\r\n}\r\n"],"mappings":";AAqIM,SAmBE,UAlBA,KADF;AAhIN,YAAY,WAAW;AAEvB,SAAS,OAAO,QAAQ,iBAAiB;AACzC,SAAS,uBAAuB;AAChC,SAAS,6BAA6B;AACtC,SAAS,sBAAsB;AA4BxB,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAoC;AAClC,QAAM,IAAI,sBAAsB;AAChC,QAAM,EAAE,WAAW,WAAW,IAAI,gBAAwB;AAK1D,QAAM,QAAQ,eAAiC,OAAO;AAEtD,QAAM,CAAC,MAAM,OAAO,IAAI,MAAM,SAA4B,IAAI;AAC9D,QAAM,CAAC,OAAO,QAAQ,IAAI,MAAM,SAAqB,CAAC,CAAC;AACvD,QAAM,CAAC,SAAS,UAAU,IAAI,MAAM,SAAS,KAAK;AAClD,QAAM,CAAC,SAAS,UAAU,IAAI,MAAM,SAAS,KAAK;AAElD,QAAM,WAAW,SAAS,KAAK,GAAG;AAElC,QAAM,UAAU,MA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AAc,YAAY,IAAI,IAAI,OAAO,KAAK;AAAA,YAC9C,WAAU;AAAA,YAEV;AAAA,kCAAC,UAAK,WAAU,YAAY,cAAI,MAAK;AAAA,cACrC,oBAAC,UAAK,WAAU,uDACb,cAAI,SACP;AAAA;AAAA;AAAA,QACF;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAS,MAAM,KAAK,WAAW,GAAG;AAAA,YAClC,gBAAc,QAAQ,MAAM,IAAI,GAAG,IAAI,OAAO,IAAI,IAAI,OAAO,EAAE,CAAC;AAAA,YAChE,OAAO,EAAE,YAAY,kDAA6C;AAAA,YAClE,WAAU;AAAA,YAET,gBAAM,IAAI,GAAG,IAAI,OAAO,IAAI,IAAI,OAAO,EAAE,IAAI,WAAM;AAAA;AAAA,QACtD;AAAA,WApBO,GAAG,IAAI,OAAO,IAAI,IAAI,OAAO,EAqBtC,CACD,GACH;AAAA,OACF;AAAA,KAEJ;AAEJ;AAGA,SAAS,SAAS,UAAuD;AACvE,aAAW,OAAO,CAAC,YAAY,MAAM,GAAG;AACtC,UAAM,MAAM,SAAS,GAAG;AAExB,UAAM,QAAQ,OAAO,QAAQ,YAAY,QAAQ,OAC5C,IAA4B,QAC7B;AACJ,QAAI,OAAO,UAAU,YAAY,MAAM,KAAK,EAAE,SAAS,EAAG,QAAO;AAAA,EACnE;AACA,SAAO;AACT;","names":[]}
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import type { MapToolProps } from '../../sdk/mapViewer';
3
- import type { ToolbarToolProps } from '../../sdk/types';
4
- /**
5
- * Reads the map's centre and zoom, and keeps them current as the user pans.
6
- *
7
- * Four things to copy from this: render panel content and let core supply the
8
- * button-and-dropdown chrome; guard `map`, which is null until MapLibre finishes
9
- * initialising; remove every listener on cleanup, or a leaked `move` handler keeps
10
- * firing after the user switches viewers; and take strings from the manifest's
11
- * `messages` with an inline English fallback.
12
- */
13
- export declare function HelloMapTool({ map }: ToolbarToolProps & MapToolProps): React.JSX.Element;
14
- //# sourceMappingURL=HelloMapTool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HelloMapTool.d.ts","sourceRoot":"","sources":["../../../../../src/core/plugins/hello-map/components/HelloMapTool.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAMvD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,gBAAgB,GAAG,YAAY,qBAsDpE"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/core/plugins/hello-map/components/HelloMapTool.tsx"],"sourcesContent":["'use client'\r\n\r\n// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport * as React from 'react'\r\n\r\nimport { Button, Separator } from '../../sdk/components'\r\nimport { usePluginConfig } from '../../sdk/config'\r\nimport { usePluginTranslations } from '../../sdk/messages'\r\n\r\nimport type { MapToolProps } from '../../sdk/mapViewer'\r\nimport type { ToolbarToolProps } from '../../sdk/types'\r\n\r\ninterface Config extends Record<string, unknown> {\r\n decimals?: number\r\n}\r\n\r\n/**\r\n * Reads the map's centre and zoom, and keeps them current as the user pans.\r\n *\r\n * Four things to copy from this: render panel content and let core supply the\r\n * button-and-dropdown chrome; guard `map`, which is null until MapLibre finishes\r\n * initialising; remove every listener on cleanup, or a leaked `move` handler keeps\r\n * firing after the user switches viewers; and take strings from the manifest's\r\n * `messages` with an inline English fallback.\r\n */\r\nexport function HelloMapTool({ map }: ToolbarToolProps & MapToolProps) {\r\n const t = usePluginTranslations()\r\n const { decimals = 5 } = usePluginConfig<Config>()\r\n\r\n const [view, setView] = React.useState<{ lng: number; lat: number; zoom: number } | null>(null)\r\n\r\n React.useEffect(() => {\r\n if (!map) return\r\n\r\n const read = () => {\r\n const centre = map.getCenter()\r\n setView({ lng: centre.lng, lat: centre.lat, zoom: map.getZoom() })\r\n }\r\n\r\n read()\r\n map.on('move', read)\r\n return () => {\r\n map.off('move', read)\r\n }\r\n }, [map])\r\n\r\n return (\r\n <div className=\"w-60 p-1\">\r\n <p className=\"px-2 py-1 text-sm font-medium\">{t('title', 'Hello Map')}</p>\r\n <Separator className=\"my-1\" />\r\n\r\n {view ? (\r\n <>\r\n <dl className=\"px-2 py-1 text-sm\">\r\n <Row label={t('latitude', 'Latitude')} value={view.lat.toFixed(decimals)} />\r\n <Row label={t('longitude', 'Longitude')} value={view.lng.toFixed(decimals)} />\r\n <Row label={t('zoom', 'Zoom')} value={view.zoom.toFixed(2)} />\r\n </dl>\r\n\r\n <Button\r\n size=\"sm\"\r\n variant=\"ghost\"\r\n className=\"mt-1 w-full justify-start font-normal\"\r\n onClick={() => {\r\n void navigator.clipboard?.writeText(\r\n `${view.lat.toFixed(decimals)}, ${view.lng.toFixed(decimals)}`,\r\n )\r\n }}\r\n >\r\n {t('copy', 'Copy coordinates')}\r\n </Button>\r\n </>\r\n ) : (\r\n <p className=\"px-2 py-1 text-sm text-muted-foreground\">\r\n {t('waiting', 'Waiting for the map…')}\r\n </p>\r\n )}\r\n </div>\r\n )\r\n}\r\n\r\nfunction Row({ label, value }: { label: string; value: string }) {\r\n return (\r\n <div className=\"flex items-baseline justify-between gap-3 py-0.5\">\r\n <dt className=\"text-muted-foreground\">{label}</dt>\r\n <dd className=\"tabular-nums\">{value}</dd>\r\n </div>\r\n )\r\n}\r\n"],"mappings":";AAkDM,SAIE,UAJF,KAKI,YALJ;AA7CN,YAAY,WAAW;AAEvB,SAAS,QAAQ,iBAAiB;AAClC,SAAS,uBAAuB;AAChC,SAAS,6BAA6B;AAkB/B,SAAS,aAAa,EAAE,IAAI,GAAoC;AACrE,QAAM,IAAI,sBAAsB;AAChC,QAAM,EAAE,WAAW,EAAE,IAAI,gBAAwB;AAEjD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