@itwin/appui-react 4.7.2 → 4.8.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 (255) hide show
  1. package/CHANGELOG.md +9 -3
  2. package/lib/cjs/appui-react/UiFramework.js +7 -4
  3. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  4. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +2 -1
  5. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  6. package/lib/cjs/appui-react/childwindow/ChildWindowConfig.d.ts +17 -0
  7. package/lib/cjs/appui-react/childwindow/ChildWindowConfig.d.ts.map +1 -0
  8. package/lib/cjs/appui-react/childwindow/ChildWindowConfig.js +3 -0
  9. package/lib/cjs/appui-react/childwindow/ChildWindowConfig.js.map +1 -0
  10. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  11. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +18 -1
  12. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  13. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  14. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  15. package/lib/cjs/appui-react/configurableui/TimeTracker.js +2 -1
  16. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  17. package/lib/cjs/appui-react/content/ContentLayout.js +12 -9
  18. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  19. package/lib/cjs/appui-react/content/DefaultViewOverlay.js +4 -3
  20. package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
  21. package/lib/cjs/appui-react/content/FloatingViewportContent.js +2 -1
  22. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  23. package/lib/cjs/appui-react/content/IModelViewport.js +7 -4
  24. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  25. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +2 -1
  26. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  27. package/lib/cjs/appui-react/content/InternalContentViewManager.js +2 -2
  28. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
  29. package/lib/cjs/appui-react/content/split-pane/SplitPane.js +12 -10
  30. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  31. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +3 -2
  32. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  33. package/lib/cjs/appui-react/dialog/ContentDialog.js +6 -3
  34. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  35. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +3 -2
  36. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  37. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +2 -1
  38. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  39. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +56 -38
  40. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  41. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +3 -2
  42. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  43. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +2 -1
  44. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  45. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
  46. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  47. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
  48. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  49. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +13 -8
  50. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  51. package/lib/cjs/appui-react/messages/ActivityMessage.js +7 -5
  52. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  53. package/lib/cjs/appui-react/messages/MessageManager.js +2 -1
  54. package/lib/cjs/appui-react/messages/MessageManager.js.map +1 -1
  55. package/lib/cjs/appui-react/pickers/ViewSelector.js +6 -5
  56. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  57. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +2 -1
  58. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  59. package/lib/cjs/appui-react/popup/PopupManager.js +2 -1
  60. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  61. package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts +1 -0
  62. package/lib/cjs/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
  63. package/lib/cjs/appui-react/preview/PreviewFeatures.js +2 -1
  64. package/lib/cjs/appui-react/preview/PreviewFeatures.js.map +1 -1
  65. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js +2 -2
  66. package/lib/cjs/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  67. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +1 -2
  68. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  69. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +16 -11
  70. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  71. package/lib/cjs/appui-react/statusbar/Indicator.js +2 -1
  72. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  73. package/lib/cjs/appui-react/statusbar/StatusBar.js +5 -3
  74. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  75. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  76. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  77. package/lib/cjs/appui-react/theme/ThemeManager.js +1 -1
  78. package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
  79. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js +4 -6
  80. package/lib/cjs/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  81. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js +4 -3
  82. package/lib/cjs/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  83. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +17 -10
  84. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  85. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.d.ts +1 -1
  86. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js +1 -1
  87. package/lib/cjs/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  88. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +2 -3
  89. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  90. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +22 -20
  91. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  92. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +10 -9
  93. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  94. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +2 -1
  95. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  96. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +14 -8
  97. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  98. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
  99. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  100. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +1 -1
  101. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  102. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +3 -3
  103. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  104. package/lib/cjs/appui-react/widget-panels/Content.js +9 -8
  105. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  106. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +1 -1
  107. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  108. package/lib/cjs/appui-react/widget-panels/Frontstage.js +50 -47
  109. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  110. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -1
  111. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  112. package/lib/cjs/appui-react/widget-panels/Tab.js +1 -1
  113. package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
  114. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +23 -15
  115. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  116. package/lib/cjs/appui-react/widget-panels/Toolbars.js +3 -2
  117. package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
  118. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +2 -2
  119. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  120. package/lib/cjs/appui-react/widgets/Widget.d.ts +1 -1
  121. package/lib/cjs/appui-react/widgets/Widget.d.ts.map +1 -1
  122. package/lib/cjs/appui-react/widgets/Widget.js.map +1 -1
  123. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  124. package/lib/cjs/appui-react/widgets/WidgetDef.js +15 -7
  125. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  126. package/lib/cjs/appui-react/widgets/WidgetHost.js +3 -2
  127. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  128. package/lib/esm/appui-react/UiFramework.js +7 -4
  129. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  130. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +2 -1
  131. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  132. package/lib/esm/appui-react/childwindow/ChildWindowConfig.d.ts +17 -0
  133. package/lib/esm/appui-react/childwindow/ChildWindowConfig.d.ts.map +1 -0
  134. package/lib/esm/appui-react/childwindow/ChildWindowConfig.js +2 -0
  135. package/lib/esm/appui-react/childwindow/ChildWindowConfig.js.map +1 -0
  136. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  137. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +18 -1
  138. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  139. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  140. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  141. package/lib/esm/appui-react/configurableui/TimeTracker.js +2 -1
  142. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  143. package/lib/esm/appui-react/content/ContentLayout.js +12 -9
  144. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  145. package/lib/esm/appui-react/content/DefaultViewOverlay.js +4 -3
  146. package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
  147. package/lib/esm/appui-react/content/FloatingViewportContent.js +2 -1
  148. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  149. package/lib/esm/appui-react/content/IModelViewport.js +7 -4
  150. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  151. package/lib/esm/appui-react/content/InternalContentLayoutManager.js +2 -1
  152. package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  153. package/lib/esm/appui-react/content/InternalContentViewManager.js +2 -2
  154. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
  155. package/lib/esm/appui-react/content/split-pane/SplitPane.js +12 -10
  156. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  157. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +3 -2
  158. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  159. package/lib/esm/appui-react/dialog/ContentDialog.js +6 -3
  160. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  161. package/lib/esm/appui-react/dialog/DialogManagerBase.js +3 -2
  162. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  163. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +2 -1
  164. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  165. package/lib/esm/appui-react/frontstage/FrontstageDef.js +57 -39
  166. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  167. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +3 -2
  168. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  169. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +2 -1
  170. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  171. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +11 -7
  172. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  173. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +11 -7
  174. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  175. package/lib/esm/appui-react/hooks/useSolarDataProvider.js +13 -8
  176. package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  177. package/lib/esm/appui-react/messages/ActivityMessage.js +7 -5
  178. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  179. package/lib/esm/appui-react/messages/MessageManager.js +2 -1
  180. package/lib/esm/appui-react/messages/MessageManager.js.map +1 -1
  181. package/lib/esm/appui-react/pickers/ViewSelector.js +6 -5
  182. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  183. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +2 -1
  184. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  185. package/lib/esm/appui-react/popup/PopupManager.js +2 -1
  186. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  187. package/lib/esm/appui-react/preview/PreviewFeatures.d.ts +1 -0
  188. package/lib/esm/appui-react/preview/PreviewFeatures.d.ts.map +1 -1
  189. package/lib/esm/appui-react/preview/PreviewFeatures.js +2 -1
  190. package/lib/esm/appui-react/preview/PreviewFeatures.js.map +1 -1
  191. package/lib/esm/appui-react/selection/SelectionContextItemDef.js +2 -2
  192. package/lib/esm/appui-react/selection/SelectionContextItemDef.js.map +1 -1
  193. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +1 -2
  194. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  195. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +16 -11
  196. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  197. package/lib/esm/appui-react/statusbar/Indicator.js +2 -1
  198. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  199. package/lib/esm/appui-react/statusbar/StatusBar.js +5 -3
  200. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  201. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  202. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  203. package/lib/esm/appui-react/theme/ThemeManager.js +1 -1
  204. package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
  205. package/lib/esm/appui-react/toolbar/ToolbarHelper.js +4 -6
  206. package/lib/esm/appui-react/toolbar/ToolbarHelper.js.map +1 -1
  207. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js +4 -3
  208. package/lib/esm/appui-react/toolbar/useUiItemsProviderToolbarItems.js.map +1 -1
  209. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +17 -10
  210. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  211. package/lib/esm/appui-react/tools/FrameworkToolAdmin.d.ts +1 -1
  212. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js +1 -1
  213. package/lib/esm/appui-react/tools/FrameworkToolAdmin.js.map +1 -1
  214. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +2 -3
  215. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  216. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +22 -20
  217. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  218. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +10 -9
  219. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  220. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +2 -1
  221. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  222. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +14 -8
  223. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  224. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
  225. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  226. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +1 -1
  227. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  228. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +3 -3
  229. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  230. package/lib/esm/appui-react/widget-panels/Content.js +9 -8
  231. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  232. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +1 -1
  233. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  234. package/lib/esm/appui-react/widget-panels/Frontstage.js +50 -47
  235. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  236. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -1
  237. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  238. package/lib/esm/appui-react/widget-panels/Tab.js +1 -1
  239. package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
  240. package/lib/esm/appui-react/widget-panels/ToolSettings.js +23 -15
  241. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  242. package/lib/esm/appui-react/widget-panels/Toolbars.js +3 -2
  243. package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
  244. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +2 -2
  245. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  246. package/lib/esm/appui-react/widgets/Widget.d.ts +1 -1
  247. package/lib/esm/appui-react/widgets/Widget.d.ts.map +1 -1
  248. package/lib/esm/appui-react/widgets/Widget.js.map +1 -1
  249. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  250. package/lib/esm/appui-react/widgets/WidgetDef.js +15 -7
  251. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  252. package/lib/esm/appui-react/widgets/WidgetHost.js +3 -2
  253. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  254. package/lib/public/locales/en/UiFramework.json +2 -1
  255. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetHost.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetHost.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;GAGG;AACH,MAAM,OAAO,UAAU;IAKrB;OACG;IACH;QANQ,gBAAW,GAAgB,IAAI,KAAK,EAAa,CAAC;QAElD,sBAAiB,GAA6B,EAAE,CAAC;IAI1C,CAAC;IAEhB;;OAEG;IACI,YAAY,CAAC,SAAoB;QACtC,IAAI,CA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B,EAAE,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE;YACtE,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,SAAS,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;QAEH,oHAAoH;QACpH,kHAAkH;QAClH,IAAI,uBAAuB,EAAE;YAC3B,kBAAkB,CAAC,IAAI,CAAC,GAAG,uBAAuB,CAAC,CAAC;YACpD,IAAI,CAAC,kBAAkB,GAAG,CAAC,GAAG,uBAAuB,CAAC,CAAC;SACxD;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED,wBAAwB;IAChB,cAAc;QACpB,IAAI,gBAAgB,GAAG,EAAE,CAAC;QAC1B,IAAI,IAAI,CAAC,kBAAkB;YACzB,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;;YACjE,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QAEjD,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;QAEzD,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport type { StagePanelLocation } from \"../stagepanels/StagePanelLocation\";\nimport type { StagePanelSection } from \"../stagepanels/StagePanelSection\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { WidgetDef } from \"./WidgetDef\";\n\n/**\n * A WidgetHost represents a definition that hosts one or most Widgets in a Frontstage.\n * @public\n */\nexport class WidgetHost {\n private _widgetDefs: WidgetDef[] = new Array<WidgetDef>();\n private _dynamicWidgetDefs: ReadonlyArray<WidgetDef> | undefined;\n private _sortedWidgetDefs: ReadonlyArray<WidgetDef> = [];\n\n /** Constructor for WidgetHost.\n */\n constructor() {}\n\n /** Adds a WidgetDef to the list of Widgets.\n * @param widgetDef Definition of the Widget to add\n */\n public addWidgetDef(widgetDef: WidgetDef) {\n this._widgetDefs.push(widgetDef);\n this.sortWidgetDefs();\n }\n\n /** Gets the list of Widgets. */\n public get widgetDefs(): ReadonlyArray<WidgetDef> {\n return this._sortedWidgetDefs;\n }\n\n /** Gets the number of Widgets. */\n public get widgetCount(): number {\n return this.widgetDefs.length;\n }\n\n /** If there is only one Widget in the Panel, gets the single WidgetDef.\n * @returns The single WidgetDef if there is only one Widget; otherwise, undefined is returned.\n */\n public getSingleWidgetDef(): WidgetDef | undefined {\n if (this.widgetCount === 1) {\n return this.widgetDefs[0];\n }\n return undefined;\n }\n\n /** Finds a WidgetDef with a given Id.\n * @param id Id of the WidgetDef to find\n * @returns The WidgetDef if found; otherwise, undefined is returned.\n */\n public findWidgetDef(id: string): WidgetDef | undefined {\n return this.widgetDefs.find((widgetDef: WidgetDef) => widgetDef.id === id);\n }\n\n /** Updates the WidgetHost with dynamic widgets\n * @internal\n */\n public updateDynamicWidgetDefs(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n section: StagePanelSection | undefined,\n allStageWidgetDefs: WidgetDef[]\n ): void {\n // get widgetDefs not already in allStageWidgetDefs and add them\n const uniqueWidgets = this._widgetDefs.filter((widgetDef) => {\n return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);\n });\n\n allStageWidgetDefs.push(...uniqueWidgets);\n\n let dynamicWidgetDefs: readonly WidgetDef[] | undefined;\n if (section !== undefined) {\n dynamicWidgetDefs =\n UiFramework.widgetManager.getWidgetDefs(\n stageId,\n stageUsage,\n location,\n section\n ) ?? [];\n }\n\n const uniqueDynamicWidgetDefs = dynamicWidgetDefs?.filter((widgetDef) => {\n return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);\n });\n\n // Now that we no longer support a middle panel section, yet we have existing API that allows a middle section to be\n // defined, the following is needed to combining middle and end panel section widgets into a single set of widgets\n if (uniqueDynamicWidgetDefs) {\n allStageWidgetDefs.push(...uniqueDynamicWidgetDefs);\n this._dynamicWidgetDefs = [...uniqueDynamicWidgetDefs];\n }\n this.sortWidgetDefs();\n }\n\n /** Sorts all widgets */\n private sortWidgetDefs(): void {\n let sortedWidgetDefs = [];\n if (this._dynamicWidgetDefs)\n sortedWidgetDefs = this._widgetDefs.concat(this._dynamicWidgetDefs);\n else sortedWidgetDefs = this._widgetDefs.slice();\n\n sortedWidgetDefs.sort((a, b) => a.priority - b.priority);\n\n this._sortedWidgetDefs = sortedWidgetDefs;\n }\n}\n"]}
