@itwin/appui-react 4.2.1 → 4.3.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/CHANGELOG.md +1 -6
  2. package/lib/cjs/appui-react/UiFramework.d.ts +0 -7
  3. package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
  4. package/lib/cjs/appui-react/UiFramework.js +4 -29
  5. package/lib/cjs/appui-react/UiFramework.js.map +1 -1
  6. package/lib/cjs/appui-react/_variables.scss +3 -3
  7. package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.scss +3 -3
  8. package/lib/cjs/appui-react/accudraw/AccuDrawInputField.scss +3 -3
  9. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js +1 -2
  10. package/lib/cjs/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  11. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  12. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js +2 -3
  13. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  14. package/lib/cjs/appui-react/childwindow/InternalChildWindowManager.scss +3 -3
  15. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  16. package/lib/cjs/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  17. package/lib/cjs/appui-react/configurableui/TimeTracker.js +1 -2
  18. package/lib/cjs/appui-react/configurableui/TimeTracker.js.map +1 -1
  19. package/lib/cjs/appui-react/configurableui/configurableui.scss +3 -3
  20. package/lib/cjs/appui-react/content/ContentLayout.js +9 -12
  21. package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
  22. package/lib/cjs/appui-react/content/DefaultViewOverlay.js +3 -4
  23. package/lib/cjs/appui-react/content/DefaultViewOverlay.js.map +1 -1
  24. package/lib/cjs/appui-react/content/DefaultViewOverlay.scss +3 -3
  25. package/lib/cjs/appui-react/content/FloatingViewportContent.js +1 -2
  26. package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
  27. package/lib/cjs/appui-react/content/IModelViewport.js +3 -6
  28. package/lib/cjs/appui-react/content/IModelViewport.js.map +1 -1
  29. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js +1 -2
  30. package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  31. package/lib/cjs/appui-react/content/InternalContentViewManager.js +1 -1
  32. package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
  33. package/lib/cjs/appui-react/content/split-pane/SplitPane.js +10 -12
  34. package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
  35. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js +2 -3
  36. package/lib/cjs/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  37. package/lib/cjs/appui-react/dialog/ContentDialog.js +3 -6
  38. package/lib/cjs/appui-react/dialog/ContentDialog.js.map +1 -1
  39. package/lib/cjs/appui-react/dialog/DialogManagerBase.js +2 -3
  40. package/lib/cjs/appui-react/dialog/DialogManagerBase.js.map +1 -1
  41. package/lib/cjs/appui-react/feedback/ValidationTextbox.scss +3 -3
  42. package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  43. package/lib/cjs/appui-react/frontstage/FrontstageDef.js +27 -9
  44. package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
  45. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js +2 -3
  46. package/lib/cjs/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  47. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js +1 -2
  48. package/lib/cjs/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  49. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js +7 -11
  50. package/lib/cjs/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  51. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js +7 -11
  52. package/lib/cjs/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  53. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js +8 -13
  54. package/lib/cjs/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  55. package/lib/cjs/appui-react/messages/ActivityMessage.js +5 -7
  56. package/lib/cjs/appui-react/messages/ActivityMessage.js.map +1 -1
  57. package/lib/cjs/appui-react/navigationaids/SheetNavigationAid.scss +3 -3
  58. package/lib/cjs/appui-react/navigationaids/StandardRotationNavigationAid.scss +3 -3
  59. package/lib/cjs/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  60. package/lib/cjs/appui-react/pickers/ViewSelector.js +8 -7
  61. package/lib/cjs/appui-react/pickers/ViewSelector.js.map +1 -1
  62. package/lib/cjs/appui-react/popup/CardPopup.scss +3 -3
  63. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js +1 -2
  64. package/lib/cjs/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  65. package/lib/cjs/appui-react/popup/PopupManager.js +1 -2
  66. package/lib/cjs/appui-react/popup/PopupManager.js.map +1 -1
  67. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
  68. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js +0 -53
  69. package/lib/cjs/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  70. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js +2 -1
  71. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  72. package/lib/cjs/appui-react/settings/quantityformatting/QuantityFormat.scss +3 -3
  73. package/lib/cjs/appui-react/settings/ui/UiSettingsPage.scss +3 -3
  74. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js +5 -7
  75. package/lib/cjs/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  76. package/lib/cjs/appui-react/statusbar/Indicator.js +1 -2
  77. package/lib/cjs/appui-react/statusbar/Indicator.js.map +1 -1
  78. package/lib/cjs/appui-react/statusbar/Separator.scss +3 -3
  79. package/lib/cjs/appui-react/statusbar/StatusBar.js +3 -5
  80. package/lib/cjs/appui-react/statusbar/StatusBar.js.map +1 -1
  81. package/lib/cjs/appui-react/statusfields/SectionsField.scss +3 -3
  82. package/lib/cjs/appui-react/statusfields/SelectionCount.scss +3 -3
  83. package/lib/cjs/appui-react/statusfields/SelectionScope.scss +3 -3
  84. package/lib/cjs/appui-react/statusfields/ViewAttributes.scss +3 -3
  85. package/lib/cjs/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +3 -3
  86. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  87. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  88. package/lib/cjs/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +3 -3
  89. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js +10 -17
  90. package/lib/cjs/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  91. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js +3 -2
  92. package/lib/cjs/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  93. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js +12 -14
  94. package/lib/cjs/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  95. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +9 -10
  96. package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  97. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +1 -2
  98. package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  99. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js +8 -14
  100. package/lib/cjs/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  101. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
  102. package/lib/cjs/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  103. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js +1 -1
  104. package/lib/cjs/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  105. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js +3 -3
  106. package/lib/cjs/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  107. package/lib/cjs/appui-react/widget-panels/Content.js +8 -9
  108. package/lib/cjs/appui-react/widget-panels/Content.js.map +1 -1
  109. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts +3 -1
  110. package/lib/cjs/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  111. package/lib/cjs/appui-react/widget-panels/Frontstage.js +116 -102
  112. package/lib/cjs/appui-react/widget-panels/Frontstage.js.map +1 -1
  113. package/lib/cjs/appui-react/widget-panels/Frontstage.scss +3 -3
  114. package/lib/cjs/appui-react/widget-panels/StatusBar.js +1 -1
  115. package/lib/cjs/appui-react/widget-panels/StatusBar.js.map +1 -1
  116. package/lib/cjs/appui-react/widget-panels/Tab.js +1 -1
  117. package/lib/cjs/appui-react/widget-panels/Tab.js.map +1 -1
  118. package/lib/cjs/appui-react/widget-panels/Tab.scss +3 -3
  119. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts +1 -1
  120. package/lib/cjs/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  121. package/lib/cjs/appui-react/widget-panels/ToolSettings.js +33 -45
  122. package/lib/cjs/appui-react/widget-panels/ToolSettings.js.map +1 -1
  123. package/lib/cjs/appui-react/widget-panels/ToolSettings.scss +3 -3
  124. package/lib/cjs/appui-react/widget-panels/Toolbars.js +2 -3
  125. package/lib/cjs/appui-react/widget-panels/Toolbars.js.map +1 -1
  126. package/lib/cjs/appui-react/widget-panels/Toolbars.scss +3 -3
  127. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +2 -2
  128. package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  129. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +1 -1
  130. package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  131. package/lib/cjs/appui-react/widgets/WidgetDef.js +13 -12
  132. package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
  133. package/lib/cjs/appui-react/widgets/WidgetHost.js +2 -3
  134. package/lib/cjs/appui-react/widgets/WidgetHost.js.map +1 -1
  135. package/lib/esm/appui-react/UiFramework.d.ts +0 -7
  136. package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
  137. package/lib/esm/appui-react/UiFramework.js +4 -29
  138. package/lib/esm/appui-react/UiFramework.js.map +1 -1
  139. package/lib/esm/appui-react/_variables.scss +3 -3
  140. package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.scss +3 -3
  141. package/lib/esm/appui-react/accudraw/AccuDrawInputField.scss +3 -3
  142. package/lib/esm/appui-react/backstage/BackstageComposerItem.js +1 -2
  143. package/lib/esm/appui-react/backstage/BackstageComposerItem.js.map +1 -1
  144. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.d.ts.map +1 -1
  145. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js +2 -3
  146. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.js.map +1 -1
  147. package/lib/esm/appui-react/childwindow/InternalChildWindowManager.scss +3 -3
  148. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js +1 -1
  149. package/lib/esm/appui-react/configurableui/InternalConfigurableUiManager.js.map +1 -1
  150. package/lib/esm/appui-react/configurableui/TimeTracker.js +1 -2
  151. package/lib/esm/appui-react/configurableui/TimeTracker.js.map +1 -1
  152. package/lib/esm/appui-react/configurableui/configurableui.scss +3 -3
  153. package/lib/esm/appui-react/content/ContentLayout.js +9 -12
  154. package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
  155. package/lib/esm/appui-react/content/DefaultViewOverlay.js +3 -4
  156. package/lib/esm/appui-react/content/DefaultViewOverlay.js.map +1 -1
  157. package/lib/esm/appui-react/content/DefaultViewOverlay.scss +3 -3
  158. package/lib/esm/appui-react/content/FloatingViewportContent.js +1 -2
  159. package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
  160. package/lib/esm/appui-react/content/IModelViewport.js +3 -6
  161. package/lib/esm/appui-react/content/IModelViewport.js.map +1 -1
  162. package/lib/esm/appui-react/content/InternalContentLayoutManager.js +1 -2
  163. package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
  164. package/lib/esm/appui-react/content/InternalContentViewManager.js +1 -1
  165. package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
  166. package/lib/esm/appui-react/content/split-pane/SplitPane.js +10 -12
  167. package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
  168. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js +2 -3
  169. package/lib/esm/appui-react/cursor/cursormenu/CursorMenu.js.map +1 -1
  170. package/lib/esm/appui-react/dialog/ContentDialog.js +3 -6
  171. package/lib/esm/appui-react/dialog/ContentDialog.js.map +1 -1
  172. package/lib/esm/appui-react/dialog/DialogManagerBase.js +2 -3
  173. package/lib/esm/appui-react/dialog/DialogManagerBase.js.map +1 -1
  174. package/lib/esm/appui-react/feedback/ValidationTextbox.scss +3 -3
  175. package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
  176. package/lib/esm/appui-react/frontstage/FrontstageDef.js +27 -9
  177. package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
  178. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js +2 -3
  179. package/lib/esm/appui-react/frontstage/ModalSettingsStage.js.map +1 -1
  180. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js +1 -2
  181. package/lib/esm/appui-react/frontstage/StandardFrontstageProvider.js.map +1 -1
  182. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js +7 -11
  183. package/lib/esm/appui-react/hooks/useAnalysisAnimationDataProvider.js.map +1 -1
  184. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js +7 -11
  185. package/lib/esm/appui-react/hooks/useScheduleAnimationDataProvider.js.map +1 -1
  186. package/lib/esm/appui-react/hooks/useSolarDataProvider.js +8 -13
  187. package/lib/esm/appui-react/hooks/useSolarDataProvider.js.map +1 -1
  188. package/lib/esm/appui-react/messages/ActivityMessage.js +5 -7
  189. package/lib/esm/appui-react/messages/ActivityMessage.js.map +1 -1
  190. package/lib/esm/appui-react/navigationaids/SheetNavigationAid.scss +3 -3
  191. package/lib/esm/appui-react/navigationaids/StandardRotationNavigationAid.scss +3 -3
  192. package/lib/esm/appui-react/pickers/ViewSelector.d.ts.map +1 -1
  193. package/lib/esm/appui-react/pickers/ViewSelector.js +8 -7
  194. package/lib/esm/appui-react/pickers/ViewSelector.js.map +1 -1
  195. package/lib/esm/appui-react/popup/CardPopup.scss +3 -3
  196. package/lib/esm/appui-react/popup/KeyinPalettePanel.js +1 -2
  197. package/lib/esm/appui-react/popup/KeyinPalettePanel.js.map +1 -1
  198. package/lib/esm/appui-react/popup/PopupManager.js +1 -2
  199. package/lib/esm/appui-react/popup/PopupManager.js.map +1 -1
  200. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.d.ts.map +1 -1
  201. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js +0 -53
  202. package/lib/esm/appui-react/selection/HideIsolateEmphasizeManager.js.map +1 -1
  203. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js +2 -1
  204. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.js.map +1 -1
  205. package/lib/esm/appui-react/settings/quantityformatting/QuantityFormat.scss +3 -3
  206. package/lib/esm/appui-react/settings/ui/UiSettingsPage.scss +3 -3
  207. package/lib/esm/appui-react/stagepanels/StagePanelDef.js +5 -7
  208. package/lib/esm/appui-react/stagepanels/StagePanelDef.js.map +1 -1
  209. package/lib/esm/appui-react/statusbar/Indicator.js +1 -2
  210. package/lib/esm/appui-react/statusbar/Indicator.js.map +1 -1
  211. package/lib/esm/appui-react/statusbar/Separator.scss +3 -3
  212. package/lib/esm/appui-react/statusbar/StatusBar.js +3 -5
  213. package/lib/esm/appui-react/statusbar/StatusBar.js.map +1 -1
  214. package/lib/esm/appui-react/statusfields/SectionsField.scss +3 -3
  215. package/lib/esm/appui-react/statusfields/SelectionCount.scss +3 -3
  216. package/lib/esm/appui-react/statusfields/SelectionScope.scss +3 -3
  217. package/lib/esm/appui-react/statusfields/ViewAttributes.scss +3 -3
  218. package/lib/esm/appui-react/statusfields/tileloading/TileLoadingIndicator.scss +3 -3
  219. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js +1 -1
  220. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.js.map +1 -1
  221. package/lib/esm/appui-react/statusfields/toolassistance/ToolAssistanceField.scss +3 -3
  222. package/lib/esm/appui-react/tools/CoreToolDefinitions.js +10 -17
  223. package/lib/esm/appui-react/tools/CoreToolDefinitions.js.map +1 -1
  224. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js +3 -2
  225. package/lib/esm/appui-react/toolsettings/DefaultToolSettingsProvider.js.map +1 -1
  226. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js +12 -14
  227. package/lib/esm/appui-react/ui-items-provider/AbstractUiItemsManager.js.map +1 -1
  228. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +9 -10
  229. package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
  230. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +1 -2
  231. package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
  232. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js +8 -14
  233. package/lib/esm/appui-react/ui-items-provider/UiItemsManager.js.map +1 -1
  234. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js +1 -1
  235. package/lib/esm/appui-react/uiadmin/FrameworkUiAdmin.js.map +1 -1
  236. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js +1 -1
  237. package/lib/esm/appui-react/uiprovider/ComponentGenerator.js.map +1 -1
  238. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js +3 -3
  239. package/lib/esm/appui-react/utils/InternalUiShowHideManager.js.map +1 -1
  240. package/lib/esm/appui-react/widget-panels/Content.js +8 -9
  241. package/lib/esm/appui-react/widget-panels/Content.js.map +1 -1
  242. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts +3 -1
  243. package/lib/esm/appui-react/widget-panels/Frontstage.d.ts.map +1 -1
  244. package/lib/esm/appui-react/widget-panels/Frontstage.js +113 -99
  245. package/lib/esm/appui-react/widget-panels/Frontstage.js.map +1 -1
  246. package/lib/esm/appui-react/widget-panels/Frontstage.scss +3 -3
  247. package/lib/esm/appui-react/widget-panels/StatusBar.js +1 -1
  248. package/lib/esm/appui-react/widget-panels/StatusBar.js.map +1 -1
  249. package/lib/esm/appui-react/widget-panels/Tab.js +1 -1
  250. package/lib/esm/appui-react/widget-panels/Tab.js.map +1 -1
  251. package/lib/esm/appui-react/widget-panels/Tab.scss +3 -3
  252. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts +1 -1
  253. package/lib/esm/appui-react/widget-panels/ToolSettings.d.ts.map +1 -1
  254. package/lib/esm/appui-react/widget-panels/ToolSettings.js +33 -45
  255. package/lib/esm/appui-react/widget-panels/ToolSettings.js.map +1 -1
  256. package/lib/esm/appui-react/widget-panels/ToolSettings.scss +3 -3
  257. package/lib/esm/appui-react/widget-panels/Toolbars.js +2 -3
  258. package/lib/esm/appui-react/widget-panels/Toolbars.js.map +1 -1
  259. package/lib/esm/appui-react/widget-panels/Toolbars.scss +3 -3
  260. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +2 -2
  261. package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
  262. package/lib/esm/appui-react/widgets/WidgetDef.d.ts +1 -1
  263. package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
  264. package/lib/esm/appui-react/widgets/WidgetDef.js +13 -12
  265. package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
  266. package/lib/esm/appui-react/widgets/WidgetHost.js +2 -3
  267. package/lib/esm/appui-react/widgets/WidgetHost.js.map +1 -1
  268. package/lib/public/locales/en/UiFramework.json +3 -1
  269. package/package.json +12 -12
