@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
@@ -1,118 +0,0 @@
1
- import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
2
- import { useGroupHilitedElementsContext } from "./context/GroupHilitedElementsContext";
3
- import { getHiliteIdsFromGroups, hideGroup, hideGroups, visualizeGroupColors, } from "./groupsHelpers";
4
- import { clearEmphasizedElements, clearEmphasizedOverriddenElements, clearHiddenElements, hideElements, } from "./viewerUtils";
5
- import { Groups } from "./Groups";
6
- import { GroupColorLegend } from "./GroupColorLegend";
7
- import { GroupVisualizationActions } from "./GroupsVisualizationActions";
8
- import { GroupsShowHideButtons } from "./GroupsShowHideButtons";
9
- import "./GroupsVisualization.scss";
10
- import { useGroupingMappingApiConfig } from "./context/GroupingApiConfigContext";
11
- export const GroupsVisualization = ({ emphasizeElements = true, isNonEmphasizedSelectable = false, onClickGroupModify, onClickAddGroup, ...rest }) => {
12
- const { iModelConnection } = useGroupingMappingApiConfig();
13
- if (!iModelConnection) {
14
- throw new Error("This component requires an active iModelConnection.");
15
- }
16
- const firstUpdate = useRef(true);
17
- const [isLoadingQuery, setLoadingQuery] = useState(false);
18
- const [isVisualizing, setIsVisualizing] = useState(false);
19
- const { hilitedElementsQueryCache, groups, hiddenGroupsIds, showGroupColor, setHiddenGroupsIds, setNumberOfVisualizedGroups, } = useGroupHilitedElementsContext();
20
- const getHiliteIdsFromGroupsWrapper = useCallback(async (groups) => iModelConnection
21
- ? getHiliteIdsFromGroups(iModelConnection, groups, hilitedElementsQueryCache)
22
- : [], [iModelConnection, hilitedElementsQueryCache]);
23
- const handleVisualizationStates = useCallback((start = true) => {
24
- setIsVisualizing(start);
25
- setLoadingQuery(start);
26
- if (!start) {
27
- setNumberOfVisualizedGroups(0);
28
- }
29
- }, [setNumberOfVisualizedGroups]);
30
- const triggerVisualization = useCallback(async () => {
31
- handleVisualizationStates(true);
32
- const groupsCopy = [...groups];
33
- await visualizeGroupColors(iModelConnection, groupsCopy, hiddenGroupsIds, hilitedElementsQueryCache, setNumberOfVisualizedGroups, emphasizeElements);
34
- isNonEmphasizedSelectable && clearEmphasizedElements();
35
- handleVisualizationStates(false);
36
- }, [handleVisualizationStates, groups, iModelConnection, hiddenGroupsIds, hilitedElementsQueryCache, setNumberOfVisualizedGroups, emphasizeElements, isNonEmphasizedSelectable]);
37
- useEffect(() => {
38
- const visualize = async () => {
39
- if (firstUpdate.current) {
40
- firstUpdate.current = false;
41
- return;
42
- }
43
- if (groups.length > 0 && showGroupColor) {
44
- await triggerVisualization();
45
- }
46
- else {
47
- clearEmphasizedOverriddenElements();
48
- }
49
- };
50
- void visualize();
51
- // We don't want to trigger full visualization when toggling individual groups.
52
- // eslint-disable-next-line react-hooks/exhaustive-deps
53
- }, [groups, showGroupColor]);
54
- const hideAllGroups = useCallback(async () => {
55
- setLoadingQuery(true);
56
- await hideGroups(iModelConnection, groups, hilitedElementsQueryCache);
57
- setLoadingQuery(false);
58
- }, [groups, hilitedElementsQueryCache, iModelConnection]);
59
- const hideSingleGroupWrapper = useCallback(async (group) => {
60
- setLoadingQuery(true);
61
- await hideGroup(iModelConnection, group, hilitedElementsQueryCache);
62
- setLoadingQuery(false);
63
- }, [hilitedElementsQueryCache, iModelConnection]);
64
- const showGroup = useCallback(async (viewGroup) => {
65
- setLoadingQuery(true);
66
- clearHiddenElements();
67
- // hide group Ids filter
68
- const newHiddenGroups = groups.filter((g) => hiddenGroupsIds.has(g.id) && g.id !== viewGroup.id);
69
- // view group Ids filter
70
- const viewGroups = groups.filter((g) => !hiddenGroupsIds.has(g.id) || g.id === viewGroup.id);
71
- const viewIds = await getHiliteIdsFromGroupsWrapper(viewGroups);
72
- let hiddenIds = await getHiliteIdsFromGroupsWrapper(newHiddenGroups);
73
- hiddenIds = hiddenIds.filter((id) => !viewIds.includes(id));
74
- hideElements(hiddenIds);
75
- setLoadingQuery(false);
76
- }, [groups, hiddenGroupsIds, getHiliteIdsFromGroupsWrapper]);
77
- const showAll = useCallback(async () => {
78
- setLoadingQuery(true);
79
- clearHiddenElements();
80
- setHiddenGroupsIds(new Set());
81
- await getHiliteIdsFromGroupsWrapper(groups);
82
- setLoadingQuery(false);
83
- }, [getHiliteIdsFromGroupsWrapper, groups, setHiddenGroupsIds]);
84
- const hideAll = useCallback(async () => {
85
- await hideAllGroups();
86
- setHiddenGroupsIds(new Set(groups.map((g) => g.id)));
87
- await getHiliteIdsFromGroupsWrapper(groups);
88
- }, [
89
- setHiddenGroupsIds,
90
- groups,
91
- hideAllGroups,
92
- getHiliteIdsFromGroupsWrapper,
93
- ]);
94
- const onModify = useCallback(async (group, type) => {
95
- if (!onClickGroupModify)
96
- return;
97
- if (group.id && hiddenGroupsIds.has(group.id)) {
98
- await showGroup(group);
99
- setHiddenGroupsIds(new Set([...hiddenGroupsIds].filter((id) => id !== group.id)));
100
- }
101
- clearEmphasizedElements();
102
- onClickGroupModify(group, type);
103
- }, [hiddenGroupsIds, onClickGroupModify, setHiddenGroupsIds, showGroup]);
104
- const onAddGroup = useCallback((type) => {
105
- if (!onClickAddGroup)
106
- return;
107
- onClickAddGroup(type);
108
- clearEmphasizedElements();
109
- }, [onClickAddGroup]);
110
- const groupActionButtonRenderers = useMemo(() => [
111
- (props) => showGroupColor ? React.createElement(GroupColorLegend, { ...props, groups: groups }) : [],
112
- (props) => (React.createElement(GroupsShowHideButtons, { ...props, isLoadingQuery: isLoadingQuery, showGroup: showGroup, hideGroup: hideSingleGroupWrapper })),
113
- ].flat(), [groups, hideSingleGroupWrapper, isLoadingQuery, showGroup, showGroupColor]);
114
- return (React.createElement("div", { className: "gmw-groups-vis-container" },
115
- React.createElement(GroupVisualizationActions, { isLoadingQuery: isLoadingQuery, showAll: showAll, hideAll: hideAll }),
116
- React.createElement(Groups, { onClickGroupModify: onModify, onClickAddGroup: onAddGroup, actionButtonRenderers: groupActionButtonRenderers, ...rest, disableActions: isLoadingQuery, isVisualizing: isVisualizing })));
117
- };
118
- //# sourceMappingURL=GroupsVisualization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupsVisualization.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupsVisualization.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EACL,sBAAsB,EACtB,SAA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,EAAE,UAAU,EAC3B,qBAAqB,EAAE,0BAA0B,KAC7C,IAAI,EACR,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,GAC5B,CACE,CACP,CAAC;AACJ,CAAC,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 type { Group } from \"@itwin/insights-client\";\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { useGroupHilitedElementsContext } from \"./context/GroupHilitedElementsContext\";\nimport {\n getHiliteIdsFromGroups,\n hideGroup,\n hideGroups,\n visualizeGroupColors,\n} from \"./groupsHelpers\";\nimport {\n clearEmphasizedElements,\n clearEmphasizedOverriddenElements,\n clearHiddenElements,\n hideElements,\n} from \"./viewerUtils\";\nimport type { GroupsProps } from \"./Groups\";\nimport { Groups } from \"./Groups\";\nimport { GroupColorLegend } from \"./GroupColorLegend\";\nimport { GroupVisualizationActions } from \"./GroupsVisualizationActions\";\nimport { GroupsShowHideButtons } from \"./GroupsShowHideButtons\";\nimport \"./GroupsVisualization.scss\";\nimport { useGroupingMappingApiConfig } from \"./context/GroupingApiConfigContext\";\nimport type { ActionButtonRenderer, ActionButtonRendererProps } from \"./GroupsView\";\n\nexport interface GroupsVisualizationProps extends GroupsProps {\n isNonEmphasizedSelectable?: boolean;\n emphasizeElements?: boolean;\n}\n\nexport const GroupsVisualization = ({\n emphasizeElements = true,\n isNonEmphasizedSelectable = false,\n onClickGroupModify,\n onClickAddGroup,\n ...rest\n}: GroupsVisualizationProps) => {\n const { iModelConnection } = useGroupingMappingApiConfig();\n if (!iModelConnection) {\n throw new Error(\"This component requires an active iModelConnection.\");\n }\n const firstUpdate = useRef(true);\n const [isLoadingQuery, setLoadingQuery] = useState<boolean>(false);\n const [isVisualizing, setIsVisualizing] = useState<boolean>(false);\n const {\n hilitedElementsQueryCache,\n groups,\n hiddenGroupsIds,\n showGroupColor,\n setHiddenGroupsIds,\n setNumberOfVisualizedGroups,\n } = useGroupHilitedElementsContext();\n\n const getHiliteIdsFromGroupsWrapper = useCallback(\n async (groups: Group[]): Promise<string[]> =>\n iModelConnection\n ? getHiliteIdsFromGroups(\n iModelConnection,\n groups,\n hilitedElementsQueryCache\n )\n : [],\n [iModelConnection, hilitedElementsQueryCache]\n );\n\n const handleVisualizationStates = useCallback((start = true) => {\n setIsVisualizing(start);\n setLoadingQuery(start);\n if (!start) {\n setNumberOfVisualizedGroups(0);\n }\n }, [setNumberOfVisualizedGroups]);\n\n const triggerVisualization = useCallback(async () => {\n handleVisualizationStates(true);\n const groupsCopy = [...groups];\n await visualizeGroupColors(\n iModelConnection,\n groupsCopy,\n hiddenGroupsIds,\n hilitedElementsQueryCache,\n setNumberOfVisualizedGroups,\n emphasizeElements,\n );\n isNonEmphasizedSelectable && clearEmphasizedElements();\n handleVisualizationStates(false);\n }, [handleVisualizationStates, groups, iModelConnection, hiddenGroupsIds, hilitedElementsQueryCache, setNumberOfVisualizedGroups, emphasizeElements, isNonEmphasizedSelectable]);\n\n useEffect(() => {\n const visualize = async () => {\n if (firstUpdate.current) {\n firstUpdate.current = false;\n return;\n }\n if (groups.length > 0 && showGroupColor) {\n await triggerVisualization();\n } else {\n clearEmphasizedOverriddenElements();\n }\n };\n void visualize();\n // We don't want to trigger full visualization when toggling individual groups.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [groups, showGroupColor]);\n\n const hideAllGroups = useCallback(\n async () => {\n setLoadingQuery(true);\n await hideGroups(iModelConnection, groups, hilitedElementsQueryCache);\n setLoadingQuery(false);\n },\n [groups, hilitedElementsQueryCache, iModelConnection]\n );\n\n const hideSingleGroupWrapper = useCallback(\n async (group: Group) => {\n setLoadingQuery(true);\n await hideGroup(iModelConnection, group, hilitedElementsQueryCache);\n setLoadingQuery(false);\n },\n [hilitedElementsQueryCache, iModelConnection]\n );\n\n const showGroup = useCallback(\n async (viewGroup: Group) => {\n setLoadingQuery(true);\n clearHiddenElements();\n\n // hide group Ids filter\n const newHiddenGroups: Group[] = groups.filter((g) => hiddenGroupsIds.has(g.id) && g.id !== viewGroup.id);\n\n // view group Ids filter\n const viewGroups = groups.filter((g) => !hiddenGroupsIds.has(g.id) || g.id === viewGroup.id);\n const viewIds = await getHiliteIdsFromGroupsWrapper(viewGroups);\n\n let hiddenIds = await getHiliteIdsFromGroupsWrapper(newHiddenGroups);\n hiddenIds = hiddenIds.filter((id) => !viewIds.includes(id));\n hideElements(hiddenIds);\n setLoadingQuery(false);\n },\n [groups, hiddenGroupsIds, getHiliteIdsFromGroupsWrapper]\n );\n\n const showAll = useCallback(async () => {\n setLoadingQuery(true);\n\n clearHiddenElements();\n setHiddenGroupsIds(new Set());\n await getHiliteIdsFromGroupsWrapper(groups);\n\n setLoadingQuery(false);\n }, [getHiliteIdsFromGroupsWrapper, groups, setHiddenGroupsIds]);\n\n const hideAll = useCallback(async () => {\n await hideAllGroups();\n setHiddenGroupsIds(\n new Set(groups.map((g) => g.id))\n );\n await getHiliteIdsFromGroupsWrapper(groups);\n }, [\n setHiddenGroupsIds,\n groups,\n hideAllGroups,\n getHiliteIdsFromGroupsWrapper,\n ]);\n\n const onModify = useCallback(\n async (group: Group, type: string) => {\n if (!onClickGroupModify) return;\n if (group.id && hiddenGroupsIds.has(group.id)) {\n await showGroup(group);\n setHiddenGroupsIds(new Set([...hiddenGroupsIds].filter((id) => id !== group.id)));\n }\n clearEmphasizedElements();\n onClickGroupModify(group, type);\n },\n [hiddenGroupsIds, onClickGroupModify, setHiddenGroupsIds, showGroup]\n );\n\n const onAddGroup = useCallback(\n (type: string) => {\n if (!onClickAddGroup) return;\n onClickAddGroup(type);\n clearEmphasizedElements();\n },\n [onClickAddGroup]\n );\n\n const groupActionButtonRenderers: ActionButtonRenderer[] = useMemo(() => [\n (props: ActionButtonRendererProps) =>\n showGroupColor ? <GroupColorLegend {...props} groups={groups} /> : [],\n (props: ActionButtonRendererProps) => (\n <GroupsShowHideButtons\n {...props}\n isLoadingQuery={isLoadingQuery}\n showGroup={showGroup}\n hideGroup={hideSingleGroupWrapper}\n />\n ),\n ].flat(), [groups, hideSingleGroupWrapper, isLoadingQuery, showGroup, showGroupColor]);\n\n return (\n <div className=\"gmw-groups-vis-container\">\n <GroupVisualizationActions\n isLoadingQuery={isLoadingQuery}\n showAll={showAll}\n hideAll={hideAll}\n />\n <Groups\n onClickGroupModify={onModify}\n onClickAddGroup={onAddGroup}\n actionButtonRenderers={groupActionButtonRenderers}\n {...rest}\n disableActions={isLoadingQuery}\n isVisualizing={isVisualizing}\n />\n </div>\n );\n};\n"]}
@@ -1,12 +0,0 @@
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-groups-vis-container {
7
- display: flex;
8
- flex-direction: column;
9
- gap: var(--iui-size-s);
10
- flex-grow: 1;
11
- min-height: 0;
12
- }
@@ -1,20 +0,0 @@
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
- import { ButtonGroup, IconButton } from "@itwin/itwinui-react";
6
- import React from "react";
7
- import { ToggleGroupVisibility } from "./ToggleGroupVisibility";
8
- import { SvgVisibilityHide, SvgVisibilityShow } from "@itwin/itwinui-icons-react";
9
- import "./GroupsVisualizationActions.scss";
10
- import { useGroupHilitedElementsContext } from "./context/GroupHilitedElementsContext";
11
- export const GroupVisualizationActions = ({ isLoadingQuery, showAll, hideAll, }) => {
12
- const { showGroupColor, setShowGroupColor, } = useGroupHilitedElementsContext();
13
- return (React.createElement(ButtonGroup, { className: "gmw-visual-buttons" },
14
- React.createElement(ToggleGroupVisibility, { isLoadingQuery: isLoadingQuery, showGroupColor: showGroupColor, setShowGroupColor: setShowGroupColor }),
15
- React.createElement(IconButton, { title: "Show All", onClick: showAll, disabled: isLoadingQuery, styleType: "borderless" },
16
- React.createElement(SvgVisibilityShow, null)),
17
- React.createElement(IconButton, { title: "Hide All", onClick: hideAll, disabled: isLoadingQuery, styleType: "borderless" },
18
- React.createElement(SvgVisibilityHide, null))));
19
- };
20
- //# sourceMappingURL=GroupsVisualizationActions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupsVisualizationActions.js","sourceRoot":"","sources":["../../../../src/widget/components/GroupsVisualizationActions.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,mCAAmC,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AAQvF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EACxC,cAAc,EACd,OAAO,EACP,OAAO,GACwB,EAAE,EAAE;IACnC,MAAM,EACJ,cAAc,EACd,iBAAiB,GAClB,GAAG,8BAA8B,EAAE,CAAC;IAErC,OAAO,CACL,oBAAC,WAAW,IAAC,SAAS,EAAC,oBAAoB;QACzC,oBAAC,qBAAqB,IACpB,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,iBAAiB,GACpC;QACF,oBAAC,UAAU,IACT,KAAK,EAAC,UAAU,EAChB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAC,YAAY;YAEtB,oBAAC,iBAAiB,OAAG,CACV;QACb,oBAAC,UAAU,IACT,KAAK,EAAC,UAAU,EAChB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAC,YAAY;YAEtB,oBAAC,iBAAiB,OAAG,CACV,CACD,CACf,CAAC;AAEJ,CAAC,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 { ButtonGroup, IconButton } from \"@itwin/itwinui-react\";\nimport React from \"react\";\nimport { ToggleGroupVisibility } from \"./ToggleGroupVisibility\";\nimport { SvgVisibilityHide, SvgVisibilityShow } from \"@itwin/itwinui-icons-react\";\nimport \"./GroupsVisualizationActions.scss\";\nimport { useGroupHilitedElementsContext } from \"./context/GroupHilitedElementsContext\";\n\ninterface GroupVisualizationActionsProps {\n isLoadingQuery: boolean;\n showAll: () => Promise<void>;\n hideAll: () => Promise<void>;\n}\n\nexport const GroupVisualizationActions = ({\n isLoadingQuery,\n showAll,\n hideAll,\n}: GroupVisualizationActionsProps) => {\n const {\n showGroupColor,\n setShowGroupColor,\n } = useGroupHilitedElementsContext();\n\n return (\n <ButtonGroup className=\"gmw-visual-buttons\">\n <ToggleGroupVisibility\n isLoadingQuery={isLoadingQuery}\n showGroupColor={showGroupColor}\n setShowGroupColor={setShowGroupColor}\n />\n <IconButton\n title=\"Show All\"\n onClick={showAll}\n disabled={isLoadingQuery}\n styleType=\"borderless\"\n >\n <SvgVisibilityShow />\n </IconButton>\n <IconButton\n title=\"Hide All\"\n onClick={hideAll}\n disabled={isLoadingQuery}\n styleType=\"borderless\"\n >\n <SvgVisibilityHide />\n </IconButton>\n </ButtonGroup>\n );\n\n};\n\n"]}
@@ -1,15 +0,0 @@
1
- import type { ReactNode } from "react";
2
- import "./HorizontalTile.scss";
3
- export interface HorizontalTileProps {
4
- title: string;
5
- actionGroup: ReactNode;
6
- subText?: string;
7
- onClick?: () => void;
8
- onClickTitle?: () => void;
9
- titleTooltip?: string;
10
- subtextToolTip?: string;
11
- selected?: boolean;
12
- dragHandle?: ReactNode;
13
- }
14
- export declare const HorizontalTile: (props: HorizontalTileProps) => JSX.Element;
15
- //# sourceMappingURL=HorizontalTile.d.ts.map
@@ -1,17 +0,0 @@
1
- import React from "react";
2
- import { Anchor, Text } from "@itwin/itwinui-react";
3
- import "./HorizontalTile.scss";
4
- import classNames from "classnames";
5
- export const HorizontalTile = (props) => {
6
- return (React.createElement("div", { className: classNames("gmw-horizontal-tile-container", { "gmw-horizontal-tile-selected": props.selected }), onClick: props.onClick, "data-testid": "gmw-horizontal-tile" },
7
- React.createElement("div", { className: "gmw-body-container" },
8
- props.dragHandle,
9
- React.createElement("div", { className: "gmw-body" },
10
- !!props.onClickTitle &&
11
- React.createElement(Anchor, { className: "gmw-body-text", onClick: props.onClickTitle, title: props.titleTooltip }, props.title),
12
- !props.onClickTitle &&
13
- React.createElement(Text, { className: "gmw-body-text", variant: "body", title: props.titleTooltip }, props.title),
14
- props.subText && React.createElement(Text, { className: "gmw-body-text", isMuted: true, title: props.subtextToolTip, variant: "small" }, props.subText))),
15
- React.createElement("div", { className: "gmw-action-button", "data-testid": "tile-action-button" }, props.actionGroup)));
16
- };
17
- //# sourceMappingURL=HorizontalTile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HorizontalTile.js","sourceRoot":"","sources":["../../../../src/widget/components/HorizontalTile.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,UAAU,MAAM,YAAY,CAAC;AAcpC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE;IAE3D,OAAO,CACL,6BAAK,SAAS,EAAE,UAAU,CAAC,+BAA+B,EAAE,EAAE,8BAA8B,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,iBAAc,qBAAqB;QACxK,6BAAK,SAAS,EAAC,oBAAoB;YAChC,KAAK,CAAC,UAAU;YACjB,6BAAK,SAAS,EAAC,UAAU;gBACtB,CAAC,CAAC,KAAK,CAAC,YAAY;oBACnB,oBAAC,MAAM,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,oBAAC,IAAI,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,oBAAC,IAAI,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,6BAAK,SAAS,EAAC,mBAAmB,iBAAa,oBAAoB,IAChE,KAAK,CAAC,WAAW,CACd,CACF,CACP,CAAC;AAEJ,CAAC,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 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}\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-action-button\" data-testid=\"tile-action-button\">\n {props.actionGroup}\n </div>\n </div>\n );\n\n};\n"]}
@@ -1,57 +0,0 @@
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
-
15
- .gmw-body-container {
16
- display: flex;
17
- min-width: 0;
18
- .gmw-drag-icon {
19
- display: flex;
20
- align-items: center;
21
- justify-content: center;
22
- height: 100%;
23
- }
24
- .gmw-body {
25
- display: flex;
26
- flex-direction: column;
27
- min-width: 0;
28
- justify-content: center;
29
- &-text {
30
- overflow: hidden;
31
- white-space: nowrap;
32
- text-overflow: ellipsis;
33
- }
34
- }
35
- }
36
- .gmw-action-button {
37
- margin-left: 0;
38
- align-self: center;
39
- min-width: 36px;
40
- margin-right: var(--iui-size-2xs);
41
- flex-shrink: 0;
42
- }
43
- }
44
-
45
- &-selected {
46
- border: 1px solid var(--iui-color-border-accent);
47
- background:
48
- linear-gradient(
49
- hsl(var(--iui-color-accent-hsl) / var(--iui-opacity-6)),
50
- hsl(var(--iui-color-accent-hsl) / var(--iui-opacity-6))
51
- ),
52
- linear-gradient(
53
- var(--iui-color-background),
54
- var(--iui-color-background)
55
- );
56
- }
57
- }
@@ -1,83 +0,0 @@
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
- import { Fieldset, LabeledInput, Text, ToggleSwitch } from "@itwin/itwinui-react";
6
- import React, { useState } from "react";
7
- import ActionPanel from "./ActionPanel";
8
- import useValidator, { NAME_REQUIREMENTS } from "../hooks/useValidator";
9
- import { handleError, handleInputChange } from "./utils";
10
- import "./MappingAction.scss";
11
- import { useMappingClient } from "./context/MappingClientContext";
12
- import { useGroupingMappingApiConfig } from "./context/GroupingApiConfigContext";
13
- const defaultDisplayStrings = {
14
- mappingDetails: "Mapping Details",
15
- };
16
- export const MappingAction = ({ mapping, onSaveSuccess, onClickCancel, displayStrings: userDisplayStrings }) => {
17
- const { getAccessToken, iModelId } = useGroupingMappingApiConfig();
18
- const mappingClient = useMappingClient();
19
- const [values, setValues] = useState({
20
- name: mapping?.mappingName ?? "",
21
- description: mapping?.description ?? "",
22
- extractionEnabled: mapping?.extractionEnabled ?? true,
23
- });
24
- const [validator, showValidationMessage] = useValidator();
25
- const [isLoading, setIsLoading] = useState(false);
26
- const displayStrings = React.useMemo(() => ({ ...defaultDisplayStrings, ...userDisplayStrings }), [userDisplayStrings]);
27
- const onSave = async () => {
28
- try {
29
- if (!validator.allValid()) {
30
- showValidationMessage(true);
31
- return;
32
- }
33
- setIsLoading(true);
34
- const accessToken = await getAccessToken();
35
- mapping
36
- ? await mappingClient.updateMapping(accessToken, iModelId, mapping.id, {
37
- mappingName: values.name,
38
- description: values.description,
39
- extractionEnabled: values.extractionEnabled,
40
- })
41
- : await mappingClient.createMapping(accessToken, iModelId, {
42
- mappingName: values.name,
43
- description: values.description,
44
- extractionEnabled: values.extractionEnabled,
45
- });
46
- setValues({
47
- name: mapping?.mappingName ?? "",
48
- description: mapping?.description ?? "",
49
- extractionEnabled: mapping?.extractionEnabled ?? true,
50
- });
51
- onSaveSuccess();
52
- }
53
- catch (error) {
54
- handleError(error.status);
55
- }
56
- finally {
57
- setIsLoading(false);
58
- }
59
- };
60
- return (React.createElement(React.Fragment, null,
61
- React.createElement("div", { className: 'gmw-details-form-container' },
62
- React.createElement(Fieldset, { legend: displayStrings.mappingDetails, className: 'gmw-details-form' },
63
- React.createElement(Text, { variant: 'small', as: 'small', className: 'gmw-field-legend' }, "Asterisk * indicates mandatory fields."),
64
- React.createElement(LabeledInput, { id: 'name', name: 'name', label: 'Name', value: values.name, required: true, onChange: (event) => {
65
- handleInputChange(event, values, setValues);
66
- validator.showMessageFor("name");
67
- }, message: validator.message("name", values.name, NAME_REQUIREMENTS), status: validator.message("name", values.name, NAME_REQUIREMENTS)
68
- ? "negative"
69
- : undefined, onBlur: () => {
70
- validator.showMessageFor("name");
71
- }, onBlurCapture: (event) => {
72
- handleInputChange(event, values, setValues);
73
- validator.showMessageFor("name");
74
- } }),
75
- React.createElement(LabeledInput, { id: 'description', name: 'description', label: 'Description', value: values.description, onChange: (event) => {
76
- handleInputChange(event, values, setValues);
77
- } }),
78
- React.createElement(ToggleSwitch, { id: 'extractionEnabled', name: 'extractionEnabled', label: 'Extract data from iModel', labelPosition: "right", checked: values.extractionEnabled, onChange: (event) => {
79
- setValues({ ...values, extractionEnabled: event.currentTarget.checked });
80
- } }))),
81
- React.createElement(ActionPanel, { onSave: onSave, onCancel: onClickCancel, isSavingDisabled: !values.name, isLoading: isLoading })));
82
- };
83
- //# sourceMappingURL=MappingAction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MappingAction.js","sourceRoot":"","sources":["../../../../src/widget/components/MappingAction.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI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,EAChC,aAAa,EAAC,OAAO,EACrB,OAAO,EAAE,MAAM,CAAC,iBAAiB,EACjC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;wBAClB,SAAS,CAAC,EAAE,GAAG,MAAM,EAAE,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC;oBAC3E,CAAC,GACD,CACO,CACP;QACN,oBAAC,WAAW,IACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,aAAa,EACvB,gBAAgB,EAAE,CAAC,MAAM,CAAC,IAAI,EAC9B,SAAS,EAAE,SAAS,GACpB,CACD,CACJ,CAAC;AACJ,CAAC,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 { Fieldset, LabeledInput, Text, ToggleSwitch } from \"@itwin/itwinui-react\";\nimport React, { useState } from \"react\";\nimport ActionPanel from \"./ActionPanel\";\nimport useValidator, { NAME_REQUIREMENTS } from \"../hooks/useValidator\";\nimport { handleError, handleInputChange } from \"./utils\";\nimport \"./MappingAction.scss\";\nimport { useMappingClient } from \"./context/MappingClientContext\";\nimport type { Mapping } from \"@itwin/insights-client\";\nimport { useGroupingMappingApiConfig } from \"./context/GroupingApiConfigContext\";\n\nconst defaultDisplayStrings = {\n mappingDetails: \"Mapping Details\",\n};\n\nexport interface MappingActionProps {\n mapping?: Mapping;\n onSaveSuccess: () => void;\n onClickCancel?: () => void;\n displayStrings?: Partial<typeof defaultDisplayStrings>;\n}\n\nexport const MappingAction = ({ mapping, onSaveSuccess, onClickCancel, displayStrings: userDisplayStrings }: MappingActionProps) => {\n const { getAccessToken, iModelId } = useGroupingMappingApiConfig();\n const mappingClient = useMappingClient();\n const [values, setValues] = useState({\n name: mapping?.mappingName ?? \"\",\n description: mapping?.description ?? \"\",\n extractionEnabled: mapping?.extractionEnabled ?? true,\n });\n const [validator, showValidationMessage] = useValidator();\n const [isLoading, setIsLoading] = useState<boolean>(false);\n\n const displayStrings = React.useMemo(\n () => ({ ...defaultDisplayStrings, ...userDisplayStrings }),\n [userDisplayStrings]\n );\n\n const onSave = async () => {\n try {\n if (!validator.allValid()) {\n showValidationMessage(true);\n return;\n }\n setIsLoading(true);\n const accessToken = await getAccessToken();\n mapping\n ? await mappingClient.updateMapping(accessToken, iModelId, mapping.id, {\n mappingName: values.name,\n description: values.description,\n extractionEnabled: values.extractionEnabled,\n })\n : await mappingClient.createMapping(accessToken, iModelId, {\n mappingName: values.name,\n description: values.description,\n extractionEnabled: values.extractionEnabled,\n });\n setValues({\n name: mapping?.mappingName ?? \"\",\n description: mapping?.description ?? \"\",\n extractionEnabled: mapping?.extractionEnabled ?? true,\n });\n onSaveSuccess();\n } catch (error: any) {\n handleError(error.status);\n } finally {\n setIsLoading(false);\n }\n };\n\n return (\n <>\n <div className='gmw-details-form-container'>\n <Fieldset legend={displayStrings.mappingDetails} className='gmw-details-form'>\n <Text variant='small' as='small' className='gmw-field-legend'>\n Asterisk * indicates mandatory fields.\n </Text>\n <LabeledInput\n id='name'\n name='name'\n label='Name'\n value={values.name}\n required\n onChange={(event) => {\n handleInputChange(event, values, setValues);\n validator.showMessageFor(\"name\");\n }}\n message={validator.message(\"name\", values.name, NAME_REQUIREMENTS)}\n status={\n validator.message(\"name\", values.name, NAME_REQUIREMENTS)\n ? \"negative\"\n : undefined\n }\n onBlur={() => {\n validator.showMessageFor(\"name\");\n }}\n onBlurCapture={(event) => {\n handleInputChange(event, values, setValues);\n validator.showMessageFor(\"name\");\n }}\n />\n <LabeledInput\n id='description'\n name='description'\n label='Description'\n value={values.description}\n onChange={(event) => {\n handleInputChange(event, values, setValues);\n }}\n />\n <ToggleSwitch\n id='extractionEnabled'\n name='extractionEnabled'\n label='Extract data from iModel'\n labelPosition=\"right\"\n checked={values.extractionEnabled}\n onChange={(event) => {\n setValues({ ...values, extractionEnabled: event.currentTarget.checked });\n }}\n />\n </Fieldset>\n </div>\n <ActionPanel\n onSave={onSave}\n onCancel={onClickCancel}\n isSavingDisabled={!values.name}\n isLoading={isLoading}\n />\n </>\n );\n};\n"]}
@@ -1,99 +0,0 @@
1
- import { Stepper } from "@itwin/itwinui-react";
2
- import { Modal } from "@itwin/itwinui-react";
3
- import React, { useEffect, useRef, useState } from "react";
4
- import ConfirmMappingImport from "./ConfirmMappingsImport";
5
- import "./MappingImportWizardModal.scss";
6
- import SelectIModel from "./SelectIModel";
7
- import SelectITwin from "./SelectITwin";
8
- import SelectMappings from "./SelectMappings";
9
- import { useGroupingMappingApiConfig } from "./context/GroupingApiConfigContext";
10
- import { createIModelsClient, IModelsClientContext } from "./context/IModelsClientContext";
11
- import { createITwinsClient, ITwinsClientContext } from "./context/ITwinsClientContext";
12
- const defaultDisplayStrings = {
13
- mappings: "Mappings",
14
- iTwins: "iTwins",
15
- iTwinNumber: "Number",
16
- iTwinName: "Name",
17
- iTwinStatus: "Status",
18
- iModels: "iModels",
19
- iModelName: "Name",
20
- iModelDescription: "Description",
21
- };
22
- export const MappingImportWizardModal = ({ show, setShow, onFinish, displayStrings: userDisplayStrings, }) => {
23
- const { prefix } = useGroupingMappingApiConfig();
24
- const [currentStep, setCurrentStep] = useState(0);
25
- const [iTwinType, setITwinType] = useState(0);
26
- const [selectedITwinId, setSelectedITwinId] = useState("");
27
- const [selectedIModelId, setSelectedIModelId] = useState("");
28
- const [selectedMappings, setSelectedMappings] = useState([]);
29
- const [importing, setImporting] = useState(false);
30
- const [iTwinsClient, setITwinsClient] = useState(createITwinsClient(prefix));
31
- const [iModelsClient, setIModelsClient] = useState(createIModelsClient(prefix));
32
- useEffect(() => {
33
- setITwinsClient(createITwinsClient(prefix));
34
- setIModelsClient(createIModelsClient(prefix));
35
- }, [prefix]);
36
- const displayStrings = React.useMemo(() => ({ ...defaultDisplayStrings, ...userDisplayStrings }), [userDisplayStrings]);
37
- const steps = useRef([
38
- {
39
- name: "Select iTwin",
40
- description: `Select the source iTwin to bring your ${displayStrings.mappings} from.`,
41
- },
42
- {
43
- name: "Select iModel",
44
- description: "Select an iModel within the iTwin you have selected.",
45
- },
46
- {
47
- name: `Select ${displayStrings.mappings}`,
48
- description: `Select one or more ${displayStrings.mappings} to import.`,
49
- },
50
- {
51
- name: "Rename & Confirm",
52
- description: "Rename and confirm your selections. Click import when finished.",
53
- },
54
- ]);
55
- const onClose = async () => {
56
- setShow(false);
57
- setCurrentStep(0);
58
- await onFinish();
59
- };
60
- return (React.createElement(Modal, { title: `Import ${displayStrings.mappings}`, modalRootId: 'grouping-mapping-widget', isOpen: show, closeOnEsc: false, closeOnExternalClick: false, isDismissible: !importing, styleType: 'fullPage', onClose: async () => {
61
- await onClose();
62
- } },
63
- React.createElement("div", { className: 'gmw-import-wizard-body-container' },
64
- React.createElement(Stepper, { currentStep: currentStep, steps: steps.current, onStepClick: importing ? undefined : (index) => setCurrentStep(index) }),
65
- (() => {
66
- switch (currentStep) {
67
- case 0:
68
- return (React.createElement(ITwinsClientContext.Provider, { value: iTwinsClient },
69
- React.createElement("div", { className: "gmw-table-container" },
70
- React.createElement(SelectITwin, { onSelect: (iTwinId) => {
71
- setSelectedITwinId(iTwinId);
72
- setCurrentStep(1);
73
- }, onCancel: onClose, onChangeITwinType: setITwinType, displayStrings: displayStrings, defaultITwinType: iTwinType }))));
74
- case 1:
75
- return (React.createElement(IModelsClientContext.Provider, { value: iModelsClient },
76
- React.createElement("div", { className: "gmw-table-container" },
77
- React.createElement(SelectIModel, { iTwinId: selectedITwinId, onSelect: (iModelId) => {
78
- setSelectedIModelId(iModelId);
79
- setCurrentStep(2);
80
- }, backFn: () => setCurrentStep(currentStep - 1), onCancel: onClose }))));
81
- case 2:
82
- case 3:
83
- // Preserve table state within Select Mappings
84
- return (React.createElement(React.Fragment, null,
85
- React.createElement("div", { style: { display: currentStep === 2 ? "flex" : "none" }, className: "gmw-mapping-container" },
86
- React.createElement(SelectMappings, { iModelId: selectedIModelId, onSelect: (selectedMappings) => {
87
- setSelectedMappings(selectedMappings);
88
- setCurrentStep(3);
89
- }, onCancel: onClose, backFn: () => setCurrentStep(currentStep - 1), displayStrings: displayStrings })),
90
- currentStep === 3 && (React.createElement(ConfirmMappingImport, { sourceiModelId: selectedIModelId, selectedMappings: selectedMappings, importing: importing, setImporting: setImporting, setSelectedMappings: setSelectedMappings, backFn: () => setCurrentStep(currentStep - 1), onCancel: onClose, onFinish: async () => {
91
- await onClose();
92
- setImporting(false);
93
- }, displayStrings: displayStrings }))));
94
- default:
95
- return null;
96
- }
97
- })())));
98
- };
99
- //# sourceMappingURL=MappingImportWizardModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MappingImportWizardModal.js","sourceRoot":"","sources":["../../../../src/widget/components/MappingImportWizardModal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAE3D,OAAO,iCAAiC,CAAC;AACzC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAExF,MAAM,qBAAqB,GAAG;IAC5B,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,QAAQ;IACrB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;oCACpB,CAAC,EACD,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,WAAW,GAAG,CAAC,CAAC,EAC7C,cAAc,EAAE,cAAc,GAC9B,CACE;4BACL,WAAW,KAAK,CAAC,IAAI,CACpB,oBAAC,oBAAoB,IACnB,cAAc,EAAE,gBAAgB,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,MAAM,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,WAAW,GAAG,CAAC,CAAC,EAC7C,QAAQ,EAAE,OAAO,EACjB,QAAQ,EAAE,KAAK,IAAI,EAAE;oCACnB,MAAM,OAAO,EAAE,CAAC;oCAChB,YAAY,CAAC,KAAK,CAAC,CAAC;gCACtB,CAAC,EACD,cAAc,EAAE,cAAc,GAC9B,CACH,CACA,CACJ,CAAC;oBACJ;wBACE,OAAO,IAAI,CAAC;iBACf;YACH,CAAC,CAAC,EAAE,CACA,CACA,CACT,CAAC;AACJ,CAAC,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 type { IModelsClient } from \"@itwin/imodels-client-management\";\nimport type { ITwinsAccessClient } from \"@itwin/itwins-client\";\nimport type { StepProperties } from \"@itwin/itwinui-react\";\nimport { Stepper } from \"@itwin/itwinui-react\";\nimport { Modal } from \"@itwin/itwinui-react\";\nimport React, { useEffect, useRef, useState } from \"react\";\nimport ConfirmMappingImport from \"./ConfirmMappingsImport\";\nimport type { IMappingTyped } from \"./Mappings\";\nimport \"./MappingImportWizardModal.scss\";\nimport SelectIModel from \"./SelectIModel\";\nimport SelectITwin from \"./SelectITwin\";\nimport SelectMappings from \"./SelectMappings\";\nimport { useGroupingMappingApiConfig } from \"./context/GroupingApiConfigContext\";\nimport { createIModelsClient, IModelsClientContext } from \"./context/IModelsClientContext\";\nimport { createITwinsClient, ITwinsClientContext } from \"./context/ITwinsClientContext\";\n\nconst defaultDisplayStrings = {\n mappings: \"Mappings\",\n iTwins: \"iTwins\",\n iTwinNumber: \"Number\",\n iTwinName: \"Name\",\n iTwinStatus: \"Status\",\n iModels: \"iModels\",\n iModelName: \"Name\",\n iModelDescription: \"Description\",\n};\ninterface MappingImportWizardModalProps {\n show: boolean;\n setShow: (show: boolean) => void;\n onFinish: () => Promise<void>;\n displayStrings?: Partial<typeof defaultDisplayStrings>;\n}\n\nexport const MappingImportWizardModal = ({\n show,\n setShow,\n onFinish,\n displayStrings: userDisplayStrings,\n}: MappingImportWizardModalProps) => {\n const { prefix } = useGroupingMappingApiConfig();\n const [currentStep, setCurrentStep] = useState<number>(0);\n const [iTwinType, setITwinType] = useState<number>(0);\n const [selectedITwinId, setSelectedITwinId] = useState<string>(\"\");\n const [selectedIModelId, setSelectedIModelId] = useState<string>(\"\");\n const [selectedMappings, setSelectedMappings] = useState<IMappingTyped[]>([]);\n const [importing, setImporting] = useState<boolean>(false);\n const [iTwinsClient, setITwinsClient] = useState<ITwinsAccessClient>(createITwinsClient(prefix));\n const [iModelsClient, setIModelsClient] = useState<IModelsClient>(createIModelsClient(prefix));\n\n useEffect(() => {\n setITwinsClient(createITwinsClient(prefix));\n setIModelsClient(createIModelsClient(prefix));\n }, [prefix]);\n\n const displayStrings = React.useMemo(\n () => ({ ...defaultDisplayStrings, ...userDisplayStrings }),\n [userDisplayStrings]\n );\n\n const steps = useRef<StepProperties[]>([\n {\n name: \"Select iTwin\",\n description: `Select the source iTwin to bring your ${displayStrings.mappings} from.`,\n },\n {\n name: \"Select iModel\",\n description: \"Select an iModel within the iTwin you have selected.\",\n },\n {\n name: `Select ${displayStrings.mappings}`,\n description: `Select one or more ${displayStrings.mappings} to import.`,\n },\n {\n name: \"Rename & Confirm\",\n description:\n \"Rename and confirm your selections. Click import when finished.\",\n },\n ]);\n\n const onClose = async () => {\n setShow(false);\n setCurrentStep(0);\n await onFinish();\n };\n\n return (\n <Modal\n title={`Import ${displayStrings.mappings}`}\n modalRootId='grouping-mapping-widget'\n isOpen={show}\n closeOnEsc={false}\n closeOnExternalClick={false}\n isDismissible={!importing}\n styleType='fullPage'\n onClose={async () => {\n await onClose();\n }}\n >\n <div className='gmw-import-wizard-body-container'>\n <Stepper\n currentStep={currentStep}\n steps={steps.current}\n onStepClick={\n importing ? undefined : (index: number) => setCurrentStep(index)\n }\n />\n\n {(() => {\n switch (currentStep) {\n case 0:\n return (\n <ITwinsClientContext.Provider value={iTwinsClient}>\n <div className=\"gmw-table-container\">\n <SelectITwin\n onSelect={(iTwinId) => {\n setSelectedITwinId(iTwinId);\n setCurrentStep(1);\n }}\n onCancel={onClose}\n onChangeITwinType={setITwinType}\n displayStrings={displayStrings}\n defaultITwinType={iTwinType}\n />\n </div>\n </ITwinsClientContext.Provider>\n );\n case 1:\n return (\n <IModelsClientContext.Provider value={iModelsClient}>\n <div className=\"gmw-table-container\">\n <SelectIModel\n iTwinId={selectedITwinId}\n onSelect={(iModelId) => {\n setSelectedIModelId(iModelId);\n setCurrentStep(2);\n }}\n backFn={() => setCurrentStep(currentStep - 1)}\n onCancel={onClose}\n />\n </div>\n </IModelsClientContext.Provider>\n );\n case 2:\n case 3:\n // Preserve table state within Select Mappings\n return (\n <>\n <div\n style={{ display: currentStep === 2 ? \"flex\" : \"none\" }}\n className=\"gmw-mapping-container\"\n >\n <SelectMappings\n iModelId={selectedIModelId}\n onSelect={(selectedMappings) => {\n setSelectedMappings(selectedMappings);\n setCurrentStep(3);\n }}\n onCancel={onClose}\n backFn={() => setCurrentStep(currentStep - 1)}\n displayStrings={displayStrings}\n />\n </div>\n {currentStep === 3 && (\n <ConfirmMappingImport\n sourceiModelId={selectedIModelId}\n selectedMappings={selectedMappings}\n importing={importing}\n setImporting={setImporting}\n setSelectedMappings={setSelectedMappings}\n backFn={() => setCurrentStep(currentStep - 1)}\n onCancel={onClose}\n onFinish={async () => {\n await onClose();\n setImporting(false);\n }}\n displayStrings={displayStrings}\n />\n )}\n </>\n );\n default:\n return null;\n }\n })()}\n </div>\n </Modal>\n );\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MappingViewActionGroup.js","sourceRoot":"","sources":["../../../../src/widget/components/MappingViewActionGroup.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,SAAS,EACT,OAAO,EACP,OAAO,EACP,UAAU,GACX,MAAM,4BAA4B,CAAC;AAWpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,kBAAkB,GACQ,EAAE,EAAE;IAC9B,OAAO,CACL,oBAAC,YAAY,IACX,SAAS,EAAE,CAAC,KAAiB,EAAE,EAAE,CAAC;YAChC,oBAAoB,CAAC,CAAC,CAAC,CACrB,oBAAC,QAAQ,IACP,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,GAAG,EAAE;oBACZ,oBAAoB,CAAC,OAAO,CAAC,CAAC;oBAC9B,KAAK,EAAE,CAAC;gBACV,CAAC,EACD,IAAI,EAAE,oBAAC,OAAO,OAAG,aAGR,CACZ,CAAC,CAAC,CAAC,EAAE;YACN,oBAAC,QAAQ,IACP,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,KAAK,IAAI,EAAE;oBAClB,KAAK,EAAE,CAAC;oBACR,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;oBAClC,MAAM,SAAS,EAAE,CAAC;gBACpB,CAAC,EACD,IAAI,EAAE,oBAAC,UAAU,OAAG,IAEnB,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,CAC9D;YACX,oBAAC,QAAQ,IACP,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,GAAG,EAAE;oBACZ,kBAAkB,CAAC,OAAO,CAAC,CAAC;oBAC5B,KAAK,EAAE,CAAC;gBACV,CAAC,EACD,IAAI,EAAE,oBAAC,SAAS,OAAG,aAGV;SACZ,CAAC,IAAI,EAAE;QAER,oBAAC,UAAU,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAC,iBAAiB;YACxD,oBAAC,OAAO,OACN,CACS,CACA,CAChB,CAAC;AACJ,CAAC,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 {\n DropdownMenu,\n IconButton,\n MenuItem,\n} from \"@itwin/itwinui-react\";\nimport {\n SvgDelete,\n SvgEdit,\n SvgMore,\n SvgProcess,\n} from \"@itwin/itwinui-icons-react\";\nimport type { Mapping } from \"@itwin/insights-client\";\n\ninterface MappingUIActionGroupProps {\n mapping: Mapping;\n onToggleExtraction: (mapping: Mapping) => Promise<void>;\n onRefresh: () => Promise<void>;\n onClickMappingModify?: (mapping: Mapping) => void;\n setShowDeleteModal: (mapping?: Mapping) => void;\n}\n\nexport const MappingUIActionGroup = ({\n mapping,\n onToggleExtraction,\n onRefresh,\n onClickMappingModify,\n setShowDeleteModal,\n}: MappingUIActionGroupProps) => {\n return (\n <DropdownMenu\n menuItems={(close: () => void) => [\n onClickMappingModify ? (\n <MenuItem\n key={0}\n onClick={() => {\n onClickMappingModify(mapping);\n close();\n }}\n icon={<SvgEdit />}\n >\n Modify\n </MenuItem>\n ) : [],\n <MenuItem\n key={1}\n onClick={async () => {\n close();\n await onToggleExtraction(mapping);\n await onRefresh();\n }}\n icon={<SvgProcess />}\n >\n {mapping.extractionEnabled ? \"Disable extraction\" : \"Enable extraction\"}\n </MenuItem>,\n <MenuItem\n key={2}\n onClick={() => {\n setShowDeleteModal(mapping);\n close();\n }}\n icon={<SvgDelete />}\n >\n Remove\n </MenuItem>,\n ].flat()}\n >\n <IconButton styleType=\"borderless\" title='Mapping Options'>\n <SvgMore\n />\n </IconButton>\n </DropdownMenu>\n );\n};\n"]}
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Mapping } from "@itwin/insights-client";
3
- import type { CreateTypeFromInterface } from "../utils";
4
- import type { mappingViewDefaultDisplayStrings } from "./MappingsView";
5
- export declare type IMappingTyped = CreateTypeFromInterface<Mapping>;
6
- export interface MappingsProps {
7
- onClickAddMapping?: () => void;
8
- onClickMappingTitle?: (mapping: Mapping) => void;
9
- onClickMappingModify?: (mapping: Mapping) => void;
10
- displayStrings?: Partial<typeof mappingViewDefaultDisplayStrings>;
11
- }
12
- export declare const Mappings: (props: MappingsProps) => JSX.Element;
13
- //# sourceMappingURL=Mappings.d.ts.map
@@ -1,22 +0,0 @@
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
- import React, { useCallback } from "react";
6
- import { useMappingClient } from "./context/MappingClientContext";
7
- import { useGroupingMappingApiConfig } from "./context/GroupingApiConfigContext";
8
- import { MappingsView } from "./MappingsView";
9
- import { useMappingsOperations } from "./hooks/useMappingsOperations";
10
- import { Alert } from "@itwin/itwinui-react";
11
- export const Mappings = (props) => {
12
- const groupingMappingApiConfig = useGroupingMappingApiConfig();
13
- const mappingClient = useMappingClient();
14
- const { mappings, isLoading, extractionIconData, showExtractionMessageModal, extractionMessageData, setShowExtractionMessageModal, refresh, toggleExtraction, onDelete, setShowImportModal, showImportModal, setShowDeleteModal, showDeleteModal, isTogglingExtraction, errorMessage, setErrorMessage, } = useMappingsOperations({ ...groupingMappingApiConfig, mappingClient });
15
- const renderAlert = useCallback(() => {
16
- if (!errorMessage)
17
- return;
18
- return (React.createElement(Alert, { type: "negative", onClose: () => setErrorMessage(undefined) }, errorMessage));
19
- }, [errorMessage, setErrorMessage]);
20
- return (React.createElement(MappingsView, { mappings: mappings, isLoading: isLoading, extractionIconData: extractionIconData, showExtractionMessageModal: showExtractionMessageModal, extractionMessageData: extractionMessageData, setShowExtractionMessageModal: setShowExtractionMessageModal, onRefresh: refresh, onToggleExtraction: toggleExtraction, onDelete: onDelete, showImportModal: showImportModal, setShowImportModal: setShowImportModal, showDeleteModal: showDeleteModal, setShowDeleteModal: setShowDeleteModal, isTogglingExtraction: isTogglingExtraction, alert: renderAlert(), ...props }));
21
- };
22
- //# sourceMappingURL=Mappings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Mappings.js","sourceRoot":"","sources":["../../../../src/widget/components/Mappings.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAGjF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAW7C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC/C,MAAM,wBAAwB,GAAG,2BAA2B,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,MAAM,EACJ,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,0BAA0B,EAC1B,qBAAqB,EACrB,6BAA6B,EAC7B,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,eAAe,GAChB,GAAG,qBAAqB,CAAC,EAAE,GAAG,wBAAwB,EAAE,aAAa,EAAE,CAAC,CAAC;IAE1E,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,IAAI,CAAC,YAAY;YAAE,OAAO;QAC1B,OAAO,CACL,oBAAC,KAAK,IAAC,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,SAAS,CAAC,IAC7D,YAAY,CACP,CACT,CAAC;IACJ,CAAC,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;IAEpC,OAAO,CACL,oBAAC,YAAY,IACX,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,EACtC,0BAA0B,EAAE,0BAA0B,EACtD,qBAAqB,EAAE,qBAAqB,EAC5C,6BAA6B,EAAE,6BAA6B,EAC5D,SAAS,EAAE,OAAO,EAClB,kBAAkB,EAAE,gBAAgB,EACpC,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,kBAAkB,EACtC,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,kBAAkB,EACtC,oBAAoB,EAAE,oBAAoB,EAC1C,KAAK,EAAE,WAAW,EAAE,KAChB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,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, { useCallback } from \"react\";\nimport { useMappingClient } from \"./context/MappingClientContext\";\nimport type { Mapping } from \"@itwin/insights-client\";\nimport { useGroupingMappingApiConfig } from \"./context/GroupingApiConfigContext\";\nimport type { CreateTypeFromInterface } from \"../utils\";\nimport type { mappingViewDefaultDisplayStrings } from \"./MappingsView\";\nimport { MappingsView } from \"./MappingsView\";\nimport { useMappingsOperations } from \"./hooks/useMappingsOperations\";\nimport { Alert } from \"@itwin/itwinui-react\";\n\nexport type IMappingTyped = CreateTypeFromInterface<Mapping>;\n\nexport interface MappingsProps {\n onClickAddMapping?: () => void;\n onClickMappingTitle?: (mapping: Mapping) => void;\n onClickMappingModify?: (mapping: Mapping) => void;\n displayStrings?: Partial<typeof mappingViewDefaultDisplayStrings>;\n}\n\nexport const Mappings = (props: MappingsProps) => {\n const groupingMappingApiConfig = useGroupingMappingApiConfig();\n const mappingClient = useMappingClient();\n const {\n mappings,\n isLoading,\n extractionIconData,\n showExtractionMessageModal,\n extractionMessageData,\n setShowExtractionMessageModal,\n refresh,\n toggleExtraction,\n onDelete,\n setShowImportModal,\n showImportModal,\n setShowDeleteModal,\n showDeleteModal,\n isTogglingExtraction,\n errorMessage,\n setErrorMessage,\n } = useMappingsOperations({ ...groupingMappingApiConfig, mappingClient });\n\n const renderAlert = useCallback(() => {\n if (!errorMessage) return;\n return (\n <Alert type=\"negative\" onClose={() => setErrorMessage(undefined)}>\n {errorMessage}\n </Alert>\n );\n }, [errorMessage, setErrorMessage]);\n\n return (\n <MappingsView\n mappings={mappings}\n isLoading={isLoading}\n extractionIconData={extractionIconData}\n showExtractionMessageModal={showExtractionMessageModal}\n extractionMessageData={extractionMessageData}\n setShowExtractionMessageModal={setShowExtractionMessageModal}\n onRefresh={refresh}\n onToggleExtraction={toggleExtraction}\n onDelete={onDelete}\n showImportModal={showImportModal}\n setShowImportModal={setShowImportModal}\n showDeleteModal={showDeleteModal}\n setShowDeleteModal={setShowDeleteModal}\n isTogglingExtraction={isTogglingExtraction}\n alert={renderAlert()}\n {...props}\n />\n );\n};\n"]}