1
+ {"version":3,"file":"WidgetHost.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/WidgetHost.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;GAGG;AACH,MAAM,OAAO,UAAU;IAKrB;OACG;IACH;QANQ,gBAAW,GAAgB,IAAI,KAAK,EAAa,CAAC;QAElD,sBAAiB,GAA6B,EAAE,CAAC;IAI1C,CAAC;IAEhB;;OAEG;IACI,YAAY,CAAC,SAAoB;QACtC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED,gCAAgC;IAChC,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAED,kCAAkC;IAClC,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,kBAAkB;QACvB,IAAI,IAAI,CAAC,WAAW,KAAK,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AAG,uBAAuB,CAAC,CAAC;YACpD,IAAI,CAAC,kBAAkB,GAAG,CAAC,GAAG,uBAAuB,CAAC,CAAC;SACxD;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED,wBAAwB;IAChB,cAAc;QACpB,IAAI,gBAAgB,GAAG,EAAE,CAAC;QAC1B,IAAI,IAAI,CAAC,kBAAkB;YACzB,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;;YACjE,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QAEjD,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;QAEzD,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC5C,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport type { StagePanelLocation } from \"../stagepanels/StagePanelLocation\";\nimport type { StagePanelSection } from \"../stagepanels/StagePanelSection\";\nimport { UiFramework } from \"../UiFramework\";\nimport type { WidgetDef } from \"./WidgetDef\";\n\n/**\n * A WidgetHost represents a definition that hosts one or most Widgets in a Frontstage.\n * @public\n */\nexport class WidgetHost {\n private _widgetDefs: WidgetDef[] = new Array<WidgetDef>();\n private _dynamicWidgetDefs: ReadonlyArray<WidgetDef> | undefined;\n private _sortedWidgetDefs: ReadonlyArray<WidgetDef> = [];\n\n /** Constructor for WidgetHost.\n */\n constructor() {}\n\n /** Adds a WidgetDef to the list of Widgets.\n * @param widgetDef Definition of the Widget to add\n */\n public addWidgetDef(widgetDef: WidgetDef) {\n this._widgetDefs.push(widgetDef);\n this.sortWidgetDefs();\n }\n\n /** Gets the list of Widgets. */\n public get widgetDefs(): ReadonlyArray<WidgetDef> {\n return this._sortedWidgetDefs;\n }\n\n /** Gets the number of Widgets. */\n public get widgetCount(): number {\n return this.widgetDefs.length;\n }\n\n /** If there is only one Widget in the Panel, gets the single WidgetDef.\n * @returns The single WidgetDef if there is only one Widget; otherwise, undefined is returned.\n */\n public getSingleWidgetDef(): WidgetDef | undefined {\n if (this.widgetCount === 1) {\n return this.widgetDefs[0];\n }\n return undefined;\n }\n\n /** Finds a WidgetDef with a given Id.\n * @param id Id of the WidgetDef to find\n * @returns The WidgetDef if found; otherwise, undefined is returned.\n */\n public findWidgetDef(id: string): WidgetDef | undefined {\n return this.widgetDefs.find((widgetDef: WidgetDef) => widgetDef.id === id);\n }\n\n /** Updates the WidgetHost with dynamic widgets\n * @internal\n */\n public updateDynamicWidgetDefs(\n stageId: string,\n stageUsage: string,\n location: StagePanelLocation,\n section: StagePanelSection | undefined,\n allStageWidgetDefs: WidgetDef[]\n ): void {\n // get widgetDefs not already in allStageWidgetDefs and add them\n const uniqueWidgets = this._widgetDefs.filter((widgetDef) => {\n return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);\n });\n\n allStageWidgetDefs.push(...uniqueWidgets);\n\n let dynamicWidgetDefs: readonly WidgetDef[] | undefined;\n if (section !== undefined) {\n dynamicWidgetDefs =\n UiFramework.widgetManager.getWidgetDefs(\n stageId,\n stageUsage,\n location,\n section\n ) ?? [];\n }\n\n const uniqueDynamicWidgetDefs = dynamicWidgetDefs?.filter((widgetDef) => {\n return !allStageWidgetDefs.find((wDef) => wDef.id === widgetDef.id);\n });\n\n // Now that we no longer support a middle panel section, yet we have existing API that allows a middle section to be\n // defined, the following is needed to combining middle and end panel section widgets into a single set of widgets\n if (uniqueDynamicWidgetDefs) {\n allStageWidgetDefs.push(...uniqueDynamicWidgetDefs);\n this._dynamicWidgetDefs = [...uniqueDynamicWidgetDefs];\n }\n this.sortWidgetDefs();\n }\n\n /** Sorts all widgets */\n private sortWidgetDefs(): void {\n let sortedWidgetDefs = [];\n if (this._dynamicWidgetDefs)\n sortedWidgetDefs = this._widgetDefs.concat(this._dynamicWidgetDefs);\n else sortedWidgetDefs = this._widgetDefs.slice();\n\n sortedWidgetDefs.sort((a, b) => a.priority - b.priority);\n\n this._sortedWidgetDefs = sortedWidgetDefs;\n }\n}\n"]}
@@ -279,7 +279,8 @@
279
279
  "popoutActiveTab": "Pop out active widget tab"