@@ -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,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,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;SAC3B;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;OAGG;IACI,aAAa,CAAC,EAAU;QAC7B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KA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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"]}
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AC5C,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"]}
@@ -180,7 +180,9 @@
180
180
  "isolateModels": "Isolate Models",
181
181
  "emphasizeSelected": "Emphasize Selected",
182
182
  "clearVisibility": "Clear Isolated, Hidden, and Emphasized Elements",
183
- "noToolSettings": "No settings for this tool.",
183
+ "noToolSettingsStart": "",
184
+ "noToolSettingsEnd": " does not have tool settings.",
185
+ "noToolSettingsPlaceholderName": "Active Tool",
184
186
  "sectionTools": "Section Tools",
185
187
  "sectionClear": "Clear Sections",
186
188
  "sectionPanelLabel": "Section",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/appui-react",
3
- "version": "4.2.1",
3
+ "version": "4.3.0-dev.1",
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.2.1",
27
- "@itwin/components-react": "^4.2.1",
26
+ "@itwin/appui-layout-react": "^4.3.0-dev.1",
27
+ "@itwin/components-react": "^4.3.0-dev.1",
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.2.1",
33
+ "@itwin/core-react": "^4.3.0-dev.1",
34
34
  "@itwin/core-telemetry": "^3.7.0 || ^4.0.0",
