@itwin/grouping-mapping-widget 0.19.1 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (986) 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 +123 -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.js.map +1 -0
  88. package/lib/cjs/components/Mappings/Import/MappingImportWizardModal.js +125 -0
  89. package/lib/cjs/components/Mappings/Import/MappingImportWizardModal.js.map +1 -0
  90. package/lib/cjs/components/Mappings/Import/SelectIModel.js +102 -0
  91. package/lib/cjs/components/Mappings/Import/SelectIModel.js.map +1 -0
  92. package/lib/cjs/components/Mappings/Import/SelectITwin.js +115 -0
  93. package/lib/cjs/components/Mappings/Import/SelectITwin.js.map +1 -0
  94. package/lib/cjs/components/Mappings/Import/SelectMappings.d.ts +16 -0
  95. package/lib/cjs/components/Mappings/Import/SelectMappings.js +88 -0
  96. package/lib/cjs/components/Mappings/Import/SelectMappings.js.map +1 -0
  97. package/lib/cjs/components/Mappings/MappingViewActionGroup.js.map +1 -0
  98. package/lib/cjs/components/Mappings/Mappings.d.ts +13 -0
  99. package/lib/cjs/components/Mappings/Mappings.js +45 -0
  100. package/lib/cjs/components/Mappings/Mappings.js.map +1 -0
  101. package/lib/cjs/components/Mappings/MappingsView.js +64 -0
  102. package/lib/cjs/components/Mappings/MappingsView.js.map +1 -0
  103. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.d.ts +35 -0
  104. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js +120 -0
  105. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js.map +1 -0
  106. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.js +84 -0
  107. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.js.map +1 -0
  108. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js +150 -0
  109. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js.map +1 -0
  110. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.js +84 -0
  111. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.js.map +1 -0
  112. package/lib/cjs/components/Properties/CalculatedProperties/SharedCalculatedPropertyForms.js.map +1 -0
  113. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.d.ts +12 -0
  114. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.js +185 -0
  115. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.js.map +1 -0
  116. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.js +84 -0
  117. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.js.map +1 -0
  118. package/lib/cjs/components/Properties/GroupColorToggle.js +69 -0
  119. package/lib/cjs/components/Properties/GroupColorToggle.js.map +1 -0
  120. package/lib/cjs/components/Properties/GroupInformationPanel.js.map +1 -0
  121. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.js +287 -0
  122. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.js.map +1 -0
  123. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.js +81 -0
  124. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.js.map +1 -0
  125. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyUtils.js.map +1 -0
  126. package/lib/cjs/components/Properties/GroupProperties/SaveModal.js.map +1 -0
  127. package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.d.ts +8 -0
  128. package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.js +52 -0
  129. package/lib/cjs/components/Properties/GroupProperties/SortableHorizontalTile.js.map +1 -0
  130. package/lib/cjs/components/Properties/PropertyAction.js +99 -0
  131. package/lib/cjs/components/Properties/PropertyAction.js.map +1 -0
  132. package/lib/cjs/components/Properties/PropertyMenu.js +60 -0
  133. package/lib/cjs/components/Properties/PropertyMenu.js.map +1 -0
  134. package/lib/cjs/components/Properties/PropertyMenuWithVisualization.js.map +1 -0
  135. package/lib/cjs/components/Properties/PropertyNameCell.js.map +1 -0
  136. package/lib/cjs/components/Properties/PropertyTable.js +53 -0
  137. package/lib/cjs/components/Properties/PropertyTable.js.map +1 -0
  138. package/lib/cjs/components/Properties/PropertyTableToolbar.js.map +1 -0
  139. package/lib/cjs/components/Properties/hooks/useFetchData.js +43 -0
  140. package/lib/cjs/components/Properties/hooks/useFetchData.js.map +1 -0
  141. package/lib/cjs/components/Properties/hooks/useFormulaValidation.d.ts +6 -0
  142. package/lib/cjs/components/Properties/hooks/useFormulaValidation.js +29 -0
  143. package/lib/cjs/components/Properties/hooks/useFormulaValidation.js.map +1 -0
  144. package/lib/cjs/components/Properties/hooks/useValidator.js.map +1 -0
  145. package/lib/cjs/components/SharedComponents/ActionPanel.js +39 -0
  146. package/lib/cjs/components/SharedComponents/ActionPanel.js.map +1 -0
  147. package/lib/cjs/components/SharedComponents/DeleteModal.js +62 -0
  148. package/lib/cjs/components/SharedComponents/DeleteModal.js.map +1 -0
  149. package/lib/cjs/components/SharedComponents/EmptyMessage.d.ts +7 -0
  150. package/lib/cjs/components/SharedComponents/EmptyMessage.js +17 -0
  151. package/lib/cjs/components/SharedComponents/EmptyMessage.js.map +1 -0
  152. package/lib/cjs/components/SharedComponents/EmptyMessage.scss +12 -0
  153. package/lib/cjs/components/SharedComponents/HorizontalTile.d.ts +19 -0
  154. package/lib/cjs/components/SharedComponents/HorizontalTile.js +27 -0
  155. package/lib/cjs/components/SharedComponents/HorizontalTile.js.map +1 -0
  156. package/lib/cjs/components/SharedComponents/HorizontalTile.scss +58 -0
  157. package/lib/cjs/components/SharedComponents/LoadingOverlay.d.ts +4 -0
  158. package/lib/cjs/components/SharedComponents/LoadingOverlay.js +19 -0
  159. package/lib/cjs/components/SharedComponents/LoadingOverlay.js.map +1 -0
  160. package/lib/cjs/components/SharedComponents/LoadingOverlay.scss +13 -0
  161. package/lib/cjs/components/SharedComponents/LoadingSpinner.d.ts +4 -0
  162. package/lib/cjs/components/SharedComponents/LoadingSpinner.js +19 -0
  163. package/lib/cjs/components/SharedComponents/LoadingSpinner.js.map +1 -0
  164. package/lib/cjs/components/SharedComponents/LoadingSpinner.scss +8 -0
  165. package/lib/cjs/components/SharedComponents/StatusIcon.js.map +1 -0
  166. package/lib/cjs/components/context/ExtractionClientContext.js.map +1 -0
  167. package/lib/cjs/components/context/GroupHilitedElementsContext.d.ts +38 -0
  168. package/lib/cjs/components/context/GroupHilitedElementsContext.js +55 -0
  169. package/lib/cjs/components/context/GroupHilitedElementsContext.js.map +1 -0
  170. package/lib/cjs/components/context/GroupingApiConfigContext.js.map +1 -0
  171. package/lib/cjs/components/context/GroupingMappingCustomUIContext.js.map +1 -0
  172. package/lib/cjs/components/context/IModelsClientContext.js.map +1 -0
  173. package/lib/cjs/components/context/ITwinsClientContext.js.map +1 -0
  174. package/lib/cjs/components/context/MappingClientContext.js.map +1 -0
  175. package/lib/cjs/components/context/PropertiesContext.js.map +1 -0
  176. package/lib/cjs/components/context/PropertyGridWrapperContext.d.ts +13 -0
  177. package/lib/cjs/components/context/PropertyGridWrapperContext.js.map +1 -0
  178. package/lib/cjs/components/customUI/DefaultGroupingUI.js.map +1 -0
  179. package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.js +107 -0
  180. package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.js.map +1 -0
  181. package/lib/cjs/components/customUI/GroupingMappingCustomUI.js.map +1 -0
  182. package/lib/cjs/components/customUI/ManualGroupingCustomUI.js +32 -0
  183. package/lib/cjs/components/customUI/ManualGroupingCustomUI.js.map +1 -0
  184. package/lib/cjs/components/customUI/SearchGroupingCustomUI.js +98 -0
  185. package/lib/cjs/components/customUI/SearchGroupingCustomUI.js.map +1 -0
  186. package/lib/cjs/grouping-mapping-widget.d.ts +23 -23
  187. package/lib/cjs/grouping-mapping-widget.js +23 -23
  188. package/lib/cjs/grouping-mapping-widget.js.map +1 -1
  189. package/lib/cjs/test/GroupPropertyUtils.test.js +1 -1
  190. package/lib/cjs/test/GroupPropertyUtils.test.js.map +1 -1
  191. package/lib/cjs/test/GroupingMappingCustomUI.test.js +4 -4
  192. package/lib/cjs/test/GroupingMappingCustomUI.test.js.map +1 -1
  193. package/lib/cjs/test/QueryBuilder.test.js +1 -1
  194. package/lib/cjs/test/QueryBuilder.test.js.map +1 -1
  195. package/lib/cjs/test/WidgetHeader.test.js +1 -1
  196. package/lib/cjs/test/WidgetHeader.test.js.map +1 -1
  197. package/lib/cjs/test/test-utils.js +1 -1
  198. package/lib/cjs/test/test-utils.js.map +1 -1
  199. package/lib/esm/WidgetShell/GroupingMapping.d.ts +34 -0
  200. package/lib/esm/WidgetShell/GroupingMapping.js +57 -0
  201. package/lib/esm/WidgetShell/GroupingMapping.js.map +1 -0
  202. package/lib/esm/WidgetShell/GroupingMappingContent.js +28 -0
  203. package/lib/esm/WidgetShell/GroupingMappingContent.js.map +1 -0
  204. package/lib/esm/WidgetShell/GroupingMappingHeader.js +17 -0
  205. package/lib/esm/WidgetShell/GroupingMappingHeader.js.map +1 -0
  206. package/lib/esm/WidgetShell/GroupingMappingWidget.d.ts +10 -0
  207. package/lib/esm/WidgetShell/GroupingMappingWidget.js +24 -0
  208. package/lib/esm/WidgetShell/GroupingMappingWidget.js.map +1 -0
  209. package/lib/esm/WidgetShell/Router/GroupingMappingRouter.d.ts +8 -0
  210. package/lib/esm/WidgetShell/Router/GroupingMappingRouter.js +100 -0
  211. package/lib/esm/WidgetShell/Router/GroupingMappingRouter.js.map +1 -0
  212. package/lib/esm/WidgetShell/WidgetHeader/WidgetHeader.js.map +1 -0
  213. package/lib/esm/common/utils.d.ts +11 -0
  214. package/lib/esm/common/utils.js +80 -0
  215. package/lib/esm/common/utils.js.map +1 -0
  216. package/lib/esm/common/viewerUtils.d.ts +30 -0
  217. package/lib/esm/common/viewerUtils.js +268 -0
  218. package/lib/esm/common/viewerUtils.js.map +1 -0
  219. package/lib/esm/components/GroupingMappingContext.d.ts +39 -0
  220. package/lib/esm/components/GroupingMappingContext.js +100 -0
  221. package/lib/esm/components/GroupingMappingContext.js.map +1 -0
  222. package/lib/esm/components/Groups/Editing/GroupAction.js +130 -0
  223. package/lib/esm/components/Groups/Editing/GroupAction.js.map +1 -0
  224. package/lib/esm/components/Groups/Editing/GroupDetails.js +27 -0
  225. package/lib/esm/components/Groups/Editing/GroupDetails.js.map +1 -0
  226. package/lib/esm/components/Groups/Editing/GroupDetailsActionPanel.js.map +1 -0
  227. package/lib/esm/components/Groups/Editing/GroupDetailsStep.js.map +1 -0
  228. package/lib/esm/components/Groups/GroupColorLegend.js.map +1 -0
  229. package/lib/esm/components/Groups/GroupItem.d.ts +13 -0
  230. package/lib/esm/components/Groups/GroupItem.js +16 -0
  231. package/lib/esm/components/Groups/GroupItem.js.map +1 -0
  232. package/lib/esm/components/Groups/GroupMenuActions.d.ts +14 -0
  233. package/lib/esm/components/Groups/GroupMenuActions.js +57 -0
  234. package/lib/esm/components/Groups/GroupMenuActions.js.map +1 -0
  235. package/lib/esm/components/Groups/GroupOverlapProgressBar.d.ts +11 -0
  236. package/lib/esm/components/Groups/GroupOverlapProgressBar.js +11 -0
  237. package/lib/esm/components/Groups/GroupOverlapProgressBar.js.map +1 -0
  238. package/lib/esm/components/Groups/Groups.d.ts +18 -0
  239. package/lib/esm/components/Groups/Groups.js +24 -0
  240. package/lib/esm/components/Groups/Groups.js.map +1 -0
  241. package/lib/esm/components/Groups/GroupsAddButton.d.ts +10 -0
  242. package/lib/esm/components/Groups/GroupsAddButton.js.map +1 -0
  243. package/lib/esm/components/Groups/GroupsShowHideButtons.js +22 -0
  244. package/lib/esm/components/Groups/GroupsShowHideButtons.js.map +1 -0
  245. package/lib/esm/components/Groups/GroupsView.d.ts +43 -0
  246. package/lib/esm/components/Groups/GroupsView.js +42 -0
  247. package/lib/esm/components/Groups/GroupsView.js.map +1 -0
  248. package/lib/esm/components/Groups/GroupsView.scss +53 -0
  249. package/lib/esm/components/Groups/GroupsVisualization.js +130 -0
  250. package/lib/esm/components/Groups/GroupsVisualization.js.map +1 -0
  251. package/lib/esm/components/Groups/GroupsVisualization.scss +18 -0
  252. package/lib/esm/components/Groups/GroupsVisualizationActions.js +20 -0
  253. package/lib/esm/components/Groups/GroupsVisualizationActions.js.map +1 -0
  254. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.d.ts +17 -0
  255. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.js +84 -0
  256. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.js.map +1 -0
  257. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.scss +14 -0
  258. package/lib/esm/components/Groups/QueryBuilder/QueryBuilder.js.map +1 -0
  259. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderActionPanel.js.map +1 -0
  260. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.d.ts +13 -0
  261. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.js +21 -0
  262. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.js.map +1 -0
  263. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderStep.js.map +1 -0
  264. package/lib/esm/components/Groups/ToggleGroupVisibility.js.map +1 -0
  265. package/lib/esm/components/Groups/groupsHelpers.d.ts +11 -0
  266. package/lib/esm/components/Groups/groupsHelpers.js +192 -0
  267. package/lib/esm/components/Groups/groupsHelpers.js.map +1 -0
  268. package/lib/esm/components/Groups/hooks/useGroupsOperations.d.ts +26 -0
  269. package/lib/esm/components/Groups/hooks/useGroupsOperations.js +67 -0
  270. package/lib/esm/components/Groups/hooks/useGroupsOperations.js.map +1 -0
  271. package/lib/esm/components/Groups/hooks/useVisualization.js +64 -0
  272. package/lib/esm/components/Groups/hooks/useVisualization.js.map +1 -0
  273. package/lib/esm/components/Mappings/BlockingOverlay.js +13 -0
  274. package/lib/esm/components/Mappings/BlockingOverlay.js.map +1 -0
  275. package/lib/esm/components/Mappings/ConfirmMappingsImport.js +113 -0
  276. package/lib/esm/components/Mappings/ConfirmMappingsImport.js.map +1 -0
  277. package/lib/esm/components/Mappings/Editing/MappingAction.js +83 -0
  278. package/lib/esm/components/Mappings/Editing/MappingAction.js.map +1 -0
  279. package/lib/esm/components/Mappings/Extraction/ExtractionLogCustomFilter.js +19 -0
  280. package/lib/esm/components/Mappings/Extraction/ExtractionLogCustomFilter.js.map +1 -0
  281. package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.d.ts +11 -0
  282. package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js +106 -0
  283. package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -0
  284. package/lib/esm/components/Mappings/Extraction/ExtractionStatusIcon.js.map +1 -0
  285. package/lib/esm/components/Mappings/Import/MappingImportWizardModal.js +99 -0
  286. package/lib/esm/components/Mappings/Import/MappingImportWizardModal.js.map +1 -0
  287. package/lib/esm/components/Mappings/Import/SelectIModel.js +81 -0
  288. package/lib/esm/components/Mappings/Import/SelectIModel.js.map +1 -0
  289. package/lib/esm/components/Mappings/Import/SelectITwin.js +94 -0
  290. package/lib/esm/components/Mappings/Import/SelectITwin.js.map +1 -0
  291. package/lib/esm/components/Mappings/Import/SelectMappings.d.ts +16 -0
  292. package/lib/esm/components/Mappings/Import/SelectMappings.js +67 -0
  293. package/lib/esm/components/Mappings/Import/SelectMappings.js.map +1 -0
  294. package/lib/esm/components/Mappings/MappingViewActionGroup.js.map +1 -0
  295. package/lib/esm/components/Mappings/Mappings.d.ts +13 -0
  296. package/lib/esm/components/Mappings/Mappings.js +22 -0
  297. package/lib/esm/components/Mappings/Mappings.js.map +1 -0
  298. package/lib/esm/components/Mappings/MappingsView.js +57 -0
  299. package/lib/esm/components/Mappings/MappingsView.js.map +1 -0
  300. package/lib/esm/components/Mappings/hooks/useMappingsOperations.d.ts +35 -0
  301. package/lib/esm/components/Mappings/hooks/useMappingsOperations.js +116 -0
  302. package/lib/esm/components/Mappings/hooks/useMappingsOperations.js.map +1 -0
  303. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.js +58 -0
  304. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.js.map +1 -0
  305. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js +124 -0
  306. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js.map +1 -0
  307. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.js +61 -0
  308. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.js.map +1 -0
  309. package/lib/esm/components/Properties/CalculatedProperties/SharedCalculatedPropertyForms.js.map +1 -0
  310. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.d.ts +12 -0
  311. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.js +159 -0
  312. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.js.map +1 -0
  313. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.js +61 -0
  314. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.js.map +1 -0
  315. package/lib/esm/components/Properties/GroupColorToggle.js +46 -0
  316. package/lib/esm/components/Properties/GroupColorToggle.js.map +1 -0
  317. package/lib/esm/components/Properties/GroupInformationPanel.js.map +1 -0
  318. package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.js +261 -0
  319. package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.js.map +1 -0
  320. package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.js +58 -0
  321. package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.js.map +1 -0
  322. package/lib/esm/components/Properties/GroupProperties/GroupPropertyUtils.js.map +1 -0
  323. package/lib/esm/components/Properties/GroupProperties/SaveModal.js.map +1 -0
  324. package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.d.ts +8 -0
  325. package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.js +31 -0
  326. package/lib/esm/components/Properties/GroupProperties/SortableHorizontalTile.js.map +1 -0
  327. package/lib/esm/components/Properties/PropertyAction.js +76 -0
  328. package/lib/esm/components/Properties/PropertyAction.js.map +1 -0
  329. package/lib/esm/components/Properties/PropertyMenu.js +37 -0
  330. package/lib/esm/components/Properties/PropertyMenu.js.map +1 -0
  331. package/lib/esm/components/Properties/PropertyMenuWithVisualization.js.map +1 -0
  332. package/lib/esm/components/Properties/PropertyNameCell.js.map +1 -0
  333. package/lib/esm/components/Properties/PropertyTable.js +27 -0
  334. package/lib/esm/components/Properties/PropertyTable.js.map +1 -0
  335. package/lib/esm/components/Properties/PropertyTableToolbar.js.map +1 -0
  336. package/lib/esm/components/Properties/hooks/useFetchData.js +37 -0
  337. package/lib/esm/components/Properties/hooks/useFetchData.js.map +1 -0
  338. package/lib/esm/components/Properties/hooks/useFormulaValidation.d.ts +6 -0
  339. package/lib/esm/components/Properties/hooks/useFormulaValidation.js +25 -0
  340. package/lib/esm/components/Properties/hooks/useFormulaValidation.js.map +1 -0
  341. package/lib/esm/components/Properties/hooks/useValidator.js.map +1 -0
  342. package/lib/esm/components/SharedComponents/ActionPanel.js +18 -0
  343. package/lib/esm/components/SharedComponents/ActionPanel.js.map +1 -0
  344. package/lib/esm/components/SharedComponents/DeleteModal.js +39 -0
  345. package/lib/esm/components/SharedComponents/DeleteModal.js.map +1 -0
  346. package/lib/esm/components/SharedComponents/EmptyMessage.d.ts +7 -0
  347. package/lib/esm/components/SharedComponents/EmptyMessage.js +10 -0
  348. package/lib/esm/components/SharedComponents/EmptyMessage.js.map +1 -0
  349. package/lib/esm/components/SharedComponents/EmptyMessage.scss +12 -0
  350. package/lib/esm/components/SharedComponents/HorizontalTile.d.ts +19 -0
  351. package/lib/esm/components/SharedComponents/HorizontalTile.js +20 -0
  352. package/lib/esm/components/SharedComponents/HorizontalTile.js.map +1 -0
  353. package/lib/esm/components/SharedComponents/HorizontalTile.scss +58 -0
  354. package/lib/esm/components/SharedComponents/LoadingOverlay.d.ts +4 -0
  355. package/lib/esm/components/SharedComponents/LoadingOverlay.js +12 -0
  356. package/lib/esm/components/SharedComponents/LoadingOverlay.js.map +1 -0
  357. package/lib/esm/components/SharedComponents/LoadingOverlay.scss +13 -0
  358. package/lib/esm/components/SharedComponents/LoadingSpinner.d.ts +4 -0
  359. package/lib/esm/components/SharedComponents/LoadingSpinner.js +12 -0
  360. package/lib/esm/components/SharedComponents/LoadingSpinner.js.map +1 -0
  361. package/lib/esm/components/SharedComponents/LoadingSpinner.scss +8 -0
  362. package/lib/esm/components/SharedComponents/StatusIcon.js.map +1 -0
  363. package/lib/esm/components/context/ExtractionClientContext.js.map +1 -0
  364. package/lib/esm/components/context/GroupHilitedElementsContext.d.ts +38 -0
  365. package/lib/esm/components/context/GroupHilitedElementsContext.js +32 -0
  366. package/lib/esm/components/context/GroupHilitedElementsContext.js.map +1 -0
  367. package/lib/esm/components/context/GroupingApiConfigContext.js.map +1 -0
  368. package/lib/esm/components/context/GroupingMappingCustomUIContext.js.map +1 -0
  369. package/lib/esm/components/context/IModelsClientContext.js.map +1 -0
  370. package/lib/esm/components/context/ITwinsClientContext.js.map +1 -0
  371. package/lib/esm/components/context/MappingClientContext.js.map +1 -0
  372. package/lib/esm/components/context/PropertiesContext.js.map +1 -0
  373. package/lib/esm/components/context/PropertyGridWrapperContext.d.ts +13 -0
  374. package/lib/esm/components/context/PropertyGridWrapperContext.js.map +1 -0
  375. package/lib/esm/components/customUI/DefaultGroupingUI.js.map +1 -0
  376. package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.js +84 -0
  377. package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.js.map +1 -0
  378. package/lib/esm/components/customUI/GroupingMappingCustomUI.js.map +1 -0
  379. package/lib/esm/components/customUI/ManualGroupingCustomUI.js +25 -0
  380. package/lib/esm/components/customUI/ManualGroupingCustomUI.js.map +1 -0
  381. package/lib/esm/components/customUI/SearchGroupingCustomUI.js +91 -0
  382. package/lib/esm/components/customUI/SearchGroupingCustomUI.js.map +1 -0
  383. package/lib/esm/grouping-mapping-widget.d.ts +23 -23
  384. package/lib/esm/grouping-mapping-widget.js +23 -23
  385. package/lib/esm/grouping-mapping-widget.js.map +1 -1
  386. package/lib/esm/test/GroupPropertyUtils.test.js +1 -1
  387. package/lib/esm/test/GroupPropertyUtils.test.js.map +1 -1
  388. package/lib/esm/test/GroupingMappingCustomUI.test.js +4 -4
  389. package/lib/esm/test/GroupingMappingCustomUI.test.js.map +1 -1
  390. package/lib/esm/test/QueryBuilder.test.js +1 -1
  391. package/lib/esm/test/QueryBuilder.test.js.map +1 -1
  392. package/lib/esm/test/WidgetHeader.test.js +1 -1
  393. package/lib/esm/test/WidgetHeader.test.js.map +1 -1
  394. package/lib/esm/test/test-utils.js +1 -1
  395. package/lib/esm/test/test-utils.js.map +1 -1
  396. package/package.json +2 -2
  397. package/lib/cjs/widget/GroupingMappingWidget.d.ts +0 -10
  398. package/lib/cjs/widget/GroupingMappingWidget.js +0 -31
  399. package/lib/cjs/widget/GroupingMappingWidget.js.map +0 -1
  400. package/lib/cjs/widget/components/ActionPanel.js +0 -39
  401. package/lib/cjs/widget/components/ActionPanel.js.map +0 -1
  402. package/lib/cjs/widget/components/BlockingOverlay.js +0 -20
  403. package/lib/cjs/widget/components/BlockingOverlay.js.map +0 -1
  404. package/lib/cjs/widget/components/CalculatedPropertyAction.js +0 -84
  405. package/lib/cjs/widget/components/CalculatedPropertyAction.js.map +0 -1
  406. package/lib/cjs/widget/components/CalculatedPropertyActionWithVisuals.js +0 -150
  407. package/lib/cjs/widget/components/CalculatedPropertyActionWithVisuals.js.map +0 -1
  408. package/lib/cjs/widget/components/CalculatedPropertyTable.js +0 -84
  409. package/lib/cjs/widget/components/CalculatedPropertyTable.js.map +0 -1
  410. package/lib/cjs/widget/components/ConfirmMappingsImport.js +0 -134
  411. package/lib/cjs/widget/components/ConfirmMappingsImport.js.map +0 -1
  412. package/lib/cjs/widget/components/CustomCalculationAction.d.ts +0 -13
  413. package/lib/cjs/widget/components/CustomCalculationAction.js +0 -186
  414. package/lib/cjs/widget/components/CustomCalculationAction.js.map +0 -1
  415. package/lib/cjs/widget/components/CustomCalculationTable.js +0 -84
  416. package/lib/cjs/widget/components/CustomCalculationTable.js.map +0 -1
  417. package/lib/cjs/widget/components/DeleteModal.js +0 -61
  418. package/lib/cjs/widget/components/DeleteModal.js.map +0 -1
  419. package/lib/cjs/widget/components/ExtractionLogCustomFilter.js +0 -42
  420. package/lib/cjs/widget/components/ExtractionLogCustomFilter.js.map +0 -1
  421. package/lib/cjs/widget/components/ExtractionMessageModal.d.ts +0 -11
  422. package/lib/cjs/widget/components/ExtractionMessageModal.js +0 -87
  423. package/lib/cjs/widget/components/ExtractionMessageModal.js.map +0 -1
  424. package/lib/cjs/widget/components/ExtractionStatusIcon.js.map +0 -1
  425. package/lib/cjs/widget/components/GroupAction.js +0 -155
  426. package/lib/cjs/widget/components/GroupAction.js.map +0 -1
  427. package/lib/cjs/widget/components/GroupColorLegend.js.map +0 -1
  428. package/lib/cjs/widget/components/GroupColorToggle.js +0 -69
  429. package/lib/cjs/widget/components/GroupColorToggle.js.map +0 -1
  430. package/lib/cjs/widget/components/GroupDetails.js +0 -34
  431. package/lib/cjs/widget/components/GroupDetails.js.map +0 -1
  432. package/lib/cjs/widget/components/GroupDetailsActionPanel.js.map +0 -1
  433. package/lib/cjs/widget/components/GroupDetailsStep.js.map +0 -1
  434. package/lib/cjs/widget/components/GroupInformationPanel.js.map +0 -1
  435. package/lib/cjs/widget/components/GroupItem.d.ts +0 -12
  436. package/lib/cjs/widget/components/GroupItem.js +0 -19
  437. package/lib/cjs/widget/components/GroupItem.js.map +0 -1
  438. package/lib/cjs/widget/components/GroupMenuActions.d.ts +0 -13
  439. package/lib/cjs/widget/components/GroupMenuActions.js +0 -68
  440. package/lib/cjs/widget/components/GroupMenuActions.js.map +0 -1
  441. package/lib/cjs/widget/components/GroupPropertyAction.js +0 -287
  442. package/lib/cjs/widget/components/GroupPropertyAction.js.map +0 -1
  443. package/lib/cjs/widget/components/GroupPropertyTable.js +0 -81
  444. package/lib/cjs/widget/components/GroupPropertyTable.js.map +0 -1
  445. package/lib/cjs/widget/components/GroupPropertyUtils.js.map +0 -1
  446. package/lib/cjs/widget/components/GroupingMapping.d.ts +0 -34
  447. package/lib/cjs/widget/components/GroupingMapping.js +0 -79
  448. package/lib/cjs/widget/components/GroupingMapping.js.map +0 -1
  449. package/lib/cjs/widget/components/GroupingMappingContent.js +0 -51
  450. package/lib/cjs/widget/components/GroupingMappingContent.js.map +0 -1
  451. package/lib/cjs/widget/components/GroupingMappingContext.d.ts +0 -40
  452. package/lib/cjs/widget/components/GroupingMappingContext.js +0 -109
  453. package/lib/cjs/widget/components/GroupingMappingContext.js.map +0 -1
  454. package/lib/cjs/widget/components/GroupingMappingHeader.js +0 -24
  455. package/lib/cjs/widget/components/GroupingMappingHeader.js.map +0 -1
  456. package/lib/cjs/widget/components/GroupingMappingRouter.d.ts +0 -8
  457. package/lib/cjs/widget/components/GroupingMappingRouter.js +0 -107
  458. package/lib/cjs/widget/components/GroupingMappingRouter.js.map +0 -1
  459. package/lib/cjs/widget/components/Groups.d.ts +0 -16
  460. package/lib/cjs/widget/components/Groups.js +0 -46
  461. package/lib/cjs/widget/components/Groups.js.map +0 -1
  462. package/lib/cjs/widget/components/GroupsAddButton.d.ts +0 -10
  463. package/lib/cjs/widget/components/GroupsAddButton.js.map +0 -1
  464. package/lib/cjs/widget/components/GroupsShowHideButtons.js +0 -45
  465. package/lib/cjs/widget/components/GroupsShowHideButtons.js.map +0 -1
  466. package/lib/cjs/widget/components/GroupsView.d.ts +0 -31
  467. package/lib/cjs/widget/components/GroupsView.js +0 -37
  468. package/lib/cjs/widget/components/GroupsView.js.map +0 -1
  469. package/lib/cjs/widget/components/GroupsView.scss +0 -49
  470. package/lib/cjs/widget/components/GroupsVisualization.js +0 -141
  471. package/lib/cjs/widget/components/GroupsVisualization.js.map +0 -1
  472. package/lib/cjs/widget/components/GroupsVisualization.scss +0 -12
  473. package/lib/cjs/widget/components/GroupsVisualizationActions.js +0 -27
  474. package/lib/cjs/widget/components/GroupsVisualizationActions.js.map +0 -1
  475. package/lib/cjs/widget/components/HorizontalTile.d.ts +0 -15
  476. package/lib/cjs/widget/components/HorizontalTile.js +0 -24
  477. package/lib/cjs/widget/components/HorizontalTile.js.map +0 -1
  478. package/lib/cjs/widget/components/HorizontalTile.scss +0 -57
  479. package/lib/cjs/widget/components/MappingAction.js +0 -109
  480. package/lib/cjs/widget/components/MappingAction.js.map +0 -1
  481. package/lib/cjs/widget/components/MappingImportWizardModal.js +0 -125
  482. package/lib/cjs/widget/components/MappingImportWizardModal.js.map +0 -1
  483. package/lib/cjs/widget/components/MappingViewActionGroup.js.map +0 -1
  484. package/lib/cjs/widget/components/Mappings.d.ts +0 -13
  485. package/lib/cjs/widget/components/Mappings.js +0 -45
  486. package/lib/cjs/widget/components/Mappings.js.map +0 -1
  487. package/lib/cjs/widget/components/MappingsView.js +0 -63
  488. package/lib/cjs/widget/components/MappingsView.js.map +0 -1
  489. package/lib/cjs/widget/components/PropertyAction.js +0 -99
  490. package/lib/cjs/widget/components/PropertyAction.js.map +0 -1
  491. package/lib/cjs/widget/components/PropertyMenu.js +0 -60
  492. package/lib/cjs/widget/components/PropertyMenu.js.map +0 -1
  493. package/lib/cjs/widget/components/PropertyMenuWithVisualization.js.map +0 -1
  494. package/lib/cjs/widget/components/PropertyNameCell.js.map +0 -1
  495. package/lib/cjs/widget/components/PropertyTable.js +0 -53
  496. package/lib/cjs/widget/components/PropertyTable.js.map +0 -1
  497. package/lib/cjs/widget/components/PropertyTableToolbar.js.map +0 -1
  498. package/lib/cjs/widget/components/QueryBuilder.js.map +0 -1
  499. package/lib/cjs/widget/components/QueryBuilderActionPanel.js.map +0 -1
  500. package/lib/cjs/widget/components/QueryBuilderCustomUI.d.ts +0 -13
  501. package/lib/cjs/widget/components/QueryBuilderCustomUI.js +0 -28
  502. package/lib/cjs/widget/components/QueryBuilderCustomUI.js.map +0 -1
  503. package/lib/cjs/widget/components/QueryBuilderStep.js.map +0 -1
  504. package/lib/cjs/widget/components/SaveModal.js.map +0 -1
  505. package/lib/cjs/widget/components/SelectIModel.js +0 -102
  506. package/lib/cjs/widget/components/SelectIModel.js.map +0 -1
  507. package/lib/cjs/widget/components/SelectITwin.js +0 -115
  508. package/lib/cjs/widget/components/SelectITwin.js.map +0 -1
  509. package/lib/cjs/widget/components/SelectMappings.d.ts +0 -16
  510. package/lib/cjs/widget/components/SelectMappings.js +0 -88
  511. package/lib/cjs/widget/components/SelectMappings.js.map +0 -1
  512. package/lib/cjs/widget/components/SharedCalculatedPropertyForms.js.map +0 -1
  513. package/lib/cjs/widget/components/SortableHorizontalTile.d.ts +0 -8
  514. package/lib/cjs/widget/components/SortableHorizontalTile.js +0 -52
  515. package/lib/cjs/widget/components/SortableHorizontalTile.js.map +0 -1
  516. package/lib/cjs/widget/components/StatusIcon.js.map +0 -1
  517. package/lib/cjs/widget/components/ToggleGroupVisibility.js.map +0 -1
  518. package/lib/cjs/widget/components/WidgetHeader.js.map +0 -1
  519. package/lib/cjs/widget/components/context/ExtractionClientContext.js.map +0 -1
  520. package/lib/cjs/widget/components/context/GroupHilitedElementsContext.d.ts +0 -22
  521. package/lib/cjs/widget/components/context/GroupHilitedElementsContext.js +0 -47
  522. package/lib/cjs/widget/components/context/GroupHilitedElementsContext.js.map +0 -1
  523. package/lib/cjs/widget/components/context/GroupingApiConfigContext.js.map +0 -1
  524. package/lib/cjs/widget/components/context/GroupingMappingCustomUIContext.js.map +0 -1
  525. package/lib/cjs/widget/components/context/IModelsClientContext.js.map +0 -1
  526. package/lib/cjs/widget/components/context/ITwinsClientContext.js.map +0 -1
  527. package/lib/cjs/widget/components/context/MappingClientContext.js.map +0 -1
  528. package/lib/cjs/widget/components/context/PropertiesContext.js.map +0 -1
  529. package/lib/cjs/widget/components/context/PropertyGridWrapperContext.d.ts +0 -13
  530. package/lib/cjs/widget/components/context/PropertyGridWrapperContext.js.map +0 -1
  531. package/lib/cjs/widget/components/customUI/DefaultGroupingUI.js.map +0 -1
  532. package/lib/cjs/widget/components/customUI/GroupQueryBuilderCustomUI.js +0 -107
  533. package/lib/cjs/widget/components/customUI/GroupQueryBuilderCustomUI.js.map +0 -1
  534. package/lib/cjs/widget/components/customUI/GroupingMappingCustomUI.js.map +0 -1
  535. package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.js +0 -32
  536. package/lib/cjs/widget/components/customUI/ManualGroupingCustomUI.js.map +0 -1
  537. package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.js +0 -98
  538. package/lib/cjs/widget/components/customUI/SearchGroupingCustomUI.js.map +0 -1
  539. package/lib/cjs/widget/components/groupsHelpers.d.ts +0 -10
  540. package/lib/cjs/widget/components/groupsHelpers.js +0 -84
  541. package/lib/cjs/widget/components/groupsHelpers.js.map +0 -1
  542. package/lib/cjs/widget/components/hooks/useGroupsOperations.d.ts +0 -20
  543. package/lib/cjs/widget/components/hooks/useGroupsOperations.js +0 -67
  544. package/lib/cjs/widget/components/hooks/useGroupsOperations.js.map +0 -1
  545. package/lib/cjs/widget/components/hooks/useMappingsOperations.d.ts +0 -35
  546. package/lib/cjs/widget/components/hooks/useMappingsOperations.js +0 -120
  547. package/lib/cjs/widget/components/hooks/useMappingsOperations.js.map +0 -1
  548. package/lib/cjs/widget/components/utils.d.ts +0 -16
  549. package/lib/cjs/widget/components/utils.js +0 -99
  550. package/lib/cjs/widget/components/utils.js.map +0 -1
  551. package/lib/cjs/widget/components/utils.scss +0 -18
  552. package/lib/cjs/widget/components/viewerUtils.d.ts +0 -30
  553. package/lib/cjs/widget/components/viewerUtils.js +0 -293
  554. package/lib/cjs/widget/components/viewerUtils.js.map +0 -1
  555. package/lib/cjs/widget/hooks/useFetchData.js +0 -43
  556. package/lib/cjs/widget/hooks/useFetchData.js.map +0 -1
  557. package/lib/cjs/widget/hooks/useFormulaValidation.d.ts +0 -6
  558. package/lib/cjs/widget/hooks/useFormulaValidation.js +0 -29
  559. package/lib/cjs/widget/hooks/useFormulaValidation.js.map +0 -1
  560. package/lib/cjs/widget/hooks/useValidator.js.map +0 -1
  561. package/lib/cjs/widget/hooks/useVisualization.js +0 -68
  562. package/lib/cjs/widget/hooks/useVisualization.js.map +0 -1
  563. package/lib/cjs/widget/utils.d.ts +0 -5
  564. package/lib/cjs/widget/utils.js +0 -12
  565. package/lib/cjs/widget/utils.js.map +0 -1
  566. package/lib/esm/widget/GroupingMappingWidget.d.ts +0 -10
  567. package/lib/esm/widget/GroupingMappingWidget.js +0 -24
  568. package/lib/esm/widget/GroupingMappingWidget.js.map +0 -1
  569. package/lib/esm/widget/components/ActionPanel.js +0 -18
  570. package/lib/esm/widget/components/ActionPanel.js.map +0 -1
  571. package/lib/esm/widget/components/BlockingOverlay.js +0 -13
  572. package/lib/esm/widget/components/BlockingOverlay.js.map +0 -1
  573. package/lib/esm/widget/components/CalculatedPropertyAction.js +0 -58
  574. package/lib/esm/widget/components/CalculatedPropertyAction.js.map +0 -1
  575. package/lib/esm/widget/components/CalculatedPropertyActionWithVisuals.js +0 -124
  576. package/lib/esm/widget/components/CalculatedPropertyActionWithVisuals.js.map +0 -1
  577. package/lib/esm/widget/components/CalculatedPropertyTable.js +0 -61
  578. package/lib/esm/widget/components/CalculatedPropertyTable.js.map +0 -1
  579. package/lib/esm/widget/components/ConfirmMappingsImport.js +0 -113
  580. package/lib/esm/widget/components/ConfirmMappingsImport.js.map +0 -1
  581. package/lib/esm/widget/components/CustomCalculationAction.d.ts +0 -13
  582. package/lib/esm/widget/components/CustomCalculationAction.js +0 -160
  583. package/lib/esm/widget/components/CustomCalculationAction.js.map +0 -1
  584. package/lib/esm/widget/components/CustomCalculationTable.js +0 -61
  585. package/lib/esm/widget/components/CustomCalculationTable.js.map +0 -1
  586. package/lib/esm/widget/components/DeleteModal.js +0 -38
  587. package/lib/esm/widget/components/DeleteModal.js.map +0 -1
  588. package/lib/esm/widget/components/ExtractionLogCustomFilter.js +0 -19
  589. package/lib/esm/widget/components/ExtractionLogCustomFilter.js.map +0 -1
  590. package/lib/esm/widget/components/ExtractionMessageModal.d.ts +0 -11
  591. package/lib/esm/widget/components/ExtractionMessageModal.js +0 -64
  592. package/lib/esm/widget/components/ExtractionMessageModal.js.map +0 -1
  593. package/lib/esm/widget/components/ExtractionStatusIcon.js.map +0 -1
  594. package/lib/esm/widget/components/GroupAction.js +0 -129
  595. package/lib/esm/widget/components/GroupAction.js.map +0 -1
  596. package/lib/esm/widget/components/GroupColorLegend.js.map +0 -1
  597. package/lib/esm/widget/components/GroupColorToggle.js +0 -46
  598. package/lib/esm/widget/components/GroupColorToggle.js.map +0 -1
  599. package/lib/esm/widget/components/GroupDetails.js +0 -27
  600. package/lib/esm/widget/components/GroupDetails.js.map +0 -1
  601. package/lib/esm/widget/components/GroupDetailsActionPanel.js.map +0 -1
  602. package/lib/esm/widget/components/GroupDetailsStep.js.map +0 -1
  603. package/lib/esm/widget/components/GroupInformationPanel.js.map +0 -1
  604. package/lib/esm/widget/components/GroupItem.d.ts +0 -12
  605. package/lib/esm/widget/components/GroupItem.js +0 -12
  606. package/lib/esm/widget/components/GroupItem.js.map +0 -1
  607. package/lib/esm/widget/components/GroupMenuActions.d.ts +0 -13
  608. package/lib/esm/widget/components/GroupMenuActions.js +0 -45
  609. package/lib/esm/widget/components/GroupMenuActions.js.map +0 -1
  610. package/lib/esm/widget/components/GroupPropertyAction.js +0 -261
  611. package/lib/esm/widget/components/GroupPropertyAction.js.map +0 -1
  612. package/lib/esm/widget/components/GroupPropertyTable.js +0 -58
  613. package/lib/esm/widget/components/GroupPropertyTable.js.map +0 -1
  614. package/lib/esm/widget/components/GroupPropertyUtils.js.map +0 -1
  615. package/lib/esm/widget/components/GroupingMapping.d.ts +0 -34
  616. package/lib/esm/widget/components/GroupingMapping.js +0 -57
  617. package/lib/esm/widget/components/GroupingMapping.js.map +0 -1
  618. package/lib/esm/widget/components/GroupingMappingContent.js +0 -28
  619. package/lib/esm/widget/components/GroupingMappingContent.js.map +0 -1
  620. package/lib/esm/widget/components/GroupingMappingContext.d.ts +0 -40
  621. package/lib/esm/widget/components/GroupingMappingContext.js +0 -86
  622. package/lib/esm/widget/components/GroupingMappingContext.js.map +0 -1
  623. package/lib/esm/widget/components/GroupingMappingHeader.js +0 -17
  624. package/lib/esm/widget/components/GroupingMappingHeader.js.map +0 -1
  625. package/lib/esm/widget/components/GroupingMappingRouter.d.ts +0 -8
  626. package/lib/esm/widget/components/GroupingMappingRouter.js +0 -100
  627. package/lib/esm/widget/components/GroupingMappingRouter.js.map +0 -1
  628. package/lib/esm/widget/components/Groups.d.ts +0 -16
  629. package/lib/esm/widget/components/Groups.js +0 -23
  630. package/lib/esm/widget/components/Groups.js.map +0 -1
  631. package/lib/esm/widget/components/GroupsAddButton.d.ts +0 -10
  632. package/lib/esm/widget/components/GroupsAddButton.js.map +0 -1
  633. package/lib/esm/widget/components/GroupsShowHideButtons.js +0 -22
  634. package/lib/esm/widget/components/GroupsShowHideButtons.js.map +0 -1
  635. package/lib/esm/widget/components/GroupsView.d.ts +0 -31
  636. package/lib/esm/widget/components/GroupsView.js +0 -30
  637. package/lib/esm/widget/components/GroupsView.js.map +0 -1
  638. package/lib/esm/widget/components/GroupsView.scss +0 -49
  639. package/lib/esm/widget/components/GroupsVisualization.js +0 -118
  640. package/lib/esm/widget/components/GroupsVisualization.js.map +0 -1
  641. package/lib/esm/widget/components/GroupsVisualization.scss +0 -12
  642. package/lib/esm/widget/components/GroupsVisualizationActions.js +0 -20
  643. package/lib/esm/widget/components/GroupsVisualizationActions.js.map +0 -1
  644. package/lib/esm/widget/components/HorizontalTile.d.ts +0 -15
  645. package/lib/esm/widget/components/HorizontalTile.js +0 -17
  646. package/lib/esm/widget/components/HorizontalTile.js.map +0 -1
  647. package/lib/esm/widget/components/HorizontalTile.scss +0 -57
  648. package/lib/esm/widget/components/MappingAction.js +0 -83
  649. package/lib/esm/widget/components/MappingAction.js.map +0 -1
  650. package/lib/esm/widget/components/MappingImportWizardModal.js +0 -99
  651. package/lib/esm/widget/components/MappingImportWizardModal.js.map +0 -1
  652. package/lib/esm/widget/components/MappingViewActionGroup.js.map +0 -1
  653. package/lib/esm/widget/components/Mappings.d.ts +0 -13
  654. package/lib/esm/widget/components/Mappings.js +0 -22
  655. package/lib/esm/widget/components/Mappings.js.map +0 -1
  656. package/lib/esm/widget/components/MappingsView.js +0 -56
  657. package/lib/esm/widget/components/MappingsView.js.map +0 -1
  658. package/lib/esm/widget/components/PropertyAction.js +0 -76
  659. package/lib/esm/widget/components/PropertyAction.js.map +0 -1
  660. package/lib/esm/widget/components/PropertyMenu.js +0 -37
  661. package/lib/esm/widget/components/PropertyMenu.js.map +0 -1
  662. package/lib/esm/widget/components/PropertyMenuWithVisualization.js.map +0 -1
  663. package/lib/esm/widget/components/PropertyNameCell.js.map +0 -1
  664. package/lib/esm/widget/components/PropertyTable.js +0 -27
  665. package/lib/esm/widget/components/PropertyTable.js.map +0 -1
  666. package/lib/esm/widget/components/PropertyTableToolbar.js.map +0 -1
  667. package/lib/esm/widget/components/QueryBuilder.js.map +0 -1
  668. package/lib/esm/widget/components/QueryBuilderActionPanel.js.map +0 -1
  669. package/lib/esm/widget/components/QueryBuilderCustomUI.d.ts +0 -13
  670. package/lib/esm/widget/components/QueryBuilderCustomUI.js +0 -21
  671. package/lib/esm/widget/components/QueryBuilderCustomUI.js.map +0 -1
  672. package/lib/esm/widget/components/QueryBuilderStep.js.map +0 -1
  673. package/lib/esm/widget/components/SaveModal.js.map +0 -1
  674. package/lib/esm/widget/components/SelectIModel.js +0 -81
  675. package/lib/esm/widget/components/SelectIModel.js.map +0 -1
  676. package/lib/esm/widget/components/SelectITwin.js +0 -94
  677. package/lib/esm/widget/components/SelectITwin.js.map +0 -1
  678. package/lib/esm/widget/components/SelectMappings.d.ts +0 -16
  679. package/lib/esm/widget/components/SelectMappings.js +0 -67
  680. package/lib/esm/widget/components/SelectMappings.js.map +0 -1
  681. package/lib/esm/widget/components/SharedCalculatedPropertyForms.js.map +0 -1
  682. package/lib/esm/widget/components/SortableHorizontalTile.d.ts +0 -8
  683. package/lib/esm/widget/components/SortableHorizontalTile.js +0 -31
  684. package/lib/esm/widget/components/SortableHorizontalTile.js.map +0 -1
  685. package/lib/esm/widget/components/StatusIcon.js.map +0 -1
  686. package/lib/esm/widget/components/ToggleGroupVisibility.js.map +0 -1
  687. package/lib/esm/widget/components/WidgetHeader.js.map +0 -1
  688. package/lib/esm/widget/components/context/ExtractionClientContext.js.map +0 -1
  689. package/lib/esm/widget/components/context/GroupHilitedElementsContext.d.ts +0 -22
  690. package/lib/esm/widget/components/context/GroupHilitedElementsContext.js +0 -24
  691. package/lib/esm/widget/components/context/GroupHilitedElementsContext.js.map +0 -1
  692. package/lib/esm/widget/components/context/GroupingApiConfigContext.js.map +0 -1
  693. package/lib/esm/widget/components/context/GroupingMappingCustomUIContext.js.map +0 -1
  694. package/lib/esm/widget/components/context/IModelsClientContext.js.map +0 -1
  695. package/lib/esm/widget/components/context/ITwinsClientContext.js.map +0 -1
  696. package/lib/esm/widget/components/context/MappingClientContext.js.map +0 -1
  697. package/lib/esm/widget/components/context/PropertiesContext.js.map +0 -1
  698. package/lib/esm/widget/components/context/PropertyGridWrapperContext.d.ts +0 -13
  699. package/lib/esm/widget/components/context/PropertyGridWrapperContext.js.map +0 -1
  700. package/lib/esm/widget/components/customUI/DefaultGroupingUI.js.map +0 -1
  701. package/lib/esm/widget/components/customUI/GroupQueryBuilderCustomUI.js +0 -84
  702. package/lib/esm/widget/components/customUI/GroupQueryBuilderCustomUI.js.map +0 -1
  703. package/lib/esm/widget/components/customUI/GroupingMappingCustomUI.js.map +0 -1
  704. package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.js +0 -25
  705. package/lib/esm/widget/components/customUI/ManualGroupingCustomUI.js.map +0 -1
  706. package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.js +0 -91
  707. package/lib/esm/widget/components/customUI/SearchGroupingCustomUI.js.map +0 -1
  708. package/lib/esm/widget/components/groupsHelpers.d.ts +0 -10
  709. package/lib/esm/widget/components/groupsHelpers.js +0 -75
  710. package/lib/esm/widget/components/groupsHelpers.js.map +0 -1
  711. package/lib/esm/widget/components/hooks/useGroupsOperations.d.ts +0 -20
  712. package/lib/esm/widget/components/hooks/useGroupsOperations.js +0 -63
  713. package/lib/esm/widget/components/hooks/useGroupsOperations.js.map +0 -1
  714. package/lib/esm/widget/components/hooks/useMappingsOperations.d.ts +0 -35
  715. package/lib/esm/widget/components/hooks/useMappingsOperations.js +0 -116
  716. package/lib/esm/widget/components/hooks/useMappingsOperations.js.map +0 -1
  717. package/lib/esm/widget/components/utils.d.ts +0 -16
  718. package/lib/esm/widget/components/utils.js +0 -85
  719. package/lib/esm/widget/components/utils.js.map +0 -1
  720. package/lib/esm/widget/components/utils.scss +0 -18
  721. package/lib/esm/widget/components/viewerUtils.d.ts +0 -30
  722. package/lib/esm/widget/components/viewerUtils.js +0 -268
  723. package/lib/esm/widget/components/viewerUtils.js.map +0 -1
  724. package/lib/esm/widget/hooks/useFetchData.js +0 -37
  725. package/lib/esm/widget/hooks/useFetchData.js.map +0 -1
  726. package/lib/esm/widget/hooks/useFormulaValidation.d.ts +0 -6
  727. package/lib/esm/widget/hooks/useFormulaValidation.js +0 -25
  728. package/lib/esm/widget/hooks/useFormulaValidation.js.map +0 -1
  729. package/lib/esm/widget/hooks/useValidator.js.map +0 -1
  730. package/lib/esm/widget/hooks/useVisualization.js +0 -64
  731. package/lib/esm/widget/hooks/useVisualization.js.map +0 -1
  732. package/lib/esm/widget/utils.d.ts +0 -5
  733. package/lib/esm/widget/utils.js +0 -8
  734. package/lib/esm/widget/utils.js.map +0 -1
  735. /package/lib/cjs/{widget/components → WidgetShell}/GroupingMapping.scss +0 -0
  736. /package/lib/cjs/{widget/components → WidgetShell}/GroupingMappingContent.d.ts +0 -0
  737. /package/lib/cjs/{widget/components → WidgetShell}/GroupingMappingHeader.d.ts +0 -0
  738. /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.d.ts +0 -0
  739. /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.js +0 -0
  740. /package/lib/cjs/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.scss +0 -0
  741. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupAction.d.ts +0 -0
  742. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupAction.scss +0 -0
  743. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetails.d.ts +0 -0
  744. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.d.ts +0 -0
  745. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.js +0 -0
  746. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.d.ts +0 -0
  747. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.js +0 -0
  748. /package/lib/cjs/{widget/components → components/Groups/Editing}/GroupDetailsStep.scss +0 -0
  749. /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.d.ts +0 -0
  750. /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.js +0 -0
  751. /package/lib/cjs/{widget/components → components/Groups}/GroupColorLegend.scss +0 -0
  752. /package/lib/cjs/{widget/components → components/Groups}/GroupMenuActions.scss +0 -0
  753. /package/lib/cjs/{widget/components → components/Groups}/GroupsAddButton.js +0 -0
  754. /package/lib/cjs/{widget/components → components/Groups}/GroupsAddButton.scss +0 -0
  755. /package/lib/cjs/{widget/components → components/Groups}/GroupsShowHideButtons.d.ts +0 -0
  756. /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualization.d.ts +0 -0
  757. /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualizationActions.d.ts +0 -0
  758. /package/lib/cjs/{widget/components → components/Groups}/GroupsVisualizationActions.scss +0 -0
  759. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.d.ts +0 -0
  760. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.js +0 -0
  761. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.d.ts +0 -0
  762. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.js +0 -0
  763. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.d.ts +0 -0
  764. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.js +0 -0
  765. /package/lib/cjs/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.scss +0 -0
  766. /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.d.ts +0 -0
  767. /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.js +0 -0
  768. /package/lib/cjs/{widget/components → components/Groups}/ToggleGroupVisibility.scss +0 -0
  769. /package/lib/cjs/{widget → components/Groups}/hooks/useVisualization.d.ts +0 -0
  770. /package/lib/cjs/{widget/components → components/Mappings}/BlockingOverlay.d.ts +0 -0
  771. /package/lib/cjs/{widget/components → components/Mappings}/BlockingOverlay.scss +0 -0
  772. /package/lib/cjs/{widget/components → components/Mappings}/ConfirmMappingsImport.d.ts +0 -0
  773. /package/lib/cjs/{widget/components → components/Mappings}/ConfirmMappingsImport.scss +0 -0
  774. /package/lib/cjs/{widget/components → components/Mappings/Editing}/MappingAction.d.ts +0 -0
  775. /package/lib/cjs/{widget/components → components/Mappings/Editing}/MappingAction.scss +0 -0
  776. /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionLogCustomFilter.d.ts +0 -0
  777. /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionMessageModal.scss +0 -0
  778. /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.d.ts +0 -0
  779. /package/lib/cjs/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.js +0 -0
  780. /package/lib/cjs/{widget/components → components/Mappings/Import}/MappingImportWizardModal.d.ts +0 -0
  781. /package/lib/cjs/{widget/components → components/Mappings/Import}/MappingImportWizardModal.scss +0 -0
  782. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectIModel.d.ts +0 -0
  783. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectIModel.scss +0 -0
  784. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectITwin.d.ts +0 -0
  785. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectITwin.scss +0 -0
  786. /package/lib/cjs/{widget/components → components/Mappings/Import}/SelectMapping.scss +0 -0
  787. /package/lib/cjs/{widget/components → components/Mappings}/MappingViewActionGroup.d.ts +0 -0
  788. /package/lib/cjs/{widget/components → components/Mappings}/MappingViewActionGroup.js +0 -0
  789. /package/lib/cjs/{widget/components → components/Mappings}/MappingsView.d.ts +0 -0
  790. /package/lib/cjs/{widget/components → components/Mappings}/MappingsView.scss +0 -0
  791. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.d.ts +0 -0
  792. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.scss +0 -0
  793. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.d.ts +0 -0
  794. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.scss +0 -0
  795. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.d.ts +0 -0
  796. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.scss +0 -0
  797. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.d.ts +0 -0
  798. /package/lib/cjs/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.js +0 -0
  799. /package/lib/cjs/{widget/components → components/Properties/CustomCalculations}/CustomCalculationAction.scss +0 -0
  800. /package/lib/cjs/{widget/components → components/Properties/CustomCalculations}/CustomCalculationTable.d.ts +0 -0
  801. /package/lib/cjs/{widget/components → components/Properties}/GroupColorToggle.d.ts +0 -0
  802. /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.d.ts +0 -0
  803. /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.js +0 -0
  804. /package/lib/cjs/{widget/components → components/Properties}/GroupInformationPanel.scss +0 -0
  805. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.d.ts +0 -0
  806. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.scss +0 -0
  807. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyTable.d.ts +0 -0
  808. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.d.ts +0 -0
  809. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.js +0 -0
  810. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/SaveModal.d.ts +0 -0
  811. /package/lib/cjs/{widget/components → components/Properties/GroupProperties}/SaveModal.js +0 -0
  812. /package/lib/cjs/{widget/components → components/Properties}/PropertyAction.d.ts +0 -0
  813. /package/lib/cjs/{widget/components → components/Properties}/PropertyAction.scss +0 -0
  814. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenu.d.ts +0 -0
  815. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenu.scss +0 -0
  816. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.d.ts +0 -0
  817. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.js +0 -0
  818. /package/lib/cjs/{widget/components → components/Properties}/PropertyMenuWithVisualization.scss +0 -0
  819. /package/lib/cjs/{widget/components → components/Properties}/PropertyNameCell.d.ts +0 -0
  820. /package/lib/cjs/{widget/components → components/Properties}/PropertyNameCell.js +0 -0
  821. /package/lib/cjs/{widget/components → components/Properties}/PropertyTable.d.ts +0 -0
  822. /package/lib/cjs/{widget/components → components/Properties}/PropertyTable.scss +0 -0
  823. /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.d.ts +0 -0
  824. /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.js +0 -0
  825. /package/lib/cjs/{widget/components → components/Properties}/PropertyTableToolbar.scss +0 -0
  826. /package/lib/cjs/{widget → components/Properties}/hooks/useFetchData.d.ts +0 -0
  827. /package/lib/cjs/{widget → components/Properties}/hooks/useValidator.d.ts +0 -0
  828. /package/lib/cjs/{widget → components/Properties}/hooks/useValidator.js +0 -0
  829. /package/lib/cjs/{widget/components → components/SharedComponents}/ActionPanel.d.ts +0 -0
  830. /package/lib/cjs/{widget/components → components/SharedComponents}/ActionPanel.scss +0 -0
  831. /package/lib/cjs/{widget/components → components/SharedComponents}/DeleteModal.d.ts +0 -0
  832. /package/lib/cjs/{widget/components → components/SharedComponents}/DeleteModal.scss +0 -0
  833. /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.d.ts +0 -0
  834. /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.js +0 -0
  835. /package/lib/cjs/{widget/components → components/SharedComponents}/StatusIcon.scss +0 -0
  836. /package/lib/cjs/{widget/components → components}/context/ExtractionClientContext.d.ts +0 -0
  837. /package/lib/cjs/{widget/components → components}/context/ExtractionClientContext.js +0 -0
  838. /package/lib/cjs/{widget/components → components}/context/GroupingApiConfigContext.d.ts +0 -0
  839. /package/lib/cjs/{widget/components → components}/context/GroupingApiConfigContext.js +0 -0
  840. /package/lib/cjs/{widget/components → components}/context/GroupingMappingCustomUIContext.d.ts +0 -0
  841. /package/lib/cjs/{widget/components → components}/context/GroupingMappingCustomUIContext.js +0 -0
  842. /package/lib/cjs/{widget/components → components}/context/IModelsClientContext.d.ts +0 -0
  843. /package/lib/cjs/{widget/components → components}/context/IModelsClientContext.js +0 -0
  844. /package/lib/cjs/{widget/components → components}/context/ITwinsClientContext.d.ts +0 -0
  845. /package/lib/cjs/{widget/components → components}/context/ITwinsClientContext.js +0 -0
  846. /package/lib/cjs/{widget/components → components}/context/MappingClientContext.d.ts +0 -0
  847. /package/lib/cjs/{widget/components → components}/context/MappingClientContext.js +0 -0
  848. /package/lib/cjs/{widget/components → components}/context/PropertiesContext.d.ts +0 -0
  849. /package/lib/cjs/{widget/components → components}/context/PropertiesContext.js +0 -0
  850. /package/lib/cjs/{widget/components → components}/context/PropertyGridWrapperContext.js +0 -0
  851. /package/lib/cjs/{widget/components → components}/customUI/DefaultGroupingUI.d.ts +0 -0
  852. /package/lib/cjs/{widget/components → components}/customUI/DefaultGroupingUI.js +0 -0
  853. /package/lib/cjs/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.d.ts +0 -0
  854. /package/lib/cjs/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.scss +0 -0
  855. /package/lib/cjs/{widget/components → components}/customUI/GroupingMappingCustomUI.d.ts +0 -0
  856. /package/lib/cjs/{widget/components → components}/customUI/GroupingMappingCustomUI.js +0 -0
  857. /package/lib/cjs/{widget/components → components}/customUI/ManualGroupingCustomUI.d.ts +0 -0
  858. /package/lib/cjs/{widget/components → components}/customUI/ManualGroupingCustomUI.scss +0 -0
  859. /package/lib/cjs/{widget/components → components}/customUI/SearchGroupingCustomUI.d.ts +0 -0
  860. /package/lib/cjs/{widget/components → components}/customUI/SearchGroupingCustomUI.scss +0 -0
  861. /package/lib/esm/{widget/components → WidgetShell}/GroupingMapping.scss +0 -0
  862. /package/lib/esm/{widget/components → WidgetShell}/GroupingMappingContent.d.ts +0 -0
  863. /package/lib/esm/{widget/components → WidgetShell}/GroupingMappingHeader.d.ts +0 -0
  864. /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.d.ts +0 -0
  865. /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.js +0 -0
  866. /package/lib/esm/{widget/components → WidgetShell/WidgetHeader}/WidgetHeader.scss +0 -0
  867. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupAction.d.ts +0 -0
  868. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupAction.scss +0 -0
  869. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetails.d.ts +0 -0
  870. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.d.ts +0 -0
  871. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsActionPanel.js +0 -0
  872. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.d.ts +0 -0
  873. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.js +0 -0
  874. /package/lib/esm/{widget/components → components/Groups/Editing}/GroupDetailsStep.scss +0 -0
  875. /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.d.ts +0 -0
  876. /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.js +0 -0
  877. /package/lib/esm/{widget/components → components/Groups}/GroupColorLegend.scss +0 -0
  878. /package/lib/esm/{widget/components → components/Groups}/GroupMenuActions.scss +0 -0
  879. /package/lib/esm/{widget/components → components/Groups}/GroupsAddButton.js +0 -0
  880. /package/lib/esm/{widget/components → components/Groups}/GroupsAddButton.scss +0 -0
  881. /package/lib/esm/{widget/components → components/Groups}/GroupsShowHideButtons.d.ts +0 -0
  882. /package/lib/esm/{widget/components → components/Groups}/GroupsVisualization.d.ts +0 -0
  883. /package/lib/esm/{widget/components → components/Groups}/GroupsVisualizationActions.d.ts +0 -0
  884. /package/lib/esm/{widget/components → components/Groups}/GroupsVisualizationActions.scss +0 -0
  885. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.d.ts +0 -0
  886. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilder.js +0 -0
  887. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.d.ts +0 -0
  888. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderActionPanel.js +0 -0
  889. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.d.ts +0 -0
  890. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.js +0 -0
  891. /package/lib/esm/{widget/components → components/Groups/QueryBuilder}/QueryBuilderStep.scss +0 -0
  892. /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.d.ts +0 -0
  893. /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.js +0 -0
  894. /package/lib/esm/{widget/components → components/Groups}/ToggleGroupVisibility.scss +0 -0
  895. /package/lib/esm/{widget → components/Groups}/hooks/useVisualization.d.ts +0 -0
  896. /package/lib/esm/{widget/components → components/Mappings}/BlockingOverlay.d.ts +0 -0
  897. /package/lib/esm/{widget/components → components/Mappings}/BlockingOverlay.scss +0 -0
  898. /package/lib/esm/{widget/components → components/Mappings}/ConfirmMappingsImport.d.ts +0 -0
  899. /package/lib/esm/{widget/components → components/Mappings}/ConfirmMappingsImport.scss +0 -0
  900. /package/lib/esm/{widget/components → components/Mappings/Editing}/MappingAction.d.ts +0 -0
  901. /package/lib/esm/{widget/components → components/Mappings/Editing}/MappingAction.scss +0 -0
  902. /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionLogCustomFilter.d.ts +0 -0
  903. /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionMessageModal.scss +0 -0
  904. /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.d.ts +0 -0
  905. /package/lib/esm/{widget/components → components/Mappings/Extraction}/ExtractionStatusIcon.js +0 -0
  906. /package/lib/esm/{widget/components → components/Mappings/Import}/MappingImportWizardModal.d.ts +0 -0
  907. /package/lib/esm/{widget/components → components/Mappings/Import}/MappingImportWizardModal.scss +0 -0
  908. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectIModel.d.ts +0 -0
  909. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectIModel.scss +0 -0
  910. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectITwin.d.ts +0 -0
  911. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectITwin.scss +0 -0
  912. /package/lib/esm/{widget/components → components/Mappings/Import}/SelectMapping.scss +0 -0
  913. /package/lib/esm/{widget/components → components/Mappings}/MappingViewActionGroup.d.ts +0 -0
  914. /package/lib/esm/{widget/components → components/Mappings}/MappingViewActionGroup.js +0 -0
  915. /package/lib/esm/{widget/components → components/Mappings}/MappingsView.d.ts +0 -0
  916. /package/lib/esm/{widget/components → components/Mappings}/MappingsView.scss +0 -0
  917. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.d.ts +0 -0
  918. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyAction.scss +0 -0
  919. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.d.ts +0 -0
  920. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyActionWithVisuals.scss +0 -0
  921. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.d.ts +0 -0
  922. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/CalculatedPropertyTable.scss +0 -0
  923. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.d.ts +0 -0
  924. /package/lib/esm/{widget/components → components/Properties/CalculatedProperties}/SharedCalculatedPropertyForms.js +0 -0
  925. /package/lib/esm/{widget/components → components/Properties/CustomCalculations}/CustomCalculationAction.scss +0 -0
  926. /package/lib/esm/{widget/components → components/Properties/CustomCalculations}/CustomCalculationTable.d.ts +0 -0
  927. /package/lib/esm/{widget/components → components/Properties}/GroupColorToggle.d.ts +0 -0
  928. /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.d.ts +0 -0
  929. /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.js +0 -0
  930. /package/lib/esm/{widget/components → components/Properties}/GroupInformationPanel.scss +0 -0
  931. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.d.ts +0 -0
  932. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyAction.scss +0 -0
  933. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyTable.d.ts +0 -0
  934. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.d.ts +0 -0
  935. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/GroupPropertyUtils.js +0 -0
  936. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/SaveModal.d.ts +0 -0
  937. /package/lib/esm/{widget/components → components/Properties/GroupProperties}/SaveModal.js +0 -0
  938. /package/lib/esm/{widget/components → components/Properties}/PropertyAction.d.ts +0 -0
  939. /package/lib/esm/{widget/components → components/Properties}/PropertyAction.scss +0 -0
  940. /package/lib/esm/{widget/components → components/Properties}/PropertyMenu.d.ts +0 -0
  941. /package/lib/esm/{widget/components → components/Properties}/PropertyMenu.scss +0 -0
  942. /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.d.ts +0 -0
  943. /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.js +0 -0
  944. /package/lib/esm/{widget/components → components/Properties}/PropertyMenuWithVisualization.scss +0 -0
  945. /package/lib/esm/{widget/components → components/Properties}/PropertyNameCell.d.ts +0 -0
  946. /package/lib/esm/{widget/components → components/Properties}/PropertyNameCell.js +0 -0
  947. /package/lib/esm/{widget/components → components/Properties}/PropertyTable.d.ts +0 -0
  948. /package/lib/esm/{widget/components → components/Properties}/PropertyTable.scss +0 -0
  949. /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.d.ts +0 -0
  950. /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.js +0 -0
  951. /package/lib/esm/{widget/components → components/Properties}/PropertyTableToolbar.scss +0 -0
  952. /package/lib/esm/{widget → components/Properties}/hooks/useFetchData.d.ts +0 -0
  953. /package/lib/esm/{widget → components/Properties}/hooks/useValidator.d.ts +0 -0
  954. /package/lib/esm/{widget → components/Properties}/hooks/useValidator.js +0 -0
  955. /package/lib/esm/{widget/components → components/SharedComponents}/ActionPanel.d.ts +0 -0
  956. /package/lib/esm/{widget/components → components/SharedComponents}/ActionPanel.scss +0 -0
  957. /package/lib/esm/{widget/components → components/SharedComponents}/DeleteModal.d.ts +0 -0
  958. /package/lib/esm/{widget/components → components/SharedComponents}/DeleteModal.scss +0 -0
  959. /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.d.ts +0 -0
  960. /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.js +0 -0
  961. /package/lib/esm/{widget/components → components/SharedComponents}/StatusIcon.scss +0 -0
  962. /package/lib/esm/{widget/components → components}/context/ExtractionClientContext.d.ts +0 -0
  963. /package/lib/esm/{widget/components → components}/context/ExtractionClientContext.js +0 -0
  964. /package/lib/esm/{widget/components → components}/context/GroupingApiConfigContext.d.ts +0 -0
  965. /package/lib/esm/{widget/components → components}/context/GroupingApiConfigContext.js +0 -0
  966. /package/lib/esm/{widget/components → components}/context/GroupingMappingCustomUIContext.d.ts +0 -0
  967. /package/lib/esm/{widget/components → components}/context/GroupingMappingCustomUIContext.js +0 -0
  968. /package/lib/esm/{widget/components → components}/context/IModelsClientContext.d.ts +0 -0
  969. /package/lib/esm/{widget/components → components}/context/IModelsClientContext.js +0 -0
  970. /package/lib/esm/{widget/components → components}/context/ITwinsClientContext.d.ts +0 -0
  971. /package/lib/esm/{widget/components → components}/context/ITwinsClientContext.js +0 -0
  972. /package/lib/esm/{widget/components → components}/context/MappingClientContext.d.ts +0 -0
  973. /package/lib/esm/{widget/components → components}/context/MappingClientContext.js +0 -0
  974. /package/lib/esm/{widget/components → components}/context/PropertiesContext.d.ts +0 -0
  975. /package/lib/esm/{widget/components → components}/context/PropertiesContext.js +0 -0
  976. /package/lib/esm/{widget/components → components}/context/PropertyGridWrapperContext.js +0 -0
  977. /package/lib/esm/{widget/components → components}/customUI/DefaultGroupingUI.d.ts +0 -0
  978. /package/lib/esm/{widget/components → components}/customUI/DefaultGroupingUI.js +0 -0
  979. /package/lib/esm/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.d.ts +0 -0
  980. /package/lib/esm/{widget/components → components}/customUI/GroupQueryBuilderCustomUI.scss +0 -0
  981. /package/lib/esm/{widget/components → components}/customUI/GroupingMappingCustomUI.d.ts +0 -0
  982. /package/lib/esm/{widget/components → components}/customUI/GroupingMappingCustomUI.js +0 -0
  983. /package/lib/esm/{widget/components → components}/customUI/ManualGroupingCustomUI.d.ts +0 -0
  984. /package/lib/esm/{widget/components → components}/customUI/ManualGroupingCustomUI.scss +0 -0
  985. /package/lib/esm/{widget/components → components}/customUI/SearchGroupingCustomUI.d.ts +0 -0
  986. /package/lib/esm/{widget/components → components}/customUI/SearchGroupingCustomUI.scss +0 -0
