@itwin/grouping-mapping-widget 0.25.1 → 0.26.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 (343) hide show
  1. package/lib/cjs/WidgetShell/GroupingMapping.d.ts +5 -5
  2. package/lib/cjs/WidgetShell/GroupingMapping.js.map +1 -1
  3. package/lib/cjs/WidgetShell/GroupingMappingWidget.d.ts +4 -0
  4. package/lib/cjs/WidgetShell/GroupingMappingWidget.js +4 -0
  5. package/lib/cjs/WidgetShell/GroupingMappingWidget.js.map +1 -1
  6. package/lib/cjs/components/GroupingMappingContext.d.ts +19 -3
  7. package/lib/cjs/components/GroupingMappingContext.js +27 -9
  8. package/lib/cjs/components/GroupingMappingContext.js.map +1 -1
  9. package/lib/cjs/components/Groups/Editing/GroupAction.d.ts +10 -2
  10. package/lib/cjs/components/Groups/Editing/GroupAction.js +9 -5
  11. package/lib/cjs/components/Groups/Editing/GroupAction.js.map +1 -1
  12. package/lib/cjs/components/Groups/GroupColorLegend.d.ts +3 -3
  13. package/lib/cjs/components/Groups/GroupColorLegend.js.map +1 -1
  14. package/lib/cjs/components/Groups/GroupListItem.d.ts +4 -4
  15. package/lib/cjs/components/Groups/GroupListItem.js +6 -3
  16. package/lib/cjs/components/Groups/GroupListItem.js.map +1 -1
  17. package/lib/cjs/components/Groups/GroupListItem.scss +14 -0
  18. package/lib/cjs/components/Groups/GroupMenuActions.d.ts +4 -4
  19. package/lib/cjs/components/Groups/GroupMenuActions.js.map +1 -1
  20. package/lib/cjs/components/Groups/GroupMenuActions.scss +2 -0
  21. package/lib/cjs/components/Groups/GroupOverlapProgressBar.d.ts +2 -2
  22. package/lib/cjs/components/Groups/GroupOverlapProgressBar.js.map +1 -1
  23. package/lib/cjs/components/Groups/Groups.d.ts +12 -4
  24. package/lib/cjs/components/Groups/Groups.js +4 -0
  25. package/lib/cjs/components/Groups/Groups.js.map +1 -1
  26. package/lib/cjs/components/Groups/GroupsShowHideButtons.d.ts +4 -4
  27. package/lib/cjs/components/Groups/GroupsShowHideButtons.js.map +1 -1
  28. package/lib/cjs/components/Groups/GroupsView.d.ts +19 -11
  29. package/lib/cjs/components/Groups/GroupsView.js +4 -0
  30. package/lib/cjs/components/Groups/GroupsView.js.map +1 -1
  31. package/lib/cjs/components/Groups/GroupsVisualization.d.ts +8 -0
  32. package/lib/cjs/components/Groups/GroupsVisualization.js +8 -4
  33. package/lib/cjs/components/Groups/GroupsVisualization.js.map +1 -1
  34. package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.d.ts +3 -3
  35. package/lib/cjs/components/Groups/OverlappedElementsInformationPanel.js.map +1 -1
  36. package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderCustomUI.d.ts +2 -2
  37. package/lib/cjs/components/Groups/QueryBuilder/QueryBuilderCustomUI.js.map +1 -1
  38. package/lib/cjs/components/Groups/groupsHelpers.d.ts +2 -2
  39. package/lib/cjs/components/Groups/groupsHelpers.js.map +1 -1
  40. package/lib/cjs/components/Groups/hooks/useFetchGroups.d.ts +3 -3
  41. package/lib/cjs/components/Groups/hooks/useFetchGroups.js +6 -5
  42. package/lib/cjs/components/Groups/hooks/useFetchGroups.js.map +1 -1
  43. package/lib/cjs/components/Groups/hooks/useGroupsOperations.d.ts +15 -7
  44. package/lib/cjs/components/Groups/hooks/useGroupsOperations.js +9 -5
  45. package/lib/cjs/components/Groups/hooks/useGroupsOperations.js.map +1 -1
  46. package/lib/cjs/components/Groups/hooks/useKeySetHiliteQueries.d.ts +4 -4
  47. package/lib/cjs/components/Groups/hooks/useKeySetHiliteQueries.js.map +1 -1
  48. package/lib/cjs/components/Mappings/Editing/MappingAction.d.ts +8 -0
  49. package/lib/cjs/components/Mappings/Editing/MappingAction.js +7 -2
  50. package/lib/cjs/components/Mappings/Editing/MappingAction.js.map +1 -1
  51. package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.js +4 -2
  52. package/lib/cjs/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -1
  53. package/lib/cjs/components/Mappings/Import/ConfirmMappingsImport.d.ts +1 -2
  54. package/lib/cjs/components/Mappings/Import/ConfirmMappingsImport.js +4 -3
  55. package/lib/cjs/components/Mappings/Import/ConfirmMappingsImport.js.map +1 -1
  56. package/lib/cjs/components/Mappings/Import/MappingImportWizardModal.js +1 -1
  57. package/lib/cjs/components/Mappings/Import/MappingImportWizardModal.js.map +1 -1
  58. package/lib/cjs/components/Mappings/Mappings.d.ts +8 -0
  59. package/lib/cjs/components/Mappings/Mappings.js +4 -0
  60. package/lib/cjs/components/Mappings/Mappings.js.map +1 -1
  61. package/lib/cjs/components/Mappings/MappingsView.d.ts +7 -0
  62. package/lib/cjs/components/Mappings/MappingsView.js +4 -0
  63. package/lib/cjs/components/Mappings/MappingsView.js.map +1 -1
  64. package/lib/cjs/components/Mappings/hooks/useFetchExtractionStatus.d.ts +1 -2
  65. package/lib/cjs/components/Mappings/hooks/useFetchExtractionStatus.js +9 -8
  66. package/lib/cjs/components/Mappings/hooks/useFetchExtractionStatus.js.map +1 -1
  67. package/lib/cjs/components/Mappings/hooks/useFetchMappingExtractionStatus.js +5 -4
  68. package/lib/cjs/components/Mappings/hooks/useFetchMappingExtractionStatus.js.map +1 -1
  69. package/lib/cjs/components/Mappings/hooks/useFetchMappings.js +1 -1
  70. package/lib/cjs/components/Mappings/hooks/useFetchMappings.js.map +1 -1
  71. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.d.ts +9 -2
  72. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js +12 -8
  73. package/lib/cjs/components/Mappings/hooks/useMappingsOperations.js.map +1 -1
  74. package/lib/cjs/components/Mappings/hooks/useRunExtraction.d.ts +1 -1
  75. package/lib/cjs/components/Mappings/hooks/useRunExtraction.js +20 -14
  76. package/lib/cjs/components/Mappings/hooks/useRunExtraction.js.map +1 -1
  77. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.d.ts +10 -2
  78. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.js +20 -7
  79. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyAction.js.map +1 -1
  80. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.d.ts +11 -3
  81. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js +19 -7
  82. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js.map +1 -1
  83. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.d.ts +3 -3
  84. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.js +6 -4
  85. package/lib/cjs/components/Properties/CalculatedProperties/CalculatedPropertyTable.js.map +1 -1
  86. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.d.ts +10 -2
  87. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.js +52 -34
  88. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationAction.js.map +1 -1
  89. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.d.ts +3 -3
  90. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.js +6 -4
  91. package/lib/cjs/components/Properties/CustomCalculations/CustomCalculationTable.js.map +1 -1
  92. package/lib/cjs/components/Properties/GroupColorToggle.d.ts +2 -2
  93. package/lib/cjs/components/Properties/GroupColorToggle.js.map +1 -1
  94. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.d.ts +12 -4
  95. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.js +24 -18
  96. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyAction.js.map +1 -1
  97. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.d.ts +3 -3
  98. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.js +6 -4
  99. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyTable.js.map +1 -1
  100. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyUtils.d.ts +3 -5
  101. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyUtils.js +0 -26
  102. package/lib/cjs/components/Properties/GroupProperties/GroupPropertyUtils.js.map +1 -1
  103. package/lib/cjs/components/Properties/GroupProperties/GroupsPropertiesSelectionModal.js +3 -3
  104. package/lib/cjs/components/Properties/GroupProperties/GroupsPropertiesSelectionModal.js.map +1 -1
  105. package/lib/cjs/components/Properties/PropertyMenu.d.ts +13 -5
  106. package/lib/cjs/components/Properties/PropertyMenu.js +12 -14
  107. package/lib/cjs/components/Properties/PropertyMenu.js.map +1 -1
  108. package/lib/cjs/components/Properties/PropertyMenuWithVisualization.d.ts +8 -0
  109. package/lib/cjs/components/Properties/PropertyMenuWithVisualization.js +4 -0
  110. package/lib/cjs/components/Properties/PropertyMenuWithVisualization.js.map +1 -1
  111. package/lib/cjs/components/Properties/hooks/useFormulaValidation.d.ts +2 -1
  112. package/lib/cjs/components/Properties/hooks/useFormulaValidation.js +8 -4
  113. package/lib/cjs/components/Properties/hooks/useFormulaValidation.js.map +1 -1
  114. package/lib/cjs/components/Properties/hooks/usePropertiesQuery.d.ts +4 -0
  115. package/lib/cjs/components/Properties/hooks/usePropertiesQuery.js +12 -0
  116. package/lib/cjs/components/Properties/hooks/usePropertiesQuery.js.map +1 -0
  117. package/lib/cjs/components/context/ExtractionClientContext.js +3 -3
  118. package/lib/cjs/components/context/ExtractionClientContext.js.map +1 -1
  119. package/lib/cjs/components/context/GroupingApiConfigContext.d.ts +16 -0
  120. package/lib/cjs/components/context/GroupingApiConfigContext.js +7 -0
  121. package/lib/cjs/components/context/GroupingApiConfigContext.js.map +1 -1
  122. package/lib/cjs/components/context/GroupsClientContext.d.ts +20 -0
  123. package/lib/cjs/components/context/GroupsClientContext.js +45 -0
  124. package/lib/cjs/components/context/GroupsClientContext.js.map +1 -0
  125. package/lib/cjs/components/context/MappingClientContext.d.ts +12 -0
  126. package/lib/cjs/components/context/MappingClientContext.js +14 -2
  127. package/lib/cjs/components/context/MappingClientContext.js.map +1 -1
  128. package/lib/cjs/components/context/PropertiesClientContext.d.ts +20 -0
  129. package/lib/cjs/components/context/PropertiesClientContext.js +45 -0
  130. package/lib/cjs/components/context/PropertiesClientContext.js.map +1 -0
  131. package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.d.ts +4 -0
  132. package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.js +4 -0
  133. package/lib/cjs/components/customUI/GroupQueryBuilderCustomUI.js.map +1 -1
  134. package/lib/cjs/components/customUI/GroupingMappingCustomUI.d.ts +15 -3
  135. package/lib/cjs/components/customUI/GroupingMappingCustomUI.js +3 -0
  136. package/lib/cjs/components/customUI/GroupingMappingCustomUI.js.map +1 -1
  137. package/lib/cjs/components/customUI/ManualGroupingCustomUI.d.ts +4 -0
  138. package/lib/cjs/components/customUI/ManualGroupingCustomUI.js +4 -0
  139. package/lib/cjs/components/customUI/ManualGroupingCustomUI.js.map +1 -1
  140. package/lib/cjs/components/customUI/SearchGroupingCustomUI.d.ts +4 -0
  141. package/lib/cjs/components/customUI/SearchGroupingCustomUI.js +4 -0
  142. package/lib/cjs/components/customUI/SearchGroupingCustomUI.js.map +1 -1
  143. package/lib/cjs/formula/FormulaDataTypeResolver.d.ts +1 -0
  144. package/lib/cjs/formula/FormulaDataTypeResolver.js +1 -0
  145. package/lib/cjs/formula/FormulaDataTypeResolver.js.map +1 -1
  146. package/lib/cjs/formula/FormulaFunctionProvider.js +41 -41
  147. package/lib/cjs/formula/FormulaFunctionProvider.js.map +1 -1
  148. package/lib/cjs/formula/FormulaOperatorsProvider.js +3 -3
  149. package/lib/cjs/formula/FormulaOperatorsProvider.js.map +1 -1
  150. package/lib/cjs/formula/FormulaTokensDataTypeResolver.js +2 -2
  151. package/lib/cjs/formula/FormulaTokensDataTypeResolver.js.map +1 -1
  152. package/lib/cjs/formula/IResult.d.ts +3 -0
  153. package/lib/cjs/formula/IResult.js.map +1 -1
  154. package/lib/cjs/formula/Types.d.ts +16 -1
  155. package/lib/cjs/formula/Types.js.map +1 -1
  156. package/lib/cjs/grouping-mapping-widget.d.ts +2 -0
  157. package/lib/cjs/grouping-mapping-widget.js +11 -1
  158. package/lib/cjs/grouping-mapping-widget.js.map +1 -1
  159. package/lib/cjs/test/GroupPropertyUtils.test.js +0 -39
  160. package/lib/cjs/test/GroupPropertyUtils.test.js.map +1 -1
  161. package/lib/cjs/test/GroupingMappingCustomUI.test.js +19 -8
  162. package/lib/cjs/test/GroupingMappingCustomUI.test.js.map +1 -1
  163. package/lib/esm/WidgetShell/GroupingMapping.d.ts +5 -5
  164. package/lib/esm/WidgetShell/GroupingMapping.js.map +1 -1
  165. package/lib/esm/WidgetShell/GroupingMappingWidget.d.ts +4 -0
  166. package/lib/esm/WidgetShell/GroupingMappingWidget.js +4 -0
  167. package/lib/esm/WidgetShell/GroupingMappingWidget.js.map +1 -1
  168. package/lib/esm/components/GroupingMappingContext.d.ts +19 -3
  169. package/lib/esm/components/GroupingMappingContext.js +27 -9
  170. package/lib/esm/components/GroupingMappingContext.js.map +1 -1
  171. package/lib/esm/components/Groups/Editing/GroupAction.d.ts +10 -2
  172. package/lib/esm/components/Groups/Editing/GroupAction.js +9 -5
  173. package/lib/esm/components/Groups/Editing/GroupAction.js.map +1 -1
  174. package/lib/esm/components/Groups/GroupColorLegend.d.ts +3 -3
  175. package/lib/esm/components/Groups/GroupColorLegend.js.map +1 -1
  176. package/lib/esm/components/Groups/GroupListItem.d.ts +4 -4
  177. package/lib/esm/components/Groups/GroupListItem.js +6 -3
  178. package/lib/esm/components/Groups/GroupListItem.js.map +1 -1
  179. package/lib/esm/components/Groups/GroupListItem.scss +14 -0
  180. package/lib/esm/components/Groups/GroupMenuActions.d.ts +4 -4
  181. package/lib/esm/components/Groups/GroupMenuActions.js.map +1 -1
  182. package/lib/esm/components/Groups/GroupMenuActions.scss +2 -0
  183. package/lib/esm/components/Groups/GroupOverlapProgressBar.d.ts +2 -2
  184. package/lib/esm/components/Groups/GroupOverlapProgressBar.js.map +1 -1
  185. package/lib/esm/components/Groups/Groups.d.ts +12 -4
  186. package/lib/esm/components/Groups/Groups.js +4 -0
  187. package/lib/esm/components/Groups/Groups.js.map +1 -1
  188. package/lib/esm/components/Groups/GroupsShowHideButtons.d.ts +4 -4
  189. package/lib/esm/components/Groups/GroupsShowHideButtons.js.map +1 -1
  190. package/lib/esm/components/Groups/GroupsView.d.ts +19 -11
  191. package/lib/esm/components/Groups/GroupsView.js +4 -0
  192. package/lib/esm/components/Groups/GroupsView.js.map +1 -1
  193. package/lib/esm/components/Groups/GroupsVisualization.d.ts +8 -0
  194. package/lib/esm/components/Groups/GroupsVisualization.js +8 -4
  195. package/lib/esm/components/Groups/GroupsVisualization.js.map +1 -1
  196. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.d.ts +3 -3
  197. package/lib/esm/components/Groups/OverlappedElementsInformationPanel.js.map +1 -1
  198. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.d.ts +2 -2
  199. package/lib/esm/components/Groups/QueryBuilder/QueryBuilderCustomUI.js.map +1 -1
  200. package/lib/esm/components/Groups/groupsHelpers.d.ts +2 -2
  201. package/lib/esm/components/Groups/groupsHelpers.js.map +1 -1
  202. package/lib/esm/components/Groups/hooks/useFetchGroups.d.ts +3 -3
  203. package/lib/esm/components/Groups/hooks/useFetchGroups.js +6 -5
  204. package/lib/esm/components/Groups/hooks/useFetchGroups.js.map +1 -1
  205. package/lib/esm/components/Groups/hooks/useGroupsOperations.d.ts +15 -7
  206. package/lib/esm/components/Groups/hooks/useGroupsOperations.js +9 -5
  207. package/lib/esm/components/Groups/hooks/useGroupsOperations.js.map +1 -1
  208. package/lib/esm/components/Groups/hooks/useKeySetHiliteQueries.d.ts +4 -4
  209. package/lib/esm/components/Groups/hooks/useKeySetHiliteQueries.js.map +1 -1
  210. package/lib/esm/components/Mappings/Editing/MappingAction.d.ts +8 -0
  211. package/lib/esm/components/Mappings/Editing/MappingAction.js +7 -2
  212. package/lib/esm/components/Mappings/Editing/MappingAction.js.map +1 -1
  213. package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js +4 -2
  214. package/lib/esm/components/Mappings/Extraction/ExtractionMessageModal.js.map +1 -1
  215. package/lib/esm/components/Mappings/Import/ConfirmMappingsImport.d.ts +1 -2
  216. package/lib/esm/components/Mappings/Import/ConfirmMappingsImport.js +4 -3
  217. package/lib/esm/components/Mappings/Import/ConfirmMappingsImport.js.map +1 -1
  218. package/lib/esm/components/Mappings/Import/MappingImportWizardModal.js +1 -1
  219. package/lib/esm/components/Mappings/Import/MappingImportWizardModal.js.map +1 -1
  220. package/lib/esm/components/Mappings/Mappings.d.ts +8 -0
  221. package/lib/esm/components/Mappings/Mappings.js +4 -0
  222. package/lib/esm/components/Mappings/Mappings.js.map +1 -1
  223. package/lib/esm/components/Mappings/MappingsView.d.ts +7 -0
  224. package/lib/esm/components/Mappings/MappingsView.js +4 -0
  225. package/lib/esm/components/Mappings/MappingsView.js.map +1 -1
  226. package/lib/esm/components/Mappings/hooks/useFetchExtractionStatus.d.ts +1 -2
  227. package/lib/esm/components/Mappings/hooks/useFetchExtractionStatus.js +9 -8
  228. package/lib/esm/components/Mappings/hooks/useFetchExtractionStatus.js.map +1 -1
  229. package/lib/esm/components/Mappings/hooks/useFetchMappingExtractionStatus.js +6 -5
  230. package/lib/esm/components/Mappings/hooks/useFetchMappingExtractionStatus.js.map +1 -1
  231. package/lib/esm/components/Mappings/hooks/useFetchMappings.js +1 -1
  232. package/lib/esm/components/Mappings/hooks/useFetchMappings.js.map +1 -1
  233. package/lib/esm/components/Mappings/hooks/useMappingsOperations.d.ts +9 -2
  234. package/lib/esm/components/Mappings/hooks/useMappingsOperations.js +13 -9
  235. package/lib/esm/components/Mappings/hooks/useMappingsOperations.js.map +1 -1
  236. package/lib/esm/components/Mappings/hooks/useRunExtraction.d.ts +1 -1
  237. package/lib/esm/components/Mappings/hooks/useRunExtraction.js +20 -14
  238. package/lib/esm/components/Mappings/hooks/useRunExtraction.js.map +1 -1
  239. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.d.ts +10 -2
  240. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.js +21 -8
  241. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyAction.js.map +1 -1
  242. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.d.ts +11 -3
  243. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js +20 -8
  244. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyActionWithVisuals.js.map +1 -1
  245. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.d.ts +3 -3
  246. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.js +6 -4
  247. package/lib/esm/components/Properties/CalculatedProperties/CalculatedPropertyTable.js.map +1 -1
  248. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.d.ts +10 -2
  249. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.js +53 -35
  250. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationAction.js.map +1 -1
  251. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.d.ts +3 -3
  252. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.js +6 -4
  253. package/lib/esm/components/Properties/CustomCalculations/CustomCalculationTable.js.map +1 -1
  254. package/lib/esm/components/Properties/GroupColorToggle.d.ts +2 -2
  255. package/lib/esm/components/Properties/GroupColorToggle.js.map +1 -1
  256. package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.d.ts +12 -4
  257. package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.js +24 -18
  258. package/lib/esm/components/Properties/GroupProperties/GroupPropertyAction.js.map +1 -1
  259. package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.d.ts +3 -3
  260. package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.js +6 -4
  261. package/lib/esm/components/Properties/GroupProperties/GroupPropertyTable.js.map +1 -1
  262. package/lib/esm/components/Properties/GroupProperties/GroupPropertyUtils.d.ts +3 -5
  263. package/lib/esm/components/Properties/GroupProperties/GroupPropertyUtils.js +0 -26
  264. package/lib/esm/components/Properties/GroupProperties/GroupPropertyUtils.js.map +1 -1
  265. package/lib/esm/components/Properties/GroupProperties/GroupsPropertiesSelectionModal.js +3 -3
  266. package/lib/esm/components/Properties/GroupProperties/GroupsPropertiesSelectionModal.js.map +1 -1
  267. package/lib/esm/components/Properties/PropertyMenu.d.ts +13 -5
  268. package/lib/esm/components/Properties/PropertyMenu.js +12 -14
  269. package/lib/esm/components/Properties/PropertyMenu.js.map +1 -1
  270. package/lib/esm/components/Properties/PropertyMenuWithVisualization.d.ts +8 -0
  271. package/lib/esm/components/Properties/PropertyMenuWithVisualization.js +4 -0
  272. package/lib/esm/components/Properties/PropertyMenuWithVisualization.js.map +1 -1
  273. package/lib/esm/components/Properties/hooks/useFormulaValidation.d.ts +2 -1
  274. package/lib/esm/components/Properties/hooks/useFormulaValidation.js +8 -4
  275. package/lib/esm/components/Properties/hooks/useFormulaValidation.js.map +1 -1
  276. package/lib/esm/components/Properties/hooks/usePropertiesQuery.d.ts +4 -0
  277. package/lib/esm/components/Properties/hooks/usePropertiesQuery.js +8 -0
  278. package/lib/esm/components/Properties/hooks/usePropertiesQuery.js.map +1 -0
  279. package/lib/esm/components/context/ExtractionClientContext.js +3 -3
  280. package/lib/esm/components/context/ExtractionClientContext.js.map +1 -1
  281. package/lib/esm/components/context/GroupingApiConfigContext.d.ts +16 -0
  282. package/lib/esm/components/context/GroupingApiConfigContext.js +7 -0
  283. package/lib/esm/components/context/GroupingApiConfigContext.js.map +1 -1
  284. package/lib/esm/components/context/GroupsClientContext.d.ts +20 -0
  285. package/lib/esm/components/context/GroupsClientContext.js +39 -0
  286. package/lib/esm/components/context/GroupsClientContext.js.map +1 -0
  287. package/lib/esm/components/context/MappingClientContext.d.ts +12 -0
  288. package/lib/esm/components/context/MappingClientContext.js +15 -3
  289. package/lib/esm/components/context/MappingClientContext.js.map +1 -1
  290. package/lib/esm/components/context/PropertiesClientContext.d.ts +20 -0
  291. package/lib/esm/components/context/PropertiesClientContext.js +39 -0
  292. package/lib/esm/components/context/PropertiesClientContext.js.map +1 -0
  293. package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.d.ts +4 -0
  294. package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.js +4 -0
  295. package/lib/esm/components/customUI/GroupQueryBuilderCustomUI.js.map +1 -1
  296. package/lib/esm/components/customUI/GroupingMappingCustomUI.d.ts +15 -3
  297. package/lib/esm/components/customUI/GroupingMappingCustomUI.js +3 -0
  298. package/lib/esm/components/customUI/GroupingMappingCustomUI.js.map +1 -1
  299. package/lib/esm/components/customUI/ManualGroupingCustomUI.d.ts +4 -0
  300. package/lib/esm/components/customUI/ManualGroupingCustomUI.js +4 -0
  301. package/lib/esm/components/customUI/ManualGroupingCustomUI.js.map +1 -1
  302. package/lib/esm/components/customUI/SearchGroupingCustomUI.d.ts +4 -0
  303. package/lib/esm/components/customUI/SearchGroupingCustomUI.js +4 -0
  304. package/lib/esm/components/customUI/SearchGroupingCustomUI.js.map +1 -1
  305. package/lib/esm/formula/FormulaDataTypeResolver.d.ts +1 -0
  306. package/lib/esm/formula/FormulaDataTypeResolver.js +1 -0
  307. package/lib/esm/formula/FormulaDataTypeResolver.js.map +1 -1
  308. package/lib/esm/formula/FormulaFunctionProvider.js +41 -41
  309. package/lib/esm/formula/FormulaFunctionProvider.js.map +1 -1
  310. package/lib/esm/formula/FormulaOperatorsProvider.js +3 -3
  311. package/lib/esm/formula/FormulaOperatorsProvider.js.map +1 -1
  312. package/lib/esm/formula/FormulaTokensDataTypeResolver.js +2 -2
  313. package/lib/esm/formula/FormulaTokensDataTypeResolver.js.map +1 -1
  314. package/lib/esm/formula/IResult.d.ts +3 -0
  315. package/lib/esm/formula/IResult.js.map +1 -1
  316. package/lib/esm/formula/Types.d.ts +16 -1
  317. package/lib/esm/formula/Types.js.map +1 -1
  318. package/lib/esm/grouping-mapping-widget.d.ts +2 -0
  319. package/lib/esm/grouping-mapping-widget.js +2 -0
  320. package/lib/esm/grouping-mapping-widget.js.map +1 -1
  321. package/lib/esm/test/GroupPropertyUtils.test.js +0 -39
  322. package/lib/esm/test/GroupPropertyUtils.test.js.map +1 -1
  323. package/lib/esm/test/GroupingMappingCustomUI.test.js +19 -8
  324. package/lib/esm/test/GroupingMappingCustomUI.test.js.map +1 -1
  325. package/package.json +3 -2
  326. package/lib/cjs/components/Properties/hooks/useCalculatedPropertiesQuery.d.ts +0 -4
  327. package/lib/cjs/components/Properties/hooks/useCalculatedPropertiesQuery.js +0 -12
  328. package/lib/cjs/components/Properties/hooks/useCalculatedPropertiesQuery.js.map +0 -1
  329. package/lib/cjs/components/Properties/hooks/useCustomCalculationsQuery.d.ts +0 -4
  330. package/lib/cjs/components/Properties/hooks/useCustomCalculationsQuery.js +0 -12
  331. package/lib/cjs/components/Properties/hooks/useCustomCalculationsQuery.js.map +0 -1
  332. package/lib/cjs/components/Properties/hooks/useGroupPropertiesQuery.d.ts +0 -4
  333. package/lib/cjs/components/Properties/hooks/useGroupPropertiesQuery.js +0 -12
  334. package/lib/cjs/components/Properties/hooks/useGroupPropertiesQuery.js.map +0 -1
  335. package/lib/esm/components/Properties/hooks/useCalculatedPropertiesQuery.d.ts +0 -4
  336. package/lib/esm/components/Properties/hooks/useCalculatedPropertiesQuery.js +0 -8
  337. package/lib/esm/components/Properties/hooks/useCalculatedPropertiesQuery.js.map +0 -1
  338. package/lib/esm/components/Properties/hooks/useCustomCalculationsQuery.d.ts +0 -4
  339. package/lib/esm/components/Properties/hooks/useCustomCalculationsQuery.js +0 -8
  340. package/lib/esm/components/Properties/hooks/useCustomCalculationsQuery.js.map +0 -1
  341. package/lib/esm/components/Properties/hooks/useGroupPropertiesQuery.d.ts +0 -4
  342. package/lib/esm/components/Properties/hooks/useGroupPropertiesQuery.js +0 -8
  343. package/lib/esm/components/Properties/hooks/useGroupPropertiesQuery.js.map +0 -1
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const insights_client_1 = require("@itwin/insights-client");
4
3
  const GroupPropertyUtils_1 = require("../components/Properties/GroupProperties/GroupPropertyUtils");