35
- "@itwin/imodel-components-react": "^4.2.1",
35
+ "@itwin/imodel-components-react": "^4.3.0-dev.1",
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.2.1",
47
+ "@itwin/appui-layout-react": "4.3.0-dev.1",
48
48
  "@itwin/build-tools": "^3.7.0",
49
- "@itwin/components-react": "4.2.1",
49
+ "@itwin/components-react": "4.3.0-dev.1",
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.2.1",
56
+ "@itwin/core-react": "4.3.0-dev.1",
57
57
  "@itwin/core-telemetry": "^3.7.0",
58
58
  "@itwin/ecschema-metadata": "^3.7.0",
59
59
  "@itwin/eslint-plugin": "^3.7.0",
60
- "@itwin/imodel-components-react": "4.2.1",
60
+ "@itwin/imodel-components-react": "4.3.0-dev.1",
61
61
  "@itwin/webgl-compatibility": "^3.7.0",
62
62
  "@testing-library/dom": "^8.11.2",
63
63
  "@testing-library/react": "^12.0.0",
@@ -74,7 +74,7 @@
74
74
  "@types/react-dom": "^17.0.0",
75
75
  "@types/react-redux": "^7.1.18",
76
76
  "@types/rimraf": "^2.0.2",
77
- "@types/sinon": "^9.0.0",
77
+ "@types/sinon": "^10.0.15",
78
78
  "@types/sinon-chai": "^3.2.0",
79
79
  "chai": "^4.1.2",
80
80
  "chai-as-promised": "^7",
@@ -95,7 +95,7 @@
95
95
  "react-test-renderer": "^17.0.0",
96
96
  "redux": "^4.1.0",
97
97
  "rimraf": "^3.0.2",
98
- "sinon": "^9.0.2",
98
+ "sinon": "^15.2.0",
99
99
  "sinon-chai": "^3.2.0",
100
100
  "ts-node": "^10.8.2",
101
101
  "typemoq": "^2.1.0",
@@ -130,7 +130,7 @@
130
130
  ],
131
131
  "check-coverage": true,
132
132
  "statements": 90,
133
- "branches": 89,
133
+ "branches": 88,
134
134
  "functions": 90,
135
135
  "lines": 90
136
136
  },