@collabdt/core 0.8.2 → 0.9.0

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 (1390) hide show
  1. package/LICENSE +661 -661
  2. package/NOTICE +1021 -1021
  3. package/README.md +105 -105
  4. package/dist/core/components/AppSidebarContent.js +2 -0
  5. package/dist/core/components/AppSidebarContent.js.map +1 -1
  6. package/dist/core/components/ConfirmDialog.js.map +1 -1
  7. package/dist/core/components/DataTableSkeleton.js.map +1 -1
  8. package/dist/core/components/LanguageSwitch.js +2 -0
  9. package/dist/core/components/LanguageSwitch.js.map +1 -1
  10. package/dist/core/components/Logo.js.map +1 -1
  11. package/dist/core/components/Toolbar.js +2 -0
  12. package/dist/core/components/Toolbar.js.map +1 -1
  13. package/dist/core/components/ToolbarBody.js +2 -0
  14. package/dist/core/components/ToolbarBody.js.map +1 -1
  15. package/dist/core/components/ToolbarSubmenu.js +2 -0
  16. package/dist/core/components/ToolbarSubmenu.js.map +1 -1
  17. package/dist/core/components/TopNavigationBar.js +2 -0
  18. package/dist/core/components/TopNavigationBar.js.map +1 -1
  19. package/dist/core/components/authentication/AuthPage.js +2 -0
  20. package/dist/core/components/authentication/AuthPage.js.map +1 -1
  21. package/dist/core/components/authentication/ForgotPassword.js +2 -0
  22. package/dist/core/components/authentication/ForgotPassword.js.map +1 -1
  23. package/dist/core/components/authentication/PasswordError.js.map +1 -1
  24. package/dist/core/components/authentication/SignInAuthHeader.js.map +1 -1
  25. package/dist/core/components/authentication/Signin.js +2 -0
  26. package/dist/core/components/authentication/Signin.js.map +1 -1
  27. package/dist/core/components/authentication/SigninEmail.js.map +1 -1
  28. package/dist/core/components/authentication/Signup.js +2 -0
  29. package/dist/core/components/authentication/Signup.js.map +1 -1
  30. package/dist/core/components/authentication/VerifyEmail.js.map +1 -1
  31. package/dist/core/components/authentication/auth.css +423 -423
  32. package/dist/core/components/authentication/index.js.map +1 -1
  33. package/dist/core/components/index.js.map +1 -1
  34. package/dist/core/components/instance-not-found/index.js +2 -0
  35. package/dist/core/components/instance-not-found/index.js.map +1 -1
  36. package/dist/core/components/instance-not-found/src/OrganizationNotFoundSection.js +2 -0
  37. package/dist/core/components/instance-not-found/src/OrganizationNotFoundSection.js.map +1 -1
  38. package/dist/core/components/organizationConfig/index.js +2 -0
  39. package/dist/core/components/organizationConfig/index.js.map +1 -1
  40. package/dist/core/components/organizationConfig/src/CountrySubdivisionFields.js +2 -0
  41. package/dist/core/components/organizationConfig/src/CountrySubdivisionFields.js.map +1 -1
  42. package/dist/core/components/organizationConfig/src/organizationConfigContent.js +2 -0
  43. package/dist/core/components/organizationConfig/src/organizationConfigContent.js.map +1 -1
  44. package/dist/core/components/settings/index.js +2 -0
  45. package/dist/core/components/settings/index.js.map +1 -1
  46. package/dist/core/components/settings/src/AccountSettingsPanel.js +2 -0
  47. package/dist/core/components/settings/src/AccountSettingsPanel.js.map +1 -1
  48. package/dist/core/components/settings/src/ChangePassword.js +2 -0
  49. package/dist/core/components/settings/src/ChangePassword.js.map +1 -1
  50. package/dist/core/components/settings/src/OrganizationSettingsPanel.js +2 -0
  51. package/dist/core/components/settings/src/OrganizationSettingsPanel.js.map +1 -1
  52. package/dist/core/components/settings/src/OrganizationSkeleton.js.map +1 -1
  53. package/dist/core/components/settings/src/SettingsContent.js +2 -0
  54. package/dist/core/components/settings/src/SettingsContent.js.map +1 -1
  55. package/dist/core/components/settings/src/SettingsHeader.js +2 -0
  56. package/dist/core/components/settings/src/SettingsHeader.js.map +1 -1
  57. package/dist/core/components/settings/src/SettingsSidebar.js +2 -0
  58. package/dist/core/components/settings/src/SettingsSidebar.js.map +1 -1
  59. package/dist/core/components/settings/src/SettingsSkeleton.js.map +1 -1
  60. package/dist/core/components/settings/src/UsersSettingsPanel.js +2 -0
  61. package/dist/core/components/settings/src/UsersSettingsPanel.js.map +1 -1
  62. package/dist/core/components/support/BugReportDialog.js +2 -0
  63. package/dist/core/components/support/BugReportDialog.js.map +1 -1
  64. package/dist/core/components/support/FeatureRequestDialog.js +2 -0
  65. package/dist/core/components/support/FeatureRequestDialog.js.map +1 -1
  66. package/dist/core/components/support/SupportMenu.js.map +1 -1
  67. package/dist/core/components/ui/Accordion.js +2 -0
  68. package/dist/core/components/ui/Accordion.js.map +1 -1
  69. package/dist/core/components/ui/AddItemDialog.js +2 -0
  70. package/dist/core/components/ui/AddItemDialog.js.map +1 -1
  71. package/dist/core/components/ui/AlertDialog.js +2 -0
  72. package/dist/core/components/ui/AlertDialog.js.map +1 -1
  73. package/dist/core/components/ui/AnimatedBackground.js +2 -0
  74. package/dist/core/components/ui/AnimatedBackground.js.map +1 -1
  75. package/dist/core/components/ui/AppSidebar.js +2 -0
  76. package/dist/core/components/ui/AppSidebar.js.map +1 -1
  77. package/dist/core/components/ui/Avatar.js +2 -0
  78. package/dist/core/components/ui/Avatar.js.map +1 -1
  79. package/dist/core/components/ui/Badge.js.map +1 -1
  80. package/dist/core/components/ui/Breadcrumb.js.map +1 -1
  81. package/dist/core/components/ui/Button.js.map +1 -1
  82. package/dist/core/components/ui/Calendar.js +2 -0
  83. package/dist/core/components/ui/Calendar.js.map +1 -1
  84. package/dist/core/components/ui/Card.js.map +1 -1
  85. package/dist/core/components/ui/Checkbox.js +2 -0
  86. package/dist/core/components/ui/Checkbox.js.map +1 -1
  87. package/dist/core/components/ui/CollapsibleSection.js +2 -0
  88. package/dist/core/components/ui/CollapsibleSection.js.map +1 -1
  89. package/dist/core/components/ui/ColorCircle.js.map +1 -1
  90. package/dist/core/components/ui/Command.js +2 -0
  91. package/dist/core/components/ui/Command.js.map +1 -1
  92. package/dist/core/components/ui/Comments/CollapsibleCommentItem.js +2 -0
  93. package/dist/core/components/ui/Comments/CollapsibleCommentItem.js.map +1 -1
  94. package/dist/core/components/ui/Comments/Comment.js +2 -0
  95. package/dist/core/components/ui/Comments/Comment.js.map +1 -1
  96. package/dist/core/components/ui/Comments/CommentActionButtons.js +2 -0
  97. package/dist/core/components/ui/Comments/CommentActionButtons.js.map +1 -1
  98. package/dist/core/components/ui/Comments/CommentInput.js +2 -0
  99. package/dist/core/components/ui/Comments/CommentInput.js.map +1 -1
  100. package/dist/core/components/ui/Comments/CommentsSection.js +2 -0
  101. package/dist/core/components/ui/Comments/CommentsSection.js.map +1 -1
  102. package/dist/core/components/ui/Comments/commentUtils.js.map +1 -1
  103. package/dist/core/components/ui/Countdown.js +2 -0
  104. package/dist/core/components/ui/Countdown.js.map +1 -1
  105. package/dist/core/components/ui/DataTable.js +2 -0
  106. package/dist/core/components/ui/DataTable.js.map +1 -1
  107. package/dist/core/components/ui/DatePicker.js +2 -0
  108. package/dist/core/components/ui/DatePicker.js.map +1 -1
  109. package/dist/core/components/ui/DescriptionList.js +2 -0
  110. package/dist/core/components/ui/DescriptionList.js.map +1 -1
  111. package/dist/core/components/ui/Dialog.js +2 -0
  112. package/dist/core/components/ui/Dialog.js.map +1 -1
  113. package/dist/core/components/ui/DropdownMenu.js +2 -0
  114. package/dist/core/components/ui/DropdownMenu.js.map +1 -1
  115. package/dist/core/components/ui/ExportData.js.map +1 -1
  116. package/dist/core/components/ui/FilesManager/index.d.ts +1 -0
  117. package/dist/core/components/ui/FilesManager/index.d.ts.map +1 -1
  118. package/dist/core/components/ui/FilesManager/index.js +3 -1
  119. package/dist/core/components/ui/FilesManager/index.js.map +1 -1
  120. package/dist/core/components/ui/FilesManager/src/FileItemComponent.d.ts.map +1 -1
  121. package/dist/core/components/ui/FilesManager/src/FileItemComponent.js +9 -5
  122. package/dist/core/components/ui/FilesManager/src/FileItemComponent.js.map +1 -1
  123. package/dist/core/components/ui/FilesManager/src/FileMarker.d.ts +5 -3
  124. package/dist/core/components/ui/FilesManager/src/FileMarker.d.ts.map +1 -1
  125. package/dist/core/components/ui/FilesManager/src/FileMarker.js +17 -66
  126. package/dist/core/components/ui/FilesManager/src/FileMarker.js.map +1 -1
  127. package/dist/core/components/ui/FilesManager/src/PlacementActionsCard.d.ts +15 -0
  128. package/dist/core/components/ui/FilesManager/src/PlacementActionsCard.d.ts.map +1 -0
  129. package/dist/core/components/ui/FilesManager/src/PlacementActionsCard.js +77 -0
  130. package/dist/core/components/ui/FilesManager/src/PlacementActionsCard.js.map +1 -0
  131. package/dist/core/components/ui/FilesManager/src/ViewerContextMenu.js +2 -0
  132. package/dist/core/components/ui/FilesManager/src/ViewerContextMenu.js.map +1 -1
  133. package/dist/core/components/ui/FilesManager/src/convertIfcToFragmentsFile.d.ts +3 -7
  134. package/dist/core/components/ui/FilesManager/src/convertIfcToFragmentsFile.d.ts.map +1 -1
  135. package/dist/core/components/ui/FilesManager/src/convertIfcToFragmentsFile.js +2 -2
  136. package/dist/core/components/ui/FilesManager/src/convertIfcToFragmentsFile.js.map +1 -1
  137. package/dist/core/components/ui/FilesManager/src/downloadUtils.js +2 -0
  138. package/dist/core/components/ui/FilesManager/src/downloadUtils.js.map +1 -1
  139. package/dist/core/components/ui/FilesManager/src/useCommonFileUpload.js +2 -0
  140. package/dist/core/components/ui/FilesManager/src/useCommonFileUpload.js.map +1 -1
  141. package/dist/core/components/ui/FilesManager/src/useFileActions.d.ts +2 -1
  142. package/dist/core/components/ui/FilesManager/src/useFileActions.d.ts.map +1 -1
  143. package/dist/core/components/ui/FilesManager/src/useFileActions.js +19 -2
  144. package/dist/core/components/ui/FilesManager/src/useFileActions.js.map +1 -1
  145. package/dist/core/components/ui/FilesManager/src/useFileDeleteHandler.js.map +1 -1
  146. package/dist/core/components/ui/FilesManager/src/useFileUploadHandler.d.ts.map +1 -1
  147. package/dist/core/components/ui/FilesManager/src/useFileUploadHandler.js +20 -12
  148. package/dist/core/components/ui/FilesManager/src/useFileUploadHandler.js.map +1 -1
  149. package/dist/core/components/ui/FilesManager/src/useFileUploadWithProgress.js +2 -0
  150. package/dist/core/components/ui/FilesManager/src/useFileUploadWithProgress.js.map +1 -1
  151. package/dist/core/components/ui/FilesManager/src/useFileVisibility.d.ts +10 -0
  152. package/dist/core/components/ui/FilesManager/src/useFileVisibility.d.ts.map +1 -0
  153. package/dist/core/components/ui/FilesManager/src/useFileVisibility.js +66 -0
  154. package/dist/core/components/ui/FilesManager/src/useFileVisibility.js.map +1 -0
  155. package/dist/core/components/ui/Footer.js +2 -0
  156. package/dist/core/components/ui/Footer.js.map +1 -1
  157. package/dist/core/components/ui/GenericTool.js +2 -0
  158. package/dist/core/components/ui/GenericTool.js.map +1 -1
  159. package/dist/core/components/ui/Icons/BcfIcon.js.map +1 -1
  160. package/dist/core/components/ui/Icons/CdtIcon.js.map +1 -1
  161. package/dist/core/components/ui/Icons/FloorPlanIcon.js.map +1 -1
  162. package/dist/core/components/ui/Icons/GoogleIcon.js.map +1 -1
  163. package/dist/core/components/ui/Icons/IdsIcon.js.map +1 -1
  164. package/dist/core/components/ui/Icons/IfcIcon.js.map +1 -1
  165. package/dist/core/components/ui/Icons/index.js.map +1 -1
  166. package/dist/core/components/ui/Input.js +2 -0
  167. package/dist/core/components/ui/Input.js.map +1 -1
  168. package/dist/core/components/ui/Label.js +2 -0
  169. package/dist/core/components/ui/Label.js.map +1 -1
  170. package/dist/core/components/ui/LanguageToggle.js +2 -0
  171. package/dist/core/components/ui/LanguageToggle.js.map +1 -1
  172. package/dist/core/components/ui/LegendCard.js +2 -0
  173. package/dist/core/components/ui/LegendCard.js.map +1 -1
  174. package/dist/core/components/ui/LoadingSpinner.js.map +1 -1
  175. package/dist/core/components/ui/Menubar.js +2 -0
  176. package/dist/core/components/ui/Menubar.js.map +1 -1
  177. package/dist/core/components/ui/NavUser.js +2 -0
  178. package/dist/core/components/ui/NavUser.js.map +1 -1
  179. package/dist/core/components/ui/Navbar.js +2 -0
  180. package/dist/core/components/ui/Navbar.js.map +1 -1
  181. package/dist/core/components/ui/Popover.js +2 -0
  182. package/dist/core/components/ui/Popover.js.map +1 -1
  183. package/dist/core/components/ui/Progress.js +2 -0
  184. package/dist/core/components/ui/Progress.js.map +1 -1
  185. package/dist/core/components/ui/ScrollArea.js +2 -0
  186. package/dist/core/components/ui/ScrollArea.js.map +1 -1
  187. package/dist/core/components/ui/SearchInput.js.map +1 -1
  188. package/dist/core/components/ui/Select.js +2 -0
  189. package/dist/core/components/ui/Select.js.map +1 -1
  190. package/dist/core/components/ui/Sensors/CollapsibleSensorItem.js +2 -0
  191. package/dist/core/components/ui/Sensors/CollapsibleSensorItem.js.map +1 -1
  192. package/dist/core/components/ui/Sensors/Sensor.js +2 -0
  193. package/dist/core/components/ui/Sensors/Sensor.js.map +1 -1
  194. package/dist/core/components/ui/Sensors/SensorChart.js +2 -0
  195. package/dist/core/components/ui/Sensors/SensorChart.js.map +1 -1
  196. package/dist/core/components/ui/Sensors/SensorComparisonChart.js +2 -0
  197. package/dist/core/components/ui/Sensors/SensorComparisonChart.js.map +1 -1
  198. package/dist/core/components/ui/Sensors/SensorDetailDialog.js +2 -0
  199. package/dist/core/components/ui/Sensors/SensorDetailDialog.js.map +1 -1
  200. package/dist/core/components/ui/Sensors/SensorInput.js +2 -0
  201. package/dist/core/components/ui/Sensors/SensorInput.js.map +1 -1
  202. package/dist/core/components/ui/Sensors/SensorLegend.js +2 -0
  203. package/dist/core/components/ui/Sensors/SensorLegend.js.map +1 -1
  204. package/dist/core/components/ui/Sensors/SensorMultiSeriesChart.js +2 -0
  205. package/dist/core/components/ui/Sensors/SensorMultiSeriesChart.js.map +1 -1
  206. package/dist/core/components/ui/Sensors/SensorTagsSection.js +2 -0
  207. package/dist/core/components/ui/Sensors/SensorTagsSection.js.map +1 -1
  208. package/dist/core/components/ui/Sensors/SensorsSection.js +2 -0
  209. package/dist/core/components/ui/Sensors/SensorsSection.js.map +1 -1
  210. package/dist/core/components/ui/Sensors/SensorsSectionSkeleton.js.map +1 -1
  211. package/dist/core/components/ui/Sensors/TimeZoneSelect.js +2 -0
  212. package/dist/core/components/ui/Sensors/TimeZoneSelect.js.map +1 -1
  213. package/dist/core/components/ui/Sensors/buildingSensorColours.js.map +1 -1
  214. package/dist/core/components/ui/Sensors/sensorColour.js.map +1 -1
  215. package/dist/core/components/ui/Sensors/sensorData.js.map +1 -1
  216. package/dist/core/components/ui/Sensors/sensorRange.js.map +1 -1
  217. package/dist/core/components/ui/Sensors/sensorScope.js.map +1 -1
  218. package/dist/core/components/ui/Sensors/sensorSeriesRows.js.map +1 -1
  219. package/dist/core/components/ui/Sensors/sensorUtils.js.map +1 -1
  220. package/dist/core/components/ui/Sensors/sensorValueColours.js.map +1 -1
  221. package/dist/core/components/ui/Sensors/sensorVisibility.js.map +1 -1
  222. package/dist/core/components/ui/Sensors/useBuildingSensorColours.js +2 -0
  223. package/dist/core/components/ui/Sensors/useBuildingSensorColours.js.map +1 -1
  224. package/dist/core/components/ui/Sensors/useSensorSeries.js +2 -0
  225. package/dist/core/components/ui/Sensors/useSensorSeries.js.map +1 -1
  226. package/dist/core/components/ui/Sensors/useSensorSeriesMulti.js +2 -0
  227. package/dist/core/components/ui/Sensors/useSensorSeriesMulti.js.map +1 -1
  228. package/dist/core/components/ui/Separator.js +2 -0
  229. package/dist/core/components/ui/Separator.js.map +1 -1
  230. package/dist/core/components/ui/SettingsButton.js.map +1 -1
  231. package/dist/core/components/ui/ShareFeature/QRCodeWithLink.js +2 -0
  232. package/dist/core/components/ui/ShareFeature/QRCodeWithLink.js.map +1 -1
  233. package/dist/core/components/ui/ShareFeature/ShareToolSubmenu.js +2 -0
  234. package/dist/core/components/ui/ShareFeature/ShareToolSubmenu.js.map +1 -1
  235. package/dist/core/components/ui/ShareFeature/index.js.map +1 -1
  236. package/dist/core/components/ui/Sheet.js +2 -0
  237. package/dist/core/components/ui/Sheet.js.map +1 -1
  238. package/dist/core/components/ui/Sidebar.js +2 -0
  239. package/dist/core/components/ui/Sidebar.js.map +1 -1
  240. package/dist/core/components/ui/Skeleton.js.map +1 -1
  241. package/dist/core/components/ui/Slider.js +2 -0
  242. package/dist/core/components/ui/Slider.js.map +1 -1
  243. package/dist/core/components/ui/Sonner.js +2 -0
  244. package/dist/core/components/ui/Sonner.js.map +1 -1
  245. package/dist/core/components/ui/Switch.js +2 -0
  246. package/dist/core/components/ui/Switch.js.map +1 -1
  247. package/dist/core/components/ui/Table.js.map +1 -1
  248. package/dist/core/components/ui/Tabs.js +2 -0
  249. package/dist/core/components/ui/Tabs.js.map +1 -1
  250. package/dist/core/components/ui/Textarea.js.map +1 -1
  251. package/dist/core/components/ui/Toggle.js +2 -0
  252. package/dist/core/components/ui/Toggle.js.map +1 -1
  253. package/dist/core/components/ui/ToggleGroup.js +2 -0
  254. package/dist/core/components/ui/ToggleGroup.js.map +1 -1
  255. package/dist/core/components/ui/ToolbarButton.js +2 -0
  256. package/dist/core/components/ui/ToolbarButton.js.map +1 -1
  257. package/dist/core/components/ui/Tooltip.js +2 -0
  258. package/dist/core/components/ui/Tooltip.js.map +1 -1
  259. package/dist/core/components/ui/UserAvatar.js +2 -0
  260. package/dist/core/components/ui/UserAvatar.js.map +1 -1
  261. package/dist/core/components/ui/ViewerSidebar/CommunicationTab.js +2 -0
  262. package/dist/core/components/ui/ViewerSidebar/CommunicationTab.js.map +1 -1
  263. package/dist/core/components/ui/ViewerSidebar/Header.js +2 -0
  264. package/dist/core/components/ui/ViewerSidebar/Header.js.map +1 -1
  265. package/dist/core/components/ui/ViewerSidebar/Panel.d.ts +2 -2
  266. package/dist/core/components/ui/ViewerSidebar/Panel.js +3 -1
  267. package/dist/core/components/ui/ViewerSidebar/Panel.js.map +1 -1
  268. package/dist/core/components/ui/ViewerSidebar/SensorsTab.js +2 -0
  269. package/dist/core/components/ui/ViewerSidebar/SensorsTab.js.map +1 -1
  270. package/dist/core/components/ui/ViewerSidebar/SettingsSection.d.ts +23 -0
  271. package/dist/core/components/ui/ViewerSidebar/SettingsSection.d.ts.map +1 -0
  272. package/dist/core/components/ui/ViewerSidebar/SettingsSection.js +28 -0
  273. package/dist/core/components/ui/ViewerSidebar/SettingsSection.js.map +1 -0
  274. package/dist/core/components/ui/ViewerSidebar/Shell.js +2 -0
  275. package/dist/core/components/ui/ViewerSidebar/Shell.js.map +1 -1
  276. package/dist/core/components/ui/ViewerSidebar/TabStrip.js +2 -0
  277. package/dist/core/components/ui/ViewerSidebar/TabStrip.js.map +1 -1
  278. package/dist/core/components/ui/ViewerSidebar/index.js +2 -0
  279. package/dist/core/components/ui/ViewerSidebar/index.js.map +1 -1
  280. package/dist/core/components/ui/ViewerSidebar/sidebarTabs.js.map +1 -1
  281. package/dist/core/components/ui/chart.js +2 -0
  282. package/dist/core/components/ui/chart.js.map +1 -1
  283. package/dist/core/components/ui/downloadUtils.js +2 -0
  284. package/dist/core/components/ui/downloadUtils.js.map +1 -1
  285. package/dist/core/components/ui/index.d.ts +1 -0
  286. package/dist/core/components/ui/index.d.ts.map +1 -1
  287. package/dist/core/components/ui/index.js +2 -0
  288. package/dist/core/components/ui/index.js.map +1 -1
  289. package/dist/core/components/ui/openPopupWindow.js.map +1 -1
  290. package/dist/core/components/ui/openPopupWindowLCA.js.map +1 -1
  291. package/dist/core/components/ui/stats.js.map +1 -1
  292. package/dist/core/components/ui/uploadFile.js.map +1 -1
  293. package/dist/core/components/viewers/Data/DataMenu.js +2 -0
  294. package/dist/core/components/viewers/Data/DataMenu.js.map +1 -1
  295. package/dist/core/components/viewers/Data/FilterButtons.js +2 -0
  296. package/dist/core/components/viewers/Data/FilterButtons.js.map +1 -1
  297. package/dist/core/components/viewers/Data/HeaderButtons.js +2 -0
  298. package/dist/core/components/viewers/Data/HeaderButtons.js.map +1 -1
  299. package/dist/core/components/viewers/Data/MoreOptions.js +2 -0
  300. package/dist/core/components/viewers/Data/MoreOptions.js.map +1 -1
  301. package/dist/core/components/viewers/Data/advancedFilter/Filters.js +2 -0
  302. package/dist/core/components/viewers/Data/advancedFilter/Filters.js.map +1 -1
  303. package/dist/core/components/viewers/Data/advancedFilter/FiltersDialog.js +2 -0
  304. package/dist/core/components/viewers/Data/advancedFilter/FiltersDialog.js.map +1 -1
  305. package/dist/core/components/viewers/Data/buildingDetails/AddBuilding.js +2 -0
  306. package/dist/core/components/viewers/Data/buildingDetails/AddBuilding.js.map +1 -1
  307. package/dist/core/components/viewers/Data/buildingDetails/BuildingDetails.js +2 -0
  308. package/dist/core/components/viewers/Data/buildingDetails/BuildingDetails.js.map +1 -1
  309. package/dist/core/components/viewers/Data/buildingDetails/BuildingsMoreOptions.js +2 -0
  310. package/dist/core/components/viewers/Data/buildingDetails/BuildingsMoreOptions.js.map +1 -1
  311. package/dist/core/components/viewers/Data/buildingDetails/FieldRenderer.js +2 -0
  312. package/dist/core/components/viewers/Data/buildingDetails/FieldRenderer.js.map +1 -1
  313. package/dist/core/components/viewers/Data/buildingDetails/GeocoderInput.js.map +1 -1
  314. package/dist/core/components/viewers/Data/buildingDetails/buildingSchemaTemplate.js.map +1 -1
  315. package/dist/core/components/viewers/Data/details/AttachedFiles.js +2 -0
  316. package/dist/core/components/viewers/Data/details/AttachedFiles.js.map +1 -1
  317. package/dist/core/components/viewers/Data/details/CheckboxGroup.js.map +1 -1
  318. package/dist/core/components/viewers/Data/details/DetailActions.js +2 -0
  319. package/dist/core/components/viewers/Data/details/DetailActions.js.map +1 -1
  320. package/dist/core/components/viewers/Data/details/DetailHeader.js +2 -0
  321. package/dist/core/components/viewers/Data/details/DetailHeader.js.map +1 -1
  322. package/dist/core/components/viewers/Data/details/EnergySourcesGrid.js.map +1 -1
  323. package/dist/core/components/viewers/Data/details/FieldValue.js.map +1 -1
  324. package/dist/core/components/viewers/Data/details/FileUpload.js +2 -0
  325. package/dist/core/components/viewers/Data/details/FileUpload.js.map +1 -1
  326. package/dist/core/components/viewers/Data/details/FilterFiles.js.map +1 -1
  327. package/dist/core/components/viewers/Data/details/TabSidebar.js.map +1 -1
  328. package/dist/core/components/viewers/Data/details/UnitsGrid.js.map +1 -1
  329. package/dist/core/components/viewers/Data/details/getAttachmentFileName.js.map +1 -1
  330. package/dist/core/components/viewers/Data/files/DatatableFileAdder.js +2 -0
  331. package/dist/core/components/viewers/Data/files/DatatableFileAdder.js.map +1 -1
  332. package/dist/core/components/viewers/Data/files/FileDetails.js +2 -0
  333. package/dist/core/components/viewers/Data/files/FileDetails.js.map +1 -1
  334. package/dist/core/components/viewers/Data/files/FileMoreOptions.js +2 -0
  335. package/dist/core/components/viewers/Data/files/FileMoreOptions.js.map +1 -1
  336. package/dist/core/components/viewers/Data/files/FilePreview.js.map +1 -1
  337. package/dist/core/components/viewers/Data/files/utils/fuzzySearch.js.map +1 -1
  338. package/dist/core/components/viewers/Data/infrastructureDetails/AddInfrastructure.js +2 -0
  339. package/dist/core/components/viewers/Data/infrastructureDetails/AddInfrastructure.js.map +1 -1
  340. package/dist/core/components/viewers/Data/infrastructureDetails/FieldRenderer.js.map +1 -1
  341. package/dist/core/components/viewers/Data/infrastructureDetails/InfrastructureDetails.js +2 -0
  342. package/dist/core/components/viewers/Data/infrastructureDetails/InfrastructureDetails.js.map +1 -1
  343. package/dist/core/components/viewers/Data/siteDetails/AddSite.js +2 -0
  344. package/dist/core/components/viewers/Data/siteDetails/AddSite.js.map +1 -1
  345. package/dist/core/components/viewers/Data/siteDetails/AssociatedBuildings.js +2 -0
  346. package/dist/core/components/viewers/Data/siteDetails/AssociatedBuildings.js.map +1 -1
  347. package/dist/core/components/viewers/Data/siteDetails/FieldRenderer.js.map +1 -1
  348. package/dist/core/components/viewers/Data/siteDetails/SiteDetails.js +2 -0
  349. package/dist/core/components/viewers/Data/siteDetails/SiteDetails.js.map +1 -1
  350. package/dist/core/components/viewers/Data/userDetails/AddUser.js +2 -0
  351. package/dist/core/components/viewers/Data/userDetails/AddUser.js.map +1 -1
  352. package/dist/core/components/viewers/Data/userDetails/UserDetails.js +2 -0
  353. package/dist/core/components/viewers/Data/userDetails/UserDetails.js.map +1 -1
  354. package/dist/core/components/viewers/Data/userDetails/UserMoreOptions.js +2 -0
  355. package/dist/core/components/viewers/Data/userDetails/UserMoreOptions.js.map +1 -1
  356. package/dist/core/components/viewers/Data/utils/Columns.js +2 -0
  357. package/dist/core/components/viewers/Data/utils/Columns.js.map +1 -1
  358. package/dist/core/components/viewers/Data/utils/Headers.js.map +1 -1
  359. package/dist/core/components/viewers/Data/utils/convertDate.js.map +1 -1
  360. package/dist/core/components/viewers/Data/utils/csvUtils.js.map +1 -1
  361. package/dist/core/components/viewers/Data/utils/filterHelper.js.map +1 -1
  362. package/dist/core/components/viewers/Data/utils/positionParser.js.map +1 -1
  363. package/dist/core/components/viewers/Data/utils/useViewerData.js.map +1 -1
  364. package/dist/core/components/viewers/Data/utils/viewerConfig.js.map +1 -1
  365. package/dist/core/components/viewers/Viewer.d.ts.map +1 -1
  366. package/dist/core/components/viewers/Viewer.js +3 -1
  367. package/dist/core/components/viewers/Viewer.js.map +1 -1
  368. package/dist/core/components/viewers/bim/BimToolbar.js +2 -0
  369. package/dist/core/components/viewers/bim/BimToolbar.js.map +1 -1
  370. package/dist/core/components/viewers/bim/BimViewer.d.ts +3 -1
  371. package/dist/core/components/viewers/bim/BimViewer.d.ts.map +1 -1
  372. package/dist/core/components/viewers/bim/BimViewer.js +22 -55
  373. package/dist/core/components/viewers/bim/BimViewer.js.map +1 -1
  374. package/dist/core/components/viewers/bim/src/BCFTopicsManager.js.map +1 -1
  375. package/dist/core/components/viewers/bim/src/BIMManager/index.js.map +1 -1
  376. package/dist/core/components/viewers/bim/src/BimLoadingState/index.d.ts +2 -1
  377. package/dist/core/components/viewers/bim/src/BimLoadingState/index.d.ts.map +1 -1
  378. package/dist/core/components/viewers/bim/src/BimLoadingState/index.js +200 -201
  379. package/dist/core/components/viewers/bim/src/BimLoadingState/index.js.map +1 -1
  380. package/dist/core/components/viewers/bim/src/BimMeasurements/BimMeasurementManager.d.ts +18 -0
  381. package/dist/core/components/viewers/bim/src/BimMeasurements/BimMeasurementManager.d.ts.map +1 -1
  382. package/dist/core/components/viewers/bim/src/BimMeasurements/BimMeasurementManager.js +48 -1
  383. package/dist/core/components/viewers/bim/src/BimMeasurements/BimMeasurementManager.js.map +1 -1
  384. package/dist/core/components/viewers/bim/src/BimMeasurements/measurementSettings.js.map +1 -1
  385. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/index.d.ts.map +1 -1
  386. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/index.js +8 -0
  387. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/index.js.map +1 -1
  388. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/FilesSection.d.ts.map +1 -1
  389. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/FilesSection.js +195 -203
  390. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/FilesSection.js.map +1 -1
  391. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/ModelsSection.d.ts.map +1 -1
  392. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/ModelsSection.js +78 -69
  393. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/ModelsSection.js.map +1 -1
  394. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/PointCloudsSection.d.ts +10 -0
  395. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/PointCloudsSection.d.ts.map +1 -0
  396. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/PointCloudsSection.js +137 -0
  397. package/dist/core/components/viewers/bim/src/BimSidebar/src/FileTab/src/PointCloudsSection.js.map +1 -0
  398. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/index.d.ts.map +1 -1
  399. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/index.js +93 -73
  400. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/index.js.map +1 -1
  401. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/AppearanceProvider.js +2 -0
  402. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/AppearanceProvider.js.map +1 -1
  403. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/AppearanceSwatch.js +2 -0
  404. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/AppearanceSwatch.js.map +1 -1
  405. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/BimTreeView.js +2 -0
  406. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/BimTreeView.js.map +1 -1
  407. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/DrawingModelFilter.d.ts +15 -0
  408. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/DrawingModelFilter.d.ts.map +1 -0
  409. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/DrawingModelFilter.js +21 -0
  410. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/DrawingModelFilter.js.map +1 -0
  411. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/ElevationsSection.d.ts +3 -1
  412. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/ElevationsSection.d.ts.map +1 -1
  413. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/ElevationsSection.js +52 -26
  414. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/ElevationsSection.js.map +1 -1
  415. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/FloorplanSection.d.ts +3 -1
  416. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/FloorplanSection.d.ts.map +1 -1
  417. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/FloorplanSection.js +23 -3
  418. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/FloorplanSection.js.map +1 -1
  419. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/IfcClassesSection.js +2 -0
  420. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/IfcClassesSection.js.map +1 -1
  421. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/LayerGroupSection.js +2 -0
  422. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/LayerGroupSection.js.map +1 -1
  423. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/LayerViewPanel.d.ts +3 -1
  424. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/LayerViewPanel.d.ts.map +1 -1
  425. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/LayerViewPanel.js +5 -2
  426. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/LayerViewPanel.js.map +1 -1
  427. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/SpatialStructureSection.js +2 -0
  428. package/dist/core/components/viewers/bim/src/BimSidebar/src/LayersTab/src/SpatialStructureSection.js.map +1 -1
  429. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/index.d.ts.map +1 -1
  430. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/index.js +7 -1
  431. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/index.js.map +1 -1
  432. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.d.ts.map +1 -1
  433. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.js +7 -6
  434. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/GridManagement.js.map +1 -1
  435. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.d.ts.map +1 -1
  436. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.js +169 -31
  437. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/LightingManagement.js.map +1 -1
  438. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.d.ts.map +1 -1
  439. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.js +115 -105
  440. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/MeasurementSettings.js.map +1 -1
  441. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.d.ts +5 -0
  442. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.d.ts.map +1 -0
  443. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.js +146 -0
  444. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/PointCloudSettings.js.map +1 -0
  445. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/RenderMode.d.ts.map +1 -1
  446. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/RenderMode.js +22 -19
  447. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/RenderMode.js.map +1 -1
  448. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/ToggleProjection.js +2 -0
  449. package/dist/core/components/viewers/bim/src/BimSidebar/src/SettingsTab/src/ToggleProjection.js.map +1 -1
  450. package/dist/core/components/viewers/bim/src/BimSidebar/src/Topics/src/CollapsibleTopicItem.js +2 -0
  451. package/dist/core/components/viewers/bim/src/BimSidebar/src/Topics/src/CollapsibleTopicItem.js.map +1 -1
  452. package/dist/core/components/viewers/bim/src/BimSidebar/src/Topics/src/CreateTopicDialog.js +2 -0
  453. package/dist/core/components/viewers/bim/src/BimSidebar/src/Topics/src/CreateTopicDialog.js.map +1 -1
  454. package/dist/core/components/viewers/bim/src/BimSidebar/src/Topics/src/TopicsSection.js +2 -0
  455. package/dist/core/components/viewers/bim/src/BimSidebar/src/Topics/src/TopicsSection.js.map +1 -1
  456. package/dist/core/components/viewers/bim/src/BimSidebar/src/index.js +2 -0
  457. package/dist/core/components/viewers/bim/src/BimSidebar/src/index.js.map +1 -1
  458. package/dist/core/components/viewers/bim/src/BuildingLocationSync.d.ts +2 -0
  459. package/dist/core/components/viewers/bim/src/BuildingLocationSync.d.ts.map +1 -0
  460. package/dist/core/components/viewers/bim/src/BuildingLocationSync.js +27 -0
  461. package/dist/core/components/viewers/bim/src/BuildingLocationSync.js.map +1 -0
  462. package/dist/core/components/viewers/bim/src/CameraLimits.d.ts +20 -0
  463. package/dist/core/components/viewers/bim/src/CameraLimits.d.ts.map +1 -0
  464. package/dist/core/components/viewers/bim/src/CameraLimits.js +82 -0
  465. package/dist/core/components/viewers/bim/src/CameraLimits.js.map +1 -0
  466. package/dist/core/components/viewers/bim/src/CameraProjection.js.map +1 -1
  467. package/dist/core/components/viewers/bim/src/CurrentCamera.js.map +1 -1
  468. package/dist/core/components/viewers/bim/src/CurrentWorld.js.map +1 -1
  469. package/dist/core/components/viewers/bim/src/Cursor.js.map +1 -1
  470. package/dist/core/components/viewers/bim/src/DXFLoader/index.d.ts.map +1 -1
  471. package/dist/core/components/viewers/bim/src/DXFLoader/index.js +2 -0
  472. package/dist/core/components/viewers/bim/src/DXFLoader/index.js.map +1 -1
  473. package/dist/core/components/viewers/bim/src/DXFLoader/restoreDepthState.d.ts +7 -0
  474. package/dist/core/components/viewers/bim/src/DXFLoader/restoreDepthState.d.ts.map +1 -0
  475. package/dist/core/components/viewers/bim/src/DXFLoader/restoreDepthState.js +14 -0
  476. package/dist/core/components/viewers/bim/src/DXFLoader/restoreDepthState.js.map +1 -0
  477. package/dist/core/components/viewers/bim/src/ElementAppearance.js.map +1 -1
  478. package/dist/core/components/viewers/bim/src/ElevationsTool/index.d.ts +1 -0
  479. package/dist/core/components/viewers/bim/src/ElevationsTool/index.d.ts.map +1 -1
  480. package/dist/core/components/viewers/bim/src/ElevationsTool/index.js +9 -0
  481. package/dist/core/components/viewers/bim/src/ElevationsTool/index.js.map +1 -1
  482. package/dist/core/components/viewers/bim/src/ElevationsTool/src/ElevationProjector.js.map +1 -1
  483. package/dist/core/components/viewers/bim/src/ElevationsTool/src/types.js.map +1 -1
  484. package/dist/core/components/viewers/bim/src/FitCamera.d.ts +4 -0
  485. package/dist/core/components/viewers/bim/src/FitCamera.d.ts.map +1 -1
  486. package/dist/core/components/viewers/bim/src/FitCamera.js +22 -2
  487. package/dist/core/components/viewers/bim/src/FitCamera.js.map +1 -1
  488. package/dist/core/components/viewers/bim/src/FloorplanTool/index.d.ts +1 -0
  489. package/dist/core/components/viewers/bim/src/FloorplanTool/index.d.ts.map +1 -1
  490. package/dist/core/components/viewers/bim/src/FloorplanTool/index.js +9 -0
  491. package/dist/core/components/viewers/bim/src/FloorplanTool/index.js.map +1 -1
  492. package/dist/core/components/viewers/bim/src/FloorplanTool/src/FloorplanRenderer.js.map +1 -1
  493. package/dist/core/components/viewers/bim/src/FloorplanTool/src/StoreyProjector.js.map +1 -1
  494. package/dist/core/components/viewers/bim/src/FloorplanTool/src/types.js.map +1 -1
  495. package/dist/core/components/viewers/bim/src/FloorplanTool/src/utils.js.map +1 -1
  496. package/dist/core/components/viewers/bim/src/GhostMode.js.map +1 -1
  497. package/dist/core/components/viewers/bim/src/Highlighter/index.js.map +1 -1
  498. package/dist/core/components/viewers/bim/src/IDSManager/index.js.map +1 -1
  499. package/dist/core/components/viewers/bim/src/IDSManager/src/IDSLegend.js +2 -0
  500. package/dist/core/components/viewers/bim/src/IDSManager/src/IDSLegend.js.map +1 -1
  501. package/dist/core/components/viewers/bim/src/IfcClasses.js.map +1 -1
  502. package/dist/core/components/viewers/bim/src/IfcToFragments.d.ts +3 -1
  503. package/dist/core/components/viewers/bim/src/IfcToFragments.d.ts.map +1 -1
  504. package/dist/core/components/viewers/bim/src/IfcToFragments.js +8 -3
  505. package/dist/core/components/viewers/bim/src/IfcToFragments.js.map +1 -1
  506. package/dist/core/components/viewers/bim/src/LoadIfcAsFragments.js.map +1 -1
  507. package/dist/core/components/viewers/bim/src/LoadModels.d.ts +7 -1
  508. package/dist/core/components/viewers/bim/src/LoadModels.d.ts.map +1 -1
  509. package/dist/core/components/viewers/bim/src/LoadModels.js +35 -1
  510. package/dist/core/components/viewers/bim/src/LoadModels.js.map +1 -1
  511. package/dist/core/components/viewers/bim/src/ModelManager/index.d.ts +15 -5
  512. package/dist/core/components/viewers/bim/src/ModelManager/index.d.ts.map +1 -1
  513. package/dist/core/components/viewers/bim/src/ModelManager/index.js +75 -38
  514. package/dist/core/components/viewers/bim/src/ModelManager/index.js.map +1 -1
  515. package/dist/core/components/viewers/bim/src/ModelManager/modelAnimation.d.ts +16 -0
  516. package/dist/core/components/viewers/bim/src/ModelManager/modelAnimation.d.ts.map +1 -0
  517. package/dist/core/components/viewers/bim/src/ModelManager/modelAnimation.js +50 -0
  518. package/dist/core/components/viewers/bim/src/ModelManager/modelAnimation.js.map +1 -0
  519. package/dist/core/components/viewers/bim/src/ModelsSync.js +2 -0
  520. package/dist/core/components/viewers/bim/src/ModelsSync.js.map +1 -1
  521. package/dist/core/components/viewers/bim/src/Placement/AnimationPanel.d.ts +15 -0
  522. package/dist/core/components/viewers/bim/src/Placement/AnimationPanel.d.ts.map +1 -0
  523. package/dist/core/components/viewers/bim/src/Placement/AnimationPanel.js +92 -0
  524. package/dist/core/components/viewers/bim/src/Placement/AnimationPanel.js.map +1 -0
  525. package/dist/core/components/viewers/bim/src/Placement/AnimationSession.d.ts +17 -0
  526. package/dist/core/components/viewers/bim/src/Placement/AnimationSession.d.ts.map +1 -0
  527. package/dist/core/components/viewers/bim/src/Placement/AnimationSession.js +28 -0
  528. package/dist/core/components/viewers/bim/src/Placement/AnimationSession.js.map +1 -0
  529. package/dist/core/components/viewers/bim/src/Placement/NumberField.d.ts +15 -0
  530. package/dist/core/components/viewers/bim/src/Placement/NumberField.d.ts.map +1 -0
  531. package/dist/core/components/viewers/bim/src/Placement/NumberField.js +30 -0
  532. package/dist/core/components/viewers/bim/src/Placement/NumberField.js.map +1 -0
  533. package/dist/core/components/viewers/bim/src/Placement/PlacementEditor.d.ts +96 -0
  534. package/dist/core/components/viewers/bim/src/Placement/PlacementEditor.d.ts.map +1 -0
  535. package/dist/core/components/viewers/bim/src/Placement/PlacementEditor.js +300 -0
  536. package/dist/core/components/viewers/bim/src/Placement/PlacementEditor.js.map +1 -0
  537. package/dist/core/components/viewers/bim/src/Placement/PlacementEditorHost.d.ts +4 -0
  538. package/dist/core/components/viewers/bim/src/Placement/PlacementEditorHost.d.ts.map +1 -0
  539. package/dist/core/components/viewers/bim/src/Placement/PlacementEditorHost.js +242 -0
  540. package/dist/core/components/viewers/bim/src/Placement/PlacementEditorHost.js.map +1 -0
  541. package/dist/core/components/viewers/bim/src/Placement/PlacementPanel.d.ts +27 -0
  542. package/dist/core/components/viewers/bim/src/Placement/PlacementPanel.d.ts.map +1 -0
  543. package/dist/core/components/viewers/bim/src/Placement/PlacementPanel.js +228 -0
  544. package/dist/core/components/viewers/bim/src/Placement/PlacementPanel.js.map +1 -0
  545. package/dist/core/components/viewers/bim/src/Placement/contextMenuGesture.d.ts +27 -0
  546. package/dist/core/components/viewers/bim/src/Placement/contextMenuGesture.d.ts.map +1 -0
  547. package/dist/core/components/viewers/bim/src/Placement/contextMenuGesture.js +44 -0
  548. package/dist/core/components/viewers/bim/src/Placement/contextMenuGesture.js.map +1 -0
  549. package/dist/core/components/viewers/bim/src/Placement/markerActions.d.ts +9 -0
  550. package/dist/core/components/viewers/bim/src/Placement/markerActions.d.ts.map +1 -0
  551. package/dist/core/components/viewers/bim/src/Placement/markerActions.js +10 -0
  552. package/dist/core/components/viewers/bim/src/Placement/markerActions.js.map +1 -0
  553. package/dist/core/components/viewers/bim/src/Placement/pickSceneObject.d.ts +9 -0
  554. package/dist/core/components/viewers/bim/src/Placement/pickSceneObject.d.ts.map +1 -0
  555. package/dist/core/components/viewers/bim/src/Placement/pickSceneObject.js +24 -0
  556. package/dist/core/components/viewers/bim/src/Placement/pickSceneObject.js.map +1 -0
  557. package/dist/core/components/viewers/bim/src/Placement/placementCapabilities.d.ts +10 -0
  558. package/dist/core/components/viewers/bim/src/Placement/placementCapabilities.d.ts.map +1 -0
  559. package/dist/core/components/viewers/bim/src/Placement/placementCapabilities.js +20 -0
  560. package/dist/core/components/viewers/bim/src/Placement/placementCapabilities.js.map +1 -0
  561. package/dist/core/components/viewers/bim/src/Placement/placementTarget.d.ts +27 -0
  562. package/dist/core/components/viewers/bim/src/Placement/placementTarget.d.ts.map +1 -0
  563. package/dist/core/components/viewers/bim/src/Placement/placementTarget.js +19 -0
  564. package/dist/core/components/viewers/bim/src/Placement/placementTarget.js.map +1 -0
  565. package/dist/core/components/viewers/bim/src/Placement/resolveViewportTarget.d.ts +29 -0
  566. package/dist/core/components/viewers/bim/src/Placement/resolveViewportTarget.d.ts.map +1 -0
  567. package/dist/core/components/viewers/bim/src/Placement/resolveViewportTarget.js +43 -0
  568. package/dist/core/components/viewers/bim/src/Placement/resolveViewportTarget.js.map +1 -0
  569. package/dist/core/components/viewers/bim/src/Placement/targets/objectTarget.d.ts +17 -0
  570. package/dist/core/components/viewers/bim/src/Placement/targets/objectTarget.d.ts.map +1 -0
  571. package/dist/core/components/viewers/bim/src/Placement/targets/objectTarget.js +68 -0
  572. package/dist/core/components/viewers/bim/src/Placement/targets/objectTarget.js.map +1 -0
  573. package/dist/core/components/viewers/bim/src/Placement/targets/pointCloudTarget.d.ts +15 -0
  574. package/dist/core/components/viewers/bim/src/Placement/targets/pointCloudTarget.d.ts.map +1 -0
  575. package/dist/core/components/viewers/bim/src/Placement/targets/pointCloudTarget.js +31 -0
  576. package/dist/core/components/viewers/bim/src/Placement/targets/pointCloudTarget.js.map +1 -0
  577. package/dist/core/components/viewers/bim/src/Placement/targets/useModelTarget.d.ts +12 -0
  578. package/dist/core/components/viewers/bim/src/Placement/targets/useModelTarget.d.ts.map +1 -0
  579. package/dist/core/components/viewers/bim/src/Placement/targets/useModelTarget.js +36 -0
  580. package/dist/core/components/viewers/bim/src/Placement/targets/useModelTarget.js.map +1 -0
  581. package/dist/core/components/viewers/bim/src/Placement/targets/usePointCloudTarget.d.ts +12 -0
  582. package/dist/core/components/viewers/bim/src/Placement/targets/usePointCloudTarget.d.ts.map +1 -0
  583. package/dist/core/components/viewers/bim/src/Placement/targets/usePointCloudTarget.js +51 -0
  584. package/dist/core/components/viewers/bim/src/Placement/targets/usePointCloudTarget.js.map +1 -0
  585. package/dist/core/components/viewers/bim/src/Placement/uniformScale.d.ts +6 -0
  586. package/dist/core/components/viewers/bim/src/Placement/uniformScale.d.ts.map +1 -0
  587. package/dist/core/components/viewers/bim/src/Placement/uniformScale.js +9 -0
  588. package/dist/core/components/viewers/bim/src/Placement/uniformScale.js.map +1 -0
  589. package/dist/core/components/viewers/bim/src/Placement/useAnimationSession.d.ts +4 -0
  590. package/dist/core/components/viewers/bim/src/Placement/useAnimationSession.d.ts.map +1 -0
  591. package/dist/core/components/viewers/bim/src/Placement/useAnimationSession.js +27 -0
  592. package/dist/core/components/viewers/bim/src/Placement/useAnimationSession.js.map +1 -0
  593. package/dist/core/components/viewers/bim/src/Placement/usePlacementSession.d.ts +4 -0
  594. package/dist/core/components/viewers/bim/src/Placement/usePlacementSession.d.ts.map +1 -0
  595. package/dist/core/components/viewers/bim/src/Placement/usePlacementSession.js +29 -0
  596. package/dist/core/components/viewers/bim/src/Placement/usePlacementSession.js.map +1 -0
  597. package/dist/core/components/viewers/bim/src/Placement/useViewportContextMenu.d.ts +18 -0
  598. package/dist/core/components/viewers/bim/src/Placement/useViewportContextMenu.d.ts.map +1 -0
  599. package/dist/core/components/viewers/bim/src/Placement/useViewportContextMenu.js +147 -0
  600. package/dist/core/components/viewers/bim/src/Placement/useViewportContextMenu.js.map +1 -0
  601. package/dist/core/components/viewers/bim/src/PointClouds/BimPointCloudSync.d.ts +6 -0
  602. package/dist/core/components/viewers/bim/src/PointClouds/BimPointCloudSync.d.ts.map +1 -0
  603. package/dist/core/components/viewers/bim/src/PointClouds/BimPointCloudSync.js +65 -0
  604. package/dist/core/components/viewers/bim/src/PointClouds/BimPointCloudSync.js.map +1 -0
  605. package/dist/core/components/viewers/bim/src/PointClouds/index.d.ts +90 -0
  606. package/dist/core/components/viewers/bim/src/PointClouds/index.d.ts.map +1 -0
  607. package/dist/core/components/viewers/bim/src/PointClouds/index.js +311 -0
  608. package/dist/core/components/viewers/bim/src/PointClouds/index.js.map +1 -0
  609. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudClipping.d.ts +12 -0
  610. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudClipping.d.ts.map +1 -0
  611. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudClipping.js +17 -0
  612. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudClipping.js.map +1 -0
  613. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudFiles.d.ts +5 -0
  614. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudFiles.d.ts.map +1 -0
  615. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudFiles.js +15 -0
  616. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudFiles.js.map +1 -0
  617. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudPlacementStore.d.ts +8 -0
  618. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudPlacementStore.d.ts.map +1 -0
  619. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudPlacementStore.js +43 -0
  620. package/dist/core/components/viewers/bim/src/PointClouds/pointCloudPlacementStore.js.map +1 -0
  621. package/dist/core/components/viewers/bim/src/PointClouds/useBimPointCloudOpacity.d.ts +12 -0
  622. package/dist/core/components/viewers/bim/src/PointClouds/useBimPointCloudOpacity.d.ts.map +1 -0
  623. package/dist/core/components/viewers/bim/src/PointClouds/useBimPointCloudOpacity.js +43 -0
  624. package/dist/core/components/viewers/bim/src/PointClouds/useBimPointCloudOpacity.js.map +1 -0
  625. package/dist/core/components/viewers/bim/src/PointClouds/useBimPointClouds.d.ts +4 -0
  626. package/dist/core/components/viewers/bim/src/PointClouds/useBimPointClouds.d.ts.map +1 -0
  627. package/dist/core/components/viewers/bim/src/PointClouds/useBimPointClouds.js +27 -0
  628. package/dist/core/components/viewers/bim/src/PointClouds/useBimPointClouds.js.map +1 -0
  629. package/dist/core/components/viewers/bim/src/SceneObjects/index.d.ts +15 -0
  630. package/dist/core/components/viewers/bim/src/SceneObjects/index.d.ts.map +1 -0
  631. package/dist/core/components/viewers/bim/src/SceneObjects/index.js +34 -0
  632. package/dist/core/components/viewers/bim/src/SceneObjects/index.js.map +1 -0
  633. package/dist/core/components/viewers/bim/src/SceneObjects/sceneObjectRegistry.d.ts +46 -0
  634. package/dist/core/components/viewers/bim/src/SceneObjects/sceneObjectRegistry.d.ts.map +1 -0
  635. package/dist/core/components/viewers/bim/src/SceneObjects/sceneObjectRegistry.js +84 -0
  636. package/dist/core/components/viewers/bim/src/SceneObjects/sceneObjectRegistry.js.map +1 -0
  637. package/dist/core/components/viewers/bim/src/SelectionSync.js +2 -0
  638. package/dist/core/components/viewers/bim/src/SelectionSync.js.map +1 -1
  639. package/dist/core/components/viewers/bim/src/ShadowEnroller.d.ts +23 -0
  640. package/dist/core/components/viewers/bim/src/ShadowEnroller.d.ts.map +1 -0
  641. package/dist/core/components/viewers/bim/src/ShadowEnroller.js +74 -0
  642. package/dist/core/components/viewers/bim/src/ShadowEnroller.js.map +1 -0
  643. package/dist/core/components/viewers/bim/src/SimpleBimViewer.d.ts.map +1 -1
  644. package/dist/core/components/viewers/bim/src/SimpleBimViewer.js +4 -52
  645. package/dist/core/components/viewers/bim/src/SimpleBimViewer.js.map +1 -1
  646. package/dist/core/components/viewers/bim/src/SpatialStructure.d.ts +5 -2
  647. package/dist/core/components/viewers/bim/src/SpatialStructure.d.ts.map +1 -1
  648. package/dist/core/components/viewers/bim/src/SpatialStructure.js +12 -4
  649. package/dist/core/components/viewers/bim/src/SpatialStructure.js.map +1 -1
  650. package/dist/core/components/viewers/bim/src/SunPath.d.ts +40 -0
  651. package/dist/core/components/viewers/bim/src/SunPath.d.ts.map +1 -0
  652. package/dist/core/components/viewers/bim/src/SunPath.js +181 -0
  653. package/dist/core/components/viewers/bim/src/SunPath.js.map +1 -0
  654. package/dist/core/components/viewers/bim/src/ViewportGizmo.js.map +1 -1
  655. package/dist/core/components/viewers/bim/src/VisibilityState.js.map +1 -1
  656. package/dist/core/components/viewers/bim/src/lib/CameraController.js.map +1 -1
  657. package/dist/core/components/viewers/bim/src/lib/CategoryHighlighter.js.map +1 -1
  658. package/dist/core/components/viewers/bim/src/lib/ChromeController.js.map +1 -1
  659. package/dist/core/components/viewers/bim/src/lib/ClipController.js.map +1 -1
  660. package/dist/core/components/viewers/bim/src/lib/GridController.js.map +1 -1
  661. package/dist/core/components/viewers/bim/src/lib/PivotIndicator.d.ts +20 -0
  662. package/dist/core/components/viewers/bim/src/lib/PivotIndicator.d.ts.map +1 -0
  663. package/dist/core/components/viewers/bim/src/lib/PivotIndicator.js +89 -0
  664. package/dist/core/components/viewers/bim/src/lib/PivotIndicator.js.map +1 -0
  665. package/dist/core/components/viewers/bim/src/lib/TrueNorthPopover.js +2 -0
  666. package/dist/core/components/viewers/bim/src/lib/TrueNorthPopover.js.map +1 -1
  667. package/dist/core/components/viewers/bim/src/lib/ViewModeCoordinator.js.map +1 -1
  668. package/dist/core/components/viewers/bim/src/lib/ViewSectionList.js +2 -0
  669. package/dist/core/components/viewers/bim/src/lib/ViewSectionList.js.map +1 -1
  670. package/dist/core/components/viewers/bim/src/lib/appearanceOverrides.js.map +1 -1
  671. package/dist/core/components/viewers/bim/src/lib/applyModelPlacement.d.ts +5 -0
  672. package/dist/core/components/viewers/bim/src/lib/applyModelPlacement.d.ts.map +1 -0
  673. package/dist/core/components/viewers/bim/src/lib/applyModelPlacement.js +10 -0
  674. package/dist/core/components/viewers/bim/src/lib/applyModelPlacement.js.map +1 -0
  675. package/dist/core/components/viewers/bim/src/lib/bimCamera.js.map +1 -1
  676. package/dist/core/components/viewers/bim/src/lib/bimFilesToLoad.d.ts +14 -0
  677. package/dist/core/components/viewers/bim/src/lib/bimFilesToLoad.d.ts.map +1 -0
  678. package/dist/core/components/viewers/bim/src/lib/bimFilesToLoad.js +16 -0
  679. package/dist/core/components/viewers/bim/src/lib/bimFilesToLoad.js.map +1 -0
  680. package/dist/core/components/viewers/bim/src/lib/bimItemActions.js.map +1 -1
  681. package/dist/core/components/viewers/bim/src/lib/bimLighting.d.ts +27 -0
  682. package/dist/core/components/viewers/bim/src/lib/bimLighting.d.ts.map +1 -0
  683. package/dist/core/components/viewers/bim/src/lib/bimLighting.js +79 -0
  684. package/dist/core/components/viewers/bim/src/lib/bimLighting.js.map +1 -0
  685. package/dist/core/components/viewers/bim/src/lib/bimQueries.js.map +1 -1
  686. package/dist/core/components/viewers/bim/src/lib/bimTree.js.map +1 -1
  687. package/dist/core/components/viewers/bim/src/lib/bimViewerState.d.ts +23 -0
  688. package/dist/core/components/viewers/bim/src/lib/bimViewerState.d.ts.map +1 -0
  689. package/dist/core/components/viewers/bim/src/lib/bimViewerState.js +17 -0
  690. package/dist/core/components/viewers/bim/src/lib/bimViewerState.js.map +1 -0
  691. package/dist/core/components/viewers/bim/src/lib/buildingLocationParams.d.ts +3 -0
  692. package/dist/core/components/viewers/bim/src/lib/buildingLocationParams.d.ts.map +1 -0
  693. package/dist/core/components/viewers/bim/src/lib/buildingLocationParams.js +37 -0
  694. package/dist/core/components/viewers/bim/src/lib/buildingLocationParams.js.map +1 -0
  695. package/dist/core/components/viewers/bim/src/lib/cameraLimits.d.ts +12 -0
  696. package/dist/core/components/viewers/bim/src/lib/cameraLimits.d.ts.map +1 -0
  697. package/dist/core/components/viewers/bim/src/lib/cameraLimits.js +24 -0
  698. package/dist/core/components/viewers/bim/src/lib/cameraLimits.js.map +1 -0
  699. package/dist/core/components/viewers/bim/src/lib/createBimWorld.d.ts +16 -0
  700. package/dist/core/components/viewers/bim/src/lib/createBimWorld.d.ts.map +1 -0
  701. package/dist/core/components/viewers/bim/src/lib/createBimWorld.js +66 -0
  702. package/dist/core/components/viewers/bim/src/lib/createBimWorld.js.map +1 -0
  703. package/dist/core/components/viewers/bim/src/lib/disposeObject3D.d.ts +4 -0
  704. package/dist/core/components/viewers/bim/src/lib/disposeObject3D.d.ts.map +1 -0
  705. package/dist/core/components/viewers/bim/src/lib/disposeObject3D.js +28 -0
  706. package/dist/core/components/viewers/bim/src/lib/disposeObject3D.js.map +1 -0
  707. package/dist/core/components/viewers/bim/src/lib/drawingLayers.js.map +1 -1
  708. package/dist/core/components/viewers/bim/src/lib/drawingProjection.js.map +1 -1
  709. package/dist/core/components/viewers/bim/src/lib/exportDrawingToDxf.js.map +1 -1
  710. package/dist/core/components/viewers/bim/src/lib/modelBounds.d.ts +10 -0
  711. package/dist/core/components/viewers/bim/src/lib/modelBounds.d.ts.map +1 -0
  712. package/dist/core/components/viewers/bim/src/lib/modelBounds.js +40 -0
  713. package/dist/core/components/viewers/bim/src/lib/modelBounds.js.map +1 -0
  714. package/dist/core/components/viewers/bim/src/lib/needsMarker.d.ts +8 -0
  715. package/dist/core/components/viewers/bim/src/lib/needsMarker.d.ts.map +1 -0
  716. package/dist/core/components/viewers/bim/src/lib/needsMarker.js +30 -0
  717. package/dist/core/components/viewers/bim/src/lib/needsMarker.js.map +1 -0
  718. package/dist/core/components/viewers/bim/src/lib/renderMode.d.ts +12 -0
  719. package/dist/core/components/viewers/bim/src/lib/renderMode.d.ts.map +1 -0
  720. package/dist/core/components/viewers/bim/src/lib/renderMode.js +56 -0
  721. package/dist/core/components/viewers/bim/src/lib/renderMode.js.map +1 -0
  722. package/dist/core/components/viewers/bim/src/lib/safeRun.js.map +1 -1
  723. package/dist/core/components/viewers/bim/src/lib/sceneContent.d.ts +11 -0
  724. package/dist/core/components/viewers/bim/src/lib/sceneContent.d.ts.map +1 -0
  725. package/dist/core/components/viewers/bim/src/lib/sceneContent.js +17 -0
  726. package/dist/core/components/viewers/bim/src/lib/sceneContent.js.map +1 -0
  727. package/dist/core/components/viewers/bim/src/lib/scenePicker.d.ts +39 -0
  728. package/dist/core/components/viewers/bim/src/lib/scenePicker.d.ts.map +1 -0
  729. package/dist/core/components/viewers/bim/src/lib/scenePicker.js +67 -0
  730. package/dist/core/components/viewers/bim/src/lib/scenePicker.js.map +1 -0
  731. package/dist/core/components/viewers/bim/src/lib/sceneSeed.d.ts +12 -0
  732. package/dist/core/components/viewers/bim/src/lib/sceneSeed.d.ts.map +1 -0
  733. package/dist/core/components/viewers/bim/src/lib/sceneSeed.js +7 -0
  734. package/dist/core/components/viewers/bim/src/lib/sceneSeed.js.map +1 -0
  735. package/dist/core/components/viewers/bim/src/lib/searchBuildings.d.ts +10 -0
  736. package/dist/core/components/viewers/bim/src/lib/searchBuildings.d.ts.map +1 -0
  737. package/dist/core/components/viewers/bim/src/lib/searchBuildings.js +31 -0
  738. package/dist/core/components/viewers/bim/src/lib/searchBuildings.js.map +1 -0
  739. package/dist/core/components/viewers/bim/src/lib/solarPosition.d.ts +21 -0
  740. package/dist/core/components/viewers/bim/src/lib/solarPosition.d.ts.map +1 -0
  741. package/dist/core/components/viewers/bim/src/lib/solarPosition.js +63 -0
  742. package/dist/core/components/viewers/bim/src/lib/solarPosition.js.map +1 -0
  743. package/dist/core/components/viewers/bim/src/lib/spaceOverlay.js.map +1 -1
  744. package/dist/core/components/viewers/bim/src/lib/spatialTree.d.ts.map +1 -1
  745. package/dist/core/components/viewers/bim/src/lib/spatialTree.js +5 -3
  746. package/dist/core/components/viewers/bim/src/lib/spatialTree.js.map +1 -1
  747. package/dist/core/components/viewers/bim/src/lib/sunPath.d.ts +26 -0
  748. package/dist/core/components/viewers/bim/src/lib/sunPath.d.ts.map +1 -0
  749. package/dist/core/components/viewers/bim/src/lib/sunPath.js +43 -0
  750. package/dist/core/components/viewers/bim/src/lib/sunPath.js.map +1 -0
  751. package/dist/core/components/viewers/bim/src/lib/sunRig.d.ts +5 -0
  752. package/dist/core/components/viewers/bim/src/lib/sunRig.d.ts.map +1 -0
  753. package/dist/core/components/viewers/bim/src/lib/sunRig.js +44 -0
  754. package/dist/core/components/viewers/bim/src/lib/sunRig.js.map +1 -0
  755. package/dist/core/components/viewers/bim/src/lib/useBimTreeControls.js +2 -0
  756. package/dist/core/components/viewers/bim/src/lib/useBimTreeControls.js.map +1 -1
  757. package/dist/core/components/viewers/bim/src/lib/useBuildingName.d.ts.map +1 -1
  758. package/dist/core/components/viewers/bim/src/lib/useBuildingName.js +1 -1
  759. package/dist/core/components/viewers/bim/src/lib/useBuildingName.js.map +1 -1
  760. package/dist/core/components/viewers/bim/src/lib/useFriendlyIfcClassName.js.map +1 -1
  761. package/dist/core/components/viewers/bim/src/lib/useOptionListKeys.d.ts +12 -0
  762. package/dist/core/components/viewers/bim/src/lib/useOptionListKeys.d.ts.map +1 -0
  763. package/dist/core/components/viewers/bim/src/lib/useOptionListKeys.js +50 -0
  764. package/dist/core/components/viewers/bim/src/lib/useOptionListKeys.js.map +1 -0
  765. package/dist/core/components/viewers/bim/src/lib/useSelectBuilding.d.ts +7 -0
  766. package/dist/core/components/viewers/bim/src/lib/useSelectBuilding.d.ts.map +1 -0
  767. package/dist/core/components/viewers/bim/src/lib/useSelectBuilding.js +22 -0
  768. package/dist/core/components/viewers/bim/src/lib/useSelectBuilding.js.map +1 -0
  769. package/dist/core/components/viewers/bim/src/lib/useViewerLocation.d.ts +19 -0
  770. package/dist/core/components/viewers/bim/src/lib/useViewerLocation.d.ts.map +1 -0
  771. package/dist/core/components/viewers/bim/src/lib/useViewerLocation.js +45 -0
  772. package/dist/core/components/viewers/bim/src/lib/useViewerLocation.js.map +1 -0
  773. package/dist/core/components/viewers/bim/src/lib/viewSection.js.map +1 -1
  774. package/dist/core/components/viewers/bim/src/propertiesMenu/index.js +2 -0
  775. package/dist/core/components/viewers/bim/src/propertiesMenu/index.js.map +1 -1
  776. package/dist/core/components/viewers/bim/src/propertiesMenu/src/ElementList.js +2 -0
  777. package/dist/core/components/viewers/bim/src/propertiesMenu/src/ElementList.js.map +1 -1
  778. package/dist/core/components/viewers/bim/src/propertiesMenu/src/PropertiesMenuHeader.js +2 -0
  779. package/dist/core/components/viewers/bim/src/propertiesMenu/src/PropertiesMenuHeader.js.map +1 -1
  780. package/dist/core/components/viewers/bim/src/propertiesMenu/src/PropertyGroup.js +2 -0
  781. package/dist/core/components/viewers/bim/src/propertiesMenu/src/PropertyGroup.js.map +1 -1
  782. package/dist/core/components/viewers/bim/src/propertiesMenu/src/useElementProperties.js +2 -0
  783. package/dist/core/components/viewers/bim/src/propertiesMenu/src/useElementProperties.js.map +1 -1
  784. package/dist/core/components/viewers/bim/src/propertiesMenu/src/utils.js +2 -0
  785. package/dist/core/components/viewers/bim/src/propertiesMenu/src/utils.js.map +1 -1
  786. package/dist/core/components/viewers/bim/src/tools/AddToBim/index.d.ts.map +1 -1
  787. package/dist/core/components/viewers/bim/src/tools/AddToBim/index.js +70 -51
  788. package/dist/core/components/viewers/bim/src/tools/AddToBim/index.js.map +1 -1
  789. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddDxf.d.ts +2 -0
  790. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddDxf.d.ts.map +1 -1
  791. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddDxf.js +10 -0
  792. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddDxf.js.map +1 -1
  793. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddFile.js +2 -0
  794. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddFile.js.map +1 -1
  795. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddSensor.js.map +1 -1
  796. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddToBimToolbar.js +2 -0
  797. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/AddToBimToolbar.js.map +1 -1
  798. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/BimComment.js +2 -0
  799. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/BimComment.js.map +1 -1
  800. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/BimCommentCluster.js.map +1 -1
  801. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/BimSensor.js +2 -0
  802. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/BimSensor.js.map +1 -1
  803. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/FileHandler.d.ts +1 -0
  804. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/FileHandler.d.ts.map +1 -1
  805. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/FileHandler.js +28 -11
  806. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/FileHandler.js.map +1 -1
  807. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/FileMarkerUtils.d.ts +1 -1
  808. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/FileMarkerUtils.d.ts.map +1 -1
  809. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/FileMarkerUtils.js +2 -2
  810. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/FileMarkerUtils.js.map +1 -1
  811. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/clusterMarkersByScreenSpace.js.map +1 -1
  812. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/commentCameraUtils.js.map +1 -1
  813. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/commentMarkerConfig.js.map +1 -1
  814. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/index.js.map +1 -1
  815. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/markerUtils.js.map +1 -1
  816. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/renderCSS2DMarkers.js.map +1 -1
  817. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useCommentMarkers.js +2 -0
  818. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useCommentMarkers.js.map +1 -1
  819. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useFilePlacement.d.ts.map +1 -1
  820. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useFilePlacement.js +123 -71
  821. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useFilePlacement.js.map +1 -1
  822. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useSensorMarkers.js +2 -0
  823. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/useSensorMarkers.js.map +1 -1
  824. package/dist/core/components/viewers/bim/src/tools/BIMSearchTool.d.ts.map +1 -1
  825. package/dist/core/components/viewers/bim/src/tools/BIMSearchTool.js +75 -32
  826. package/dist/core/components/viewers/bim/src/tools/BIMSearchTool.js.map +1 -1
  827. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingBoxes.d.ts +54 -0
  828. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingBoxes.d.ts.map +1 -0
  829. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingBoxes.js +252 -0
  830. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingBoxes.js.map +1 -0
  831. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingPlanes.d.ts.map +1 -1
  832. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingPlanes.js +3 -13
  833. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingPlanes.js.map +1 -1
  834. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingTool.d.ts.map +1 -1
  835. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingTool.js +34 -1
  836. package/dist/core/components/viewers/bim/src/tools/ClippingTool/ClippingTool.js.map +1 -1
  837. package/dist/core/components/viewers/bim/src/tools/ClippingTool/clipBox.d.ts +24 -0
  838. package/dist/core/components/viewers/bim/src/tools/ClippingTool/clipBox.d.ts.map +1 -0
  839. package/dist/core/components/viewers/bim/src/tools/ClippingTool/clipBox.js +88 -0
  840. package/dist/core/components/viewers/bim/src/tools/ClippingTool/clipBox.js.map +1 -0
  841. package/dist/core/components/viewers/bim/src/tools/ClippingTool/cutStyle.d.ts +8 -0
  842. package/dist/core/components/viewers/bim/src/tools/ClippingTool/cutStyle.d.ts.map +1 -0
  843. package/dist/core/components/viewers/bim/src/tools/ClippingTool/cutStyle.js +22 -0
  844. package/dist/core/components/viewers/bim/src/tools/ClippingTool/cutStyle.js.map +1 -0
  845. package/dist/core/components/viewers/bim/src/tools/ExplodeByLevelTool.js +2 -0
  846. package/dist/core/components/viewers/bim/src/tools/ExplodeByLevelTool.js.map +1 -1
  847. package/dist/core/components/viewers/bim/src/tools/FitCameraTool.d.ts.map +1 -1
  848. package/dist/core/components/viewers/bim/src/tools/FitCameraTool.js +7 -1
  849. package/dist/core/components/viewers/bim/src/tools/FitCameraTool.js.map +1 -1
  850. package/dist/core/components/viewers/bim/src/tools/InspectBimTool.js +2 -0
  851. package/dist/core/components/viewers/bim/src/tools/InspectBimTool.js.map +1 -1
  852. package/dist/core/components/viewers/bim/src/tools/bimToolbar.d.ts +2 -6
  853. package/dist/core/components/viewers/bim/src/tools/bimToolbar.d.ts.map +1 -1
  854. package/dist/core/components/viewers/bim/src/tools/bimToolbar.js +0 -1
  855. package/dist/core/components/viewers/bim/src/tools/bimToolbar.js.map +1 -1
  856. package/dist/core/components/viewers/bim/src/tools/measureBimTool.d.ts.map +1 -1
  857. package/dist/core/components/viewers/bim/src/tools/measureBimTool.js +23 -22
  858. package/dist/core/components/viewers/bim/src/tools/measureBimTool.js.map +1 -1
  859. package/dist/core/components/viewers/bim/src/tools/selectionBimTool.js +2 -0
  860. package/dist/core/components/viewers/bim/src/tools/selectionBimTool.js.map +1 -1
  861. package/dist/core/components/viewers/bim/src/tools/shareBimTool.js +2 -0
  862. package/dist/core/components/viewers/bim/src/tools/shareBimTool.js.map +1 -1
  863. package/dist/core/components/viewers/bim/utils/GizmoController.d.ts +1 -0
  864. package/dist/core/components/viewers/bim/utils/GizmoController.d.ts.map +1 -1
  865. package/dist/core/components/viewers/bim/utils/GizmoController.js +4 -0
  866. package/dist/core/components/viewers/bim/utils/GizmoController.js.map +1 -1
  867. package/dist/core/components/viewers/bim/utils/setCameraLookAt.js.map +1 -1
  868. package/dist/core/components/viewers/index.js.map +1 -1
  869. package/dist/core/components/viewers/map/MapViewer.js +2 -0
  870. package/dist/core/components/viewers/map/datasets/AddPortalDialog.js +2 -0
  871. package/dist/core/components/viewers/map/datasets/AddPortalDialog.js.map +1 -1
  872. package/dist/core/components/viewers/map/datasets/DatasetDetails.js +2 -0
  873. package/dist/core/components/viewers/map/datasets/DatasetDetails.js.map +1 -1
  874. package/dist/core/components/viewers/map/datasets/DatasetManager/index.js +2 -0
  875. package/dist/core/components/viewers/map/datasets/DatasetManager/index.js.map +1 -1
  876. package/dist/core/components/viewers/map/datasets/DatasetManager/src/FieldsTable.js +2 -0
  877. package/dist/core/components/viewers/map/datasets/DatasetManager/src/FieldsTable.js.map +1 -1
  878. package/dist/core/components/viewers/map/datasets/DatasetSkeleton.js.map +1 -1
  879. package/dist/core/components/viewers/map/datasets/Filters.js +2 -0
  880. package/dist/core/components/viewers/map/datasets/Filters.js.map +1 -1
  881. package/dist/core/components/viewers/map/datasets/NestedFilter.js +2 -0
  882. package/dist/core/components/viewers/map/datasets/NestedFilter.js.map +1 -1
  883. package/dist/core/components/viewers/map/datasets/RowActions.js +2 -0
  884. package/dist/core/components/viewers/map/datasets/RowActions.js.map +1 -1
  885. package/dist/core/components/viewers/map/datasets/data.js.map +1 -1
  886. package/dist/core/components/viewers/map/datasets/index.js +2 -0
  887. package/dist/core/components/viewers/map/datasets/index.js.map +1 -1
  888. package/dist/core/components/viewers/map/datasets/src/arcGISDatasets.js.map +1 -1
  889. package/dist/core/components/viewers/map/datasets/src/arcgisFetch.js.map +1 -1
  890. package/dist/core/components/viewers/map/datasets/src/builtinLiveDatasets.js.map +1 -1
  891. package/dist/core/components/viewers/map/datasets/src/cache.js.map +1 -1
  892. package/dist/core/components/viewers/map/datasets/src/ckanDatasets.js.map +1 -1
  893. package/dist/core/components/viewers/map/datasets/src/geojsonFile.js.map +1 -1
  894. package/dist/core/components/viewers/map/datasets/src/localDatasets.js.map +1 -1
  895. package/dist/core/components/viewers/map/datasets/src/minioDatasets.js.map +1 -1
  896. package/dist/core/components/viewers/map/datasets/src/opendatasoftDatasets.js.map +1 -1
  897. package/dist/core/components/viewers/map/datasets/src/orgVisibility.js.map +1 -1
  898. package/dist/core/components/viewers/map/datasets/src/publishedTiles.js.map +1 -1
  899. package/dist/core/components/viewers/map/datasets/src/socrataDatasets.js.map +1 -1
  900. package/dist/core/components/viewers/map/datasets/src/urlSources.js.map +1 -1
  901. package/dist/core/components/viewers/map/datasets/src/useDatasetsForPortals.js.map +1 -1
  902. package/dist/core/components/viewers/map/datasets/src/useFastDatasetCache.js.map +1 -1
  903. package/dist/core/components/viewers/map/datasets/src/useOrganizationalDatasets.js.map +1 -1
  904. package/dist/core/components/viewers/map/datasets/src/wmsTime.js.map +1 -1
  905. package/dist/core/components/viewers/map/datasets/utils.js.map +1 -1
  906. package/dist/core/components/viewers/map/src/Geocoder.js +2 -0
  907. package/dist/core/components/viewers/map/src/Geocoder.js.map +1 -1
  908. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/index.js +2 -0
  909. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/index.js.map +1 -1
  910. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/DatabaseBuildingPopover/index.js +2 -0
  911. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/DatabaseBuildingPopover/index.js.map +1 -1
  912. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/DatabaseBuildingPopover/src/BuildingSensorDetails.js +2 -0
  913. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/DatabaseBuildingPopover/src/BuildingSensorDetails.js.map +1 -1
  914. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/DatabaseBuildingPopover/src/BuildingsTools.js +2 -0
  915. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/DatabaseBuildingPopover/src/BuildingsTools.js.map +1 -1
  916. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/NonDatabaseBuildingPopover.js +2 -0
  917. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/NonDatabaseBuildingPopover.js.map +1 -1
  918. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/OpenDataFeaturePopover.js +2 -0
  919. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/OpenDataFeaturePopover.js.map +1 -1
  920. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/PopoverSkeleton.js +2 -0
  921. package/dist/core/components/viewers/map/src/MapFeaturePopoverMenu/src/PopoverSkeleton.js.map +1 -1
  922. package/dist/core/components/viewers/map/src/MapLayers/index.js +2 -0
  923. package/dist/core/components/viewers/map/src/MapLayers/index.js.map +1 -1
  924. package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/index.js +2 -0
  925. package/dist/core/components/viewers/map/src/MapLayers/src/BimLayer/index.js.map +1 -1
  926. package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/buildingColourExpression.js.map +1 -1
  927. package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/index.js +2 -0
  928. package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/index.js.map +1 -1
  929. package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/src/BuildingSensorMarkers.js +2 -0
  930. package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/src/BuildingSensorMarkers.js.map +1 -1
  931. package/dist/core/components/viewers/map/src/MapLayers/src/BuildingLayers/src/databaseBuildings.js.map +1 -1
  932. package/dist/core/components/viewers/map/src/MapLayers/src/CommentLayer/index.js +2 -0
  933. package/dist/core/components/viewers/map/src/MapLayers/src/CommentLayer/index.js.map +1 -1
  934. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/countryLayerUtils.js.map +1 -1
  935. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/index.d.ts +0 -4
  936. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/index.d.ts.map +1 -1
  937. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/index.js +4 -1
  938. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/index.js.map +1 -1
  939. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/useCameraSubdivision.js +2 -0
  940. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/useCameraSubdivision.js.map +1 -1
  941. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/useSubdivisionHover.js +2 -0
  942. package/dist/core/components/viewers/map/src/MapLayers/src/CountryLayer/useSubdivisionHover.js.map +1 -1
  943. package/dist/core/components/viewers/map/src/MapLayers/src/EditPosition.js +2 -0
  944. package/dist/core/components/viewers/map/src/MapLayers/src/EditPosition.js.map +1 -1
  945. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/FileModelLayer/FileModelLayer.js +2 -0
  946. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/FileModelLayer/FileModelLayer.js.map +1 -1
  947. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/components/FileIcon.js.map +1 -1
  948. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/components/FileManagerRow.js +2 -0
  949. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/components/FileManagerRow.js.map +1 -1
  950. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/components/MapFileManager.js +2 -0
  951. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/components/MapFileManager.js.map +1 -1
  952. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/components/MapFileMarker.js.map +1 -1
  953. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/index.js +2 -0
  954. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/index.js.map +1 -1
  955. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/utils/CustomModelLayer.js.map +1 -1
  956. package/dist/core/components/viewers/map/src/MapLayers/src/FileLayer/utils/openFileInPopUpWindow.js.map +1 -1
  957. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/WmsTimeControl.js +2 -0
  958. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/WmsTimeControl.js.map +1 -1
  959. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/geometryGroups.js.map +1 -1
  960. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.js +2 -0
  961. package/dist/core/components/viewers/map/src/MapLayers/src/OpenDataLayer/src/index.js.map +1 -1
  962. package/dist/core/components/viewers/map/src/MapLayers/src/PlaceOnMap.js +2 -0
  963. package/dist/core/components/viewers/map/src/MapLayers/src/PlaceOnMap.js.map +1 -1
  964. package/dist/core/components/viewers/map/src/MapLayers/src/SensorsLayer/index.js +2 -0
  965. package/dist/core/components/viewers/map/src/MapLayers/src/SensorsLayer/index.js.map +1 -1
  966. package/dist/core/components/viewers/map/src/MapLayers/src/SensorsLayer/sensorClusterColour.js.map +1 -1
  967. package/dist/core/components/viewers/map/src/MapLayers/src/SiteLayer/SiteContextMenu.js +2 -0
  968. package/dist/core/components/viewers/map/src/MapLayers/src/SiteLayer/SiteContextMenu.js.map +1 -1
  969. package/dist/core/components/viewers/map/src/MapLayers/src/SiteLayer/SiteLayer.js +2 -0
  970. package/dist/core/components/viewers/map/src/MapLayers/src/SiteLayer/SiteLayer.js.map +1 -1
  971. package/dist/core/components/viewers/map/src/MapLayers/src/SiteLayer/index.js.map +1 -1
  972. package/dist/core/components/viewers/map/src/MapLayers/src/SiteLayer/siteGeometry.js.map +1 -1
  973. package/dist/core/components/viewers/map/src/MapLayers/src/SiteLayer/useShowSitesOnMap.js +2 -0
  974. package/dist/core/components/viewers/map/src/MapLayers/src/SiteLayer/useShowSitesOnMap.js.map +1 -1
  975. package/dist/core/components/viewers/map/src/MapLayers/src/disposeThreeScene.d.ts +3 -4
  976. package/dist/core/components/viewers/map/src/MapLayers/src/disposeThreeScene.d.ts.map +1 -1
  977. package/dist/core/components/viewers/map/src/MapLayers/src/disposeThreeScene.js +2 -16
  978. package/dist/core/components/viewers/map/src/MapLayers/src/disposeThreeScene.js.map +1 -1
  979. package/dist/core/components/viewers/map/src/MapLayers/src/mapLayersUtils.js.map +1 -1
  980. package/dist/core/components/viewers/map/src/MapSidebar/index.js +2 -0
  981. package/dist/core/components/viewers/map/src/MapSidebar/index.js.map +1 -1
  982. package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/index.js +2 -0
  983. package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/index.js.map +1 -1
  984. package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/src/FilesSection.js +2 -0
  985. package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/src/FilesSection.js.map +1 -1
  986. package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/src/ModelsSection.js +2 -0
  987. package/dist/core/components/viewers/map/src/MapSidebar/src/FileTab/src/ModelsSection.js.map +1 -1
  988. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js +2 -0
  989. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/index.js.map +1 -1
  990. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AppliedDatasetsSection.js +2 -0
  991. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AppliedDatasetsSection.js.map +1 -1
  992. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AvailableDatasetsSection.js +2 -0
  993. package/dist/core/components/viewers/map/src/MapSidebar/src/LayersTab/src/AvailableDatasetsSection.js.map +1 -1
  994. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/index.js +2 -0
  995. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/index.js.map +1 -1
  996. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/LocationSettings.d.ts.map +1 -1
  997. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/LocationSettings.js +93 -97
  998. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/LocationSettings.js.map +1 -1
  999. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapCustomization.d.ts.map +1 -1
  1000. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapCustomization.js +16 -12
  1001. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapCustomization.js.map +1 -1
  1002. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapProjection.js +2 -0
  1003. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/MapProjection.js.map +1 -1
  1004. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/TerrainLevel.js +2 -0
  1005. package/dist/core/components/viewers/map/src/MapSidebar/src/SettingsTab/src/TerrainLevel.js.map +1 -1
  1006. package/dist/core/components/viewers/map/src/MapTilerKeyNotice.js +2 -0
  1007. package/dist/core/components/viewers/map/src/SimpleMap.js +2 -0
  1008. package/dist/core/components/viewers/map/src/SimpleMap.js.map +1 -1
  1009. package/dist/core/components/viewers/map/src/compare/AddItem.js +2 -0
  1010. package/dist/core/components/viewers/map/src/compare/AddItem.js.map +1 -1
  1011. package/dist/core/components/viewers/map/src/compare/CompareDialog.js +2 -0
  1012. package/dist/core/components/viewers/map/src/compare/CompareDialog.js.map +1 -1
  1013. package/dist/core/components/viewers/map/src/compare/description-list.js.map +1 -1
  1014. package/dist/core/components/viewers/map/src/compare/index.js +2 -0
  1015. package/dist/core/components/viewers/map/src/compare/index.js.map +1 -1
  1016. package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.js +2 -0
  1017. package/dist/core/components/viewers/map/src/tools/AddTools/AddDataset/DatasetAdder.js.map +1 -1
  1018. package/dist/core/components/viewers/map/src/tools/AddTools/AddFile/FileAdder.js +2 -0
  1019. package/dist/core/components/viewers/map/src/tools/AddTools/AddFile/FileAdder.js.map +1 -1
  1020. package/dist/core/components/viewers/map/src/tools/AddTools/AddFile/ProgressBar.js.map +1 -1
  1021. package/dist/core/components/viewers/map/src/tools/AddTools/AddFile/utils/uploadToPresignedURLS.js.map +1 -1
  1022. package/dist/core/components/viewers/map/src/tools/AddTools/AddSite/AssociateBuildingsDialog.js +2 -0
  1023. package/dist/core/components/viewers/map/src/tools/AddTools/AddSite/AssociateBuildingsDialog.js.map +1 -1
  1024. package/dist/core/components/viewers/map/src/tools/AddTools/AddSite/SiteAdder.js +2 -0
  1025. package/dist/core/components/viewers/map/src/tools/AddTools/AddSite/SiteAdder.js.map +1 -1
  1026. package/dist/core/components/viewers/map/src/tools/AddTools/AddSite/persistSite.js.map +1 -1
  1027. package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.js +2 -0
  1028. package/dist/core/components/viewers/map/src/tools/AddTools/AddToMap.js.map +1 -1
  1029. package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js +2 -0
  1030. package/dist/core/components/viewers/map/src/tools/DatasetMapTool.js.map +1 -1
  1031. package/dist/core/components/viewers/map/src/tools/mapTools.js.map +1 -1
  1032. package/dist/core/components/viewers/map/src/tools/measureMapTool.js +2 -0
  1033. package/dist/core/components/viewers/map/src/tools/measureMapTool.js.map +1 -1
  1034. package/dist/core/components/viewers/map/src/tools/shareMapTool.js +2 -0
  1035. package/dist/core/components/viewers/map/src/tools/shareMapTool.js.map +1 -1
  1036. package/dist/core/components/viewers/map/utils/ClusterManager.js.map +1 -1
  1037. package/dist/core/components/viewers/map/utils/MapEventManager/MapClickManager.js.map +1 -1
  1038. package/dist/core/components/viewers/map/utils/MapEventManager/MapHoverManager.js.map +1 -1
  1039. package/dist/core/components/viewers/map/utils/MarkerManager.js.map +1 -1
  1040. package/dist/core/components/viewers/map/utils/dateName.js.map +1 -1
  1041. package/dist/core/components/viewers/map/utils/extractCoordinates.js.map +1 -1
  1042. package/dist/core/components/viewers/map/utils/fitBuildingsBounds.js.map +1 -1
  1043. package/dist/core/components/viewers/map/utils/fitGeojsonBounds.js.map +1 -1
  1044. package/dist/core/components/viewers/map/utils/flyToEach.js.map +1 -1
  1045. package/dist/core/components/viewers/map/utils/geocoder.js.map +1 -1
  1046. package/dist/core/components/viewers/map/utils/geocoding/adapters.js.map +1 -1
  1047. package/dist/core/components/viewers/map/utils/geocoding/config.js.map +1 -1
  1048. package/dist/core/components/viewers/map/utils/geocoding/index.js.map +1 -1
  1049. package/dist/core/components/viewers/map/utils/geocoding/osm.js.map +1 -1
  1050. package/dist/core/components/viewers/map/utils/geocoding/pelias.js.map +1 -1
  1051. package/dist/core/components/viewers/map/utils/getOsmIdFromMartin.js.map +1 -1
  1052. package/dist/core/components/viewers/map/utils/getOsmIdbyCoordinates.js.map +1 -1
  1053. package/dist/core/components/viewers/map/utils/mapStyleCatalog.js.map +1 -1
  1054. package/dist/core/components/viewers/map/utils/mapStyleSpec.d.ts +0 -5
  1055. package/dist/core/components/viewers/map/utils/mapStyleSpec.d.ts.map +1 -1
  1056. package/dist/core/components/viewers/map/utils/mapStyleSpec.js.map +1 -1
  1057. package/dist/core/components/viewers/map/utils/stringToColour.js.map +1 -1
  1058. package/dist/core/components/viewers/map/utils/toggleBimToMap.js.map +1 -1
  1059. package/dist/core/components/viewers/map/utils/updateBuildingOsmId.js.map +1 -1
  1060. package/dist/core/components/viewers/map/utils/validateBounds.js.map +1 -1
  1061. package/dist/core/components/viewers/plugins/PluginsManager.js +2 -0
  1062. package/dist/core/components/viewers/plugins/PluginsManager.js.map +1 -1
  1063. package/dist/core/components/viewers/plugins/src/PluginCard.js +2 -0
  1064. package/dist/core/components/viewers/plugins/src/PluginCard.js.map +1 -1
  1065. package/dist/core/components/viewers/plugins/src/pluginStatus.js.map +1 -1
  1066. package/dist/core/components/viewers/plugins/src/useMountedPlugins.js +2 -0
  1067. package/dist/core/components/viewers/plugins/src/useMountedPlugins.js.map +1 -1
  1068. package/dist/core/components/viewers/plugins/src/usePluginEnablement.js +2 -0
  1069. package/dist/core/components/viewers/plugins/src/usePluginEnablement.js.map +1 -1
  1070. package/dist/core/components/viewers/plugins/src/usePluginsData.js +2 -0
  1071. package/dist/core/components/viewers/plugins/src/usePluginsData.js.map +1 -1
  1072. package/dist/core/components/viewers/pointcloud/PointCloudToolbar.js +2 -0
  1073. package/dist/core/components/viewers/pointcloud/PointCloudToolbar.js.map +1 -1
  1074. package/dist/core/components/viewers/pointcloud/PointCloudViewer.js +2 -0
  1075. package/dist/core/components/viewers/pointcloud/PointCloudViewer.js.map +1 -1
  1076. package/dist/core/components/viewers/pointcloud/define.js.map +1 -1
  1077. package/dist/core/components/viewers/pointcloud/src/PointCloudLoadingState/index.js +2 -0
  1078. package/dist/core/components/viewers/pointcloud/src/PointCloudLoadingState/index.js.map +1 -1
  1079. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.js +2 -0
  1080. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/index.js.map +1 -1
  1081. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/FileTab/index.js +2 -0
  1082. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/FileTab/index.js.map +1 -1
  1083. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/FileTab/src/FilesSection.js +3 -1
  1084. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/FileTab/src/FilesSection.js.map +1 -1
  1085. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/FileTab/src/PointCloudSection.js +2 -0
  1086. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/FileTab/src/PointCloudSection.js.map +1 -1
  1087. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/SettingsTab/index.js +2 -0
  1088. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/SettingsTab/index.js.map +1 -1
  1089. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/SettingsTab/src/CameraSettings.js +2 -0
  1090. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/SettingsTab/src/CameraSettings.js.map +1 -1
  1091. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/SettingsTab/src/GridManagement.js +2 -0
  1092. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/SettingsTab/src/GridManagement.js.map +1 -1
  1093. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/SettingsTab/src/PerformanceSettings.js +2 -0
  1094. package/dist/core/components/viewers/pointcloud/src/PointCloudSidebar/src/SettingsTab/src/PerformanceSettings.js.map +1 -1
  1095. package/dist/core/components/viewers/pointcloud/src/ViewportGizmo.js.map +1 -1
  1096. package/dist/core/components/viewers/pointcloud/src/tools/ClippingTools/ClippingTool.js +2 -0
  1097. package/dist/core/components/viewers/pointcloud/src/tools/ClippingTools/ClippingTool.js.map +1 -1
  1098. package/dist/core/components/viewers/pointcloud/src/tools/FitToScreen.js +2 -0
  1099. package/dist/core/components/viewers/pointcloud/src/tools/FitToScreen.js.map +1 -1
  1100. package/dist/core/components/viewers/pointcloud/src/tools/MeasureTools/AngleMeasurement.js +2 -0
  1101. package/dist/core/components/viewers/pointcloud/src/tools/MeasureTools/AngleMeasurement.js.map +1 -1
  1102. package/dist/core/components/viewers/pointcloud/src/tools/MeasureTools/AreaMeasurement.js +2 -0
  1103. package/dist/core/components/viewers/pointcloud/src/tools/MeasureTools/AreaMeasurement.js.map +1 -1
  1104. package/dist/core/components/viewers/pointcloud/src/tools/MeasureTools/LineMeasurement.js +2 -0
  1105. package/dist/core/components/viewers/pointcloud/src/tools/MeasureTools/LineMeasurement.js.map +1 -1
  1106. package/dist/core/components/viewers/pointcloud/src/tools/MeasureTools/MeasurePointCloudTool.js +2 -0
  1107. package/dist/core/components/viewers/pointcloud/src/tools/MeasureTools/MeasurePointCloudTool.js.map +1 -1
  1108. package/dist/core/components/viewers/pointcloud/src/tools/PCSearchTool.js +2 -0
  1109. package/dist/core/components/viewers/pointcloud/src/tools/PCSearchTool.js.map +1 -1
  1110. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/NodeSizeSelectionTool.js +2 -0
  1111. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/NodeSizeSelectionTool.js.map +1 -1
  1112. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/PerformanceSettingTools.js +2 -0
  1113. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/PerformanceSettingTools.js.map +1 -1
  1114. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/PointBudgetTool.js +2 -0
  1115. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/PointBudgetTool.js.map +1 -1
  1116. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/ShowOctreeBoxTool.js +2 -0
  1117. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/ShowOctreeBoxTool.js.map +1 -1
  1118. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/SplatQualitySelection.js +2 -0
  1119. package/dist/core/components/viewers/pointcloud/src/tools/PerformanceSettingsTools/SplatQualitySelection.js.map +1 -1
  1120. package/dist/core/components/viewers/pointcloud/src/tools/SetCameraOption.js +2 -0
  1121. package/dist/core/components/viewers/pointcloud/src/tools/SetCameraOption.js.map +1 -1
  1122. package/dist/core/components/viewers/pointcloud/src/tools/SharePointCloudTool/index.js +2 -0
  1123. package/dist/core/components/viewers/pointcloud/src/tools/SharePointCloudTool/index.js.map +1 -1
  1124. package/dist/core/components/viewers/pointcloud/src/tools/SharePointCloudTool/src/getCameraPosition.js.map +1 -1
  1125. package/dist/core/components/viewers/pointcloud/src/tools/index.js.map +1 -1
  1126. package/dist/core/components/viewers/pointcloud/src/tools/pointcloudToolbarTools.js.map +1 -1
  1127. package/dist/core/components/viewers/pointcloud/utils/potreeLoader.js.map +1 -1
  1128. package/dist/core/components/viewers/pointcloud/utils/restoreCameraFromUrl.js.map +1 -1
  1129. package/dist/core/components/viewers/shared/legends/ViewerLegendHost.js +2 -0
  1130. package/dist/core/components/viewers/shared/legends/ViewerLegendHost.js.map +1 -1
  1131. package/dist/core/components/viewers/shared/markers/BimMarkerCluster.js +2 -0
  1132. package/dist/core/components/viewers/shared/markers/BimMarkerCluster.js.map +1 -1
  1133. package/dist/core/components/viewers/shared/markers/computeMarkerLookAt.js.map +1 -1
  1134. package/dist/core/components/viewers/shared/markers/useMarkerLayerBim.js +2 -0
  1135. package/dist/core/components/viewers/shared/markers/useMarkerLayerBim.js.map +1 -1
  1136. package/dist/core/components/viewers/shared/pointcloud/pointCloudApi.d.ts +10 -0
  1137. package/dist/core/components/viewers/shared/pointcloud/pointCloudApi.d.ts.map +1 -0
  1138. package/dist/core/components/viewers/shared/pointcloud/pointCloudApi.js +21 -0
  1139. package/dist/core/components/viewers/shared/pointcloud/pointCloudApi.js.map +1 -0
  1140. package/dist/core/components/viewers/shared/pointcloud/pointCloudAppearance.d.ts +23 -0
  1141. package/dist/core/components/viewers/shared/pointcloud/pointCloudAppearance.d.ts.map +1 -0
  1142. package/dist/core/components/viewers/shared/pointcloud/pointCloudAppearance.js +68 -0
  1143. package/dist/core/components/viewers/shared/pointcloud/pointCloudAppearance.js.map +1 -0
  1144. package/dist/core/components/viewers/shared/pointcloud/pointCloudCentroid.d.ts +18 -0
  1145. package/dist/core/components/viewers/shared/pointcloud/pointCloudCentroid.d.ts.map +1 -0
  1146. package/dist/core/components/viewers/shared/pointcloud/pointCloudCentroid.js +55 -0
  1147. package/dist/core/components/viewers/shared/pointcloud/pointCloudCentroid.js.map +1 -0
  1148. package/dist/core/components/viewers/shared/pointcloud/pointCloudLoader.d.ts +29 -0
  1149. package/dist/core/components/viewers/shared/pointcloud/pointCloudLoader.d.ts.map +1 -0
  1150. package/dist/core/components/viewers/shared/pointcloud/pointCloudLoader.js +46 -0
  1151. package/dist/core/components/viewers/shared/pointcloud/pointCloudLoader.js.map +1 -0
  1152. package/dist/core/components/viewers/shared/pointcloud/pointCloudPivot.d.ts +17 -0
  1153. package/dist/core/components/viewers/shared/pointcloud/pointCloudPivot.d.ts.map +1 -0
  1154. package/dist/core/components/viewers/shared/pointcloud/pointCloudPivot.js +53 -0
  1155. package/dist/core/components/viewers/shared/pointcloud/pointCloudPivot.js.map +1 -0
  1156. package/dist/core/components/viewers/shared/pointcloud/pointCloudPlacement.d.ts +11 -0
  1157. package/dist/core/components/viewers/shared/pointcloud/pointCloudPlacement.d.ts.map +1 -0
  1158. package/dist/core/components/viewers/shared/pointcloud/pointCloudPlacement.js +43 -0
  1159. package/dist/core/components/viewers/shared/pointcloud/pointCloudPlacement.js.map +1 -0
  1160. package/dist/core/components/viewers/shared/pointcloud/pointCloudRegistry.d.ts +47 -0
  1161. package/dist/core/components/viewers/shared/pointcloud/pointCloudRegistry.d.ts.map +1 -0
  1162. package/dist/core/components/viewers/shared/pointcloud/pointCloudRegistry.js +82 -0
  1163. package/dist/core/components/viewers/shared/pointcloud/pointCloudRegistry.js.map +1 -0
  1164. package/dist/core/components/viewers/shared/pointcloud/pointCloudSource.d.ts +13 -0
  1165. package/dist/core/components/viewers/shared/pointcloud/pointCloudSource.d.ts.map +1 -0
  1166. package/dist/core/components/viewers/shared/pointcloud/pointCloudSource.js +41 -0
  1167. package/dist/core/components/viewers/shared/pointcloud/pointCloudSource.js.map +1 -0
  1168. package/dist/core/components/viewers/shared/pointcloud/pointCloudTransform.d.ts +13 -0
  1169. package/dist/core/components/viewers/shared/pointcloud/pointCloudTransform.d.ts.map +1 -0
  1170. package/dist/core/components/viewers/shared/pointcloud/pointCloudTransform.js +46 -0
  1171. package/dist/core/components/viewers/shared/pointcloud/pointCloudTransform.js.map +1 -0
  1172. package/dist/core/components/viewers/useCoordinateSystem.js.map +1 -1
  1173. package/dist/core/components/viewers/viewerAccess.js.map +1 -1
  1174. package/dist/core/hooks/buildings/buildings.js +2 -0
  1175. package/dist/core/hooks/buildings/buildings.js.map +1 -1
  1176. package/dist/core/hooks/buildings/createBuildingHooks.js.map +1 -1
  1177. package/dist/core/hooks/comments/comments.js +2 -0
  1178. package/dist/core/hooks/comments/comments.js.map +1 -1
  1179. package/dist/core/hooks/comments/createCommentHooks.js.map +1 -1
  1180. package/dist/core/hooks/files/createFileHooks.d.ts +1 -0
  1181. package/dist/core/hooks/files/createFileHooks.d.ts.map +1 -1
  1182. package/dist/core/hooks/files/createFileHooks.js +14 -0
  1183. package/dist/core/hooks/files/createFileHooks.js.map +1 -1
  1184. package/dist/core/hooks/files/files.d.ts +1 -0
  1185. package/dist/core/hooks/files/files.d.ts.map +1 -1
  1186. package/dist/core/hooks/files/files.js +4 -0
  1187. package/dist/core/hooks/files/files.js.map +1 -1
  1188. package/dist/core/hooks/index.js.map +1 -1
  1189. package/dist/core/hooks/infrastructures/createInfrastructureHooks.js.map +1 -1
  1190. package/dist/core/hooks/infrastructures/infrastructures.js +2 -0
  1191. package/dist/core/hooks/infrastructures/infrastructures.js.map +1 -1
  1192. package/dist/core/hooks/openDataPortals/createOpenDataPortalHooks.js.map +1 -1
  1193. package/dist/core/hooks/openDataPortals/openDataPortals.js +2 -0
  1194. package/dist/core/hooks/openDataPortals/openDataPortals.js.map +1 -1
  1195. package/dist/core/hooks/organizations/createOrganizationHooks.js.map +1 -1
  1196. package/dist/core/hooks/organizations/organizations.js +2 -0
  1197. package/dist/core/hooks/organizations/organizations.js.map +1 -1
  1198. package/dist/core/hooks/plugins/createPluginHooks.js.map +1 -1
  1199. package/dist/core/hooks/plugins/plugins.js.map +1 -1
  1200. package/dist/core/hooks/provider.js +2 -0
  1201. package/dist/core/hooks/provider.js.map +1 -1
  1202. package/dist/core/hooks/sensorTypes/createSensorTypeHooks.js.map +1 -1
  1203. package/dist/core/hooks/sensorTypes/sensorTypes.js +2 -0
  1204. package/dist/core/hooks/sensorTypes/sensorTypes.js.map +1 -1
  1205. package/dist/core/hooks/sensors/createSensorHooks.js.map +1 -1
  1206. package/dist/core/hooks/sensors/sensors.js +2 -0
  1207. package/dist/core/hooks/sensors/sensors.js.map +1 -1
  1208. package/dist/core/hooks/sites/createSiteHooks.js.map +1 -1
  1209. package/dist/core/hooks/sites/sites.d.ts.map +1 -1
  1210. package/dist/core/hooks/sites/sites.js +2 -0
  1211. package/dist/core/hooks/sites/sites.js.map +1 -1
  1212. package/dist/core/hooks/ui/use-mobile.js +2 -0
  1213. package/dist/core/hooks/ui/use-mobile.js.map +1 -1
  1214. package/dist/core/hooks/ui/useCompactTabStrip.js.map +1 -1
  1215. package/dist/core/hooks/ui/useResizableSidebarWidth.js +2 -0
  1216. package/dist/core/hooks/ui/useResizableSidebarWidth.js.map +1 -1
  1217. package/dist/core/hooks/useCaptureScreenshot.js +2 -0
  1218. package/dist/core/hooks/useCaptureScreenshot.js.map +1 -1
  1219. package/dist/core/hooks/useCurrentViewerPosition.js +2 -0
  1220. package/dist/core/hooks/useCurrentViewerPosition.js.map +1 -1
  1221. package/dist/core/hooks/useGeocodingRuntimeConfig.js +2 -0
  1222. package/dist/core/hooks/useGeocodingRuntimeConfig.js.map +1 -1
  1223. package/dist/core/hooks/useShareUrl.js +2 -0
  1224. package/dist/core/hooks/useShareUrl.js.map +1 -1
  1225. package/dist/core/hooks/useUndoRedoShortcuts.js +2 -0
  1226. package/dist/core/hooks/useUndoRedoShortcuts.js.map +1 -1
  1227. package/dist/core/hooks/users/createUserHooks.js.map +1 -1
  1228. package/dist/core/hooks/users/users.js +2 -0
  1229. package/dist/core/hooks/users/users.js.map +1 -1
  1230. package/dist/core/i18n/index.js.map +1 -1
  1231. package/dist/core/i18n/messages/en.json +85 -4
  1232. package/dist/core/i18n/messages/es.json +85 -4
  1233. package/dist/core/i18n/messages/fr.json +85 -4
  1234. package/dist/core/index.js.map +1 -1
  1235. package/dist/core/plugins/enablement.js.map +1 -1
  1236. package/dist/core/plugins/hello-bim/manifest.json +127 -127
  1237. package/dist/core/plugins/hello-bim/src/components/SpaceDialog.js +2 -0
  1238. package/dist/core/plugins/hello-bim/src/components/SpaceDialog.js.map +1 -1
  1239. package/dist/core/plugins/hello-bim/src/components/SpacesLegend.js +2 -0
  1240. package/dist/core/plugins/hello-bim/src/components/SpacesLegend.js.map +1 -1
  1241. package/dist/core/plugins/hello-bim/src/components/SpacesTab.js +2 -0
  1242. package/dist/core/plugins/hello-bim/src/components/SpacesTab.js.map +1 -1
  1243. package/dist/core/plugins/hello-bim/src/components/SpacesTool.js +2 -0
  1244. package/dist/core/plugins/hello-bim/src/components/SpacesTool.js.map +1 -1
  1245. package/dist/core/plugins/hello-bim/src/components/icons.js +2 -0
  1246. package/dist/core/plugins/hello-bim/src/components/icons.js.map +1 -1
  1247. package/dist/core/plugins/hello-bim/src/index.js.map +1 -1
  1248. package/dist/core/plugins/hello-bim/src/spaces.js +2 -0
  1249. package/dist/core/plugins/hello-bim/src/spaces.js.map +1 -1
  1250. package/dist/core/plugins/hello-map/manifest.json +129 -129
  1251. package/dist/core/plugins/hello-map/src/components/MapTool.js +2 -0
  1252. package/dist/core/plugins/hello-map/src/components/MapTool.js.map +1 -1
  1253. package/dist/core/plugins/hello-map/src/components/MarkerDialog.js +2 -0
  1254. package/dist/core/plugins/hello-map/src/components/MarkerDialog.js.map +1 -1
  1255. package/dist/core/plugins/hello-map/src/components/MarkersLayer.js +2 -0
  1256. package/dist/core/plugins/hello-map/src/components/MarkersLayer.js.map +1 -1
  1257. package/dist/core/plugins/hello-map/src/components/MarkersLegend.js +2 -0
  1258. package/dist/core/plugins/hello-map/src/components/MarkersLegend.js.map +1 -1
  1259. package/dist/core/plugins/hello-map/src/components/MarkersPage.js +2 -0
  1260. package/dist/core/plugins/hello-map/src/components/MarkersPage.js.map +1 -1
  1261. package/dist/core/plugins/hello-map/src/components/MarkersTab.js +2 -0
  1262. package/dist/core/plugins/hello-map/src/components/MarkersTab.js.map +1 -1
  1263. package/dist/core/plugins/hello-map/src/index.js.map +1 -1
  1264. package/dist/core/plugins/hello-map/src/markers.js +2 -0
  1265. package/dist/core/plugins/hello-map/src/markers.js.map +1 -1
  1266. package/dist/core/plugins/host/PluginDataPageHost.js +2 -0
  1267. package/dist/core/plugins/host/PluginDataPageHost.js.map +1 -1
  1268. package/dist/core/plugins/host/PluginDialogHost.js +2 -0
  1269. package/dist/core/plugins/host/PluginDialogHost.js.map +1 -1
  1270. package/dist/core/plugins/host/PluginMapLayerHost.js +2 -0
  1271. package/dist/core/plugins/host/PluginMapLayerHost.js.map +1 -1
  1272. package/dist/core/plugins/host/context.js.map +1 -1
  1273. package/dist/core/plugins/host/dialogs.js +2 -0
  1274. package/dist/core/plugins/host/dialogs.js.map +1 -1
  1275. package/dist/core/plugins/host/errors.js.map +1 -1
  1276. package/dist/core/plugins/host/host.js.map +1 -1
  1277. package/dist/core/plugins/host/pluginIcon.js.map +1 -1
  1278. package/dist/core/plugins/host/pluginKit.tsconfig.json +45 -45
  1279. package/dist/core/plugins/host/pluginViewerKey.js.map +1 -1
  1280. package/dist/core/plugins/host/provider.js +2 -0
  1281. package/dist/core/plugins/host/provider.js.map +1 -1
  1282. package/dist/core/plugins/host/registry.js.map +1 -1
  1283. package/dist/core/plugins/host/runtimeShims.js.map +1 -1
  1284. package/dist/core/plugins/host/scope.js +2 -0
  1285. package/dist/core/plugins/host/scope.js.map +1 -1
  1286. package/dist/core/plugins/host/usePluginDataPages.js +2 -0
  1287. package/dist/core/plugins/host/usePluginDataPages.js.map +1 -1
  1288. package/dist/core/plugins/host/usePluginToolbarTools.js +2 -0
  1289. package/dist/core/plugins/host/usePluginToolbarTools.js.map +1 -1
  1290. package/dist/core/plugins/host/usePluginViewerTabs.d.ts.map +1 -1
  1291. package/dist/core/plugins/host/usePluginViewerTabs.js +4 -1
  1292. package/dist/core/plugins/host/usePluginViewerTabs.js.map +1 -1
  1293. package/dist/core/plugins/installed.js.map +1 -1
  1294. package/dist/core/plugins/messages.js.map +1 -1
  1295. package/dist/core/plugins/sdk/bimViewer.js +2 -0
  1296. package/dist/core/plugins/sdk/bimViewer.js.map +1 -1
  1297. package/dist/core/plugins/sdk/components.js +2 -0
  1298. package/dist/core/plugins/sdk/components.js.map +1 -1
  1299. package/dist/core/plugins/sdk/config.js +2 -0
  1300. package/dist/core/plugins/sdk/config.js.map +1 -1
  1301. package/dist/core/plugins/sdk/data.js +2 -0
  1302. package/dist/core/plugins/sdk/data.js.map +1 -1
  1303. package/dist/core/plugins/sdk/index.js.map +1 -1
  1304. package/dist/core/plugins/sdk/mapViewer.js +2 -0
  1305. package/dist/core/plugins/sdk/mapViewer.js.map +1 -1
  1306. package/dist/core/plugins/sdk/messages.js +2 -0
  1307. package/dist/core/plugins/sdk/messages.js.map +1 -1
  1308. package/dist/core/plugins/sdk/permissions.js +2 -0
  1309. package/dist/core/plugins/sdk/permissions.js.map +1 -1
  1310. package/dist/core/plugins/sdk/pointCloudViewer.js +2 -0
  1311. package/dist/core/plugins/sdk/pointCloudViewer.js.map +1 -1
  1312. package/dist/core/plugins/sdk/state.js +2 -0
  1313. package/dist/core/plugins/sdk/state.js.map +1 -1
  1314. package/dist/core/plugins/sdk/store.js +2 -0
  1315. package/dist/core/plugins/sdk/store.js.map +1 -1
  1316. package/dist/core/plugins/sdk/types.js.map +1 -1
  1317. package/dist/core/plugins/sdk/ui.js +2 -0
  1318. package/dist/core/plugins/sdk/ui.js.map +1 -1
  1319. package/dist/core/plugins/sdk/version.js.map +1 -1
  1320. package/dist/core/plugins/sdk/viewer.js +2 -0
  1321. package/dist/core/plugins/sdk/viewer.js.map +1 -1
  1322. package/dist/core/store/AppConfig/context.js +2 -0
  1323. package/dist/core/store/AppConfig/context.js.map +1 -1
  1324. package/dist/core/store/AppConfig/reducer.js.map +1 -1
  1325. package/dist/core/store/BIM/context.d.ts.map +1 -1
  1326. package/dist/core/store/BIM/context.js +4 -0
  1327. package/dist/core/store/BIM/context.js.map +1 -1
  1328. package/dist/core/store/BIM/reducer.d.ts +23 -10
  1329. package/dist/core/store/BIM/reducer.d.ts.map +1 -1
  1330. package/dist/core/store/BIM/reducer.js +22 -1
  1331. package/dist/core/store/BIM/reducer.js.map +1 -1
  1332. package/dist/core/store/Buildings/context.js +2 -0
  1333. package/dist/core/store/Buildings/context.js.map +1 -1
  1334. package/dist/core/store/Buildings/reducer.js.map +1 -1
  1335. package/dist/core/store/CombineProviders.js +2 -0
  1336. package/dist/core/store/CombineProviders.js.map +1 -1
  1337. package/dist/core/store/Content/context.js +2 -0
  1338. package/dist/core/store/Content/context.js.map +1 -1
  1339. package/dist/core/store/Datasets/context.js +2 -0
  1340. package/dist/core/store/Datasets/context.js.map +1 -1
  1341. package/dist/core/store/Datasets/reducer.js.map +1 -1
  1342. package/dist/core/store/Files/context.js +2 -0
  1343. package/dist/core/store/Files/context.js.map +1 -1
  1344. package/dist/core/store/Files/reducer.js.map +1 -1
  1345. package/dist/core/store/Map/context.js +2 -0
  1346. package/dist/core/store/Map/context.js.map +1 -1
  1347. package/dist/core/store/Map/reducer.js.map +1 -1
  1348. package/dist/core/store/MapSites/context.js +2 -0
  1349. package/dist/core/store/MapSites/context.js.map +1 -1
  1350. package/dist/core/store/MapSites/reducer.js.map +1 -1
  1351. package/dist/core/store/Menus/context.js +2 -0
  1352. package/dist/core/store/Menus/context.js.map +1 -1
  1353. package/dist/core/store/Menus/reducer.js.map +1 -1
  1354. package/dist/core/store/Permissions/context.js +2 -0
  1355. package/dist/core/store/Permissions/context.js.map +1 -1
  1356. package/dist/core/store/PointCloud/context.js +2 -0
  1357. package/dist/core/store/PointCloud/context.js.map +1 -1
  1358. package/dist/core/store/PointCloud/reducer.js.map +1 -1
  1359. package/dist/core/store/Tools/context.js +2 -0
  1360. package/dist/core/store/Tools/context.js.map +1 -1
  1361. package/dist/core/store/Tools/reducer.js.map +1 -1
  1362. package/dist/core/store/index.js.map +1 -1
  1363. package/dist/core/styles/globals.css +1090 -1090
  1364. package/dist/core/styles/sovereign-tokens.css +53 -53
  1365. package/dist/core/styles/tailwindMerge.js.map +1 -1
  1366. package/dist/core/types/dbTypes.d.ts +3 -0
  1367. package/dist/core/types/dbTypes.d.ts.map +1 -1
  1368. package/dist/core/types/dbTypes.js.map +1 -1
  1369. package/dist/core/types/global.js.map +1 -1
  1370. package/dist/core/types/index.js.map +1 -1
  1371. package/dist/core/types/martinTypes.js.map +1 -1
  1372. package/dist/core/utils/acceptedFiles.js.map +1 -1
  1373. package/dist/core/utils/appContent.js.map +1 -1
  1374. package/dist/core/utils/colourUtils.js.map +1 -1
  1375. package/dist/core/utils/errorHandler.js.map +1 -1
  1376. package/dist/core/utils/getFileIcon.js.map +1 -1
  1377. package/dist/core/utils/imageUtils.js.map +1 -1
  1378. package/dist/core/utils/index.js.map +1 -1
  1379. package/dist/core/utils/markerUtils.js.map +1 -1
  1380. package/dist/core/utils/memcache.js.map +1 -1
  1381. package/dist/core/utils/roles.js.map +1 -1
  1382. package/dist/core/utils/timeUtils.js.map +1 -1
  1383. package/dist/core/utils/undoHistory.js.map +1 -1
  1384. package/dist/core/utils/utils.js.map +1 -1
  1385. package/dist/index.js.map +1 -1
  1386. package/package.json +226 -224
  1387. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/Position3DCard.d.ts +0 -14
  1388. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/Position3DCard.d.ts.map +0 -1
  1389. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/Position3DCard.js +0 -94
  1390. package/dist/core/components/viewers/bim/src/tools/AddToBim/src/Position3DCard.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/Headers.tsx"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport { useTranslations } from 'next-intl'\r\nimport React from 'react'\r\n\r\nimport type { Building, Site } from '../../../../types/dbTypes'\r\n\r\ntype BuildingWithRelations = Building & {\r\n buildingOccupancyCertificate: File[]\r\n occupancyData: File[]\r\n buildingZoningCompliance: File[]\r\n buildingUnitsMarketRentNum: File[]\r\n buildingUnitsMarketRentSqft: File[]\r\n buildingPermitsIssued: File[]\r\n buildingRegionalEnergyTrends: File[]\r\n buildingEnergyCodeCompliance: File[]\r\n buildingCertificationsFile: File[]\r\n buildingWaterUseIntensity: File[]\r\n buildingEnvironmentalCompliance: File[]\r\n buildingAssessmentRatingCondition: File[]\r\n buildingMaintenanceRecords: File[]\r\n conditionRatingsDate: File[]\r\n buildingSystemAssessment: File[]\r\n buildingFireSafety: File[]\r\n buildingSiteFireCertificate: File[]\r\n buildingEnergyAssessmentReports: File[]\r\n buildingAirQualityReports: File[]\r\n buildingWaterQualityReports: File[]\r\n DSRs: File[]\r\n buildingBCAs: File[]\r\n buildingContractorReports: File[]\r\n buildingEngineeringAssessments: File[]\r\n}\r\n\r\ntype SiteWithRelations = Site & {\r\n siteEnergyCodeCompliance: File[]\r\n siteCertificationCertificates: File[]\r\n siteEnvironmentalCompliance: File[]\r\n siteMaintenanceRecords: File[]\r\n siteFireSafety: File[]\r\n siteFireCert: File[]\r\n siteZoningCompliance: File[]\r\n siteBuildingPermit: File[]\r\n siteInsuranceClaims: File[]\r\n siteBuildingPermitsIssued: File[]\r\n siteBuildings: Building[]\r\n}\r\n\r\ntype BuildingFieldDefinition = {\r\n label: React.ReactNode // UI Header\r\n property: keyof BuildingWithRelations\r\n}\r\ntype SiteFieldDefinition = {\r\n label: React.ReactNode // UI Header\r\n property: keyof SiteWithRelations\r\n}\r\n\r\ntype BuildingSubSection = {\r\n title: string // Subheader\r\n fields: BuildingFieldDefinition[]\r\n specialLayout?: string\r\n columns?: { header: string | React.ReactNode, propertyPrefix: string }[]\r\n rows?: { label: string, baseProperty: string }[]\r\n}\r\ntype SiteSubSection = {\r\n title: string // Subheader\r\n fields: SiteFieldDefinition[]\r\n}\r\n\r\ntype BuildingTabSection = {\r\n title: string // Tab\r\n subsections: BuildingSubSection[]\r\n}\r\ntype SiteTabSection = {\r\n title: string // Tab\r\n subsections: SiteSubSection[]\r\n}\r\n\r\nexport const useBuildingHeaders = () => {\r\n // Translations\r\n const t = useTranslations('headers')\r\n\r\n return [\r\n {\r\n title: t('buildingInformation'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('buildingName'), property: 'buildingName' },\r\n { label: t('buildingAddress'), property: 'buildingAddress' },\r\n { label: t('buildingCountrySubdivision'), property: 'buildingCountrySubdivision' },\r\n { label: t('buildingMunicipality'), property: 'buildingMunicipality' },\r\n { label: t('buildingCity'), property: 'buildingCity' },\r\n { label: t('buildingPostalCode'), property: 'buildingPostalCode' },\r\n { label: t('buildingCounty'), property: 'buildingCounty' },\r\n { label: t('buildingWardName'), property: 'buildingWardName' },\r\n { label: t('buildingWardNumber'), property: 'buildingWardNumber' },\r\n { label: t('buildingParentSiteId'), property: 'buildingParentSiteId' },\r\n ],\r\n },\r\n {\r\n title: t('features'),\r\n fields: [\r\n { label: t('buildingType'), property: 'buildingType' },\r\n { label: t('buildingGeometryStyle'), property: 'buildingGeometryStyle' },\r\n { label: t('buildingStoreyNum'), property: 'buildingStoreyNum' },\r\n {\r\n label: <>\r\n {t('buildingTotalSqft')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">m²</span>\r\n </>,\r\n property: 'buildingTotalSqft',\r\n },\r\n { label: t('buildingMaterials'), property: 'buildingMaterials' },\r\n { label: t('buildingYearBuilt'), property: 'buildingYearBuilt' },\r\n { label: t('buildingZoning'), property: 'buildingZoning' },\r\n { label: t('buildingZoningCompliance'), property: 'buildingZoningCompliance' },\r\n { label: t('buildingParkingAvailable'), property: 'buildingParkingAvailable' },\r\n { label: t('buildingElevatorAvailable'), property: 'buildingElevatorAvailable' },\r\n { label: t('buildingDryerAvailable'), property: 'buildingDryerAvailable' },\r\n { label: t('buildingWasherAvailable'), property: 'buildingWasherAvailable' },\r\n { label: t('buildingCommonSpace'), property: 'buildingCommonSpace' },\r\n { label: t('buildingNotes'), property: 'buildingNotes' },\r\n ],\r\n },\r\n {\r\n title: t('contactInformation'),\r\n fields: [\r\n { label: t('buildingOwnership'), property: 'buildingOwnership' },\r\n { label: t('buildingProviderName'), property: 'buildingProviderName' },\r\n { label: t('buildingProviderType'), property: 'buildingProviderType' },\r\n { label: t('buildingProviderWebsite'), property: 'buildingProviderWebsite' },\r\n { label: t('buildingProviderContactName'), property: 'buildingProviderContactName' },\r\n { label: t('buildingProviderContactPhone'), property: 'buildingProviderContactPhone' },\r\n { label: t('buildingProviderContactEmail'), property: 'buildingProviderContactEmail' },\r\n { label: t('buildingWebsite'), property: 'buildingWebsite' },\r\n ],\r\n },\r\n {\r\n title: t('managementInfo'),\r\n fields: [\r\n { label: t('managementName'), property: 'buildingManagementName' },\r\n { label: t('managementType'), property: 'buildingManagementType' },\r\n { label: t('managementWebsite'), property: 'buildingManagementWebsite' },\r\n { label: t('managementContactName'), property: 'buildingManagementContactName' },\r\n { label: t('managementPhoneNumber'), property: 'buildingManagementPhoneNumber' }, ],\r\n },\r\n {\r\n title: t('occupants'),\r\n fields: [\r\n { label: t('buildingOccupantType'), property: 'buildingOccupantType' },\r\n { label: t('buildingOccupancyCertificate'), property: 'buildingOccupancyCertificate' },\r\n { label: t('buildingRentalMarketSurveyZone'), property: 'buildingRentalMarketSurveyZone' },\r\n { label: t('buildingCensusTract'), property: 'buildingCensusTract' },\r\n ],\r\n },\r\n {\r\n title: t('coordinates'),\r\n fields: [\r\n { label: t('buildingLatitude'), property: 'buildingLatitude' },\r\n { label: t('buildingLongitude'), property: 'buildingLongitude' },\r\n { label: t('buildingElevation'), property: 'buildingElevation' },\r\n { label: t('buildingNorthing'), property: 'buildingNorthing' },\r\n { label: t('buildingEasting'), property: 'buildingEasting' },\r\n { label: t('buildingEPSG'), property: 'buildingEPSG' },\r\n { label: t('buildingOrthogonalHeight'), property: 'buildingOrthogonalHeight' },\r\n { label: t('buildingOsmId'), property: 'buildingOsmId' },\r\n { label: t('buildingAdditionalInformation'), property: 'buildingAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('buildingUnits'),\r\n subsections: [\r\n {\r\n title: t('units'),\r\n fields: [\r\n { label: t('buildingType'), property: 'buildingType' },\r\n { label: t('buildingUnitsTotal'), property: 'buildingUnitsTotal' },\r\n {\r\n label: <>\r\n {t('buildingTotalSqft')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">m²</span>\r\n </>,\r\n property: 'buildingTotalSqft',\r\n },\r\n {\r\n label: <>\r\n {t('buildingTotalRentableArea')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">m²</span>\r\n </>,\r\n property: 'buildingTotalRentableArea',\r\n },\r\n { label: t('buildingHeatingIncluded'), property: 'buildingHeatingIncluded' },\r\n { label: t('buildingHydroIncluded'), property: 'buildingHydroIncluded' },\r\n { label: t('buildingWaterIncluded'), property: 'buildingWaterIncluded' },\r\n { label: t('buildingUtilitiesIncluded'), property: 'buildingUtilitiesIncluded' },\r\n ],\r\n },\r\n {\r\n title: t('unitsAvailable'),\r\n specialLayout: 'unitsGrid',\r\n columns: [\r\n { header: t('unitType'), propertyPrefix: '' },\r\n { header: t('totalNumberOfUnits'), propertyPrefix: 'Num' },\r\n {\r\n header: <>\r\n {t('unit')}\r\n <span className=\"italic !text-xs !font-light\"></span>\r\n </>,\r\n propertyPrefix: 'Sqft',\r\n },\r\n\r\n ],\r\n rows: [\r\n { label: t('accessibleUnits'), baseProperty: 'buildingUnitsModified' },\r\n { label: t('subsidizedUnits'), baseProperty: 'buildingUnitsSubsidized' },\r\n { label: t('marketRentalUnits'), baseProperty: 'buildingUnitsMarketRent' },\r\n { label: t('belowMarketRent'), baseProperty: 'buildingUnitsBelowMarketRent' },\r\n { label: t('rentGearedToIncome'), baseProperty: 'buildingUnitsRentGearedToIncome' },\r\n { label: t('roomUnits'), baseProperty: 'buildingUnitsRoom' },\r\n { label: t('bachelorUnits'), baseProperty: 'buildingUnitsB' },\r\n { label: t('oneBedroomUnits'), baseProperty: 'buildingUnits1B' },\r\n { label: t('twoBedroomUnits'), baseProperty: 'buildingUnits2B' },\r\n { label: t('threeBedroomUnits'), baseProperty: 'buildingUnits3B' },\r\n { label: t('fourBedroomUnits'), baseProperty: 'buildingUnits4B' },\r\n { label: t('fiveBedroomUnits'), baseProperty: 'buildingUnits5B' },\r\n { label: t('sixBedroomUnits'), baseProperty: 'buildingUnits6B' },\r\n ],\r\n fields: [\r\n { label: t('buildingUnitsModified'), property: 'buildingUnitsModified' },\r\n { label: t('buildingUnitsModifiedNum'), property: 'buildingUnitsModifiedNum' },\r\n { label: t('buildingUnitsModifiedSqft'), property: 'buildingUnitsModifiedSqft' },\r\n { label: t('buildingUnitsMarketRent'), property: 'buildingUnitsMarketRent' },\r\n { label: t('buildingUnitsMarketRentNum'), property: 'buildingUnitsMarketRentNum' },\r\n { label: t('buildingUnitsMarketRentSqft'), property: 'buildingUnitsMarketRentSqft' },\r\n { label: t('buildingUnitsSubsidized'), property: 'buildingUnitsSubsidized' },\r\n { label: t('buildingUnitsSubsidizedNum'), property: 'buildingUnitsSubsidizedNum' },\r\n { label: t('buildingUnitsSubsidizedSqft'), property: 'buildingUnitsSubsidizedSqft' },\r\n { label: t('belowMarketRent'), property: 'buildingUnitsBelowMarketRent' },\r\n { label: t('belowMarketRentNum'), property: 'buildingUnitsBelowMarketRentNum' },\r\n { label: t('belowMarketRentsqft'), property: 'buildingUnitsBelowMarketRentSqft' },\r\n { label: t('rentGearedToIncome'), property: 'buildingUnitsRentGearedToIncome' },\r\n { label: t('rentGearedToIncomeNum'), property: 'buildingUnitsRentGearedToIncomeNum' },\r\n { label: t('rentGearedToIncomesqft'), property: 'buildingUnitsRentGearedToIncomeSqft' },\r\n { label: t('buildingUnitsRoom'), property: 'buildingUnitsRoom' },\r\n { label: t('buildingUnitsRoomNum'), property: 'buildingUnitsRoomNum' },\r\n { label: t('buildingUnitsRoomSqft'), property: 'buildingUnitsRoomSqft' },\r\n { label: t('buildingUnitsB'), property: 'buildingUnitsB' },\r\n { label: t('buildingUnitsBNum'), property: 'buildingUnitsBNum' },\r\n { label: t('buildingUnitsBSqft'), property: 'buildingUnitsBSqft' },\r\n { label: t('buildingUnits1B'), property: 'buildingUnits1B' },\r\n { label: t('buildingUnits1BNum'), property: 'buildingUnits1BNum' },\r\n { label: t('buildingUnits1BSqft'), property: 'buildingUnits1BSqft' },\r\n { label: t('buildingUnits2B'), property: 'buildingUnits2B' },\r\n { label: t('buildingUnits2BNum'), property: 'buildingUnits2BNum' },\r\n { label: t('buildingUnits2BSqft'), property: 'buildingUnits2BSqft' },\r\n { label: t('buildingUnits3B'), property: 'buildingUnits3B' },\r\n { label: t('buildingUnits3BNum'), property: 'buildingUnits3BNum' },\r\n { label: t('buildingUnits3BSqft'), property: 'buildingUnits3BSqft' },\r\n { label: t('buildingUnits4B'), property: 'buildingUnits4B' },\r\n { label: t('buildingUnits4BNum'), property: 'buildingUnits4BNum' },\r\n { label: t('buildingUnits4BSqft'), property: 'buildingUnits4BSqft' },\r\n { label: t('buildingUnits5B'), property: 'buildingUnits5B' },\r\n { label: t('buildingUnits5BNum'), property: 'buildingUnits5BNum' },\r\n { label: t('buildingUnits5BSqft'), property: 'buildingUnits5BSqft' },\r\n { label: t('buildingUnits6B'), property: 'buildingUnits6B' },\r\n { label: t('buildingUnits6BNum'), property: 'buildingUnits6BNum' },\r\n { label: t('buildingUnits6BSqft'), property: 'buildingUnits6BSqft' },\r\n ],\r\n },\r\n {\r\n title: '',\r\n fields: [\r\n { label: t('buildingUnitAdditionalInformation'), property: 'buildingUnitAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('buildingProjects'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('buildingProjectName'), property: 'buildingProjectName' },\r\n { label: t('buildingProjectNumber'), property: 'buildingProjectNumber' },\r\n { label: t('buildingProjectType'), property: 'buildingProjectType' },\r\n { label: t('buildingProjectPhase'), property: 'buildingProjectPhase' },\r\n { label: t('buildingEstimatedStartDate'), property: 'buildingEstimatedStartDate' },\r\n { label: t('buildingEstimatedEndDate'), property: 'buildingEstimatedEndDate' },\r\n { label: t('buildingStartDate'), property: 'buildingStartDate' },\r\n { label: t('buildingCompletedDate'), property: 'buildingCompletedDate' },\r\n { label: t('buildingPriorityRetrofits'), property: 'buildingPriorityRetrofits' },\r\n { label: t('buildingProjectDescription'), property: 'buildingProjectDescription' },\r\n { label: t('previousUpdates'), property: 'previousUpdates' },\r\n ],\r\n },\r\n {\r\n title: t('permits'),\r\n fields: [\r\n { label: t('buildingBuilderName'), property: 'buildingBuilderName' },\r\n { label: t('buildingPermitsIssued'), property: 'buildingPermitsIssued' },\r\n { label: t('buildingPermitNumber'), property: 'buildingPermitNumber' },\r\n { label: t('buildingPermitIssuedDate'), property: 'buildingPermitIssuedDate' },\r\n ],\r\n },\r\n {\r\n title: t('funding'),\r\n fields: [\r\n {\r\n label: <>\r\n {t('buildingEstimatedTotalCost')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'buildingEstimatedTotalCost',\r\n },\r\n {\r\n label: <>\r\n {t('buildingEstimatedConstructionCost')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'buildingEstimatedConstructionCost',\r\n },\r\n { label: t('buildingRetrofitFundingNeeds'), property: 'buildingRetrofitFundingNeeds' },\r\n {\r\n label: <>\r\n {t('buildingFederalContribution')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'buildingFederalContribution',\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('energyData'),\r\n subsections: [\r\n {\r\n title: t('energySourcesAndMetrics'),\r\n specialLayout: 'energySourcesGrid',\r\n columns: [\r\n { header: t('sourceHeader'), propertyPrefix: 'EnergySources' },\r\n { header: t('metricHeader'), propertyPrefix: 'Metric' },\r\n { header: t('installationYearHeader'), propertyPrefix: 'InstallationYear' },\r\n ],\r\n rows: [\r\n { label: t('heatingSource'), baseProperty: 'buildingHeating' },\r\n { label: t('coolingSource'), baseProperty: 'buildingCooling' },\r\n { label: t('hotWaterSource'), baseProperty: 'buildingHotWaterSystems' },\r\n ],\r\n fields: [\r\n { label: t('heatingSource'), property: 'buildingHeatingEnergySources' },\r\n { label: t('heatingMetric'), property: 'buildingHeatingMetric' },\r\n { label: t('heatingInstallationYear'), property: 'buildingHeatingInstallationYear' },\r\n { label: t('coolingSource'), property: 'buildingCoolingEnergySources' },\r\n { label: t('coolingMetric'), property: 'buildingCoolingMetric' },\r\n { label: t('coolingInstallationYear'), property: 'buildingCoolingInstallationYear' },\r\n { label: t('hotWaterSource'), property: 'buildingHotWaterSystemsEnergySources' },\r\n { label: t('hotWaterMetric'), property: 'buildingHotWaterSystemsMetric' },\r\n { label: t('hotWaterInstallationYear'), property: 'buildingHotWaterSystemsInstallationYear' },\r\n ],\r\n },\r\n {\r\n title: t('energyMetrics'),\r\n fields: [\r\n {\r\n label: (\r\n <>\r\n {t('buildingAnnualConsumption')}\r\n <span className=\"italic !text-xs !font-light\"> kWh</span>\r\n </>\r\n ),\r\n property: 'buildingAnnualConsumption',\r\n },\r\n {\r\n label: (\r\n <>\r\n {t('buildingSiteEui')}\r\n <span className=\"italic !text-xs !font-light\"> kBtu/ft²/year</span>\r\n </>\r\n ),\r\n property: 'buildingSiteEui',\r\n },\r\n {\r\n label: (\r\n <>\r\n {t('buildingSourceEui')}\r\n <span className=\"italic !text-xs !font-light\"> kBtu/ft²/year</span>\r\n </>\r\n ),\r\n property: 'buildingSourceEui',\r\n },\r\n {\r\n label: (\r\n <>\r\n {t('buildingSolarPotential')}\r\n <span className=\"italic !text-xs !font-light\"> kWh/kWp</span>\r\n </>\r\n ),\r\n property: 'buildingSolarPotential',\r\n },\r\n { label: t('buildingHvacEfficiency'), property: 'buildingHvacEfficiency' },\r\n { label: t('buildingRegionalEnergyTrends'), property: 'buildingRegionalEnergyTrends' },\r\n ],\r\n },\r\n {\r\n title: t('electricalPanel'),\r\n fields: [\r\n { label: t('serviceSize'), property: 'buildingElectricityServiceSize' },\r\n { label: t('serviceLocation'), property: 'buildingElectricityServiceLocation' },\r\n { label: t('panelSize'), property: 'buildingElectricityServicePanelSize' },\r\n { label: t('utilityConnection'), property: 'buildingElectricityServiceUtilityConnection' },\r\n { label: t('upgradeHistory'), property: 'buildingElectricityServiceUpgradeHistory' },\r\n ],\r\n },\r\n {\r\n title: t('reports'),\r\n fields: [\r\n { label: t('buildingEnergyCodeCompliance'), property: 'buildingEnergyCodeCompliance' },\r\n { label: t('assessmentReports'), property: 'buildingEnergyAssessmentReports' },\r\n ],\r\n },\r\n {\r\n fields: [\r\n { label: t('buildingEnergyAdditionalInformation'), property: 'buildingEnergyAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('environmentalData'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n {\r\n label: <>\r\n {t('buildingTotalGhgEmissions')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">CO2e</span>\r\n </>,\r\n property: 'buildingTotalGhgEmissions',\r\n },\r\n { label: t('buildingIntensityGhgEmissions'), property: 'buildingIntensityGhgEmissions' },\r\n { label: t('buildingCertifications'), property: 'buildingCertifications' },\r\n { label: t('buildingCertificationsFile'), property: 'buildingCertificationsFile' },\r\n {\r\n label: <>\r\n {t('buildingWaterUseIntensity')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">gal/ft²/yr</span>\r\n </>,\r\n property: 'buildingWaterUseIntensity',\r\n },\r\n { label: t('buildingEnvironmentalCompliance'), property: 'buildingEnvironmentalCompliance' },\r\n { label: t('buildingAirQuality'), property: 'buildingAirQuality' },\r\n { label: t('buildingAirQualityAssessmentDate'), property: 'buildingAirQualityAssessmentDate' },\r\n { label: t('airQualityReports'), property: 'buildingAirQualityReports' },\r\n { label: t('waterQualityReports'), property: 'buildingWaterQualityReports' },\r\n { label: t('buildingEnvironmentalAdditionalInformation'), property: 'buildingEnvironmentalAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('maintenanceData'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('buildingAssessmentRatingCondition'), property: 'buildingAssessmentRatingCondition' },\r\n { label: t('conditionRatingsDate'), property: 'conditionRatingsDate' },\r\n { label: t('buildingAssessmentDescription'), property: 'buildingAssessmentDescription' },\r\n { label: t('buildingMaintenanceRecords'), property: 'buildingMaintenanceRecords' },\r\n { label: t('buildingSystemAssessment'), property: 'buildingSystemAssessment' },\r\n { label: t('BCA'), property: 'buildingBCAs' },\r\n { label: t('contractReports'), property: 'buildingContractorReports' },\r\n { label: t('engineerAssessments'), property: 'buildingEngineeringAssessments' },\r\n { label: t('buildingMaintenanceAdditionalInformation'), property: 'buildingMaintenanceAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('financialData'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n {\r\n label: <>\r\n {t('buildingAssessedValue')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'buildingAssessedValue',\r\n },\r\n {\r\n label: <>\r\n {t('buildingLifecycleExpenses')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'buildingLifecycleExpenses',\r\n },\r\n {\r\n label: <>\r\n {t('buildingOperatingExpenses')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'buildingOperatingExpenses',\r\n },\r\n ],\r\n },\r\n {\r\n title: t('funding'),\r\n fields: [\r\n { label: t('buildingFundingSources'), property: 'buildingFundingSources' },\r\n { label: t('buildingGrants'), property: 'buildingGrants' },\r\n { label: t('buildingSubsidies'), property: 'buildingSubsidies' },\r\n { label: t('buildingProponentOrganization'), property: 'buildingProponentOrganization' },\r\n { label: t('buildingProgramLoan'), property: 'buildingProgramLoan' },\r\n { label: t('buildingProponentType'), property: 'buildingProponentType' },\r\n { label: t('buildingProgramName'), property: 'buildingProgramName' },\r\n {\r\n label: <>\r\n {t('buildingTotalContribution')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'buildingTotalContribution',\r\n },\r\n {\r\n label: <>\r\n {t('buildingValueOfFundingFlowed')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'buildingValueOfFundingFlowed',\r\n },\r\n { label: t('buildingFundingAdditionalInformation'), property: 'buildingFundingAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('riskConsiderations'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('buildingStructuralVulnerabilities'), property: 'buildingStructuralVulnerabilities' },\r\n { label: t('buildingClimateVulnerabilities'), property: 'buildingClimateVulnerabilities' },\r\n { label: t('buildingSafetyConcerns'), property: 'buildingSafetyConcerns' },\r\n { label: t('buildingFireSafety'), property: 'buildingFireSafety' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('regulatoryCompliance'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('buildingOccupancyCertificate'), property: 'buildingOccupancyCertificate' },\r\n { label: t('buildingFireSafety'), property: 'buildingFireSafety' },\r\n { label: t('buildingEnvironmentalCompliance'), property: 'buildingEnvironmentalCompliance' },\r\n { label: t('buildingZoningCompliance'), property: 'buildingZoningCompliance' },\r\n { label: t('buildingPermitsIssued'), property: 'buildingPermitsIssued' },\r\n ],\r\n },\r\n ],\r\n },\r\n ]\r\n}\r\n\r\nexport const useSiteHeaders = () => {\r\n // Translations\r\n const t = useTranslations('headers')\r\n\r\n return [\r\n {\r\n title: t('siteInformation'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('siteName'), property: 'siteName' },\r\n { label: t('siteAddress'), property: 'siteAddress' },\r\n { label: t('siteCountrySubdivision'), property: 'siteCountrySubdivision' },\r\n { label: t('siteMunicipality'), property: 'siteMunicipality' },\r\n { label: t('siteCity'), property: 'siteCity' },\r\n { label: t('sitePostalCode'), property: 'sitePostalCode' },\r\n { label: t('siteCounty'), property: 'siteCounty' },\r\n { label: t('siteWard'), property: 'siteWard' },\r\n { label: t('siteLandUse'), property: 'siteLandUse' },\r\n { label: t('siteLandUseSubtype'), property: 'siteLandUseSubtype' },\r\n\r\n {label: <>\r\n {t('siteTotalArea')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">m²</span>\r\n </>,\r\n property: 'siteTotalArea'\r\n },\r\n {label: <>\r\n {t('siteTotalBuiltArea')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">m²</span>\r\n </>,\r\n property: 'siteTotalBuiltArea'\r\n },\r\n {label: <>\r\n {t('siteTotalAvailableArea')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">m²</span>\r\n </>,\r\n property: 'siteTotalAvailableArea'\r\n },\r\n\r\n { label: t('siteYearBuilt'), property: 'siteYearBuilt' },\r\n { label: t('siteZoning'), property: 'siteZoning' },\r\n { label: t('siteZoningCompliance'), property: 'siteZoningCompliance' },\r\n ],\r\n },\r\n {\r\n title: t('contactInformation'),\r\n fields: [\r\n { label: t('siteOwnership'), property: 'siteOwnership' },\r\n { label: t('siteProviderName'), property: 'siteProviderName' },\r\n { label: t('siteProviderType'), property: 'siteProviderType' },\r\n { label: t('siteProviderWebsite'), property: 'siteProviderWebsite' },\r\n { label: t('siteProviderContactName'), property: 'siteProviderContactName' },\r\n { label: t('siteProviderContactPhone'), property: 'siteProviderContactPhone' },\r\n { label: t('siteProviderContactEmail'), property: 'siteProviderContactEmail' },\r\n { label: t('siteWebsite'), property: 'siteWebsite' },\r\n ],\r\n },\r\n {\r\n title: t('additionalInformation'),\r\n fields: [\r\n { label: t('siteNotes'), property: 'siteNotes' },\r\n ],\r\n },\r\n {\r\n title: t('coordinates'),\r\n fields: [\r\n { label: t('siteLatitude'), property: 'siteLatitude' },\r\n { label: t('siteLongitude'), property: 'siteLongitude' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('associatedBuildings'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('associatedBuildings'), property: 'associatedBuildings' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('siteProjects'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('siteProjectName'), property: 'siteProjectName' },\r\n { label: t('siteProjectNumber'), property: 'siteProjectNumber' },\r\n { label: t('siteProjectPhase'), property: 'siteProjectPhase' },\r\n { label: t('siteProjectType'), property: 'siteProjectType' },\r\n { label: t('siteEstimatedStartDate'), property: 'siteEstimatedStartDate' },\r\n { label: t('siteEstimatedEndDate'), property: 'siteEstimatedEndDate' },\r\n { label: t('siteStartDate'), property: 'siteStartDate' },\r\n { label: t('siteCompletedDate'), property: 'siteCompletedDate' },\r\n { label: t('sitePriorityRetrofits'), property: 'sitePriorityRetrofits' },\r\n { label: t('siteProjectDescription'), property: 'siteProjectDescription' },\r\n { label: t('sitePreviousUpdates'), property: 'sitePreviousUpdates' },\r\n ],\r\n },\r\n {\r\n title: t('permits'),\r\n fields: [\r\n { label: t('siteBuilderName'), property: 'siteBuilderName' },\r\n { label: t('siteBuildingPermitsIssued'), property: 'siteBuildingPermitsIssued' },\r\n { label: t('sitePermitNumber'), property: 'sitePermitNumber' },\r\n { label: t('sitePermitIssuedDate'), property: 'sitePermitIssuedDate' },\r\n ],\r\n },\r\n {\r\n title: t('funding'),\r\n fields: [\r\n {\r\n label:\r\n <>\r\n {t('siteEstimatedTotalCost')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteEstimatedTotalCost',\r\n },\r\n {\r\n label:\r\n <>\r\n {t('siteEstimatedConstructionCost')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteEstimatedConstructionCost',\r\n },\r\n { label: t('siteRetrofitFundingNeeds'), property: 'siteRetrofitFundingNeeds' },\r\n {\r\n label:\r\n <>\r\n {t('siteFederalContribution')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteFederalContribution',\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('energyData'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('siteEnergyUsage'), property: 'siteEnergyUsage' },\r\n {\r\n label:\r\n <>\r\n {t('siteAnnualConsumption')}\r\n <span className=\"italic !text-xs !font-light\"> kWh</span>\r\n </>,\r\n property: 'siteAnnualConsumption'\r\n },\r\n {\r\n label:\r\n <>\r\n {t('siteEnergyDemand')}\r\n <span className=\"italic !text-xs !font-light\"> kW</span>\r\n </>,\r\n property: 'siteEnergyDemand'\r\n },\r\n {\r\n label:\r\n <>\r\n {t('siteEui')}\r\n <span className=\"italic !text-xs !font-light\"> kBtu/ft²/year</span>\r\n </>,\r\n property: 'siteEui'\r\n },\r\n\r\n {\r\n label:\r\n <>\r\n {t('siteSourceEui')}\r\n <span className=\"italic !text-xs !font-light\"> kBtu/ft²/year</span>\r\n </>,\r\n property: 'siteSourceEui'\r\n },\r\n { label: t('siteEnergyCodeCompliance'), property: 'siteEnergyCodeCompliance' },\r\n {\r\n label:\r\n <>\r\n {t('siteSolarPotential')}\r\n <span className=\"italic !text-xs !font-light\"> kWh/kWp</span>\r\n </>,\r\n property: 'siteSolarPotential'\r\n },\r\n { label: t('siteRenewableEnergy'), property: 'siteRenewableEnergy' },\r\n { label: t('siteEnergyAdditionalInformation'), property: 'siteEnergyAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('environmentalData'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('siteTotalGhgEmissions'), property: 'siteTotalGhgEmissions' },\r\n { label: t('siteIntensityGhgEmissions'), property: 'siteIntensityGhgEmissions' },\r\n { label: t('siteCertifications'), property: 'siteCertifications' },\r\n { label: t('siteCertificationCertificates'), property: 'siteCertificationCertificates' },\r\n\r\n {\r\n label:\r\n <>\r\n {t('siteWaterUseIntensity')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">(WUI) gal/ft²/yr</span>\r\n </>,\r\n property: 'siteWaterUseIntensity'\r\n },\r\n { label: t('siteEnvironmentalCompliance'), property: 'siteEnvironmentalCompliance' },\r\n { label: t('siteEnvironmentalAdditionalInformation'), property: 'siteEnvironmentalAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('maintenanceData'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('siteAssessmentCondition'), property: 'siteAssessmentCondition' },\r\n { label: t('siteAssessmentDate'), property: 'siteAssessmentDate' },\r\n { label: t('siteAssessmentDescription'), property: 'siteAssessmentDescription' },\r\n { label: t('siteMaintenanceRecords'), property: 'siteMaintenanceRecords' },\r\n { label: t('siteMaintenanceAdditionalInformation'), property: 'siteMaintenanceAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('financialData'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n {\r\n label: <>\r\n {t('siteAssessedValue')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteAssessedValue',\r\n },\r\n {\r\n label: <>\r\n {t('siteLifecycleExpenses')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteLifecycleExpenses',\r\n },\r\n {\r\n label: <>\r\n {t('siteOperatingExpenses')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteOperatingExpenses',\r\n },\r\n ],\r\n },\r\n {\r\n title: t('funding'),\r\n fields: [\r\n { label: t('siteFundingSources'), property: 'siteFundingSources' },\r\n { label: t('siteGrants'), property: 'siteGrants' },\r\n { label: t('siteSubsidies'), property: 'siteSubsidies' },\r\n { label: t('siteProponentOrganization'), property: 'siteProponentOrganization' },\r\n { label: t('siteProgramLoan'), property: 'siteProgramLoan' },\r\n { label: t('siteProponentType'), property: 'siteProponentType' },\r\n { label: t('siteProgramName'), property: 'siteProgramName' },\r\n {\r\n label: <>\r\n {t('siteTotalContribution')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteTotalContribution',\r\n },\r\n {\r\n label: <>\r\n {t('siteValueOfFundingFlowed')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteValueOfFundingFlowed',\r\n },\r\n { label: t('siteFundingAdditionalInformation'), property: 'siteFundingAdditionalInformation' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('riskConsiderations'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('siteClimateVulnerabilities'), property: 'siteClimateVulnerabilities' },\r\n { label: t('siteSafetyConcerns'), property: 'siteSafetyConcerns' },\r\n { label: t('siteFireSafety'), property: 'siteFireSafety' },\r\n ],\r\n },\r\n {\r\n title: t('insurance'),\r\n fields: [\r\n { label: t('siteInsuranceProvider'), property: 'siteInsuranceProvider' },\r\n {\r\n label: <>\r\n {t('siteInsuranceCosts')}\r\n {\" \"}\r\n <span className=\"italic !text-xs !font-light\">$CAD</span>\r\n </>,\r\n property: 'siteInsuranceCosts',\r\n },\r\n { label: t('siteInsuranceClaims'), property: 'siteInsuranceClaims' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('regulatoryCompliance'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('siteFireCert'), property: 'siteFireCert' },\r\n { label: t('siteEnvironmentalCompliance'), property: 'siteEnvironmentalCompliance' },\r\n { label: t('siteZoningCompliance'), property: 'siteZoningCompliance' },\r\n { label: t('siteBuildingPermit'), property: 'siteBuildingPermit' },\r\n ],\r\n },\r\n ],\r\n },\r\n ]\r\n}\r\n\r\nexport const useInfrastructureHeaders = () => {\r\n // Translations\r\n const t = useTranslations('headers');\r\n\r\n return [\r\n {\r\n title: t('infrastructureInformation'),\r\n subsections: [\r\n {\r\n title: t('general'),\r\n fields: [\r\n { label: t('infrastructureName'), property: 'infrastructureName' },\r\n { label: t('infrastructureType'), property: 'infrastructureType' },\r\n { label: t('infrastructureStatus'), property: 'infrastructureStatus' },\r\n { label: t('infrastructureState'), property: 'infrastructureState' },\r\n { label: t('infrastructureAddress'), property: 'infrastructureAddress' },\r\n { label: t('infrastructureCity'), property: 'infrastructureCity' },\r\n { label: t('infrastructureCountrySubdivision'), property: 'infrastructureCountrySubdivision' },\r\n { label: t('infrastructureMunicipality'), property: 'infrastructureMunicipality' },\r\n { label: t('infrastructureCounty'), property: 'infrastructureCounty' },\r\n { label: t('infrastructurePostalCode'), property: 'infrastructurePostalCode' },\r\n { label: t('infrastructureEmail'), property: 'infrastructureEmail' },\r\n { label: t('infrastructurePhoneNumber'), property: 'infrastructurePhoneNumber' },\r\n { label: t('infrastructureWebsite'), property: 'infrastructureWebsite' },\r\n { label: t('infrastructureDescription'), property: 'infrastructureDescription' },\r\n { label: t('infrastructureNotes'), property: 'infrastructureNotes' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('landInfra'),\r\n subsections: [\r\n {\r\n title: t('linearReferencing'),\r\n fields: [\r\n { label: t('linearLRMType'), property: 'linearLRMType' },\r\n { label: t('linearAlignmentType'), property: 'linearAlignmentType' },\r\n {\r\n label: <>\r\n {t('linearMeasure')} <span className=\"italic !text-xs !font-light\">(m/km)</span>\r\n </>,\r\n property: 'linearMeasure'\r\n },\r\n { label: t('linearStartValue'), property: 'linearStartValue' },\r\n { label: t('infrastructureMaterial'), property: 'infrastructureMaterial' },\r\n { label: t('infrastructureSurfaceType'), property: 'infrastructureSurfaceType' },\r\n { label: t('infrastructureSurfaceName'), property: 'infrastructureSurfaceName' },\r\n { label: t('infrastructureLongitude'), property: 'infrastructureLongitude' },\r\n { label: t('infrastructureLatitude'), property: 'infrastructureLatitude' },\r\n { label: t('infrastructureElevation'), property: 'infrastructureElevation' },\r\n { label: t('infrastructureSurveyDate'), property: 'infrastructureSurveyDate' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('ifcInformation'),\r\n subsections: [\r\n {\r\n title: t('ifcData'),\r\n fields: [\r\n { label: t('ifcGlobalId'), property: 'ifcGlobalId' },\r\n { label: t('ifcDomain'), property: 'ifcDomain' },\r\n { label: t('ifcRoadType'), property: 'ifcRoadType' },\r\n { label: t('ifcLaneCount'), property: 'ifcLaneCount' },\r\n { label: t('ifcDesignSpeed'), property: 'ifcDesignSpeed' },\r\n { label: t('ifcRailType'), property: 'ifcRailType' },\r\n { label: t('ifcTrackGauge'), property: 'ifcTrackGauge' },\r\n { label: t('ifcBridgePartType'), property: 'ifcBridgePartType' },\r\n { label: t('ifcBridgeClearance'), property: 'ifcBridgeClearance' },\r\n { label: t('ifcLoadRating'), property: 'ifcLoadRating' },\r\n { label: t('ifcUtilityType'), property: 'ifcUtilityType' },\r\n { label: t('ifcVoltage'), property: 'ifcVoltage' },\r\n { label: t('ifcFacilityPartType'), property: 'ifcFacilityPartType' },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n title: t('cityGmlInformation'),\r\n subsections: [\r\n {\r\n title: t('cityGmlData'),\r\n fields: [\r\n { label: t('cityGmlName'), property: 'cityGmlName' },\r\n { label: t('cityGmlLod'), property: 'cityGmlLod' },\r\n { label: t('cityGmlFunction'), property: 'cityGmlFunction' },\r\n { label: t('cityGmlUsage'), property: 'cityGmlUsage' },\r\n { label: t('cityGmlCondition'), property: 'cityGmlCondition' },\r\n { label: t('cityGmlMeasuredHeight'), property: 'cityGmlMeasuredHeight' },\r\n { label: t('cityGmlConstructionDate'), property: 'cityGmlConstructionDate' },\r\n { label: t('cityGmlDemolitionDate'), property: 'cityGmlDemolitionDate' },\r\n { label: t('cityGmlVegetationType'), property: 'cityGmlVegetationType' },\r\n { label: t('cityGmlFurnitureType'), property: 'cityGmlFurnitureType' },\r\n { label: t('cityGmlSurfaceMaterial'), property: 'cityGmlSurfaceMaterial' },\r\n { label: t('cityGmlIsTrafficSpace'), property: 'cityGmlIsTrafficSpace' },\r\n ],\r\n },\r\n ],\r\n },\r\n ];\r\n};\r\n"],"mappings":"AA6GqB,mBAGL,KAHK;AA1GrB,SAAS,uBAAuB;AA4EzB,MAAM,qBAAqB,MAAM;AAEtC,QAAM,IAAI,gBAAgB,SAAS;AAEnC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src/core/components/viewers/Data/utils/Headers.tsx"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { useTranslations } from 'next-intl'\nimport React from 'react'\n\nimport type { Building, Site } from '../../../../types/dbTypes'\n\ntype BuildingWithRelations = Building & {\n buildingOccupancyCertificate: File[]\n occupancyData: File[]\n buildingZoningCompliance: File[]\n buildingUnitsMarketRentNum: File[]\n buildingUnitsMarketRentSqft: File[]\n buildingPermitsIssued: File[]\n buildingRegionalEnergyTrends: File[]\n buildingEnergyCodeCompliance: File[]\n buildingCertificationsFile: File[]\n buildingWaterUseIntensity: File[]\n buildingEnvironmentalCompliance: File[]\n buildingAssessmentRatingCondition: File[]\n buildingMaintenanceRecords: File[]\n conditionRatingsDate: File[]\n buildingSystemAssessment: File[]\n buildingFireSafety: File[]\n buildingSiteFireCertificate: File[]\n buildingEnergyAssessmentReports: File[]\n buildingAirQualityReports: File[]\n buildingWaterQualityReports: File[]\n DSRs: File[]\n buildingBCAs: File[]\n buildingContractorReports: File[]\n buildingEngineeringAssessments: File[]\n}\n\ntype SiteWithRelations = Site & {\n siteEnergyCodeCompliance: File[]\n siteCertificationCertificates: File[]\n siteEnvironmentalCompliance: File[]\n siteMaintenanceRecords: File[]\n siteFireSafety: File[]\n siteFireCert: File[]\n siteZoningCompliance: File[]\n siteBuildingPermit: File[]\n siteInsuranceClaims: File[]\n siteBuildingPermitsIssued: File[]\n siteBuildings: Building[]\n}\n\ntype BuildingFieldDefinition = {\n label: React.ReactNode // UI Header\n property: keyof BuildingWithRelations\n}\ntype SiteFieldDefinition = {\n label: React.ReactNode // UI Header\n property: keyof SiteWithRelations\n}\n\ntype BuildingSubSection = {\n title: string // Subheader\n fields: BuildingFieldDefinition[]\n specialLayout?: string\n columns?: { header: string | React.ReactNode, propertyPrefix: string }[]\n rows?: { label: string, baseProperty: string }[]\n}\ntype SiteSubSection = {\n title: string // Subheader\n fields: SiteFieldDefinition[]\n}\n\ntype BuildingTabSection = {\n title: string // Tab\n subsections: BuildingSubSection[]\n}\ntype SiteTabSection = {\n title: string // Tab\n subsections: SiteSubSection[]\n}\n\nexport const useBuildingHeaders = () => {\n // Translations\n const t = useTranslations('headers')\n\n return [\n {\n title: t('buildingInformation'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('buildingName'), property: 'buildingName' },\n { label: t('buildingAddress'), property: 'buildingAddress' },\n { label: t('buildingCountrySubdivision'), property: 'buildingCountrySubdivision' },\n { label: t('buildingMunicipality'), property: 'buildingMunicipality' },\n { label: t('buildingCity'), property: 'buildingCity' },\n { label: t('buildingPostalCode'), property: 'buildingPostalCode' },\n { label: t('buildingCounty'), property: 'buildingCounty' },\n { label: t('buildingWardName'), property: 'buildingWardName' },\n { label: t('buildingWardNumber'), property: 'buildingWardNumber' },\n { label: t('buildingParentSiteId'), property: 'buildingParentSiteId' },\n ],\n },\n {\n title: t('features'),\n fields: [\n { label: t('buildingType'), property: 'buildingType' },\n { label: t('buildingGeometryStyle'), property: 'buildingGeometryStyle' },\n { label: t('buildingStoreyNum'), property: 'buildingStoreyNum' },\n {\n label: <>\n {t('buildingTotalSqft')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">m²</span>\n </>,\n property: 'buildingTotalSqft',\n },\n { label: t('buildingMaterials'), property: 'buildingMaterials' },\n { label: t('buildingYearBuilt'), property: 'buildingYearBuilt' },\n { label: t('buildingZoning'), property: 'buildingZoning' },\n { label: t('buildingZoningCompliance'), property: 'buildingZoningCompliance' },\n { label: t('buildingParkingAvailable'), property: 'buildingParkingAvailable' },\n { label: t('buildingElevatorAvailable'), property: 'buildingElevatorAvailable' },\n { label: t('buildingDryerAvailable'), property: 'buildingDryerAvailable' },\n { label: t('buildingWasherAvailable'), property: 'buildingWasherAvailable' },\n { label: t('buildingCommonSpace'), property: 'buildingCommonSpace' },\n { label: t('buildingNotes'), property: 'buildingNotes' },\n ],\n },\n {\n title: t('contactInformation'),\n fields: [\n { label: t('buildingOwnership'), property: 'buildingOwnership' },\n { label: t('buildingProviderName'), property: 'buildingProviderName' },\n { label: t('buildingProviderType'), property: 'buildingProviderType' },\n { label: t('buildingProviderWebsite'), property: 'buildingProviderWebsite' },\n { label: t('buildingProviderContactName'), property: 'buildingProviderContactName' },\n { label: t('buildingProviderContactPhone'), property: 'buildingProviderContactPhone' },\n { label: t('buildingProviderContactEmail'), property: 'buildingProviderContactEmail' },\n { label: t('buildingWebsite'), property: 'buildingWebsite' },\n ],\n },\n {\n title: t('managementInfo'),\n fields: [\n { label: t('managementName'), property: 'buildingManagementName' },\n { label: t('managementType'), property: 'buildingManagementType' },\n { label: t('managementWebsite'), property: 'buildingManagementWebsite' },\n { label: t('managementContactName'), property: 'buildingManagementContactName' },\n { label: t('managementPhoneNumber'), property: 'buildingManagementPhoneNumber' }, ],\n },\n {\n title: t('occupants'),\n fields: [\n { label: t('buildingOccupantType'), property: 'buildingOccupantType' },\n { label: t('buildingOccupancyCertificate'), property: 'buildingOccupancyCertificate' },\n { label: t('buildingRentalMarketSurveyZone'), property: 'buildingRentalMarketSurveyZone' },\n { label: t('buildingCensusTract'), property: 'buildingCensusTract' },\n ],\n },\n {\n title: t('coordinates'),\n fields: [\n { label: t('buildingLatitude'), property: 'buildingLatitude' },\n { label: t('buildingLongitude'), property: 'buildingLongitude' },\n { label: t('buildingElevation'), property: 'buildingElevation' },\n { label: t('buildingNorthing'), property: 'buildingNorthing' },\n { label: t('buildingEasting'), property: 'buildingEasting' },\n { label: t('buildingEPSG'), property: 'buildingEPSG' },\n { label: t('buildingOrthogonalHeight'), property: 'buildingOrthogonalHeight' },\n { label: t('buildingOsmId'), property: 'buildingOsmId' },\n { label: t('buildingAdditionalInformation'), property: 'buildingAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('buildingUnits'),\n subsections: [\n {\n title: t('units'),\n fields: [\n { label: t('buildingType'), property: 'buildingType' },\n { label: t('buildingUnitsTotal'), property: 'buildingUnitsTotal' },\n {\n label: <>\n {t('buildingTotalSqft')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">m²</span>\n </>,\n property: 'buildingTotalSqft',\n },\n {\n label: <>\n {t('buildingTotalRentableArea')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">m²</span>\n </>,\n property: 'buildingTotalRentableArea',\n },\n { label: t('buildingHeatingIncluded'), property: 'buildingHeatingIncluded' },\n { label: t('buildingHydroIncluded'), property: 'buildingHydroIncluded' },\n { label: t('buildingWaterIncluded'), property: 'buildingWaterIncluded' },\n { label: t('buildingUtilitiesIncluded'), property: 'buildingUtilitiesIncluded' },\n ],\n },\n {\n title: t('unitsAvailable'),\n specialLayout: 'unitsGrid',\n columns: [\n { header: t('unitType'), propertyPrefix: '' },\n { header: t('totalNumberOfUnits'), propertyPrefix: 'Num' },\n {\n header: <>\n {t('unit')}\n <span className=\"italic !text-xs !font-light\"></span>\n </>,\n propertyPrefix: 'Sqft',\n },\n\n ],\n rows: [\n { label: t('accessibleUnits'), baseProperty: 'buildingUnitsModified' },\n { label: t('subsidizedUnits'), baseProperty: 'buildingUnitsSubsidized' },\n { label: t('marketRentalUnits'), baseProperty: 'buildingUnitsMarketRent' },\n { label: t('belowMarketRent'), baseProperty: 'buildingUnitsBelowMarketRent' },\n { label: t('rentGearedToIncome'), baseProperty: 'buildingUnitsRentGearedToIncome' },\n { label: t('roomUnits'), baseProperty: 'buildingUnitsRoom' },\n { label: t('bachelorUnits'), baseProperty: 'buildingUnitsB' },\n { label: t('oneBedroomUnits'), baseProperty: 'buildingUnits1B' },\n { label: t('twoBedroomUnits'), baseProperty: 'buildingUnits2B' },\n { label: t('threeBedroomUnits'), baseProperty: 'buildingUnits3B' },\n { label: t('fourBedroomUnits'), baseProperty: 'buildingUnits4B' },\n { label: t('fiveBedroomUnits'), baseProperty: 'buildingUnits5B' },\n { label: t('sixBedroomUnits'), baseProperty: 'buildingUnits6B' },\n ],\n fields: [\n { label: t('buildingUnitsModified'), property: 'buildingUnitsModified' },\n { label: t('buildingUnitsModifiedNum'), property: 'buildingUnitsModifiedNum' },\n { label: t('buildingUnitsModifiedSqft'), property: 'buildingUnitsModifiedSqft' },\n { label: t('buildingUnitsMarketRent'), property: 'buildingUnitsMarketRent' },\n { label: t('buildingUnitsMarketRentNum'), property: 'buildingUnitsMarketRentNum' },\n { label: t('buildingUnitsMarketRentSqft'), property: 'buildingUnitsMarketRentSqft' },\n { label: t('buildingUnitsSubsidized'), property: 'buildingUnitsSubsidized' },\n { label: t('buildingUnitsSubsidizedNum'), property: 'buildingUnitsSubsidizedNum' },\n { label: t('buildingUnitsSubsidizedSqft'), property: 'buildingUnitsSubsidizedSqft' },\n { label: t('belowMarketRent'), property: 'buildingUnitsBelowMarketRent' },\n { label: t('belowMarketRentNum'), property: 'buildingUnitsBelowMarketRentNum' },\n { label: t('belowMarketRentsqft'), property: 'buildingUnitsBelowMarketRentSqft' },\n { label: t('rentGearedToIncome'), property: 'buildingUnitsRentGearedToIncome' },\n { label: t('rentGearedToIncomeNum'), property: 'buildingUnitsRentGearedToIncomeNum' },\n { label: t('rentGearedToIncomesqft'), property: 'buildingUnitsRentGearedToIncomeSqft' },\n { label: t('buildingUnitsRoom'), property: 'buildingUnitsRoom' },\n { label: t('buildingUnitsRoomNum'), property: 'buildingUnitsRoomNum' },\n { label: t('buildingUnitsRoomSqft'), property: 'buildingUnitsRoomSqft' },\n { label: t('buildingUnitsB'), property: 'buildingUnitsB' },\n { label: t('buildingUnitsBNum'), property: 'buildingUnitsBNum' },\n { label: t('buildingUnitsBSqft'), property: 'buildingUnitsBSqft' },\n { label: t('buildingUnits1B'), property: 'buildingUnits1B' },\n { label: t('buildingUnits1BNum'), property: 'buildingUnits1BNum' },\n { label: t('buildingUnits1BSqft'), property: 'buildingUnits1BSqft' },\n { label: t('buildingUnits2B'), property: 'buildingUnits2B' },\n { label: t('buildingUnits2BNum'), property: 'buildingUnits2BNum' },\n { label: t('buildingUnits2BSqft'), property: 'buildingUnits2BSqft' },\n { label: t('buildingUnits3B'), property: 'buildingUnits3B' },\n { label: t('buildingUnits3BNum'), property: 'buildingUnits3BNum' },\n { label: t('buildingUnits3BSqft'), property: 'buildingUnits3BSqft' },\n { label: t('buildingUnits4B'), property: 'buildingUnits4B' },\n { label: t('buildingUnits4BNum'), property: 'buildingUnits4BNum' },\n { label: t('buildingUnits4BSqft'), property: 'buildingUnits4BSqft' },\n { label: t('buildingUnits5B'), property: 'buildingUnits5B' },\n { label: t('buildingUnits5BNum'), property: 'buildingUnits5BNum' },\n { label: t('buildingUnits5BSqft'), property: 'buildingUnits5BSqft' },\n { label: t('buildingUnits6B'), property: 'buildingUnits6B' },\n { label: t('buildingUnits6BNum'), property: 'buildingUnits6BNum' },\n { label: t('buildingUnits6BSqft'), property: 'buildingUnits6BSqft' },\n ],\n },\n {\n title: '',\n fields: [\n { label: t('buildingUnitAdditionalInformation'), property: 'buildingUnitAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('buildingProjects'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('buildingProjectName'), property: 'buildingProjectName' },\n { label: t('buildingProjectNumber'), property: 'buildingProjectNumber' },\n { label: t('buildingProjectType'), property: 'buildingProjectType' },\n { label: t('buildingProjectPhase'), property: 'buildingProjectPhase' },\n { label: t('buildingEstimatedStartDate'), property: 'buildingEstimatedStartDate' },\n { label: t('buildingEstimatedEndDate'), property: 'buildingEstimatedEndDate' },\n { label: t('buildingStartDate'), property: 'buildingStartDate' },\n { label: t('buildingCompletedDate'), property: 'buildingCompletedDate' },\n { label: t('buildingPriorityRetrofits'), property: 'buildingPriorityRetrofits' },\n { label: t('buildingProjectDescription'), property: 'buildingProjectDescription' },\n { label: t('previousUpdates'), property: 'previousUpdates' },\n ],\n },\n {\n title: t('permits'),\n fields: [\n { label: t('buildingBuilderName'), property: 'buildingBuilderName' },\n { label: t('buildingPermitsIssued'), property: 'buildingPermitsIssued' },\n { label: t('buildingPermitNumber'), property: 'buildingPermitNumber' },\n { label: t('buildingPermitIssuedDate'), property: 'buildingPermitIssuedDate' },\n ],\n },\n {\n title: t('funding'),\n fields: [\n {\n label: <>\n {t('buildingEstimatedTotalCost')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'buildingEstimatedTotalCost',\n },\n {\n label: <>\n {t('buildingEstimatedConstructionCost')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'buildingEstimatedConstructionCost',\n },\n { label: t('buildingRetrofitFundingNeeds'), property: 'buildingRetrofitFundingNeeds' },\n {\n label: <>\n {t('buildingFederalContribution')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'buildingFederalContribution',\n },\n ],\n },\n ],\n },\n {\n title: t('energyData'),\n subsections: [\n {\n title: t('energySourcesAndMetrics'),\n specialLayout: 'energySourcesGrid',\n columns: [\n { header: t('sourceHeader'), propertyPrefix: 'EnergySources' },\n { header: t('metricHeader'), propertyPrefix: 'Metric' },\n { header: t('installationYearHeader'), propertyPrefix: 'InstallationYear' },\n ],\n rows: [\n { label: t('heatingSource'), baseProperty: 'buildingHeating' },\n { label: t('coolingSource'), baseProperty: 'buildingCooling' },\n { label: t('hotWaterSource'), baseProperty: 'buildingHotWaterSystems' },\n ],\n fields: [\n { label: t('heatingSource'), property: 'buildingHeatingEnergySources' },\n { label: t('heatingMetric'), property: 'buildingHeatingMetric' },\n { label: t('heatingInstallationYear'), property: 'buildingHeatingInstallationYear' },\n { label: t('coolingSource'), property: 'buildingCoolingEnergySources' },\n { label: t('coolingMetric'), property: 'buildingCoolingMetric' },\n { label: t('coolingInstallationYear'), property: 'buildingCoolingInstallationYear' },\n { label: t('hotWaterSource'), property: 'buildingHotWaterSystemsEnergySources' },\n { label: t('hotWaterMetric'), property: 'buildingHotWaterSystemsMetric' },\n { label: t('hotWaterInstallationYear'), property: 'buildingHotWaterSystemsInstallationYear' },\n ],\n },\n {\n title: t('energyMetrics'),\n fields: [\n {\n label: (\n <>\n {t('buildingAnnualConsumption')}\n <span className=\"italic !text-xs !font-light\"> kWh</span>\n </>\n ),\n property: 'buildingAnnualConsumption',\n },\n {\n label: (\n <>\n {t('buildingSiteEui')}\n <span className=\"italic !text-xs !font-light\"> kBtu/ft²/year</span>\n </>\n ),\n property: 'buildingSiteEui',\n },\n {\n label: (\n <>\n {t('buildingSourceEui')}\n <span className=\"italic !text-xs !font-light\"> kBtu/ft²/year</span>\n </>\n ),\n property: 'buildingSourceEui',\n },\n {\n label: (\n <>\n {t('buildingSolarPotential')}\n <span className=\"italic !text-xs !font-light\"> kWh/kWp</span>\n </>\n ),\n property: 'buildingSolarPotential',\n },\n { label: t('buildingHvacEfficiency'), property: 'buildingHvacEfficiency' },\n { label: t('buildingRegionalEnergyTrends'), property: 'buildingRegionalEnergyTrends' },\n ],\n },\n {\n title: t('electricalPanel'),\n fields: [\n { label: t('serviceSize'), property: 'buildingElectricityServiceSize' },\n { label: t('serviceLocation'), property: 'buildingElectricityServiceLocation' },\n { label: t('panelSize'), property: 'buildingElectricityServicePanelSize' },\n { label: t('utilityConnection'), property: 'buildingElectricityServiceUtilityConnection' },\n { label: t('upgradeHistory'), property: 'buildingElectricityServiceUpgradeHistory' },\n ],\n },\n {\n title: t('reports'),\n fields: [\n { label: t('buildingEnergyCodeCompliance'), property: 'buildingEnergyCodeCompliance' },\n { label: t('assessmentReports'), property: 'buildingEnergyAssessmentReports' },\n ],\n },\n {\n fields: [\n { label: t('buildingEnergyAdditionalInformation'), property: 'buildingEnergyAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('environmentalData'),\n subsections: [\n {\n title: t('general'),\n fields: [\n {\n label: <>\n {t('buildingTotalGhgEmissions')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">CO2e</span>\n </>,\n property: 'buildingTotalGhgEmissions',\n },\n { label: t('buildingIntensityGhgEmissions'), property: 'buildingIntensityGhgEmissions' },\n { label: t('buildingCertifications'), property: 'buildingCertifications' },\n { label: t('buildingCertificationsFile'), property: 'buildingCertificationsFile' },\n {\n label: <>\n {t('buildingWaterUseIntensity')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">gal/ft²/yr</span>\n </>,\n property: 'buildingWaterUseIntensity',\n },\n { label: t('buildingEnvironmentalCompliance'), property: 'buildingEnvironmentalCompliance' },\n { label: t('buildingAirQuality'), property: 'buildingAirQuality' },\n { label: t('buildingAirQualityAssessmentDate'), property: 'buildingAirQualityAssessmentDate' },\n { label: t('airQualityReports'), property: 'buildingAirQualityReports' },\n { label: t('waterQualityReports'), property: 'buildingWaterQualityReports' },\n { label: t('buildingEnvironmentalAdditionalInformation'), property: 'buildingEnvironmentalAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('maintenanceData'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('buildingAssessmentRatingCondition'), property: 'buildingAssessmentRatingCondition' },\n { label: t('conditionRatingsDate'), property: 'conditionRatingsDate' },\n { label: t('buildingAssessmentDescription'), property: 'buildingAssessmentDescription' },\n { label: t('buildingMaintenanceRecords'), property: 'buildingMaintenanceRecords' },\n { label: t('buildingSystemAssessment'), property: 'buildingSystemAssessment' },\n { label: t('BCA'), property: 'buildingBCAs' },\n { label: t('contractReports'), property: 'buildingContractorReports' },\n { label: t('engineerAssessments'), property: 'buildingEngineeringAssessments' },\n { label: t('buildingMaintenanceAdditionalInformation'), property: 'buildingMaintenanceAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('financialData'),\n subsections: [\n {\n title: t('general'),\n fields: [\n {\n label: <>\n {t('buildingAssessedValue')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'buildingAssessedValue',\n },\n {\n label: <>\n {t('buildingLifecycleExpenses')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'buildingLifecycleExpenses',\n },\n {\n label: <>\n {t('buildingOperatingExpenses')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'buildingOperatingExpenses',\n },\n ],\n },\n {\n title: t('funding'),\n fields: [\n { label: t('buildingFundingSources'), property: 'buildingFundingSources' },\n { label: t('buildingGrants'), property: 'buildingGrants' },\n { label: t('buildingSubsidies'), property: 'buildingSubsidies' },\n { label: t('buildingProponentOrganization'), property: 'buildingProponentOrganization' },\n { label: t('buildingProgramLoan'), property: 'buildingProgramLoan' },\n { label: t('buildingProponentType'), property: 'buildingProponentType' },\n { label: t('buildingProgramName'), property: 'buildingProgramName' },\n {\n label: <>\n {t('buildingTotalContribution')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'buildingTotalContribution',\n },\n {\n label: <>\n {t('buildingValueOfFundingFlowed')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'buildingValueOfFundingFlowed',\n },\n { label: t('buildingFundingAdditionalInformation'), property: 'buildingFundingAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('riskConsiderations'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('buildingStructuralVulnerabilities'), property: 'buildingStructuralVulnerabilities' },\n { label: t('buildingClimateVulnerabilities'), property: 'buildingClimateVulnerabilities' },\n { label: t('buildingSafetyConcerns'), property: 'buildingSafetyConcerns' },\n { label: t('buildingFireSafety'), property: 'buildingFireSafety' },\n ],\n },\n ],\n },\n {\n title: t('regulatoryCompliance'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('buildingOccupancyCertificate'), property: 'buildingOccupancyCertificate' },\n { label: t('buildingFireSafety'), property: 'buildingFireSafety' },\n { label: t('buildingEnvironmentalCompliance'), property: 'buildingEnvironmentalCompliance' },\n { label: t('buildingZoningCompliance'), property: 'buildingZoningCompliance' },\n { label: t('buildingPermitsIssued'), property: 'buildingPermitsIssued' },\n ],\n },\n ],\n },\n ]\n}\n\nexport const useSiteHeaders = () => {\n // Translations\n const t = useTranslations('headers')\n\n return [\n {\n title: t('siteInformation'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('siteName'), property: 'siteName' },\n { label: t('siteAddress'), property: 'siteAddress' },\n { label: t('siteCountrySubdivision'), property: 'siteCountrySubdivision' },\n { label: t('siteMunicipality'), property: 'siteMunicipality' },\n { label: t('siteCity'), property: 'siteCity' },\n { label: t('sitePostalCode'), property: 'sitePostalCode' },\n { label: t('siteCounty'), property: 'siteCounty' },\n { label: t('siteWard'), property: 'siteWard' },\n { label: t('siteLandUse'), property: 'siteLandUse' },\n { label: t('siteLandUseSubtype'), property: 'siteLandUseSubtype' },\n\n {label: <>\n {t('siteTotalArea')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">m²</span>\n </>,\n property: 'siteTotalArea'\n },\n {label: <>\n {t('siteTotalBuiltArea')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">m²</span>\n </>,\n property: 'siteTotalBuiltArea'\n },\n {label: <>\n {t('siteTotalAvailableArea')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">m²</span>\n </>,\n property: 'siteTotalAvailableArea'\n },\n\n { label: t('siteYearBuilt'), property: 'siteYearBuilt' },\n { label: t('siteZoning'), property: 'siteZoning' },\n { label: t('siteZoningCompliance'), property: 'siteZoningCompliance' },\n ],\n },\n {\n title: t('contactInformation'),\n fields: [\n { label: t('siteOwnership'), property: 'siteOwnership' },\n { label: t('siteProviderName'), property: 'siteProviderName' },\n { label: t('siteProviderType'), property: 'siteProviderType' },\n { label: t('siteProviderWebsite'), property: 'siteProviderWebsite' },\n { label: t('siteProviderContactName'), property: 'siteProviderContactName' },\n { label: t('siteProviderContactPhone'), property: 'siteProviderContactPhone' },\n { label: t('siteProviderContactEmail'), property: 'siteProviderContactEmail' },\n { label: t('siteWebsite'), property: 'siteWebsite' },\n ],\n },\n {\n title: t('additionalInformation'),\n fields: [\n { label: t('siteNotes'), property: 'siteNotes' },\n ],\n },\n {\n title: t('coordinates'),\n fields: [\n { label: t('siteLatitude'), property: 'siteLatitude' },\n { label: t('siteLongitude'), property: 'siteLongitude' },\n ],\n },\n ],\n },\n {\n title: t('associatedBuildings'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('associatedBuildings'), property: 'associatedBuildings' },\n ],\n },\n ],\n },\n {\n title: t('siteProjects'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('siteProjectName'), property: 'siteProjectName' },\n { label: t('siteProjectNumber'), property: 'siteProjectNumber' },\n { label: t('siteProjectPhase'), property: 'siteProjectPhase' },\n { label: t('siteProjectType'), property: 'siteProjectType' },\n { label: t('siteEstimatedStartDate'), property: 'siteEstimatedStartDate' },\n { label: t('siteEstimatedEndDate'), property: 'siteEstimatedEndDate' },\n { label: t('siteStartDate'), property: 'siteStartDate' },\n { label: t('siteCompletedDate'), property: 'siteCompletedDate' },\n { label: t('sitePriorityRetrofits'), property: 'sitePriorityRetrofits' },\n { label: t('siteProjectDescription'), property: 'siteProjectDescription' },\n { label: t('sitePreviousUpdates'), property: 'sitePreviousUpdates' },\n ],\n },\n {\n title: t('permits'),\n fields: [\n { label: t('siteBuilderName'), property: 'siteBuilderName' },\n { label: t('siteBuildingPermitsIssued'), property: 'siteBuildingPermitsIssued' },\n { label: t('sitePermitNumber'), property: 'sitePermitNumber' },\n { label: t('sitePermitIssuedDate'), property: 'sitePermitIssuedDate' },\n ],\n },\n {\n title: t('funding'),\n fields: [\n {\n label:\n <>\n {t('siteEstimatedTotalCost')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteEstimatedTotalCost',\n },\n {\n label:\n <>\n {t('siteEstimatedConstructionCost')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteEstimatedConstructionCost',\n },\n { label: t('siteRetrofitFundingNeeds'), property: 'siteRetrofitFundingNeeds' },\n {\n label:\n <>\n {t('siteFederalContribution')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteFederalContribution',\n },\n ],\n },\n ],\n },\n {\n title: t('energyData'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('siteEnergyUsage'), property: 'siteEnergyUsage' },\n {\n label:\n <>\n {t('siteAnnualConsumption')}\n <span className=\"italic !text-xs !font-light\"> kWh</span>\n </>,\n property: 'siteAnnualConsumption'\n },\n {\n label:\n <>\n {t('siteEnergyDemand')}\n <span className=\"italic !text-xs !font-light\"> kW</span>\n </>,\n property: 'siteEnergyDemand'\n },\n {\n label:\n <>\n {t('siteEui')}\n <span className=\"italic !text-xs !font-light\"> kBtu/ft²/year</span>\n </>,\n property: 'siteEui'\n },\n\n {\n label:\n <>\n {t('siteSourceEui')}\n <span className=\"italic !text-xs !font-light\"> kBtu/ft²/year</span>\n </>,\n property: 'siteSourceEui'\n },\n { label: t('siteEnergyCodeCompliance'), property: 'siteEnergyCodeCompliance' },\n {\n label:\n <>\n {t('siteSolarPotential')}\n <span className=\"italic !text-xs !font-light\"> kWh/kWp</span>\n </>,\n property: 'siteSolarPotential'\n },\n { label: t('siteRenewableEnergy'), property: 'siteRenewableEnergy' },\n { label: t('siteEnergyAdditionalInformation'), property: 'siteEnergyAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('environmentalData'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('siteTotalGhgEmissions'), property: 'siteTotalGhgEmissions' },\n { label: t('siteIntensityGhgEmissions'), property: 'siteIntensityGhgEmissions' },\n { label: t('siteCertifications'), property: 'siteCertifications' },\n { label: t('siteCertificationCertificates'), property: 'siteCertificationCertificates' },\n\n {\n label:\n <>\n {t('siteWaterUseIntensity')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">(WUI) gal/ft²/yr</span>\n </>,\n property: 'siteWaterUseIntensity'\n },\n { label: t('siteEnvironmentalCompliance'), property: 'siteEnvironmentalCompliance' },\n { label: t('siteEnvironmentalAdditionalInformation'), property: 'siteEnvironmentalAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('maintenanceData'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('siteAssessmentCondition'), property: 'siteAssessmentCondition' },\n { label: t('siteAssessmentDate'), property: 'siteAssessmentDate' },\n { label: t('siteAssessmentDescription'), property: 'siteAssessmentDescription' },\n { label: t('siteMaintenanceRecords'), property: 'siteMaintenanceRecords' },\n { label: t('siteMaintenanceAdditionalInformation'), property: 'siteMaintenanceAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('financialData'),\n subsections: [\n {\n title: t('general'),\n fields: [\n {\n label: <>\n {t('siteAssessedValue')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteAssessedValue',\n },\n {\n label: <>\n {t('siteLifecycleExpenses')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteLifecycleExpenses',\n },\n {\n label: <>\n {t('siteOperatingExpenses')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteOperatingExpenses',\n },\n ],\n },\n {\n title: t('funding'),\n fields: [\n { label: t('siteFundingSources'), property: 'siteFundingSources' },\n { label: t('siteGrants'), property: 'siteGrants' },\n { label: t('siteSubsidies'), property: 'siteSubsidies' },\n { label: t('siteProponentOrganization'), property: 'siteProponentOrganization' },\n { label: t('siteProgramLoan'), property: 'siteProgramLoan' },\n { label: t('siteProponentType'), property: 'siteProponentType' },\n { label: t('siteProgramName'), property: 'siteProgramName' },\n {\n label: <>\n {t('siteTotalContribution')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteTotalContribution',\n },\n {\n label: <>\n {t('siteValueOfFundingFlowed')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteValueOfFundingFlowed',\n },\n { label: t('siteFundingAdditionalInformation'), property: 'siteFundingAdditionalInformation' },\n ],\n },\n ],\n },\n {\n title: t('riskConsiderations'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('siteClimateVulnerabilities'), property: 'siteClimateVulnerabilities' },\n { label: t('siteSafetyConcerns'), property: 'siteSafetyConcerns' },\n { label: t('siteFireSafety'), property: 'siteFireSafety' },\n ],\n },\n {\n title: t('insurance'),\n fields: [\n { label: t('siteInsuranceProvider'), property: 'siteInsuranceProvider' },\n {\n label: <>\n {t('siteInsuranceCosts')}\n {\" \"}\n <span className=\"italic !text-xs !font-light\">$CAD</span>\n </>,\n property: 'siteInsuranceCosts',\n },\n { label: t('siteInsuranceClaims'), property: 'siteInsuranceClaims' },\n ],\n },\n ],\n },\n {\n title: t('regulatoryCompliance'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('siteFireCert'), property: 'siteFireCert' },\n { label: t('siteEnvironmentalCompliance'), property: 'siteEnvironmentalCompliance' },\n { label: t('siteZoningCompliance'), property: 'siteZoningCompliance' },\n { label: t('siteBuildingPermit'), property: 'siteBuildingPermit' },\n ],\n },\n ],\n },\n ]\n}\n\nexport const useInfrastructureHeaders = () => {\n // Translations\n const t = useTranslations('headers');\n\n return [\n {\n title: t('infrastructureInformation'),\n subsections: [\n {\n title: t('general'),\n fields: [\n { label: t('infrastructureName'), property: 'infrastructureName' },\n { label: t('infrastructureType'), property: 'infrastructureType' },\n { label: t('infrastructureStatus'), property: 'infrastructureStatus' },\n { label: t('infrastructureState'), property: 'infrastructureState' },\n { label: t('infrastructureAddress'), property: 'infrastructureAddress' },\n { label: t('infrastructureCity'), property: 'infrastructureCity' },\n { label: t('infrastructureCountrySubdivision'), property: 'infrastructureCountrySubdivision' },\n { label: t('infrastructureMunicipality'), property: 'infrastructureMunicipality' },\n { label: t('infrastructureCounty'), property: 'infrastructureCounty' },\n { label: t('infrastructurePostalCode'), property: 'infrastructurePostalCode' },\n { label: t('infrastructureEmail'), property: 'infrastructureEmail' },\n { label: t('infrastructurePhoneNumber'), property: 'infrastructurePhoneNumber' },\n { label: t('infrastructureWebsite'), property: 'infrastructureWebsite' },\n { label: t('infrastructureDescription'), property: 'infrastructureDescription' },\n { label: t('infrastructureNotes'), property: 'infrastructureNotes' },\n ],\n },\n ],\n },\n {\n title: t('landInfra'),\n subsections: [\n {\n title: t('linearReferencing'),\n fields: [\n { label: t('linearLRMType'), property: 'linearLRMType' },\n { label: t('linearAlignmentType'), property: 'linearAlignmentType' },\n {\n label: <>\n {t('linearMeasure')} <span className=\"italic !text-xs !font-light\">(m/km)</span>\n </>,\n property: 'linearMeasure'\n },\n { label: t('linearStartValue'), property: 'linearStartValue' },\n { label: t('infrastructureMaterial'), property: 'infrastructureMaterial' },\n { label: t('infrastructureSurfaceType'), property: 'infrastructureSurfaceType' },\n { label: t('infrastructureSurfaceName'), property: 'infrastructureSurfaceName' },\n { label: t('infrastructureLongitude'), property: 'infrastructureLongitude' },\n { label: t('infrastructureLatitude'), property: 'infrastructureLatitude' },\n { label: t('infrastructureElevation'), property: 'infrastructureElevation' },\n { label: t('infrastructureSurveyDate'), property: 'infrastructureSurveyDate' },\n ],\n },\n ],\n },\n {\n title: t('ifcInformation'),\n subsections: [\n {\n title: t('ifcData'),\n fields: [\n { label: t('ifcGlobalId'), property: 'ifcGlobalId' },\n { label: t('ifcDomain'), property: 'ifcDomain' },\n { label: t('ifcRoadType'), property: 'ifcRoadType' },\n { label: t('ifcLaneCount'), property: 'ifcLaneCount' },\n { label: t('ifcDesignSpeed'), property: 'ifcDesignSpeed' },\n { label: t('ifcRailType'), property: 'ifcRailType' },\n { label: t('ifcTrackGauge'), property: 'ifcTrackGauge' },\n { label: t('ifcBridgePartType'), property: 'ifcBridgePartType' },\n { label: t('ifcBridgeClearance'), property: 'ifcBridgeClearance' },\n { label: t('ifcLoadRating'), property: 'ifcLoadRating' },\n { label: t('ifcUtilityType'), property: 'ifcUtilityType' },\n { label: t('ifcVoltage'), property: 'ifcVoltage' },\n { label: t('ifcFacilityPartType'), property: 'ifcFacilityPartType' },\n ],\n },\n ],\n },\n {\n title: t('cityGmlInformation'),\n subsections: [\n {\n title: t('cityGmlData'),\n fields: [\n { label: t('cityGmlName'), property: 'cityGmlName' },\n { label: t('cityGmlLod'), property: 'cityGmlLod' },\n { label: t('cityGmlFunction'), property: 'cityGmlFunction' },\n { label: t('cityGmlUsage'), property: 'cityGmlUsage' },\n { label: t('cityGmlCondition'), property: 'cityGmlCondition' },\n { label: t('cityGmlMeasuredHeight'), property: 'cityGmlMeasuredHeight' },\n { label: t('cityGmlConstructionDate'), property: 'cityGmlConstructionDate' },\n { label: t('cityGmlDemolitionDate'), property: 'cityGmlDemolitionDate' },\n { label: t('cityGmlVegetationType'), property: 'cityGmlVegetationType' },\n { label: t('cityGmlFurnitureType'), property: 'cityGmlFurnitureType' },\n { label: t('cityGmlSurfaceMaterial'), property: 'cityGmlSurfaceMaterial' },\n { label: t('cityGmlIsTrafficSpace'), property: 'cityGmlIsTrafficSpace' },\n ],\n },\n ],\n },\n ];\n};\n"],"mappings":"AA6GqB,mBAGL,KAHK;AA1GrB,SAAS,uBAAuB;AA4EzB,MAAM,qBAAqB,MAAM;AAEtC,QAAM,IAAI,gBAAgB,SAAS;AAEnC,SAAO;AAAA,IACL;AAAA,MACE,OAAO,EAAE,qBAAqB;AAAA,MAC9B,aAAa;AAAA,QACX;AAAA,UACE,OAAO,EAAE,SAAS;AAAA,UAClB,QAAQ;AAAA,YACN,EAAE,OAAO,EAAE,cAAc,GAAG,UAAU,eAAe;AAAA,YACrD,EAAE,OAAO,EAAE,iBAAiB,GAAG,UAAU,kBAAkB;AAAA,YAC3D,EAAE,OAAO,EAAE,4BAA4B,GAAG,UAAU,6BAA6B;AAAA,YACjF,EAAE,OAAO,EAAE,sBAAsB,GAAG,UAAU,uBAAuB;AAAA,YACrE,EAAE,OAAO,EAAE,cAAc,GAAG,UAAU,eAAe;AAAA,YACrD,EAAE,OAAO,EAAE,oBAAoB,GAAG,UAAU,qBAAqB;AAAA,YACjE,EAAE,OAAO,EAAE,gBAAgB,GAAG,UAAU,iBAAiB;AAAA,YACzD,EAAE,OAAO,EAAE,kBAAk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,OAAO,EAAE,iBAAiB,GAAG,UAAU,kBAAkB;AAAA,YAC3D,EAAE,OAAO,EAAE,cAAc,GAAG,UAAU,eAAe;AAAA,YACrD,EAAE,OAAO,EAAE,kBAAkB,GAAG,UAAU,mBAAmB;AAAA,YAC7D,EAAE,OAAO,EAAE,uBAAuB,GAAG,UAAU,wBAAwB;AAAA,YACvE,EAAE,OAAO,EAAE,yBAAyB,GAAG,UAAU,0BAA0B;AAAA,YAC3E,EAAE,OAAO,EAAE,uBAAuB,GAAG,UAAU,wBAAwB;AAAA,YACvE,EAAE,OAAO,EAAE,uBAAuB,GAAG,UAAU,wBAAwB;AAAA,YACvE,EAAE,OAAO,EAAE,sBAAsB,GAAG,UAAU,uBAAuB;AAAA,YACrE,EAAE,OAAO,EAAE,wBAAwB,GAAG,UAAU,yBAAyB;AAAA,YACzE,EAAE,OAAO,EAAE,uBAAuB,GAAG,UAAU,wBAAwB;AAAA,UACzE;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/convertDate.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nexport function convertISOStringtoDate(dateString: Date | string) {\r\n const date = new Date(dateString)\r\n return date.toLocaleDateString('en-US', {\r\n month: 'long',\r\n day: 'numeric',\r\n year: 'numeric',\r\n hour: 'numeric',\r\n minute: '2-digit',\r\n hour12: true,\r\n })\r\n}"],"mappings":"AAGO,SAAS,uBAAuB,YAA2B;AAChE,QAAM,OAAO,IAAI,KAAK,UAAU;AAChC,SAAO,KAAK,mBAAmB,SAAS;AAAA,IACtC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,EACV,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/convertDate.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nexport function convertISOStringtoDate(dateString: Date | string) {\n const date = new Date(dateString)\n return date.toLocaleDateString('en-US', {\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n hour12: true,\n })\n}"],"mappings":"AAGO,SAAS,uBAAuB,YAA2B;AAChE,QAAM,OAAO,IAAI,KAAK,UAAU;AAChC,SAAO,KAAK,mBAAmB,SAAS;AAAA,IACtC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,EACV,CAAC;AACH;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/csvUtils.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport type { Building } from '../../../../types/dbTypes'\r\n\r\n/**\r\n * Generate a CSV schema file with headers and example row\r\n */\r\nexport function generateBuildingSchemaCSV(schemaTemplate: Record<string, string>, fieldNames: string[]): string {\r\n const headers = fieldNames.join(',')\r\n\r\n const example = fieldNames.map(field => {\r\n const value = schemaTemplate[field]\r\n // Wrap in quotes if it contains comma or quotes\r\n if (value && (value.includes(',') || value.includes('\"'))) {\r\n return `\"${value.replaceAll('\"', '\"\"')}\"`\r\n }\r\n return value || ''\r\n }).join(',')\r\n\r\n return `${headers}\\n${example}`\r\n}\r\n\r\n/**\r\n * Export buildings to CSV format\r\n */\r\nexport function exportBuildingsToCSV(buildings: Building[]): string {\r\n if (!buildings || buildings.length === 0) {\r\n throw new Error('No buildings to export')\r\n }\r\n\r\n // Get all field names from the first building\r\n const buildingFields = Object.keys(buildings[0])\r\n\r\n // Create headers\r\n const headers = buildingFields.join(',')\r\n\r\n // Extract values for each building\r\n const rows = buildings.map(building => {\r\n return buildingFields.map(field => {\r\n const value = building[field as keyof Building]\r\n\r\n // Handle different data types\r\n if (value == null) return ''\r\n if (Array.isArray(value)) return `\"${value.join(';')}\"`\r\n if (typeof value === 'string') return `\"${value.replaceAll('\"', '\"\"')}\"`\r\n if (typeof value === 'object') return `\"${JSON.stringify(value).replaceAll('\"', '\"\"')}\"`\r\n return value\r\n }).join(',')\r\n }).join('\\n')\r\n\r\n // Combine headers and data\r\n return `${headers}\\n${rows}`\r\n}\r\n\r\n/**\r\n * Parse CSV text into building objects\r\n */\r\nexport function parseCSVToBuildings(csvText: string): any[] {\r\n // Parse CSV manually\r\n const lines = csvText.split('\\n').filter(line => line.trim())\r\n\r\n if (lines.length < 2) {\r\n throw new Error('CSV file is empty')\r\n }\r\n\r\n // Extract headers\r\n const headers = lines[0].split(',').map(h => h.trim().replace(/^\"|\"$/g, ''))\r\n\r\n // Check if buildingAddress exists\r\n if (!headers.includes('buildingAddress')) {\r\n throw new Error('CSV must include buildingAddress column')\r\n }\r\n\r\n // Parse each row (skip header)\r\n const buildings = []\r\n for (let i = 1; i < lines.length; i++) {\r\n const line = lines[i]\r\n if (!line.trim()) continue\r\n\r\n // Simple CSV parsing\r\n const values = line.split(',').map(v => v.trim().replace(/^\"|\"$/g, ''))\r\n\r\n const building: any = {}\r\n headers.forEach((header, index) => {\r\n const value = values[index]\r\n if (value) {\r\n building[header] = value\r\n }\r\n })\r\n\r\n // Only validate that buildingAddress exists\r\n if (!building.buildingAddress || !building.buildingAddress.trim()) {\r\n console.warn(`Skipping row ${i + 1}: missing buildingAddress`)\r\n continue\r\n }\r\n\r\n buildings.push(building)\r\n }\r\n\r\n if (buildings.length === 0) {\r\n throw new Error('No valid buildings found in CSV')\r\n }\r\n\r\n return buildings\r\n}\r\n\r\n/**\r\n * Process building imports - create new or update existing\r\n */\r\nexport async function processBuildingImports(\r\n buildingsToImport: any[],\r\n existingBuildings: Building[] | undefined,\r\n createBuilding: (params: { buildingData: any; organizationId: string }) => Promise<any>,\r\n updateBuilding: (params: { buildingId: string; buildingData: any }) => Promise<any>,\r\n organizationId: string\r\n): Promise<{ created: number; updated: number; failed: number }> {\r\n let created = 0\r\n let updated = 0\r\n let failed = 0\r\n\r\n for (const buildingData of buildingsToImport) {\r\n try {\r\n // Check if building already exists by address\r\n const existingBuilding = existingBuildings?.find(\r\n b => b.buildingAddress?.toLowerCase().trim() === buildingData.buildingAddress?.toLowerCase().trim()\r\n )\r\n\r\n if (existingBuilding) {\r\n // Update existing building\r\n await updateBuilding({\r\n buildingId: existingBuilding.id.toString(),\r\n buildingData,\r\n })\r\n updated++\r\n } else {\r\n // Create new building\r\n await createBuilding({\r\n buildingData,\r\n organizationId,\r\n })\r\n created++\r\n }\r\n } catch (error) {\r\n console.error('Error processing building:', buildingData.buildingAddress, error)\r\n failed++\r\n }\r\n }\r\n\r\n return { created, updated, failed }\r\n}\r\n\r\n/**\r\n * Download a CSV file\r\n */\r\nexport function downloadCSV(content: string, filename: string): void {\r\n const blob = new Blob([content], { type: 'text/csv' })\r\n const url = URL.createObjectURL(blob)\r\n\r\n const link = document.createElement('a')\r\n link.href = url\r\n link.download = filename\r\n link.click()\r\n\r\n URL.revokeObjectURL(url)\r\n}\r\n\r\n/**\r\n * Generate timestamped filename for exports\r\n */\r\nexport function generateTimestampedFilename(prefix: string, extension: string = 'csv'): string {\r\n const timestamp = new Date().toISOString().replaceAll(/[:.]/g, '-').slice(0, 19)\r\n return `${prefix}_${timestamp}.${extension}`\r\n}"],"mappings":"AAQO,SAAS,0BAA0B,gBAAwC,YAA8B;AAC9G,QAAM,UAAU,WAAW,KAAK,GAAG;AAEnC,QAAM,UAAU,WAAW,IAAI,WAAS;AACtC,UAAM,QAAQ,eAAe,KAAK;AAElC,QAAI,UAAU,MAAM,SAAS,GAAG,KAAK,MAAM,SAAS,GAAG,IAAI;AACzD,aAAO,IAAI,MAAM,WAAW,KAAK,IAAI,CAAC;AAAA,IACxC;AACA,WAAO,SAAS;AAAA,EAClB,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O,SAAS,YAAY,SAAiB,UAAwB;AACnE,QAAM,OAAO,IAAI,KAAK,CAAC,OAAO,GAAG,EAAE,MAAM,WAAW,CAAC;AACrD,QAAM,MAAM,IAAI,gBAAgB,IAAI;AAEpC,QAAM,OAAO,SAAS,cAAc,GAAG;AACvC,OAAK,OAAO;AACZ,OAAK,WAAW;AAChB,OAAK,MAAM;AAEX,MAAI,gBAAgB,GAAG;AACzB;AAKO,SAAS,4BAA4B,QAAgB,YAAoB,OAAe;AAC7F,QAAM,aAAY,oBAAI,KAAK,GAAE,YAAY,EAAE,WAAW,SAAS,GAAG,EAAE,MAAM,GAAG,EAAE;AAC/E,SAAO,GAAG,MAAM,IAAI,SAAS,IAAI,SAAS;AAC5C;","names":[]}
1
+ {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/csvUtils.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport type { Building } from '../../../../types/dbTypes'\n\n/**\n * Generate a CSV schema file with headers and example row\n */\nexport function generateBuildingSchemaCSV(schemaTemplate: Record<string, string>, fieldNames: string[]): string {\n const headers = fieldNames.join(',')\n\n const example = fieldNames.map(field => {\n const value = schemaTemplate[field]\n // Wrap in quotes if it contains comma or quotes\n if (value && (value.includes(',') || value.includes('\"'))) {\n return `\"${value.replaceAll('\"', '\"\"')}\"`\n }\n return value || ''\n }).join(',')\n\n return `${headers}\\n${example}`\n}\n\n/**\n * Export buildings to CSV format\n */\nexport function exportBuildingsToCSV(buildings: Building[]): string {\n if (!buildings || buildings.length === 0) {\n throw new Error('No buildings to export')\n }\n\n // Get all field names from the first building\n const buildingFields = Object.keys(buildings[0])\n\n // Create headers\n const headers = buildingFields.join(',')\n\n // Extract values for each building\n const rows = buildings.map(building => {\n return buildingFields.map(field => {\n const value = building[field as keyof Building]\n\n // Handle different data types\n if (value == null) return ''\n if (Array.isArray(value)) return `\"${value.join(';')}\"`\n if (typeof value === 'string') return `\"${value.replaceAll('\"', '\"\"')}\"`\n if (typeof value === 'object') return `\"${JSON.stringify(value).replaceAll('\"', '\"\"')}\"`\n return value\n }).join(',')\n }).join('\\n')\n\n // Combine headers and data\n return `${headers}\\n${rows}`\n}\n\n/**\n * Parse CSV text into building objects\n */\nexport function parseCSVToBuildings(csvText: string): any[] {\n // Parse CSV manually\n const lines = csvText.split('\\n').filter(line => line.trim())\n\n if (lines.length < 2) {\n throw new Error('CSV file is empty')\n }\n\n // Extract headers\n const headers = lines[0].split(',').map(h => h.trim().replace(/^\"|\"$/g, ''))\n\n // Check if buildingAddress exists\n if (!headers.includes('buildingAddress')) {\n throw new Error('CSV must include buildingAddress column')\n }\n\n // Parse each row (skip header)\n const buildings = []\n for (let i = 1; i < lines.length; i++) {\n const line = lines[i]\n if (!line.trim()) continue\n\n // Simple CSV parsing\n const values = line.split(',').map(v => v.trim().replace(/^\"|\"$/g, ''))\n\n const building: any = {}\n headers.forEach((header, index) => {\n const value = values[index]\n if (value) {\n building[header] = value\n }\n })\n\n // Only validate that buildingAddress exists\n if (!building.buildingAddress || !building.buildingAddress.trim()) {\n console.warn(`Skipping row ${i + 1}: missing buildingAddress`)\n continue\n }\n\n buildings.push(building)\n }\n\n if (buildings.length === 0) {\n throw new Error('No valid buildings found in CSV')\n }\n\n return buildings\n}\n\n/**\n * Process building imports - create new or update existing\n */\nexport async function processBuildingImports(\n buildingsToImport: any[],\n existingBuildings: Building[] | undefined,\n createBuilding: (params: { buildingData: any; organizationId: string }) => Promise<any>,\n updateBuilding: (params: { buildingId: string; buildingData: any }) => Promise<any>,\n organizationId: string\n): Promise<{ created: number; updated: number; failed: number }> {\n let created = 0\n let updated = 0\n let failed = 0\n\n for (const buildingData of buildingsToImport) {\n try {\n // Check if building already exists by address\n const existingBuilding = existingBuildings?.find(\n b => b.buildingAddress?.toLowerCase().trim() === buildingData.buildingAddress?.toLowerCase().trim()\n )\n\n if (existingBuilding) {\n // Update existing building\n await updateBuilding({\n buildingId: existingBuilding.id.toString(),\n buildingData,\n })\n updated++\n } else {\n // Create new building\n await createBuilding({\n buildingData,\n organizationId,\n })\n created++\n }\n } catch (error) {\n console.error('Error processing building:', buildingData.buildingAddress, error)\n failed++\n }\n }\n\n return { created, updated, failed }\n}\n\n/**\n * Download a CSV file\n */\nexport function downloadCSV(content: string, filename: string): void {\n const blob = new Blob([content], { type: 'text/csv' })\n const url = URL.createObjectURL(blob)\n\n const link = document.createElement('a')\n link.href = url\n link.download = filename\n link.click()\n\n URL.revokeObjectURL(url)\n}\n\n/**\n * Generate timestamped filename for exports\n */\nexport function generateTimestampedFilename(prefix: string, extension: string = 'csv'): string {\n const timestamp = new Date().toISOString().replaceAll(/[:.]/g, '-').slice(0, 19)\n return `${prefix}_${timestamp}.${extension}`\n}"],"mappings":"AAQO,SAAS,0BAA0B,gBAAwC,YAA8B;AAC9G,QAAM,UAAU,WAAW,KAAK,GAAG;AAEnC,QAAM,UAAU,WAAW,IAAI,WAAS;AACtC,UAAM,QAAQ,eAAe,KAAK;AAElC,QAAI,UAAU,MAAM,SAAS,GAAG,KAAK,MAAM,SAAS,GAAG,IAAI;AACzD,aAAO,IAAI,MAAM,WAAW,KAAK,IAAI,CAAC;AAAA,IACxC;AACA,WAAO,SAAS;AAAA,EAClB,CAAC,EAAE,KAAK,GAAG;AAEX,SAAO,GAAG,OAAO;AAAA,EAAK,OAAO;AAC/B;AAKO,SAAS,qBAAqB,WAA+B;AAClE,MAAI,CAAC,aAAa,UAAU,WAAW,GAAG;AACxC,UAAM,IAAI,MAAM,wBAAwB;AAAA,EAC1C;AAGA,QAAM,iBAAiB,OAAO,KAAK,UAAU,CAAC,CAAC;AAG/C,QAAM,UAAU,eAAe,KAAK,GAAG;AAGvC,QAAM,OAAO,UAAU,IAAI,cAAY;AACrC,WAAO,eAAe,IAAI,WAAS;AACjC,YAAM,QAAQ,SAAS,KAAuB;AAG9C,UAAI,SAAS,KAAM,QAAO;AAC1B,UAAI,MAAM,QAAQ,KAAK,EAAG,Q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AC5C;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/filterHelper.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\n// TODO: Enforce more striclty type later\r\ntype FilterType = {\r\n id: number // id of the filter\r\n field: string // field (column name) in the data\r\n fieldType: 'boolean' | 'string' | 'number' | 'date' | 'enum' // data type of the data column\r\n operator: // operator to filter that column\r\n | 'isTrue' | 'isFalse'\r\n | 'contains' | 'equals' | 'startsWith' | 'endsWith'\r\n | 'greaterThan' | 'lessThan' | 'between'\r\n | 'before' | 'after' | 'inList'\r\n value: boolean | string | number | Date | string[] // value to filter that column\r\n secondValue: number | Date | null // second value for filtering between\r\n}\r\n\r\nfunction cleanString(value: string) {\r\n return value.toLowerCase().trim()\r\n}\r\n\r\nexport function getUniqueColumnValues(data: any[], columnId: string) {\r\n const uniqueValues = new Set(data.map(row => (row[columnId])))\r\n return [...uniqueValues]\r\n}\r\n\r\n// function that contain all the logic to filter out things\r\nexport function filterHelper(data: any[], filters: FilterType[]) {\r\n let filteredData = data\r\n\r\n for (const filter of filters) {\r\n const { id, field, fieldType, operator, value, secondValue } = filter\r\n if (fieldType == null || operator == null || value == null) continue\r\n\r\n filteredData = filteredData.filter((row) => {\r\n switch (fieldType) {\r\n case 'boolean':\r\n if (operator === 'isTrue') return row[field] === true\r\n if (operator === 'isFalse') return row[field] === false\r\n break\r\n\r\n case 'string':\r\n if (operator === 'contains') return cleanString(String(row[field])).includes(cleanString(String(value)))\r\n if (operator === 'startsWith') return cleanString(String(row[field])).startsWith(cleanString(String(value)))\r\n if (operator === 'endsWith') return cleanString(String(row[field])).endsWith(cleanString(String(value)))\r\n if (operator === 'equals') return cleanString(String(row[field])) === cleanString(String(value))\r\n if (operator === 'inList' && Array.isArray(value) && value.length > 0) {\r\n return value.map(v => cleanString(String(v))).includes(cleanString(String(row[field])))\r\n }\r\n break\r\n\r\n case 'enum':\r\n if (operator === 'equals') return row[field] === value\r\n if (operator === 'inList' && Array.isArray(value) && value.length > 0) {\r\n // Handle both single values and arrays in the data\r\n if (Array.isArray(row[field])) {\r\n // If the item's field is an array, check if any of its values are in our filter\r\n return row[field].some(val => value.includes(val))\r\n }\r\n else {\r\n // If the item's field is a single value, check if it's in our filter array\r\n return value.includes(row[field])\r\n }\r\n }\r\n break\r\n\r\n case 'number':\r\n // Cell values can arrive as numeric strings from external portals, so\r\n // coerce both sides (the ordering operators below coerce implicitly).\r\n if (operator === 'equals') return Number(row[field]) === Number(value)\r\n if (operator === 'lessThan') return row[field] < value\r\n if (operator === 'between' && secondValue != null) return value <= row[field] && row[field] <= secondValue\r\n if (operator === 'greaterThan') return row[field] > value\r\n break\r\n\r\n case 'date':\r\n // Type guard to ensure value is appropriate for Date constructor\r\n if (typeof value === 'boolean' || Array.isArray(value)) {\r\n return false // Invalid value type for date operations\r\n }\r\n\r\n const dateValue = new Date(row[field])\r\n const filterDateValue = new Date(value)\r\n\r\n if (isNaN(dateValue.getTime()) || isNaN(filterDateValue.getTime())) return false\r\n\r\n if (operator === 'equals') return dateValue.toDateString() === filterDateValue.toDateString()\r\n if (operator === 'before') return dateValue < filterDateValue\r\n if (operator === 'after') return dateValue > filterDateValue\r\n if (operator === 'between' && secondValue != null) {\r\n // Type guard for secondValue as well\r\n if (typeof secondValue === 'boolean') {\r\n return false\r\n }\r\n const secondDateValue = new Date(secondValue)\r\n if (isNaN(secondDateValue.getTime())) return false\r\n return dateValue >= filterDateValue && dateValue <= secondDateValue\r\n }\r\n break\r\n\r\n default:\r\n return true\r\n }\r\n return true // Default case if no operator matches\r\n })\r\n }\r\n\r\n return filteredData\r\n}\r\n\r\nexport const getNarrowedFilterOptions = (\r\n data: any[],\r\n baseOptions: any[],\r\n currentFiltersState: any[],\r\n) => {\r\n const inListFilters = currentFiltersState.filter(f => f.operator === 'inList')\r\n // only start narrowing once there are at least two \"inList\" filters\r\n if (inListFilters.length <= 1) {\r\n return baseOptions\r\n }\r\n\r\n let newBaseOptions = baseOptions\r\n // use only the inList filters to narrow the data\r\n for (let i = 1; i < inListFilters.length; i++) {\r\n const filteredData = filterHelper(data, inListFilters.slice(0, i))\r\n newBaseOptions = newBaseOptions.map((opt) => {\r\n if (opt.id !== inListFilters[i].field) {\r\n return opt\r\n }\r\n return (\r\n {\r\n ...opt,\r\n valueOptions: getUniqueColumnValues(filteredData, opt.id),\r\n }\r\n )\r\n },\r\n )\r\n }\r\n\r\n return newBaseOptions\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAS,YAAY,OAAe;AAClC,SAAO,MAAM,YAAY,EAAE,KAAK;AAClC;AAEO,SAAS,sBAAsB,MAAa,UAAkB;AACnE,QAAM,eAAe,IAAI,IAAI,KAAK,IAAI,SAAQ,IAAI,QAAQ,CAAE,CAAC;AAC7D,SAAO,CAAC,GAAG,YAAY;AACzB;AAGO,SAAS,aAAa,MAAa,SAAuB;AAC/D,MAAI,eAAe;AAEnB,aAAW,UAAU,SAAS;AAC5B,UAAM,EAAE,IAAI,OAAO,WAAW,UAAU,OAAO,YAAY,IAAI;AAC/D,QAAI,aAAa,QAAQ,YAAY,QAAQ,SAAS,KAAM;AAE5D,mBAAe,aAAa,OAAO,CAAC,QAAQ;AAC1C,cAAQ,WAAW;AAAA,QACjB,KAAK;AACH,cAAI,aAAa,SAAU,QAAO,IAAI,KAAK,MAAM;AACjD,cAAI,aAAa,UAAW,QAAO,IAAI,KAAK,MAAM;AAClD;AAAA,QAEF,KAAK;AACH,cAAI,aAAa,WAAY,QAAO,YAAY,OAAO,IAAI,KAAK,CAAC,CAAC,EAAE,SAAS,YAAY,OAAO,KAAK,CAAC,CAAC;AACvG,cAAI,aAAa,aAAc,QAAO,YAAY,OAAO,IAAI,KAAK,CAAC,CAAC,EAAE,WAAW,YAAY,OAAO,KAAK,CAAC,CAAC;AAC3G,cAAI,aAAa,WAAY,QAAO,YAAY,OAAO,IAAI,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,EAAG,QAAO;AAE3E,cAAI,aAAa,SAAU,QAAO,UAAU,aAAa,MAAM,gBAAgB,aAAa;AAC5F,cAAI,aAAa,SAAU,QAAO,YAAY;AAC9C,cAAI,aAAa,QAAS,QAAO,YAAY;AAC7C,cAAI,aAAa,aAAa,eAAe,MAAM;AAEjD,gBAAI,OAAO,gBAAgB,WAAW;AACpC,qBAAO;AAAA,YACT;AACA,kBAAM,kBAAkB,IAAI,KAAK,WAAW;AAC5C,gBAAI,MAAM,gBAAgB,QAAQ,CAAC,EAAG,QAAO;AAC7C,mBAAO,aAAa,mBAAmB,aAAa;AAAA,UACtD;AACA;AAAA,QAEF;AACE,iBAAO;AAAA,MACX;AACA,aAAO;AAAA,IACT,CAAC;AAAA,EACH;AAEA,SAAO;AACT;AAEO,MAAM,2BAA2B,CACtC,MACA,aACA,wBACG;AACH,QAAM,gBAAgB,oBAAoB,OAAO,OAAK,EAAE,aAAa,QAAQ;AAE7E,MAAI,cAAc,UAAU,GAAG;AAC7B,WAAO;AAAA,EACT;AAEA,MAAI,iBAAiB;AAErB,WAAS,IAAI,GAAG,IAAI,cAAc,QAAQ,KAAK;AAC7C,UAAM,eAAe,aAAa,MAAM,cAAc,MAAM,GAAG,CAAC,CAAC;AACjE,qBAAiB,eAAe;AAAA,MAAI,CAAC,QAAQ;AAC3C,YAAI,IAAI,OAAO,cAAc,CAAC,EAAE,OAAO;AACrC,iBAAO;AAAA,QACT;AACA,eACE,iCACK,MADL;AAAA,UAEE,cAAc,sBAAsB,cAAc,IAAI,EAAE;AAAA,QAC1D;AAAA,MAEJ;AAAA,IACA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/filterHelper.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\n// TODO: Enforce more striclty type later\ntype FilterType = {\n id: number // id of the filter\n field: string // field (column name) in the data\n fieldType: 'boolean' | 'string' | 'number' | 'date' | 'enum' // data type of the data column\n operator: // operator to filter that column\n | 'isTrue' | 'isFalse'\n | 'contains' | 'equals' | 'startsWith' | 'endsWith'\n | 'greaterThan' | 'lessThan' | 'between'\n | 'before' | 'after' | 'inList'\n value: boolean | string | number | Date | string[] // value to filter that column\n secondValue: number | Date | null // second value for filtering between\n}\n\nfunction cleanString(value: string) {\n return value.toLowerCase().trim()\n}\n\nexport function getUniqueColumnValues(data: any[], columnId: string) {\n const uniqueValues = new Set(data.map(row => (row[columnId])))\n return [...uniqueValues]\n}\n\n// function that contain all the logic to filter out things\nexport function filterHelper(data: any[], filters: FilterType[]) {\n let filteredData = data\n\n for (const filter of filters) {\n const { id, field, fieldType, operator, value, secondValue } = filter\n if (fieldType == null || operator == null || value == null) continue\n\n filteredData = filteredData.filter((row) => {\n switch (fieldType) {\n case 'boolean':\n if (operator === 'isTrue') return row[field] === true\n if (operator === 'isFalse') return row[field] === false\n break\n\n case 'string':\n if (operator === 'contains') return cleanString(String(row[field])).includes(cleanString(String(value)))\n if (operator === 'startsWith') return cleanString(String(row[field])).startsWith(cleanString(String(value)))\n if (operator === 'endsWith') return cleanString(String(row[field])).endsWith(cleanString(String(value)))\n if (operator === 'equals') return cleanString(String(row[field])) === cleanString(String(value))\n if (operator === 'inList' && Array.isArray(value) && value.length > 0) {\n return value.map(v => cleanString(String(v))).includes(cleanString(String(row[field])))\n }\n break\n\n case 'enum':\n if (operator === 'equals') return row[field] === value\n if (operator === 'inList' && Array.isArray(value) && value.length > 0) {\n // Handle both single values and arrays in the data\n if (Array.isArray(row[field])) {\n // If the item's field is an array, check if any of its values are in our filter\n return row[field].some(val => value.includes(val))\n }\n else {\n // If the item's field is a single value, check if it's in our filter array\n return value.includes(row[field])\n }\n }\n break\n\n case 'number':\n // Cell values can arrive as numeric strings from external portals, so\n // coerce both sides (the ordering operators below coerce implicitly).\n if (operator === 'equals') return Number(row[field]) === Number(value)\n if (operator === 'lessThan') return row[field] < value\n if (operator === 'between' && secondValue != null) return value <= row[field] && row[field] <= secondValue\n if (operator === 'greaterThan') return row[field] > value\n break\n\n case 'date':\n // Type guard to ensure value is appropriate for Date constructor\n if (typeof value === 'boolean' || Array.isArray(value)) {\n return false // Invalid value type for date operations\n }\n\n const dateValue = new Date(row[field])\n const filterDateValue = new Date(value)\n\n if (isNaN(dateValue.getTime()) || isNaN(filterDateValue.getTime())) return false\n\n if (operator === 'equals') return dateValue.toDateString() === filterDateValue.toDateString()\n if (operator === 'before') return dateValue < filterDateValue\n if (operator === 'after') return dateValue > filterDateValue\n if (operator === 'between' && secondValue != null) {\n // Type guard for secondValue as well\n if (typeof secondValue === 'boolean') {\n return false\n }\n const secondDateValue = new Date(secondValue)\n if (isNaN(secondDateValue.getTime())) return false\n return dateValue >= filterDateValue && dateValue <= secondDateValue\n }\n break\n\n default:\n return true\n }\n return true // Default case if no operator matches\n })\n }\n\n return filteredData\n}\n\nexport const getNarrowedFilterOptions = (\n data: any[],\n baseOptions: any[],\n currentFiltersState: any[],\n) => {\n const inListFilters = currentFiltersState.filter(f => f.operator === 'inList')\n // only start narrowing once there are at least two \"inList\" filters\n if (inListFilters.length <= 1) {\n return baseOptions\n }\n\n let newBaseOptions = baseOptions\n // use only the inList filters to narrow the data\n for (let i = 1; i < inListFilters.length; i++) {\n const filteredData = filterHelper(data, inListFilters.slice(0, i))\n newBaseOptions = newBaseOptions.map((opt) => {\n if (opt.id !== inListFilters[i].field) {\n return opt\n }\n return (\n {\n ...opt,\n valueOptions: getUniqueColumnValues(filteredData, opt.id),\n }\n )\n },\n )\n }\n\n return newBaseOptions\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,SAAS,YAAY,OAAe;AAClC,SAAO,MAAM,YAAY,EAAE,KAAK;AAClC;AAEO,SAAS,sBAAsB,MAAa,UAAkB;AACnE,QAAM,eAAe,IAAI,IAAI,KAAK,IAAI,SAAQ,IAAI,QAAQ,CAAE,CAAC;AAC7D,SAAO,CAAC,GAAG,YA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AAa,QAAQ;AAE7E,MAAI,cAAc,UAAU,GAAG;AAC7B,WAAO;AAAA,EACT;AAEA,MAAI,iBAAiB;AAErB,WAAS,IAAI,GAAG,IAAI,cAAc,QAAQ,KAAK;AAC7C,UAAM,eAAe,aAAa,MAAM,cAAc,MAAM,GAAG,CAAC,CAAC;AACjE,qBAAiB,eAAe;AAAA,MAAI,CAAC,QAAQ;AAC3C,YAAI,IAAI,OAAO,cAAc,CAAC,EAAE,OAAO;AACrC,iBAAO;AAAA,QACT;AACA,eACE,iCACK,MADL;AAAA,UAEE,cAAc,sBAAsB,cAAc,IAAI,EAAE;AAAA,QAC1D;AAAA,MAEJ;AAAA,IACA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/positionParser.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\ntype LatLngPosition = {\r\n lng: number\r\n lat: number\r\n rotation?: number\r\n elevation?: number\r\n}\r\n\r\ntype XYZPosition = {\r\n x: number\r\n y: number\r\n z: number\r\n}\r\n\r\ntype Position = LatLngPosition | XYZPosition\r\n\r\nexport function parsePosition(position: string | null | undefined): Position | null {\r\n if (!position) return null\r\n\r\n try {\r\n const parsed = typeof position === 'string'\r\n ? JSON.parse(position)\r\n : position\r\n\r\n return parsed\r\n } catch (err) {\r\n console.error('Failed to parse position:', position, err)\r\n return null\r\n }\r\n}\r\n\r\nexport function formatPosition(position: string | null | undefined): string {\r\n const parsed = parsePosition(position)\r\n if (!parsed) return ''\r\n\r\n // Check if it's lat/lng format\r\n if ('lat' in parsed && 'lng' in parsed\r\n && typeof parsed.lat === 'number' && typeof parsed.lng === 'number') {\r\n const parts = [\r\n `Longitude: ${parsed.lng.toFixed(5)}`,\r\n `Latitude: ${parsed.lat.toFixed(5)}`\r\n ]\r\n\r\n if (parsed.elevation !== undefined) {\r\n parts.push(`Elevation: ${parsed.elevation}m`)\r\n }\r\n return parts.join(', ')\r\n }\r\n\r\n // Check if it's x/y/z format\r\n if ('x' in parsed && 'y' in parsed && 'z' in parsed\r\n && typeof parsed.x === 'number' && typeof parsed.y === 'number' && typeof parsed.z === 'number') {\r\n return `X: ${parsed.x}, Y: ${parsed.y}, Z: ${parsed.z}`\r\n }\r\n\r\n return ''\r\n}\r\n\r\nexport function isLatLngPosition(position: string | null | undefined): boolean {\r\n const parsed = parsePosition(position)\r\n return parsed !== null && 'lat' in parsed && 'lng' in parsed\r\n && typeof parsed.lat === 'number' && typeof parsed.lng === 'number'\r\n}\r\n\r\nexport function isXYZPosition(position: string | null | undefined): boolean {\r\n const parsed = parsePosition(position)\r\n return parsed !== null && 'x' in parsed && 'y' in parsed && 'z' in parsed\r\n && typeof parsed.x === 'number' && typeof parsed.y === 'number' && typeof parsed.z === 'number'\r\n}\r\n"],"mappings":"AAkBO,SAAS,cAAc,UAAsD;AAClF,MAAI,CAAC,SAAU,QAAO;AAEtB,MAAI;AACF,UAAM,SAAS,OAAO,aAAa,WAC/B,KAAK,MAAM,QAAQ,IACnB;AAEJ,WAAO;AAAA,EACT,SAAS,KAAK;AACZ,YAAQ,MAAM,6BAA6B,UAAU,GAAG;AACxD,WAAO;AAAA,EACT;AACF;AAEO,SAAS,eAAe,UAA6C;AAC1E,QAAM,SAAS,cAAc,QAAQ;AACrC,MAAI,CAAC,OAAQ,QAAO;AAGpB,MAAI,SAAS,UAAU,SAAS,UAC3B,OAAO,OAAO,QAAQ,YAAY,OAAO,OAAO,QAAQ,UAAU;AACrE,UAAM,QAAQ;AAAA,MACZ,cAAc,OAAO,IAAI,QAAQ,CAAC,CAAC;AAAA,MACnC,aAAa,OAAO,IAAI,QAAQ,CAAC,CAAC;AAAA,IACpC;AAEA,QAAI,OAAO,cAAc,QAAW;AAClC,YAAM,KAAK,cAAc,OAAO,SAAS,GAAG;AAAA,IAC9C;AACA,WAAO,MAAM,KAAK,IAAI;AAAA,EACxB;AAGA,MAAI,OAAO,UAAU,OAAO,UAAU,OAAO,UACxC,OAAO,OAAO,MAAM,YAAY,OAAO,OAAO,MAAM,YAAY,OAAO,OAAO,MAAM,UAAU;AACjG,WAAO,MAAM,OAAO,CAAC,QAAQ,OAAO,CAAC,QAAQ,OAAO,CAAC;AAAA,EACvD;AAEA,SAAO;AACT;AAEO,SAAS,iBAAiB,UAA8C;AAC7E,QAAM,SAAS,cAAc,QAAQ;AACrC,SAAO,WAAW,QAAQ,SAAS,UAAU,SAAS,UACjD,OAAO,OAAO,QAAQ,YAAY,OAAO,OAAO,QAAQ;AAC/D;AAEO,SAAS,cAAc,UAA8C;AAC1E,QAAM,SAAS,cAAc,QAAQ;AACrC,SAAO,WAAW,QAAQ,OAAO,UAAU,OAAO,UAAU,OAAO,UAC9D,OAAO,OAAO,MAAM,YAAY,OAAO,OAAO,MAAM,YAAY,OAAO,OAAO,MAAM;AAC3F;","names":[]}
1
+ {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/positionParser.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\ntype LatLngPosition = {\n lng: number\n lat: number\n rotation?: number\n elevation?: number\n}\n\ntype XYZPosition = {\n x: number\n y: number\n z: number\n}\n\ntype Position = LatLngPosition | XYZPosition\n\nexport function parsePosition(position: string | null | undefined): Position | null {\n if (!position) return null\n\n try {\n const parsed = typeof position === 'string'\n ? JSON.parse(position)\n : position\n\n return parsed\n } catch (err) {\n console.error('Failed to parse position:', position, err)\n return null\n }\n}\n\nexport function formatPosition(position: string | null | undefined): string {\n const parsed = parsePosition(position)\n if (!parsed) return ''\n\n // Check if it's lat/lng format\n if ('lat' in parsed && 'lng' in parsed\n && typeof parsed.lat === 'number' && typeof parsed.lng === 'number') {\n const parts = [\n `Longitude: ${parsed.lng.toFixed(5)}`,\n `Latitude: ${parsed.lat.toFixed(5)}`\n ]\n\n if (parsed.elevation !== undefined) {\n parts.push(`Elevation: ${parsed.elevation}m`)\n }\n return parts.join(', ')\n }\n\n // Check if it's x/y/z format\n if ('x' in parsed && 'y' in parsed && 'z' in parsed\n && typeof parsed.x === 'number' && typeof parsed.y === 'number' && typeof parsed.z === 'number') {\n return `X: ${parsed.x}, Y: ${parsed.y}, Z: ${parsed.z}`\n }\n\n return ''\n}\n\nexport function isLatLngPosition(position: string | null | undefined): boolean {\n const parsed = parsePosition(position)\n return parsed !== null && 'lat' in parsed && 'lng' in parsed\n && typeof parsed.lat === 'number' && typeof parsed.lng === 'number'\n}\n\nexport function isXYZPosition(position: string | null | undefined): boolean {\n const parsed = parsePosition(position)\n return parsed !== null && 'x' in parsed && 'y' in parsed && 'z' in parsed\n && typeof parsed.x === 'number' && typeof parsed.y === 'number' && typeof parsed.z === 'number'\n}\n"],"mappings":"AAkBO,SAAS,cAAc,UAAsD;AAClF,MAAI,CAAC,SAAU,QAAO;AAEtB,MAAI;AACF,UAAM,SAAS,OAAO,aAAa,WAC/B,KAAK,MAAM,QAAQ,IACnB;AAEJ,WAAO;AAAA,EACT,SAAS,KAAK;AACZ,YAAQ,MAAM,6BAA6B,UAAU,GAAG;AACxD,WAAO;AAAA,EACT;AACF;AAEO,SAAS,eAAe,UAA6C;AAC1E,QAAM,SAAS,cAAc,QAAQ;AACrC,MAAI,CAAC,OAAQ,QAAO;AAGpB,MAAI,SAAS,UAAU,SAAS,UAC3B,OAAO,OAAO,QAAQ,YAAY,OAAO,OAAO,QAAQ,UAAU;AACrE,UAAM,QAAQ;AAAA,MACZ,cAAc,OAAO,IAAI,QAAQ,CAAC,CAAC;AAAA,MACnC,aAAa,OAAO,IAAI,QAAQ,CAAC,CAAC;AAAA,IACpC;AAEA,QAAI,OAAO,cAAc,QAAW;AAClC,YAAM,KAAK,cAAc,OAAO,SAAS,GAAG;AAAA,IAC9C;AACA,WAAO,MAAM,KAAK,IAAI;AAAA,EACxB;AAGA,MAAI,OAAO,UAAU,OAAO,UAAU,OAAO,UACxC,OAAO,OAAO,MAAM,YAAY,OAAO,OAAO,MAAM,YAAY,OAAO,OAAO,MAAM,UAAU;AACjG,WAAO,MAAM,OAAO,CAAC,QAAQ,OAAO,CAAC,QAAQ,OAAO,CAAC;AAAA,EACvD;AAEA,SAAO;AACT;AAEO,SAAS,iBAAiB,UAA8C;AAC7E,QAAM,SAAS,cAAc,QAAQ;AACrC,SAAO,WAAW,QAAQ,SAAS,UAAU,SAAS,UACjD,OAAO,OAAO,QAAQ,YAAY,OAAO,OAAO,QAAQ;AAC/D;AAEO,SAAS,cAAc,UAA8C;AAC1E,QAAM,SAAS,cAAc,QAAQ;AACrC,SAAO,WAAW,QAAQ,OAAO,UAAU,OAAO,UAAU,OAAO,UAC9D,OAAO,OAAO,MAAM,YAAY,OAAO,OAAO,MAAM,YAAY,OAAO,OAAO,MAAM;AAC3F;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/useViewerData.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport { useMemo } from 'react'\r\n\r\nimport { ViewerNames } from '../../../../types/dbTypes'\r\n\r\nimport { toDisplayString } from '../../../../utils/utils'\r\n\r\nimport { filterHelper, getNarrowedFilterOptions, getUniqueColumnValues } from './filterHelper'\r\nimport { formatPosition } from './positionParser'\r\n\r\nimport type { Building, Infrastructure, Site, User, DbFile } from '../../../../types/dbTypes'\r\nimport type { FileRow } from '../../../../types/files'\r\nimport type { FilterState } from '../../../../types/global'\r\n\r\n\r\n// ---------------------------------------------------------------------------\r\n// Types\r\n// ---------------------------------------------------------------------------\r\n\r\ninterface UseViewerDataParams {\r\n currentViewer: ViewerNames\r\n buildings: Building[] | undefined\r\n sites: Site[] | undefined\r\n infrastructures: Infrastructure[] | undefined\r\n files: {\r\n id: number | string\r\n name: string\r\n attachedFilesBuildingId?: number | null\r\n uploadedAt: string | Date\r\n extension?: string | null\r\n sizeBytes: number\r\n position?: unknown\r\n }[] | undefined\r\n users: Partial<User>[] | undefined\r\n /** Loading flags from each data hook */\r\n loadingFlags: {\r\n buildings: boolean\r\n sites: boolean\r\n infrastructures: boolean\r\n files: boolean\r\n users: boolean\r\n }\r\n searchTerm: string\r\n activeFilters: FilterState[]\r\n /** Raw filter state (used by getNarrowedFilterOptions) */\r\n filters: FilterState[]\r\n /** Current user email */\r\n userEmail: string\r\n}\r\n\r\ninterface UseViewerDataResult {\r\n data: Building[] | Site[] | Infrastructure[] | FileRow[] | Partial<User>[]\r\n filteredData: Building[] | Site[] | Infrastructure[] | FileRow[] | Partial<User>[]\r\n filtersOptions: ReturnType<typeof getNarrowedFilterOptions>\r\n isLoading: boolean\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// Search helpers\r\n// ---------------------------------------------------------------------------\r\n\r\nfunction matchesSearch(value: unknown, term: string): boolean {\r\n return toDisplayString(value).toLowerCase().includes(term.toLowerCase())\r\n}\r\n\r\nfunction searchFields(fields: unknown[], term: string): boolean {\r\n return fields.some(v => matchesSearch(v, term))\r\n}\r\n\r\nfunction searchAllValues(obj: object, term: string): boolean {\r\n return Object.values(obj).some(v => matchesSearch(v, term))\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// Hook\r\n// ---------------------------------------------------------------------------\r\n\r\nexport function useViewerData({\r\n currentViewer,\r\n buildings,\r\n sites,\r\n infrastructures,\r\n files,\r\n users,\r\n loadingFlags,\r\n searchTerm,\r\n activeFilters,\r\n filters,\r\n userEmail,\r\n}: UseViewerDataParams): UseViewerDataResult {\r\n\r\n // Memoize the mapped FileRow array independently so the files case below\r\n // doesn't re-derive it on every render unrelated to files data changing.\r\n const mappedFiles: FileRow[] = useMemo(() => {\r\n if (!files) return []\r\n return files.map(file => ({\r\n id: String(file.id),\r\n name: file.name,\r\n attachedTo: [\r\n { type: 'building' as const, buildingId: String(file.attachedFilesBuildingId || '') },\r\n ],\r\n dateUploaded: file.uploadedAt,\r\n uploadedBy: userEmail || 'Unknown',\r\n fileType: file.extension?.toUpperCase() || '',\r\n fileSize: `${(file.sizeBytes / (1024 * 1024)).toFixed(3)} MB`,\r\n position: formatPosition(file.position as string),\r\n metadata: file as unknown as DbFile,\r\n }))\r\n }, [files, userEmail])\r\n\r\n return useMemo((): UseViewerDataResult => {\r\n switch (currentViewer) {\r\n // -----------------------------------------------------------------------\r\n case ViewerNames.buildings: {\r\n const data = buildings || []\r\n const searched = data.filter(b =>\r\n searchFields([\r\n b.buildingName,\r\n b.buildingCountrySubdivision,\r\n b.buildingMunicipality,\r\n b.buildingType,\r\n b.buildingAddress,\r\n ], searchTerm),\r\n )\r\n const filteredData = filterHelper(searched, activeFilters)\r\n const filtersOptions = getNarrowedFilterOptions(data, [], filters)\r\n\r\n return {\r\n data,\r\n filteredData,\r\n filtersOptions,\r\n isLoading: loadingFlags.buildings,\r\n }\r\n }\r\n\r\n // -----------------------------------------------------------------------\r\n case ViewerNames.sites: {\r\n const data = sites || []\r\n const searched = data.filter(s => searchAllValues(s, searchTerm))\r\n const filteredData = filterHelper(searched, activeFilters)\r\n const filtersOptions = getNarrowedFilterOptions(data, [], filters)\r\n\r\n return {\r\n data,\r\n filteredData,\r\n filtersOptions,\r\n isLoading: loadingFlags.sites,\r\n }\r\n }\r\n\r\n // -----------------------------------------------------------------------\r\n case ViewerNames.infrastructure: {\r\n const data = infrastructures || []\r\n const searched = data.filter((infra: Infrastructure) =>\r\n searchFields([\r\n infra.infrastructureName,\r\n infra.infrastructureType,\r\n infra.infrastructureCountrySubdivision,\r\n infra.infrastructureMunicipality,\r\n ], searchTerm),\r\n )\r\n const filteredData = filterHelper(searched, activeFilters)\r\n const filtersOptions = getNarrowedFilterOptions(data, [], filters)\r\n\r\n return {\r\n data,\r\n filteredData,\r\n filtersOptions,\r\n isLoading: loadingFlags.infrastructures,\r\n }\r\n }\r\n\r\n // -----------------------------------------------------------------------\r\n case ViewerNames.files: {\r\n const data = mappedFiles.filter(file => file.metadata.tag?.toLowerCase() !== 'user')\r\n const searched = data.filter(f => searchAllValues(f, searchTerm))\r\n const filteredData = filterHelper(searched, activeFilters)\r\n\r\n const baseFilterOptions = [\r\n {\r\n id: 'name',\r\n label: 'Name',\r\n type: 'string',\r\n valueOptions: getUniqueColumnValues(data, 'name'),\r\n },\r\n {\r\n id: 'dateUploaded',\r\n label: 'Date Uploaded',\r\n type: 'date',\r\n valueOptions: getUniqueColumnValues(data, 'dateUploaded'),\r\n },\r\n {\r\n id: 'fileType',\r\n label: 'File Type',\r\n type: 'string',\r\n valueOptions: getUniqueColumnValues(data, 'fileType'),\r\n },\r\n {\r\n id: 'fileSize',\r\n label: 'File Size',\r\n type: 'string',\r\n valueOptions: getUniqueColumnValues(data, 'fileSize'),\r\n },\r\n {\r\n id: 'uploadedBy',\r\n label: 'Uploaded By',\r\n type: 'string',\r\n valueOptions: getUniqueColumnValues(data, 'uploadedBy'),\r\n },\r\n ]\r\n\r\n const filtersOptions = getNarrowedFilterOptions(data, baseFilterOptions, filters)\r\n\r\n return {\r\n data,\r\n filteredData,\r\n filtersOptions,\r\n isLoading: loadingFlags.files,\r\n }\r\n }\r\n\r\n // -----------------------------------------------------------------------\r\n case ViewerNames.users: {\r\n const data = users || []\r\n const searched = data.filter(u =>\r\n searchFields([u.name, u.email, u.organizationId], searchTerm),\r\n )\r\n const filteredData = filterHelper(searched, activeFilters)\r\n const filtersOptions = getNarrowedFilterOptions(data, [], filters)\r\n\r\n return {\r\n data,\r\n filteredData,\r\n filtersOptions,\r\n isLoading: loadingFlags.users,\r\n }\r\n }\r\n\r\n // -----------------------------------------------------------------------\r\n default:\r\n return {\r\n data: [],\r\n filteredData: [],\r\n filtersOptions: [],\r\n isLoading: false,\r\n }\r\n }\r\n }, [\r\n currentViewer,\r\n buildings,\r\n sites,\r\n infrastructures,\r\n mappedFiles,\r\n users,\r\n loadingFlags,\r\n searchTerm,\r\n activeFilters,\r\n filters,\r\n ])\r\n}"],"mappings":"AAGA,SAAS,eAAe;AAEx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AAAA,UACP,cAAc,CAAC;AAAA,UACf,gBAAgB,CAAC;AAAA,UACjB,WAAW;AAAA,QACb;AAAA,IACJ;AAAA,EACF,GAAG;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/useViewerData.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport { useMemo } from 'react'\n\nimport { ViewerNames } from '../../../../types/dbTypes'\n\nimport { toDisplayString } from '../../../../utils/utils'\n\nimport { filterHelper, getNarrowedFilterOptions, getUniqueColumnValues } from './filterHelper'\nimport { formatPosition } from './positionParser'\n\nimport type { Building, Infrastructure, Site, User, DbFile } from '../../../../types/dbTypes'\nimport type { FileRow } from '../../../../types/files'\nimport type { FilterState } from '../../../../types/global'\n\n\n// ---------------------------------------------------------------------------\n// Types\n// ---------------------------------------------------------------------------\n\ninterface UseViewerDataParams {\n currentViewer: ViewerNames\n buildings: Building[] | undefined\n sites: Site[] | undefined\n infrastructures: Infrastructure[] | undefined\n files: {\n id: number | string\n name: string\n attachedFilesBuildingId?: number | null\n uploadedAt: string | Date\n extension?: string | null\n sizeBytes: number\n position?: unknown\n }[] | undefined\n users: Partial<User>[] | undefined\n /** Loading flags from each data hook */\n loadingFlags: {\n buildings: boolean\n sites: boolean\n infrastructures: boolean\n files: boolean\n users: boolean\n }\n searchTerm: string\n activeFilters: FilterState[]\n /** Raw filter state (used by getNarrowedFilterOptions) */\n filters: FilterState[]\n /** Current user email */\n userEmail: string\n}\n\ninterface UseViewerDataResult {\n data: Building[] | Site[] | Infrastructure[] | FileRow[] | Partial<User>[]\n filteredData: Building[] | Site[] | Infrastructure[] | FileRow[] | Partial<User>[]\n filtersOptions: ReturnType<typeof getNarrowedFilterOptions>\n isLoading: boolean\n}\n\n// ---------------------------------------------------------------------------\n// Search helpers\n// ---------------------------------------------------------------------------\n\nfunction matchesSearch(value: unknown, term: string): boolean {\n return toDisplayString(value).toLowerCase().includes(term.toLowerCase())\n}\n\nfunction searchFields(fields: unknown[], term: string): boolean {\n return fields.some(v => matchesSearch(v, term))\n}\n\nfunction searchAllValues(obj: object, term: string): boolean {\n return Object.values(obj).some(v => matchesSearch(v, term))\n}\n\n// ---------------------------------------------------------------------------\n// Hook\n// ---------------------------------------------------------------------------\n\nexport function useViewerData({\n currentViewer,\n buildings,\n sites,\n infrastructures,\n files,\n users,\n loadingFlags,\n searchTerm,\n activeFilters,\n filters,\n userEmail,\n}: UseViewerDataParams): UseViewerDataResult {\n\n // Memoize the mapped FileRow array independently so the files case below\n // doesn't re-derive it on every render unrelated to files data changing.\n const mappedFiles: FileRow[] = useMemo(() => {\n if (!files) return []\n return files.map(file => ({\n id: String(file.id),\n name: file.name,\n attachedTo: [\n { type: 'building' as const, buildingId: String(file.attachedFilesBuildingId || '') },\n ],\n dateUploaded: file.uploadedAt,\n uploadedBy: userEmail || 'Unknown',\n fileType: file.extension?.toUpperCase() || '',\n fileSize: `${(file.sizeBytes / (1024 * 1024)).toFixed(3)} MB`,\n position: formatPosition(file.position as string),\n metadata: file as unknown as DbFile,\n }))\n }, [files, userEmail])\n\n return useMemo((): UseViewerDataResult => {\n switch (currentViewer) {\n // -----------------------------------------------------------------------\n case ViewerNames.buildings: {\n const data = buildings || []\n const searched = data.filter(b =>\n searchFields([\n b.buildingName,\n b.buildingCountrySubdivision,\n b.buildingMunicipality,\n b.buildingType,\n b.buildingAddress,\n ], searchTerm),\n )\n const filteredData = filterHelper(searched, activeFilters)\n const filtersOptions = getNarrowedFilterOptions(data, [], filters)\n\n return {\n data,\n filteredData,\n filtersOptions,\n isLoading: loadingFlags.buildings,\n }\n }\n\n // -----------------------------------------------------------------------\n case ViewerNames.sites: {\n const data = sites || []\n const searched = data.filter(s => searchAllValues(s, searchTerm))\n const filteredData = filterHelper(searched, activeFilters)\n const filtersOptions = getNarrowedFilterOptions(data, [], filters)\n\n return {\n data,\n filteredData,\n filtersOptions,\n isLoading: loadingFlags.sites,\n }\n }\n\n // -----------------------------------------------------------------------\n case ViewerNames.infrastructure: {\n const data = infrastructures || []\n const searched = data.filter((infra: Infrastructure) =>\n searchFields([\n infra.infrastructureName,\n infra.infrastructureType,\n infra.infrastructureCountrySubdivision,\n infra.infrastructureMunicipality,\n ], searchTerm),\n )\n const filteredData = filterHelper(searched, activeFilters)\n const filtersOptions = getNarrowedFilterOptions(data, [], filters)\n\n return {\n data,\n filteredData,\n filtersOptions,\n isLoading: loadingFlags.infrastructures,\n }\n }\n\n // -----------------------------------------------------------------------\n case ViewerNames.files: {\n const data = mappedFiles.filter(file => file.metadata.tag?.toLowerCase() !== 'user')\n const searched = data.filter(f => searchAllValues(f, searchTerm))\n const filteredData = filterHelper(searched, activeFilters)\n\n const baseFilterOptions = [\n {\n id: 'name',\n label: 'Name',\n type: 'string',\n valueOptions: getUniqueColumnValues(data, 'name'),\n },\n {\n id: 'dateUploaded',\n label: 'Date Uploaded',\n type: 'date',\n valueOptions: getUniqueColumnValues(data, 'dateUploaded'),\n },\n {\n id: 'fileType',\n label: 'File Type',\n type: 'string',\n valueOptions: getUniqueColumnValues(data, 'fileType'),\n },\n {\n id: 'fileSize',\n label: 'File Size',\n type: 'string',\n valueOptions: getUniqueColumnValues(data, 'fileSize'),\n },\n {\n id: 'uploadedBy',\n label: 'Uploaded By',\n type: 'string',\n valueOptions: getUniqueColumnValues(data, 'uploadedBy'),\n },\n ]\n\n const filtersOptions = getNarrowedFilterOptions(data, baseFilterOptions, filters)\n\n return {\n data,\n filteredData,\n filtersOptions,\n isLoading: loadingFlags.files,\n }\n }\n\n // -----------------------------------------------------------------------\n case ViewerNames.users: {\n const data = users || []\n const searched = data.filter(u =>\n searchFields([u.name, u.email, u.organizationId], searchTerm),\n )\n const filteredData = filterHelper(searched, activeFilters)\n const filtersOptions = getNarrowedFilterOptions(data, [], filters)\n\n return {\n data,\n filteredData,\n filtersOptions,\n isLoading: loadingFlags.users,\n }\n }\n\n // -----------------------------------------------------------------------\n default:\n return {\n data: [],\n filteredData: [],\n filtersOptions: [],\n isLoading: false,\n }\n }\n }, [\n currentViewer,\n buildings,\n sites,\n infrastructures,\n mappedFiles,\n users,\n loadingFlags,\n searchTerm,\n activeFilters,\n filters,\n ])\n}"],"mappings":"AAGA,SAAS,eAAe;AAExB,SAAS,mBAAmB;AAE5B,SAAS,uBAAuB;AAEhC,SAAS,cAAc,0BAA0B,6BAA6B;AAC9E,SAAS,sBAAsB;AAqD/B,SAAS,cAAc,OAAgB,MAAuB;AAC5D,SAAO,gBAAgB,KAAK,EAAE,YAAY,EAAE,SAAS,KAAK,YAAY,CAAC;AACzE;AAEA,SAAS,aAAa,QAAmB,MAAuB;AAC9D,SAAO,OAAO,KAAK,OAAK,cAAc,GAAG,IAAI,CAAC;AAChD;AAEA,SAAS,gBAAgB,KAAa,MAAuB;AAC3D,SAAO,OAAO,OAAO,GAAG,EAAE,KAAK,OAAK,cAAc,GAAG,IAAI,CAAC;AAC5D;AAMO,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA6C;AAI3C,QAAM,cAAyB,QAAQ,MAAM;AAC3C,QAAI,CAAC,MAAO,QAAO,CAAC;AACpB,WAAO,MAAM,IAAI,UAAK;AAjG1B;AAiG8B;AAAA,QACxB,IAAI,OAAO,KAAK,EAAE;AAAA,QAClB,MAAM,KAAK;AAAA,QACX,YAAY;AAAA,UACV,EAAE,MAAM,YAAqB,YAAY,OAAO,KAAK,2BAA2B,EAAE,EAAE;AAAA,QACtF;AAAA,QACA,cAAc,KAAK;AAAA,QACnB,YAAY,aAAa;AAAA,QACzB,YAAU,UAAK,cAAL,mBAAgB,k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Aa,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,UAAU;AAAA,QAC9D;AACA,cAAM,eAAe,aAAa,UAAU,aAAa;AACzD,cAAM,iBAAiB,yBAAyB,MAAM,CAAC,GAAG,OAAO;AAEjE,eAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA,WAAW,aAAa;AAAA,QAC1B;AAAA,MACF;AAAA;AAAA,MAGA;AACE,eAAO;AAAA,UACL,MAAM,CAAC;AAAA,UACP,cAAc,CAAC;AAAA,UACf,gBAAgB,CAAC;AAAA,UACjB,WAAW;AAAA,QACb;AAAA,IACJ;AAAA,EACF,GAAG;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/viewerConfig.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\r\n// Copyright (C) 2025 Collab Digital Twins\r\n\r\nimport {\r\n Building2,\r\n BoxSelect,\r\n TrainTrack,\r\n GalleryVerticalEnd,\r\n Blocks,\r\n Users,\r\n type LucideIcon,\r\n} from 'lucide-react'\r\n\r\nimport { ViewerNames } from '../../../../types/dbTypes'\r\nimport { DataTypes } from '../../../../types/global'\r\n\r\nexport interface ViewerConfig {\r\n /** Key into the 'DataMenu' translation namespace, e.g. t(cfg.titleKey) */\r\n titleKey: string\r\n icon: LucideIcon\r\n /** Corresponding DataTypes value, undefined for viewers with no data type (map, bim, etc.) */\r\n dataType?: DataTypes\r\n}\r\n\r\n/**\r\n * Static config for every viewer that DataMenu renders.\r\n * - titleKey → key inside the \"DataMenu\" i18n namespace\r\n * - icon → Lucide icon component (pass size/className at the call site)\r\n * - dataType → DataTypes enum value used by MoreOptions, permissions, etc.\r\n */\r\nexport const VIEWER_CONFIG: Partial<Record<ViewerNames, ViewerConfig>> = {\r\n [ViewerNames.buildings]: {\r\n titleKey: 'buildingHeader',\r\n icon: Building2,\r\n dataType: DataTypes.building,\r\n },\r\n [ViewerNames.sites]: {\r\n titleKey: 'siteHeader',\r\n icon: BoxSelect,\r\n dataType: DataTypes.site,\r\n },\r\n [ViewerNames.infrastructure]: {\r\n titleKey: 'infrastructureHeader',\r\n icon: TrainTrack,\r\n dataType: DataTypes.infrastructure,\r\n },\r\n [ViewerNames.files]: {\r\n titleKey: 'fileHeader',\r\n icon: GalleryVerticalEnd,\r\n dataType: DataTypes.file,\r\n },\r\n [ViewerNames.extensions]: {\r\n titleKey: 'pluginsHeader',\r\n icon: Blocks,\r\n dataType: undefined,\r\n },\r\n [ViewerNames.users]: {\r\n titleKey: 'usersHeader',\r\n icon: Users,\r\n dataType: DataTypes.user,\r\n },\r\n}"],"mappings":"AAGA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAEP,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAgBnB,MAAM,gBAA4D;AAAA,EACvE,CAAC,YAAY,SAAS,GAAG;AAAA,IACvB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AAAA,EACA,CAAC,YAAY,KAAK,GAAG;AAAA,IACnB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AAAA,EACA,CAAC,YAAY,cAAc,GAAG;AAAA,IAC5B,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AAAA,EACA,CAAC,YAAY,KAAK,GAAG;AAAA,IACnB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AAAA,EACA,CAAC,YAAY,UAAU,GAAG;AAAA,IACxB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA,CAAC,YAAY,KAAK,GAAG;AAAA,IACnB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../../../../src/core/components/viewers/Data/utils/viewerConfig.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-or-later\n// Copyright (C) 2025 Collab Digital Twins\n\nimport {\n Building2,\n BoxSelect,\n TrainTrack,\n GalleryVerticalEnd,\n Blocks,\n Users,\n type LucideIcon,\n} from 'lucide-react'\n\nimport { ViewerNames } from '../../../../types/dbTypes'\nimport { DataTypes } from '../../../../types/global'\n\nexport interface ViewerConfig {\n /** Key into the 'DataMenu' translation namespace, e.g. t(cfg.titleKey) */\n titleKey: string\n icon: LucideIcon\n /** Corresponding DataTypes value, undefined for viewers with no data type (map, bim, etc.) */\n dataType?: DataTypes\n}\n\n/**\n * Static config for every viewer that DataMenu renders.\n * - titleKey → key inside the \"DataMenu\" i18n namespace\n * - icon → Lucide icon component (pass size/className at the call site)\n * - dataType → DataTypes enum value used by MoreOptions, permissions, etc.\n */\nexport const VIEWER_CONFIG: Partial<Record<ViewerNames, ViewerConfig>> = {\n [ViewerNames.buildings]: {\n titleKey: 'buildingHeader',\n icon: Building2,\n dataType: DataTypes.building,\n },\n [ViewerNames.sites]: {\n titleKey: 'siteHeader',\n icon: BoxSelect,\n dataType: DataTypes.site,\n },\n [ViewerNames.infrastructure]: {\n titleKey: 'infrastructureHeader',\n icon: TrainTrack,\n dataType: DataTypes.infrastructure,\n },\n [ViewerNames.files]: {\n titleKey: 'fileHeader',\n icon: GalleryVerticalEnd,\n dataType: DataTypes.file,\n },\n [ViewerNames.extensions]: {\n titleKey: 'pluginsHeader',\n icon: Blocks,\n dataType: undefined,\n },\n [ViewerNames.users]: {\n titleKey: 'usersHeader',\n icon: Users,\n dataType: DataTypes.user,\n },\n}"],"mappings":"AAGA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAEP,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAgBnB,MAAM,gBAA4D;AAAA,EACvE,CAAC,YAAY,SAAS,GAAG;AAAA,IACvB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AAAA,EACA,CAAC,YAAY,KAAK,GAAG;AAAA,IACnB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AAAA,EACA,CAAC,YAAY,cAAc,GAAG;AAAA,IAC5B,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AAAA,EACA,CAAC,YAAY,KAAK,GAAG;AAAA,IACnB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AAAA,EACA,CAAC,YAAY,UAAU,GAAG;AAAA,IACxB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AAAA,EACA,CAAC,YAAY,KAAK,GAAG;AAAA,IACnB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU,UAAU;AAAA,EACtB;AACF;","names":[]}