280
280
  },
281
281
  "errorMessage": {
282
- "unknownError": "Something went wrong..."
282
+ "unknownError": "Something went wrong...",
283
+ "widgetPopoutFail": "Widget failed to popout, ensure you allow popout for this site."
283
284
  }
284
285
  },
285
286
  "statusBar": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/appui-react",
3
- "version": "4.7.2",
3
+ "version": "4.8.0",
4
4
  "description": "UI framework",
5
5
  "main": "lib/cjs/appui-react.js",
6
6
  "module": "lib/esm/appui-react.js",
@@ -23,16 +23,16 @@
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@itwin/appui-abstract": "^3.7.0 || ^4.0.0",
26
- "@itwin/appui-layout-react": "^4.7.2",
27
- "@itwin/components-react": "^4.7.2",
26
+ "@itwin/appui-layout-react": "^4.8.0",
27
+ "@itwin/components-react": "^4.8.0",
28
28
  "@itwin/core-bentley": "^3.7.0 || ^4.0.0",
29
29
  "@itwin/core-common": "^3.7.0 || ^4.0.0",
30
30
  "@itwin/core-frontend": "^3.7.0 || ^4.0.0",
31
31
  "@itwin/core-geometry": "^3.7.0 || ^4.0.0",
32
32
  "@itwin/core-quantity": "^3.7.0 || ^4.0.0",