5
4
  const PropertyFieldsHelpers_1 = require("./PropertyFieldsHelpers");
6
5
  const chai_1 = require("chai");
@@ -15,7 +14,6 @@ describe("Group properties utilities", () => {
15
14
  sourceSchema: "*",
16
15
  sourceClassName: "*",
17
16
  ecPropertyTraversal: ["PropertyName"],
18
- propertyType: insights_client_1.DataType.String,
19
17
  primitiveNavigationClass: "",
20
18
  actualECClassName: "SchemaName:ClassName",
21
19
  parentPropertyClassName: undefined,
@@ -41,7 +39,6 @@ describe("Group properties utilities", () => {
41
39
  sourceSchema: "*",
42
40
  sourceClassName: "*",
43
41
  ecPropertyTraversal: ["propString"],
44
- propertyType: insights_client_1.DataType.String,
45
42
  primitiveNavigationClass: "",
46
43
  actualECClassName: "SchemaName:ClassName",
47
44
  parentPropertyClassName: undefined,
@@ -53,7 +50,6 @@ describe("Group properties utilities", () => {
53
50
  sourceSchema: "*",
54
51
  sourceClassName: "*",
55
52
  ecPropertyTraversal: ["propInt"],
56
- propertyType: insights_client_1.DataType.Integer,
57
53
  primitiveNavigationClass: "",
58
54
  actualECClassName: "SchemaName:ClassName",
59
55
  parentPropertyClassName: undefined,
@@ -65,7 +61,6 @@ describe("Group properties utilities", () => {
65
61
  sourceSchema: "*",
66
62
  sourceClassName: "*",
67
63
  ecPropertyTraversal: ["propBool"],
68
- propertyType: insights_client_1.DataType.Boolean,
69
64
  primitiveNavigationClass: "",
70
65
  actualECClassName: "SchemaName:ClassName",
71
66
  parentPropertyClassName: undefined,
@@ -77,7 +72,6 @@ describe("Group properties utilities", () => {
77
72
  sourceSchema: "*",
78
73
  sourceClassName: "*",
79
74
  ecPropertyTraversal: ["propEnum"],
80
- propertyType: insights_client_1.DataType.Integer,
81
75
  primitiveNavigationClass: "",
82
76
  actualECClassName: "SchemaName:ClassName",
83
77
  parentPropertyClassName: undefined,
@@ -89,7 +83,6 @@ describe("Group properties utilities", () => {
89
83
  sourceSchema: "*",
90
84
  sourceClassName: "*",
91
85
  ecPropertyTraversal: ["propLong"],
92
- propertyType: insights_client_1.DataType.Integer,
93
86
  primitiveNavigationClass: "",
94
87
  actualECClassName: "SchemaName:ClassName",
95
88
  parentPropertyClassName: undefined,
@@ -101,7 +94,6 @@ describe("Group properties utilities", () => {
101
94
  sourceSchema: "*",
102
95
  sourceClassName: "*",
103
96
  ecPropertyTraversal: ["propNumber"],
104
- propertyType: insights_client_1.DataType.Number,
105
97
  primitiveNavigationClass: "",
106
98
  actualECClassName: "SchemaName:ClassName",
107
99
  parentPropertyClassName: undefined,
@@ -135,7 +127,6 @@ describe("Group properties utilities", () => {
135
127
  sourceSchema: "SchemaName",
136
128
  sourceClassName: "ClassName",
137
129
  ecPropertyTraversal: ["prop1"],
138
- propertyType: insights_client_1.DataType.String,
139
130
  primitiveNavigationClass: "",
140
131
  actualECClassName: "SchemaName:ClassName",
141
132
  parentPropertyClassName: "SchemaName:ClassName",
@@ -169,7 +160,6 @@ describe("Group properties utilities", () => {
169
160
  sourceSchema: "SchemaName",
170
161
  sourceClassName: "ClassName",
171
162
  ecPropertyTraversal: ["prop1"],
172
- propertyType: insights_client_1.DataType.String,
173
163
  primitiveNavigationClass: "",
174
164
  actualECClassName: "SchemaName:ClassName",
175
165
  parentPropertyClassName: "SchemaName:ClassName",
@@ -206,7 +196,6 @@ describe("Group properties utilities", () => {
206
196
  key: "SchemaName:ClassName|SchemaName:ClassName|TypeDefinition|prop1",
207
197
  parentPropertyClassName: "SchemaName:ClassName",
208
198
  primitiveNavigationClass: "",
209
- propertyType: insights_client_1.DataType.String,
210
199
  sourceClassName: "*",
211
200
  sourceSchema: "*",
212
201
  },
@@ -263,7 +252,6 @@ describe("Group properties utilities", () => {
263
252
  sourceSchema: "SchemaName",
264
253
  sourceClassName: "ClassName",
265
254
  ecPropertyTraversal: ["Identifier"],
266
- propertyType: insights_client_1.DataType.String,
267
255
  primitiveNavigationClass: "",
268
256
  actualECClassName: "SchemaName:ClassName",
269
257
  parentPropertyClassName: "SchemaName:ClassName",
@@ -275,7 +263,6 @@ describe("Group properties utilities", () => {
275
263
  sourceSchema: "SchemaName",
276
264
  sourceClassName: "ClassName",
277
265
  ecPropertyTraversal: ["Source", "Repository", "name"],
278
- propertyType: insights_client_1.DataType.String,
279
266
  primitiveNavigationClass: "",
280
267
  actualECClassName: "SchemaName:ClassName",
281
268
  parentPropertyClassName: "BisCore:RepositoryLink",
@@ -287,7 +274,6 @@ describe("Group properties utilities", () => {
287
274
  sourceSchema: "SchemaName",
288
275
  sourceClassName: "ClassName",
289
276
  ecPropertyTraversal: ["Source", "Repository", "path"],
290
- propertyType: insights_client_1.DataType.String,
291
277
  primitiveNavigationClass: "",
292
278
  actualECClassName: "SchemaName:ClassName",
293
279
  parentPropertyClassName: "BisCore:RepositoryLink",
@@ -319,7 +305,6 @@ describe("Group properties utilities", () => {
319
305
  sourceSchema: "*",
320
306
  sourceClassName: "*",
321
307
  ecPropertyTraversal: ["PropertyName", "prop1"],
322
- propertyType: insights_client_1.DataType.String,
323
308
  primitiveNavigationClass: "",
324
309
  actualECClassName: "Struct:Class",
325
310
  parentPropertyClassName: undefined,
@@ -367,7 +352,6 @@ describe("Group properties utilities", () => {
367
352
  sourceSchema: "*",
368
353
  sourceClassName: "*",
369
354
  ecPropertyTraversal: ["PropertyName", "prop1"],
370
- propertyType: insights_client_1.DataType.String,
371
355
  primitiveNavigationClass: "",
372
356
  actualECClassName: "Struct:Class",
373
357
  parentPropertyClassName: undefined,
@@ -379,7 +363,6 @@ describe("Group properties utilities", () => {
379
363
  sourceSchema: "*",
380
364
  sourceClassName: "*",
381
365
  ecPropertyTraversal: ["PropertyName", "struct1", "prop2"],
382
- propertyType: insights_client_1.DataType.String,
383
366
  primitiveNavigationClass: "",
384
367
  actualECClassName: "Struct:Class",
385
368
  parentPropertyClassName: undefined,
@@ -408,7 +391,6 @@ describe("Group properties utilities", () => {
408
391
  sourceSchema: "*",
409
392
  sourceClassName: "*",
410
393
  ecPropertyTraversal: ["Model"],
411
- propertyType: insights_client_1.DataType.String,
412
394
  primitiveNavigationClass: "BisCore:ModelContainsElements",
413
395
  actualECClassName: "BisCore:Element",
414
396
  parentPropertyClassName: undefined,
@@ -424,7 +406,6 @@ describe("Group properties utilities", () => {
424
406
  sourceSchema: "Schema",
425
407
  sourceClassName: "Class",
426
408
  ecPropertyTraversal: ["PropertyName", "SecondProperty"],
427
- propertyType: insights_client_1.DataType.String,
428
409
  primitiveNavigationClass: "",
429
410
  actualECClassName: "SchemaName:ClassName",
430
411
  parentPropertyClassName: undefined,
@@ -436,7 +417,6 @@ describe("Group properties utilities", () => {
436
417
  {
437
418
  ecSchemaName: "Schema",
438
419
  ecClassName: "Class",
439
- ecPropertyType: insights_client_1.DataType.String,
440
420
  ecPropertyName: "PropertyName.SecondProperty",
441
421
  },
442
422
  ];
@@ -450,7 +430,6 @@ describe("Group properties utilities", () => {
450
430
  ecPropertyTraversal: [
451
431
  "Model",
452
432
  ],
453
- propertyType: insights_client_1.DataType.String,
454
433
  primitiveNavigationClass: "BisCore:ModelContainsElements",
455
434
  actualECClassName: "BisCore:Element",
456
435
  key: "undefined|BisCore:Element|Model",
@@ -462,13 +441,11 @@ describe("Group properties utilities", () => {
462
441
  {
463
442
  ecSchemaName: "*",
464
443
  ecClassName: "*",
465
- ecPropertyType: insights_client_1.DataType.String,
466
444
  ecPropertyName: "Model.ModeledElement.UserLabel",
467
445
  },
468
446
  {
469
447
  ecSchemaName: "*",
470
448
  ecClassName: "*",
471
- ecPropertyType: insights_client_1.DataType.String,
472
449
  ecPropertyName: "Model.ModeledElement.CodeValue",
473
450
  },
474
451
  ];
@@ -482,7 +459,6 @@ describe("Group properties utilities", () => {
482
459
  ecPropertyTraversal: [
483
460
  "Category",
484
461
  ],
485
- propertyType: insights_client_1.DataType.String,
486
462
  primitiveNavigationClass: "BisCore:GeometricElement3dIsInCategory",
487
463
  actualECClassName: "BisCore:GeometricElement3d",
488
464
  key: "undefined|BisCore:GeometricElement3d|Category",
@@ -494,13 +470,11 @@ describe("Group properties utilities", () => {
494
470
  {
495
471
  ecSchemaName: "*",
496
472
  ecClassName: "*",
497
- ecPropertyType: insights_client_1.DataType.String,
498
473
  ecPropertyName: "Category.UserLabel",
499
474
  },
500
475
  {
501
476
  ecSchemaName: "*",
502
477
  ecClassName: "*",
503
- ecPropertyType: insights_client_1.DataType.String,
504
478
  ecPropertyName: "Category.CodeValue",
505
479
  },
506
480
  ];
@@ -514,7 +488,6 @@ describe("Group properties utilities", () => {
514
488
  ecPropertyTraversal: [
515
489
  "PhysicalMaterial",
516
490
  ],
517
- propertyType: insights_client_1.DataType.String,
518
491
  primitiveNavigationClass: "BisCore:PhysicalElementIsOfPhysicalMaterial",
519
492
  actualECClassName: "BisCore:PhysicalElement",
520
493
  key: "undefined|BisCore:PhysicalElement|PhysicalMaterial",
@@ -526,13 +499,11 @@ describe("Group properties utilities", () => {
526
499
  {
527
500
  ecSchemaName: "*",
528
501
  ecClassName: "*",
529
- ecPropertyType: insights_client_1.DataType.String,
530
502
  ecPropertyName: "PhysicalMaterial.UserLabel",
531
503
  },
532
504
  {
533
505
  ecSchemaName: "*",
534
506
  ecClassName: "*",
535
- ecPropertyType: insights_client_1.DataType.String,
536
507
  ecPropertyName: "PhysicalMaterial.CodeValue",
537
508
  },
538
509
  ];
@@ -545,7 +516,6 @@ describe("Group properties utilities", () => {
545
516
  sourceSchema: "*",
546
517
  sourceClassName: "*",
547
518
  ecPropertyTraversal: ["propString"],
548
- propertyType: insights_client_1.DataType.String,
549
519
  primitiveNavigationClass: "",
550
520
  actualECClassName: "SchemaName:ClassName",
551
521
  parentPropertyClassName: undefined,
@@ -557,7 +527,6 @@ describe("Group properties utilities", () => {
557
527
  sourceSchema: "*",
558
528
  sourceClassName: "*",
559
529
  ecPropertyTraversal: ["propInt"],
560
- propertyType: insights_client_1.DataType.Integer,
561
530
  primitiveNavigationClass: "",
562
531
  actualECClassName: "SchemaName:ClassName",
563
532
  parentPropertyClassName: undefined,
@@ -569,13 +538,11 @@ describe("Group properties utilities", () => {
569
538
  {
570
539
  ecSchemaName: "*",
571
540
  ecClassName: "*",
572
- ecPropertyType: insights_client_1.DataType.String,
573
541
  ecPropertyName: "propString",
574
542
  },
575
543
  {
576
544
  ecSchemaName: "*",
577
545
  ecClassName: "*",
578
- ecPropertyType: insights_client_1.DataType.Integer,
579
546
  ecPropertyName: "propInt",
580
547
  },
581
548
  ];
@@ -590,7 +557,6 @@ describe("Group properties utilities", () => {
590
557
  ecPropertyTraversal: [
591
558
  "Model",
592
559
  ],
593
- propertyType: insights_client_1.DataType.String,
594
560
  primitiveNavigationClass: "BisCore:ModelContainsElements",
595
561
  actualECClassName: "BisCore:Element",
596
562
  key: "undefined|BisCore:Element|Model",
@@ -601,13 +567,11 @@ describe("Group properties utilities", () => {
601
567
  {
602
568
  ecSchemaName: "*",
603
569
  ecClassName: "*",
604
- ecPropertyType: insights_client_1.DataType.String,
605
570
  ecPropertyName: "Model.ModeledElement.UserLabel",
606
571
  },
607
572
  {
608
573
  ecSchemaName: "*",
609
574
  ecClassName: "*",
610
- ecPropertyType: insights_client_1.DataType.String,
611
575
  ecPropertyName: "Model.ModeledElement.CodeValue",
612
576
  },
613
577
  ];
@@ -622,7 +586,6 @@ describe("Group properties utilities", () => {
622
586
  ecPropertyTraversal: [
623
587
  "Model",
624
588
  ],
625
- propertyType: insights_client_1.DataType.String,
626
589
  primitiveNavigationClass: "BisCore:ModelContainsElements",
627
590
  actualECClassName: "BisCore:Element",
628
591
  key: "undefined|BisCore:Element|Model",
@@ -633,13 +596,11 @@ describe("Group properties utilities", () => {
633
596
  {
634
597
  ecSchemaName: "*",
635
598
  ecClassName: "*",
636
- ecPropertyType: insights_client_1.DataType.String,
637
599
  ecPropertyName: "Model.ModeledElement.CodeValue",
638
600
  },
639
601
  {
640
602
  ecSchemaName: "*",
641
603
  ecClassName: "*",
642
- ecPropertyType: insights_client_1.DataType.String,
643
604
  ecPropertyName: "Model.ModeledElement.UserLabel",
644
605
  },
645
606
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"GroupPropertyUtils.test.js","sourceRoot":"","sources":["../../../src/test/GroupPropertyUtils.test.ts"],"names":[],"mappings":";;AAKA,4DAAkD;AAElD,oGAA+I;AAC/I,mEAAoL;AACpL,+BAAsC;AAEtC,oEAAsF;AAEtF,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,cAAc,GAAG,CAAC,IAAA,wDAAgC,EAAC,EAAE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAA,8CAAsB,GAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAEpH,MAAM,MAAM,GAAG,IAAA,8CAAyB,EAAC,cAAc,CAAC,CAAC;QAEzD,MAAM,cAAc,GAAuB;YACzC;gBACE,YAAY,EAAE,kBAAkB;gBAChC,YAAY,EAAE,GAAG;gBACjB,eAAe,EAAE,GAAG;gBACpB,mBAAmB,EAAE,CAAC,cAAc,CAAC;gBACrC,YAAY,EAAE,0BAAQ,CAAC,MAAM;gBAC7B,wBAAwB,EAAE,EAAE;gBAC5B,iBAAiB,EAAE,sBAAsB;gBACzC,uBAAuB,EAAE,SAAS;gBAClC,GAAG,EAAE,6CAA6C;gBAClD,aAAa,EAAE,eAAe;aAC/B;SACF,CAAC;QAEF,aAAM,CAAC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,MAAM,cAAc,GAAG,CAAC,IAAA,8CAAsB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;YACpE,IAAA,8CAAsB,EAA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ACjD;SACF,CAAC;QAEF,MAAM,MAAM,GAAG,IAAA,mCAAc,EAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC;QAChE,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AAEL,CAAC,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 { ECProperty } from \"@itwin/insights-client\";\nimport { DataType } from \"@itwin/insights-client\";\nimport type { PropertyMetaData } from \"../components/Properties/GroupProperties/GroupPropertyUtils\";\nimport { convertPresentationFields, convertToECProperties, findProperties } from \"../components/Properties/GroupProperties/GroupPropertyUtils\";\nimport { createTestECClassInfo, createTestNestedContentField, createTestPropertiesContentField, createTestPropertyInfo, createTestRelatedClassInfo } from \"./PropertyFieldsHelpers\";\nimport { assert, expect } from \"chai\";\nimport type { NavigationPropertyInfo, StructTypeDescription } from \"@itwin/presentation-common\";\nimport { PropertyValueFormat, RelationshipMeaning } from \"@itwin/presentation-common\";\n\ndescribe(\"Group properties utilities\", () => {\n it(\"one primitive string property\", () => {\n const propertyFields = [createTestPropertiesContentField({ properties: [{ property: createTestPropertyInfo() }] })];\n\n const result = convertPresentationFields(propertyFields);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"PropertyName\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|PropertyName\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"multiple primitive properies of different types\", () => {\n const testProperties = [createTestPropertyInfo({ name: \"propString\" }),\n createTestPropertyInfo({ name: \"propInt\", type: \"int\" }),\n createTestPropertyInfo({ name: \"propBool\", type: \"boolean\" }),\n createTestPropertyInfo({ name: \"propEnum\", type: \"enum\" }),\n createTestPropertyInfo({ name: \"propLong\", type: \"long\" }),\n createTestPropertyInfo({ name: \"propNumber\", type: \"number\" }),\n ];\n const propertyFields = testProperties.map((p) => createTestPropertiesContentField({ properties: [{ property: p }] }));\n\n const result = convertPresentationFields(propertyFields);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propString\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propString\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propInt\"],\n propertyType: DataType.Integer,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propInt\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propBool\"],\n propertyType: DataType.Boolean,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propBool\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propEnum\"],\n propertyType: DataType.Integer,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propEnum\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propLong\"],\n propertyType: DataType.Integer,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propLong\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propNumber\"],\n propertyType: DataType.Number,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propNumber\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"one BisCore:ElementOwnsUniqueAspect nested property\", () => {\n const propertiesField = createTestPropertiesContentField({\n properties: [{ property: createTestPropertyInfo({ name: \"prop1\" }) }],\n });\n\n const nestedAspectField = createTestNestedContentField({\n nestedFields: [propertiesField],\n relationshipMeaning: RelationshipMeaning.SameInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"Some:UniqueAspect\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:ElementOwnsUniqueAspect\" }),\n targetClassInfo: createTestECClassInfo({ name: \"Schema:Class\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const result = convertPresentationFields([nestedAspectField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"prop1\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"SchemaName:ClassName\",\n key: \"SchemaName:ClassName|SchemaName:ClassName|prop1\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n\n });\n\n it(\"one BisCore:ElementOwnsMultiAspects nested property\", () => {\n\n const propertiesField = createTestPropertiesContentField({\n properties: [{ property: createTestPropertyInfo({ name: \"prop1\" }) }],\n });\n\n const nestedAspectField = createTestNestedContentField({\n nestedFields: [propertiesField],\n relationshipMeaning: RelationshipMeaning.SameInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"Some:MultiAspect\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:ElementOwnsMultiAspects\" }),\n targetClassInfo: createTestECClassInfo({ name: \"Schema:Class\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const result = convertPresentationFields([nestedAspectField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"prop1\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"SchemaName:ClassName\",\n key: \"SchemaName:ClassName|SchemaName:ClassName|prop1\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n\n });\n\n it(\"one BisCore:GeometricElement3dHasTypeDefinition nested property\", () => {\n\n const propertiesField = createTestPropertiesContentField({\n properties: [{ property: createTestPropertyInfo({ name: \"prop1\" }) }],\n });\n\n const nestedAspectField = createTestNestedContentField({\n nestedFields: [propertiesField],\n relationshipMeaning: RelationshipMeaning.RelatedInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"Schema:SomeType\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:GeometricElement3dHasTypeDefinition\" }),\n targetClassInfo: createTestECClassInfo({ name: \"Schema:Class\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const result = convertPresentationFields([nestedAspectField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n actualECClassName: \"SchemaName:ClassName\",\n categoryLabel: \"Test Category\",\n displayLabel: \"Properties Field\",\n ecPropertyTraversal: [\"TypeDefinition\", \"prop1\"],\n key: \"SchemaName:ClassName|SchemaName:ClassName|TypeDefinition|prop1\",\n parentPropertyClassName: \"SchemaName:ClassName\",\n primitiveNavigationClass: \"\",\n propertyType: DataType.String,\n sourceClassName: \"*\",\n sourceSchema: \"*\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n\n });\n\n it(\"generate proper external source metadata\", () => {\n\n const propertyName = createTestPropertyInfo({ name: \"name\" });\n const propertyPath = createTestPropertyInfo({ name: \"path\" });\n const repositoryProperties = createTestPropertiesContentField({\n properties: [{ property: propertyName }, { property: propertyPath }],\n });\n\n const nestedExternalSource = createTestNestedContentField({\n nestedFields: [repositoryProperties],\n contentClassInfo: { name: \"BisCore:RepositoryLink\", id: \"\", label: \"\" },\n relationshipMeaning: RelationshipMeaning.SameInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"BisCore:ExternalSourceIsInRepository\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:RepositoryLink\" }),\n targetClassInfo: createTestECClassInfo({ name: \"BisCore:ExternalSource\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"BisCore:ElementIsFromSource\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:ExternalSource\" }),\n targetClassInfo: createTestECClassInfo({ name: \"BisCore:ExternalSourceAspect\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const propertiesField = createTestPropertiesContentField({\n properties: [{ property: createTestPropertyInfo({ name: \"Identifier\" }) }],\n });\n\n const nestedSourceAspectField = createTestNestedContentField({\n nestedFields: [propertiesField, nestedExternalSource],\n relationshipMeaning: RelationshipMeaning.SameInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"BisCore:ExternalSourceAspect\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:ElementOwnsMultiAspects\" }),\n targetClassInfo: createTestECClassInfo({ name: \"Schema:Class\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const result = convertPresentationFields([nestedSourceAspectField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"Identifier\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"SchemaName:ClassName\",\n key: \"SchemaName:ClassName|SchemaName:ClassName|Identifier\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"Source\", \"Repository\", \"name\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"BisCore:RepositoryLink\",\n key: \"BisCore:RepositoryLink|SchemaName:ClassName|Source|Repository|name\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"Source\", \"Repository\", \"path\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"BisCore:RepositoryLink\",\n key: \"BisCore:RepositoryLink|SchemaName:ClassName|Source|Repository|path\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n\n });\n\n it(\"handle simple structs correctly\", () => {\n const structPropertyClass = createTestPropertyInfo({ classInfo: { id: \"0\", label: \"\", name: \"Struct:Class\" } });\n\n const structContentFieldDescription: StructTypeDescription = {\n valueFormat: PropertyValueFormat.Struct,\n typeName: \"StructType\",\n members: [{\n name: \"prop1\",\n label: \"prop one\",\n type: {\n typeName: \"string\",\n valueFormat: PropertyValueFormat.Primitive,\n },\n }],\n };\n const simpleStructField = createTestPropertiesContentField({ properties: [{ property: structPropertyClass }], type: structContentFieldDescription });\n\n const result = convertPresentationFields([simpleStructField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"prop one\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"PropertyName\", \"prop1\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"Struct:Class\",\n parentPropertyClassName: undefined,\n key: \"undefined|Struct:Class|PropertyName|prop1\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n }\n );\n\n it(\"handle simple nested structs correctly\", () => {\n const structPropertyClass = createTestPropertyInfo({ classInfo: { id: \"0\", label: \"\", name: \"Struct:Class\" } });\n\n const structContentFieldDescription: StructTypeDescription = {\n valueFormat: PropertyValueFormat.Struct,\n typeName: \"StructType\",\n members: [{\n name: \"prop1\",\n label: \"prop one\",\n type: {\n typeName: \"string\",\n valueFormat: PropertyValueFormat.Primitive,\n },\n },\n {\n name: \"struct1\",\n label: \"struct1\",\n type: {\n typeName: \"string\",\n valueFormat: PropertyValueFormat.Struct,\n members: [{\n name: \"prop2\",\n label: \"prop 2\",\n type: {\n typeName: \"string\",\n valueFormat: PropertyValueFormat.Primitive,\n },\n }],\n },\n }],\n };\n\n const simpleStructField = createTestPropertiesContentField({ properties: [{ property: structPropertyClass }], type: structContentFieldDescription });\n\n const result = convertPresentationFields([simpleStructField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"prop one\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"PropertyName\", \"prop1\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"Struct:Class\",\n parentPropertyClassName: undefined,\n key: \"undefined|Struct:Class|PropertyName|prop1\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"prop 2\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"PropertyName\", \"struct1\", \"prop2\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"Struct:Class\",\n parentPropertyClassName: undefined,\n key: \"undefined|Struct:Class|PropertyName|struct1|prop2\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n }\n );\n\n it(\"handle primitive navigation (Model)\", () => {\n const modelClassInfo = createTestECClassInfo({ name: \"BisCore:Element\", label: \"Element\" });\n const navigationClassInfo = createTestECClassInfo({ name: \"BisCore:ModelContainsElements\", label: \"ModelContainsElements\" });\n\n const navigationPropertyInfo: NavigationPropertyInfo = {\n classInfo: navigationClassInfo,\n isForwardRelationship: false,\n // Target class does not matter\n targetClassInfo: createTestECClassInfo(),\n isTargetPolymorphic: true,\n\n };\n\n const modelPropertyInfo = createTestPropertyInfo({ name: \"Model\", classInfo: modelClassInfo, type: \"long\", navigationPropertyInfo });\n\n const simpleModelField = createTestPropertiesContentField({ label: \"Model\", properties: [{ property: modelPropertyInfo }] });\n\n const result = convertPresentationFields([simpleModelField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Model\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"Model\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"BisCore:ModelContainsElements\",\n actualECClassName: \"BisCore:Element\",\n parentPropertyClassName: undefined,\n key: \"undefined|BisCore:Element|Model\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n }\n );\n\n it(\"convert PropertyMetaData non primitive navigation into ECProperty\", () => {\n const propertyMetaData: PropertyMetaData = {\n displayLabel: \"A Property\",\n sourceSchema: \"Schema\",\n sourceClassName: \"Class\",\n ecPropertyTraversal: [\"PropertyName\", \"SecondProperty\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|PropertyName\",\n categoryLabel: \"Test Category\",\n };\n\n const result = convertToECProperties(propertyMetaData);\n\n const expectedResult: ECProperty[] = [\n {\n ecSchemaName: \"Schema\",\n ecClassName: \"Class\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"PropertyName.SecondProperty\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"convert Model PropertyMetaData primitive navigation into ECProperty\", () => {\n const propertyMetaData: PropertyMetaData = {\n displayLabel: \"Model\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"Model\",\n ],\n propertyType: DataType.String,\n primitiveNavigationClass: \"BisCore:ModelContainsElements\",\n actualECClassName: \"BisCore:Element\",\n key: \"undefined|BisCore:Element|Model\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n };\n\n const result = convertToECProperties(propertyMetaData);\n\n const expectedResult: ECProperty[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"Model.ModeledElement.UserLabel\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"Model.ModeledElement.CodeValue\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"convert Category PropertyMetaData primitive navigation into ECProperty\", () => {\n const propertyMetaData: PropertyMetaData = {\n displayLabel: \"Category\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"Category\",\n ],\n propertyType: DataType.String,\n primitiveNavigationClass: \"BisCore:GeometricElement3dIsInCategory\",\n actualECClassName: \"BisCore:GeometricElement3d\",\n key: \"undefined|BisCore:GeometricElement3d|Category\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n };\n\n const result = convertToECProperties(propertyMetaData);\n\n const expectedResult: ECProperty[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"Category.UserLabel\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"Category.CodeValue\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"convert Physical Material PropertyMetaData primitive navigation into an ECProperty\", () => {\n const propertyMetaData: PropertyMetaData = {\n displayLabel: \"Physical Material\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"PhysicalMaterial\",\n ],\n propertyType: DataType.String,\n primitiveNavigationClass: \"BisCore:PhysicalElementIsOfPhysicalMaterial\",\n actualECClassName: \"BisCore:PhysicalElement\",\n key: \"undefined|BisCore:PhysicalElement|PhysicalMaterial\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n };\n\n const result = convertToECProperties(propertyMetaData);\n\n const expectedResult: ECProperty[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"PhysicalMaterial.UserLabel\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"PhysicalMaterial.CodeValue\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"find properties correctly\", () => {\n\n const propertiesMetaData: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propString\"],\n propertyType: DataType.String,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propString\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propInt\"],\n propertyType: DataType.Integer,\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propInt\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n const ecProperties: ECProperty[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"propString\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.Integer,\n ecPropertyName: \"propInt\",\n },\n ];\n\n const result = findProperties(ecProperties, propertiesMetaData);\n\n assert.deepEqual(result, propertiesMetaData);\n\n });\n\n it(\"can find properties generated from a single property\", () => {\n\n const propertiesMetaData: PropertyMetaData[] = [{\n displayLabel: \"Model\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"Model\",\n ],\n propertyType: DataType.String,\n primitiveNavigationClass: \"BisCore:ModelContainsElements\",\n actualECClassName: \"BisCore:Element\",\n key: \"undefined|BisCore:Element|Model\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n }];\n\n const ecProperties: ECProperty[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"Model.ModeledElement.UserLabel\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"Model.ModeledElement.CodeValue\",\n },\n ];\n\n const result = findProperties(ecProperties, propertiesMetaData);\n assert.deepEqual(result, propertiesMetaData);\n\n });\n\n it(\"cannot find properties generated from a single property in the wrong order\", () => {\n\n const propertiesMetaData: PropertyMetaData[] = [{\n displayLabel: \"Model\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"Model\",\n ],\n propertyType: DataType.String,\n primitiveNavigationClass: \"BisCore:ModelContainsElements\",\n actualECClassName: \"BisCore:Element\",\n key: \"undefined|BisCore:Element|Model\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n }];\n\n const ecProperties: ECProperty[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"Model.ModeledElement.CodeValue\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyType: DataType.String,\n ecPropertyName: \"Model.ModeledElement.UserLabel\",\n },\n ];\n\n const result = findProperties(ecProperties, propertiesMetaData);\n expect(result).to.be.of.length(0);\n });\n\n});\n"]}
1
+ {"version":3,"file":"GroupPropertyUtils.test.js","sourceRoot":"","sources":["../../../src/test/GroupPropertyUtils.test.ts"],"names":[],"mappings":";;AAMA,oGAA+I;AAC/I,mEAAoL;AACpL,+BAAsC;AAEtC,oEAAsF;AAEtF,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,cAAc,GAAG,CAAC,IAAA,wDAAgC,EAAC,EAAE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAA,8CAAsB,GAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAEpH,MAAM,MAAM,GAAG,IAAA,8CAAyB,EAAC,cAAc,CAAC,CAAC;QAEzD,MAAM,cAAc,GAAuB;YACzC;gBACE,YAAY,EAAE,kBAAkB;gBAChC,YAAY,EAAE,GAAG;gBACjB,eAAe,EAAE,GAAG;gBACpB,mBAAmB,EAAE,CAAC,cAAc,CAAC;gBACrC,wBAAwB,EAAE,EAAE;gBAC5B,iBAAiB,EAAE,sBAAsB;gBACzC,uBAAuB,EAAE,SAAS;gBAClC,GAAG,EAAE,6CAA6C;gBAClD,aAAa,EAAE,eAAe;aAC/B;SACF,CAAC;QAEF,aAAM,CAAC,SAAS,CAAC,MAAM,EAAE,cAAc,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AkB,CAAC,CAAC;QAChE,IAAA,aAAM,EAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AAEL,CAAC,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 { ECPropertyReference } from \"@itwin/insights-client\";\nimport type { PropertyMetaData } from \"../components/Properties/GroupProperties/GroupPropertyUtils\";\nimport { convertPresentationFields, convertToECProperties, findProperties } from \"../components/Properties/GroupProperties/GroupPropertyUtils\";\nimport { createTestECClassInfo, createTestNestedContentField, createTestPropertiesContentField, createTestPropertyInfo, createTestRelatedClassInfo } from \"./PropertyFieldsHelpers\";\nimport { assert, expect } from \"chai\";\nimport type { NavigationPropertyInfo, StructTypeDescription } from \"@itwin/presentation-common\";\nimport { PropertyValueFormat, RelationshipMeaning } from \"@itwin/presentation-common\";\n\ndescribe(\"Group properties utilities\", () => {\n it(\"one primitive string property\", () => {\n const propertyFields = [createTestPropertiesContentField({ properties: [{ property: createTestPropertyInfo() }] })];\n\n const result = convertPresentationFields(propertyFields);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"PropertyName\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|PropertyName\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"multiple primitive properies of different types\", () => {\n const testProperties = [createTestPropertyInfo({ name: \"propString\" }),\n createTestPropertyInfo({ name: \"propInt\", type: \"int\" }),\n createTestPropertyInfo({ name: \"propBool\", type: \"boolean\" }),\n createTestPropertyInfo({ name: \"propEnum\", type: \"enum\" }),\n createTestPropertyInfo({ name: \"propLong\", type: \"long\" }),\n createTestPropertyInfo({ name: \"propNumber\", type: \"number\" }),\n ];\n const propertyFields = testProperties.map((p) => createTestPropertiesContentField({ properties: [{ property: p }] }));\n\n const result = convertPresentationFields(propertyFields);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propString\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propString\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propInt\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propInt\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propBool\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propBool\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propEnum\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propEnum\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propLong\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propLong\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propNumber\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propNumber\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"one BisCore:ElementOwnsUniqueAspect nested property\", () => {\n const propertiesField = createTestPropertiesContentField({\n properties: [{ property: createTestPropertyInfo({ name: \"prop1\" }) }],\n });\n\n const nestedAspectField = createTestNestedContentField({\n nestedFields: [propertiesField],\n relationshipMeaning: RelationshipMeaning.SameInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"Some:UniqueAspect\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:ElementOwnsUniqueAspect\" }),\n targetClassInfo: createTestECClassInfo({ name: \"Schema:Class\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const result = convertPresentationFields([nestedAspectField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"prop1\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"SchemaName:ClassName\",\n key: \"SchemaName:ClassName|SchemaName:ClassName|prop1\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n\n });\n\n it(\"one BisCore:ElementOwnsMultiAspects nested property\", () => {\n\n const propertiesField = createTestPropertiesContentField({\n properties: [{ property: createTestPropertyInfo({ name: \"prop1\" }) }],\n });\n\n const nestedAspectField = createTestNestedContentField({\n nestedFields: [propertiesField],\n relationshipMeaning: RelationshipMeaning.SameInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"Some:MultiAspect\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:ElementOwnsMultiAspects\" }),\n targetClassInfo: createTestECClassInfo({ name: \"Schema:Class\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const result = convertPresentationFields([nestedAspectField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"prop1\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"SchemaName:ClassName\",\n key: \"SchemaName:ClassName|SchemaName:ClassName|prop1\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n\n });\n\n it(\"one BisCore:GeometricElement3dHasTypeDefinition nested property\", () => {\n\n const propertiesField = createTestPropertiesContentField({\n properties: [{ property: createTestPropertyInfo({ name: \"prop1\" }) }],\n });\n\n const nestedAspectField = createTestNestedContentField({\n nestedFields: [propertiesField],\n relationshipMeaning: RelationshipMeaning.RelatedInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"Schema:SomeType\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:GeometricElement3dHasTypeDefinition\" }),\n targetClassInfo: createTestECClassInfo({ name: \"Schema:Class\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const result = convertPresentationFields([nestedAspectField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n actualECClassName: \"SchemaName:ClassName\",\n categoryLabel: \"Test Category\",\n displayLabel: \"Properties Field\",\n ecPropertyTraversal: [\"TypeDefinition\", \"prop1\"],\n key: \"SchemaName:ClassName|SchemaName:ClassName|TypeDefinition|prop1\",\n parentPropertyClassName: \"SchemaName:ClassName\",\n primitiveNavigationClass: \"\",\n sourceClassName: \"*\",\n sourceSchema: \"*\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n\n });\n\n it(\"generate proper external source metadata\", () => {\n\n const propertyName = createTestPropertyInfo({ name: \"name\" });\n const propertyPath = createTestPropertyInfo({ name: \"path\" });\n const repositoryProperties = createTestPropertiesContentField({\n properties: [{ property: propertyName }, { property: propertyPath }],\n });\n\n const nestedExternalSource = createTestNestedContentField({\n nestedFields: [repositoryProperties],\n contentClassInfo: { name: \"BisCore:RepositoryLink\", id: \"\", label: \"\" },\n relationshipMeaning: RelationshipMeaning.SameInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"BisCore:ExternalSourceIsInRepository\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:RepositoryLink\" }),\n targetClassInfo: createTestECClassInfo({ name: \"BisCore:ExternalSource\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"BisCore:ElementIsFromSource\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:ExternalSource\" }),\n targetClassInfo: createTestECClassInfo({ name: \"BisCore:ExternalSourceAspect\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const propertiesField = createTestPropertiesContentField({\n properties: [{ property: createTestPropertyInfo({ name: \"Identifier\" }) }],\n });\n\n const nestedSourceAspectField = createTestNestedContentField({\n nestedFields: [propertiesField, nestedExternalSource],\n relationshipMeaning: RelationshipMeaning.SameInstance,\n pathToPrimaryClass: [\n createTestRelatedClassInfo({\n sourceClassInfo: createTestECClassInfo({ name: \"BisCore:ExternalSourceAspect\" }),\n relationshipInfo: createTestECClassInfo({ name: \"BisCore:ElementOwnsMultiAspects\" }),\n targetClassInfo: createTestECClassInfo({ name: \"Schema:Class\" }),\n isForwardRelationship: false,\n isPolymorphicRelationship: true,\n }),\n ],\n });\n\n const result = convertPresentationFields([nestedSourceAspectField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"Identifier\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"SchemaName:ClassName\",\n key: \"SchemaName:ClassName|SchemaName:ClassName|Identifier\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"Source\", \"Repository\", \"name\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"BisCore:RepositoryLink\",\n key: \"BisCore:RepositoryLink|SchemaName:ClassName|Source|Repository|name\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"SchemaName\",\n sourceClassName: \"ClassName\",\n ecPropertyTraversal: [\"Source\", \"Repository\", \"path\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: \"BisCore:RepositoryLink\",\n key: \"BisCore:RepositoryLink|SchemaName:ClassName|Source|Repository|path\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n\n });\n\n it(\"handle simple structs correctly\", () => {\n const structPropertyClass = createTestPropertyInfo({ classInfo: { id: \"0\", label: \"\", name: \"Struct:Class\" } });\n\n const structContentFieldDescription: StructTypeDescription = {\n valueFormat: PropertyValueFormat.Struct,\n typeName: \"StructType\",\n members: [{\n name: \"prop1\",\n label: \"prop one\",\n type: {\n typeName: \"string\",\n valueFormat: PropertyValueFormat.Primitive,\n },\n }],\n };\n const simpleStructField = createTestPropertiesContentField({ properties: [{ property: structPropertyClass }], type: structContentFieldDescription });\n\n const result = convertPresentationFields([simpleStructField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"prop one\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"PropertyName\", \"prop1\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"Struct:Class\",\n parentPropertyClassName: undefined,\n key: \"undefined|Struct:Class|PropertyName|prop1\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n }\n );\n\n it(\"handle simple nested structs correctly\", () => {\n const structPropertyClass = createTestPropertyInfo({ classInfo: { id: \"0\", label: \"\", name: \"Struct:Class\" } });\n\n const structContentFieldDescription: StructTypeDescription = {\n valueFormat: PropertyValueFormat.Struct,\n typeName: \"StructType\",\n members: [{\n name: \"prop1\",\n label: \"prop one\",\n type: {\n typeName: \"string\",\n valueFormat: PropertyValueFormat.Primitive,\n },\n },\n {\n name: \"struct1\",\n label: \"struct1\",\n type: {\n typeName: \"string\",\n valueFormat: PropertyValueFormat.Struct,\n members: [{\n name: \"prop2\",\n label: \"prop 2\",\n type: {\n typeName: \"string\",\n valueFormat: PropertyValueFormat.Primitive,\n },\n }],\n },\n }],\n };\n\n const simpleStructField = createTestPropertiesContentField({ properties: [{ property: structPropertyClass }], type: structContentFieldDescription });\n\n const result = convertPresentationFields([simpleStructField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"prop one\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"PropertyName\", \"prop1\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"Struct:Class\",\n parentPropertyClassName: undefined,\n key: \"undefined|Struct:Class|PropertyName|prop1\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"prop 2\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"PropertyName\", \"struct1\", \"prop2\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"Struct:Class\",\n parentPropertyClassName: undefined,\n key: \"undefined|Struct:Class|PropertyName|struct1|prop2\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n }\n );\n\n it(\"handle primitive navigation (Model)\", () => {\n const modelClassInfo = createTestECClassInfo({ name: \"BisCore:Element\", label: \"Element\" });\n const navigationClassInfo = createTestECClassInfo({ name: \"BisCore:ModelContainsElements\", label: \"ModelContainsElements\" });\n\n const navigationPropertyInfo: NavigationPropertyInfo = {\n classInfo: navigationClassInfo,\n isForwardRelationship: false,\n // Target class does not matter\n targetClassInfo: createTestECClassInfo(),\n isTargetPolymorphic: true,\n\n };\n\n const modelPropertyInfo = createTestPropertyInfo({ name: \"Model\", classInfo: modelClassInfo, type: \"long\", navigationPropertyInfo });\n\n const simpleModelField = createTestPropertiesContentField({ label: \"Model\", properties: [{ property: modelPropertyInfo }] });\n\n const result = convertPresentationFields([simpleModelField]);\n\n const expectedResult: PropertyMetaData[] = [\n {\n displayLabel: \"Model\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"Model\"],\n primitiveNavigationClass: \"BisCore:ModelContainsElements\",\n actualECClassName: \"BisCore:Element\",\n parentPropertyClassName: undefined,\n key: \"undefined|BisCore:Element|Model\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n }\n );\n\n it(\"convert PropertyMetaData non primitive navigation into ECProperty\", () => {\n const propertyMetaData: PropertyMetaData = {\n displayLabel: \"A Property\",\n sourceSchema: \"Schema\",\n sourceClassName: \"Class\",\n ecPropertyTraversal: [\"PropertyName\", \"SecondProperty\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|PropertyName\",\n categoryLabel: \"Test Category\",\n };\n\n const result = convertToECProperties(propertyMetaData);\n\n const expectedResult: ECPropertyReference[] = [\n {\n ecSchemaName: \"Schema\",\n ecClassName: \"Class\",\n ecPropertyName: \"PropertyName.SecondProperty\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"convert Model PropertyMetaData primitive navigation into ECProperty\", () => {\n const propertyMetaData: PropertyMetaData = {\n displayLabel: \"Model\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"Model\",\n ],\n primitiveNavigationClass: \"BisCore:ModelContainsElements\",\n actualECClassName: \"BisCore:Element\",\n key: \"undefined|BisCore:Element|Model\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n };\n\n const result = convertToECProperties(propertyMetaData);\n\n const expectedResult: ECPropertyReference[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"Model.ModeledElement.UserLabel\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"Model.ModeledElement.CodeValue\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"convert Category PropertyMetaData primitive navigation into ECProperty\", () => {\n const propertyMetaData: PropertyMetaData = {\n displayLabel: \"Category\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"Category\",\n ],\n primitiveNavigationClass: \"BisCore:GeometricElement3dIsInCategory\",\n actualECClassName: \"BisCore:GeometricElement3d\",\n key: \"undefined|BisCore:GeometricElement3d|Category\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n };\n\n const result = convertToECProperties(propertyMetaData);\n\n const expectedResult: ECPropertyReference[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"Category.UserLabel\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"Category.CodeValue\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"convert Physical Material PropertyMetaData primitive navigation into an ECProperty\", () => {\n const propertyMetaData: PropertyMetaData = {\n displayLabel: \"Physical Material\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"PhysicalMaterial\",\n ],\n primitiveNavigationClass: \"BisCore:PhysicalElementIsOfPhysicalMaterial\",\n actualECClassName: \"BisCore:PhysicalElement\",\n key: \"undefined|BisCore:PhysicalElement|PhysicalMaterial\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n };\n\n const result = convertToECProperties(propertyMetaData);\n\n const expectedResult: ECPropertyReference[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"PhysicalMaterial.UserLabel\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"PhysicalMaterial.CodeValue\",\n },\n ];\n\n assert.deepEqual(result, expectedResult);\n });\n\n it(\"find properties correctly\", () => {\n\n const propertiesMetaData: PropertyMetaData[] = [\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propString\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propString\",\n categoryLabel: \"Test Category\",\n },\n {\n displayLabel: \"Properties Field\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\"propInt\"],\n primitiveNavigationClass: \"\",\n actualECClassName: \"SchemaName:ClassName\",\n parentPropertyClassName: undefined,\n key: \"undefined|SchemaName:ClassName|propInt\",\n categoryLabel: \"Test Category\",\n },\n ];\n\n const ecProperties: ECPropertyReference[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"propString\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"propInt\",\n },\n ];\n\n const result = findProperties(ecProperties, propertiesMetaData);\n\n assert.deepEqual(result, propertiesMetaData);\n\n });\n\n it(\"can find properties generated from a single property\", () => {\n\n const propertiesMetaData: PropertyMetaData[] = [{\n displayLabel: \"Model\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"Model\",\n ],\n primitiveNavigationClass: \"BisCore:ModelContainsElements\",\n actualECClassName: \"BisCore:Element\",\n key: \"undefined|BisCore:Element|Model\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n }];\n\n const ecProperties: ECPropertyReference[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"Model.ModeledElement.UserLabel\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"Model.ModeledElement.CodeValue\",\n },\n ];\n\n const result = findProperties(ecProperties, propertiesMetaData);\n assert.deepEqual(result, propertiesMetaData);\n\n });\n\n it(\"cannot find properties generated from a single property in the wrong order\", () => {\n\n const propertiesMetaData: PropertyMetaData[] = [{\n displayLabel: \"Model\",\n sourceSchema: \"*\",\n sourceClassName: \"*\",\n ecPropertyTraversal: [\n \"Model\",\n ],\n primitiveNavigationClass: \"BisCore:ModelContainsElements\",\n actualECClassName: \"BisCore:Element\",\n key: \"undefined|BisCore:Element|Model\",\n categoryLabel: \"Selected Item\",\n parentPropertyClassName: undefined,\n }];\n\n const ecProperties: ECPropertyReference[] = [\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"Model.ModeledElement.CodeValue\",\n },\n {\n ecSchemaName: \"*\",\n ecClassName: \"*\",\n ecPropertyName: \"Model.ModeledElement.UserLabel\",\n },\n ];\n\n const result = findProperties(ecProperties, propertiesMetaData);\n expect(result).to.be.of.length(0);\n });\n\n});\n"]}
@@ -50,7 +50,7 @@ const mockMapping = {
50
50
  modifiedOn: faker_1.faker.date.past().toDateString(),
51
51
  extractionEnabled: false,
52
52
  _links: {
53
- imodel: {
53
+ iModel: {
54
54
  href: "",
55
55
  },
56
56
  },
@@ -62,7 +62,7 @@ const groupsFactory = () => ({
62
62
  description: `mOcKgRoUpDeScRiPtIoN${index}`,
63
63
  query: `mOcKgRoUpQuErY${index}`,
64
64
  _links: {
65
- imodel: {
65
+ iModel: {
66
66
  href: "",
67
67
  },
68
68
  mapping: {
@@ -80,6 +80,7 @@ const groupsFactory = () => ({
80
80
  const connectionMock = moq.Mock.ofType();
81
81
  const viewManagerMock = moq.Mock.ofType();
82
82
  const mappingClientMock = moq.Mock.ofType();
83
+ const groupsClientMock = moq.Mock.ofType();
83
84
  jest.mock("@itwin/appui-react", () => ({
84
85
  ...jest.requireActual("@itwin/appui-react"),
85
86
  useActiveIModelConnection: () => connectionMock.object,
@@ -90,10 +91,20 @@ jest.mock("@itwin/core-frontend", () => ({
90
91
  viewManager: {},
91
92
  },
92
93
  }));
93
- jest.mock("../components/context/MappingClientContext", () => ({
94
- ...jest.requireActual("../components/context/MappingClientContext"),
95
- useMappingClient: () => mappingClientMock.object,
96
- }));
94
+ jest.mock("../components/context/MappingClientContext", () => {
95
+ const actualMappingContextModule = jest.requireActual("../components/context/MappingClientContext");
96
+ return {
97
+ ...actualMappingContextModule,
98
+ useMappingClient: () => mappingClientMock.object,
99
+ };
100
+ });
101
+ jest.mock("../components/context/GroupsClientContext", () => {
102
+ const actualGroupsContextModule = jest.requireActual("../components/context/GroupsClientContext");
103
+ return {
104
+ ...actualGroupsContextModule,
105
+ useGroupsClient: () => groupsClientMock.object,
106
+ };
107
+ });
97
108
  jest.mock("../common/utils", () => ({
98
109
  ...jest.requireActual("../common/utils"),
99
110
  enableExperimentalFeatures: jest.fn,
@@ -103,9 +114,9 @@ describe("Groups View", () => {
103
114
  beforeEach(async () => {
104
115
  connectionMock.setup((x) => x.iModelId).returns(() => mockIModelId);
105
116
  connectionMock.setup((x) => x.iTwinId).returns(() => mockITwinId);
106
- mappingClientMock
117
+ groupsClientMock
107
118
  .setup(async (x) => x.getGroups(moq.It.isAny(), moq.It.isAny(), moq.It.isAny()))
108
- .returns(async () => Promise.resolve(mockGroups.groups));
119
+ .returns(async () => Promise.resolve(mockGroups));
109
120
  });
110
121
  afterEach(() => {
111
122
  connectionMock.reset();