@@ -1,293 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.clearAll = exports.clearEmphasizedOverriddenElements = exports.clearEmphasizedElements = exports.manufactureKeys = exports.getHiliteIds = exports.zoomToElements = exports.transparentOverriddenElements = exports.visualizeElements = exports.visualizeElementsByKeys = exports.visualizeElementsByQuery = exports.emphasizeElementsByKeys = exports.emphasisElementsByQuery = exports.emphasizeElements = exports.clearOverriddenElements = exports.overrideElements = exports.overrideElementsByQuery = exports.clearHiddenElements = exports.hideElements = exports.clearIsolatedElements = exports.isolateElements = exports.isolateElementsByQuery = exports.isolateElementsByKeys = void 0;
4
- const core_frontend_1 = require("@itwin/core-frontend");
5
- const core_common_1 = require("@itwin/core-common");
6
- const presentation_common_1 = require("@itwin/presentation-common");
7
- const presentation_frontend_1 = require("@itwin/presentation-frontend");
8
- const isolateElementsByKeys = async (keySet, replace = false) => {
9
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
10
- return [];
11
- }
12
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
13
- const hiliteProvider = presentation_frontend_1.HiliteSetProvider.create({
14
- imodel: vp.iModel,
15
- });
16
- const set = await hiliteProvider.getHiliteSet(keySet);
17
- if (set.elements) {
18
- const ids = [...set.elements];
19
- (0, exports.isolateElements)(ids, replace);
20
- return ids;
21
- }
22
- return [];
23
- };
24
- exports.isolateElementsByKeys = isolateElementsByKeys;
25
- const isolateElementsByQuery = async (query, iModelConnection, replace = false) => {
26
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
27
- return [];
28
- }
29
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
30
- const keySet = await (0, exports.manufactureKeys)(query, iModelConnection);
31
- const hiliteProvider = presentation_frontend_1.HiliteSetProvider.create({
32
- imodel: vp.iModel,
33
- });
34
- const set = await hiliteProvider.getHiliteSet(keySet);
35
- if (set.elements) {
36
- const ids = [...set.elements];
37
- (0, exports.isolateElements)(ids, replace);
38
- return ids;
39
- }
40
- return [];
41
- };
42
- exports.isolateElementsByQuery = isolateElementsByQuery;
43
- const isolateElements = (hilitedIds, replace = false) => {
44
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
45
- return;
46
- }
47
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
48
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
49
- emph.isolateElements(hilitedIds, vp, replace);
50
- };
51
- exports.isolateElements = isolateElements;
52
- const clearIsolatedElements = () => {
53
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
54
- return;
55
- }
56
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
57
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
58
- emph.clearIsolatedElements(vp);
59
- };
60
- exports.clearIsolatedElements = clearIsolatedElements;
61
- const hideElements = (hilitedIds, replace = false) => {
62
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
63
- return;
64
- }
65
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
66
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
67
- emph.hideElements(hilitedIds, vp, replace);
68
- };
69
- exports.hideElements = hideElements;
70
- const clearHiddenElements = () => {
71
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
72
- return;
73
- }
74
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
75
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
76
- emph.clearHiddenElements(vp);
77
- };
78
- exports.clearHiddenElements = clearHiddenElements;
79
- const overrideElementsByQuery = async (iModelConnection, query, color, overrideType = core_common_1.FeatureOverrideType.ColorOnly) => {
80
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
81
- return [];
82
- }
83
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
84
- const keySet = await (0, exports.manufactureKeys)(query, iModelConnection);
85
- const hiliteProvider = presentation_frontend_1.HiliteSetProvider.create({
86
- imodel: vp.iModel,
87
- });
88
- const set = await hiliteProvider.getHiliteSet(keySet);
89
- if (set.elements) {
90
- const ids = [...set.elements];
91
- (0, exports.overrideElements)(ids, color, overrideType);
92
- return ids;
93
- }
94
- return [];
95
- };
96
- exports.overrideElementsByQuery = overrideElementsByQuery;
97
- const overrideElements = (hilitedIds, color, overrideType = core_common_1.FeatureOverrideType.ColorOnly) => {
98
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
99
- return;
100
- }
101
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
102
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
103
- emph.overrideElements(hilitedIds, vp, core_common_1.ColorDef.fromString(color), overrideType, true);
104
- };
105
- exports.overrideElements = overrideElements;
106
- const clearOverriddenElements = () => {
107
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
108
- return;
109
- }
110
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
111
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
112
- emph.clearOverriddenElements(vp);
113
- };
114
- exports.clearOverriddenElements = clearOverriddenElements;
115
- const emphasizeElements = (hilitedIds, defaultAppearance = undefined, replace = false) => {
116
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
117
- return;
118
- }
119
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
120
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
121
- emph.wantEmphasis = true;
122
- emph.emphasizeElements(hilitedIds, vp, defaultAppearance, replace);
123
- };
124
- exports.emphasizeElements = emphasizeElements;
125
- const emphasisElementsByQuery = async (iModelConnection, query, defaultAppearance = undefined, replace = false) => {
126
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
127
- return [];
128
- }
129
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
130
- const keySet = await (0, exports.manufactureKeys)(query, iModelConnection);
131
- const hiliteProvider = presentation_frontend_1.HiliteSetProvider.create({
132
- imodel: vp.iModel,
133
- });
134
- const set = await hiliteProvider.getHiliteSet(keySet);
135
- if (set.elements) {
136
- const ids = [...set.elements];
137
- (0, exports.emphasizeElements)(ids, defaultAppearance, replace);
138
- return ids;
139
- }
140
- return [];
141
- };
142
- exports.emphasisElementsByQuery = emphasisElementsByQuery;
143
- const emphasizeElementsByKeys = async (keySet, defaultAppearance = undefined, replace = false) => {
144
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
145
- return [];
146
- }
147
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
148
- const hiliteProvider = presentation_frontend_1.HiliteSetProvider.create({
149
- imodel: vp.iModel,
150
- });
151
- const set = await hiliteProvider.getHiliteSet(keySet);
152
- if (set.elements) {
153
- const ids = [...set.elements];
154
- (0, exports.emphasizeElements)(ids, defaultAppearance, replace);
155
- return ids;
156
- }
157
- return [];
158
- };
159
- exports.emphasizeElementsByKeys = emphasizeElementsByKeys;
160
- const visualizeElementsByQuery = async (query, color, iModelConnection, replace = false, wantEmphasis = true) => {
161
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
162
- return [];
163
- }
164
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
165
- const keySet = await (0, exports.manufactureKeys)(query, iModelConnection);
166
- const hiliteProvider = presentation_frontend_1.HiliteSetProvider.create({
167
- imodel: vp.iModel,
168
- });
169
- const set = await hiliteProvider.getHiliteSet(keySet);
170
- if (set.elements) {
171
- const ids = [...set.elements];
172
- (0, exports.visualizeElements)(ids, color, replace, wantEmphasis);
173
- return ids;
174
- }
175
- return [];
176
- };
177
- exports.visualizeElementsByQuery = visualizeElementsByQuery;
178
- const visualizeElementsByKeys = async (keySet, color, replace = false, wantEmphasis = true) => {
179
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
180
- return [];
181
- }
182
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
183
- const hiliteProvider = presentation_frontend_1.HiliteSetProvider.create({
184
- imodel: vp.iModel,
185
- });
186
- const set = await hiliteProvider.getHiliteSet(keySet);
187
- if (set.elements) {
188
- const ids = [...set.elements];
189
- (0, exports.visualizeElements)(ids, color, replace, wantEmphasis);
190
- return ids;
191
- }
192
- return [];
193
- };
194
- exports.visualizeElementsByKeys = visualizeElementsByKeys;
195
- const visualizeElements = (elementIds, color, replace = false, wantEmphasis = true) => {
196
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
197
- return;
198
- }
199
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
200
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
201
- emph.overrideElements(elementIds, vp, core_common_1.ColorDef.fromString(color), core_common_1.FeatureOverrideType.ColorAndAlpha, true);
202
- if (!wantEmphasis) {
203
- return;
204
- }
205
- emph.wantEmphasis = true;
206
- emph.emphasizeElements(elementIds, vp, undefined, replace);
207
- };
208
- exports.visualizeElements = visualizeElements;
209
- const transparentOverriddenElements = () => {
210
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
211
- return;
212
- }
213
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
214
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
215
- const ids = emph.getOverriddenElements()?.values();
216
- if (ids) {
217
- const toOverride = new Set();
218
- Array.from(ids).forEach((a) => a.forEach((id) => toOverride.add(id)));
219
- emph.overrideElements(toOverride, vp, core_common_1.ColorDef.red.withAlpha(50), core_common_1.FeatureOverrideType.AlphaOnly, true);
220
- }
221
- };
222
- exports.transparentOverriddenElements = transparentOverriddenElements;
223
- const zoomToElements = async (elementIds) => {
224
- if (!core_frontend_1.IModelApp.viewManager.selectedView || elementIds.length === 0) {
225
- return;
226
- }
227
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
228
- const viewChangeOpts = {};
229
- viewChangeOpts.animateFrustumChange = true;
230
- // It was removed. Should be a prop to be passed to lookAtViewAlignedVolume within the implementation.
231
- // viewChangeOpts.marginPercent = new MarginPercent(0.1, 0.1, 0.1, 0.1);
232
- await vp.zoomToElements(elementIds, { ...viewChangeOpts });
233
- };
234
- exports.zoomToElements = zoomToElements;
235
- const getHiliteIds = async (query, iModelConnection) => {
236
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
237
- return ({ keySet: new presentation_common_1.KeySet(), ids: [] });
238
- }
239
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
240
- const keySet = await (0, exports.manufactureKeys)(query, iModelConnection);
241
- const hiliteProvider = presentation_frontend_1.HiliteSetProvider.create({
242
- imodel: vp.iModel,
243
- });
244
- const set = await hiliteProvider.getHiliteSet(keySet);
245
- if (set.elements) {
246
- return { keySet, ids: [...set.elements] };
247
- }
248
- return ({ keySet: new presentation_common_1.KeySet(), ids: [] });
249
- };
250
- exports.getHiliteIds = getHiliteIds;
251
- const manufactureKeys = async (query, iModelConnection) => {
252
- if (query === "") {
253
- return new presentation_common_1.KeySet();
254
- }
255
- const queryWithIdAndECClassName = `SELECT q.ECInstanceId, ec_classname(e.ECClassId) FROM (${query}) q JOIN BisCore.Element e on e.ECInstanceId = q.ECInstanceId`;
256
- const keys = [];
257
- for await (const row of iModelConnection.createQueryReader(queryWithIdAndECClassName)) {
258
- keys.push({ id: row[0], className: row[1] });
259
- }
260
- return new presentation_common_1.KeySet(keys);
261
- };
262
- exports.manufactureKeys = manufactureKeys;
263
- const clearEmphasizedElements = () => {
264
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
265
- return;
266
- }
267
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
268
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
269
- emph.clearEmphasizedElements(vp);
270
- };
271
- exports.clearEmphasizedElements = clearEmphasizedElements;
272
- const clearEmphasizedOverriddenElements = () => {
273
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
274
- return;
275
- }
276
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
277
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
278
- emph.clearEmphasizedElements(vp);
279
- emph.clearOverriddenElements(vp);
280
- };
281
- exports.clearEmphasizedOverriddenElements = clearEmphasizedOverriddenElements;
282
- const clearAll = () => {
283
- if (!core_frontend_1.IModelApp.viewManager.selectedView) {
284
- return;
285
- }
286
- const vp = core_frontend_1.IModelApp.viewManager.selectedView;
287
- const emph = core_frontend_1.EmphasizeElements.getOrCreate(vp);
288
- emph.clearEmphasizedElements(vp);
289
- emph.clearOverriddenElements(vp);
290
- emph.clearHiddenElements(vp);
291
- };
292
- exports.clearAll = clearAll;
293
- //# sourceMappingURL=viewerUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viewerUtils.js","sourceRoot":"","sources":["../../../../src/widget/components/viewerUtils.tsx"],"names":[],"mappings":";;;AAKA,wDAAoE;AAEpE,oDAAmE;AAEnE,oEAAoD;AACpD,wEAAiE;AAE1D,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAc,EACd,OAAO,GAAG,KAAK,EACf,EAAE;IACF,IAAI,CAAC,yBAAS,CAAC,WAAW,CAAC,YAAY,EAAE;QACvC,OAAO,EAAE,CAAC;KACX;IAED,MAAM,EAAE,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,CAAC;IAE9C,MAAM,cAAc,GAAsB,yCAAiB,CAAC,MA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fW,QAAA,eAAe,mBAe1B;AAEK,MAAM,uBAAuB,GAAG,GAAG,EAAE;IAC1C,IAAI,CAAC,yBAAS,CAAC,WAAW,CAAC,YAAY,EAAE;QACvC,OAAO;KACR;IACD,MAAM,EAAE,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,CAAC;IAC9C,MAAM,IAAI,GAAG,iCAAiB,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC/C,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC,CAAC;AAPW,QAAA,uBAAuB,2BAOlC;AAEK,MAAM,iCAAiC,GAAG,GAAG,EAAE;IACpD,IAAI,CAAC,yBAAS,CAAC,WAAW,CAAC,YAAY,EAAE;QACvC,OAAO;KACR;IACD,MAAM,EAAE,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,CAAC;IAC9C,MAAM,IAAI,GAAG,iCAAiB,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC/C,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;IACjC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC,CAAC;AARW,QAAA,iCAAiC,qCAQ5C;AAEK,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,IAAI,CAAC,yBAAS,CAAC,WAAW,CAAC,YAAY,EAAE;QACvC,OAAO;KACR;IACD,MAAM,EAAE,GAAG,yBAAS,CAAC,WAAW,CAAC,YAAY,CAAC;IAC9C,MAAM,IAAI,GAAG,iCAAiB,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC/C,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;IACjC,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;IACjC,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;AAC/B,CAAC,CAAC;AATW,QAAA,QAAQ,YASnB","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 { IModelConnection, ViewChangeOptions } from \"@itwin/core-frontend\";\nimport { EmphasizeElements, IModelApp } from \"@itwin/core-frontend\";\nimport type { FeatureAppearance } from \"@itwin/core-common\";\nimport { ColorDef, FeatureOverrideType } from \"@itwin/core-common\";\nimport type { InstanceKey } from \"@itwin/presentation-common\";\nimport { KeySet } from \"@itwin/presentation-common\";\nimport { HiliteSetProvider } from \"@itwin/presentation-frontend\";\n\nexport const isolateElementsByKeys = async (\n keySet: KeySet,\n replace = false,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return [];\n }\n\n const vp = IModelApp.viewManager.selectedView;\n\n const hiliteProvider: HiliteSetProvider = HiliteSetProvider.create({\n imodel: vp.iModel,\n });\n const set = await hiliteProvider.getHiliteSet(keySet);\n if (set.elements) {\n const ids = [...set.elements];\n isolateElements(ids, replace);\n return ids;\n }\n return [];\n};\n\nexport const isolateElementsByQuery = async (\n query: string,\n iModelConnection: IModelConnection,\n replace = false,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return [];\n }\n\n const vp = IModelApp.viewManager.selectedView;\n\n const keySet = await manufactureKeys(query, iModelConnection);\n const hiliteProvider: HiliteSetProvider = HiliteSetProvider.create({\n imodel: vp.iModel,\n });\n const set = await hiliteProvider.getHiliteSet(keySet);\n if (set.elements) {\n const ids = [...set.elements];\n isolateElements(ids, replace);\n return ids;\n }\n return [];\n};\n\nexport const isolateElements = (hilitedIds: string[], replace = false) => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n\n emph.isolateElements(hilitedIds, vp, replace);\n};\n\nexport const clearIsolatedElements = () => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n emph.clearIsolatedElements(vp);\n};\n\nexport const hideElements = (hilitedIds: string[], replace = false) => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n\n emph.hideElements(hilitedIds, vp, replace);\n};\n\nexport const clearHiddenElements = () => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n emph.clearHiddenElements(vp);\n};\n\nexport const overrideElementsByQuery = async (\n iModelConnection: IModelConnection,\n query: string,\n color: string,\n overrideType = FeatureOverrideType.ColorOnly,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return [];\n }\n\n const vp = IModelApp.viewManager.selectedView;\n\n const keySet = await manufactureKeys(query, iModelConnection);\n const hiliteProvider: HiliteSetProvider = HiliteSetProvider.create({\n imodel: vp.iModel,\n });\n const set = await hiliteProvider.getHiliteSet(keySet);\n if (set.elements) {\n const ids = [...set.elements];\n overrideElements(ids, color, overrideType);\n return ids;\n }\n return [];\n};\n\nexport const overrideElements = (\n hilitedIds: string[],\n color: string,\n overrideType = FeatureOverrideType.ColorOnly,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n\n emph.overrideElements(\n hilitedIds,\n vp,\n ColorDef.fromString(color),\n overrideType,\n true,\n );\n};\n\nexport const clearOverriddenElements = () => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n emph.clearOverriddenElements(vp);\n};\n\nexport const emphasizeElements = (\n hilitedIds: string[],\n defaultAppearance: FeatureAppearance | undefined = undefined,\n replace = false,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n\n emph.wantEmphasis = true;\n emph.emphasizeElements(hilitedIds, vp, defaultAppearance, replace);\n};\n\nexport const emphasisElementsByQuery = async (\n iModelConnection: IModelConnection,\n query: string,\n defaultAppearance: FeatureAppearance | undefined = undefined,\n replace = false,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return [];\n }\n\n const vp = IModelApp.viewManager.selectedView;\n\n const keySet = await manufactureKeys(query, iModelConnection);\n const hiliteProvider: HiliteSetProvider = HiliteSetProvider.create({\n imodel: vp.iModel,\n });\n const set = await hiliteProvider.getHiliteSet(keySet);\n if (set.elements) {\n const ids = [...set.elements];\n emphasizeElements(ids, defaultAppearance, replace);\n return ids;\n }\n return [];\n};\n\nexport const emphasizeElementsByKeys = async (\n keySet: KeySet,\n defaultAppearance: FeatureAppearance | undefined = undefined,\n replace = false,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return [];\n }\n\n const vp = IModelApp.viewManager.selectedView;\n\n const hiliteProvider: HiliteSetProvider = HiliteSetProvider.create({\n imodel: vp.iModel,\n });\n const set = await hiliteProvider.getHiliteSet(keySet);\n if (set.elements) {\n const ids = [...set.elements];\n emphasizeElements(ids, defaultAppearance, replace);\n return ids;\n }\n return [];\n};\n\nexport const visualizeElementsByQuery = async (\n query: string,\n color: string,\n iModelConnection: IModelConnection,\n replace = false,\n wantEmphasis = true,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return [];\n }\n\n const vp = IModelApp.viewManager.selectedView;\n\n const keySet = await manufactureKeys(query, iModelConnection);\n const hiliteProvider: HiliteSetProvider = HiliteSetProvider.create({\n imodel: vp.iModel,\n });\n const set = await hiliteProvider.getHiliteSet(keySet);\n if (set.elements) {\n const ids = [...set.elements];\n visualizeElements(ids, color, replace, wantEmphasis);\n return ids;\n }\n return [];\n};\n\nexport const visualizeElementsByKeys = async (\n keySet: KeySet,\n color: string,\n replace = false,\n wantEmphasis = true,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return [];\n }\n\n const vp = IModelApp.viewManager.selectedView;\n\n const hiliteProvider: HiliteSetProvider = HiliteSetProvider.create({\n imodel: vp.iModel,\n });\n const set = await hiliteProvider.getHiliteSet(keySet);\n if (set.elements) {\n const ids = [...set.elements];\n visualizeElements(ids, color, replace, wantEmphasis);\n return ids;\n }\n return [];\n};\n\nexport const visualizeElements = (\n elementIds: string[],\n color: string,\n replace = false,\n wantEmphasis = true,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n\n emph.overrideElements(\n elementIds,\n vp,\n ColorDef.fromString(color),\n FeatureOverrideType.ColorAndAlpha,\n true,\n );\n if (!wantEmphasis) {\n return;\n }\n emph.wantEmphasis = true;\n emph.emphasizeElements(elementIds, vp, undefined, replace);\n};\n\nexport const transparentOverriddenElements = () => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n const ids = emph.getOverriddenElements()?.values();\n if (ids) {\n const toOverride = new Set<string>();\n Array.from(ids).forEach((a) => a.forEach((id) => toOverride.add(id)));\n emph.overrideElements(\n toOverride,\n vp,\n ColorDef.red.withAlpha(50),\n FeatureOverrideType.AlphaOnly,\n true,\n );\n }\n};\n\nexport const zoomToElements = async (elementIds: string[]) => {\n if (!IModelApp.viewManager.selectedView || elementIds.length === 0) {\n return;\n }\n\n const vp = IModelApp.viewManager.selectedView;\n const viewChangeOpts: ViewChangeOptions = {};\n viewChangeOpts.animateFrustumChange = true;\n // It was removed. Should be a prop to be passed to lookAtViewAlignedVolume within the implementation.\n // viewChangeOpts.marginPercent = new MarginPercent(0.1, 0.1, 0.1, 0.1);\n await vp.zoomToElements(elementIds, { ...viewChangeOpts });\n};\n\nexport const getHiliteIds = async (\n query: string,\n iModelConnection: IModelConnection,\n) => {\n if (!IModelApp.viewManager.selectedView) {\n return ({ keySet: new KeySet(), ids: [] });\n }\n\n const vp = IModelApp.viewManager.selectedView;\n\n const keySet = await manufactureKeys(query, iModelConnection);\n const hiliteProvider: HiliteSetProvider = HiliteSetProvider.create({\n imodel: vp.iModel,\n });\n const set = await hiliteProvider.getHiliteSet(keySet);\n if (set.elements) {\n return { keySet, ids: [...set.elements] };\n }\n return ({ keySet: new KeySet(), ids: [] });\n};\n\nexport const manufactureKeys = async (\n query: string,\n iModelConnection: IModelConnection,\n): Promise<KeySet> => {\n if (query === \"\") {\n return new KeySet();\n }\n const queryWithIdAndECClassName = `SELECT q.ECInstanceId, ec_classname(e.ECClassId) FROM (${query}) q JOIN BisCore.Element e on e.ECInstanceId = q.ECInstanceId`;\n const keys: InstanceKey[] = [];\n\n for await (const row of iModelConnection.createQueryReader(queryWithIdAndECClassName)) {\n keys.push({ id: row[0], className: row[1] });\n }\n\n return new KeySet(keys);\n};\n\nexport const clearEmphasizedElements = () => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n emph.clearEmphasizedElements(vp);\n};\n\nexport const clearEmphasizedOverriddenElements = () => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n emph.clearEmphasizedElements(vp);\n emph.clearOverriddenElements(vp);\n};\n\nexport const clearAll = () => {\n if (!IModelApp.viewManager.selectedView) {\n return;\n }\n const vp = IModelApp.viewManager.selectedView;\n const emph = EmphasizeElements.getOrCreate(vp);\n emph.clearEmphasizedElements(vp);\n emph.clearOverriddenElements(vp);\n emph.clearHiddenElements(vp);\n};\n"]}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useCombinedFetchRefresh = exports.useRefreshData = exports.useFetchData = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const react_1 = require("react");
9
- const utils_1 = require("../components/utils");
10
- const fetchData = async (setData, fetchFunc, setIsLoading) => {
11
- try {
12
- setIsLoading(true);
13
- const data = await fetchFunc();
14
- setData(data ?? []);
15
- }
16
- catch (error) {
17
- (0, utils_1.handleError)(error.status);
18
- }
19
- finally {
20
- setIsLoading(false);
21
- }
22
- };
23
- const useFetchData = (fetchFunc, setData, setIsLoading) => {
24
- (0, react_1.useEffect)(() => {
25
- void fetchData(setData, fetchFunc, setIsLoading);
26
- }, [fetchFunc, setData, setIsLoading]);
27
- };
28
- exports.useFetchData = useFetchData;
29
- const useRefreshData = (setData, fetchFunc, setIsLoading) => {
30
- return (0, react_1.useCallback)(async () => {
31
- setData([]);
32
- await fetchData(setData, fetchFunc, setIsLoading);
33
- }, [setData, fetchFunc, setIsLoading]);
34
- };
35
- exports.useRefreshData = useRefreshData;
36
- const useCombinedFetchRefresh = (fetchFunc, setData) => {
37
- const [isLoading, setIsLoading] = (0, react_1.useState)(true);
38
- (0, exports.useFetchData)(fetchFunc, setData, setIsLoading);
39
- const refreshData = (0, exports.useRefreshData)(setData, fetchFunc, setIsLoading);
40
- return { isLoading, refreshData };
41
- };
42
- exports.useCombinedFetchRefresh = useCombinedFetchRefresh;
43
- //# sourceMappingURL=useFetchData.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFetchData.js","sourceRoot":"","sources":["../../../../src/widget/hooks/useFetchData.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,iCAAyD;AACzD,+CAAkD;AAElD,MAAM,SAAS,GAAG,KAAK,EACrB,OAA4B,EAC5B,SAAyC,EACzC,YAA0C,EAC1C,EAAE;IACF,IAAI;QACF,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,MAAM,IAAI,GAAG,MAAM,SAAS,EAAE,CAAC;QAC/B,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;KACrB;IAAC,OAAO,KAAU,EAAE;QACnB,IAAA,mBAAW,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KAC3B;YAAS;QACR,YAAY,CAAC,KAAK,CAAC,CAAC;KACrB;AACH,CAAC,CAAC;AAEK,MAAM,YAAY,GAAG,CAC1B,SAAyC,EACzC,OAA4B,EAC5B,YAA0C,EAC1C,EAAE;IAEF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,KAAK,SAAS,CACZ,OAAO,EACP,SAAS,EACT,YAAY,CACb,CAAC;IACJ,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;AACzC,CAAC,CAAC;AAbW,QAAA,YAAY,gBAavB;AAEK,MAAM,cAAc,GAAG,CAC5B,OAA4B,EAC5B,SAAyC,EACzC,YAA0C,EACrB,EAAE;IACvB,OAAO,IAAA,mBAAW,EAAC,KAAK,IAAI,EAAE;QAC5B,OAAO,CAAC,EAAE,CAAC,CAAC;QACZ,MAAM,SAAS,CACb,OAAO,EACP,SAAS,EACT,YAAY,CACb,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;AACzC,CAAC,CAAC;AAbW,QAAA,cAAc,kBAazB;AAEK,MAAM,uBAAuB,GAAG,CAAI,SAAyC,EAAE,OAA4B,EAAE,EAAE;IACpH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAU,IAAI,CAAC,CAAC;IAC1D,IAAA,oBAAY,EAAC,SAAS,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,IAAA,sBAAc,EAAC,OAAO,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;IACrE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;AACpC,CAAC,CAAC;AALW,QAAA,uBAAuB,2BAKlC","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 { useCallback, useEffect, useState } from \"react\";\nimport { handleError } from \"../components/utils\";\n\nconst fetchData = async<T>(\n setData: (data: T[]) => void,\n fetchFunc: () => Promise<T[] | undefined>,\n setIsLoading: (isLoading: boolean) => void,\n) => {\n try {\n setIsLoading(true);\n const data = await fetchFunc();\n setData(data ?? []);\n } catch (error: any) {\n handleError(error.status);\n } finally {\n setIsLoading(false);\n }\n};\n\nexport const useFetchData = <T>(\n fetchFunc: () => Promise<T[] | undefined>,\n setData: (data: T[]) => void,\n setIsLoading: (isLoading: boolean) => void,\n) => {\n\n useEffect(() => {\n void fetchData(\n setData,\n fetchFunc,\n setIsLoading,\n );\n }, [fetchFunc, setData, setIsLoading]);\n};\n\nexport const useRefreshData = <T>(\n setData: (data: T[]) => void,\n fetchFunc: () => Promise<T[] | undefined>,\n setIsLoading: (isLoading: boolean) => void,\n): () => Promise<void> => {\n return useCallback(async () => {\n setData([]);\n await fetchData(\n setData,\n fetchFunc,\n setIsLoading,\n );\n }, [setData, fetchFunc, setIsLoading]);\n};\n\nexport const useCombinedFetchRefresh = <T>(fetchFunc: () => Promise<T[] | undefined>, setData: (data: T[]) => void) => {\n const [isLoading, setIsLoading] = useState<boolean>(true);\n useFetchData(fetchFunc, setData, setIsLoading);\n const refreshData = useRefreshData(setData, fetchFunc, setIsLoading);\n return { isLoading, refreshData };\n};\n"]}
@@ -1,6 +0,0 @@
1
- import type { PropertyMap } from "../../formula/Types";
2
- export declare function useFormulaValidation(formulaName: string, formula: string, properties: PropertyMap, setFormulaErrorMessage: (s: string) => void): {
3
- isValid: boolean;
4
- forceValidation: () => boolean;
5
- };
6
- //# sourceMappingURL=useFormulaValidation.d.ts.map
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useFormulaValidation = void 0;
4
- /*---------------------------------------------------------------------------------------------
5
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
6
- * See LICENSE.md in the project root for license terms and full copyright notice.
7
- *--------------------------------------------------------------------------------------------*/
8
- const react_1 = require("react");
9
- const FormulaDataTypeResolver_1 = require("../../formula/FormulaDataTypeResolver");
10
- const utils_1 = require("../utils");
11
- function validate(formulaName, formula, properties, setFormulaErrorMessage, setIsValid) {
12
- if (!formula) {
13
- setFormulaErrorMessage("");
14
- setIsValid(false);
15
- return false;
16
- }
17
- const error = (0, FormulaDataTypeResolver_1.resolveFormulaDataType)(formulaName, formula, properties).errorMessage ?? "";
18
- setFormulaErrorMessage(error);
19
- setIsValid(!error);
20
- return !error;
21
- }
22
- const debouncedValidationFunc = (0, utils_1.debounce)(validate, 5000);
23
- function useFormulaValidation(formulaName, formula, properties, setFormulaErrorMessage) {
24
- const [isValid, setIsValid] = (0, react_1.useState)(false);
25
- (0, react_1.useEffect)(() => debouncedValidationFunc(formulaName, formula, properties, setFormulaErrorMessage, setIsValid), [formulaName, formula, properties, setFormulaErrorMessage]);
26
- return { isValid, forceValidation: () => validate(formulaName, formula, properties, setFormulaErrorMessage, setIsValid) };
27
- }
28
- exports.useFormulaValidation = useFormulaValidation;
29
- //# sourceMappingURL=useFormulaValidation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFormulaValidation.js","sourceRoot":"","sources":["../../../../src/widget/hooks/useFormulaValidation.ts"],"names":[],"mappings":";;;AAAA;;;+FAG+F;AAC/F,iCAA4C;AAC5C,mFAA+E;AAE/E,oCAAoC;AAEpC,SAAS,QAAQ,CAAC,WAAmB,EAAE,OAAe,EAAE,UAAuB,EAAE,sBAA2C,EAAE,UAAgC;IAC5J,IAAI,CAAC,OAAO,EAAE;QACZ,sBAAsB,CAAC,EAAE,CAAC,CAAC;QAC3B,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,OAAO,KAAK,CAAC;KACd;IAED,MAAM,KAAK,GAAG,IAAA,gDAAsB,EAAC,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,YAAY,IAAI,EAAE,CAAC;IAC1F,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAC9B,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC;IACnB,OAAO,CAAC,KAAK,CAAC;AAChB,CAAC;AAED,MAAM,uBAAuB,GAAG,IAAA,gBAAQ,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAEzD,SAAgB,oBAAoB,CAAC,WAAmB,EAAE,OAAe,EAAE,UAAuB,EAAE,sBAA2C;IAC7I,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC9C,IAAA,iBAAS,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,UAAU,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,sBAAsB,CAAC,CAAC,CAAC;IAC3K,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,UAAU,CAAC,EAAE,CAAC;AAC5H,CAAC;AAJD,oDAIC","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 { useEffect, useState } from \"react\";\nimport { resolveFormulaDataType } from \"../../formula/FormulaDataTypeResolver\";\nimport type { PropertyMap } from \"../../formula/Types\";\nimport { debounce } from \"../utils\";\n\nfunction validate(formulaName: string, formula: string, properties: PropertyMap, setFormulaErrorMessage: (s: string) => void, setIsValid: (b: boolean) => void): boolean {\n if (!formula) {\n setFormulaErrorMessage(\"\");\n setIsValid(false);\n return false;\n }\n\n const error = resolveFormulaDataType(formulaName, formula, properties).errorMessage ?? \"\";\n setFormulaErrorMessage(error);\n setIsValid(!error);\n return !error;\n}\n\nconst debouncedValidationFunc = debounce(validate, 5000);\n\nexport function useFormulaValidation(formulaName: string, formula: string, properties: PropertyMap, setFormulaErrorMessage: (s: string) => void) {\n const [isValid, setIsValid] = useState(false);\n useEffect(() => debouncedValidationFunc(formulaName, formula, properties, setFormulaErrorMessage, setIsValid), [formulaName, formula, properties, setFormulaErrorMessage]);\n return { isValid, forceValidation: () => validate(formulaName, formula, properties, setFormulaErrorMessage, setIsValid) };\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useValidator.js","sourceRoot":"","sources":["../../../../src/widget/hooks/useValidator.ts"],"names":[],"mappings":";;;;;;AAAA;;;+FAG+F;AAC/F,iCAAiC;AACjC,oFAA0D;AAE7C,QAAA,UAAU,GAAG;IACxB,qBAAqB,EAAE;QACrB,OAAO,EAAE,sBAAsB;QAC/B,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE;YACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC;KACF;IACD,gCAAgC,EAAE;QAChC,OAAO,EAAE,kDAAkD;QAC3D,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE;YACpB,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;YACrD,OAAO,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChC,CAAC;KACF;IACD,qCAAqC,EAAE;QACrC,OAAO,EAAE,uDAAuD;QAChE,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE;YACpB,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,gDAAgD,CAAC,CAAC;YAClF,OAAO,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChC,CAAC;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,kCAAkC;QAC3C,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE;YACpB,OAAO,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC;QAC3B,CAAC;KACF;CACF,CAAC;AAEW,QAAA,iBAAiB,GAC5B,iHAAiH,CAAC;AAEvG,QAAA,QAAQ,GAAG,EAAE,QAAQ,EAAE,yBAAyB,EAAE,CAAC;AAEhE,MAAM,YAAY,GAAG,CACnB,aAAa,GAAG,gBAAQ,EACxB,eAAe,GAAG,kBAAU,EAC2C,EAAE;IACzE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACxC,MAAM,SAAS,GAAG,IAAI,gCAAoB,CAAC;QACzC,QAAQ,EAAE,aAAa;QACvB,UAAU,EAAE,eAAe;KAC5B,CAAC,CAAC;IAEH,IAAI,IAAI,EAAE;QACR,SAAS,CAAC,YAAY,EAAE,CAAC;KAC1B;IAED,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF,kBAAe,YAAY,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 { useState } from \"react\";\nimport SimpleReactValidator from \"simple-react-validator\";\n\nexport const Validators = {\n NoDuplicateUnderscore: {\n message: 'Remove duplicate \"_\"',\n rule: (val: string) => {\n return !val.match(/__+/i);\n },\n },\n OnlyBeginsWithLetterOrUnderscore: {\n message: \"Name can only start with a letter or underscore.\",\n rule: (val: string) => {\n const regexPattern = new RegExp(/^[\\p{L}\\p{Nl}_]+/u);\n return regexPattern.test(val);\n },\n },\n FollowedByLettersUnderscoresAndDigits: {\n message: \"Name can only contain letters, underscores, or digits\",\n rule: (val: string) => {\n const regexPattern = new RegExp(/[\\p{L}\\p{Nl}\\p{Nd}\\p{Mn}\\p{Mc}\\p{Pc}\\p{Cf}]+$/u);\n return regexPattern.test(val);\n },\n },\n CharLimit: {\n message: \"There is an 128 character limit.\",\n rule: (val: string) => {\n return val.length <= 128;\n },\n },\n};\n\nexport const NAME_REQUIREMENTS =\n \"required|NoDuplicateUnderscore|OnlyBeginsWithLetterOrUnderscore|FollowedByLettersUnderscoresAndDigits|CharLimit\";\n\nexport const Messages = { required: \"This field is required.\" };\n\nconst useValidator = (\n customMessage = Messages,\n customValidator = Validators,\n): [SimpleReactValidator, React.Dispatch<React.SetStateAction<boolean>>] => {\n const [show, setShow] = useState(false);\n const validator = new SimpleReactValidator({\n messages: customMessage,\n validators: customValidator,\n });\n\n if (show) {\n validator.showMessages();\n }\n\n return [validator, setShow];\n};\n\nexport default useValidator;\n"]}
@@ -1,68 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useVisualization = void 0;
4
- const itwinui_react_1 = require("@itwin/itwinui-react");
5
- const presentation_frontend_1 = require("@itwin/presentation-frontend");
6
- const react_1 = require("react");
7
- const GroupHilitedElementsContext_1 = require("../components/context/GroupHilitedElementsContext");
8
- const groupsHelpers_1 = require("../components/groupsHelpers");
9
- const viewerUtils_1 = require("../components/viewerUtils");
10
- const useVisualization = (shouldVisualize, iModelConnection, query, queryGenerationType) => {
11
- const [isRendering, setIsRendering] = (0, react_1.useState)(false);
12
- const { showGroupColor, groups, hiddenGroupsIds, hilitedElementsQueryCache, setNumberOfVisualizedGroups } = (0, GroupHilitedElementsContext_1.useGroupHilitedElementsContext)();
13
- const [simpleSelectionQuery, setSimpleSelectionQuery] = (0, react_1.useState)("");
14
- const resetView = (0, react_1.useCallback)(async () => {
15
- if (!shouldVisualize)
16
- return;
17
- if (showGroupColor) {
18
- await (0, groupsHelpers_1.visualizeGroupColors)(iModelConnection, groups, hiddenGroupsIds, hilitedElementsQueryCache, setNumberOfVisualizedGroups);
19
- }
20
- else {
21
- (0, viewerUtils_1.clearOverriddenElements)();
22
- }
23
- (0, viewerUtils_1.clearEmphasizedElements)();
24
- }, [groups, hiddenGroupsIds, hilitedElementsQueryCache, iModelConnection, showGroupColor, shouldVisualize, setNumberOfVisualizedGroups]);
25
- (0, react_1.useEffect)(() => {
26
- if (!shouldVisualize)
27
- return;
28
- const removeListener = presentation_frontend_1.Presentation.selection.selectionChange.addListener(async (evt, selectionProvider) => {
29
- if (queryGenerationType === "Selection") {
30
- const selection = selectionProvider.getSelection(evt.imodel, evt.level);
31
- const query = selection.instanceKeys.size > 0
32
- ? `SELECT ECInstanceId FROM ${selection.instanceKeys.keys().next().value}`
33
- : "";
34
- setSimpleSelectionQuery(query);
35
- }
36
- });
37
- return removeListener;
38
- }, [iModelConnection, queryGenerationType, shouldVisualize]);
39
- (0, react_1.useEffect)(() => {
40
- if (!shouldVisualize)
41
- return;
42
- const reemphasize = async () => {
43
- try {
44
- if (!query || query === "") {
45
- return;
46
- }
47
- setIsRendering(true);
48
- (0, viewerUtils_1.transparentOverriddenElements)();
49
- const resolvedHiliteIds = await (0, viewerUtils_1.visualizeElementsByQuery)(query, "red", iModelConnection);
50
- await (0, viewerUtils_1.zoomToElements)(resolvedHiliteIds);
51
- }
52
- catch {
53
- itwinui_react_1.toaster.negative("Sorry, we have failed to generate a valid query. 😔");
54
- }
55
- finally {
56
- setIsRendering(false);
57
- }
58
- };
59
- void reemphasize();
60
- }, [iModelConnection, query, shouldVisualize]);
61
- const clearPresentationSelection = (0, react_1.useCallback)(() => shouldVisualize && presentation_frontend_1.Presentation.selection.clearSelection("GroupingMappingWidget", iModelConnection), [iModelConnection, shouldVisualize]);
62
- (0, react_1.useEffect)(() => {
63
- clearPresentationSelection();
64
- }, [clearPresentationSelection, iModelConnection]);
65
- return { isRendering, setIsRendering, simpleSelectionQuery, setSimpleSelectionQuery, clearPresentationSelection, resetView };
66
- };
67
- exports.useVisualization = useVisualization;
68
- //# sourceMappingURL=useVisualization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useVisualization.js","sourceRoot":"","sources":["../../../../src/widget/hooks/useVisualization.ts"],"names":[],"mappings":";;;AAKA,wDAA+C;AAE/C,wEAA4D;AAC5D,iCAAyD;AACzD,mGAAmG;AAC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b,0BAA0B,EAAE,CAAC;IAC/B,CAAC,EAAE,CAAC,0BAA0B,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAEnD,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,SAAS,EAAE,CAAC;AAE/H,CAAC,CAAC;AA1EW,QAAA,gBAAgB,oBA0E3B","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 { IModelConnection } from \"@itwin/core-frontend\";\nimport { toaster } from \"@itwin/itwinui-react\";\nimport type { ISelectionProvider, SelectionChangeEventArgs } from \"@itwin/presentation-frontend\";\nimport { Presentation } from \"@itwin/presentation-frontend\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { useGroupHilitedElementsContext } from \"../components/context/GroupHilitedElementsContext\";\nimport { visualizeGroupColors } from \"../components/groupsHelpers\";\nimport { clearEmphasizedElements, clearOverriddenElements, transparentOverriddenElements, visualizeElementsByQuery, zoomToElements } from \"../components/viewerUtils\";\n\nexport const useVisualization = (shouldVisualize: boolean, iModelConnection: IModelConnection, query: string, queryGenerationType: string) => {\n const [isRendering, setIsRendering] = useState<boolean>(false);\n const { showGroupColor, groups, hiddenGroupsIds, hilitedElementsQueryCache, setNumberOfVisualizedGroups } = useGroupHilitedElementsContext();\n const [simpleSelectionQuery, setSimpleSelectionQuery] = useState<string>(\"\");\n\n const resetView = useCallback(async () => {\n if (!shouldVisualize) return;\n if (showGroupColor) {\n await visualizeGroupColors(iModelConnection, groups, hiddenGroupsIds, hilitedElementsQueryCache, setNumberOfVisualizedGroups);\n } else {\n clearOverriddenElements();\n }\n clearEmphasizedElements();\n }, [groups, hiddenGroupsIds, hilitedElementsQueryCache, iModelConnection, showGroupColor, shouldVisualize,setNumberOfVisualizedGroups]);\n\n useEffect(() => {\n if (!shouldVisualize) return;\n const removeListener = Presentation.selection.selectionChange.addListener(\n async (\n evt: SelectionChangeEventArgs,\n selectionProvider: ISelectionProvider,\n ) => {\n if (queryGenerationType === \"Selection\") {\n const selection = selectionProvider.getSelection(\n evt.imodel,\n evt.level,\n );\n const query = selection.instanceKeys.size > 0\n ? `SELECT ECInstanceId FROM ${selection.instanceKeys.keys().next().value}`\n : \"\";\n setSimpleSelectionQuery(query);\n }\n },\n );\n return removeListener;\n }, [iModelConnection, queryGenerationType, shouldVisualize]);\n\n useEffect(() => {\n if (!shouldVisualize) return;\n const reemphasize = async () => {\n try {\n if (!query || query === \"\") {\n return;\n }\n setIsRendering(true);\n transparentOverriddenElements();\n const resolvedHiliteIds = await visualizeElementsByQuery(\n query,\n \"red\",\n iModelConnection,\n );\n await zoomToElements(resolvedHiliteIds);\n } catch {\n toaster.negative(\"Sorry, we have failed to generate a valid query. 😔\");\n } finally {\n setIsRendering(false);\n }\n };\n\n void reemphasize();\n }, [iModelConnection, query, shouldVisualize]);\n\n const clearPresentationSelection = useCallback(() =>\n shouldVisualize && Presentation.selection.clearSelection(\n \"GroupingMappingWidget\",\n iModelConnection,\n ), [iModelConnection, shouldVisualize]);\n\n useEffect(() => {\n clearPresentationSelection();\n }, [clearPresentationSelection, iModelConnection]);\n\n return { isRendering, setIsRendering, simpleSelectionQuery, setSimpleSelectionQuery, clearPresentationSelection, resetView };\n\n};\n"]}
@@ -1,5 +0,0 @@
1
- export declare type CreateTypeFromInterface<Interface> = {
2
- [Property in keyof Interface]: Interface[Property];
3
- };
4
- export declare function debounce<F extends (...args: any[]) => void>(f: F, delay: number): (...args: any[]) => void;
5
- //# sourceMappingURL=utils.d.ts.map
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.debounce = void 0;
4
- function debounce(f, delay) {
5
- let timer;
6
- return (...args) => {
7
- timer && window.clearTimeout(timer);
8
- timer = window.setTimeout(f, delay, ...args);
9
- };
10
- }
11
- exports.debounce = debounce;
12
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/widget/utils.ts"],"names":[],"mappings":";;;AAQA,SAAgB,QAAQ,CAAqC,CAAI,EAAE,KAAa;IAC9E,IAAI,KAAyB,CAAC;IAC9B,OAAO,CAAC,GAAG,IAAW,EAAE,EAAE;QACxB,KAAK,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACpC,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;IAC/C,CAAC,CAAC;AACJ,CAAC;AAND,4BAMC","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*--------------------------------------------------------------------------------------------*/\nexport type CreateTypeFromInterface<Interface> = {\n [Property in keyof Interface]: Interface[Property];\n};\n\nexport function debounce<F extends (...args: any[]) => void>(f: F, delay: number) {\n let timer: number | undefined;\n return (...args: any[]) => {\n timer && window.clearTimeout(timer);\n timer = window.setTimeout(f, delay, ...args);\n };\n}\n"]}
@@ -1,10 +0,0 @@
1
- import type { UiItemsProvider, Widget } from "@itwin/appui-react";
2
- import { StagePanelLocation, StagePanelSection } from "@itwin/appui-react";
3
- import type { GroupingMappingProps } from "./components/GroupingMapping";
4
- export declare class GroupingMappingProvider implements UiItemsProvider {
5
- private readonly _props;
6
- readonly id = "GroupingMappingProvider";
7
- constructor(_props?: GroupingMappingProps);
8
- provideWidgets(_stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection): ReadonlyArray<Widget>;
9
- }
10
- //# sourceMappingURL=GroupingMappingWidget.d.ts.map
@@ -1,24 +0,0 @@
1
- import { StagePanelLocation, StagePanelSection, StageUsage, } from "@itwin/appui-react";
2
- import React from "react";
3
- import GroupingMapping from "./components/GroupingMapping";
4
- export class GroupingMappingProvider {
5
- constructor(_props = {}) {
6
- this._props = _props;
7
- this.id = "GroupingMappingProvider";
8
- }
9
- provideWidgets(_stageId, stageUsage, location, section) {
10
- const widgets = [];
11
- if (location === StagePanelLocation.Left &&
12
- section === StagePanelSection.Start &&
13
- stageUsage === StageUsage.General) {
14
- const GroupingMappingWidget = {
15
- id: "GroupingMappingWidget",
16
- label: "Grouping & Mapping",
17
- content: React.createElement(GroupingMapping, { ...this._props }),
18
- };
19
- widgets.push(GroupingMappingWidget);
20
- }
21
- return widgets;
22
- }
23
- }
24
- //# sourceMappingURL=GroupingMappingWidget.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupingMappingWidget.js","sourceRoot":"","sources":["../../../src/widget/GroupingMappingWidget.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,GACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAE3D,MAAM,OAAO,uBAAuB;IAGlC,YAA6B,SAA+B,EAAE;QAAjC,WAAM,GAAN,MAAM,CAA2B;QAF9C,OAAE,GAAG,yBAAyB,CAAC;IAEmB,CAAC;IAE5D,cAAc,CACnB,QAAgB,EAChB,UAAkB,EAClB,QAA4B,EAC5B,OAA2B;QAE3B,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,IAAI,QAAQ,KAAK,kBAAkB,CAAC,IAAI;YACpC,OAAO,KAAK,iBAAiB,CAAC,KAAK;YACnC,UAAU,KAAK,UAAU,CAAC,OAAO,EACnC;YACA,MAAM,qBAAqB,GAAW;gBACpC,EAAE,EAAE,uBAAuB;gBAC3B,KAAK,EAAE,oBAAoB;gBAC3B,OAAO,EAAE,oBAAC,eAAe,OAAK,IAAI,CAAC,MAAM,GAAI;aAC9C,CAAC;YAEF,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;SACrC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF","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 {\n UiItemsProvider,\n Widget,\n} from \"@itwin/appui-react\";\nimport {\n StagePanelLocation,\n StagePanelSection,\n StageUsage,\n} from \"@itwin/appui-react\";\nimport React from \"react\";\nimport type { GroupingMappingProps } from \"./components/GroupingMapping\";\nimport GroupingMapping from \"./components/GroupingMapping\";\n\nexport class GroupingMappingProvider implements UiItemsProvider {\n public readonly id = \"GroupingMappingProvider\";\n\n constructor(private readonly _props: GroupingMappingProps = {}) { }\n\n public provideWidgets(\n _stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n section?: StagePanelSection,\n ): ReadonlyArray<Widget> {\n const widgets: Widget[] = [];\n if (location === StagePanelLocation.Left &&\n section === StagePanelSection.Start &&\n stageUsage === StageUsage.General\n ) {\n const GroupingMappingWidget: Widget = {\n id: \"GroupingMappingWidget\",\n label: \"Grouping & Mapping\",\n content: <GroupingMapping {...this._props} />,\n };\n\n widgets.push(GroupingMappingWidget);\n }\n\n return widgets;\n }\n}\n"]}
@@ -1,18 +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 { Button } from "@itwin/itwinui-react";
6
- import * as React from "react";
7
- import "./ActionPanel.scss";
8
- import { LoadingSpinner } from "./utils";
9
- const ActionPanel = ({ onSave, onCancel, isCancelDisabled = false, isSavingDisabled = false, isLoading = false, }) => {
10
- return (React.createElement("div", { id: 'action', className: 'gmw-action-panel-container' },
11
- React.createElement("div", { className: 'gmw-action-panel' },
12
- isLoading &&
13
- React.createElement(LoadingSpinner, null),
14
- React.createElement(Button, { disabled: isSavingDisabled || isLoading, styleType: 'high-visibility', id: 'save-app', onClick: onSave }, "Save"),
15
- onCancel && React.createElement(Button, { styleType: 'default', type: 'button', id: 'cancel', onClick: onCancel, disabled: isCancelDisabled || isLoading }, "Cancel"))));
16
- };
17
- export default ActionPanel;
18
- //# sourceMappingURL=ActionPanel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionPanel.js","sourceRoot":"","sources":["../../../../src/widget/components/ActionPanel.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAUzC,MAAM,WAAW,GAAG,CAAC,EACnB,MAAM,EACN,QAAQ,EACR,gBAAgB,GAAG,KAAK,EACxB,gBAAgB,GAAG,KAAK,EACxB,SAAS,GAAG,KAAK,GACA,EAAe,EAAE;IAClC,OAAO,CACL,6BAAK,EAAE,EAAC,QAAQ,EAAC,SAAS,EAAC,4BAA4B;QACrD,6BAAK,SAAS,EAAC,kBAAkB;YAC9B,SAAS;gBACR,oBAAC,cAAc,OAAG;YAEpB,oBAAC,MAAM,IACL,QAAQ,EAAE,gBAAgB,IAAI,SAAS,EACvC,SAAS,EAAC,iBAAiB,EAC3B,EAAE,EAAC,UAAU,EACb,OAAO,EAAE,MAAM,WAGR;YACR,QAAQ,IAAI,oBAAC,MAAM,IAClB,SAAS,EAAC,SAAS,EACnB,IAAI,EAAC,QAAQ,EACb,EAAE,EAAC,QAAQ,EACX,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,gBAAgB,IAAI,SAAS,aAGhC,CACL,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,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 { Button } from \"@itwin/itwinui-react\";\nimport * as React from \"react\";\nimport \"./ActionPanel.scss\";\nimport { LoadingSpinner } from \"./utils\";\n\nexport interface ActionPanelProps {\n onSave: () => void;\n onCancel?: () => void;\n isCancelDisabled?: boolean;\n isSavingDisabled?: boolean;\n isLoading?: boolean;\n}\n\nconst ActionPanel = ({\n onSave,\n onCancel,\n isCancelDisabled = false,\n isSavingDisabled = false,\n isLoading = false,\n}: ActionPanelProps): JSX.Element => {\n return (\n <div id='action' className='gmw-action-panel-container'>\n <div className='gmw-action-panel'>\n {isLoading &&\n <LoadingSpinner />\n }\n <Button\n disabled={isSavingDisabled || isLoading}\n styleType='high-visibility'\n id='save-app'\n onClick={onSave}\n >\n Save\n </Button>\n {onCancel && <Button\n styleType='default'\n type='button'\n id='cancel'\n onClick={onCancel}\n disabled={isCancelDisabled || isLoading}\n >\n Cancel\n </Button>}\n </div>\n </div>\n );\n};\n\nexport default ActionPanel;\n"]}