33
- "@itwin/core-react": "^4.7.2",
33
+ "@itwin/core-react": "^4.8.0",
34
34
  "@itwin/core-telemetry": "^3.7.0 || ^4.0.0",
35
- "@itwin/imodel-components-react": "^4.7.2",
35
+ "@itwin/imodel-components-react": "^4.8.0",
36
36
  "react": "^17.0.0 || ^18.0.0",
37
37
  "react-dom": "^17.0.0 || ^18.0.0",
38
38
  "react-redux": "^7.2.2",
@@ -44,20 +44,20 @@
44
44
  ],
45
45
  "devDependencies": {
46
46
  "@itwin/appui-abstract": "^3.7.0",
47
- "@itwin/appui-layout-react": "4.7.2",
47
+ "@itwin/appui-layout-react": "4.8.0",
48
48
  "@itwin/build-tools": "^3.7.0",
49
- "@itwin/components-react": "4.7.2",
49
+ "@itwin/components-react": "4.8.0",
50
50
  "@itwin/core-bentley": "^3.7.0",
51
51
  "@itwin/core-common": "^3.7.0",
52
52
  "@itwin/core-frontend": "^3.7.0",
53
53
  "@itwin/core-geometry": "^3.7.0",
54
54
  "@itwin/core-orbitgt": "^3.7.0",
55
55
  "@itwin/core-quantity": "^3.7.0",
56
- "@itwin/core-react": "4.7.2",
56
+ "@itwin/core-react": "4.8.0",
57
57
  "@itwin/core-telemetry": "^3.7.0",
58
58
  "@itwin/ecschema-metadata": "^3.7.0",
59
59
  "@itwin/eslint-plugin": "^4.0.0-dev.45",
60
- "@itwin/imodel-components-react": "4.7.2",
60
+ "@itwin/imodel-components-react": "4.8.0",
61
61
  "@itwin/webgl-compatibility": "^3.7.0",
62
62
  "@testing-library/dom": "^8.11.2",
63
63
  "@testing-library/react": "^12.0.0",