@itwin/grouping-mapping-widget 0.19.2 → 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectITwin.js","sourceRoot":"","sources":["../../../../../src/components/Mappings/Import/SelectITwin.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIpD,MAAM,qBAAqB,G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EAAE,EAAE;gBACrB,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAG,CAAC,CAAC;YAC7B,CAAC,EACD,iBAAiB,EAAE,SAAS,GAC5B;QACF,6BAAK,SAAS,EAAC,yBAAyB;YACtC,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,aAAiB,CACtC,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 type { ITwin, ITwinsAccessClient, ITwinsAPIResponse } from \"@itwin/itwins-client\";\nimport { ITwinSubClass } from \"@itwin/itwins-client\";\nimport { SvgCalendar, SvgList, SvgStarHollow } from \"@itwin/itwinui-icons-react\";\nimport type { TablePaginatorRendererProps } from \"@itwin/itwinui-react\";\nimport { Button, Tab, Table, tableFilters, TablePaginator, Tabs } from \"@itwin/itwinui-react\";\nimport React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport type { CreateTypeFromInterface } from \"../../../common/utils\";\nimport \"./SelectITwin.scss\";\nimport type { GetAccessTokenFn } from \"../../context/GroupingApiConfigContext\";\nimport { useGroupingMappingApiConfig } from \"../../context/GroupingApiConfigContext\";\nimport { useITwinsClient } from \"../../context/ITwinsClientContext\";\nimport { handleError } from \"../../../common/utils\";\n\ntype IITwinTyped = CreateTypeFromInterface<ITwin>;\n\nconst defaultDisplayStrings = {\n iTwins: \"iTwins\",\n iTwinNumber: \"Number\",\n iTwinName: \"Name\",\n iTwinStatus: \"Status\",\n};\n\nconst tabsWithIcons = [\n <Tab key=\"favorite\" label=\"Favorite iTwins\" startIcon={<SvgStarHollow />} />,\n <Tab key=\"recents\" label=\"Recent iTwins\" startIcon={<SvgCalendar />} />,\n <Tab key=\"all\" label=\"My iTwins\" startIcon={<SvgList />} />,\n];\n\nconst fetchITwins = async (\n setITwins: (iTwins: ITwin[]) => void,\n setIsLoading: (isLoading: boolean) => void,\n getAccessToken: GetAccessTokenFn,\n iTwinsClient: ITwinsAccessClient,\n iTwinType: number,\n) => {\n try {\n setITwins([]);\n setIsLoading(true);\n const accessToken = await getAccessToken();\n let iTwinsResponse: ITwinsAPIResponse<ITwin[]>;\n switch (iTwinType) {\n case 0:\n iTwinsResponse = await iTwinsClient.queryFavoritesAsync(accessToken, ITwinSubClass.Project);\n break;\n case 1:\n iTwinsResponse = await iTwinsClient.queryRecentsAsync(accessToken, ITwinSubClass.Project);\n break;\n default:\n iTwinsResponse = await iTwinsClient.queryAsync(accessToken, ITwinSubClass.Project);\n }\n setITwins(iTwinsResponse.data!);\n } catch (error: any) {\n handleError(error.status);\n } finally {\n setIsLoading(false);\n }\n};\n\ninterface SelectITwinProps {\n onSelect: (iTwinId: string) => void;\n onCancel: () => void;\n onChangeITwinType: (iTwinType: number) => void;\n displayStrings?: Partial<typeof defaultDisplayStrings>;\n defaultITwinType?: number;\n}\nconst SelectITwin = ({\n onSelect,\n onCancel,\n onChangeITwinType,\n displayStrings: userDisplayStrings,\n defaultITwinType = 0,\n}: SelectITwinProps) => {\n const { getAccessToken } = useGroupingMappingApiConfig();\n const iTwinsClient = useITwinsClient();\n const [isLoading, setIsLoading] = useState<boolean>(true);\n const [iTwins, setITwins] = useState<ITwin[]>([]);\n const [iTwinType, setITwinType] = useState<number>(defaultITwinType);\n\n useEffect(() => {\n void fetchITwins(setITwins, setIsLoading, getAccessToken, iTwinsClient, iTwinType);\n }, [getAccessToken, iTwinsClient, setIsLoading, iTwinType]);\n\n const displayStrings = React.useMemo(\n () => ({ ...defaultDisplayStrings, ...userDisplayStrings }),\n [userDisplayStrings]\n );\n\n const iTwinsColumns = useMemo(\n () => [\n {\n Header: \"Table\",\n columns: [\n {\n id: \"iTwinNumber\",\n Header: `${displayStrings.iTwinNumber}`,\n accessor: \"number\",\n Filter: tableFilters.TextFilter(),\n },\n {\n id: \"iTwinName\",\n Header: `${displayStrings.iTwinName}`,\n accessor: \"displayName\",\n Filter: tableFilters.TextFilter(),\n },\n {\n id: \"iTwinStatus\",\n Header: `${displayStrings.iTwinStatus}`,\n accessor: \"status\",\n Filter: tableFilters.TextFilter(),\n },\n ],\n },\n ],\n [displayStrings.iTwinNumber, displayStrings.iTwinName, displayStrings.iTwinStatus]\n );\n\n const pageSizeList = useMemo(() => [10, 25, 50], []);\n const paginator = useCallback(\n (props: TablePaginatorRendererProps) => (\n <TablePaginator {...props} pageSizeList={pageSizeList} />\n ),\n [pageSizeList]\n );\n\n return (\n <div className=\"gmw-select-itwin-table-container\">\n <Tabs\n orientation=\"horizontal\"\n labels={tabsWithIcons}\n onTabSelected={(type) => {\n onChangeITwinType(type);\n setITwinType(type);\n }}\n activeIndex={iTwinType}\n type={\"borderless\"}\n contentClassName=\"gmw-table-holding-tab\">\n </Tabs>\n <Table<IITwinTyped>\n data={iTwins}\n columns={iTwinsColumns}\n className='gmw-select-itwin-table'\n emptyTableContent={`No ${displayStrings.iTwins} available.`}\n isSortable\n isLoading={isLoading}\n onRowClick={(_, row) => {\n onSelect(row.original.id!);\n }}\n paginatorRenderer={paginator}\n />\n <div className=\"gmw-import-action-panel\">\n <Button onClick={onCancel}>Cancel</Button>\n </div>\n </div>\n );\n};\n\nexport default SelectITwin;\n"]}
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import type { IMappingTyped } from "../Mappings";
3
+ import "./SelectMapping.scss";
4
+ declare const defaultDisplayStrings: {
5
+ mappings: string;
6
+ };
7
+ interface SelectMappingsProps {
8
+ iModelId: string;
9
+ onSelect: (selectedMappings: IMappingTyped[]) => void;
10
+ onCancel: () => void;
11
+ backFn: () => void;
12
+ displayStrings?: Partial<typeof defaultDisplayStrings>;
13
+ }
14
+ declare const SelectMappings: ({ iModelId, onSelect, onCancel, backFn, displayStrings: userDisplayStrings, }: SelectMappingsProps) => JSX.Element;
15
+ export default SelectMappings;
16
+ //# sourceMappingURL=SelectMappings.d.ts.map
@@ -0,0 +1,67 @@
1
+ import { Button, Table, tableFilters, TablePaginator, } from "@itwin/itwinui-react";
2
+ import React, { useCallback, useEffect, useMemo, useState } from "react";
3
+ import { useMappingClient } from "../../context/MappingClientContext";
4
+ import "./SelectMapping.scss";
5
+ import { handleError } from "../../../common/utils";
6
+ import { useGroupingMappingApiConfig } from "../../context/GroupingApiConfigContext";
7
+ const defaultDisplayStrings = {
8
+ mappings: "Mappings",
9
+ };
10
+ const fetchMappings = async (setMappings, iModelId, setIsLoading, getAccessToken, mappingsClient) => {
11
+ try {
12
+ setIsLoading(true);
13
+ const accessToken = await getAccessToken();
14
+ const mappings = await mappingsClient.getMappings(accessToken, iModelId);
15
+ setMappings(mappings);
16
+ }
17
+ catch (error) {
18
+ handleError(error.status);
19
+ }
20
+ finally {
21
+ setIsLoading(false);
22
+ }
23
+ };
24
+ const SelectMappings = ({ iModelId, onSelect, onCancel, backFn, displayStrings: userDisplayStrings, }) => {
25
+ const { getAccessToken } = useGroupingMappingApiConfig();
26
+ const mappingClient = useMappingClient();
27
+ const [isLoading, setIsLoading] = useState(true);
28
+ const [selectedMappings, setSelectedMappings] = useState([]);
29
+ const [mappings, setMappings] = useState([]);
30
+ useEffect(() => {
31
+ void fetchMappings(setMappings, iModelId, setIsLoading, getAccessToken, mappingClient);
32
+ }, [getAccessToken, mappingClient, iModelId, setIsLoading]);
33
+ const displayStrings = React.useMemo(() => ({ ...defaultDisplayStrings, ...userDisplayStrings }), [userDisplayStrings]);
34
+ const mappingsColumns = useMemo(() => [
35
+ {
36
+ Header: "Table",
37
+ columns: [
38
+ {
39
+ id: "mappingName",
40
+ Header: `${displayStrings.mappings}`,
41
+ accessor: "mappingName",
42
+ Filter: tableFilters.TextFilter(),
43
+ },
44
+ {
45
+ id: "description",
46
+ Header: "Description",
47
+ accessor: "description",
48
+ Filter: tableFilters.TextFilter(),
49
+ },
50
+ ],
51
+ },
52
+ ], [displayStrings.mappings]);
53
+ const pageSizeList = useMemo(() => [10, 25, 50], []);
54
+ const paginator = useCallback((props) => (React.createElement(TablePaginator, { ...props, pageSizeList: pageSizeList })), [pageSizeList]);
55
+ return (React.createElement("div", { className: 'gmw-select-mapping-container' },
56
+ React.createElement(Table, { data: mappings, columns: mappingsColumns, className: 'gmw-select-mapping-table', emptyTableContent: `No ${displayStrings.mappings} available.`, isSortable: true, isSelectable: true, isLoading: isLoading, onSelect: (selectData) => {
57
+ selectData && setSelectedMappings(selectData);
58
+ }, paginatorRenderer: paginator }),
59
+ React.createElement("div", { className: 'gmw-import-action-panel' },
60
+ React.createElement(Button, { onClick: backFn }, "Back"),
61
+ React.createElement(Button, { styleType: 'high-visibility', onClick: () => {
62
+ onSelect(selectedMappings);
63
+ }, disabled: isLoading || selectedMappings.length === 0 }, "Next"),
64
+ React.createElement(Button, { onClick: onCancel }, "Cancel"))));
65
+ };
66
+ export default SelectMappings;
67
+ //# sourceMappingURL=SelectMappings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectMappings.js","sourceRoot":"","sources":["../../../../../src/components/Mappings/Import/SelectMappings.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,MAAM,EACN,KAAK,EACL,YAAY,EACZ,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAErF,MAAM,qBAAqB,GAAG;IAC5B,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,aAAa,GAAG,KAAK,EACzB,WAA4D,EAC5D,QAAgB,EAChB,YAA2D,EAC3D,cAAgC,EAChC,cAA+B,EA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iBAAiB,EAC3B,OAAO,EAAE,GAAG,EAAE;oBACZ,QAAQ,CAAC,gBAAgB,CAAC,CAAC;gBAC7B,CAAC,EACD,QAAQ,EAAE,SAAS,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,WAG7C;YACT,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,aAAiB,CACtC,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport type {\n TablePaginatorRendererProps,\n} from \"@itwin/itwinui-react\";\nimport {\n Button,\n Table,\n tableFilters,\n TablePaginator,\n} from \"@itwin/itwinui-react\";\nimport React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport type { IMappingsClient, Mapping } from \"@itwin/insights-client\";\nimport { useMappingClient } from \"../../context/MappingClientContext\";\nimport type { IMappingTyped } from \"../Mappings\";\nimport \"./SelectMapping.scss\";\nimport { handleError } from \"../../../common/utils\";\nimport type { GetAccessTokenFn } from \"../../context/GroupingApiConfigContext\";\nimport { useGroupingMappingApiConfig } from \"../../context/GroupingApiConfigContext\";\n\nconst defaultDisplayStrings = {\n mappings: \"Mappings\",\n};\n\nconst fetchMappings = async (\n setMappings: React.Dispatch<React.SetStateAction<Mapping[]>>,\n iModelId: string,\n setIsLoading: React.Dispatch<React.SetStateAction<boolean>>,\n getAccessToken: GetAccessTokenFn,\n mappingsClient: IMappingsClient\n) => {\n try {\n setIsLoading(true);\n const accessToken = await getAccessToken();\n const mappings = await mappingsClient.getMappings(accessToken, iModelId);\n setMappings(mappings);\n } catch (error: any) {\n handleError(error.status);\n } finally {\n setIsLoading(false);\n }\n};\n\ninterface SelectMappingsProps {\n iModelId: string;\n onSelect: (selectedMappings: IMappingTyped[]) => void;\n onCancel: () => void;\n backFn: () => void;\n displayStrings?: Partial<typeof defaultDisplayStrings>;\n}\n\nconst SelectMappings = ({\n iModelId,\n onSelect,\n onCancel,\n backFn,\n displayStrings: userDisplayStrings,\n}: SelectMappingsProps) => {\n const { getAccessToken } = useGroupingMappingApiConfig();\n const mappingClient = useMappingClient();\n const [isLoading, setIsLoading] = useState<boolean>(true);\n const [selectedMappings, setSelectedMappings] = useState<IMappingTyped[]>([]);\n const [mappings, setMappings] = useState<Mapping[]>([]);\n\n useEffect(() => {\n void fetchMappings(setMappings, iModelId, setIsLoading, getAccessToken, mappingClient);\n }, [getAccessToken, mappingClient, iModelId, setIsLoading]);\n\n const displayStrings = React.useMemo(\n () => ({ ...defaultDisplayStrings, ...userDisplayStrings }),\n [userDisplayStrings]\n );\n\n const mappingsColumns = useMemo(\n () => [\n {\n Header: \"Table\",\n columns: [\n {\n id: \"mappingName\",\n Header: `${displayStrings.mappings}`,\n accessor: \"mappingName\",\n Filter: tableFilters.TextFilter(),\n },\n {\n id: \"description\",\n Header: \"Description\",\n accessor: \"description\",\n Filter: tableFilters.TextFilter(),\n },\n ],\n },\n ],\n [displayStrings.mappings]\n );\n\n const pageSizeList = useMemo(() => [10, 25, 50], []);\n const paginator = useCallback(\n (props: TablePaginatorRendererProps) => (\n <TablePaginator {...props} pageSizeList={pageSizeList} />\n ),\n [pageSizeList]\n );\n\n return (\n <div className='gmw-select-mapping-container'>\n <Table<IMappingTyped>\n data={mappings}\n columns={mappingsColumns}\n className='gmw-select-mapping-table'\n emptyTableContent={`No ${displayStrings.mappings} available.`}\n isSortable\n isSelectable\n isLoading={isLoading}\n onSelect={(selectData: IMappingTyped[] | undefined) => {\n selectData && setSelectedMappings(selectData);\n }}\n paginatorRenderer={paginator}\n />\n <div className='gmw-import-action-panel'>\n <Button onClick={backFn}>Back</Button>\n <Button\n styleType='high-visibility'\n onClick={() => {\n onSelect(selectedMappings);\n }}\n disabled={isLoading || selectedMappings.length === 0}\n >\n Next\n </Button>\n <Button onClick={onCancel}>Cancel</Button>\n </div>\n </div>\n );\n};\n\nexport default SelectMappings;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MappingViewActionGroup.js","sourceRoot":"","sources":["../../../../src/components/Mappings/MappingViewActionGroup.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,SAAS,EACT,OAAO,EACP,OAAO,EACP,UAAU,GACX,MAAM,4BAA4B,CAAC;AAWpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,kBAAkB,GACQ,EAAE,EAAE;IAC9B,OAAO,CACL,oBAAC,YAAY,IACX,SAAS,EAAE,CAAC,KAAiB,EAAE,EAAE,CAAC;YAChC,oBAAoB,CAAC,CAAC,CAAC,CACrB,oBAAC,QAAQ,IACP,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,GAAG,EAAE;oBACZ,oBAAoB,CAAC,OAAO,CAAC,CAAC;oBAC9B,KAAK,EAAE,CAAC;gBACV,CAAC,EACD,IAAI,EAAE,oBAAC,OAAO,OAAG,aAGR,CACZ,CAAC,CAAC,CAAC,EAAE;YACN,oBAAC,QAAQ,IACP,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,KAAK,IAAI,EAAE;oBAClB,KAAK,EAAE,CAAC;oBACR,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;oBAClC,MAAM,SAAS,EAAE,CAAC;gBACpB,CAAC,EACD,IAAI,EAAE,oBAAC,UAAU,OAAG,IAEnB,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,CAC9D;YACX,oBAAC,QAAQ,IACP,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,GAAG,EAAE;oBACZ,kBAAkB,CAAC,OAAO,CAAC,CAAC;oBAC5B,KAAK,EAAE,CAAC;gBACV,CAAC,EACD,IAAI,EAAE,oBAAC,SAAS,OAAG,aAGV;SACZ,CAAC,IAAI,EAAE;QAER,oBAAC,UAAU,IAAC,SAAS,EAAC,YAAY,EAAC,KAAK,EAAC,iBAAiB;YACxD,oBAAC,OAAO,OACN,CACS,CACA,CAChB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport {\n DropdownMenu,\n IconButton,\n MenuItem,\n} from \"@itwin/itwinui-react\";\nimport {\n SvgDelete,\n SvgEdit,\n SvgMore,\n SvgProcess,\n} from \"@itwin/itwinui-icons-react\";\nimport type { Mapping } from \"@itwin/insights-client\";\n\ninterface MappingUIActionGroupProps {\n mapping: Mapping;\n onToggleExtraction: (mapping: Mapping) => Promise<void>;\n onRefresh: () => Promise<void>;\n onClickMappingModify?: (mapping: Mapping) => void;\n setShowDeleteModal: (mapping?: Mapping) => void;\n}\n\nexport const MappingUIActionGroup = ({\n mapping,\n onToggleExtraction,\n onRefresh,\n onClickMappingModify,\n setShowDeleteModal,\n}: MappingUIActionGroupProps) => {\n return (\n <DropdownMenu\n menuItems={(close: () => void) => [\n onClickMappingModify ? (\n <MenuItem\n key={0}\n onClick={() => {\n onClickMappingModify(mapping);\n close();\n }}\n icon={<SvgEdit />}\n >\n Modify\n </MenuItem>\n ) : [],\n <MenuItem\n key={1}\n onClick={async () => {\n close();\n await onToggleExtraction(mapping);\n await onRefresh();\n }}\n icon={<SvgProcess />}\n >\n {mapping.extractionEnabled ? \"Disable extraction\" : \"Enable extraction\"}\n </MenuItem>,\n <MenuItem\n key={2}\n onClick={() => {\n setShowDeleteModal(mapping);\n close();\n }}\n icon={<SvgDelete />}\n >\n Remove\n </MenuItem>,\n ].flat()}\n >\n <IconButton styleType=\"borderless\" title='Mapping Options'>\n <SvgMore\n />\n </IconButton>\n </DropdownMenu>\n );\n};\n"]}
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import type { Mapping } from "@itwin/insights-client";
3
+ import type { CreateTypeFromInterface } from "../../common/utils";
4
+ import type { mappingViewDefaultDisplayStrings } from "./MappingsView";
5
+ export declare type IMappingTyped = CreateTypeFromInterface<Mapping>;
6
+ export interface MappingsProps {
7
+ onClickAddMapping?: () => void;
8
+ onClickMappingTitle?: (mapping: Mapping) => void;
9
+ onClickMappingModify?: (mapping: Mapping) => void;
10
+ displayStrings?: Partial<typeof mappingViewDefaultDisplayStrings>;
11
+ }
12
+ export declare const Mappings: (props: MappingsProps) => JSX.Element;
13
+ //# sourceMappingURL=Mappings.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ import React, { useCallback } from "react";
6
+ import { useMappingClient } from "../context/MappingClientContext";
7
+ import { useGroupingMappingApiConfig } from "../context/GroupingApiConfigContext";
8
+ import { MappingsView } from "./MappingsView";
9
+ import { useMappingsOperations } from "./hooks/useMappingsOperations";
10
+ import { Alert } from "@itwin/itwinui-react";
11
+ export const Mappings = (props) => {
12
+ const groupingMappingApiConfig = useGroupingMappingApiConfig();
13
+ const mappingClient = useMappingClient();
14
+ const { mappings, isLoading, extractionIconData, showExtractionMessageModal, extractionMessageData, setShowExtractionMessageModal, refresh, toggleExtraction, onDelete, setShowImportModal, showImportModal, setShowDeleteModal, showDeleteModal, isTogglingExtraction, errorMessage, setErrorMessage, } = useMappingsOperations({ ...groupingMappingApiConfig, mappingClient });
15
+ const renderAlert = useCallback(() => {
16
+ if (!errorMessage)
17
+ return;
18
+ return (React.createElement(Alert, { type: "negative", onClose: () => setErrorMessage(undefined) }, errorMessage));
19
+ }, [errorMessage, setErrorMessage]);
20
+ return (React.createElement(MappingsView, { mappings: mappings, isLoading: isLoading, extractionIconData: extractionIconData, showExtractionMessageModal: showExtractionMessageModal, extractionMessageData: extractionMessageData, setShowExtractionMessageModal: setShowExtractionMessageModal, onRefresh: refresh, onToggleExtraction: toggleExtraction, onDelete: onDelete, showImportModal: showImportModal, setShowImportModal: setShowImportModal, showDeleteModal: showDeleteModal, setShowDeleteModal: setShowDeleteModal, isTogglingExtraction: isTogglingExtraction, alert: renderAlert(), ...props }));
21
+ };
22
+ //# sourceMappingURL=Mappings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Mappings.js","sourceRoot":"","sources":["../../../../src/components/Mappings/Mappings.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAGlF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAW7C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC/C,MAAM,wBAAwB,GAAG,2BAA2B,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,MAAM,EACJ,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,0BAA0B,EAC1B,qBAAqB,EACrB,6BAA6B,EAC7B,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,eAAe,GAChB,GAAG,qBAAqB,CAAC,EAAE,GAAG,wBAAwB,EAAE,aAAa,EAAE,CAAC,CAAC;IAE1E,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACnC,IAAI,CAAC,YAAY;YAAE,OAAO;QAC1B,OAAO,CACL,oBAAC,KAAK,IAAC,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,SAAS,CAAC,IAC7D,YAAY,CACP,CACT,CAAC;IACJ,CAAC,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;IAEpC,OAAO,CACL,oBAAC,YAAY,IACX,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,EACtC,0BAA0B,EAAE,0BAA0B,EACtD,qBAAqB,EAAE,qBAAqB,EAC5C,6BAA6B,EAAE,6BAA6B,EAC5D,SAAS,EAAE,OAAO,EAClB,kBAAkB,EAAE,gBAAgB,EACpC,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,kBAAkB,EACtC,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,kBAAkB,EACtC,oBAAoB,EAAE,oBAAoB,EAC1C,KAAK,EAAE,WAAW,EAAE,KAChB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React, { useCallback } from \"react\";\nimport { useMappingClient } from \"../context/MappingClientContext\";\nimport type { Mapping } from \"@itwin/insights-client\";\nimport { useGroupingMappingApiConfig } from \"../context/GroupingApiConfigContext\";\nimport type { CreateTypeFromInterface } from \"../../common/utils\";\nimport type { mappingViewDefaultDisplayStrings } from \"./MappingsView\";\nimport { MappingsView } from \"./MappingsView\";\nimport { useMappingsOperations } from \"./hooks/useMappingsOperations\";\nimport { Alert } from \"@itwin/itwinui-react\";\n\nexport type IMappingTyped = CreateTypeFromInterface<Mapping>;\n\nexport interface MappingsProps {\n onClickAddMapping?: () => void;\n onClickMappingTitle?: (mapping: Mapping) => void;\n onClickMappingModify?: (mapping: Mapping) => void;\n displayStrings?: Partial<typeof mappingViewDefaultDisplayStrings>;\n}\n\nexport const Mappings = (props: MappingsProps) => {\n const groupingMappingApiConfig = useGroupingMappingApiConfig();\n const mappingClient = useMappingClient();\n const {\n mappings,\n isLoading,\n extractionIconData,\n showExtractionMessageModal,\n extractionMessageData,\n setShowExtractionMessageModal,\n refresh,\n toggleExtraction,\n onDelete,\n setShowImportModal,\n showImportModal,\n setShowDeleteModal,\n showDeleteModal,\n isTogglingExtraction,\n errorMessage,\n setErrorMessage,\n } = useMappingsOperations({ ...groupingMappingApiConfig, mappingClient });\n\n const renderAlert = useCallback(() => {\n if (!errorMessage) return;\n return (\n <Alert type=\"negative\" onClose={() => setErrorMessage(undefined)}>\n {errorMessage}\n </Alert>\n );\n }, [errorMessage, setErrorMessage]);\n\n return (\n <MappingsView\n mappings={mappings}\n isLoading={isLoading}\n extractionIconData={extractionIconData}\n showExtractionMessageModal={showExtractionMessageModal}\n extractionMessageData={extractionMessageData}\n setShowExtractionMessageModal={setShowExtractionMessageModal}\n onRefresh={refresh}\n onToggleExtraction={toggleExtraction}\n onDelete={onDelete}\n showImportModal={showImportModal}\n setShowImportModal={setShowImportModal}\n showDeleteModal={showDeleteModal}\n setShowDeleteModal={setShowDeleteModal}\n isTogglingExtraction={isTogglingExtraction}\n alert={renderAlert()}\n {...props}\n />\n );\n};\n"]}
@@ -0,0 +1,57 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ import React from "react";
6
+ import { Button, IconButton, } from "@itwin/itwinui-react";
7
+ import { SvgAdd, SvgImport, SvgRefresh, } from "@itwin/itwinui-icons-react";
8
+ import { EmptyMessage } from "../SharedComponents/EmptyMessage";
9
+ import { LoadingOverlay } from "../SharedComponents/LoadingOverlay";
10
+ import "./MappingsView.scss";
11
+ import DeleteModal from "../SharedComponents/DeleteModal";
12
+ import { MappingImportWizardModal } from "./Import/MappingImportWizardModal";
13
+ import { HorizontalTile } from "../SharedComponents/HorizontalTile";
14
+ import { BlockingOverlay } from "./BlockingOverlay";
15
+ import { MappingUIActionGroup } from "./MappingViewActionGroup";
16
+ import { ExtractionStatusIcon } from "./Extraction/ExtractionStatusIcon";
17
+ import { ExtractionMessageModal } from "./Extraction/ExtractionMessageModal";
18
+ export const mappingViewDefaultDisplayStrings = {
19
+ mappings: "Mappings",
20
+ iTwins: "iTwins",
21
+ iTwinNumber: "Number",
22
+ iTwinName: "Name",
23
+ iTwinStatus: "Status",
24
+ iModels: "iModels",
25
+ iModelName: "Name",
26
+ iModelDescription: "Description",
27
+ };
28
+ export const MappingsView = ({ mappings, isLoading, extractionIconData, showExtractionMessageModal, extractionMessageData, setShowExtractionMessageModal, isTogglingExtraction, onRefresh, onToggleExtraction, onDelete, showDeleteModal, setShowDeleteModal, displayStrings: userDisplayStrings, showImportModal, setShowImportModal, onClickAddMapping, onClickMappingTitle, onClickMappingModify, alert, }) => {
29
+ const displayStrings = React.useMemo(() => ({ ...mappingViewDefaultDisplayStrings, ...userDisplayStrings }), [userDisplayStrings]);
30
+ return (React.createElement(React.Fragment, null,
31
+ React.createElement(BlockingOverlay, { isVisible: isTogglingExtraction }),
32
+ React.createElement("div", { className: "gmw-mappings-view-container" },
33
+ React.createElement("div", { className: "gmw-table-toolbar" },
34
+ React.createElement("div", { className: "gmw-button-spacing" },
35
+ onClickAddMapping &&
36
+ React.createElement(Button, { startIcon: React.createElement(SvgAdd, null), onClick: onClickAddMapping, styleType: "high-visibility", title: "New Mapping" }, "New"),
37
+ showImportModal !== undefined && setShowImportModal && React.createElement(IconButton, { title: `Import ${displayStrings.mappings}`, onClick: () => setShowImportModal(true) },
38
+ React.createElement(SvgImport, null))),
39
+ React.createElement("div", { className: "gmw-button-spacing" },
40
+ React.createElement(ExtractionStatusIcon, { iconStatus: extractionIconData.iconStatus, onClick: () => {
41
+ if (extractionIconData.iconStatus === "negative") {
42
+ setShowExtractionMessageModal(true);
43
+ }
44
+ }, iconMessage: extractionIconData.iconMessage }),
45
+ React.createElement(IconButton, { title: "Refresh", onClick: onRefresh, disabled: isLoading, styleType: 'borderless' },
46
+ React.createElement(SvgRefresh, null)))),
47
+ alert,
48
+ React.createElement("div", { className: 'gmw-mappings-border' }),
49
+ isLoading ? (React.createElement(LoadingOverlay, null)) : mappings.length === 0 ? (React.createElement(EmptyMessage, { message: `No ${displayStrings.mappings} available.` })) : (React.createElement("div", { className: "gmw-mappings-list" }, mappings.map((mapping) => (React.createElement(HorizontalTile, { key: mapping.id, title: mapping.mappingName ? mapping.mappingName : "Untitled", subText: mapping.description ?? "", subtextToolTip: mapping.description ?? "", titleTooltip: mapping.mappingName, onClickTitle: onClickMappingTitle ? () => onClickMappingTitle(mapping) : undefined, actionGroup: React.createElement(MappingUIActionGroup, { mapping: mapping, onToggleExtraction: onToggleExtraction, onRefresh: onRefresh, onClickMappingModify: onClickMappingModify, setShowDeleteModal: setShowDeleteModal }) })))))),
50
+ React.createElement(ExtractionMessageModal, { isOpen: showExtractionMessageModal, onClose: () => setShowExtractionMessageModal(false), extractionMessageData: extractionMessageData, timestamp: extractionMessageData.length === 0 ? "" : extractionMessageData[0].date }),
51
+ showDeleteModal &&
52
+ React.createElement(DeleteModal, { entityName: showDeleteModal?.mappingName, onClose: () => setShowDeleteModal(undefined), onDelete: async () => {
53
+ await onDelete(showDeleteModal);
54
+ }, refresh: onRefresh }),
55
+ showImportModal && setShowImportModal && React.createElement(MappingImportWizardModal, { show: showImportModal, setShow: setShowImportModal, onFinish: onRefresh, displayStrings: displayStrings })));
56
+ };
57
+ //# sourceMappingURL=MappingsView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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,IAAI,GAClF;QACD,eAAe;YACd,oBAAC,WAAW,IACV,UAAU,EAAE,eAAe,EAAE,WAAW,EACxC,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAC5C,QAAQ,EAAE,KAAK,IAAI,EAAE;oBACnB,MAAM,QAAQ,CAAC,eAAe,CAAC,CAAC;gBAClC,CAAC,EACD,OAAO,EAAE,SAAS,GAClB;QAEH,eAAe,IAAI,kBAAkB,IAAI,oBAAC,wBAAwB,IACjE,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,kBAAkB,EAC3B,QAAQ,EAAE,SAAS,EACnB,cAAc,EAAE,cAAc,GAC9B,CACD,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport React from \"react\";\nimport type {\n Alert,\n} from \"@itwin/itwinui-react\";\nimport {\n Button,\n IconButton,\n} from \"@itwin/itwinui-react\";\nimport {\n SvgAdd,\n SvgImport,\n SvgRefresh,\n} from \"@itwin/itwinui-icons-react\";\nimport { EmptyMessage } from \"../SharedComponents/EmptyMessage\";\nimport { LoadingOverlay } from \"../SharedComponents/LoadingOverlay\";\nimport \"./MappingsView.scss\";\nimport DeleteModal from \"../SharedComponents/DeleteModal\";\nimport { MappingImportWizardModal } from \"./Import/MappingImportWizardModal\";\nimport { HorizontalTile } from \"../SharedComponents/HorizontalTile\";\nimport type { Mapping } from \"@itwin/insights-client\";\nimport { BlockingOverlay } from \"./BlockingOverlay\";\nimport { MappingUIActionGroup } from \"./MappingViewActionGroup\";\nimport type { ExtractionMessageData } from \"./hooks/useMappingsOperations\";\nimport type { ExtractionIconData } from \"./hooks/useMappingsOperations\";\nimport { ExtractionStatusIcon } from \"./Extraction/ExtractionStatusIcon\";\nimport { ExtractionMessageModal } from \"./Extraction/ExtractionMessageModal\";\n\nexport const mappingViewDefaultDisplayStrings = {\n mappings: \"Mappings\",\n iTwins: \"iTwins\",\n iTwinNumber: \"Number\",\n iTwinName: \"Name\",\n iTwinStatus: \"Status\",\n iModels: \"iModels\",\n iModelName: \"Name\",\n iModelDescription: \"Description\",\n};\n\nexport interface MappingsViewProps {\n mappings: Mapping[];\n isLoading: boolean;\n extractionIconData: ExtractionIconData;\n showExtractionMessageModal: boolean;\n extractionMessageData: ExtractionMessageData[];\n setShowExtractionMessageModal: (show: boolean) => void;\n isTogglingExtraction: boolean;\n onRefresh: () => Promise<void>;\n onToggleExtraction: (mapping: Mapping) => Promise<void>;\n onDelete: (mapping: Mapping) => Promise<void>;\n showDeleteModal: Mapping | undefined;\n setShowDeleteModal: (mapping?: Mapping) => void;\n displayStrings?: Partial<typeof mappingViewDefaultDisplayStrings>;\n showImportModal?: boolean;\n setShowImportModal?: (show: boolean) => void;\n onClickAddMapping?: () => void;\n onClickMappingTitle?: (mapping: Mapping) => void;\n onClickMappingModify?: (mapping: Mapping) => void;\n alert?: React.ReactElement<typeof Alert>;\n}\n\nexport const MappingsView = ({\n mappings,\n isLoading,\n extractionIconData,\n showExtractionMessageModal,\n extractionMessageData,\n setShowExtractionMessageModal,\n isTogglingExtraction,\n onRefresh,\n onToggleExtraction,\n onDelete,\n showDeleteModal,\n setShowDeleteModal,\n displayStrings: userDisplayStrings,\n showImportModal,\n setShowImportModal,\n onClickAddMapping,\n onClickMappingTitle,\n onClickMappingModify,\n alert,\n}: MappingsViewProps) => {\n const displayStrings = React.useMemo(\n () => ({ ...mappingViewDefaultDisplayStrings, ...userDisplayStrings }),\n [userDisplayStrings]\n );\n\n return (\n <>\n <BlockingOverlay isVisible={isTogglingExtraction} />\n <div className=\"gmw-mappings-view-container\">\n <div className=\"gmw-table-toolbar\">\n <div className=\"gmw-button-spacing\">\n {onClickAddMapping &&\n <Button\n startIcon={<SvgAdd />}\n onClick={onClickAddMapping}\n styleType=\"high-visibility\"\n title=\"New Mapping\"\n >\n New\n </Button>\n }\n {showImportModal !== undefined && setShowImportModal && <IconButton\n title={`Import ${displayStrings.mappings}`}\n onClick={() => setShowImportModal(true)}\n >\n <SvgImport />\n </IconButton>\n }\n </div>\n <div className=\"gmw-button-spacing\">\n <ExtractionStatusIcon\n iconStatus={extractionIconData.iconStatus}\n onClick={() => {\n if (extractionIconData.iconStatus === \"negative\") {\n setShowExtractionMessageModal(true);\n }\n }}\n iconMessage={extractionIconData.iconMessage}\n />\n <IconButton\n title=\"Refresh\"\n onClick={onRefresh}\n disabled={isLoading}\n styleType='borderless'\n >\n <SvgRefresh />\n </IconButton>\n </div>\n </div>\n {alert}\n <div className='gmw-mappings-border' />\n {isLoading ? (\n <LoadingOverlay />\n ) : mappings.length === 0 ? (\n <EmptyMessage message={`No ${displayStrings.mappings} available.`} />\n ) : (\n <div className=\"gmw-mappings-list\">\n {mappings.map((mapping) => (\n <HorizontalTile\n key={mapping.id}\n title={mapping.mappingName ? mapping.mappingName : \"Untitled\"}\n subText={mapping.description ?? \"\"}\n subtextToolTip={mapping.description ?? \"\"}\n titleTooltip={mapping.mappingName}\n onClickTitle={onClickMappingTitle ? () => onClickMappingTitle(mapping) : undefined}\n actionGroup={\n <MappingUIActionGroup\n mapping={mapping}\n onToggleExtraction={onToggleExtraction}\n onRefresh={onRefresh}\n onClickMappingModify={onClickMappingModify}\n setShowDeleteModal={setShowDeleteModal}\n />\n }\n />\n ))}\n </div>\n )}\n </div>\n <ExtractionMessageModal\n isOpen={showExtractionMessageModal}\n onClose={() => setShowExtractionMessageModal(false)}\n extractionMessageData={extractionMessageData}\n timestamp={extractionMessageData.length === 0 ? \"\" : extractionMessageData[0].date}\n />\n {showDeleteModal &&\n <DeleteModal\n entityName={showDeleteModal?.mappingName}\n onClose={() => setShowDeleteModal(undefined)}\n onDelete={async () => {\n await onDelete(showDeleteModal);\n }}\n refresh={onRefresh}\n />\n }\n {showImportModal && setShowImportModal && <MappingImportWizardModal\n show={showImportModal}\n setShow={setShowImportModal}\n onFinish={onRefresh}\n displayStrings={displayStrings}\n />}\n </>\n );\n};\n"]}
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import type { IMappingsClient, Mapping } from "@itwin/insights-client";
3
+ import type { GroupingMappingApiConfig } from "../../context/GroupingApiConfigContext";
4
+ export interface MappingsOperationsProps extends GroupingMappingApiConfig {
5
+ mappingClient: IMappingsClient;
6
+ }
7
+ export interface ExtractionMessageData {
8
+ date: string;
9
+ category: string;
10
+ level: string;
11
+ message: string;
12
+ }
13
+ export interface ExtractionIconData {
14
+ iconStatus: "negative" | "positive" | "warning";
15
+ iconMessage: string;
16
+ }
17
+ export declare const useMappingsOperations: ({ iModelId, getAccessToken, mappingClient }: MappingsOperationsProps) => {
18
+ mappings: Mapping[];
19
+ isLoading: boolean;
20
+ extractionIconData: ExtractionIconData;
21
+ showExtractionMessageModal: boolean;
22
+ extractionMessageData: ExtractionMessageData[];
23
+ setShowExtractionMessageModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
24
+ refresh: () => Promise<void>;
25
+ toggleExtraction: (mapping: Mapping) => Promise<void>;
26
+ onDelete: (mapping: Mapping) => Promise<void>;
27
+ setShowImportModal: import("react").Dispatch<import("react").SetStateAction<boolean | undefined>>;
28
+ showImportModal: boolean | undefined;
29
+ setShowDeleteModal: import("react").Dispatch<import("react").SetStateAction<Mapping | undefined>>;
30
+ showDeleteModal: Mapping | undefined;
31
+ isTogglingExtraction: boolean;
32
+ errorMessage: string | undefined;
33
+ setErrorMessage: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
34
+ };
35
+ //# sourceMappingURL=useMappingsOperations.d.ts.map
@@ -0,0 +1,116 @@
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 { useCallback, useEffect, useState } from "react";
6
+ import { getErrorMessage } from "../../../common/utils";
7
+ import { useExtractionClient } from "../../context/ExtractionClientContext";
8
+ const fetchMappings = async (setMappings, iModelId, setIsLoading, getAccessToken, mappingsClient, setErrorMessage) => {
9
+ try {
10
+ setIsLoading(true);
11
+ const accessToken = await getAccessToken();
12
+ const mappings = await mappingsClient.getMappings(accessToken, iModelId);
13
+ setMappings(mappings.sort((a, b) => a.mappingName.localeCompare(b.mappingName)));
14
+ }
15
+ catch (error) {
16
+ setErrorMessage(getErrorMessage(error.status));
17
+ }
18
+ finally {
19
+ setIsLoading(false);
20
+ }
21
+ };
22
+ const fetchExtractionStatus = async (iModelId, getAccessToken, extractionClient, setExtractionIconData, setExtractionMessageData) => {
23
+ setExtractionIconData({
24
+ iconStatus: "warning",
25
+ iconMessage: "Extraction status pending.",
26
+ });
27
+ try {
28
+ const accessToken = await getAccessToken();
29
+ const extractions = await extractionClient.getExtractionHistory(accessToken, iModelId, 1);
30
+ if (extractions.length === 0) {
31
+ setExtractionIconData({
32
+ iconStatus: "negative",
33
+ iconMessage: "No extraction found.",
34
+ });
35
+ }
36
+ else {
37
+ const jobId = extractions[0].jobId;
38
+ const status = await extractionClient.getExtractionStatus(accessToken, jobId);
39
+ if (status.containsIssues) {
40
+ setExtractionIconData({
41
+ iconStatus: "negative",
42
+ iconMessage: "Extraction contains issues. Click to view extraction logs.",
43
+ });
44
+ const logs = await extractionClient.getExtractionLogs(accessToken, jobId);
45
+ const filteredLogs = logs.filter((log) => log.message !== null);
46
+ const extractionMessageData = filteredLogs.map((filteredLog) => ({
47
+ date: filteredLog.dateTime,
48
+ category: filteredLog.category,
49
+ level: filteredLog.level,
50
+ message: String(filteredLog.message),
51
+ }));
52
+ setExtractionMessageData(extractionMessageData);
53
+ }
54
+ else {
55
+ setExtractionIconData({
56
+ iconStatus: "positive",
57
+ iconMessage: "Extraction successful.",
58
+ });
59
+ }
60
+ }
61
+ }
62
+ catch (error) {
63
+ setExtractionIconData({
64
+ iconStatus: "negative",
65
+ iconMessage: "Operation failed. Please try again.",
66
+ });
67
+ }
68
+ };
69
+ export const useMappingsOperations = ({ iModelId, getAccessToken, mappingClient }) => {
70
+ const [showImportModal, setShowImportModal] = useState(false);
71
+ const [showDeleteModal, setShowDeleteModal] = useState(undefined);
72
+ const [isLoading, setIsLoading] = useState(true);
73
+ const [mappings, setMappings] = useState([]);
74
+ const extractionClient = useExtractionClient();
75
+ const [errorMessage, setErrorMessage] = useState(undefined);
76
+ const [isTogglingExtraction, setIsTogglingExtraction] = useState(false);
77
+ const [extractionIconData, setExtractionIconData] = useState({
78
+ iconStatus: "warning",
79
+ iconMessage: "",
80
+ });
81
+ const [showExtractionMessageModal, setShowExtractionMessageModal] = useState(false);
82
+ const [extractionMessageData, setExtractionMessageData] = useState([]);
83
+ useEffect(() => {
84
+ void fetchMappings(setMappings, iModelId, setIsLoading, getAccessToken, mappingClient, setErrorMessage);
85
+ }, [getAccessToken, mappingClient, iModelId]);
86
+ useEffect(() => {
87
+ void fetchExtractionStatus(iModelId, getAccessToken, extractionClient, setExtractionIconData, setExtractionMessageData);
88
+ }, [iModelId, getAccessToken, extractionClient]);
89
+ const refresh = useCallback(async () => {
90
+ setMappings([]);
91
+ await fetchMappings(setMappings, iModelId, setIsLoading, getAccessToken, mappingClient, setErrorMessage);
92
+ }, [getAccessToken, mappingClient, iModelId]);
93
+ const toggleExtraction = useCallback(async (mapping) => {
94
+ try {
95
+ setIsTogglingExtraction(true);
96
+ const newState = !mapping.extractionEnabled;
97
+ const accessToken = await getAccessToken();
98
+ await mappingClient.updateMapping(accessToken, iModelId, mapping.id, {
99
+ extractionEnabled: newState,
100
+ });
101
+ }
102
+ catch (error) {
103
+ setErrorMessage(getErrorMessage(error.status));
104
+ }
105
+ finally {
106
+ setIsTogglingExtraction(false);
107
+ }
108
+ }, [getAccessToken, iModelId, mappingClient]);
109
+ const onDelete = async (mapping) => {
110
+ const accessToken = await getAccessToken();
111
+ await mappingClient.deleteMapping(accessToken, iModelId, mapping.id);
112
+ await refresh();
113
+ };
114
+ return { mappings, isLoading, extractionIconData, showExtractionMessageModal, extractionMessageData, setShowExtractionMessageModal, refresh, toggleExtraction, onDelete, setShowImportModal, showImportModal, setShowDeleteModal, showDeleteModal, isTogglingExtraction, errorMessage, setErrorMessage };
115
+ };
116
+ //# sourceMappingURL=useMappingsOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMappingsOperations.js","sourceRoot":"","sources":["../../../../../src/components/Mappings/hooks/useMappingsOperations.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAE5E,MAAM,aAAa,GAAG,KAAK,EACzB,WAA4D,EAC5D,QAAgB,EAChB,YAA2D,EAC3D,cAAgC,EAChC,cAA+B,EAC/B,eAAsD,EACtD,EAAE;IACF,IAAI;QACF,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,MAAM,WAAW,GAAG,MAAM,cAAc,EAAE,CAAC;QAC3C,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QACzE,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;KAClF;IAAC,OAAO,KAAU,EAAE;QACnB,eAAe,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;KAChD;YAAS;QACR,YAAY,CAAC,KAAK,CAAC,CAAC;KACrB;AACH,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,KAAK,EACjC,QAAgB,EAChB,cAAgC,EAChC,gBAAmC,EACnC,qBAA+E,EA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,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9C,MAAM,QAAQ,GAAG,KAAK,EAAE,OAAgB,EAAE,EAAE;QAC1C,MAAM,WAAW,GAAG,MAAM,cAAc,EAAE,CAAC;QAC3C,MAAM,aAAa,CAAC,aAAa,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACrE,MAAM,OAAO,EAAE,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,eAAe,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAC3S,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { useCallback, useEffect, useState } from \"react\";\nimport { getErrorMessage } from \"../../../common/utils\";\nimport type { IExtractionClient, IMappingsClient, Mapping } from \"@itwin/insights-client\";\nimport type { GroupingMappingApiConfig } from \"../../context/GroupingApiConfigContext\";\nimport type { GetAccessTokenFn } from \"../../context/GroupingApiConfigContext\";\nimport { useExtractionClient } from \"../../context/ExtractionClientContext\";\n\nconst fetchMappings = async (\n setMappings: React.Dispatch<React.SetStateAction<Mapping[]>>,\n iModelId: string,\n setIsLoading: React.Dispatch<React.SetStateAction<boolean>>,\n getAccessToken: GetAccessTokenFn,\n mappingsClient: IMappingsClient,\n setErrorMessage: (message: string | undefined) => void\n) => {\n try {\n setIsLoading(true);\n const accessToken = await getAccessToken();\n const mappings = await mappingsClient.getMappings(accessToken, iModelId);\n setMappings(mappings.sort((a, b) => a.mappingName.localeCompare(b.mappingName)));\n } catch (error: any) {\n setErrorMessage(getErrorMessage(error.status));\n } finally {\n setIsLoading(false);\n }\n};\n\nconst fetchExtractionStatus = async (\n iModelId: string,\n getAccessToken: GetAccessTokenFn,\n extractionClient: IExtractionClient,\n setExtractionIconData: React.Dispatch<React.SetStateAction<ExtractionIconData>>,\n setExtractionMessageData: React.Dispatch<React.SetStateAction<ExtractionMessageData[]>>\n) => {\n setExtractionIconData({\n iconStatus: \"warning\",\n iconMessage: \"Extraction status pending.\",\n });\n try {\n const accessToken = await getAccessToken();\n const extractions = await extractionClient.getExtractionHistory(accessToken, iModelId, 1);\n if (extractions.length === 0) {\n setExtractionIconData({\n iconStatus: \"negative\",\n iconMessage: \"No extraction found.\",\n });\n } else {\n const jobId = extractions[0].jobId;\n const status = await extractionClient.getExtractionStatus(accessToken, jobId);\n if (status.containsIssues) {\n setExtractionIconData({\n iconStatus: \"negative\",\n iconMessage: \"Extraction contains issues. Click to view extraction logs.\",\n });\n const logs = await extractionClient.getExtractionLogs(accessToken, jobId);\n const filteredLogs = logs.filter((log) => log.message !== null);\n const extractionMessageData = filteredLogs.map((filteredLog) => ({\n date: filteredLog.dateTime,\n category: filteredLog.category,\n level: filteredLog.level,\n message: String(filteredLog.message),\n }));\n setExtractionMessageData(extractionMessageData);\n } else {\n setExtractionIconData({\n iconStatus: \"positive\",\n iconMessage: \"Extraction successful.\",\n });\n }\n }\n } catch (error: any) {\n setExtractionIconData({\n iconStatus: \"negative\",\n iconMessage: \"Operation failed. Please try again.\",\n });\n }\n};\n\nexport interface MappingsOperationsProps extends GroupingMappingApiConfig {\n mappingClient: IMappingsClient;\n}\n\nexport interface ExtractionMessageData {\n date: string;\n category: string;\n level: string;\n message: string;\n}\n\nexport interface ExtractionIconData {\n iconStatus: \"negative\" | \"positive\" | \"warning\";\n iconMessage: string;\n}\n\nexport const useMappingsOperations = ({ iModelId, getAccessToken, mappingClient }: MappingsOperationsProps) => {\n const [showImportModal, setShowImportModal] = useState<boolean | undefined>(false);\n const [showDeleteModal, setShowDeleteModal] = useState<Mapping | undefined>(undefined);\n const [isLoading, setIsLoading] = useState<boolean>(true);\n const [mappings, setMappings] = useState<Mapping[]>([]);\n const extractionClient = useExtractionClient();\n const [errorMessage, setErrorMessage] = useState<string | undefined>(undefined);\n const [isTogglingExtraction, setIsTogglingExtraction] = useState<boolean>(false);\n const [extractionIconData, setExtractionIconData] = useState<ExtractionIconData>({\n iconStatus: \"warning\",\n iconMessage: \"\",\n });\n const [showExtractionMessageModal, setShowExtractionMessageModal] = useState<boolean>(false);\n const [extractionMessageData, setExtractionMessageData] = useState<ExtractionMessageData[]>([]);\n\n useEffect(() => {\n void fetchMappings(setMappings, iModelId, setIsLoading, getAccessToken, mappingClient, setErrorMessage);\n }, [getAccessToken, mappingClient, iModelId]);\n\n useEffect(() => {\n void fetchExtractionStatus(\n iModelId,\n getAccessToken,\n extractionClient,\n setExtractionIconData,\n setExtractionMessageData\n );\n }, [iModelId, getAccessToken, extractionClient]);\n\n const refresh = useCallback(async () => {\n setMappings([]);\n await fetchMappings(setMappings, iModelId, setIsLoading, getAccessToken, mappingClient, setErrorMessage);\n }, [getAccessToken, mappingClient, iModelId]);\n\n const toggleExtraction = useCallback(async (mapping: Mapping) => {\n try {\n setIsTogglingExtraction(true);\n const newState = !mapping.extractionEnabled;\n const accessToken = await getAccessToken();\n await mappingClient.updateMapping(accessToken, iModelId, mapping.id, {\n extractionEnabled: newState,\n });\n } catch (error: any) {\n setErrorMessage(getErrorMessage(error.status));\n } finally {\n setIsTogglingExtraction(false);\n }\n }, [getAccessToken, iModelId, mappingClient]);\n\n const onDelete = async (mapping: Mapping) => {\n const accessToken = await getAccessToken();\n await mappingClient.deleteMapping(accessToken, iModelId, mapping.id);\n await refresh();\n };\n\n return { mappings, isLoading, extractionIconData, showExtractionMessageModal, extractionMessageData, setShowExtractionMessageModal, refresh, toggleExtraction, onDelete, setShowImportModal, showImportModal, setShowDeleteModal, showDeleteModal, isTogglingExtraction, errorMessage, setErrorMessage };\n};\n"]}
@@ -0,0 +1,58 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ import { Fieldset, Text, } from "@itwin/itwinui-react";
6
+ import React, { useState } from "react";
7
+ import ActionPanel from "../../SharedComponents/ActionPanel";
8
+ import useValidator from "../hooks/useValidator";
9
+ import "./CalculatedPropertyAction.scss";
10
+ import { CalculatedPropertyType } from "@itwin/insights-client";
11
+ import { SharedCalculatedPropertyForms } from "./SharedCalculatedPropertyForms";
12
+ import { handleError } from "../../../common/utils";
13
+ import { useGroupingMappingApiConfig } from "../../context/GroupingApiConfigContext";
14
+ import { useMappingClient } from "../../context/MappingClientContext";
15
+ export const CalculatedPropertyAction = ({ mappingId, group, calculatedProperty, onSaveSuccess, onClickCancel, }) => {
16
+ const { getAccessToken, iModelId } = useGroupingMappingApiConfig();
17
+ const mappingClient = useMappingClient();
18
+ const [propertyName, setPropertyName] = useState(calculatedProperty?.propertyName ?? "");
19
+ const [type, setType] = useState(calculatedProperty?.type);
20
+ const [isLoading, setIsLoading] = useState(false);
21
+ const [validator, showValidationMessage] = useValidator();
22
+ const onSave = async () => {
23
+ if (!validator.allValid() || !type) {
24
+ showValidationMessage(true);
25
+ return;
26
+ }
27
+ try {
28
+ setIsLoading(true);
29
+ const accessToken = await getAccessToken();
30
+ calculatedProperty
31
+ ? await mappingClient.updateCalculatedProperty(accessToken, iModelId, mappingId, group.id, calculatedProperty.id, {
32
+ propertyName,
33
+ type,
34
+ })
35
+ : await mappingClient.createCalculatedProperty(accessToken, iModelId, mappingId, group.id, {
36
+ propertyName,
37
+ type,
38
+ });
39
+ onSaveSuccess();
40
+ setPropertyName("");
41
+ setType(CalculatedPropertyType.Undefined);
42
+ }
43
+ catch (error) {
44
+ handleError(error.status);
45
+ }
46
+ finally {
47
+ setIsLoading(false);
48
+ }
49
+ };
50
+ return (React.createElement(React.Fragment, null,
51
+ React.createElement("div", { className: 'gmw-calculated-properties-action-container' },
52
+ React.createElement(Fieldset, { legend: 'Calculated Property Details', className: 'gmw-details-form' },
53
+ React.createElement("div", { className: 'gmw-field-legend-container' },
54
+ React.createElement(Text, { variant: 'small', as: 'small', className: 'gmw-field-legend' }, "Asterisk * indicates mandatory fields.")),
55
+ React.createElement(SharedCalculatedPropertyForms, { validator: validator, propertyName: propertyName, setPropertyName: setPropertyName, type: type, setType: setType }))),
56
+ React.createElement(ActionPanel, { onSave: onSave, onCancel: onClickCancel, isSavingDisabled: !(type && propertyName), isLoading: isLoading })));
57
+ };
58
+ //# sourceMappingURL=CalculatedPropertyAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalculatedPropertyAction.js","sourceRoot":"","sources":["../../../../../src/components/Properties/CalculatedProperties/CalculatedPropertyAction.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,OAAO,EACL,QAAQ,EACR,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,YAAY,MAAM,uBAAuB,CAAC;AACjD,OAAO,iCAAiC,CAAC;AAEzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAUtE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACvC,SAAS,EACT,KAAK,EACL,kBAAkB,EAClB,aAAa,EACb,aAAa,GACiB,EAAE,EAAE;IAClC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,2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AAC,KAAK,CAAC,CAAC;SACrB;IACH,CAAC,CAAC;IAEF,OAAO,CACL;QACE,6BAAK,SAAS,EAAC,4CAA4C;YACzD,oBAAC,QAAQ,IAAC,MAAM,EAAC,6BAA6B,EAAC,SAAS,EAAC,kBAAkB;gBACzE,6BAAK,SAAS,EAAC,4BAA4B;oBACzC,oBAAC,IAAI,IAAC,OAAO,EAAC,OAAO,EAAC,EAAE,EAAC,OAAO,EAAC,SAAS,EAAC,kBAAkB,6CAEtD,CACH;gBACN,oBAAC,6BAA6B,IAC5B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,GAChB,CACO,CACP;QACN,oBAAC,WAAW,IACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,aAAa,EACvB,gBAAgB,EAAE,CAAC,CAAC,IAAI,IAAI,YAAY,CAAC,EACzC,SAAS,EAAE,SAAS,GACpB,CACD,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport {\n Fieldset,\n Text,\n} from \"@itwin/itwinui-react\";\nimport React, { useState } from \"react\";\nimport ActionPanel from \"../../SharedComponents/ActionPanel\";\nimport useValidator from \"../hooks/useValidator\";\nimport \"./CalculatedPropertyAction.scss\";\nimport type { CalculatedProperty, Group } from \"@itwin/insights-client\";\nimport { CalculatedPropertyType } from \"@itwin/insights-client\";\nimport { SharedCalculatedPropertyForms } from \"./SharedCalculatedPropertyForms\";\nimport { handleError } from \"../../../common/utils\";\nimport { useGroupingMappingApiConfig } from \"../../context/GroupingApiConfigContext\";\nimport { useMappingClient } from \"../../context/MappingClientContext\";\n\nexport interface CalculatedPropertyActionProps {\n mappingId: string;\n group: Group;\n calculatedProperty?: CalculatedProperty;\n onSaveSuccess: () => void;\n onClickCancel?: () => void;\n}\n\nexport const CalculatedPropertyAction = ({\n mappingId,\n group,\n calculatedProperty,\n onSaveSuccess,\n onClickCancel,\n}: CalculatedPropertyActionProps) => {\n const { getAccessToken, iModelId } = useGroupingMappingApiConfig();\n const mappingClient = useMappingClient();\n const [propertyName, setPropertyName] = useState<string>(\n calculatedProperty?.propertyName ?? \"\",\n );\n const [type, setType] = useState<CalculatedPropertyType | undefined>(calculatedProperty?.type);\n const [isLoading, setIsLoading] = useState<boolean>(false);\n const [validator, showValidationMessage] = useValidator();\n\n const onSave = async () => {\n if (!validator.allValid() || !type) {\n showValidationMessage(true);\n return;\n }\n try {\n setIsLoading(true);\n\n const accessToken = await getAccessToken();\n\n calculatedProperty\n ? await mappingClient.updateCalculatedProperty(\n accessToken,\n iModelId,\n mappingId,\n group.id,\n calculatedProperty.id,\n {\n propertyName,\n type,\n },\n )\n : await mappingClient.createCalculatedProperty(\n accessToken,\n iModelId,\n mappingId,\n group.id,\n {\n propertyName,\n type,\n },\n );\n onSaveSuccess();\n setPropertyName(\"\");\n setType(CalculatedPropertyType.Undefined);\n } catch (error: any) {\n handleError(error.status);\n } finally {\n setIsLoading(false);\n }\n };\n\n return (\n <>\n <div className='gmw-calculated-properties-action-container'>\n <Fieldset legend='Calculated Property Details' className='gmw-details-form'>\n <div className='gmw-field-legend-container'>\n <Text variant='small' as='small' className='gmw-field-legend'>\n Asterisk * indicates mandatory fields.\n </Text>\n </div>\n <SharedCalculatedPropertyForms\n validator={validator}\n propertyName={propertyName}\n setPropertyName={setPropertyName}\n type={type}\n setType={setType}\n />\n </Fieldset>\n </div>\n <ActionPanel\n onSave={onSave}\n onCancel={onClickCancel}\n isSavingDisabled={!(type && propertyName)}\n isLoading={isLoading}\n />\n </>\n );\n};\n"]}