@itwin/grouping-mapping-widget 0.19.2 → 0.20.1

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 (996) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/WidgetShell/GroupingMapping.d.ts +34 -0
  3. package/lib/cjs/WidgetShell/GroupingMapping.js +79 -0
  4. package/lib/cjs/WidgetShell/GroupingMapping.js.map +1 -0
  5. package/lib/cjs/WidgetShell/GroupingMappingContent.js +51 -0
  6. package/lib/cjs/WidgetShell/GroupingMappingContent.js.map +1 -0
  7. package/lib/cjs/WidgetShell/GroupingMappingHeader.js +24 -0
  8. package/lib/cjs/WidgetShell/GroupingMappingHeader.js.map +1 -0
  9. package/lib/cjs/WidgetShell/GroupingMappingWidget.d.ts +10 -0
  10. package/lib/cjs/WidgetShell/GroupingMappingWidget.js +31 -0
  11. package/lib/cjs/WidgetShell/GroupingMappingWidget.js.map +1 -0
  12. package/lib/cjs/WidgetShell/Router/GroupingMappingRouter.d.ts +8 -0
  13. package/lib/cjs/WidgetShell/Router/GroupingMappingRouter.js +107 -0
  14. package/lib/cjs/WidgetShell/Router/GroupingMappingRouter.js.map +1 -0
  15. package/lib/cjs/WidgetShell/WidgetHeader/WidgetHeader.js.map +1 -0
  16. package/lib/cjs/common/utils.d.ts +11 -0
  17. package/lib/cjs/common/utils.js +89 -0
  18. package/lib/cjs/common/utils.js.map +1 -0
  19. package/lib/cjs/common/viewerUtils.d.ts +30 -0
  20. package/lib/cjs/common/viewerUtils.js +293 -0
  21. package/lib/cjs/common/viewerUtils.js.map +1 -0
  22. package/lib/cjs/components/GroupingMappingContext.d.ts +39 -0
  23. package/lib/cjs/components/GroupingMappingContext.js +133 -0
  24. package/lib/cjs/components/GroupingMappingContext.js.map +1 -0
  25. package/lib/cjs/components/Groups/Editing/GroupAction.js +156 -0
  26. package/lib/cjs/components/Groups/Editing/GroupAction.js.map +1 -0
  27. package/lib/cjs/components/Groups/Editing/GroupDetails.js +34 -0
  28. package/lib/cjs/components/Groups/Editing/GroupDetails.js.map +1 -0
  29. package/lib/cjs/components/Groups/Editing/GroupDetailsActionPanel.js.map +1 -0
  30. package/lib/cjs/components/Groups/Editing/GroupDetailsStep.js.map +1 -0
  31. package/lib/cjs/components/Groups/GroupColorLegend.js.map +1 -0
  32. package/lib/cjs/components/Groups/GroupItem.d.ts +13 -0
  33. package/lib/cjs/components/Groups/GroupItem.js +23 -0
  34. package/lib/cjs/components/Groups/GroupItem.js.map +1 -0
  35. package/lib/cjs/components/Groups/GroupMenuActions.d.ts +14 -0
  36. package/lib/cjs/components/Groups/GroupMenuActions.js +80 -0
  37. package/lib/cjs/components/Groups/GroupMenuActions.js.map +1 -0
  38. package/lib/cjs/components/Groups/GroupOverlapProgressBar.d.ts +11 -0
  39. package/lib/cjs/components/Groups/GroupOverlapProgressBar.js +18 -0
  40. package/lib/cjs/components/Groups/GroupOverlapProgressBar.js.map +1 -0
  41. package/lib/cjs/components/Groups/Groups.d.ts +18 -0
  42. package/lib/cjs/components/Groups/Groups.js +47 -0
  43. package/lib/cjs/components/Groups/Groups.js.map +1 -0
  44. package/lib/cjs/components/Groups/GroupsAddButton.d.ts +10 -0
  45. package/lib/cjs/components/Groups/GroupsAddButton.js.map +1 -0
  46. package/lib/cjs/components/Groups/GroupsShowHideButtons.js +45 -0
  47. package/lib/cjs/components/Groups/GroupsShowHideButtons.js.map +1 -0
  48. package/lib/cjs/components/Groups/GroupsView.d.ts +43 -0
  49. package/lib/cjs/components/Groups/GroupsView.js +49 -0
  50. package/lib/cjs/components/Groups/GroupsView.js.map +1 -0
  51. package/lib/cjs/components/Groups/GroupsView.scss +53 -0
  52. package/lib/cjs/components/Groups/GroupsVisualization.js +153 -0
  53. package/lib/cjs/components/Groups/GroupsVisualization.js.map +1 -0
  54. package/lib/cjs/components/Groups/GroupsVisualization.scss +18 -0
  55. package/lib/cjs/components/Groups/GroupsVisualizationActions.js +27 -0
  56. package/lib/cjs/components/Groups/GroupsVisualizationActions.js.map +1 -0
  57. package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.d.ts +17 -0
  58. package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.js +91 -0
  59. package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.js.map +1 -0
  60. package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.scss +14 -0
  61. package/lib/cjs/components/Groups/QueryBuilder/QueryBuilder.js.map +1 -0
  62. package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderActionPanel.js.map +1 -0
  63. package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderCustomUI.d.ts +13 -0
  64. package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderCustomUI.js +28 -0
  65. package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderCustomUI.js.map +1 -0
  66. package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderStep.js.map +1 -0
  67. package/lib/cjs/components/Groups/ToggleGroupVisibility.js.map +1 -0
  68. package/lib/cjs/components/Groups/groupsHelpers.d.ts +11 -0
  69. package/lib/cjs/components/Groups/groupsHelpers.js +202 -0
  70. package/lib/cjs/components/Groups/groupsHelpers.js.map +1 -0
  71. package/lib/cjs/components/Groups/hooks/useGroupsOperations.d.ts +26 -0
  72. package/lib/cjs/components/Groups/hooks/useGroupsOperations.js +71 -0
  73. package/lib/cjs/components/Groups/hooks/useGroupsOperations.js.map +1 -0
  74. package/lib/cjs/components/Groups/hooks/useVisualization.js +68 -0
  75. package/lib/cjs/components/Groups/hooks/useVisualization.js.map +1 -0
  76. package/lib/cjs/components/Mappings/BlockingOverlay.js +20 -0
  77. package/lib/cjs/components/Mappings/BlockingOverlay.js.map +1 -0
  78. package/lib/cjs/components/Mappings/ConfirmMappingsImport.js +134 -0
  79. package/lib/cjs/components/Mappings/ConfirmMappingsImport.js.map +1 -0
  80. package/lib/cjs/components/Mappings/Editing/MappingAction.js +109 -0
  81. package/lib/cjs/components/Mappings/Editing/MappingAction.js.map +1 -0
  82. package/lib/cjs/components/Mappings/Extraction/ExtractionLogCustomFilter.js +42 -0
  83. package/lib/cjs/components/Mappings/Extraction/ExtractionLogCustomFilter.js.map +1 -0
  84. package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.d.ts +11 -0
  85. package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.js +129 -0
  86. package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -0
  87. package/lib/cjs/components/Mappings/Extraction/ExtractionStatusIcon.d.ts +8 -0
  88. package/lib/cjs/components/Mappings/Extraction/ExtractionStatusIcon.js.map +1 -0
  89. package/lib/cjs/components/Mappings/Import/MappingImportWizardModal.js +125 -0
  90. package/lib/cjs/components/Mappings/Import/MappingImportWizardModal.js.map +1 -0
  91. package/lib/cjs/components/Mappings/Import/SelectIModel.js +102 -0
  92. package/lib/cjs/components/Mappings/Import/SelectIModel.js.map +1 -0
  93. package/lib/cjs/components/Mappings/Import/SelectITwin.js +115 -0
  94. package/lib/cjs/components/Mappings/Import/SelectITwin.js.map +1 -0
  95. package/lib/cjs/components/Mappings/Import/SelectMappings.d.ts +16 -0
  96. package/lib/cjs/components/Mappings/Import/SelectMappings.js +88 -0
  97. package/lib/cjs/components/Mappings/Import/SelectMappings.js.map +1 -0
  98. package/lib/cjs/components/Mappings/MappingViewActionGroup.js.map +1 -0
  99. package/lib/cjs/components/Mappings/Mappings.d.ts +13 -0
  100. package/lib/cjs/components/Mappings/Mappings.js +45 -0
  101. package/lib/cjs/components/Mappings/Mappings.js.map +1 -0
  102. package/lib/cjs/components/Mappings/MappingsView.d.ts +39 -0
  103. package/lib/cjs/components/Mappings/MappingsView.js +64 -0
  104. package/lib/cjs/components/Mappings/MappingsView.js.map +1 -0
  105. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.d.ts +27 -0
  106. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js +127 -0
  107. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js.map +1 -0
  108. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.js +84 -0
  109. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.js.map +1 -0
  110. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js +150 -0
  111. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js.map +1 -0
  112. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.js +84 -0
  113. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.js.map +1 -0
  114. package/lib/cjs/components/Properties/CalculatedProperties/SharedCalculatedPropertyForms.js.map +1 -0
  115. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.d.ts +12 -0
  116. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.js +185 -0
  117. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.js.map +1 -0
  118. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.js +84 -0
  119. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.js.map +1 -0
  120. package/lib/cjs/components/Properties/GroupColorToggle.js +69 -0
  121. package/lib/cjs/components/Properties/GroupColorToggle.js.map +1 -0
  122. package/lib/cjs/components/Properties/GroupInformationPanel.js.map +1 -0
  123. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.js +287 -0
  124. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.js.map +1 -0
  125. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.js +81 -0
  126. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.js.map +1 -0
  127. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyUtils.js.map +1 -0
  128. package/lib/cjs/components/Properties/GroupProperties/SaveModal.js.map +1 -0
  129. package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.d.ts +8 -0
  130. package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.js +52 -0
  131. package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.js.map +1 -0
  132. package/lib/cjs/components/Properties/PropertyAction.js +99 -0
  133. package/lib/cjs/components/Properties/PropertyAction.js.map +1 -0
  134. package/lib/cjs/components/Properties/PropertyMenu.js +60 -0
  135. package/lib/cjs/components/Properties/PropertyMenu.js.map +1 -0
  136. package/lib/cjs/components/Properties/PropertyMenuWithVisualization.js.map +1 -0
  137. package/lib/cjs/components/Properties/PropertyNameCell.js.map +1 -0
  138. package/lib/cjs/components/Properties/PropertyTable.js +53 -0
  139. package/lib/cjs/components/Properties/PropertyTable.js.map +1 -0
  140. package/lib/cjs/components/Properties/PropertyTableToolbar.js.map +1 -0
  141. package/lib/cjs/components/Properties/hooks/useFetchData.js +43 -0
  142. package/lib/cjs/components/Properties/hooks/useFetchData.js.map +1 -0
  143. package/lib/cjs/components/Properties/hooks/useFormulaValidation.d.ts +6 -0
  144. package/lib/cjs/components/Properties/hooks/useFormulaValidation.js +29 -0
  145. package/lib/cjs/components/Properties/hooks/useFormulaValidation.js.map +1 -0
  146. package/lib/cjs/components/Properties/hooks/useValidator.js.map +1 -0
  147. package/lib/cjs/components/SharedComponents/ActionPanel.js +39 -0
  148. package/lib/cjs/components/SharedComponents/ActionPanel.js.map +1 -0
  149. package/lib/cjs/components/SharedComponents/DeleteModal.js +62 -0
  150. package/lib/cjs/components/SharedComponents/DeleteModal.js.map +1 -0
  151. package/lib/cjs/components/SharedComponents/EmptyMessage.d.ts +7 -0
  152. package/lib/cjs/components/SharedComponents/EmptyMessage.js +17 -0
  153. package/lib/cjs/components/SharedComponents/EmptyMessage.js.map +1 -0
  154. package/lib/cjs/components/SharedComponents/EmptyMessage.scss +12 -0
  155. package/lib/cjs/components/SharedComponents/HorizontalTile.d.ts +19 -0
  156. package/lib/cjs/components/SharedComponents/HorizontalTile.js +27 -0
  157. package/lib/cjs/components/SharedComponents/HorizontalTile.js.map +1 -0
  158. package/lib/cjs/components/SharedComponents/HorizontalTile.scss +58 -0
  159. package/lib/cjs/components/SharedComponents/LoadingOverlay.d.ts +4 -0
  160. package/lib/cjs/components/SharedComponents/LoadingOverlay.js +19 -0
  161. package/lib/cjs/components/SharedComponents/LoadingOverlay.js.map +1 -0
  162. package/lib/cjs/components/SharedComponents/LoadingOverlay.scss +13 -0
  163. package/lib/cjs/components/SharedComponents/LoadingSpinner.d.ts +4 -0
  164. package/lib/cjs/components/SharedComponents/LoadingSpinner.js +19 -0
  165. package/lib/cjs/components/SharedComponents/LoadingSpinner.js.map +1 -0
  166. package/lib/cjs/components/SharedComponents/LoadingSpinner.scss +8 -0
  167. package/lib/cjs/components/SharedComponents/StatusIcon.js.map +1 -0
  168. package/lib/cjs/components/context/ExtractionClientContext.js.map +1 -0
  169. package/lib/cjs/components/context/ExtractionStatusDataContext.d.ts +20 -0
  170. package/lib/cjs/components/context/ExtractionStatusDataContext.js +26 -0
  171. package/lib/cjs/components/context/ExtractionStatusDataContext.js.map +1 -0
  172. package/lib/cjs/components/context/GroupHilitedElementsContext.d.ts +38 -0
  173. package/lib/cjs/components/context/GroupHilitedElementsContext.js +55 -0
  174. package/lib/cjs/components/context/GroupHilitedElementsContext.js.map +1 -0
  175. package/lib/cjs/components/context/GroupingApiConfigContext.js.map +1 -0
  176. package/lib/cjs/components/context/GroupingMappingCustomUIContext.js.map +1 -0
  177. package/lib/cjs/components/context/IModelsClientContext.js.map +1 -0
  178. package/lib/cjs/components/context/ITwinsClientContext.js.map +1 -0
  179. package/lib/cjs/components/context/MappingClientContext.js.map +1 -0
  180. package/lib/cjs/components/context/PropertiesContext.js.map +1 -0
  181. package/lib/cjs/components/context/PropertyGridWrapperContext.d.ts +13 -0
  182. package/lib/cjs/components/context/PropertyGridWrapperContext.js.map +1 -0
  183. package/lib/cjs/components/customUI/DefaultGroupingUI.js.map +1 -0
  184. package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.js +107 -0
  185. package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.js.map +1 -0
  186. package/lib/cjs/components/customUI/GroupingMappingCustomUI.js.map +1 -0
  187. package/lib/cjs/components/customUI/ManualGroupingCustomUI.js +32 -0
  188. package/lib/cjs/components/customUI/ManualGroupingCustomUI.js.map +1 -0
  189. package/lib/cjs/components/customUI/SearchGroupingCustomUI.js +98 -0
  190. package/lib/cjs/components/customUI/SearchGroupingCustomUI.js.map +1 -0
  191. package/lib/cjs/grouping-mapping-widget.d.ts +23 -23
  192. package/lib/cjs/grouping-mapping-widget.js +23 -23
  193. package/lib/cjs/grouping-mapping-widget.js.map +1 -1
  194. package/lib/cjs/test/GroupPropertyUtils.test.js +1 -1
  195. package/lib/cjs/test/GroupPropertyUtils.test.js.map +1 -1
  196. package/lib/cjs/test/GroupingMappingCustomUI.test.js +4 -4
  197. package/lib/cjs/test/GroupingMappingCustomUI.test.js.map +1 -1
  198. package/lib/cjs/test/QueryBuilder.test.js +1 -1
  199. package/lib/cjs/test/QueryBuilder.test.js.map +1 -1
  200. package/lib/cjs/test/WidgetHeader.test.js +1 -1
  201. package/lib/cjs/test/WidgetHeader.test.js.map +1 -1
  202. package/lib/cjs/test/test-utils.js +1 -1
  203. package/lib/cjs/test/test-utils.js.map +1 -1
  204. package/lib/esm/WidgetShell/GroupingMapping.d.ts +34 -0
  205. package/lib/esm/WidgetShell/GroupingMapping.js +57 -0
  206. package/lib/esm/WidgetShell/GroupingMapping.js.map +1 -0
  207. package/lib/esm/WidgetShell/GroupingMappingContent.js +28 -0
  208. package/lib/esm/WidgetShell/GroupingMappingContent.js.map +1 -0
  209. package/lib/esm/WidgetShell/GroupingMappingHeader.js +17 -0
  210. package/lib/esm/WidgetShell/GroupingMappingHeader.js.map +1 -0
  211. package/lib/esm/WidgetShell/GroupingMappingWidget.d.ts +10 -0
  212. package/lib/esm/WidgetShell/GroupingMappingWidget.js +24 -0
  213. package/lib/esm/WidgetShell/GroupingMappingWidget.js.map +1 -0
  214. package/lib/esm/WidgetShell/Router/GroupingMappingRouter.d.ts +8 -0
  215. package/lib/esm/WidgetShell/Router/GroupingMappingRouter.js +100 -0
  216. package/lib/esm/WidgetShell/Router/GroupingMappingRouter.js.map +1 -0
  217. package/lib/esm/WidgetShell/WidgetHeader/WidgetHeader.js.map +1 -0
  218. package/lib/esm/common/utils.d.ts +11 -0
  219. package/lib/esm/common/utils.js +80 -0
  220. package/lib/esm/common/utils.js.map +1 -0
  221. package/lib/esm/common/viewerUtils.d.ts +30 -0
  222. package/lib/esm/common/viewerUtils.js +268 -0
  223. package/lib/esm/common/viewerUtils.js.map +1 -0
  224. package/lib/esm/components/GroupingMappingContext.d.ts +39 -0
  225. package/lib/esm/components/GroupingMappingContext.js +110 -0
  226. package/lib/esm/components/GroupingMappingContext.js.map +1 -0
  227. package/lib/esm/components/Groups/Editing/GroupAction.js +130 -0
  228. package/lib/esm/components/Groups/Editing/GroupAction.js.map +1 -0
  229. package/lib/esm/components/Groups/Editing/GroupDetails.js +27 -0
  230. package/lib/esm/components/Groups/Editing/GroupDetails.js.map +1 -0
  231. package/lib/esm/components/Groups/Editing/GroupDetailsActionPanel.js.map +1 -0
  232. package/lib/esm/components/Groups/Editing/GroupDetailsStep.js.map +1 -0
  233. package/lib/esm/components/Groups/GroupColorLegend.js.map +1 -0
  234. package/lib/esm/components/Groups/GroupItem.d.ts +13 -0
  235. package/lib/esm/components/Groups/GroupItem.js +16 -0
  236. package/lib/esm/components/Groups/GroupItem.js.map +1 -0
  237. package/lib/esm/components/Groups/GroupMenuActions.d.ts +14 -0
  238. package/lib/esm/components/Groups/GroupMenuActions.js +57 -0
  239. package/lib/esm/components/Groups/GroupMenuActions.js.map +1 -0
  240. package/lib/esm/components/Groups/GroupOverlapProgressBar.d.ts +11 -0
  241. package/lib/esm/components/Groups/GroupOverlapProgressBar.js +11 -0
  242. package/lib/esm/components/Groups/GroupOverlapProgressBar.js.map +1 -0
  243. package/lib/esm/components/Groups/Groups.d.ts +18 -0
  244. package/lib/esm/components/Groups/Groups.js +24 -0
  245. package/lib/esm/components/Groups/Groups.js.map +1 -0
  246. package/lib/esm/components/Groups/GroupsAddButton.d.ts +10 -0
  247. package/lib/esm/components/Groups/GroupsAddButton.js.map +1 -0
  248. package/lib/esm/components/Groups/GroupsShowHideButtons.js +22 -0
  249. package/lib/esm/components/Groups/GroupsShowHideButtons.js.map +1 -0
  250. package/lib/esm/components/Groups/GroupsView.d.ts +43 -0
  251. package/lib/esm/components/Groups/GroupsView.js +42 -0
  252. package/lib/esm/components/Groups/GroupsView.js.map +1 -0
  253. package/lib/esm/components/Groups/GroupsView.scss +53 -0
  254. package/lib/esm/components/Groups/GroupsVisualization.js +130 -0
  255. package/lib/esm/components/Groups/GroupsVisualization.js.map +1 -0
  256. package/lib/esm/components/Groups/GroupsVisualization.scss +18 -0
  257. package/lib/esm/components/Groups/GroupsVisualizationActions.js +20 -0
  258. package/lib/esm/components/Groups/GroupsVisualizationActions.js.map +1 -0
  259. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.d.ts +17 -0
  260. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.js +84 -0
  261. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.js.map +1 -0
  262. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.scss +14 -0
  263. package/lib/esm/components/Groups/QueryBuilder/QueryBuilder.js.map +1 -0
  264. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderActionPanel.js.map +1 -0
  265. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.d.ts +13 -0
  266. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.js +21 -0
  267. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.js.map +1 -0
  268. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderStep.js.map +1 -0
  269. package/lib/esm/components/Groups/ToggleGroupVisibility.js.map +1 -0
  270. package/lib/esm/components/Groups/groupsHelpers.d.ts +11 -0
  271. package/lib/esm/components/Groups/groupsHelpers.js +192 -0
  272. package/lib/esm/components/Groups/groupsHelpers.js.map +1 -0
  273. package/lib/esm/components/Groups/hooks/useGroupsOperations.d.ts +26 -0
  274. package/lib/esm/components/Groups/hooks/useGroupsOperations.js +67 -0
  275. package/lib/esm/components/Groups/hooks/useGroupsOperations.js.map +1 -0
  276. package/lib/esm/components/Groups/hooks/useVisualization.js +64 -0
  277. package/lib/esm/components/Groups/hooks/useVisualization.js.map +1 -0
  278. package/lib/esm/components/Mappings/BlockingOverlay.js +13 -0
  279. package/lib/esm/components/Mappings/BlockingOverlay.js.map +1 -0
  280. package/lib/esm/components/Mappings/ConfirmMappingsImport.js +113 -0
  281. package/lib/esm/components/Mappings/ConfirmMappingsImport.js.map +1 -0
  282. package/lib/esm/components/Mappings/Editing/MappingAction.js +83 -0
  283. package/lib/esm/components/Mappings/Editing/MappingAction.js.map +1 -0
  284. package/lib/esm/components/Mappings/Extraction/ExtractionLogCustomFilter.js +19 -0
  285. package/lib/esm/components/Mappings/Extraction/ExtractionLogCustomFilter.js.map +1 -0
  286. package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.d.ts +11 -0
  287. package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js +106 -0
  288. package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -0
  289. package/lib/esm/components/Mappings/Extraction/ExtractionStatusIcon.d.ts +8 -0
  290. package/lib/esm/components/Mappings/Extraction/ExtractionStatusIcon.js.map +1 -0
  291. package/lib/esm/components/Mappings/Import/MappingImportWizardModal.js +99 -0
  292. package/lib/esm/components/Mappings/Import/MappingImportWizardModal.js.map +1 -0
  293. package/lib/esm/components/Mappings/Import/SelectIModel.js +81 -0
  294. package/lib/esm/components/Mappings/Import/SelectIModel.js.map +1 -0
  295. package/lib/esm/components/Mappings/Import/SelectITwin.js +94 -0
  296. package/lib/esm/components/Mappings/Import/SelectITwin.js.map +1 -0
  297. package/lib/esm/components/Mappings/Import/SelectMappings.d.ts +16 -0
  298. package/lib/esm/components/Mappings/Import/SelectMappings.js +67 -0
  299. package/lib/esm/components/Mappings/Import/SelectMappings.js.map +1 -0
  300. package/lib/esm/components/Mappings/MappingViewActionGroup.js.map +1 -0
  301. package/lib/esm/components/Mappings/Mappings.d.ts +13 -0
  302. package/lib/esm/components/Mappings/Mappings.js +22 -0
  303. package/lib/esm/components/Mappings/Mappings.js.map +1 -0
  304. package/lib/esm/components/Mappings/MappingsView.d.ts +39 -0
  305. package/lib/esm/components/Mappings/MappingsView.js +57 -0
  306. package/lib/esm/components/Mappings/MappingsView.js.map +1 -0
  307. package/lib/esm/components/Mappings/hooks/useMappingsOperations.d.ts +27 -0
  308. package/lib/esm/components/Mappings/hooks/useMappingsOperations.js +123 -0
  309. package/lib/esm/components/Mappings/hooks/useMappingsOperations.js.map +1 -0
  310. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.js +58 -0
  311. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.js.map +1 -0
  312. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js +124 -0
  313. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js.map +1 -0
  314. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.js +61 -0
  315. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.js.map +1 -0
  316. package/lib/esm/components/Properties/CalculatedProperties/SharedCalculatedPropertyForms.js.map +1 -0
  317. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.d.ts +12 -0
  318. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.js +159 -0
  319. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.js.map +1 -0
  320. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.js +61 -0
  321. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.js.map +1 -0
  322. package/lib/esm/components/Properties/GroupColorToggle.js +46 -0
  323. package/lib/esm/components/Properties/GroupColorToggle.js.map +1 -0
  324. package/lib/esm/components/Properties/GroupInformationPanel.js.map +1 -0
  325. package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.js +261 -0
  326. package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.js.map +1 -0
  327. package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.js +58 -0
  328. package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.js.map +1 -0
  329. package/lib/esm/components/Properties/GroupProperties/GroupPropertyUtils.js.map +1 -0
  330. package/lib/esm/components/Properties/GroupProperties/SaveModal.js.map +1 -0
  331. package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.d.ts +8 -0
  332. package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.js +31 -0
  333. package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.js.map +1 -0
  334. package/lib/esm/components/Properties/PropertyAction.js +76 -0
  335. package/lib/esm/components/Properties/PropertyAction.js.map +1 -0
  336. package/lib/esm/components/Properties/PropertyMenu.js +37 -0
  337. package/lib/esm/components/Properties/PropertyMenu.js.map +1 -0
  338. package/lib/esm/components/Properties/PropertyMenuWithVisualization.js.map +1 -0
  339. package/lib/esm/components/Properties/PropertyNameCell.js.map +1 -0
  340. package/lib/esm/components/Properties/PropertyTable.js +27 -0
  341. package/lib/esm/components/Properties/PropertyTable.js.map +1 -0
  342. package/lib/esm/components/Properties/PropertyTableToolbar.js.map +1 -0
  343. package/lib/esm/components/Properties/hooks/useFetchData.js +37 -0
  344. package/lib/esm/components/Properties/hooks/useFetchData.js.map +1 -0
  345. package/lib/esm/components/Properties/hooks/useFormulaValidation.d.ts +6 -0
  346. package/lib/esm/components/Properties/hooks/useFormulaValidation.js +25 -0
  347. package/lib/esm/components/Properties/hooks/useFormulaValidation.js.map +1 -0
  348. package/lib/esm/components/Properties/hooks/useValidator.js.map +1 -0
  349. package/lib/esm/components/SharedComponents/ActionPanel.js +18 -0
  350. package/lib/esm/components/SharedComponents/ActionPanel.js.map +1 -0
  351. package/lib/esm/components/SharedComponents/DeleteModal.js +39 -0
  352. package/lib/esm/components/SharedComponents/DeleteModal.js.map +1 -0
  353. package/lib/esm/components/SharedComponents/EmptyMessage.d.ts +7 -0
  354. package/lib/esm/components/SharedComponents/EmptyMessage.js +10 -0
  355. package/lib/esm/components/SharedComponents/EmptyMessage.js.map +1 -0
  356. package/lib/esm/components/SharedComponents/EmptyMessage.scss +12 -0
  357. package/lib/esm/components/SharedComponents/HorizontalTile.d.ts +19 -0
  358. package/lib/esm/components/SharedComponents/HorizontalTile.js +20 -0
  359. package/lib/esm/components/SharedComponents/HorizontalTile.js.map +1 -0
  360. package/lib/esm/components/SharedComponents/HorizontalTile.scss +58 -0
  361. package/lib/esm/components/SharedComponents/LoadingOverlay.d.ts +4 -0
  362. package/lib/esm/components/SharedComponents/LoadingOverlay.js +12 -0
  363. package/lib/esm/components/SharedComponents/LoadingOverlay.js.map +1 -0
  364. package/lib/esm/components/SharedComponents/LoadingOverlay.scss +13 -0
  365. package/lib/esm/components/SharedComponents/LoadingSpinner.d.ts +4 -0
  366. package/lib/esm/components/SharedComponents/LoadingSpinner.js +12 -0
  367. package/lib/esm/components/SharedComponents/LoadingSpinner.js.map +1 -0
  368. package/lib/esm/components/SharedComponents/LoadingSpinner.scss +8 -0
  369. package/lib/esm/components/SharedComponents/StatusIcon.js.map +1 -0
  370. package/lib/esm/components/context/ExtractionClientContext.js.map +1 -0
  371. package/lib/esm/components/context/ExtractionStatusDataContext.d.ts +20 -0
  372. package/lib/esm/components/context/ExtractionStatusDataContext.js +22 -0
  373. package/lib/esm/components/context/ExtractionStatusDataContext.js.map +1 -0
  374. package/lib/esm/components/context/GroupHilitedElementsContext.d.ts +38 -0
  375. package/lib/esm/components/context/GroupHilitedElementsContext.js +32 -0
  376. package/lib/esm/components/context/GroupHilitedElementsContext.js.map +1 -0
  377. package/lib/esm/components/context/GroupingApiConfigContext.js.map +1 -0
  378. package/lib/esm/components/context/GroupingMappingCustomUIContext.js.map +1 -0
  379. package/lib/esm/components/context/IModelsClientContext.js.map +1 -0
  380. package/lib/esm/components/context/ITwinsClientContext.js.map +1 -0
  381. package/lib/esm/components/context/MappingClientContext.js.map +1 -0
  382. package/lib/esm/components/context/PropertiesContext.js.map +1 -0
  383. package/lib/esm/components/context/PropertyGridWrapperContext.d.ts +13 -0
  384. package/lib/esm/components/context/PropertyGridWrapperContext.js.map +1 -0
  385. package/lib/esm/components/customUI/DefaultGroupingUI.js.map +1 -0
  386. package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.js +84 -0
  387. package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.js.map +1 -0
  388. package/lib/esm/components/customUI/GroupingMappingCustomUI.js.map +1 -0
  389. package/lib/esm/components/customUI/ManualGroupingCustomUI.js +25 -0
  390. package/lib/esm/components/customUI/ManualGroupingCustomUI.js.map +1 -0
  391. package/lib/esm/components/customUI/SearchGroupingCustomUI.js +91 -0
  392. package/lib/esm/components/customUI/SearchGroupingCustomUI.js.map +1 -0
  393. package/lib/esm/grouping-mapping-widget.d.ts +23 -23
  394. package/lib/esm/grouping-mapping-widget.js +23 -23
  395. package/lib/esm/grouping-mapping-widget.js.map +1 -1
  396. package/lib/esm/test/GroupPropertyUtils.test.js +1 -1
  397. package/lib/esm/test/GroupPropertyUtils.test.js.map +1 -1
  398. package/lib/esm/test/GroupingMappingCustomUI.test.js +4 -4
  399. package/lib/esm/test/GroupingMappingCustomUI.test.js.map +1 -1
  400. package/lib/esm/test/QueryBuilder.test.js +1 -1
  401. package/lib/esm/test/QueryBuilder.test.js.map +1 -1
  402. package/lib/esm/test/WidgetHeader.test.js +1 -1
  403. package/lib/esm/test/WidgetHeader.test.js.map +1 -1
  404. package/lib/esm/test/test-utils.js +1 -1
  405. package/lib/esm/test/test-utils.js.map +1 -1
  406. package/package.json +30 -31
  407. package/lib/cjs/widget/GroupingMappingWidget.d.ts +0 -10
  408. package/lib/cjs/widget/GroupingMappingWidget.js +0 -31
  409. package/lib/cjs/widget/GroupingMappingWidget.js.map +0 -1
  410. package/lib/cjs/widget/components/ActionPanel.js +0 -39
  411. package/lib/cjs/widget/components/ActionPanel.js.map +0 -1
  412. package/lib/cjs/widget/components/BlockingOverlay.js +0 -20
  413. package/lib/cjs/widget/components/BlockingOverlay.js.map +0 -1
  414. package/lib/cjs/widget/components/CalculatedPropertyAction.js +0 -84
  415. package/lib/cjs/widget/components/CalculatedPropertyAction.js.map +0 -1
  416. package/lib/cjs/widget/components/CalculatedPropertyActionWithVisuals.js +0 -150
  417. package/lib/cjs/widget/components/CalculatedPropertyActionWithVisuals.js.map +0 -1
  418. package/lib/cjs/widget/components/CalculatedPropertyTable.js +0 -84
  419. package/lib/cjs/widget/components/CalculatedPropertyTable.js.map +0 -1
  420. package/lib/cjs/widget/components/ConfirmMappingsImport.js +0 -134
  421. package/lib/cjs/widget/components/ConfirmMappingsImport.js.map +0 -1
  422. package/lib/cjs/widget/components/CustomCalculationAction.d.ts +0 -13
  423. package/lib/cjs/widget/components/CustomCalculationAction.js +0 -186
  424. package/lib/cjs/widget/components/CustomCalculationAction.js.map +0 -1
  425. package/lib/cjs/widget/components/CustomCalculationTable.js +0 -84
  426. package/lib/cjs/widget/components/CustomCalculationTable.js.map +0 -1
  427. package/lib/cjs/widget/components/DeleteModal.js +0 -61
  428. package/lib/cjs/widget/components/DeleteModal.js.map +0 -1
  429. package/lib/cjs/widget/components/ExtractionLogCustomFilter.js +0 -42
  430. package/lib/cjs/widget/components/ExtractionLogCustomFilter.js.map +0 -1
  431. package/lib/cjs/widget/components/ExtractionMessageModal.d.ts +0 -11
  432. package/lib/cjs/widget/components/ExtractionMessageModal.js +0 -87
  433. package/lib/cjs/widget/components/ExtractionMessageModal.js.map +0 -1
  434. package/lib/cjs/widget/components/ExtractionStatusIcon.d.ts +0 -8
  435. package/lib/cjs/widget/components/ExtractionStatusIcon.js.map +0 -1
  436. package/lib/cjs/widget/components/GroupAction.js +0 -155
  437. package/lib/cjs/widget/components/GroupAction.js.map +0 -1
  438. package/lib/cjs/widget/components/GroupColorLegend.js.map +0 -1
  439. package/lib/cjs/widget/components/GroupColorToggle.js +0 -69
  440. package/lib/cjs/widget/components/GroupColorToggle.js.map +0 -1
  441. package/lib/cjs/widget/components/GroupDetails.js +0 -34
  442. package/lib/cjs/widget/components/GroupDetails.js.map +0 -1
  443. package/lib/cjs/widget/components/GroupDetailsActionPanel.js.map +0 -1
  444. package/lib/cjs/widget/components/GroupDetailsStep.js.map +0 -1
  445. package/lib/cjs/widget/components/GroupInformationPanel.js.map +0 -1
  446. package/lib/cjs/widget/components/GroupItem.d.ts +0 -12
  447. package/lib/cjs/widget/components/GroupItem.js +0 -19
  448. package/lib/cjs/widget/components/GroupItem.js.map +0 -1
  449. package/lib/cjs/widget/components/GroupMenuActions.d.ts +0 -13
  450. package/lib/cjs/widget/components/GroupMenuActions.js +0 -68
  451. package/lib/cjs/widget/components/GroupMenuActions.js.map +0 -1
  452. package/lib/cjs/widget/components/GroupPropertyAction.js +0 -287
  453. package/lib/cjs/widget/components/GroupPropertyAction.js.map +0 -1
  454. package/lib/cjs/widget/components/GroupPropertyTable.js +0 -81
  455. package/lib/cjs/widget/components/GroupPropertyTable.js.map +0 -1
  456. package/lib/cjs/widget/components/GroupPropertyUtils.js.map +0 -1
  457. package/lib/cjs/widget/components/GroupingMapping.d.ts +0 -34
  458. package/lib/cjs/widget/components/GroupingMapping.js +0 -79
  459. package/lib/cjs/widget/components/GroupingMapping.js.map +0 -1
  460. package/lib/cjs/widget/components/GroupingMappingContent.js +0 -51
  461. package/lib/cjs/widget/components/GroupingMappingContent.js.map +0 -1
  462. package/lib/cjs/widget/components/GroupingMappingContext.d.ts +0 -40
  463. package/lib/cjs/widget/components/GroupingMappingContext.js +0 -109
  464. package/lib/cjs/widget/components/GroupingMappingContext.js.map +0 -1
  465. package/lib/cjs/widget/components/GroupingMappingHeader.js +0 -24
  466. package/lib/cjs/widget/components/GroupingMappingHeader.js.map +0 -1
  467. package/lib/cjs/widget/components/GroupingMappingRouter.d.ts +0 -8
  468. package/lib/cjs/widget/components/GroupingMappingRouter.js +0 -107
  469. package/lib/cjs/widget/components/GroupingMappingRouter.js.map +0 -1
  470. package/lib/cjs/widget/components/Groups.d.ts +0 -16
  471. package/lib/cjs/widget/components/Groups.js +0 -46
  472. package/lib/cjs/widget/components/Groups.js.map +0 -1
  473. package/lib/cjs/widget/components/GroupsAddButton.d.ts +0 -10
  474. package/lib/cjs/widget/components/GroupsAddButton.js.map +0 -1
  475. package/lib/cjs/widget/components/GroupsShowHideButtons.js +0 -45
  476. package/lib/cjs/widget/components/GroupsShowHideButtons.js.map +0 -1
  477. package/lib/cjs/widget/components/GroupsView.d.ts +0 -31
  478. package/lib/cjs/widget/components/GroupsView.js +0 -37
  479. package/lib/cjs/widget/components/GroupsView.js.map +0 -1
  480. package/lib/cjs/widget/components/GroupsView.scss +0 -49
  481. package/lib/cjs/widget/components/GroupsVisualization.js +0 -141
  482. package/lib/cjs/widget/components/GroupsVisualization.js.map +0 -1
  483. package/lib/cjs/widget/components/GroupsVisualization.scss +0 -12
  484. package/lib/cjs/widget/components/GroupsVisualizationActions.js +0 -27
  485. package/lib/cjs/widget/components/GroupsVisualizationActions.js.map +0 -1
  486. package/lib/cjs/widget/components/HorizontalTile.d.ts +0 -15
  487. package/lib/cjs/widget/components/HorizontalTile.js +0 -24
  488. package/lib/cjs/widget/components/HorizontalTile.js.map +0 -1
  489. package/lib/cjs/widget/components/HorizontalTile.scss +0 -57
  490. package/lib/cjs/widget/components/MappingAction.js +0 -109
  491. package/lib/cjs/widget/components/MappingAction.js.map +0 -1
  492. package/lib/cjs/widget/components/MappingImportWizardModal.js +0 -125
  493. package/lib/cjs/widget/components/MappingImportWizardModal.js.map +0 -1
  494. package/lib/cjs/widget/components/MappingViewActionGroup.js.map +0 -1
  495. package/lib/cjs/widget/components/Mappings.d.ts +0 -13
  496. package/lib/cjs/widget/components/Mappings.js +0 -45
  497. package/lib/cjs/widget/components/Mappings.js.map +0 -1
  498. package/lib/cjs/widget/components/MappingsView.d.ts +0 -39
  499. package/lib/cjs/widget/components/MappingsView.js +0 -63
  500. package/lib/cjs/widget/components/MappingsView.js.map +0 -1
  501. package/lib/cjs/widget/components/PropertyAction.js +0 -99
  502. package/lib/cjs/widget/components/PropertyAction.js.map +0 -1
  503. package/lib/cjs/widget/components/PropertyMenu.js +0 -60
  504. package/lib/cjs/widget/components/PropertyMenu.js.map +0 -1
  505. package/lib/cjs/widget/components/PropertyMenuWithVisualization.js.map +0 -1
  506. package/lib/cjs/widget/components/PropertyNameCell.js.map +0 -1
  507. package/lib/cjs/widget/components/PropertyTable.js +0 -53
  508. package/lib/cjs/widget/components/PropertyTable.js.map +0 -1
  509. package/lib/cjs/widget/components/PropertyTableToolbar.js.map +0 -1
  510. package/lib/cjs/widget/components/QueryBuilder.js.map +0 -1
  511. package/lib/cjs/widget/components/QueryBuilderActionPanel.js.map +0 -1
  512. package/lib/cjs/widget/components/QueryBuilderCustomUI.d.ts +0 -13
  513. package/lib/cjs/widget/components/QueryBuilderCustomUI.js +0 -28
  514. package/lib/cjs/widget/components/QueryBuilderCustomUI.js.map +0 -1
  515. package/lib/cjs/widget/components/QueryBuilderStep.js.map +0 -1
  516. package/lib/cjs/widget/components/SaveModal.js.map +0 -1
  517. package/lib/cjs/widget/components/SelectIModel.js +0 -102
  518. package/lib/cjs/widget/components/SelectIModel.js.map +0 -1
  519. package/lib/cjs/widget/components/SelectITwin.js +0 -115
  520. package/lib/cjs/widget/components/SelectITwin.js.map +0 -1
  521. package/lib/cjs/widget/components/SelectMappings.d.ts +0 -16
  522. package/lib/cjs/widget/components/SelectMappings.js +0 -88
  523. package/lib/cjs/widget/components/SelectMappings.js.map +0 -1
  524. package/lib/cjs/widget/components/SharedCalculatedPropertyForms.js.map +0 -1
  525. package/lib/cjs/widget/components/SortableHorizontalTile.d.ts +0 -8
  526. package/lib/cjs/widget/components/SortableHorizontalTile.js +0 -52
  527. package/lib/cjs/widget/components/SortableHorizontalTile.js.map +0 -1
  528. package/lib/cjs/widget/components/StatusIcon.js.map +0 -1
  529. package/lib/cjs/widget/components/ToggleGroupVisibility.js.map +0 -1
  530. package/lib/cjs/widget/components/WidgetHeader.js.map +0 -1
  531. package/lib/cjs/widget/components/context/ExtractionClientContext.js.map +0 -1
  532. package/lib/cjs/widget/components/context/GroupHilitedElementsContext.d.ts +0 -22
  533. package/lib/cjs/widget/components/context/GroupHilitedElementsContext.js +0 -47
  534. package/lib/cjs/widget/components/context/GroupHilitedElementsContext.js.map +0 -1
  535. package/lib/cjs/widget/components/context/GroupingApiConfigContext.js.map +0 -1
  536. package/lib/cjs/widget/components/context/GroupingMappingCustomUIContext.js.map +0 -1
  537. package/lib/cjs/widget/components/context/IModelsClientContext.js.map +0 -1
  538. package/lib/cjs/widget/components/context/ITwinsClientContext.js.map +0 -1
  539. package/lib/cjs/widget/components/context/MappingClientContext.js.map +0 -1
  540. package/lib/cjs/widget/components/context/PropertiesContext.js.map +0 -1
  541. package/lib/cjs/widget/components/context/PropertyGridWrapperContext.d.ts +0 -13
  542. package/lib/cjs/widget/components/context/PropertyGridWrapperContext.js.map +0 -1
  543. package/lib/cjs/widget/components/customUI/DefaultGroupingUI.js.map +0 -1
  544. package/lib/cjs/widget/components/customUI/GroupQueryBuilderCustomUI.js +0 -107
  545. package/lib/cjs/widget/components/customUI/GroupQueryBuilderCustomUI.js.map +0 -1
  546. package/lib/cjs/widget/components/customUI/GroupingMappingCustomUI.js.map +0 -1
  547. package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.js +0 -32
  548. package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.js.map +0 -1
  549. package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.js +0 -98
  550. package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.js.map +0 -1
  551. package/lib/cjs/widget/components/groupsHelpers.d.ts +0 -10
  552. package/lib/cjs/widget/components/groupsHelpers.js +0 -84
  553. package/lib/cjs/widget/components/groupsHelpers.js.map +0 -1
  554. package/lib/cjs/widget/components/hooks/useGroupsOperations.d.ts +0 -20
  555. package/lib/cjs/widget/components/hooks/useGroupsOperations.js +0 -67
  556. package/lib/cjs/widget/components/hooks/useGroupsOperations.js.map +0 -1
  557. package/lib/cjs/widget/components/hooks/useMappingsOperations.d.ts +0 -35
  558. package/lib/cjs/widget/components/hooks/useMappingsOperations.js +0 -120
  559. package/lib/cjs/widget/components/hooks/useMappingsOperations.js.map +0 -1
  560. package/lib/cjs/widget/components/utils.d.ts +0 -16
  561. package/lib/cjs/widget/components/utils.js +0 -99
  562. package/lib/cjs/widget/components/utils.js.map +0 -1
  563. package/lib/cjs/widget/components/utils.scss +0 -18
  564. package/lib/cjs/widget/components/viewerUtils.d.ts +0 -30
  565. package/lib/cjs/widget/components/viewerUtils.js +0 -293
  566. package/lib/cjs/widget/components/viewerUtils.js.map +0 -1
  567. package/lib/cjs/widget/hooks/useFetchData.js +0 -43
  568. package/lib/cjs/widget/hooks/useFetchData.js.map +0 -1
  569. package/lib/cjs/widget/hooks/useFormulaValidation.d.ts +0 -6
  570. package/lib/cjs/widget/hooks/useFormulaValidation.js +0 -29
  571. package/lib/cjs/widget/hooks/useFormulaValidation.js.map +0 -1
  572. package/lib/cjs/widget/hooks/useValidator.js.map +0 -1
  573. package/lib/cjs/widget/hooks/useVisualization.js +0 -68
  574. package/lib/cjs/widget/hooks/useVisualization.js.map +0 -1
  575. package/lib/cjs/widget/utils.d.ts +0 -5
  576. package/lib/cjs/widget/utils.js +0 -12
  577. package/lib/cjs/widget/utils.js.map +0 -1
  578. package/lib/esm/widget/GroupingMappingWidget.d.ts +0 -10
  579. package/lib/esm/widget/GroupingMappingWidget.js +0 -24
  580. package/lib/esm/widget/GroupingMappingWidget.js.map +0 -1
  581. package/lib/esm/widget/components/ActionPanel.js +0 -18
  582. package/lib/esm/widget/components/ActionPanel.js.map +0 -1
  583. package/lib/esm/widget/components/BlockingOverlay.js +0 -13
  584. package/lib/esm/widget/components/BlockingOverlay.js.map +0 -1
  585. package/lib/esm/widget/components/CalculatedPropertyAction.js +0 -58
  586. package/lib/esm/widget/components/CalculatedPropertyAction.js.map +0 -1
  587. package/lib/esm/widget/components/CalculatedPropertyActionWithVisuals.js +0 -124
  588. package/lib/esm/widget/components/CalculatedPropertyActionWithVisuals.js.map +0 -1
  589. package/lib/esm/widget/components/CalculatedPropertyTable.js +0 -61
  590. package/lib/esm/widget/components/CalculatedPropertyTable.js.map +0 -1
  591. package/lib/esm/widget/components/ConfirmMappingsImport.js +0 -113
  592. package/lib/esm/widget/components/ConfirmMappingsImport.js.map +0 -1
  593. package/lib/esm/widget/components/CustomCalculationAction.d.ts +0 -13
  594. package/lib/esm/widget/components/CustomCalculationAction.js +0 -160
  595. package/lib/esm/widget/components/CustomCalculationAction.js.map +0 -1
  596. package/lib/esm/widget/components/CustomCalculationTable.js +0 -61
  597. package/lib/esm/widget/components/CustomCalculationTable.js.map +0 -1
  598. package/lib/esm/widget/components/DeleteModal.js +0 -38
  599. package/lib/esm/widget/components/DeleteModal.js.map +0 -1
  600. package/lib/esm/widget/components/ExtractionLogCustomFilter.js +0 -19
  601. package/lib/esm/widget/components/ExtractionLogCustomFilter.js.map +0 -1
  602. package/lib/esm/widget/components/ExtractionMessageModal.d.ts +0 -11
  603. package/lib/esm/widget/components/ExtractionMessageModal.js +0 -64
  604. package/lib/esm/widget/components/ExtractionMessageModal.js.map +0 -1
  605. package/lib/esm/widget/components/ExtractionStatusIcon.d.ts +0 -8
  606. package/lib/esm/widget/components/ExtractionStatusIcon.js.map +0 -1
  607. package/lib/esm/widget/components/GroupAction.js +0 -129
  608. package/lib/esm/widget/components/GroupAction.js.map +0 -1
  609. package/lib/esm/widget/components/GroupColorLegend.js.map +0 -1
  610. package/lib/esm/widget/components/GroupColorToggle.js +0 -46
  611. package/lib/esm/widget/components/GroupColorToggle.js.map +0 -1
  612. package/lib/esm/widget/components/GroupDetails.js +0 -27
  613. package/lib/esm/widget/components/GroupDetails.js.map +0 -1
  614. package/lib/esm/widget/components/GroupDetailsActionPanel.js.map +0 -1
  615. package/lib/esm/widget/components/GroupDetailsStep.js.map +0 -1
  616. package/lib/esm/widget/components/GroupInformationPanel.js.map +0 -1
  617. package/lib/esm/widget/components/GroupItem.d.ts +0 -12
  618. package/lib/esm/widget/components/GroupItem.js +0 -12
  619. package/lib/esm/widget/components/GroupItem.js.map +0 -1
  620. package/lib/esm/widget/components/GroupMenuActions.d.ts +0 -13
  621. package/lib/esm/widget/components/GroupMenuActions.js +0 -45
  622. package/lib/esm/widget/components/GroupMenuActions.js.map +0 -1
  623. package/lib/esm/widget/components/GroupPropertyAction.js +0 -261
  624. package/lib/esm/widget/components/GroupPropertyAction.js.map +0 -1
  625. package/lib/esm/widget/components/GroupPropertyTable.js +0 -58
  626. package/lib/esm/widget/components/GroupPropertyTable.js.map +0 -1
  627. package/lib/esm/widget/components/GroupPropertyUtils.js.map +0 -1
  628. package/lib/esm/widget/components/GroupingMapping.d.ts +0 -34
  629. package/lib/esm/widget/components/GroupingMapping.js +0 -57
  630. package/lib/esm/widget/components/GroupingMapping.js.map +0 -1
  631. package/lib/esm/widget/components/GroupingMappingContent.js +0 -28
  632. package/lib/esm/widget/components/GroupingMappingContent.js.map +0 -1
  633. package/lib/esm/widget/components/GroupingMappingContext.d.ts +0 -40
  634. package/lib/esm/widget/components/GroupingMappingContext.js +0 -86
  635. package/lib/esm/widget/components/GroupingMappingContext.js.map +0 -1
  636. package/lib/esm/widget/components/GroupingMappingHeader.js +0 -17
  637. package/lib/esm/widget/components/GroupingMappingHeader.js.map +0 -1
  638. package/lib/esm/widget/components/GroupingMappingRouter.d.ts +0 -8
  639. package/lib/esm/widget/components/GroupingMappingRouter.js +0 -100
  640. package/lib/esm/widget/components/GroupingMappingRouter.js.map +0 -1
  641. package/lib/esm/widget/components/Groups.d.ts +0 -16
  642. package/lib/esm/widget/components/Groups.js +0 -23
  643. package/lib/esm/widget/components/Groups.js.map +0 -1
  644. package/lib/esm/widget/components/GroupsAddButton.d.ts +0 -10
  645. package/lib/esm/widget/components/GroupsAddButton.js.map +0 -1
  646. package/lib/esm/widget/components/GroupsShowHideButtons.js +0 -22
  647. package/lib/esm/widget/components/GroupsShowHideButtons.js.map +0 -1
  648. package/lib/esm/widget/components/GroupsView.d.ts +0 -31
  649. package/lib/esm/widget/components/GroupsView.js +0 -30
  650. package/lib/esm/widget/components/GroupsView.js.map +0 -1
  651. package/lib/esm/widget/components/GroupsView.scss +0 -49
  652. package/lib/esm/widget/components/GroupsVisualization.js +0 -118
  653. package/lib/esm/widget/components/GroupsVisualization.js.map +0 -1
  654. package/lib/esm/widget/components/GroupsVisualization.scss +0 -12
  655. package/lib/esm/widget/components/GroupsVisualizationActions.js +0 -20
  656. package/lib/esm/widget/components/GroupsVisualizationActions.js.map +0 -1
  657. package/lib/esm/widget/components/HorizontalTile.d.ts +0 -15
  658. package/lib/esm/widget/components/HorizontalTile.js +0 -17
  659. package/lib/esm/widget/components/HorizontalTile.js.map +0 -1
  660. package/lib/esm/widget/components/HorizontalTile.scss +0 -57
  661. package/lib/esm/widget/components/MappingAction.js +0 -83
  662. package/lib/esm/widget/components/MappingAction.js.map +0 -1
  663. package/lib/esm/widget/components/MappingImportWizardModal.js +0 -99
  664. package/lib/esm/widget/components/MappingImportWizardModal.js.map +0 -1
  665. package/lib/esm/widget/components/MappingViewActionGroup.js.map +0 -1
  666. package/lib/esm/widget/components/Mappings.d.ts +0 -13
  667. package/lib/esm/widget/components/Mappings.js +0 -22
  668. package/lib/esm/widget/components/Mappings.js.map +0 -1
  669. package/lib/esm/widget/components/MappingsView.d.ts +0 -39
  670. package/lib/esm/widget/components/MappingsView.js +0 -56
  671. package/lib/esm/widget/components/MappingsView.js.map +0 -1
  672. package/lib/esm/widget/components/PropertyAction.js +0 -76
  673. package/lib/esm/widget/components/PropertyAction.js.map +0 -1
  674. package/lib/esm/widget/components/PropertyMenu.js +0 -37
  675. package/lib/esm/widget/components/PropertyMenu.js.map +0 -1
  676. package/lib/esm/widget/components/PropertyMenuWithVisualization.js.map +0 -1
  677. package/lib/esm/widget/components/PropertyNameCell.js.map +0 -1
  678. package/lib/esm/widget/components/PropertyTable.js +0 -27
  679. package/lib/esm/widget/components/PropertyTable.js.map +0 -1
  680. package/lib/esm/widget/components/PropertyTableToolbar.js.map +0 -1
  681. package/lib/esm/widget/components/QueryBuilder.js.map +0 -1
  682. package/lib/esm/widget/components/QueryBuilderActionPanel.js.map +0 -1
  683. package/lib/esm/widget/components/QueryBuilderCustomUI.d.ts +0 -13
  684. package/lib/esm/widget/components/QueryBuilderCustomUI.js +0 -21
  685. package/lib/esm/widget/components/QueryBuilderCustomUI.js.map +0 -1
  686. package/lib/esm/widget/components/QueryBuilderStep.js.map +0 -1
  687. package/lib/esm/widget/components/SaveModal.js.map +0 -1
  688. package/lib/esm/widget/components/SelectIModel.js +0 -81
  689. package/lib/esm/widget/components/SelectIModel.js.map +0 -1
  690. package/lib/esm/widget/components/SelectITwin.js +0 -94
  691. package/lib/esm/widget/components/SelectITwin.js.map +0 -1
  692. package/lib/esm/widget/components/SelectMappings.d.ts +0 -16
  693. package/lib/esm/widget/components/SelectMappings.js +0 -67
  694. package/lib/esm/widget/components/SelectMappings.js.map +0 -1
  695. package/lib/esm/widget/components/SharedCalculatedPropertyForms.js.map +0 -1
  696. package/lib/esm/widget/components/SortableHorizontalTile.d.ts +0 -8
  697. package/lib/esm/widget/components/SortableHorizontalTile.js +0 -31
  698. package/lib/esm/widget/components/SortableHorizontalTile.js.map +0 -1
  699. package/lib/esm/widget/components/StatusIcon.js.map +0 -1
  700. package/lib/esm/widget/components/ToggleGroupVisibility.js.map +0 -1
  701. package/lib/esm/widget/components/WidgetHeader.js.map +0 -1
  702. package/lib/esm/widget/components/context/ExtractionClientContext.js.map +0 -1
  703. package/lib/esm/widget/components/context/GroupHilitedElementsContext.d.ts +0 -22
  704. package/lib/esm/widget/components/context/GroupHilitedElementsContext.js +0 -24
  705. package/lib/esm/widget/components/context/GroupHilitedElementsContext.js.map +0 -1
  706. package/lib/esm/widget/components/context/GroupingApiConfigContext.js.map +0 -1
  707. package/lib/esm/widget/components/context/GroupingMappingCustomUIContext.js.map +0 -1
  708. package/lib/esm/widget/components/context/IModelsClientContext.js.map +0 -1
  709. package/lib/esm/widget/components/context/ITwinsClientContext.js.map +0 -1
  710. package/lib/esm/widget/components/context/MappingClientContext.js.map +0 -1
  711. package/lib/esm/widget/components/context/PropertiesContext.js.map +0 -1
  712. package/lib/esm/widget/components/context/PropertyGridWrapperContext.d.ts +0 -13
  713. package/lib/esm/widget/components/context/PropertyGridWrapperContext.js.map +0 -1
  714. package/lib/esm/widget/components/customUI/DefaultGroupingUI.js.map +0 -1
  715. package/lib/esm/widget/components/customUI/GroupQueryBuilderCustomUI.js +0 -84
  716. package/lib/esm/widget/components/customUI/GroupQueryBuilderCustomUI.js.map +0 -1
  717. package/lib/esm/widget/components/customUI/GroupingMappingCustomUI.js.map +0 -1
  718. package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.js +0 -25
  719. package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.js.map +0 -1
  720. package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.js +0 -91
  721. package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.js.map +0 -1
  722. package/lib/esm/widget/components/groupsHelpers.d.ts +0 -10
  723. package/lib/esm/widget/components/groupsHelpers.js +0 -75
  724. package/lib/esm/widget/components/groupsHelpers.js.map +0 -1
  725. package/lib/esm/widget/components/hooks/useGroupsOperations.d.ts +0 -20
  726. package/lib/esm/widget/components/hooks/useGroupsOperations.js +0 -63
  727. package/lib/esm/widget/components/hooks/useGroupsOperations.js.map +0 -1
  728. package/lib/esm/widget/components/hooks/useMappingsOperations.d.ts +0 -35
  729. package/lib/esm/widget/components/hooks/useMappingsOperations.js +0 -116
  730. package/lib/esm/widget/components/hooks/useMappingsOperations.js.map +0 -1
  731. package/lib/esm/widget/components/utils.d.ts +0 -16
  732. package/lib/esm/widget/components/utils.js +0 -85
  733. package/lib/esm/widget/components/utils.js.map +0 -1
  734. package/lib/esm/widget/components/utils.scss +0 -18
  735. package/lib/esm/widget/components/viewerUtils.d.ts +0 -30
  736. package/lib/esm/widget/components/viewerUtils.js +0 -268
  737. package/lib/esm/widget/components/viewerUtils.js.map +0 -1
  738. package/lib/esm/widget/hooks/useFetchData.js +0 -37
  739. package/lib/esm/widget/hooks/useFetchData.js.map +0 -1
  740. package/lib/esm/widget/hooks/useFormulaValidation.d.ts +0 -6
  741. package/lib/esm/widget/hooks/useFormulaValidation.js +0 -25
  742. package/lib/esm/widget/hooks/useFormulaValidation.js.map +0 -1
  743. package/lib/esm/widget/hooks/useValidator.js.map +0 -1
  744. package/lib/esm/widget/hooks/useVisualization.js +0 -64
  745. package/lib/esm/widget/hooks/useVisualization.js.map +0 -1
  746. package/lib/esm/widget/utils.d.ts +0 -5
  747. package/lib/esm/widget/utils.js +0 -8
  748. package/lib/esm/widget/utils.js.map +0 -1
  749. /package/lib/cjs/{widget/components → WidgetShell}/GroupingMapping.scss +0 -0
  750. /package/lib/cjs/{widget/components → WidgetShell}/GroupingMappingContent.d.ts +0 -0
  751. /package/lib/cjs/{widget/components → WidgetShell}/GroupingMappingHeader.d.ts +0 -0
  752. /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.d.ts +0 -0
  753. /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.js +0 -0
  754. /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.scss +0 -0
  755. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupAction.d.ts +0 -0
  756. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupAction.scss +0 -0
  757. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetails.d.ts +0 -0
  758. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.d.ts +0 -0
  759. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.js +0 -0
  760. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.d.ts +0 -0
  761. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.js +0 -0
  762. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.scss +0 -0
  763. /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.d.ts +0 -0
  764. /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.js +0 -0
  765. /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.scss +0 -0
  766. /package/lib/cjs/{widget/components → components/Groups}/GroupMenuActions.scss +0 -0
  767. /package/lib/cjs/{widget/components → components/Groups}/GroupsAddButton.js +0 -0
  768. /package/lib/cjs/{widget/components → components/Groups}/GroupsAddButton.scss +0 -0
  769. /package/lib/cjs/{widget/components → components/Groups}/GroupsShowHideButtons.d.ts +0 -0
  770. /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualization.d.ts +0 -0
  771. /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualizationActions.d.ts +0 -0
  772. /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualizationActions.scss +0 -0
  773. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.d.ts +0 -0
  774. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.js +0 -0
  775. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.d.ts +0 -0
  776. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.js +0 -0
  777. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.d.ts +0 -0
  778. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.js +0 -0
  779. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.scss +0 -0
  780. /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.d.ts +0 -0
  781. /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.js +0 -0
  782. /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.scss +0 -0
  783. /package/lib/cjs/{widget → components/Groups}/hooks/useVisualization.d.ts +0 -0
  784. /package/lib/cjs/{widget/components → components/Mappings}/BlockingOverlay.d.ts +0 -0
  785. /package/lib/cjs/{widget/components → components/Mappings}/BlockingOverlay.scss +0 -0
  786. /package/lib/cjs/{widget/components → components/Mappings}/ConfirmMappingsImport.d.ts +0 -0
  787. /package/lib/cjs/{widget/components → components/Mappings}/ConfirmMappingsImport.scss +0 -0
  788. /package/lib/cjs/{widget/components → components/Mappings/Editing}/MappingAction.d.ts +0 -0
  789. /package/lib/cjs/{widget/components → components/Mappings/Editing}/MappingAction.scss +0 -0
  790. /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionLogCustomFilter.d.ts +0 -0
  791. /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionMessageModal.scss +0 -0
  792. /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.js +0 -0
  793. /package/lib/cjs/{widget/components → components/Mappings/Import}/MappingImportWizardModal.d.ts +0 -0
  794. /package/lib/cjs/{widget/components → components/Mappings/Import}/MappingImportWizardModal.scss +0 -0
  795. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectIModel.d.ts +0 -0
  796. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectIModel.scss +0 -0
  797. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectITwin.d.ts +0 -0
  798. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectITwin.scss +0 -0
  799. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectMapping.scss +0 -0
  800. /package/lib/cjs/{widget/components → components/Mappings}/MappingViewActionGroup.d.ts +0 -0
  801. /package/lib/cjs/{widget/components → components/Mappings}/MappingViewActionGroup.js +0 -0
  802. /package/lib/cjs/{widget/components → components/Mappings}/MappingsView.scss +0 -0
  803. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.d.ts +0 -0
  804. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.scss +0 -0
  805. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.d.ts +0 -0
  806. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.scss +0 -0
  807. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.d.ts +0 -0
  808. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.scss +0 -0
  809. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.d.ts +0 -0
  810. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.js +0 -0
  811. /package/lib/cjs/{widget/components → components/Properties/CustomCalculations}/CustomCalculationAction.scss +0 -0
  812. /package/lib/cjs/{widget/components → components/Properties/CustomCalculations}/CustomCalculationTable.d.ts +0 -0
  813. /package/lib/cjs/{widget/components → components/Properties}/GroupColorToggle.d.ts +0 -0
  814. /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.d.ts +0 -0
  815. /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.js +0 -0
  816. /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.scss +0 -0
  817. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.d.ts +0 -0
  818. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.scss +0 -0
  819. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyTable.d.ts +0 -0
  820. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.d.ts +0 -0
  821. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.js +0 -0
  822. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/SaveModal.d.ts +0 -0
  823. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/SaveModal.js +0 -0
  824. /package/lib/cjs/{widget/components → components/Properties}/PropertyAction.d.ts +0 -0
  825. /package/lib/cjs/{widget/components → components/Properties}/PropertyAction.scss +0 -0
  826. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenu.d.ts +0 -0
  827. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenu.scss +0 -0
  828. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.d.ts +0 -0
  829. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.js +0 -0
  830. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.scss +0 -0
  831. /package/lib/cjs/{widget/components → components/Properties}/PropertyNameCell.d.ts +0 -0
  832. /package/lib/cjs/{widget/components → components/Properties}/PropertyNameCell.js +0 -0
  833. /package/lib/cjs/{widget/components → components/Properties}/PropertyTable.d.ts +0 -0
  834. /package/lib/cjs/{widget/components → components/Properties}/PropertyTable.scss +0 -0
  835. /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.d.ts +0 -0
  836. /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.js +0 -0
  837. /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.scss +0 -0
  838. /package/lib/cjs/{widget → components/Properties}/hooks/useFetchData.d.ts +0 -0
  839. /package/lib/cjs/{widget → components/Properties}/hooks/useValidator.d.ts +0 -0
  840. /package/lib/cjs/{widget → components/Properties}/hooks/useValidator.js +0 -0
  841. /package/lib/cjs/{widget/components → components/SharedComponents}/ActionPanel.d.ts +0 -0
  842. /package/lib/cjs/{widget/components → components/SharedComponents}/ActionPanel.scss +0 -0
  843. /package/lib/cjs/{widget/components → components/SharedComponents}/DeleteModal.d.ts +0 -0
  844. /package/lib/cjs/{widget/components → components/SharedComponents}/DeleteModal.scss +0 -0
  845. /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.d.ts +0 -0
  846. /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.js +0 -0
  847. /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.scss +0 -0
  848. /package/lib/cjs/{widget/components → components}/context/ExtractionClientContext.d.ts +0 -0
  849. /package/lib/cjs/{widget/components → components}/context/ExtractionClientContext.js +0 -0
  850. /package/lib/cjs/{widget/components → components}/context/GroupingApiConfigContext.d.ts +0 -0
  851. /package/lib/cjs/{widget/components → components}/context/GroupingApiConfigContext.js +0 -0
  852. /package/lib/cjs/{widget/components → components}/context/GroupingMappingCustomUIContext.d.ts +0 -0
  853. /package/lib/cjs/{widget/components → components}/context/GroupingMappingCustomUIContext.js +0 -0
  854. /package/lib/cjs/{widget/components → components}/context/IModelsClientContext.d.ts +0 -0
  855. /package/lib/cjs/{widget/components → components}/context/IModelsClientContext.js +0 -0
  856. /package/lib/cjs/{widget/components → components}/context/ITwinsClientContext.d.ts +0 -0
  857. /package/lib/cjs/{widget/components → components}/context/ITwinsClientContext.js +0 -0
  858. /package/lib/cjs/{widget/components → components}/context/MappingClientContext.d.ts +0 -0
  859. /package/lib/cjs/{widget/components → components}/context/MappingClientContext.js +0 -0
  860. /package/lib/cjs/{widget/components → components}/context/PropertiesContext.d.ts +0 -0
  861. /package/lib/cjs/{widget/components → components}/context/PropertiesContext.js +0 -0
  862. /package/lib/cjs/{widget/components → components}/context/PropertyGridWrapperContext.js +0 -0
  863. /package/lib/cjs/{widget/components → components}/customUI/DefaultGroupingUI.d.ts +0 -0
  864. /package/lib/cjs/{widget/components → components}/customUI/DefaultGroupingUI.js +0 -0
  865. /package/lib/cjs/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.d.ts +0 -0
  866. /package/lib/cjs/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.scss +0 -0
  867. /package/lib/cjs/{widget/components → components}/customUI/GroupingMappingCustomUI.d.ts +0 -0
  868. /package/lib/cjs/{widget/components → components}/customUI/GroupingMappingCustomUI.js +0 -0
  869. /package/lib/cjs/{widget/components → components}/customUI/ManualGroupingCustomUI.d.ts +0 -0
  870. /package/lib/cjs/{widget/components → components}/customUI/ManualGroupingCustomUI.scss +0 -0
  871. /package/lib/cjs/{widget/components → components}/customUI/SearchGroupingCustomUI.d.ts +0 -0
  872. /package/lib/cjs/{widget/components → components}/customUI/SearchGroupingCustomUI.scss +0 -0
  873. /package/lib/esm/{widget/components → WidgetShell}/GroupingMapping.scss +0 -0
  874. /package/lib/esm/{widget/components → WidgetShell}/GroupingMappingContent.d.ts +0 -0
  875. /package/lib/esm/{widget/components → WidgetShell}/GroupingMappingHeader.d.ts +0 -0
  876. /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.d.ts +0 -0
  877. /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.js +0 -0
  878. /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.scss +0 -0
  879. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupAction.d.ts +0 -0
  880. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupAction.scss +0 -0
  881. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetails.d.ts +0 -0
  882. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.d.ts +0 -0
  883. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.js +0 -0
  884. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.d.ts +0 -0
  885. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.js +0 -0
  886. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.scss +0 -0
  887. /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.d.ts +0 -0
  888. /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.js +0 -0
  889. /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.scss +0 -0
  890. /package/lib/esm/{widget/components → components/Groups}/GroupMenuActions.scss +0 -0
  891. /package/lib/esm/{widget/components → components/Groups}/GroupsAddButton.js +0 -0
  892. /package/lib/esm/{widget/components → components/Groups}/GroupsAddButton.scss +0 -0
  893. /package/lib/esm/{widget/components → components/Groups}/GroupsShowHideButtons.d.ts +0 -0
  894. /package/lib/esm/{widget/components → components/Groups}/GroupsVisualization.d.ts +0 -0
  895. /package/lib/esm/{widget/components → components/Groups}/GroupsVisualizationActions.d.ts +0 -0
  896. /package/lib/esm/{widget/components → components/Groups}/GroupsVisualizationActions.scss +0 -0
  897. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.d.ts +0 -0
  898. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.js +0 -0
  899. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.d.ts +0 -0
  900. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.js +0 -0
  901. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.d.ts +0 -0
  902. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.js +0 -0
  903. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.scss +0 -0
  904. /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.d.ts +0 -0
  905. /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.js +0 -0
  906. /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.scss +0 -0
  907. /package/lib/esm/{widget → components/Groups}/hooks/useVisualization.d.ts +0 -0
  908. /package/lib/esm/{widget/components → components/Mappings}/BlockingOverlay.d.ts +0 -0
  909. /package/lib/esm/{widget/components → components/Mappings}/BlockingOverlay.scss +0 -0
  910. /package/lib/esm/{widget/components → components/Mappings}/ConfirmMappingsImport.d.ts +0 -0
  911. /package/lib/esm/{widget/components → components/Mappings}/ConfirmMappingsImport.scss +0 -0
  912. /package/lib/esm/{widget/components → components/Mappings/Editing}/MappingAction.d.ts +0 -0
  913. /package/lib/esm/{widget/components → components/Mappings/Editing}/MappingAction.scss +0 -0
  914. /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionLogCustomFilter.d.ts +0 -0
  915. /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionMessageModal.scss +0 -0
  916. /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.js +0 -0
  917. /package/lib/esm/{widget/components → components/Mappings/Import}/MappingImportWizardModal.d.ts +0 -0
  918. /package/lib/esm/{widget/components → components/Mappings/Import}/MappingImportWizardModal.scss +0 -0
  919. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectIModel.d.ts +0 -0
  920. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectIModel.scss +0 -0
  921. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectITwin.d.ts +0 -0
  922. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectITwin.scss +0 -0
  923. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectMapping.scss +0 -0
  924. /package/lib/esm/{widget/components → components/Mappings}/MappingViewActionGroup.d.ts +0 -0
  925. /package/lib/esm/{widget/components → components/Mappings}/MappingViewActionGroup.js +0 -0
  926. /package/lib/esm/{widget/components → components/Mappings}/MappingsView.scss +0 -0
  927. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.d.ts +0 -0
  928. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.scss +0 -0
  929. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.d.ts +0 -0
  930. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.scss +0 -0
  931. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.d.ts +0 -0
  932. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.scss +0 -0
  933. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.d.ts +0 -0
  934. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.js +0 -0
  935. /package/lib/esm/{widget/components → components/Properties/CustomCalculations}/CustomCalculationAction.scss +0 -0
  936. /package/lib/esm/{widget/components → components/Properties/CustomCalculations}/CustomCalculationTable.d.ts +0 -0
  937. /package/lib/esm/{widget/components → components/Properties}/GroupColorToggle.d.ts +0 -0
  938. /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.d.ts +0 -0
  939. /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.js +0 -0
  940. /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.scss +0 -0
  941. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.d.ts +0 -0
  942. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.scss +0 -0
  943. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyTable.d.ts +0 -0
  944. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.d.ts +0 -0
  945. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.js +0 -0
  946. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/SaveModal.d.ts +0 -0
  947. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/SaveModal.js +0 -0
  948. /package/lib/esm/{widget/components → components/Properties}/PropertyAction.d.ts +0 -0
  949. /package/lib/esm/{widget/components → components/Properties}/PropertyAction.scss +0 -0
  950. /package/lib/esm/{widget/components → components/Properties}/PropertyMenu.d.ts +0 -0
  951. /package/lib/esm/{widget/components → components/Properties}/PropertyMenu.scss +0 -0
  952. /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.d.ts +0 -0
  953. /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.js +0 -0
  954. /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.scss +0 -0
  955. /package/lib/esm/{widget/components → components/Properties}/PropertyNameCell.d.ts +0 -0
  956. /package/lib/esm/{widget/components → components/Properties}/PropertyNameCell.js +0 -0
  957. /package/lib/esm/{widget/components → components/Properties}/PropertyTable.d.ts +0 -0
  958. /package/lib/esm/{widget/components → components/Properties}/PropertyTable.scss +0 -0
  959. /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.d.ts +0 -0
  960. /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.js +0 -0
  961. /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.scss +0 -0
  962. /package/lib/esm/{widget → components/Properties}/hooks/useFetchData.d.ts +0 -0
  963. /package/lib/esm/{widget → components/Properties}/hooks/useValidator.d.ts +0 -0
  964. /package/lib/esm/{widget → components/Properties}/hooks/useValidator.js +0 -0
  965. /package/lib/esm/{widget/components → components/SharedComponents}/ActionPanel.d.ts +0 -0
  966. /package/lib/esm/{widget/components → components/SharedComponents}/ActionPanel.scss +0 -0
  967. /package/lib/esm/{widget/components → components/SharedComponents}/DeleteModal.d.ts +0 -0
  968. /package/lib/esm/{widget/components → components/SharedComponents}/DeleteModal.scss +0 -0
  969. /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.d.ts +0 -0
  970. /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.js +0 -0
  971. /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.scss +0 -0
  972. /package/lib/esm/{widget/components → components}/context/ExtractionClientContext.d.ts +0 -0
  973. /package/lib/esm/{widget/components → components}/context/ExtractionClientContext.js +0 -0
  974. /package/lib/esm/{widget/components → components}/context/GroupingApiConfigContext.d.ts +0 -0
  975. /package/lib/esm/{widget/components → components}/context/GroupingApiConfigContext.js +0 -0
  976. /package/lib/esm/{widget/components → components}/context/GroupingMappingCustomUIContext.d.ts +0 -0
  977. /package/lib/esm/{widget/components → components}/context/GroupingMappingCustomUIContext.js +0 -0
  978. /package/lib/esm/{widget/components → components}/context/IModelsClientContext.d.ts +0 -0
  979. /package/lib/esm/{widget/components → components}/context/IModelsClientContext.js +0 -0
  980. /package/lib/esm/{widget/components → components}/context/ITwinsClientContext.d.ts +0 -0
  981. /package/lib/esm/{widget/components → components}/context/ITwinsClientContext.js +0 -0
  982. /package/lib/esm/{widget/components → components}/context/MappingClientContext.d.ts +0 -0
  983. /package/lib/esm/{widget/components → components}/context/MappingClientContext.js +0 -0
  984. /package/lib/esm/{widget/components → components}/context/PropertiesContext.d.ts +0 -0
  985. /package/lib/esm/{widget/components → components}/context/PropertiesContext.js +0 -0
  986. /package/lib/esm/{widget/components → components}/context/PropertyGridWrapperContext.js +0 -0
  987. /package/lib/esm/{widget/components → components}/customUI/DefaultGroupingUI.d.ts +0 -0
  988. /package/lib/esm/{widget/components → components}/customUI/DefaultGroupingUI.js +0 -0
  989. /package/lib/esm/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.d.ts +0 -0
  990. /package/lib/esm/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.scss +0 -0
  991. /package/lib/esm/{widget/components → components}/customUI/GroupingMappingCustomUI.d.ts +0 -0
  992. /package/lib/esm/{widget/components → components}/customUI/GroupingMappingCustomUI.js +0 -0
  993. /package/lib/esm/{widget/components → components}/customUI/ManualGroupingCustomUI.d.ts +0 -0
  994. /package/lib/esm/{widget/components → components}/customUI/ManualGroupingCustomUI.scss +0 -0
  995. /package/lib/esm/{widget/components → components}/customUI/SearchGroupingCustomUI.d.ts +0 -0
  996. /package/lib/esm/{widget/components → components}/customUI/SearchGroupingCustomUI.scss +0 -0
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.HorizontalTile = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const itwinui_react_1 = require("@itwin/itwinui-react");
9
+ require("./HorizontalTile.scss");
10
+ const classnames_1 = __importDefault(require("classnames"));
11
+ const HorizontalTile = (props) => {
12
+ return (react_1.default.createElement("div", { className: (0, classnames_1.default)("gmw-horizontal-tile-container", { "gmw-horizontal-tile-selected": props.selected }), onClick: props.onClick, "data-testid": "gmw-horizontal-tile" },
13
+ react_1.default.createElement("div", { className: "gmw-body-container" },
14
+ props.dragHandle,
15
+ react_1.default.createElement("div", { className: "gmw-body" },
16
+ !!props.onClickTitle &&
17
+ react_1.default.createElement(itwinui_react_1.Anchor, { className: "gmw-body-text", onClick: props.onClickTitle, title: props.titleTooltip }, props.title),
18
+ !props.onClickTitle &&
19
+ react_1.default.createElement(itwinui_react_1.Text, { className: "gmw-body-text", variant: "body", title: props.titleTooltip }, props.title),
20
+ props.subText && react_1.default.createElement(itwinui_react_1.Text, { className: "gmw-body-text", isMuted: true, title: props.subtextToolTip, variant: "small" }, props.subText))),
21
+ react_1.default.createElement("div", { className: "gmw-interactables" },
22
+ props.actionGroup,
23
+ props.showGroupColor && !props.isLoading && props.elementsInfo &&
24
+ props.elementsInfo)));
25
+ };
26
+ exports.HorizontalTile = HorizontalTile;
27
+ //# sourceMappingURL=HorizontalTile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalTile.js","sourceRoot":"","sources":["../../../../src/components/SharedComponents/HorizontalTile.tsx"],"names":[],"mappings":";;;;;;AAKA,kDAA0B;AAC1B,wDAAoD;AACpD,iCAA+B;AAC/B,4DAAoC;AAiB7B,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE;IAE3D,OAAO,CACL,uCAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,+BAA+B,EAAE,EAAE,8BAA8B,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,iBAAc,qBAAqB;QACxK,uCAAK,SAAS,EAAC,oBAAoB;YAChC,KAAK,CAAC,UAAU;YACjB,uCAAK,SAAS,EAAC,UAAU;gBACtB,CAAC,CAAC,KAAK,CAAC,YAAY;oBACnB,8BAAC,sBAAM,IAAC,SAAS,EAAC,eAAe,EAAC,OAAO,EAAE,KAAK,CAAC,YAAY,EAAE,KAAK,EAAE,KAAK,CAAC,YAAY,IAAG,KAAK,CAAC,KAAK,CAAU;gBAEjH,CAAC,KAAK,CAAC,YAAY;oBAClB,8BAAC,oBAAI,IAAC,SAAS,EAAC,eAAe,EAAC,OAAO,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,CAAC,YAAY,IAAG,KAAK,CAAC,KAAK,CAAQ;gBAE/F,KAAK,CAAC,OAAO,IAAI,8BAAC,oBAAI,IAAC,SAAS,EAAC,eAAe,EAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc,EAAE,OAAO,EAAC,OAAO,IAAE,KAAK,CAAC,OAAO,CAAQ,CAChI,CACF;QACN,uCAAK,SAAS,EAAC,mBAAmB;YAC/B,KAAK,CAAC,WAAW;YACjB,KAAK,CAAC,cAAc,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,YAAY;gBAC3D,KAAK,CAAC,YAAY,CAClB,CACF,CACP,CAAC;AAEJ,CAAC,CAAC;AAxBW,QAAA,cAAc,kBAwBzB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { ReactNode } from \"react\";\nimport React from \"react\";\nimport { Anchor, Text } from \"@itwin/itwinui-react\";\nimport \"./HorizontalTile.scss\";\nimport classNames from \"classnames\";\n\nexport interface HorizontalTileProps {\n title: string;\n actionGroup: ReactNode;\n subText?: string;\n onClick?: () => void;\n onClickTitle?: () => void;\n titleTooltip?: string;\n subtextToolTip?: string;\n selected?: boolean;\n dragHandle?: ReactNode;\n elementsInfo?: React.ReactNode;\n showGroupColor?: boolean;\n isLoading?: boolean;\n}\n\nexport const HorizontalTile = (props: HorizontalTileProps) => {\n\n return (\n <div className={classNames(\"gmw-horizontal-tile-container\", { \"gmw-horizontal-tile-selected\": props.selected })} onClick={props.onClick} data-testid=\"gmw-horizontal-tile\">\n <div className=\"gmw-body-container\">\n {props.dragHandle}\n <div className=\"gmw-body\">\n {!!props.onClickTitle &&\n <Anchor className=\"gmw-body-text\" onClick={props.onClickTitle} title={props.titleTooltip}>{props.title}</Anchor>\n }\n {!props.onClickTitle &&\n <Text className=\"gmw-body-text\" variant=\"body\" title={props.titleTooltip}>{props.title}</Text>\n }\n {props.subText && <Text className=\"gmw-body-text\" isMuted={true} title={props.subtextToolTip} variant=\"small\">{props.subText}</Text>}\n </div>\n </div>\n <div className=\"gmw-interactables\">\n {props.actionGroup}\n {props.showGroupColor && !props.isLoading && props.elementsInfo &&\n props.elementsInfo}\n </div>\n </div>\n );\n\n};\n"]}
@@ -0,0 +1,58 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ .gmw-horizontal-tile {
7
+ &-container {
8
+ display: flex;
9
+ justify-content: space-between;
10
+ border-radius: 5px;
11
+ background-color: var(--iui-color-background-backdrop);
12
+ min-height: calc(var(--iui-size-s) * 5);
13
+ padding: 5.5px var(--iui-size-xs);
14
+ padding-bottom: 2px var(--iui-size-xs);
15
+ padding-top: 2px var(--iui-size-xs);
16
+
17
+ .gmw-body-container {
18
+ display: flex;
19
+ min-width: 0;
20
+ .gmw-drag-icon {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ height: 100%;
25
+ }
26
+ .gmw-body {
27
+ display: flex;
28
+ flex-direction: column;
29
+ min-width: 0;
30
+ justify-content: center;
31
+ &-text {
32
+ overflow: hidden;
33
+ white-space: nowrap;
34
+ text-overflow: ellipsis;
35
+ }
36
+ }
37
+ }
38
+
39
+ .gmw-interactables {
40
+ position: relative;
41
+ margin-left: 0;
42
+ align-items: center;
43
+ align-self: center;
44
+ min-width: 36px;
45
+ margin-right: var(--iui-size-2xs);
46
+ flex-shrink: 0;
47
+ }
48
+ }
49
+
50
+ &-selected {
51
+ border: 1px solid var(--iui-color-border-accent);
52
+ background: linear-gradient(
53
+ hsl(var(--iui-color-accent-hsl) / var(--iui-opacity-6)),
54
+ hsl(var(--iui-color-accent-hsl) / var(--iui-opacity-6))
55
+ ),
56
+ linear-gradient(var(--iui-color-background), var(--iui-color-background));
57
+ }
58
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "./LoadingOverlay.scss";
3
+ export declare const LoadingOverlay: () => JSX.Element;
4
+ //# sourceMappingURL=LoadingOverlay.d.ts.map
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LoadingOverlay = void 0;
7
+ /*---------------------------------------------------------------------------------------------
8
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
9
+ * See LICENSE.md in the project root for license terms and full copyright notice.
10
+ *--------------------------------------------------------------------------------------------*/
11
+ const itwinui_react_1 = require("@itwin/itwinui-react");
12
+ const react_1 = __importDefault(require("react"));
13
+ require("./LoadingOverlay.scss");
14
+ const LoadingOverlay = () => (react_1.default.createElement("div", { className: 'gmw-loading-center-overlay' },
15
+ react_1.default.createElement(itwinui_react_1.Text, null, "Loading"),
16
+ react_1.default.createElement(itwinui_react_1.ProgressRadial, { indeterminate: true }),
17
+ react_1.default.createElement(itwinui_react_1.Text, null, "Please wait...")));
18
+ exports.LoadingOverlay = LoadingOverlay;
19
+ //# sourceMappingURL=LoadingOverlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingOverlay.js","sourceRoot":"","sources":["../../../../src/components/SharedComponents/LoadingOverlay.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,wDAA4D;AAC5D,kDAA0B;AAC1B,iCAA+B;AAExB,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,CAClC,uCAAK,SAAS,EAAC,4BAA4B;IACzC,8BAAC,oBAAI,kBAAe;IACpB,8BAAC,8BAAc,IAAC,aAAa,SAAG;IAChC,8BAAC,oBAAI,yBAAsB,CACvB,CACP,CAAC;AANW,QAAA,cAAc,kBAMzB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { ProgressRadial, Text } from \"@itwin/itwinui-react\";\nimport React from \"react\";\nimport \"./LoadingOverlay.scss\";\n\nexport const LoadingOverlay = () => (\n <div className='gmw-loading-center-overlay'>\n <Text>Loading</Text>\n <ProgressRadial indeterminate />\n <Text>Please wait...</Text>\n </div>\n);\n"]}
@@ -0,0 +1,13 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ .gmw-loading-center-overlay {
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ flex-direction: column;
11
+ gap: var(--iui-size-s);
12
+ height: 100%;
13
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "./LoadingSpinner.scss";
3
+ export declare const LoadingSpinner: () => JSX.Element;
4
+ //# sourceMappingURL=LoadingSpinner.d.ts.map
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LoadingSpinner = void 0;
7
+ /*---------------------------------------------------------------------------------------------
8
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
9
+ * See LICENSE.md in the project root for license terms and full copyright notice.
10
+ *--------------------------------------------------------------------------------------------*/
11
+ const itwinui_react_1 = require("@itwin/itwinui-react");
12
+ const react_1 = __importDefault(require("react"));
13
+ require("./LoadingSpinner.scss");
14
+ const LoadingSpinner = () => {
15
+ return (react_1.default.createElement("div", { className: "gmw-loading-spinner" },
16
+ react_1.default.createElement(itwinui_react_1.ProgressRadial, { size: "small", indeterminate: true })));
17
+ };
18
+ exports.LoadingSpinner = LoadingSpinner;
19
+ //# sourceMappingURL=LoadingSpinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../../src/components/SharedComponents/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,wDAAsD;AACtD,kDAA0B;AAC1B,iCAA+B;AAExB,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,CACL,uCAAK,SAAS,EAAC,qBAAqB;QAClC,8BAAC,8BAAc,IAAC,IAAI,EAAC,OAAO,EAAC,aAAa,SAAG,CACzC,CACP,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { ProgressRadial } from \"@itwin/itwinui-react\";\nimport React from \"react\";\nimport \"./LoadingSpinner.scss\";\n\nexport const LoadingSpinner = () => {\n return (\n <div className=\"gmw-loading-spinner\">\n <ProgressRadial size=\"small\" indeterminate />\n </div>\n );\n};\n"]}
@@ -0,0 +1,8 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ .gmw-loading-spinner {
6
+ display: flex;
7
+ align-items: center;
8
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusIcon.js","sourceRoot":"","sources":["../../../../src/components/SharedComponents/StatusIcon.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,kDAA0B;AAC1B,4DAAoC;AACpC,oEAA0H;AAC1H,6BAA2B;AAE3B,MAAM,aAAa,GAAG;IACpB,OAAO,EAAE,sCAAgB;IACzB,KAAK,EAAE,oCAAc;IACrB,OAAO,EAAE,sCAAgB;IACzB,aAAa,EAAE,qCAAe;IAC9B,KAAK,EAAE,6BAAO;CACN,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,SAAS,EACT,GAAG,IAAI,EAIR,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC,OAAO,8BAAC,OAAO,IAAC,SAAS,EAAE,IAAA,oBAAU,EAAC,iBAAiB,EAAE,mBAAmB,MAAM,EAAE,EAAE,SAAS,CAAC,KAAM,IAAI,GAAI,CAAC;AACjH,CAAC,CAAC;AAVW,QAAA,UAAU,cAUrB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport { SvgFlag, SvgInfoCircular, SvgStatusError, SvgStatusSuccess, SvgStatusWarning } from \"@itwin/itwinui-icons-react\";\nimport \"./StatusIcon.scss\";\n\nconst StatusIconMap = {\n success: SvgStatusSuccess,\n error: SvgStatusError,\n warning: SvgStatusWarning,\n informational: SvgInfoCircular,\n trace: SvgFlag,\n} as const;\n\nexport const StatusIcon = ({\n status,\n className,\n ...rest\n}: {\n status: keyof typeof StatusIconMap;\n className?: string;\n}) => {\n const Element = StatusIconMap[status];\n return <Element className={classnames(\"gmw-status-icon\", `gmw-status-icon-${status}`, className)} {...rest} />;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtractionClientContext.js","sourceRoot":"","sources":["../../../../src/components/context/ExtractionClientContext.ts"],"names":[],"mappings":";;;AAKA,4DAA+E;AAC/E,iCAAkD;AAGlD,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,MAAe,EAAE,EAAE;IACtD,IAAI,MAAM,IAAI,OAAO,EAAE;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,MAAM,kBAAkB,CAAC,CAAC;KACxE;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,6BAA6B,GAAG,CAAC,MAAqB,EAAqB,EAAE;IACxF,MAAM,GAAG,GAAG,SAAS,CAAC,qCAAmB,EAAE,MAAM,CAAC,CAAC;IACnD,OAAO,IAAI,kCAAgB,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC,CAAC;AAHW,QAAA,6BAA6B,iCAGxC;AAEK,MAAM,sBAAsB,GAAG,CAAC,UAA4C,EAAE,EAAE;IACrF,IAAI,SAAS,KAAK,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAC9D,OAAO,IAAA,qCAA6B,EAAC,UAA0B,CAAC,CAAC;KAClE;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AALW,QAAA,sBAAsB,0BAKjC;AAEW,QAAA,uBAAuB,GAAG,IAAA,qBAAa,EAAoB,IAAA,qCAA6B,GAAE,CAAC,CAAC;AAElG,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,+BAAuB,CAAC,CAAC;IACpD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,8EAA8E,CAC/E,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,mBAAmB,uBAQ9B","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { IExtractionClient } from \"@itwin/insights-client\";\nimport { ExtractionClient, REPORTING_BASE_PATH } from \"@itwin/insights-client\";\nimport { createContext, useContext } from \"react\";\nimport type { ClientPrefix } from \"./GroupingApiConfigContext\";\n\nconst prefixUrl = (baseUrl?: string, prefix?: string) => {\n if (prefix && baseUrl) {\n return baseUrl.replace(\"api.bentley.com\", `${prefix}-api.bentley.com`);\n }\n return baseUrl;\n};\n\nexport const createDefaultExtractionClient = (prefix?: ClientPrefix): IExtractionClient => {\n const url = prefixUrl(REPORTING_BASE_PATH, prefix);\n return new ExtractionClient(url);\n};\n\nexport const createExtractionClient = (clientProp: IExtractionClient | ClientPrefix) => {\n if (undefined === clientProp || typeof clientProp === \"string\") {\n return createDefaultExtractionClient(clientProp as ClientPrefix);\n }\n return clientProp;\n};\n\nexport const ExtractionClientContext = createContext<IExtractionClient>(createDefaultExtractionClient());\n\nexport const useExtractionClient = () => {\n const context = useContext(ExtractionClientContext);\n if (!context) {\n throw new Error(\n \"useExtractionClient should be used within a ExtractionClientContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ export interface ExtractionStatusData {
3
+ iconStatus: "negative" | "positive" | "warning" | undefined;
4
+ iconMessage: string;
5
+ }
6
+ export interface ExtractionMessageData {
7
+ date: string;
8
+ category: string;
9
+ level: string;
10
+ message: string;
11
+ }
12
+ export interface IExtractionStatusDataProps {
13
+ extractionStatusIcon: ExtractionStatusData;
14
+ extractionMessageData: ExtractionMessageData[];
15
+ setExtractionStatusIcon: (extractionStatusIcon: ExtractionStatusData | ((extractionStatusIcon: ExtractionStatusData) => ExtractionStatusData)) => void;
16
+ setExtractionMessageData: (extractionMessageData: ExtractionMessageData[]) => void;
17
+ }
18
+ export declare const ExtractionStatusDataContext: import("react").Context<IExtractionStatusDataProps>;
19
+ export declare const useExtractionStatusDataContext: () => IExtractionStatusDataProps;
20
+ //# sourceMappingURL=ExtractionStatusDataContext.d.ts.map
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useExtractionStatusDataContext = exports.ExtractionStatusDataContext = void 0;
4
+ /*---------------------------------------------------------------------------------------------
5
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
+ * See LICENSE.md in the project root for license terms and full copyright notice.
7
+ *--------------------------------------------------------------------------------------------*/
8
+ const react_1 = require("react");
9
+ exports.ExtractionStatusDataContext = (0, react_1.createContext)({
10
+ extractionStatusIcon: {
11
+ iconStatus: undefined,
12
+ iconMessage: "",
13
+ },
14
+ extractionMessageData: [],
15
+ setExtractionStatusIcon: () => { },
16
+ setExtractionMessageData: () => { },
17
+ });
18
+ const useExtractionStatusDataContext = () => {
19
+ const context = (0, react_1.useContext)(exports.ExtractionStatusDataContext);
20
+ if (!context) {
21
+ throw new Error("useExtractionStatusIconContext should be used within a ExtractionStatusIconContext provider");
22
+ }
23
+ return context;
24
+ };
25
+ exports.useExtractionStatusDataContext = useExtractionStatusDataContext;
26
+ //# sourceMappingURL=ExtractionStatusDataContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtractionStatusDataContext.js","sourceRoot":"","sources":["../../../../src/components/context/ExtractionStatusDataContext.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,iCAAkD;AAqBrC,QAAA,2BAA2B,GAAG,IAAA,qBAAa,EAA6B;IACnF,oBAAoB,EAAE;QACpB,UAAU,EAAE,SAAS;QACrB,WAAW,EAAE,EAAE;KAChB;IACD,qBAAqB,EAAE,EAAE;IACzB,uBAAuB,EAAE,GAAG,EAAE,GAAG,CAAC;IAClC,wBAAwB,EAAE,GAAG,EAAE,GAAG,CAAC;CACpC,CAAC,CAAC;AAEI,MAAM,8BAA8B,GAAG,GAA+B,EAAE;IAC7E,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,mCAA2B,CAAC,CAAC;IAExD,IAAG,CAAC,OAAO,EAAC;QACV,MAAM,IAAI,KAAK,CACb,6FAA6F,CAC9F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AATW,QAAA,8BAA8B,kCASzC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { createContext, useContext } from \"react\";\n\nexport interface ExtractionStatusData {\n iconStatus: \"negative\" | \"positive\" | \"warning\" | undefined;\n iconMessage: string;\n}\n\nexport interface ExtractionMessageData {\n date: string;\n category: string;\n level: string;\n message: string;\n}\n\nexport interface IExtractionStatusDataProps {\n extractionStatusIcon: ExtractionStatusData;\n extractionMessageData: ExtractionMessageData[];\n setExtractionStatusIcon: (extractionStatusIcon: ExtractionStatusData | ((extractionStatusIcon: ExtractionStatusData) => ExtractionStatusData)) => void;\n setExtractionMessageData: (extractionMessageData: ExtractionMessageData[]) => void;\n}\n\nexport const ExtractionStatusDataContext = createContext<IExtractionStatusDataProps>({\n extractionStatusIcon: {\n iconStatus: undefined,\n iconMessage: \"\",\n },\n extractionMessageData: [],\n setExtractionStatusIcon: () => { },\n setExtractionMessageData: () => { },\n});\n\nexport const useExtractionStatusDataContext = (): IExtractionStatusDataProps => {\n const context = useContext(ExtractionStatusDataContext);\n\n if(!context){\n throw new Error(\n \"useExtractionStatusIconContext should be used within a ExtractionStatusIconContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1,38 @@
1
+ import * as React from "react";
2
+ import type { MutableRefObject } from "react";
3
+ import type { Group } from "@itwin/insights-client";
4
+ import type { KeySet } from "@itwin/presentation-common";
5
+ export interface QueryCacheItem {
6
+ keySet: KeySet;
7
+ ids: string[];
8
+ }
9
+ export interface OverlappedInfo {
10
+ groupIds: string[];
11
+ elements: string[];
12
+ }
13
+ export interface OverlappedElementGroupPairs {
14
+ elementIds: Set<string>;
15
+ groupIds: Set<string>;
16
+ }
17
+ export interface GroupHilitedElements {
18
+ hilitedElementsQueryCache: MutableRefObject<Map<string, QueryCacheItem>>;
19
+ hiddenGroupsIds: Set<string>;
20
+ showGroupColor: boolean;
21
+ groups: Group[];
22
+ currentHilitedGroups: number;
23
+ overlappedElementsInfo: Map<string, OverlappedInfo[]>;
24
+ groupElementsInfo: Map<string, number>;
25
+ isOverlappedColored: boolean;
26
+ overlappedElementGroupPairs: OverlappedElementGroupPairs[];
27
+ setGroups: (groups: Group[]) => void;
28
+ setHiddenGroupsIds: (hiddenGroupIds: Set<string>) => void;
29
+ setShowGroupColor: (showGroupColor: boolean | ((showGroupColor: boolean) => boolean)) => void;
30
+ setNumberOfVisualizedGroups: (numberOfVisualizedGroups: number | ((numberOfVisualizedGroups: number) => number)) => void;
31
+ setOverlappedElementsInfo: (overlappedElementsInfo: Map<string, OverlappedInfo[]> | ((overlappedElementsInfo: Map<string, OverlappedInfo[]>) => Map<string, OverlappedInfo[]>)) => void;
32
+ setGroupElementsInfo: (groupElementsInfo: Map<string, number> | ((groupElementsInfo: Map<string, number>) => Map<string, number>)) => void;
33
+ setIsOverlappedColored: (isOverlappedColored: boolean | ((isOverlappedColored: boolean) => boolean)) => void;
34
+ setOverlappedElementGroupPairs: (overlappedElementGroupPairs: OverlappedElementGroupPairs[]) => void;
35
+ }
36
+ export declare const GroupHilitedElementsContext: React.Context<GroupHilitedElements>;
37
+ export declare const useGroupHilitedElementsContext: () => GroupHilitedElements;
38
+ //# sourceMappingURL=GroupHilitedElementsContext.d.ts.map
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.useGroupHilitedElementsContext = exports.GroupHilitedElementsContext = void 0;
23
+ /*---------------------------------------------------------------------------------------------
24
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
25
+ * See LICENSE.md in the project root for license terms and full copyright notice.
26
+ *--------------------------------------------------------------------------------------------*/
27
+ const React = __importStar(require("react"));
28
+ exports.GroupHilitedElementsContext = React.createContext({
29
+ hilitedElementsQueryCache: { current: new Map() },
30
+ hiddenGroupsIds: new Set(),
31
+ showGroupColor: false,
32
+ groups: [],
33
+ currentHilitedGroups: 0,
34
+ overlappedElementsInfo: new Map(),
35
+ groupElementsInfo: new Map(),
36
+ isOverlappedColored: false,
37
+ overlappedElementGroupPairs: [],
38
+ setGroups: () => { },
39
+ setHiddenGroupsIds: () => { },
40
+ setShowGroupColor: () => { },
41
+ setNumberOfVisualizedGroups: () => { },
42
+ setOverlappedElementsInfo: () => { },
43
+ setGroupElementsInfo: () => { },
44
+ setIsOverlappedColored: () => { },
45
+ setOverlappedElementGroupPairs: () => { },
46
+ });
47
+ const useGroupHilitedElementsContext = () => {
48
+ const context = React.useContext(exports.GroupHilitedElementsContext);
49
+ if (!context) {
50
+ throw new Error("useGroupHilitedElementsContext should be used within a GroupHilitedElementsContext provider");
51
+ }
52
+ return context;
53
+ };
54
+ exports.useGroupHilitedElementsContext = useGroupHilitedElementsContext;
55
+ //# sourceMappingURL=GroupHilitedElementsContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupHilitedElementsContext.js","sourceRoot":"","sources":["../../../../src/components/context/GroupHilitedElementsContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,6CAA+B;AAsClB,QAAA,2BAA2B,GAAG,KAAK,CAAC,aAAa,CAAuB;IACnF,yBAAyB,EAAE,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE;IACjD,eAAe,EAAE,IAAI,GAAG,EAAE;IAC1B,cAAc,EAAE,KAAK;IACrB,MAAM,EAAE,EAAE;IACV,oBAAoB,EAAE,CAAC;IACvB,sBAAsB,EAAE,IAAI,GAAG,EAAE;IACjC,iBAAiB,EAAE,IAAI,GAAG,EAAE;IAC5B,mBAAmB,EAAE,KAAK;IAC1B,2BAA2B,EAAE,EAAE;IAC/B,SAAS,EAAE,GAAG,EAAE,GAAG,CAAC;IACpB,kBAAkB,EAAE,GAAG,EAAE,GAAG,CAAC;IAC7B,iBAAiB,EAAE,GAAG,EAAE,GAAG,CAAC;IAC5B,2BAA2B,EAAE,GAAG,EAAE,GAAG,CAAC;IACtC,yBAAyB,EAAE,GAAG,EAAE,GAAG,CAAC;IACpC,oBAAoB,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/B,sBAAsB,EAAE,GAAG,EAAE,GAAG,CAAC;IACjC,8BAA8B,EAAE,GAAG,EAAE,GAAG,CAAC;CAC1C,CAAC,CAAC;AAEI,MAAM,8BAA8B,GAAG,GAAyB,EAAE;IACvE,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,mCAA2B,CAAC,CAAC;IAC9D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,6FAA6F,CAC9F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,8BAA8B,kCAQzC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport type { MutableRefObject } from \"react\";\nimport type { Group } from \"@itwin/insights-client\";\nimport type { KeySet } from \"@itwin/presentation-common\";\nexport interface QueryCacheItem {\n keySet: KeySet;\n ids: string[];\n}\nexport interface OverlappedInfo {\n groupIds: string[];\n elements: string[];\n}\n\nexport interface OverlappedElementGroupPairs {\n elementIds: Set<string>;\n groupIds: Set<string>;\n}\n\nexport interface GroupHilitedElements {\n hilitedElementsQueryCache: MutableRefObject<Map<string, QueryCacheItem>>;\n hiddenGroupsIds: Set<string>;\n showGroupColor: boolean;\n groups: Group[];\n currentHilitedGroups: number;\n overlappedElementsInfo: Map<string, OverlappedInfo[]>;\n groupElementsInfo: Map<string, number>;\n isOverlappedColored: boolean;\n overlappedElementGroupPairs: OverlappedElementGroupPairs[];\n setGroups: (groups: Group[]) => void;\n setHiddenGroupsIds: (hiddenGroupIds: Set<string>) => void;\n setShowGroupColor: (showGroupColor: boolean | ((showGroupColor: boolean) => boolean)) => void;\n setNumberOfVisualizedGroups: (numberOfVisualizedGroups: number | ((numberOfVisualizedGroups: number) => number)) => void;\n setOverlappedElementsInfo: (overlappedElementsInfo: Map<string, OverlappedInfo[]> | ((overlappedElementsInfo: Map<string, OverlappedInfo[]>) => Map<string, OverlappedInfo[]>)) => void;\n setGroupElementsInfo: (groupElementsInfo: Map<string, number> | ((groupElementsInfo: Map<string, number>) => Map<string, number>)) => void;\n setIsOverlappedColored: (isOverlappedColored: boolean | ((isOverlappedColored: boolean) => boolean)) => void;\n setOverlappedElementGroupPairs: (overlappedElementGroupPairs: OverlappedElementGroupPairs[]) => void;\n}\n\nexport const GroupHilitedElementsContext = React.createContext<GroupHilitedElements>({\n hilitedElementsQueryCache: { current: new Map() },\n hiddenGroupsIds: new Set(),\n showGroupColor: false,\n groups: [],\n currentHilitedGroups: 0,\n overlappedElementsInfo: new Map(),\n groupElementsInfo: new Map(),\n isOverlappedColored: false,\n overlappedElementGroupPairs: [],\n setGroups: () => { },\n setHiddenGroupsIds: () => { },\n setShowGroupColor: () => { },\n setNumberOfVisualizedGroups: () => { },\n setOverlappedElementsInfo: () => { },\n setGroupElementsInfo: () => { },\n setIsOverlappedColored: () => { },\n setOverlappedElementGroupPairs: () => { },\n});\n\nexport const useGroupHilitedElementsContext = (): GroupHilitedElements => {\n const context = React.useContext(GroupHilitedElementsContext);\n if (!context) {\n throw new Error(\n \"useGroupHilitedElementsContext should be used within a GroupHilitedElementsContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupingApiConfigContext.js","sourceRoot":"","sources":["../../../../src/components/context/GroupingApiConfigContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAMA,6CAA+B;AAC/B,iCAAsC;AAWzB,QAAA,+BAA+B,GAC1C,IAAA,qBAAa,EAA2B;IACtC,cAAc,EAAE,KAAK,IAAI,EAAE,CAAC,EAAE;IAC9B,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,SAAS;IACjB,gBAAgB,EAAE,SAAS;CAC5B,CAAC,CAAC;AAEE,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,uCAA+B,CAAC,CAAC;IAClE,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,8FAA8F,CAC/F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,2BAA2B,+BAQtC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { AccessToken } from \"@itwin/core-bentley\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport * as React from \"react\";\nimport { createContext } from \"react\";\n\nexport type ClientPrefix = \"\" | \"dev\" | \"qa\" | undefined;\nexport type GetAccessTokenFn = () => Promise<AccessToken>;\nexport interface GroupingMappingApiConfig {\n getAccessToken: GetAccessTokenFn;\n iModelId: string;\n iModelConnection?: IModelConnection;\n prefix?: ClientPrefix;\n}\n\nexport const GroupingMappingApiConfigContext =\n createContext<GroupingMappingApiConfig>({\n getAccessToken: async () => \"\",\n iModelId: \"\",\n prefix: undefined,\n iModelConnection: undefined,\n });\n\nexport const useGroupingMappingApiConfig = () => {\n const context = React.useContext(GroupingMappingApiConfigContext);\n if (!context) {\n throw new Error(\n \"useGroupingMappingApiConfig should be used within a GroupingMappingApiConfigContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupingMappingCustomUIContext.js","sourceRoot":"","sources":["../../../../src/components/context/GroupingMappingCustomUIContext.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,iCAAkD;AAG3C,MAAM,6BAA6B,GAAG,CAC3C,SAAgD,EACrB,EAAE;IAC7B,OAAO,SAAS,IAAI,EAAE,CAAC;AACzB,CAAC,CAAC;AAJW,QAAA,6BAA6B,iCAIxC;AAOW,QAAA,8BAA8B,GAAG,IAAA,qBAAa,EAA2B;IACpF,SAAS,EAAE,EAAE;IACb,YAAY,EAAE,GAAG,EAAE,GAAG,CAAC;CACxB,CAAC,CAAC;AAEI,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC7C,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,sCAA8B,CAAC,CAAC;IAC3D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,4FAA4F,CAC7F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,0BAA0B,8BAQrC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { createContext, useContext } from \"react\";\nimport type { GroupingMappingCustomUI } from \"../customUI/GroupingMappingCustomUI\";\n\nexport const createGroupingMappingCustomUI = (\n customUIs: GroupingMappingCustomUI[] | undefined,\n): GroupingMappingCustomUI[] => {\n return customUIs ?? [];\n};\n\nexport interface IGroupingMappingCustomUI {\n customUIs: GroupingMappingCustomUI[];\n setCustomUIs: (customUI: GroupingMappingCustomUI[] | ((customUI: GroupingMappingCustomUI[]) => GroupingMappingCustomUI[])) => void;\n}\n\nexport const GroupingMappingCustomUIContext = createContext<IGroupingMappingCustomUI>({\n customUIs: [],\n setCustomUIs: () => { },\n});\n\nexport const useGroupingMappingCustomUI = () => {\n const context = useContext(GroupingMappingCustomUIContext);\n if (!context) {\n throw new Error(\n \"useGroupingMappingCustomUI should be used within a GroupingMappingCustomUIContext provider\",\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IModelsClientContext.js","sourceRoot":"","sources":["../../../../src/components/context/IModelsClientContext.ts"],"names":[],"mappings":";;;AAKA,gFAAiE;AACjE,iCAAkD;AAGlD,MAAM,OAAO,GAAW,iCAAiC,CAAC;AAE1D,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,MAAe,EAAE,EAAE;IACtD,IAAI,MAAM,IAAI,OAAO,EAAE;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,MAAM,kBAAkB,CAAC,CAAC;KACxE;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,MAAqB,EAAiB,EAAE;IAC1E,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACvC,MAAM,OAAO,GAAyB;QACpC,GAAG,EAAE;YACH,OAAO,EAAE,GAAG;SACb;KACF,CAAC;IACF,OAAO,IAAI,yCAAa,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC,CAAC;AARW,QAAA,mBAAmB,uBAQ9B;AAEW,QAAA,oBAAoB,GAAG,IAAA,qBAAa,EAAgB,IAAA,2BAAmB,GAAE,CAAC,CAAC;AAEjF,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAoB,CAAC,CAAC;IACjD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { IModelsClientOptions } from \"@itwin/imodels-client-management\";\nimport { IModelsClient } from \"@itwin/imodels-client-management\";\nimport { createContext, useContext } from \"react\";\nimport type { ClientPrefix } from \"./GroupingApiConfigContext\";\n\nconst baseUrl: string = \"https://api.bentley.com/imodels\";\n\nconst prefixUrl = (baseUrl?: string, prefix?: string) => {\n if (prefix && baseUrl) {\n return baseUrl.replace(\"api.bentley.com\", `${prefix}-api.bentley.com`);\n }\n return baseUrl;\n};\n\nexport const createIModelsClient = (prefix?: ClientPrefix): IModelsClient => {\n const url = prefixUrl(baseUrl, prefix);\n const options: IModelsClientOptions = {\n api: {\n baseUrl: url,\n },\n };\n return new IModelsClient(options);\n};\n\nexport const IModelsClientContext = createContext<IModelsClient>(createIModelsClient());\n\nexport const useIModelsClient = () => {\n const context = useContext(IModelsClientContext);\n if (!context) {\n throw new Error(\n \"useIModelsClient should be used within an IModelsClientContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITwinsClientContext.js","sourceRoot":"","sources":["../../../../src/components/context/ITwinsClientContext.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,wDAA0D;AAC1D,iCAAkD;AAGlD,MAAM,OAAO,GAAW,gCAAgC,CAAC;AAEzD,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,MAAe,EAAE,EAAE;IACtD,IAAI,MAAM,IAAI,OAAO,EAAE;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,MAAM,kBAAkB,CAAC,CAAC;KACxE;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,kBAAkB,GAAG,CAAC,MAAqB,EAAsB,EAAE;IAC9E,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACvC,OAAO,IAAI,kCAAkB,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC,CAAC;AAHW,QAAA,kBAAkB,sBAG7B;AAEW,QAAA,mBAAmB,GAAG,IAAA,qBAAa,EAAqB,IAAA,0BAAkB,GAAE,CAAC,CAAC;AAEpF,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,2BAAmB,CAAC,CAAC;IAChD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,uEAAuE,CACxE,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { ITwinsAccessClient } from \"@itwin/itwins-client\";\nimport { createContext, useContext } from \"react\";\nimport type { ClientPrefix } from \"./GroupingApiConfigContext\";\n\nconst baseUrl: string = \"https://api.bentley.com/itwins\";\n\nconst prefixUrl = (baseUrl?: string, prefix?: string) => {\n if (prefix && baseUrl) {\n return baseUrl.replace(\"api.bentley.com\", `${prefix}-api.bentley.com`);\n }\n return baseUrl;\n};\n\nexport const createITwinsClient = (prefix?: ClientPrefix): ITwinsAccessClient => {\n const url = prefixUrl(baseUrl, prefix);\n return new ITwinsAccessClient(url);\n};\n\nexport const ITwinsClientContext = createContext<ITwinsAccessClient>(createITwinsClient());\n\nexport const useITwinsClient = () => {\n const context = useContext(ITwinsClientContext);\n if (!context) {\n throw new Error(\n \"useITwinsClient should be used within an ITwinsClientContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MappingClientContext.js","sourceRoot":"","sources":["../../../../src/components/context/MappingClientContext.ts"],"names":[],"mappings":";;;AAKA,4DAA6E;AAC7E,iCAAkD;AAGlD,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,MAAe,EAAE,EAAE;IACtD,IAAI,MAAM,IAAI,OAAO,EAAE;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,MAAM,kBAAkB,CAAC,CAAC;KACxE;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,0BAA0B,GAAG,CAAC,MAAqB,EAAmB,EAAE;IACnF,MAAM,GAAG,GAAG,SAAS,CAAC,qCAAmB,EAAE,MAAM,CAAC,CAAC;IACnD,OAAO,IAAI,gCAAc,CAAC,GAAG,CAAC,CAAC;AACjC,CAAC,CAAC;AAHW,QAAA,0BAA0B,8BAGrC;AAEK,MAAM,mBAAmB,GAAG,CAAC,UAA0C,EAAE,EAAE;IAChF,IAAI,SAAS,KAAK,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAC9D,OAAO,IAAA,kCAA0B,EAAC,UAA0B,CAAC,CAAC;KAC/D;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AALW,QAAA,mBAAmB,uBAK9B;AACW,QAAA,oBAAoB,GAAG,IAAA,qBAAa,EAAkB,IAAA,kCAA0B,GAAE,CAAC,CAAC;AAE1F,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAoB,CAAC,CAAC;IACjD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { IMappingsClient} from \"@itwin/insights-client\";\nimport { MappingsClient, REPORTING_BASE_PATH } from \"@itwin/insights-client\";\nimport { createContext, useContext } from \"react\";\nimport type { ClientPrefix } from \"./GroupingApiConfigContext\";\n\nconst prefixUrl = (baseUrl?: string, prefix?: string) => {\n if (prefix && baseUrl) {\n return baseUrl.replace(\"api.bentley.com\", `${prefix}-api.bentley.com`);\n }\n return baseUrl;\n};\n\nexport const createDefaultMappingClient = (prefix?: ClientPrefix): IMappingsClient => {\n const url = prefixUrl(REPORTING_BASE_PATH, prefix);\n return new MappingsClient(url);\n};\n\nexport const createMappingClient = (clientProp: IMappingsClient | ClientPrefix) => {\n if (undefined === clientProp || typeof clientProp === \"string\") {\n return createDefaultMappingClient(clientProp as ClientPrefix);\n }\n return clientProp;\n};\nexport const MappingClientContext = createContext<IMappingsClient>(createDefaultMappingClient());\n\nexport const useMappingClient = () => {\n const context = useContext(MappingClientContext);\n if (!context) {\n throw new Error(\n \"useMappingClient should be used within a MappingClientContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertiesContext.js","sourceRoot":"","sources":["../../../../src/components/context/PropertiesContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,6CAA+B;AAclB,QAAA,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAa;IAC/D,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,GAAG,EAAE,GAAG,CAAC;IAC7B,uBAAuB,EAAE,GAAG,EAAE,GAAG,CAAC;IAClC,8BAA8B,EAAE,GAAG,EAAE,GAAG,CAAC;IACzC,iBAAiB,EAAE,GAAG,EAAE,GAAG,CAAC;CAC7B,CAAC,CAAC;AAEI,MAAM,oBAAoB,GAAG,GAAe,EAAE;IACnD,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAC;IACpD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,oBAAoB,wBAQ/B","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport type { CalculatedProperty, CustomCalculation, GroupProperty } from \"@itwin/insights-client\";\n\nexport interface Properties {\n showGroupColor: boolean;\n groupProperties?: GroupProperty[];\n calculatedProperties?: CalculatedProperty[];\n customCalculationProperties?: CustomCalculation[];\n setGroupProperties: (groupProperties: GroupProperty[]) => void;\n setCalculatedProperties: (calculatedProperties: CalculatedProperty[]) => void;\n setCustomCalculationProperties: (customCalculationProperties: CustomCalculation[]) => void;\n setShowGroupColor: (showGroupColor: boolean | ((showGroupColor: boolean) => boolean)) => void;\n}\n\nexport const PropertiesContext = React.createContext<Properties>({\n showGroupColor: false,\n setGroupProperties: () => { },\n setCalculatedProperties: () => { },\n setCustomCalculationProperties: () => { },\n setShowGroupColor: () => { },\n});\n\nexport const usePropertiesContext = (): Properties => {\n const context = React.useContext(PropertiesContext);\n if (!context) {\n throw new Error(\n \"usePropertiesContext should be used within a PropertiesContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import type { PropertyRecord } from "@itwin/appui-abstract";
3
+ import type { QueryBuilder } from "../Groups/QueryBuilder/QueryBuilder";
4
+ export interface PropertySelection {
5
+ currentPropertyList: PropertyRecord[];
6
+ setCurrentPropertyList: (value: PropertyRecord[] | ((value: PropertyRecord[]) => PropertyRecord[])) => void;
7
+ setQuery: (value: string) => void;
8
+ queryBuilder?: QueryBuilder;
9
+ isUpdating: boolean;
10
+ }
11
+ export declare const PropertyGridWrapperContext: React.Context<PropertySelection>;
12
+ export declare const usePropertyGridWrapper: () => PropertySelection;
13
+ //# sourceMappingURL=PropertyGridWrapperContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyGridWrapperContext.js","sourceRoot":"","sources":["../../../../src/components/context/PropertyGridWrapperContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,6CAA+B;AAYlB,QAAA,0BAA0B,GAAG,KAAK,CAAC,aAAa,CAAoB;IAC/E,mBAAmB,EAAE,EAAE;IACvB,sBAAsB,EAAE,GAAG,EAAE,CAAC,EAAE;IAChC,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE;IAClB,UAAU,EAAE,KAAK;CAClB,CAAC,CAAC;AAEI,MAAM,sBAAsB,GAAG,GAAsB,EAAE;IAC5D,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,kCAA0B,CAAC,CAAC;IAC7D,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,2FAA2F,CAC5F,CAAC;KACH;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AARW,QAAA,sBAAsB,0BAQjC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport * as React from \"react\";\nimport type { PropertyRecord } from \"@itwin/appui-abstract\";\nimport type { QueryBuilder } from \"../Groups/QueryBuilder/QueryBuilder\";\n\nexport interface PropertySelection {\n currentPropertyList: PropertyRecord[];\n setCurrentPropertyList: (value: PropertyRecord[] | ((value: PropertyRecord[]) => PropertyRecord[])) => void;\n setQuery: (value: string) => void;\n queryBuilder?: QueryBuilder;\n isUpdating: boolean;\n}\n\nexport const PropertyGridWrapperContext = React.createContext<PropertySelection>({\n currentPropertyList: [],\n setCurrentPropertyList: () => [],\n setQuery: () => \"\",\n isUpdating: false,\n});\n\nexport const usePropertyGridWrapper = (): PropertySelection => {\n const context = React.useContext(PropertyGridWrapperContext);\n if (!context) {\n throw new Error(\n \"usePropertyGridWrapperContext should be used within a PropertyGridWrapperContext provider\"\n );\n }\n return context;\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultGroupingUI.js","sourceRoot":"","sources":["../../../../src/components/customUI/DefaultGroupingUI.tsx"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,kDAA0B;AAC1B,oEAA2E;AAE3E,uEAAwE;AACxE,2EAAwE;AACxE,qEAAkE;AAClE,qEAAkE;AAErD,QAAA,iBAAiB,GAA8B;IAC1D;QACE,IAAI,EAAE,WAAW;QACjB,YAAY,EAAE,WAAW;QACzB,IAAI,EAAE,qDAA2B,CAAC,QAAQ;QAC1C,IAAI,EAAE,8BAAC,+BAAS,OAAG;QACnB,WAAW,EAAE,qDAAyB;KACvC;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,YAAY,EAAE,gBAAgB;QAC9B,IAAI,EAAE,qDAA2B,CAAC,QAAQ;QAC1C,IAAI,EAAE,8BAAC,+BAAS,OAAG;QACnB,WAAW,EAAE,+CAAsB;KACpC;IACD;QACE,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,QAAQ;QACtB,IAAI,EAAE,qDAA2B,CAAC,QAAQ;QAC1C,IAAI,EAAE,8BAAC,6BAAO,OAAG;QACjB,WAAW,EAAE,+CAAsB;KACpC;CACF,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport { SvgCursor, SvgDraw, SvgSearch } from \"@itwin/itwinui-icons-react\";\nimport type { GroupingMappingCustomUI } from \"./GroupingMappingCustomUI\";\nimport { GroupingMappingCustomUIType } from \"./GroupingMappingCustomUI\";\nimport { GroupQueryBuilderCustomUI } from \"./GroupQueryBuilderCustomUI\";\nimport { ManualGroupingCustomUI } from \"./ManualGroupingCustomUI\";\nimport { SearchGroupingCustomUI } from \"./SearchGroupingCustomUI\";\n\nexport const defaultGroupingUI: GroupingMappingCustomUI[] = [\n {\n name: \"Selection\",\n displayLabel: \"Selection\",\n type: GroupingMappingCustomUIType.Grouping,\n icon: <SvgCursor />,\n uiComponent: GroupQueryBuilderCustomUI,\n },\n {\n name: \"Query Keywords\",\n displayLabel: \"Query Keywords\",\n type: GroupingMappingCustomUIType.Grouping,\n icon: <SvgSearch />,\n uiComponent: SearchGroupingCustomUI,\n },\n {\n name: \"Manual\",\n displayLabel: \"Manual\",\n type: GroupingMappingCustomUIType.Grouping,\n icon: <SvgDraw />,\n uiComponent: ManualGroupingCustomUI,\n },\n];\n"]}
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.GroupQueryBuilderCustomUI = void 0;
23
+ /*---------------------------------------------------------------------------------------------
24
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
25
+ * See LICENSE.md in the project root for license terms and full copyright notice.
26
+ *--------------------------------------------------------------------------------------------*/
27
+ const react_1 = __importStar(require("react"));
28
+ const presentation_frontend_1 = require("@itwin/presentation-frontend");
29
+ const presentation_common_1 = require("@itwin/presentation-common");
30
+ require("./GroupQueryBuilderCustomUI.scss");
31
+ const QueryBuilder_1 = require("../Groups/QueryBuilder/QueryBuilder");
32
+ const presentation_components_1 = require("@itwin/presentation-components");
33
+ const components_react_1 = require("@itwin/components-react");
34
+ const core_react_1 = require("@itwin/core-react");
35
+ const PropertyGridWrapperContext_1 = require("../context/PropertyGridWrapperContext");
36
+ const PropertyAction_1 = require("../Properties/PropertyAction");
37
+ const itwinui_react_1 = require("@itwin/itwinui-react");
38
+ const GroupingApiConfigContext_1 = require("../context/GroupingApiConfigContext");
39
+ const core_frontend_1 = require("@itwin/core-frontend");
40
+ const createPropertyDataProvider = async (keys, iModelConnection) => {
41
+ const dataProvider = new presentation_components_1.PresentationPropertyDataProvider({
42
+ imodel: iModelConnection,
43
+ ruleset: presentation_components_1.DEFAULT_PROPERTY_GRID_RULESET,
44
+ });
45
+ dataProvider.keys = keys;
46
+ dataProvider.isNestedPropertyCategoryGroupingEnabled = true;
47
+ const data = await dataProvider.getData();
48
+ const selectedCategory = data.categories.find((category) => category.label === core_frontend_1.IModelApp.localization.getLocalizedString("Presentation:selectedItems.categoryLabel"));
49
+ if (selectedCategory) {
50
+ selectedCategory.expand = true;
51
+ }
52
+ return dataProvider;
53
+ };
54
+ const GroupQueryBuilderCustomUI = ({ updateQuery, isUpdating, resetView, }) => {
55
+ const { iModelConnection } = (0, GroupingApiConfigContext_1.useGroupingMappingApiConfig)();
56
+ if (!iModelConnection) {
57
+ throw new Error("This component requires an active iModelConnection.");
58
+ }
59
+ const [size, setSize] = (0, react_1.useState)({ width: 0, height: 0 });
60
+ const [dataProvider, setDataProvider] = (0, react_1.useState)(undefined);
61
+ const [currentPropertyList, setCurrentPropertyList] = (0, react_1.useState)([]);
62
+ const [selectionKeySet, setSelectionKeyset] = (0, react_1.useState)(new presentation_common_1.KeySet());
63
+ const [queryBuilder, setQueryBuilder] = (0, react_1.useState)();
64
+ (0, react_1.useEffect)(() => {
65
+ const onSelectionChanged = async (evt, selectionProvider) => {
66
+ const selection = selectionProvider.getSelection(evt.imodel, evt.level);
67
+ const keys = new presentation_common_1.KeySet(selection);
68
+ setSelectionKeyset(keys);
69
+ const dataProvider = await createPropertyDataProvider(keys, iModelConnection);
70
+ setDataProvider(dataProvider);
71
+ setQueryBuilder(new QueryBuilder_1.QueryBuilder(dataProvider));
72
+ };
73
+ return iModelConnection
74
+ ? presentation_frontend_1.Presentation.selection.selectionChange.addListener(onSelectionChanged)
75
+ : () => { };
76
+ }, [iModelConnection]);
77
+ const onClickResetButton = async () => {
78
+ queryBuilder?.resetQueryBuilder();
79
+ updateQuery("");
80
+ setCurrentPropertyList([]);
81
+ if (resetView)
82
+ await resetView().catch((e) =>
83
+ /* eslint-disable no-console */
84
+ console.error(e));
85
+ };
86
+ const resize = (0, react_1.useCallback)((width, height) => setSize({ width, height }), []);
87
+ const propertyContextValues = (0, react_1.useMemo)(() => ({
88
+ currentPropertyList,
89
+ setCurrentPropertyList,
90
+ queryBuilder,
91
+ setQuery: updateQuery,
92
+ isUpdating: isUpdating ?? false,
93
+ }), [currentPropertyList, isUpdating, queryBuilder, updateQuery]);
94
+ const actionButtonRenderers = (0, react_1.useMemo)(() => [
95
+ ({ property }) => (react_1.default.createElement(PropertyAction_1.PropertyAction, { property: property })),
96
+ ], []);
97
+ return (react_1.default.createElement("div", { className: "gmw-select-query-generator-container" }, !dataProvider || selectionKeySet.size === 0 ? (react_1.default.createElement(itwinui_react_1.Alert, { type: 'informational' }, "Please select on an element within the viewer first, then select properties to generate a group query.")) :
98
+ react_1.default.createElement(react_1.default.Fragment, null,
99
+ react_1.default.createElement("div", { className: "gmw-select-property-grid-container" },
100
+ react_1.default.createElement(core_react_1.ResizableContainerObserver, { onResize: resize }),
101
+ react_1.default.createElement(PropertyGridWrapperContext_1.PropertyGridWrapperContext.Provider, { value: propertyContextValues },
102
+ react_1.default.createElement(components_react_1.VirtualizedPropertyGridWithDataProvider, { dataProvider: dataProvider, width: size.width, height: size.height, actionButtonRenderers: actionButtonRenderers }))),
103
+ react_1.default.createElement("div", { className: "gmw-select-reset-button" },
104
+ react_1.default.createElement(itwinui_react_1.Button, { styleType: "default", size: "small", onClick: onClickResetButton }, "Reset")))));
105
+ };
106
+ exports.GroupQueryBuilderCustomUI = GroupQueryBuilderCustomUI;
107
+ //# sourceMappingURL=GroupQueryBuilderCustomUI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupQueryBuilderCustomUI.js","sourceRoot":"","sources":["../../../../src/components/customUI/GroupQueryBuilderCustomUI.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;+FAG+F;AAC/F,+CAAyE;AACzE,wEAA4D;AAK5D,oEAAoD;AACpD,4CAA0C;AAC1C,sEAAmE;AAEnE,4EAGwC;AAGxC,8DAAkF;AAClF,kDAA+D;AAE/D,sFAAmF;AACnF,iEAA8D;AAC9D,wDAAqD;AACrD,kFAAkF;AAClF,wDAAiD;AAEjD,MAAM,0BAA0B,GAAG,KAAK,EACtC,IAAY,EACZ,gBAAkC,EACS,EAAE;IAC7C,MAAM,YAAY,GAAG,IAAI,0DAAgC,CAAC;QACxD,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE,uDAA6B;KACvC,CAAC,CAAC;IACH,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,uCAAuC,GAAG,IAAI,CAAC;IAC5D,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAC;IAC1C,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,KAAK,yBAAS,CAAC,YAAY,CAAC,kBAAkB,CAAC,0CAA0C,CAAC,CAAC,CAAC;IACtK,IAAI,gBAAgB,EAAE;QACpB,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC;KAChC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAOK,MAAM,yBAAyB,GAAG,CAAC,EACxC,WAAW,EACX,UAAU,EACV,SAAS,GACa,EAAE,EAAE;IAC1B,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,sDAA2B,GAAE,CAAC;IAC3D,IAAI,CAAC,gBAAgB,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;KACxE;IACD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAsB,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/E,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GACnC,IAAA,gBAAQ,EAA+C,SAAS,CAAC,CAAC;IACpE,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,IAAA,gBAAQ,EAAmB,EAAE,CAAC,CAAC;IACrF,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAAS,IAAI,4BAAM,EAAE,CAAC,CAAC;IAC7E,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,GAA4B,CAAC;IAE7E,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,kBAAkB,GAAG,KAAK,EAC9B,GAA6B,EAC7B,iBAAqC,EACrC,EAAE;YACF,MAAM,SAAS,GAAG,iBAAiB,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;YACxE,MAAM,IAAI,GAAG,IAAI,4BAAM,CAAC,SAAS,CAAC,CAAC;YACnC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YACzB,MAAM,YAAY,GAAG,MAAM,0BAA0B,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;YAC9E,eAAe,CAAC,YAAY,CAAC,CAAC;YAC9B,eAAe,CAAC,IAAI,2BAAY,CAAC,YAAY,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC;QAEF,OAAO,gBAAgB;YACrB,CAAC,CAAC,oCAAY,CAAC,SAAS,CAAC,eAAe,CAAC,WAAW,CAAC,kBAAkB,CAAC;YACxE,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEvB,MAAM,kBAAkB,GAAG,KAAK,IAAI,EAAE;QACpC,YAAY,EAAE,iBAAiB,EAAE,CAAC;QAClC,WAAW,CAAC,EAAE,CAAC,CAAC;QAChB,sBAAsB,CAAC,EAAE,CAAC,CAAC;QAC3B,IAAI,SAAS;YACX,MAAM,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YAC5B,+BAA+B;YAC/B,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CACjB,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,mBAAW,EAAC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAE9E,MAAM,qBAAqB,GAAG,IAAA,eAAO,EACnC,GAAG,EAAE,CAAC,CAAC;QACL,mBAAmB;QACnB,sBAAsB;QACtB,YAAY;QACZ,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,UAAU,IAAI,KAAK;KAChC,CAAC,EACF,CAAC,mBAAmB,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,CAAC,CAC7D,CAAC;IAEF,MAAM,qBAAqB,GAAG,IAAA,eAAO,EACnC,GAAG,EAAE,CAAC;QACJ,CAAC,EAAE,QAAQ,EAA6B,EAAE,EAAE,CAAC,CAC3C,8BAAC,+BAAc,IAAC,QAAQ,EAAE,QAAQ,GAAI,CACvC;KACF,EACD,EAAE,CACH,CAAC;IAEF,OAAO,CACL,uCAAK,SAAS,EAAC,sCAAsC,IAClD,CAAC,YAAY,IAAI,eAAe,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAC7C,8BAAC,qBAAK,IAAC,IAAI,EAAC,eAAe,6GAEnB,CACT,CAAC,CAAC;QACD;YACE,uCAAK,SAAS,EAAC,oCAAoC;gBACjD,8BAAC,uCAA0B,IAAC,QAAQ,EAAE,MAAM,GAAI;gBAChD,8BAAC,uDAA0B,CAAC,QAAQ,IAAC,KAAK,EAAE,qBAAqB;oBAC/D,8BAAC,0DAAuC,IACtC,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,qBAAqB,EAAE,qBAAqB,GAC5C,CACkC,CAClC;YACN,uCAAK,SAAS,EAAC,yBAAyB;gBACtC,8BAAC,sBAAM,IACL,SAAS,EAAC,SAAS,EACnB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,kBAAkB,YAGpB,CACL,CACL,CAED,CACP,CAAC;AACJ,CAAC,CAAC;AAnGW,QAAA,yBAAyB,6BAmGpC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { Presentation } from \"@itwin/presentation-frontend\";\nimport type {\n ISelectionProvider,\n SelectionChangeEventArgs,\n} from \"@itwin/presentation-frontend\";\nimport { KeySet } from \"@itwin/presentation-common\";\nimport \"./GroupQueryBuilderCustomUI.scss\";\nimport { QueryBuilder } from \"../Groups/QueryBuilder/QueryBuilder\";\nimport type { GroupingCustomUIProps } from \"./GroupingMappingCustomUI\";\nimport {\n DEFAULT_PROPERTY_GRID_RULESET,\n PresentationPropertyDataProvider,\n} from \"@itwin/presentation-components\";\nimport type { IModelConnection } from \"@itwin/core-frontend\";\nimport type { ActionButtonRendererProps } from \"@itwin/components-react\";\nimport { VirtualizedPropertyGridWithDataProvider } from \"@itwin/components-react\";\nimport { ResizableContainerObserver } from \"@itwin/core-react\";\nimport type { PropertyRecord } from \"@itwin/appui-abstract\";\nimport { PropertyGridWrapperContext } from \"../context/PropertyGridWrapperContext\";\nimport { PropertyAction } from \"../Properties/PropertyAction\";\nimport { Alert, Button } from \"@itwin/itwinui-react\";\nimport { useGroupingMappingApiConfig } from \"../context/GroupingApiConfigContext\";\nimport { IModelApp } from \"@itwin/core-frontend\";\n\nconst createPropertyDataProvider = async (\n keys: KeySet,\n iModelConnection: IModelConnection\n): Promise<PresentationPropertyDataProvider> => {\n const dataProvider = new PresentationPropertyDataProvider({\n imodel: iModelConnection,\n ruleset: DEFAULT_PROPERTY_GRID_RULESET,\n });\n dataProvider.keys = keys;\n dataProvider.isNestedPropertyCategoryGroupingEnabled = true;\n const data = await dataProvider.getData();\n const selectedCategory = data.categories.find((category) => category.label === IModelApp.localization.getLocalizedString(\"Presentation:selectedItems.categoryLabel\"));\n if (selectedCategory) {\n selectedCategory.expand = true;\n }\n return dataProvider;\n};\n\ninterface ContainerDimensions {\n width: number;\n height: number;\n}\n\nexport const GroupQueryBuilderCustomUI = ({\n updateQuery,\n isUpdating,\n resetView,\n}: GroupingCustomUIProps) => {\n const { iModelConnection } = useGroupingMappingApiConfig();\n if (!iModelConnection) {\n throw new Error(\"This component requires an active iModelConnection.\");\n }\n const [size, setSize] = useState<ContainerDimensions>({ width: 0, height: 0 });\n const [dataProvider, setDataProvider] =\n useState<PresentationPropertyDataProvider | undefined>(undefined);\n const [currentPropertyList, setCurrentPropertyList] = useState<PropertyRecord[]>([]);\n const [selectionKeySet, setSelectionKeyset] = useState<KeySet>(new KeySet());\n const [queryBuilder, setQueryBuilder] = useState<QueryBuilder | undefined>();\n\n useEffect(() => {\n const onSelectionChanged = async (\n evt: SelectionChangeEventArgs,\n selectionProvider: ISelectionProvider\n ) => {\n const selection = selectionProvider.getSelection(evt.imodel, evt.level);\n const keys = new KeySet(selection);\n setSelectionKeyset(keys);\n const dataProvider = await createPropertyDataProvider(keys, iModelConnection);\n setDataProvider(dataProvider);\n setQueryBuilder(new QueryBuilder(dataProvider));\n };\n\n return iModelConnection\n ? Presentation.selection.selectionChange.addListener(onSelectionChanged)\n : () => { };\n }, [iModelConnection]);\n\n const onClickResetButton = async () => {\n queryBuilder?.resetQueryBuilder();\n updateQuery(\"\");\n setCurrentPropertyList([]);\n if (resetView)\n await resetView().catch((e) =>\n /* eslint-disable no-console */\n console.error(e)\n );\n };\n\n const resize = useCallback((width, height) => setSize({ width, height }), []);\n\n const propertyContextValues = useMemo(\n () => ({\n currentPropertyList,\n setCurrentPropertyList,\n queryBuilder,\n setQuery: updateQuery,\n isUpdating: isUpdating ?? false,\n }),\n [currentPropertyList, isUpdating, queryBuilder, updateQuery]\n );\n\n const actionButtonRenderers = useMemo(\n () => [\n ({ property }: ActionButtonRendererProps) => (\n <PropertyAction property={property} />\n ),\n ],\n []\n );\n\n return (\n <div className=\"gmw-select-query-generator-container\">\n {!dataProvider || selectionKeySet.size === 0 ? (\n <Alert type='informational'>\n Please select on an element within the viewer first, then select properties to generate a group query.\n </Alert>\n ) :\n <>\n <div className=\"gmw-select-property-grid-container\">\n <ResizableContainerObserver onResize={resize} />\n <PropertyGridWrapperContext.Provider value={propertyContextValues}>\n <VirtualizedPropertyGridWithDataProvider\n dataProvider={dataProvider}\n width={size.width}\n height={size.height}\n actionButtonRenderers={actionButtonRenderers}\n />\n </PropertyGridWrapperContext.Provider>\n </div>\n <div className=\"gmw-select-reset-button\">\n <Button\n styleType=\"default\"\n size=\"small\"\n onClick={onClickResetButton}\n >\n Reset\n </Button>\n </div>\n </>\n }\n </div>\n );\n};\n\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupingMappingCustomUI.js","sourceRoot":"","sources":["../../../../src/components/customUI/GroupingMappingCustomUI.ts"],"names":[],"mappings":";;;AAOA,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,qFAAQ,CAAA;IACR,mFAAO,CAAA;AACT,CAAC,EAHW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAGtC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type { Group, Mapping } from \"@itwin/insights-client\";\nimport type { ReactElement } from \"react\";\n\nexport enum GroupingMappingCustomUIType {\n Grouping,\n Context,\n}\n\nexport type GroupingMappingCustomUI = GroupingCustomUI | ContextCustomUI;\n\n/** Custom UI Definitions. */\n\nexport interface IGroupingMappingCustomUI {\n /**\n * See GroupingMappingCustomUIType.\n */\n type: GroupingMappingCustomUIType;\n /**\n * Unique identifier of the custom UI.\n */\n name: string;\n /**\n * Display label in the widget.\n */\n displayLabel: string;\n /**\n * Optional icon, will be shown before display label in widget.\n */\n icon?: ReactElement;\n}\n\n/**\n * Context custom UI type definition.\n */\nexport interface ContextCustomUI extends IGroupingMappingCustomUI {\n /**\n * See GroupingMappingCustomUIType.\n */\n type: GroupingMappingCustomUIType.Context;\n /**\n * User defined component for UI interaction with grouping mapping widget.\n */\n uiComponent?: React.ComponentType<ContextCustomUIProps>;\n /**\n * Callback function for context custom UI menu item click event.\n */\n onClick?: (group: Group, mapping: Mapping, iModelId: string) => void;\n}\n\n/**\n * Group custom UI type definition.\n */\nexport interface GroupingCustomUI extends IGroupingMappingCustomUI {\n /**\n * See GroupingMappingCustomUIType.\n */\n type: GroupingMappingCustomUIType.Grouping;\n /**\n * Custom UI Component to build query interactively. Refer to SearchGroupingCustomUI/ManualGroupingCustomUI.\n */\n uiComponent: (props: GroupingCustomUIProps) => JSX.Element;\n}\n\n/** Custom UI Component props definitions. */\n\n/**\n * Context custom UI component arguments definition.\n */\nexport interface ContextCustomUIProps {\n /**\n * IModel Id.\n */\n iModelId: string;\n /**\n * Mapping Id.\n */\n mappingId: string;\n /**\n * Group Id.\n */\n groupId: string;\n}\n\n/**\n * Group custom UI component arguments definition.\n */\nexport interface GroupingCustomUIProps {\n /**\n * To validate and update current query.\n */\n updateQuery: (query: string) => void;\n /**\n * To get the query loading status.\n */\n isUpdating?: boolean;\n /**\n * To reset the viewer.\n */\n resetView?: () => Promise<void>;\n /**\n * The initial query for the Group being edited.\n */\n initialEditModeQuery?: string;\n\n}\n"]}